.account-page { background: radial-gradient(ellipse at 85% 0%,rgba(255,22,22,.035),transparent 45%),var(--bg-main); min-height:100vh; }
.account-page [hidden] { display:none!important; }
.account-symbols { position:absolute; width:0; height:0; overflow:hidden; }
.account-page svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.account-page button:focus-visible,.account-page a:focus-visible { outline:3px solid var(--primary-red); outline-offset:5px; }
.account-top-nav { display:flex; gap:28px; color:var(--text-muted); font-weight:700; font-size:14px; }
.account-top-nav a:hover { color:var(--primary-red); }
.account-back { display:flex; align-items:center; gap:10px; font-size:13px; font-weight:700; }
.account-back svg { width:18px; }
.account-main { max-width:1100px; margin:0 auto; padding:38px 24px 64px; min-height:calc(100vh - 270px); }
.account-page-title { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; }
.account-eyebrow { color:var(--primary-red); font-size:11px; font-weight:800; letter-spacing:.4px; }
.account-page-title h1 { font-size:26px; font-weight:900; line-height:1.5; margin-top:4px; }
.account-overview { padding:32px; border:1px solid var(--border-color); border-radius:24px; background:var(--bg-card); box-shadow:0 12px 40px rgba(30,27,75,.045); }
.account-identity { display:flex; align-items:center; gap:24px; padding-bottom:28px; }
.account-avatar-wrap { position:relative; width:104px; height:104px; flex-shrink:0; border:2px solid var(--primary-red); padding:5px; border-radius:50%; }
.account-avatar-wrap img,.account-avatar-letter { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.account-avatar-letter { display:flex; align-items:center; justify-content:center; background:linear-gradient(145deg,#ff1616,#9c101c); color:white; font-size:40px; font-weight:800; }
#changeAccountAvatar{background:transparent;cursor:pointer;font:inherit;line-height:1;padding:5px}
#changeAccountAvatar img{display:block}
#changeAccountAvatar:focus-visible{outline:3px solid var(--primary-red);outline-offset:5px}
.account-avatar-edit{position:absolute;inset-inline-end:-2px;bottom:0;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--primary-red);color:#fff;border:2px solid var(--bg-card);font-size:18px}
#changeAccountAvatar:disabled{opacity:.65;cursor:progress}
.account-identity-text { min-width:0; }
.account-identity-text h2 { font-size:27px; line-height:1.5; font-weight:900; overflow-wrap:anywhere; margin:3px 0 8px; }
.account-identity-text p { display:flex; align-items:center; gap:8px; color:var(--text-muted); font-size:12px; margin:5px 0; overflow-wrap:anywhere; }
.account-identity-text p svg { width:15px; height:15px; color:var(--primary-red); }
.account-id-label { font-size:11px; }
.account-identity-text b { font-weight:600; }
.account-summary { display:flex; align-items:center; justify-content:space-between; gap:24px; padding-top:24px; border-top:1px solid var(--border-color); }
.account-stats { display:flex; gap:14px; }
.account-stat { display:flex; gap:12px; align-items:center; background:#faf9fd; border:1px solid var(--border-color); border-radius:17px; padding:17px; min-width:188px; transform:translateY(0); transition:transform .35s cubic-bezier(.22,1,.36,1),box-shadow .35s ease; }
.account-stat>div>span { display:block; font-size:11px; color:var(--text-muted); margin-bottom:2px; }
.account-stat strong { display:block; font-size:23px; line-height:1.3; }
.account-stat small { font-size:12px; font-weight:600; }
.account-icon { width:46px; height:46px; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; border-radius:14px; background:rgba(255,22,22,.07); border:1px solid rgba(255,22,22,.1); color:var(--primary-red); }
.account-icon-muted { color:#7051a0; background:#f0ebf8; border-color:#e9e0f5; }
.account-quick-actions { display:flex; flex-wrap:wrap; gap:10px; }
.account-primary,.account-secondary { display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:13px 19px; border-radius:12px; font-size:12px; font-weight:800; }
.account-primary { background:var(--primary-red); color:white; box-shadow:0 7px 18px rgba(255,22,22,.19); }
.account-secondary { background:#f0edf7; color:var(--text-main); }
.account-primary svg,.account-secondary svg { width:17px; height:17px; }
.account-links { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:26px; }
.account-link { display:flex; align-items:center; text-align:right; gap:16px; width:100%; padding:22px; background:var(--bg-card); border:1px solid var(--border-color); border-radius:19px; color:var(--text-main); box-shadow:0 5px 15px rgba(30,27,75,.025); transition:border-color .2s,transform .2s,box-shadow .2s; }
.account-link strong { display:block; font-size:14px; font-weight:800; }
.account-link small { display:block; font-size:11px; color:var(--text-muted); margin-top:3px; }
.account-arrow { width:32px; height:32px; display:grid; place-items:center; border:1px solid var(--border-color); border-radius:50%; margin-right:auto; color:var(--text-muted); }
.account-arrow svg { width:16px; height:16px; }
.account-logout strong { color:var(--primary-red); }
.account-footer { border-top:1px solid var(--border-color); background:var(--bg-footer); color:white; padding:30px max(24px,calc((100vw - 1052px)/2)); display:flex; align-items:center; justify-content:space-between; gap:30px; }
.account-footer img { width:126px; height:43px; object-fit:contain; }
.account-footer p,.account-footer>span { color:#aaa5bc; font-size:11px; margin-top:8px; }
.account-footer strong { display:block; font-size:13px; margin-bottom:7px; }
.account-footer a { font-size:11px; color:#d4cede; }
.account-footer a span { color:#ff4545; margin-right:8px; }
.account-gate { padding:60px 24px; border:1px solid var(--border-color); border-radius:24px; text-align:center; background:white; }
.account-gate h2 { margin:16px 0 8px; font-size:21px; }
.account-gate p { color:var(--text-muted); font-size:13px; }
.account-gate button { margin-top:24px; }
.account-dialog { width:min(480px,calc(100vw - 32px)); border:1px solid var(--border-color); border-radius:20px; padding:26px; background:white; color:var(--text-main); font-family:inherit; margin:auto; }
.account-dialog::backdrop { background:rgba(16,0,43,.5); backdrop-filter:blur(4px); }
.account-dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:20px; }
.account-dialog h2 { font-size:19px; }
.account-dialog-heading button { font-size:28px; color:var(--text-muted); padding:0 8px; }
.account-dialog p { margin:12px 0; font-size:13px; color:var(--text-muted); line-height:1.9; overflow-wrap:anywhere; }
.account-dialog a { color:var(--primary-red); display:inline-block; margin-top:12px; font-weight:700; font-size:13px; }
.account-notice { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100vw - 32px); padding:13px 22px; border-radius:12px; background:#211c37; color:white; font-size:13px; box-shadow:var(--shadow-lg); z-index:1001; }
@media(max-width:850px) { .account-summary { flex-direction:column; align-items:stretch; } .account-stats { flex:1; } .account-stat { flex:1; min-width:0; } .account-quick-actions { justify-content:flex-end; } }
@media(max-width:560px) { .account-top-nav { display:none; } .account-back { font-size:11px; } .account-main { padding:24px 16px 40px; } .account-page-title h1 { font-size:23px; } .account-overview { padding:20px; } .account-identity { gap:14px; align-items:flex-start; } .account-avatar-wrap { width:76px; height:76px; } .account-avatar-letter { font-size:28px; } .account-identity-text h2 { font-size:19px; } .account-identity-text p { font-size:10px; } .account-stat { padding:12px; gap:8px; } .account-stat .account-icon { width:33px; height:38px; border-radius:10px; } .account-stat strong { font-size:20px; } .account-stat>div>span { font-size:9px; } .account-quick-actions { justify-content:stretch; } .account-quick-actions button { flex:1; padding:12px 10px; font-size:11px; } .account-links { grid-template-columns:1fr; gap:12px; margin-top:18px; } .account-link { padding:18px; } .account-footer { flex-wrap:wrap; padding:26px 20px; gap:24px; } .account-footer>span { width:100%; border-top:1px solid rgba(255,255,255,.08); padding-top:15px; } }
.account-primary,.account-secondary,.account-link {
  position:relative;
  overflow:hidden;
  isolation:isolate;
  transition:transform .32s cubic-bezier(.22,1,.36,1),background-color .3s ease,border-color .3s ease,box-shadow .32s ease;
}
.account-primary::after,.account-secondary::after,.account-link::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(110deg,transparent 25%,rgba(255,255,255,.3) 50%,transparent 75%);
  transform:translateX(120%);
  transition:transform .65s cubic-bezier(.22,1,.36,1);
}
.account-link .account-icon,.account-arrow,.account-primary svg,.account-secondary svg {
  transform:translate(0,0) rotate(0deg);
  transition:transform .38s cubic-bezier(.22,1,.36,1),background-color .3s ease,color .3s ease,border-color .3s ease,box-shadow .38s ease;
}
.account-back,.account-dialog-heading button { transition:color .25s ease,transform .3s ease; }
@media(hover:hover) and (pointer:fine) {
  .account-stat:hover { transform:translateY(-5px); box-shadow:0 10px 24px rgba(30,27,75,.08); }
  .account-primary:hover:not(:disabled) { background:var(--primary-dark-red); transform:translateY(-3px); box-shadow:0 10px 24px rgba(255,22,22,.27); }
  .account-secondary:hover:not(:disabled) { background:#e8e2f0; transform:translateY(-3px); box-shadow:0 8px 18px rgba(30,27,75,.1); }
  .account-link:hover:not(:disabled) { transform:translateY(-5px); border-color:rgba(255,22,22,.3); background-color:#fffafa; box-shadow:0 8px 26px rgba(255,22,22,.09),0 0 0 1px rgba(255,22,22,.04); }
  .account-primary:hover:not(:disabled)::after,.account-secondary:hover:not(:disabled)::after,.account-link:hover:not(:disabled)::after { transform:translateX(-120%); }
  .account-link:hover:not(:disabled) .account-icon { transform:translateY(-2px) rotate(-8deg) scale(1.05); background:var(--primary-red); color:#fff; border-color:var(--primary-red); box-shadow:0 0 22px rgba(255,22,22,.38),0 6px 14px rgba(255,22,22,.2); }
  .account-link:hover:not(:disabled) .account-arrow { transform:translateX(-4px); background:var(--primary-red); color:#fff; border-color:var(--primary-red); box-shadow:0 0 16px rgba(255,22,22,.35); }
  .account-primary:hover:not(:disabled) svg,.account-secondary:hover:not(:disabled) svg { transform:translateY(-1px) rotate(-6deg); }
  .account-back:hover { color:var(--primary-red); transform:translateX(-3px); }
  .account-dialog-heading button:hover { color:var(--primary-red); transform:rotate(90deg); }
}
.account-primary:active:not(:disabled),.account-secondary:active:not(:disabled) { transform:translateY(0) scale(.985); }
.account-link:active:not(:disabled) { background-color:#fff3f3; box-shadow:0 3px 12px rgba(255,22,22,.08); }
.account-page button:disabled { cursor:wait; opacity:.65; }
@media(prefers-reduced-motion:reduce) {
  .account-page *,.account-page *::after { animation:none!important; scroll-behavior:auto; }
  /* Keep the requested brief hover feedback; omit the travelling shine. */
  .account-page button,.account-page button *,.account-back { transition-duration:.18s!important; }
  .account-primary::after,.account-secondary::after,.account-link::after { display:none; }
}
