* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: #030304; color: #f4f4f1; font-family: Inter, sans-serif; scroll-behavior: smooth; }
body { min-width: 0; }
.account-header { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 68px; padding: 0 clamp(18px, 4vw, 58px); border-bottom: 1px solid #242424; background: rgba(3,3,4,.94); font: 11px/1.4 'Courier New', monospace; letter-spacing: .15em; text-transform: uppercase; }
.account-header > a { justify-self: start; color: inherit; text-decoration: none; }
.account-header > span { justify-self: center; }
.account-language { justify-self: end; border: 0; background: none; color: #fff; font: inherit; letter-spacing: inherit; cursor: pointer; }
.account-language span { opacity: .42; }
.account-language .is-active { opacity: 1; }
.account-main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: clamp(48px, 6vw, 82px) 0 70px; }
.account-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 40px; padding-bottom: 38px; border-bottom: 1px solid #303030; }
.account-intro > p:first-child, .account-index { margin: 0; color: #777; font: 11px/1.5 'Courier New', monospace; letter-spacing: .15em; text-transform: uppercase; }
.account-intro h1 { grid-column: 1; margin: 8px 0 4px; font: 400 clamp(32px, 5vw, 62px)/1.08 Michroma, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.account-intro-copy { grid-column: 1; margin: 0; color: #aaa; font-size: 15px; line-height: 1.6; }
.account-identity { grid-column: 2; grid-row: 1 / span 3; align-self: end; max-width: 320px; margin: 0; color: #d0d0cd; font-size: 14px; text-align: right; }
.account-intro > .account-button { grid-column: 2; justify-self: end; }
.account-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(40px, 7vw, 100px); }
.account-index-nav { position: sticky; top: 96px; align-self: start; display: grid; gap: 4px; padding-top: 34px; }
.account-index-nav a { padding: 8px 0; color: #858585; font: 13px/1.35 'Courier New', monospace; letter-spacing: .128em; text-decoration: none; text-transform: uppercase; }
.account-index-nav a:hover, .account-index-nav a:focus-visible { color: #fff; }
.account-sections { min-width: 0; }
.account-section { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 0 20px; padding: 40px 0 44px; border-bottom: 1px solid #292929; scroll-margin-top: 78px; }
.account-section > *:not(.account-index) { grid-column: 2; }
.account-section h2 { margin: -3px 0 18px; font: 400 clamp(20px, 2.4vw, 30px)/1.25 Michroma, sans-serif; letter-spacing: .035em; text-transform: uppercase; }
.account-copy { max-width: 680px; margin: 0 0 20px; color: #aaa; font-size: 14px; line-height: 1.65; }
.account-form { display: grid; gap: 10px; max-width: 600px; }
.account-form label { margin-top: 4px; color: #b8b8b5; font-size: 13px; line-height: 1.4; }
.account-form input, .account-form select { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #444; border-radius: 0; background: #090909; color: #fff; font: 15px Inter, sans-serif; }
.account-referral { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: 680px; }
.account-referral input { min-width: 0; height: 48px; padding: 0 14px; border: 1px solid #3b3b3b; border-radius: 0; background: #080808; color: #d8d8d5; font: 12px/1.4 'Courier New', monospace; }
.account-referral .account-button { min-height: 48px; margin-top: 0; }
.account-referral .account-status { grid-column: 1 / -1; }
.account-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.account-button { display: inline-flex; align-items: center; justify-content: center; width: max-content; min-height: 46px; margin-top: 6px; padding: 0 18px; border: 1px solid #555; border-radius: 0; background: transparent; color: #eee; font: 12px/1 'Courier New', monospace; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.account-button:hover, .account-button:focus-visible { border-color: #fff; color: #fff; }
.account-button-danger { border-color: #704646; color: #d9aaa5; }
.account-balance { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 10px 24px; max-width: 600px; margin: 0 0 14px; padding: 16px 0; border-top: 1px solid #333; border-bottom: 1px solid #333; color: #999; font: 11px 'Courier New', monospace; letter-spacing: .11em; text-transform: uppercase; }
.account-balance strong { color: #fff; font: 400 clamp(30px, 4vw, 48px)/1 Michroma, sans-serif; }
.account-balance em { color: #d0d0cd; font: 400 15px/1.4 Inter, sans-serif; letter-spacing: 0; text-transform: none; }
.account-list { display: grid; max-width: 760px; margin-top: 20px; }
.account-list-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; min-height: 48px; padding: 10px 0; border-top: 1px solid #252525; }
.account-list-row strong { font-size: 14px; font-weight: 400; }
.account-list-row span, .account-list-empty { color: #959595; font: 11px/1.5 'Courier New', monospace; letter-spacing: .06em; text-transform: uppercase; }
.account-billing-row { grid-template-columns: minmax(130px, 1.4fr) minmax(75px, .7fr) minmax(75px, .7fr) minmax(110px, 1fr); }
.account-billing-row:not(.account-billing-row-paid) { opacity: .58; }
.account-billing-row-status { color: #b8b8b5; }
.account-billing-row-paid .account-billing-row-status { color: #f4f4f1; }
.account-billing-row span:last-child { text-align: right; }
.account-billing-head { display: grid; grid-template-columns: minmax(130px, 1.4fr) minmax(75px, .7fr) minmax(75px, .7fr) minmax(110px, 1fr); gap: 20px; max-width: 760px; padding: 10px 0; border-bottom: 1px solid #333; color: #777; font: 10px/1.4 'Courier New', monospace; letter-spacing: .1em; text-transform: uppercase; }
.account-billing-head span:last-child { text-align: right; }
.account-preferences { display: grid; max-width: 600px; }
.account-preferences label { display: flex; justify-content: space-between; align-items: center; min-height: 52px; border-top: 1px solid #292929; color: #c3c3c0; font-size: 14px; }
.account-preferences label:nth-child(2) { margin-bottom: 14px; border-bottom: 1px solid #292929; }
.account-preferences input { width: 20px; height: 20px; accent-color: #ddd; }
.account-status { min-height: 1.4em; margin: 8px 0 0; color: #999; font: 11px/1.5 'Courier New', monospace; letter-spacing: .06em; text-transform: uppercase; }
.account-section-final { padding-bottom: 18px; border-bottom: 0; }
.account-confirm { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; overflow-y: auto; background: rgba(0,0,0,.86); backdrop-filter: blur(10px); }
.account-confirm[hidden] { display: none; }
.account-confirm section { width: min(520px, 100%); padding: clamp(26px, 5vw, 44px); border: 1px solid #4b3434; background: #050505; }
.account-confirm h2 { margin: 14px 0 18px; font: 400 clamp(20px, 5vw, 30px)/1.3 Michroma, sans-serif; text-transform: uppercase; }
.account-confirm section > p:not(.account-index) { color: #aaa; font-size: 13px; line-height: 1.7; }
.account-confirm-label { display: block; margin: 22px 0 8px; color: #aaa; font: 11px/1.5 'Courier New', monospace; letter-spacing: .08em; text-transform: uppercase; }
.account-confirm input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #4b3434; border-radius: 0; background: #090909; color: #fff; font: 15px Inter, sans-serif; }
.account-button:disabled { cursor: not-allowed; opacity: .38; }
.account-confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
body.account-modal-open { overflow: hidden; }
@media (max-width: 760px) {
  .account-header { grid-template-columns: 1fr auto; min-height: 62px; }
  .account-header > span { display: none; }
  .account-main { width: min(100% - 28px, 1180px); padding: 42px 0 48px; }
  .account-intro { display: block; padding-bottom: 28px; }
  .account-intro h1 { margin: 8px 0; }
  .account-intro-copy { font-size: 14px; }
  .account-identity { margin-top: 14px; text-align: left; }
  .account-layout { display: block; }
  .account-index-nav { position: static; display: flex; gap: 0 16px; padding: 18px 0 10px; overflow-x: auto; scrollbar-width: none; }
  .account-index-nav::-webkit-scrollbar { display: none; }
  .account-index-nav a { flex: none; }
  .account-section { grid-template-columns: 1fr; padding: 30px 0 34px; }
  .account-section > *:not(.account-index) { grid-column: 1; }
  .account-section h2 { margin: 8px 0 16px; }
  .account-billing-row { grid-template-columns: 1fr auto; }
  .account-billing-head { display: none; }
  .account-billing-row span:nth-of-type(2) { text-align: right; }
  .account-billing-row span:last-child { grid-column: 1 / -1; text-align: left; }
  .account-button { max-width: 100%; min-height: 48px; white-space: normal; text-align: center; }
  .account-referral { grid-template-columns: 1fr; }
  .account-referral .account-button { width: 100%; }
  .account-confirm-actions { display: grid; }
  .account-confirm-actions .account-button { width: 100%; }
}
