/*
  KingsView account pages — shared dark/gold theme.
  Tokens + components lifted from the approved restyle concept
  (claude.ai/artifact/5Vkn5LxudrTu2ia8tr3s53). This is a copy of
  web/v2/account/css/account-theme.css (same duplication convention this
  project already uses for connect.php etc.) plus the auth-specific
  components (.authbtn, .otp-box, .device-row) appended at the bottom.
*/
:root{
  --bg: #13100d;
  --bg-soft: #1a1510;
  --surface: #211a13;
  --surface-2: #2a2117;
  --border: #3a2f20;
  --border-soft: #2d241a;
  --text: #f4ecdc;
  --text-dim: #b9ab92;
  --text-faint: #8a7c66;
  --accent: #e3a73b;
  --accent-soft: rgba(227,167,59,0.14);
  --accent-ink: #1a1208;
  --success: #5cb584;
  --success-soft: rgba(92,181,132,0.14);
  --warning: #e0954a;
  --warning-soft: rgba(224,149,74,0.14);
  --danger: #e0614a;
  --danger-soft: rgba(224,97,74,0.14);
  --radius: 18px;
  --radius-sm: 12px;
  color-scheme: dark;
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
body{
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(227,167,59,0.13) 0%, rgba(227,167,59,0) 70%),
    radial-gradient(ellipse 120% 90% at 50% 40%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.85) 100%),
    linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
    repeating-linear-gradient(45deg, rgba(227,167,59,0.14) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(-45deg, rgba(227,167,59,0.14) 0 1px, transparent 1px 28px),
    #000;
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Figtree', ui-sans-serif, system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 16px 56px;
}

h1,h2,h3,.display{
  font-family: 'Sora', ui-sans-serif, system-ui, sans-serif;
  text-wrap: balance;
  margin: 0;
}

.num{ font-variant-numeric: tabular-nums; }

.shell{
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, #241b11 0%, #16110c 100%);
  border: 1px solid rgba(227,167,59,.45);
  border-radius: 30px;
  padding: 20px 18px 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.75), 0 0 60px rgba(227,167,59,.10), inset 0 1px 0 rgba(255,236,190,.14);
}
.shell .card, .shell .summary-box{ background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.4)); }
@media (max-width: 400px){
  .shell{ padding: 16px 12px 14px; border-radius: 26px; }
}

