/* Shared surfaces for login and profile. */
body.zx-theme.auth-login,
body.zx-theme.account-profile {
  background: radial-gradient(ellipse 720px 450px at 50% 0, #2b2417, #10131b 54%, #0a0d13 100%) fixed !important;
  color: #f3f5f8;
}
.account-eyebrow { color: #ebc366; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.account-intro { color: #aab4c4; font-size: 13px; line-height: 1.55; }

body.zx-theme.auth-login { padding: clamp(16px, 5vw, 28px); }
body.zx-theme.auth-login .orb { display: none; }
body.zx-theme.auth-login .auth-wrap { max-width: 440px; }
body.zx-theme.auth-login .auth-wrap .brand { margin-bottom: 15px !important; }
body.zx-theme.auth-login .auth-wrap .brand .logo { width: min(245px, 100%) !important; }
body.zx-theme.auth-login .auth-wrap .auth-card {
  padding: clamp(17px, 5vw, 28px) !important;
  border: 1px solid #34333a !important;
  border-radius: 21px !important;
  background: linear-gradient(150deg, #1a202b, #11151d 64%) !important;
  box-shadow: 0 22px 55px #0007 !important;
}
.login-heading { margin-bottom: 20px; }
.login-heading .account-eyebrow { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; }
.login-heading h1 { margin: 0; font-size: clamp(22px, 6vw, 28px); line-height: 1.2; letter-spacing: -.03em; }
.login-heading .account-intro { margin: 7px 0 0; }
body.zx-theme.auth-login .auth-card .input { padding-left: 13px !important; font-size: 16px !important; }
body.zx-theme.auth-login .auth-card .login-submit { min-height: 48px !important; height: 48px; }
body.zx-theme.auth-login .auth-card .or-divider { color: #acb7c7; margin-top: 17px; }
body.zx-theme.auth-login .auth-card .google-btn { margin-top: 8px !important; }
.login-note { color: #aab4c4; text-align: center; font-size: 11px; line-height: 1.55; margin: 14px 0 0; }

body.zx-theme.account-profile .wrap { width: min(calc(100% - 24px), 720px); padding-top: 16px; }
body.zx-theme.account-profile .profile-nav { margin-bottom: 14px; }
body.zx-theme.account-profile .profile-nav h1 { margin-block: 0; }
body.zx-theme.account-profile .hero {
  padding: clamp(14px, 4vw, 22px);
  border-color: #323744;
  border-radius: 18px;
  background: linear-gradient(155deg, #1a202b, #11151d 75%);
  box-shadow: 0 12px 32px #0004;
}
body.zx-theme.account-profile .hero::after { content: none; }
body.zx-theme.account-profile .device-panel { margin-top: 12px; scroll-margin-top: 12px; }
body.zx-theme.account-profile .balance { margin-top: 14px; padding: 13px 15px; background: #211d17; border-color: #504129; }
body.zx-theme.account-profile .balance-value { color: #f5d278 !important; font-size: clamp(22px, 6vw, 28px); }
body.zx-theme.account-profile .balance-label, body.zx-theme.account-profile .info .label { color: #aab4c4; }
body.zx-theme.account-profile .section-title { margin: 16px 0 8px; }
body.zx-theme.account-profile .info { background: #151b25; border-radius: 11px; padding: 10px 12px; }
body.zx-theme.account-profile .info .value { overflow-wrap: anywhere; }
body.zx-theme.account-profile .device-list { max-height: 350px; overflow-y: auto; padding-right: 4px; }
body.zx-theme.account-profile .profile-notice { background: #181e28; border: 1px solid #475060; border-radius: 10px; padding: 10px 12px; }
body.zx-theme.account-profile .profile-notice-danger { border-color: #81515c; color: #ffc5cf; }
body.zx-theme.account-profile .profile-notice-success { border-color: #436b56; color: #b3e8c8; }
.profile-shortcuts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.profile-shortcuts a {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 5px 8px; border: 1px solid #3a3c43; border-radius: 10px;
  color: #eed092; background: #171c24; text-decoration: none; font-size: 11px; font-weight: 800;
}
body.zx-theme :is(.profile-shortcuts a, .device-list, .passkey-button, .login-submit):focus-visible {
  outline: 2px solid #efd080;
  outline-offset: 3px;
}
body.zx-theme.auth-login .auth-card .passkey-button,
body.zx-theme.account-profile #passkeys .passkey-button {
  min-height: 46px !important; border: 1px solid #655432 !important; border-radius: 12px !important;
  background: #262016 !important; color: #f4d38c !important; box-shadow: none !important;
}
body.zx-theme.auth-login .auth-card .passkey-button:hover,
body.zx-theme.account-profile #passkeys .passkey-button:hover { background: #332818 !important; }
body.zx-theme.account-profile #passkeys .passkey-add { margin-bottom: 8px; }
body.zx-theme.account-profile #passkeys .passkey-list { margin-top: 10px; }
@media (max-width: 355px) {
  body.zx-theme.account-profile .info-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  body.zx-theme.auth-login .auth-card { animation: none; }
}
