.account-page { height:auto; min-height:100dvh; overflow:auto; }
.account-bar { max-width:1000px; margin:auto; padding:calc(20px + var(--safe-t)) 24px 20px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.account-brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink); font-family:var(--font-ui); font-size:20px; font-weight:600; }
.account-brand small { display:block; color:var(--muted); font-family:var(--font-ui); font-size:10px; font-weight:400; letter-spacing:.05em; margin-top:3px; }
.account-back { color:var(--muted); font-size:var(--text-small); text-decoration:none; }
.account-back:hover,.account-inline-link:hover { color:var(--accent-ink); }
.account-main { max-width:800px; margin:22px auto 0; padding:0 24px calc(24px + var(--safe-b)); }
.account-heading { margin-bottom:20px; }
.account-eyebrow { font-size:10px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; }
.account-heading .account-eyebrow { color:var(--accent-ink); }
.account-heading h1 { font-family:var(--font-ui); font-size:var(--text-page); font-weight:600; line-height:1.2; margin:10px 0; }
.account-heading p { color:var(--muted); font-size:var(--text-body); }
.account-identity { display:flex; align-items:center; gap:14px; padding:18px 0 24px; border-top:1px solid var(--line); }
.account-avatar { display:grid; place-items:center; width:52px; height:52px; flex:none; border-radius:50%; background:var(--accent-soft); color:var(--accent-ink); font-family:var(--font-ui); font-size:20px; font-weight:600; }
.account-identity > div { min-width:0; flex:1; }
.account-identity h2 { font-size:var(--text-heading); }
.account-identity p { color:var(--muted); font-size:var(--text-small); overflow-wrap:anywhere; margin:3px 0; }
.account-identity small { color:var(--muted); font-size:11px; }
.account-identity .btn { min-height:40px; flex:none; font-size:var(--text-caption); padding:10px 14px; }
.account-grid { display:grid; grid-template-columns:1fr 1.25fr; gap:16px; align-items:stretch; }
.account-balance { background:var(--navy); color:var(--cream); border-radius:var(--r-lg); padding:20px; display:flex; flex-direction:column; align-items:flex-start; }
.account-balance .account-eyebrow { color:#c5cdd4; }
.account-credit-number { font-family:var(--font-ui); font-size:var(--text-balance); font-weight:600; line-height:1.15; font-variant-numeric:tabular-nums; margin:12px 0 4px; }
.account-balance > p { color:#c5cdd4; font-size:var(--text-caption); }
.account-credit-split { display:grid; grid-template-columns:1fr 1fr; gap:18px; width:100%; margin:18px 0; padding-top:18px; border-top:1px solid #33485d; }
.account-credit-split strong { display:block; font-size:var(--text-lead); font-weight:500; }
.account-credit-split span { color:#c5cdd4; font-size:11px; line-height:1.5; display:block; margin-top:4px; }
.account-balance .btn { width:100%; margin-top:auto; text-decoration:none; text-align:center; font-size:var(--text-small); }
.account-options { display:grid; gap:12px; }
.account-option,.account-plan,.account-language { display:flex; align-items:flex-start; gap:14px; padding:16px; border:1px solid var(--line); border-radius:var(--r-md); background:var(--surface); }
.account-option { text-decoration:none; color:var(--ink); transition:border-color var(--fast),background var(--fast); }
.account-option:hover { border-color:var(--line-2); background:var(--accent-soft); }
.account-option > span:nth-child(2) { flex:1; }
.account-option strong,.account-language strong,.account-plan h2 { display:block; font-size:var(--text-body); font-weight:600; }
.account-option small,.account-language small { display:block; color:var(--muted); font-size:var(--text-caption); margin-top:6px; line-height:1.5; }
.account-option-icon { width:34px; height:34px; display:grid; place-items:center; flex:none; background:var(--accent-soft); color:var(--accent-ink); border-radius:10px; font-size:var(--text-display); line-height:1; }
.account-option-icon svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; }
.account-arrow { color:var(--accent-ink); }
.account-plan p { color:var(--muted); font-size:var(--text-caption); line-height:1.6; margin-top:8px; }
.account-plan p:empty { display:none; }
.account-inline-link { display:inline-block; margin-top:14px; font-size:var(--text-caption); color:var(--accent-ink); font-weight:600; text-decoration:none; }
.account-language { justify-content:space-between; align-items:center; }
.account-language select { max-width:48%; padding:10px 8px; border-radius:8px; border:1px solid var(--line); color:var(--ink); background:var(--bg); font-family:var(--font-ui); font-size:var(--text-caption); }
.account-details { margin-top:24px; border-top:1px solid var(--line); }
.account-details details { border-bottom:1px solid var(--line); }
.account-details summary { padding:18px 0; cursor:pointer; color:var(--muted); font-size:var(--text-small); }
.account-details details[open] summary { color:var(--ink); }
.account-detail-body { padding:0 0 22px; max-width:680px; }
.account-detail-body p { color:var(--muted); font-size:var(--text-small); line-height:1.7; margin-bottom:12px; }
.account-detail-body .notice { padding:12px 16px; border-radius:12px; background:var(--danger-soft); color:var(--danger); }
.account-detail-body .field { margin:18px 0; max-width:300px; }
.account-detail-body input { width:100%; background:var(--surface); color:var(--ink); padding:12px; border:1px solid var(--line-2); border-radius:10px; font:inherit; }
.account-footer { color:var(--muted); margin-top:32px; font-family:var(--font-ui); font-size:var(--text-body); text-align:center; }
.account-footer span { font-family:var(--font-ui); font-size:10px; font-weight:400; margin-left:6px; }
.account-signin .btn { text-decoration:none; }
.account-page [hidden] { display:none !important; }
.account-page :focus-visible { outline:2px solid var(--accent-ink); outline-offset:4px; }
@media(max-width:640px) { .account-bar { padding-inline:18px; } .account-main { margin-top:14px; padding-inline:18px; } .account-grid { grid-template-columns:1fr; gap:14px; } .account-balance { padding:18px; } .account-credit-number { font-size:var(--text-balance); } .account-credit-split { margin:18px 0; } .account-option,.account-plan,.account-language { padding:16px; } .account-identity { gap:10px; } .account-avatar { width:42px; height:42px; font-size:20px; } }

.account-page .btn.ban { background:var(--danger-soft); color:var(--danger); border:1px solid var(--danger); }
.account-page .btn.ban:disabled { opacity:.45; }
html[data-distribution="play"]:not([data-play-billing="ready"]) .account-balance > a,
html[data-distribution="play"] .account-plan a:not(.play-management) { display:none; }