/* ---- Top brand bar ---- */
.brandbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.brand{ display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark{ height: 34px; width: auto; flex-shrink: 0; }
.brand-name{
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-name span{ color: var(--accent); }
.brand-actions{ display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.iconbtn{
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}
.iconbtn:hover{ border-color: var(--accent); color: var(--accent); }

.theme-banner{
  text-align: center;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 18px;
}

/* ---- Page nav (Account / Profile — real links, not JS tabs) ---- */
.tabs{
  display: flex;
  background: rgba(20,16,12,.85);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 22px;
  gap: 4px;
}
.tab{
  flex: 1;
  text-align: center;
  padding: 9px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  display: block;
  transition: background 0.15s, color 0.15s;
}
.tab.active{ background: var(--accent); color: var(--accent-ink); }

/* ---- Cards ---- */
.card{
  background: linear-gradient(180deg, rgba(227,167,59,.07) 0%, rgba(14,11,8,.78) 38%, rgba(10,8,6,.82) 100%);
  border: 1px solid rgba(227,167,59,.22);
  box-shadow: inset 0 1px 0 rgba(255,236,190,.08);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.eyebrow{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.greeting{ font-size: 21px; font-weight: 700; margin-bottom: 2px; }
.greeting-sub{ font-size: 14px; color: var(--text-dim); line-height: 1.5; }

/* Subscription hero */
.sub-top{ display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.plan-amount{ font-size: 34px; font-weight: 800; line-height: 1.1; margin-top: 6px; }
.plan-cycle{ font-size: 13px; color: var(--text-dim); margin-top: 4px; }

.pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.pill-dot{ width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.success{ background: var(--success-soft); color: var(--success); }
.pill.warning{ background: var(--warning-soft); color: var(--warning); }
.pill.danger{ background: var(--danger-soft); color: var(--danger); }

.progress-row{ margin-top: 16px; }
.progress-labels{ display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-dim); margin-bottom: 7px; }
.progress-track{ height: 7px; border-radius: 999px; background: var(--border-soft); overflow: hidden; }
.progress-fill{ height: 100%; border-radius: 999px; background: linear-gradient(90deg, #c98a1f, #f2c14e); }

.divider{ height: 1px; background: var(--border-soft); margin: 18px 0; }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease;
  text-decoration: none;
}
.btn:active{ transform: scale(0.98); }
.btn-primary{
  background: linear-gradient(135deg, #f2c14e, #e3902f);
  color: var(--accent-ink);
  box-shadow: 0 6px 22px rgba(227,144,47,.32);
}
.btn-primary:hover{ filter: brightness(1.08); }
.btn-ghost{ background: transparent; border-color: rgba(227,167,59,.5); color: var(--accent); }
.btn-ghost:hover{ border-color: var(--accent); background: rgba(227,167,59,.08); }
.btn-danger-ghost{ background: var(--danger-soft); color: var(--danger); border-color: transparent; }

/* Fields */
.field{ position: relative; margin-bottom: 12px; }
.field input, .field select{
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 14.5px;
  font-family: 'Figtree', sans-serif;
  outline: none;
  transition: border-color 0.15s;
}
.field input::placeholder{ color: var(--text-faint); }
.field input:focus, .field select:focus{ border-color: var(--accent); }

.label{ font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; display: block; }

.hint{ font-size: 12.5px; color: var(--text-faint); margin-top: 8px; line-height: 1.5; }

/* Status lines toggled by ajax_login.php calls — hidden until JS .show()s them. */
.callback, .callbackC{ display: none; color: var(--accent); }

/* Linked-card row */
/* Card-shaped visual for a linked card (index.php + card.php) -- masked number in
   real card grouping ("•••• •••• •••• 1234"), chip, holder name and expiry, like
   an actual bank card rather than a plain text row. */
.card-visual{
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 18px 20px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #2f2416 0%, #1a1510 55%, #100c07 100%);
  border: 1px solid rgba(227,167,59,.3);
  box-shadow: 0 10px 28px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,236,190,.08);
}
.card-visual::before{
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(227,167,59,.05) 0 1px, transparent 1px 22px);
  pointer-events: none;
}
.card-visual-top{ position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.card-visual-chip{
  width: 40px; height: 29px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f2c14e, #e3902f);
  position: relative;
}
.card-visual-chip::after{
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(26,18,8,.4);
  border-radius: 3px;
}
.card-visual-brand{ font-family: 'Sora', ui-sans-serif, system-ui, sans-serif; font-weight: 800; font-size: 13px; letter-spacing: .04em; color: var(--accent); }
.card-visual-number{
  position: relative; z-index: 1;
  font-family: 'Sora', ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.card-visual-bottom{ position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; }
.card-visual-label{ font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 3px; }
.card-visual-value{ font-size: 12.5px; font-weight: 600; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }

.cardrow{ display: flex; align-items: center; gap: 12px; }
.card-chip{
  width: 44px; height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, #3a3024, #241c13);
  border: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
}
.card-chip::after{
  content: "";
  position: absolute;
  left: 7px; top: 9px;
  width: 14px; height: 10px;
  border-radius: 2px;
  background: rgba(227,167,59,0.5);
}
.card-meta{ flex: 1; min-width: 0; }
.card-number{ font-weight: 700; font-size: 14.5px; }
.card-status{ font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.card-status b{ font-weight: 700; }
.card-status b.on{ color: var(--success); }
.card-status b.off{ color: var(--text-faint); }

/* Auto-renew switch (also the .cancel click target — see index.php JS) */
.switch{
  position: relative;
  width: 44px; height: 26px;
  border-radius: 999px;
  background: var(--border);
  flex-shrink: 0;
  cursor: pointer;
}
.switch.on{ background: var(--success); }
.switch-knob{
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s;
}
.switch.on .switch-knob{ left: 21px; }

/* Avatar / profile */
.avatar-row{ display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.avatar{
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 21px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.avatar-name{ font-size: 16px; font-weight: 700; }
.avatar-email{ font-size: 13px; color: var(--text-dim); margin-top: 2px; }

select{ appearance: none; }
.select-wrap{ position: relative; }
.select-wrap::after{
  content: "\25BE";
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}

/* ---- Subscription page: payment summary + pick-a-method radio list ---- */
.summary-box{
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  margin-bottom: 22px;
}
.summary-eyebrow{
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 8px;
}
.summary-line{ font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.summary-hero{ font-family: 'Sora', sans-serif; font-weight: 800; margin-bottom: 14px; }
.summary-hero .hero-num{ font-size: 34px; color: var(--accent); }
.summary-hero .hero-unit{ font-size: 16px; color: var(--text-dim); margin-left: 6px; font-weight: 700; }
.summary-box .active-until{ border-top: 1px solid var(--border-soft); margin-top: 4px; padding-top: 12px; }

.pay-section-heading{ font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.pay-section-sub{ font-size: 13px; color: var(--text-dim); line-height: 1.5; margin-bottom: 16px; }

.rgroup{
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-faint); margin: 6px 0 8px;
}
.radio{
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; margin-bottom: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.32);
  color: var(--text); font-family: 'Figtree', sans-serif; text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s, transform .08s;
}
.radio:hover{ border-color: rgba(227,167,59,.5); }
.radio.ng:hover{ border-color: rgba(60,200,150,.55); }
.radio:active{ transform: scale(.99); }
.radio:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }
.rd{ width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--text-faint); flex-shrink: 0; }
.mi{
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.1);
}
.mt{ flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mt b{ font-size: 14.5px; }
.mt em{ font-style: normal; font-size: 12.5px; color: var(--text-dim); margin-top: 1px; font-variant-numeric: tabular-nums; }
.ck{ font-weight: 800; opacity: 0; color: var(--accent); }
.radio.sel{ border-color: var(--accent); background: rgba(227,167,59,.12); }
.radio.sel .rd{ border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, transparent 50%); }
.radio.sel .ck{ opacity: 1; }
.radio.ng.sel{ border-color: #5fe0ae; background: rgba(40,190,130,.14); }
.radio.ng.sel .rd{ border-color: #5fe0ae; background: radial-gradient(circle, #5fe0ae 45%, transparent 50%); }
.radio.ng.sel .ck{ color: #7ff0c4; }

.paybar{ margin-top: 12px; justify-content: space-between; padding: 16px 20px; font-size: 16px; }

.trust-footer{ text-align: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.trust-line{ font-size: 12.5px; color: var(--text-dim); margin-bottom: 10px; }
.trust-line .lock{ color: var(--success); margin-right: 5px; }
.cancel-link{ font-size: 13px; color: var(--text-dim); text-decoration: none; font-weight: 600; }
.cancel-link:hover{ color: var(--accent); }

.pay-head{ text-align: center; margin-bottom: 18px; }
.pay-title{ font-size: 21px; font-weight: 800; color: var(--text); }
.pay-subtitle{ font-size: 13.5px; color: var(--text-dim); margin-top: 4px; }

/* Result screen: complete-purchase.php + comfirm-espees-subscription.php share this --
   coin icon (reusing the "other currencies" coin motif), title/subtitle, then an
   optional recap box of what was actually charged, approved in the design artifact
   (claude.ai/artifact/5Vkn5LxudrTu2ia8tr3s53, "Result" tab). */
.pay-coin{
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', ui-sans-serif, system-ui, sans-serif;
  font-weight: 800; font-size: 26px;
  border: 3px solid rgba(255,230,180,.5);
}
.pay-coin.ok{
  background: radial-gradient(circle at 35% 30%, #d7f5e3, var(--success) 55%, #2f6b4a 100%);
  border-color: rgba(205,255,225,.5);
  box-shadow: 0 10px 30px rgba(92,181,132,.35);
  color: #0d2a1b;
}
.pay-coin.bad{
  background: radial-gradient(circle at 35% 30%, #ffe1d6, var(--danger) 55%, #7a2e1f 100%);
  border-color: rgba(255,220,208,.5);
  box-shadow: 0 10px 30px rgba(224,97,74,.35);
  color: #3a1208;
}

.result-recap{
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 6px 18px;
  margin: 20px 0 22px;
}
.result-recap-row{
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13.5px; padding: 11px 0;
}
.result-recap-row + .result-recap-row{ border-top: 1px solid var(--border-soft); }
.result-recap-row span:first-child{ color: var(--text-dim); }
.result-recap-row span:last-child{ font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* Segmented toggle, e.g. express.php's "Who are you subscribing for?" */
.seg{
  display: flex; gap: 4px;
  background: rgba(20,16,12,.85);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 4px;
}
.seg-btn{
  flex: 1; text-align: center;
  padding: 9px 8px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  color: var(--text-dim);
  cursor: pointer; user-select: none;
  transition: background .15s, color .15s;
}
.seg-btn.active{ background: var(--accent); color: var(--accent-ink); }

.active-until{
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: var(--text-dim);
}
.active-until b{ color: var(--text); font-size: 15px; }

footer{
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 18px;
  line-height: 1.6;
}
footer a{ color: var(--text-dim); text-decoration: none; }
footer a:hover{ color: var(--accent); }

/* ---- SweetAlert2 theme: one popup system (alerts, confirms, toasts) site-wide ---- */
.swal2-popup.kv-swal{
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid rgba(227,167,59,.25) !important;
  border-radius: var(--radius) !important;
  font-family: 'Figtree', sans-serif !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,236,190,.06) !important;
}
.swal2-popup.kv-swal .swal2-title{
  font-family: 'Sora', sans-serif !important;
  color: var(--text) !important;
  font-size: 19px !important;
}
.swal2-popup.kv-swal .swal2-html-container{ color: var(--text-dim) !important; font-size: 14px !important; }
.swal2-popup.kv-swal .swal2-confirm{
  background: linear-gradient(135deg, #f2c14e, #e3902f) !important;
  color: var(--accent-ink) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 6px 22px rgba(227,144,47,.32) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 10px 20px !important;
}
.swal2-popup.kv-swal .swal2-cancel{
  background: transparent !important;
  border: 1px solid rgba(227,167,59,.5) !important;
  color: var(--accent) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 10px 20px !important;
}
.swal2-popup.kv-swal .swal2-icon.swal2-success{ border-color: var(--success) !important; color: var(--success) !important; }
.swal2-popup.kv-swal .swal2-icon.swal2-success [class^='swal2-success-line']{ background-color: var(--success) !important; }
.swal2-popup.kv-swal .swal2-icon.swal2-success .swal2-success-ring{ border-color: rgba(92,181,132,.3) !important; }
.swal2-popup.kv-swal .swal2-icon.swal2-error{ border-color: var(--danger) !important; color: var(--danger) !important; }
.swal2-popup.kv-swal .swal2-icon.swal2-error [class^='swal2-x-mark-line']{ background-color: var(--danger) !important; }
.swal2-popup.kv-swal .swal2-icon.swal2-warning{ border-color: var(--warning) !important; color: var(--warning) !important; }
.swal2-popup.kv-swal .swal2-timer-progress-bar{ background: var(--accent) !important; }
.swal2-popup.kv-toast{
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border: 1px solid rgba(227,167,59,.3) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.45) !important;
}
.swal2-popup.kv-toast .swal2-title{ font-family: 'Figtree', sans-serif !important; font-size: 13.5px !important; font-weight: 600 !important; color: var(--text) !important; }

@media (max-width: 400px){
  .plan-amount{ font-size: 28px; }
  body{ padding: 20px 12px 48px; }
}

/* ============================================================
   Auth-specific components (index.php, verification.php,
   complete-profile.php, welcome.php) — not used by account/,
   kept here rather than added to the shared file above.
   ============================================================ */

.authbtn{
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px 16px; margin-bottom: 10px;
  border-radius: var(--radius-sm); font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 14.5px;
  cursor: pointer; border: 1px solid transparent;
  transition: filter 0.15s ease, transform 0.08s ease;
}
.authbtn:active{ transform: scale(0.98); }
.authbtn-kc{ background: linear-gradient(135deg,#3b82f6,#1d4ed8); color: #fff; }
.authbtn-kc:hover{ filter: brightness(1.08); }
.authbtn-google{ background: #fff; color: #2b2b2b; border-color: rgba(0,0,0,.08); }
.authbtn-google:hover{ filter: brightness(0.97); }
.authbtn-icon{
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 12px;
}
.authbtn-kc .authbtn-icon{ background: rgba(255,255,255,.2); color: #fff; font-size: 13px; }
.authbtn-google .authbtn-icon{ background: #fff; color: #4285F4; border: 1px solid rgba(0,0,0,.12); }

.authdivider{
  display: flex; align-items: center; gap: 12px; margin: 16px 0;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint);
}
.authdivider::before, .authdivider::after{ content: ""; flex: 1; height: 1px; background: var(--border-soft); }

.otp-row{ display: flex; gap: 8px; justify-content: center; margin: 18px 0 20px; }
.otp-box{
  width: 42px; height: 52px; text-align: center; font-size: 21px; font-weight: 700;
  font-family: 'Sora', sans-serif; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  outline: none;
}
.otp-box:focus{ border-color: var(--accent); }

.device-row{
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border-soft);
}
.device-row:last-child{ border-bottom: none; }
.device-icon{
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--bg-soft); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.device-meta{ flex: 1; min-width: 0; }
.device-name{ font-size: 14px; font-weight: 700; }
.device-sub{ font-size: 12px; color: var(--text-dim); margin-top: 1px; }
.device-status{ font-size: 11.5px; font-weight: 700; color: var(--success); flex-shrink: 0; }

.returning-note{
  font-size: 12px; color: var(--text-faint); text-align: center; margin: 22px 0 10px;
  border-top: 1px dashed var(--border-soft); padding-top: 16px;
}

/* Inline button spinner -- currentColor so it matches whatever text color the button
   already has (btn-primary's dark ink, btn-ghost's gold, authbtn-kc/google's white/dark). */
.btn-spinner{
  display: inline-block;
  width: 15px; height: 15px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  vertical-align: -3px;
  margin-right: 8px;
  opacity: .85;
  animation: kv-spin .6s linear infinite;
}
@keyframes kv-spin{ to{ transform: rotate(360deg); } }
.btn:disabled, .authbtn:disabled{ opacity: .75; cursor: not-allowed; }
