/* =====================================================================
   Tiger Captcha — Client Dashboard design system
   Tokens → base → components → layout → pages → utilities
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* brand + semantic (theme-independent hues, tinted per theme below) */
  --brand:      #ea7a2e;
  --brand-600:  #d76a1f;
  --brand-700:  #b9571a;
  --brand-soft: rgba(234,122,46,.12);

  --success: #12b76a;  --success-soft: rgba(18,183,106,.13);
  --danger:  #f04438;  --danger-soft:  rgba(240,68,56,.13);
  --warning: #f79009;  --warning-soft: rgba(247,144,9,.13);
  --info:    #2e90fa;  --info-soft:    rgba(46,144,250,.13);

  /* light theme surfaces + ink */
  --bg:        #f6f7f9;
  --surface:   #ffffff;
  --surface-2: #f1f3f6;
  --surface-3: #e9edf2;
  --border:    #e5e8ee;
  --border-2:  #d8dee6;
  --text:      #101828;
  --text-2:    #475467;
  --muted:     #98a2b3;
  --ring:      rgba(234,122,46,.35);
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06);
  --shadow:    0 1px 3px rgba(16,24,40,.08), 0 8px 24px rgba(16,24,40,.06);
  --shadow-lg: 0 12px 40px rgba(16,24,40,.16);

  --radius:    14px;
  --radius-sm: 9px;
  --radius-xs: 6px;
  --sidebar-w: 248px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}
:root[data-theme="dark"] {
  --bg:        #0b0e14;
  --surface:   #121722;
  --surface-2: #1a2130;
  --surface-3: #222b3b;
  --border:    #232c3a;
  --border-2:  #2e3a4c;
  --text:      #eef2f8;
  --text-2:    #aeb9c9;
  --muted:     #6f7d92;
  --brand:      #f0883e;
  --brand-600:  #e4762b;
  --brand-soft: rgba(240,136,62,.14);
  --ring:      rgba(240,136,62,.4);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow:    0 2px 8px rgba(0,0,0,.35), 0 12px 32px rgba(0,0,0,.35);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.5);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { line-height: 1.25; letter-spacing: -.01em; }
input, button, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand-soft); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dim { color: var(--text-2); }
.tabular { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 10px; border: 3px solid var(--bg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-600); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-outline { background: transparent; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: var(--radius-xs); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn .spin { width: 15px; height: 15px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.input, .select, .textarea {
  height: 42px; padding: 0 13px; width: 100%;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; padding: 11px 13px; resize: vertical; min-height: 84px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); outline: none; }
.input::placeholder { color: var(--muted); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-right: 44px; }
.input-affix { position: absolute; right: 6px; display: inline-flex; }
.field-error { color: var(--danger); font-size: 12.5px; min-height: 0; }
.field.invalid .input { border-color: var(--danger); }
.field.invalid .input:focus { box-shadow: 0 0 0 4px var(--danger-soft); }
.help { font-size: 12.5px; color: var(--muted); }
.checkbox { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; color: var(--text-2); }
.checkbox input { width: 17px; height: 17px; accent-color: var(--brand); }

/* password strength */
.pw-meter { display: flex; gap: 5px; margin-top: 8px; }
.pw-meter i { height: 5px; flex: 1; border-radius: 3px; background: var(--surface-3); transition: background .2s; }
.pw-meter.s1 i:nth-child(1){ background: var(--danger); }
.pw-meter.s2 i:nth-child(-n+2){ background: var(--warning); }
.pw-meter.s3 i:nth-child(-n+3){ background: var(--info); }
.pw-meter.s4 i{ background: var(--success); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 22px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 15.5px; font-weight: 650; }
.card-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card-body { padding: 20px 22px; }

/* stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat .top { display: flex; align-items: center; justify-content: space-between; }
.stat .label { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.stat .ico svg { width: 20px; height: 20px; }
.stat .value { font-size: 27px; font-weight: 750; margin-top: 12px; letter-spacing: -.02em; }
.stat .foot { font-size: 12.5px; color: var(--text-2); margin-top: 5px; display: flex; align-items: center; gap: 6px; }
.trend { font-weight: 650; display: inline-flex; align-items: center; gap: 3px; }
.trend.up { color: var(--success); } .trend.down { color: var(--danger); }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 650; }
.badge.green { color: var(--success); background: var(--success-soft); }
.badge.red   { color: var(--danger);  background: var(--danger-soft); }
.badge.amber { color: var(--warning); background: var(--warning-soft); }
.badge.blue  { color: var(--info);    background: var(--info-soft); }
.badge.brand { color: var(--brand);   background: var(--brand-soft); }
.badge.gray  { color: var(--text-2);  background: var(--surface-3); }
.dot-b { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 13px 20px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; background: var(--surface-2); }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.amt-pos { color: var(--success); font-weight: 650; }
.amt-neg { color: var(--text); font-weight: 650; }

/* ---------- Empty / skeleton / spinner ---------- */
.empty { text-align: center; padding: 46px 24px; color: var(--muted); }
.empty .ico { width: 52px; height: 52px; border-radius: 15px; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 14px; color: var(--text-2); }
.empty h4 { color: var(--text); font-size: 15px; margin-bottom: 4px; }
.empty p { font-size: 13px; max-width: 320px; margin: 0 auto 14px; }
.skel { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 8px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent); animation: shimmer 1.3s infinite; }
:root[data-theme="light"] .skel::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.spin { display: inline-block; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; width: 16px; height: 16px; animation: rot .6s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- Toasts ---------- */
.toast-host { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transform: translateX(120%); opacity: 0; transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.toast.show { transform: translateX(0); opacity: 1; }
.toast .t-ico { width: 22px; height: 22px; flex: none; border-radius: 7px; display: grid; place-items: center; margin-top: 1px; }
.toast.success .t-ico { color: var(--success); background: var(--success-soft); }
.toast.error   .t-ico { color: var(--danger);  background: var(--danger-soft); }
.toast.info    .t-ico { color: var(--info);    background: var(--info-soft); }
.toast .t-title { font-weight: 650; font-size: 13.5px; }
.toast .t-msg { font-size: 12.5px; color: var(--text-2); margin-top: 1px; }
.toast .t-close { margin-left: auto; color: var(--muted); background: none; border: none; cursor: pointer; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(8,12,20,.55); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .2s; }
.modal-overlay.show { opacity: 1; }
.modal { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); transform: translateY(10px) scale(.98); transition: transform .22s; overflow: hidden; }
.modal-overlay.show .modal { transform: none; }
.modal-head { padding: 20px 22px 0; }
.modal-head h3 { font-size: 17px; }
.modal-head p { font-size: 13px; color: var(--text-2); margin-top: 5px; }
.modal-body { padding: 18px 22px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 22px; border-top: 1px solid var(--border); background: var(--surface-2); }

/* =====================================================================
   Layout
   ===================================================================== */
.app-root { min-height: 100vh; }

/* Auth shell */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; place-items: center; padding: 24px;
  background: radial-gradient(1100px 520px at 90% -10%, var(--brand-soft), transparent 60%), var(--bg); }
.auth-card { width: min(430px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow-lg); padding: 34px 32px; animation: rise .4s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.auth-card h1 { font-size: 22px; margin-bottom: 4px; }
.auth-card .sub { color: var(--text-2); font-size: 13.5px; margin-bottom: 24px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--text-2); }
.auth-alt a { color: var(--brand); font-weight: 600; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.link { color: var(--brand); font-weight: 600; cursor: pointer; font-size: 13px; }

/* App shell */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; padding: 18px 14px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 10px 20px; }
.brand-badge { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800;
  background: linear-gradient(140deg, var(--brand), var(--brand-700)); box-shadow: 0 4px 12px var(--brand-soft); }
.brand-logo { flex: none; object-fit: contain; display: block; }
.brand-name { font-weight: 750; font-size: 16px; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav .nav-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; margin: 16px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-2);
  font-weight: 550; font-size: 14px; cursor: pointer; transition: background .13s, color .13s; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.nav a svg { width: 19px; height: 19px; flex: none; }
.nav a .count { margin-left: auto; }
.side-foot { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; }
.nav-item-logout { display: flex; align-items: center; gap: 11px; padding: 10px 12px; margin-top: 4px; border-radius: var(--radius-sm);
  color: var(--danger); font-weight: 600; font-size: 14px; cursor: pointer; transition: background .13s; }
.nav-item-logout:hover { background: var(--danger-soft); }
.nav-item-logout svg { width: 19px; height: 19px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  color: #fff; background: linear-gradient(140deg, var(--brand), var(--brand-700)); }
.user-chip .u-name { font-weight: 650; font-size: 13.5px; }
.user-chip .u-mail { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; max-width: 130px; white-space: nowrap; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 28px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar .page-title { font-size: 20px; font-weight: 720; }
.topbar .page-sub { font-size: 12.5px; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--text-2); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.content { padding: 24px 28px 48px; max-width: 1240px; width: 100%; }
.page-section { margin-bottom: 22px; }
.section-title { font-size: 15px; font-weight: 680; margin-bottom: 13px; }

/* menu (mobile toggle) */
.menu-btn { display: none; }
.scrim { display: none; }

/* grids */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.g-2-1 { grid-template-columns: 2fr 1fr; }
@media (max-width: 1000px) { .grid-2, .grid-3, .g-2-1 { grid-template-columns: 1fr; } }

/* info rows (account info) */
.info-list { display: grid; gap: 2px; }
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--muted); font-size: 13px; }
.info-row .v { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }

/* key display */
.key-box { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px; font-family: var(--mono); font-size: 13.5px; }
.key-box .kval { flex: 1; overflow: hidden; text-overflow: ellipsis; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.plan.current { border-color: var(--success); box-shadow: 0 0 0 1px var(--success), var(--shadow); }
.plan .ribbon { position: absolute; top: 16px; right: 16px; }
.plan .p-name { font-size: 16px; font-weight: 700; }
.plan .p-desc { font-size: 13px; color: var(--text-2); margin-top: 4px; min-height: 34px; }
.plan .p-price { font-size: 38px; font-weight: 800; letter-spacing: -.02em; margin: 14px 0 2px; }
.plan .p-price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan .p-limits { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: var(--brand); margin: 4px 0 2px; }
.plan .p-limits svg { flex-shrink: 0; }
.plan .p-feats { list-style: none; display: grid; gap: 10px; margin: 18px 0 22px; }
.plan .p-feats li { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.plan .p-feats svg { color: var(--success); flex: none; width: 18px; height: 18px; }
.plan .btn { margin-top: auto; }

/* segmented control */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; }
.seg button { border: none; background: none; padding: 7px 14px; border-radius: var(--radius-xs); font-weight: 600; font-size: 13px; color: var(--text-2); cursor: pointer; }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* charts */
.chart { width: 100%; position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.axis-label { fill: var(--muted); font-size: 10.5px; }
.gridline { stroke: var(--border); }
.chart-tip { position: fixed; z-index: 80; pointer-events: none; opacity: 0; background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 8px; padding: 8px 11px; box-shadow: var(--shadow-lg); font-size: 12px; transition: opacity .1s; }
.chart-tip.show { opacity: 1; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.donut-wrap { display: flex; align-items: center; gap: 22px; }
.donut-center { text-align: center; }

/* responsive */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 120; width: 280px; transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .menu-btn { display: grid; }
  .scrim.show { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.4); }
  .content { padding: 18px 16px 40px; }
  .topbar { padding: 14px 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } }

.fade-in { animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* payment methods (Add Balance modal) */
.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 16px; }
.pay-method { position: relative; display: flex; align-items: center; gap: 9px; padding: 12px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-2); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--text-2); }
.pay-method:hover { background: var(--surface-2); }
.pay-method.active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.pay-method.soon { opacity: .72; }
.pay-method em { position: absolute; top: 6px; right: 8px; font-style: normal; font-size: 10px; font-weight: 700; color: var(--muted);
  background: var(--surface-3); padding: 1px 6px; border-radius: 999px; }
.pay-panel { min-height: 40px; }

/* code block */
.code-block { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; overflow-x: auto; color: var(--text-2); white-space: pre; }

/* notifications + switch */
.notif-list { display: grid; gap: 4px; }
.notif-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.notif-row:last-child { border-bottom: none; }
.switch { appearance: none; -webkit-appearance: none; width: 40px; height: 23px; border-radius: 999px; background: var(--surface-3);
  border: 1px solid var(--border-2); position: relative; cursor: pointer; flex: none; transition: background .18s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-sm); transition: transform .18s; }
.switch:checked { background: var(--brand); border-color: var(--brand); }
.switch:checked::after { transform: translateX(17px); }

/* ---- Email-verification banner ---- */
.verify-banner {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 24px 0; padding: 12px 16px;
  background: var(--warning-soft); border: 1px solid var(--warning);
  border-radius: var(--radius-sm); color: var(--text); font-size: 14px;
}
.verify-banner svg { color: var(--warning); flex-shrink: 0; }
.verify-banner span { flex: 1; min-width: 0; }
.verify-banner .btn { flex-shrink: 0; }
@media (max-width: 640px) {
  .verify-banner { flex-wrap: wrap; margin: 12px 16px 0; }
  .verify-banner span { flex-basis: 100%; }
}
