/* ══════════════════════════════════════
   StemSplit · Clean UI
   ══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0d0d0d;
  --surface:  #161616;
  --border:   #2a2a2a;
  --border2:  #222222;

  --text:     #ffffff;
  --muted:    #888888;
  --dim:      #555555;

  --accent:   #ffffff;
  --green:    #22c55e;

  --nav-h:    52px;
  --radius:   8px;
  --max-w:    460px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.logo-mark { width: 26px; height: 26px; }
.logo-accent { color: var(--text); }

.nav-tag {
  font-size: 0.72rem;
  color: var(--dim);
  letter-spacing: 0.02em;
}

/* ── Nav switcher (Vocals / Instruments pill) ── */
.nav-switcher {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.ns-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 13px;
  border-radius: 5px;
  transition: color 0.12s, background 0.12s;
  white-space: nowrap;
}

.ns-item svg { flex-shrink: 0; opacity: 0.7; }

.ns-item:hover:not(.active) {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.ns-item.active {
  color: #000;
  background: #ffffff;
}

.ns-item.active svg { opacity: 1; }

/* ── StemSepPro nav badge ── */
.ns-pro { color: #ff7700 !important; }
.ns-pro svg { stroke: #ff7700 !important; opacity: 1 !important; }
.ns-pro.active { color: #000 !important; background: linear-gradient(90deg,#ff7700,#ff3300) !important; }
.ns-pro.active svg { stroke: #000 !important; }

/* ── Buy Me a Coffee nav button ── */
.bmc-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: #ff813f;
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 7px;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}
.bmc-btn:hover { background: #ff6a1f; transform: translateY(-1px); }
.bmc-btn svg { flex-shrink: 0; }

/* ── Support popup (bottom-right) ── */
.support-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.support-popup.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.support-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.1s;
}
.support-close:hover { color: var(--text); }
.support-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.support-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.support-body {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
}
.support-cta {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #050512;
  background: linear-gradient(90deg, #00d4ff, #a78bfa);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 7px;
  transition: filter 0.15s;
}
.support-cta:hover { filter: brightness(1.1); }

/* ── Stage base ── */
#uploadSection { position: relative; }

.stage {
  min-height: calc(100vh - var(--nav-h));
  padding-top: var(--nav-h);
}

.center-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 20px 60px;
}

/* ══════════════════════════════════════
   STAGE 1: UPLOAD
   ══════════════════════════════════════ */

.card-wrap {
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-heading {
  margin-bottom: 8px;
}

.page-heading h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}

.page-heading p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Drop zone */
.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: #444;
  background: #1c1c1c;
}

.dz-icon {
  color: var(--dim);
  margin-bottom: 4px;
}

.dz-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.dz-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

/* File selected row */
.file-selected {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.audio-orb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #242424;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.3s ease;
  will-change: transform;
}

.audio-orb.is-sucking {
  animation: orb-vanish 0.9s cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
}

@keyframes orb-vanish {
  0%   { transform: scale(1);    opacity: 1;   }
  60%  { transform: scale(0.5);  opacity: 0.6; }
  100% { transform: scale(0);    opacity: 0;   }
}

.file-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.file-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 0.75rem;
  color: var(--muted);
}

.file-clear {
  background: none;
  border: none;
  color: var(--dim);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.file-clear:hover {
  color: var(--text);
  background: var(--border2);
}

/* Rate bar */
.rate-bar {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.rate-value { color: var(--text); font-weight: 500; }

.rate-track {
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.rate-fill {
  height: 100%;
  background: var(--text);
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* Limit reached */
.limit-msg {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Captcha */
.captcha-wrap { display: flex; flex-direction: column; gap: 6px; }

.captcha-err {
  font-size: 0.78rem;
  color: #f87171;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  background: var(--text);
  color: #000;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: -0.01em;
}

.btn-primary:hover:not(:disabled) { opacity: 0.88; }
.btn-primary:active:not(:disabled) { transform: scale(0.98); }

.btn-primary:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.btn-full { width: 100%; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: none;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover { border-color: #444; color: var(--text); }

/* Stats */
.stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--dim);
  justify-content: center;
  padding-top: 4px;
}

.stats-row strong { color: var(--muted); font-weight: 500; }
.stat-dot { color: var(--border); }

/* ══════════════════════════════════════
   STAGE 2: PROCESSING
   ══════════════════════════════════════ */

.warp-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#progressCard {
  position: relative;
  overflow: hidden;
  background: #000008;
}

.progress-hud {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 32px 48px;
  background: linear-gradient(transparent, rgba(0, 0, 10, 0.96));
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prog-file {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prog-bar {
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
}

.prog-fill {
  height: 100%;
  background: #fff;
  border-radius: 99px;
  transition: width 0.5s ease;
}

.prog-status {
  font-size: 0.78rem;
  color: var(--muted);
}

.prog-eta {
  font-size: 0.72rem;
  color: var(--dim);
  margin-top: 6px;
  min-height: 1.1em;
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════
   STAGE 3: RESULT
   ══════════════════════════════════════ */

.result-check {
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 12px;
}

.result-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.result-song {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Download button (injected by JS) */
.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 20px;
  background: var(--text);
  color: #000;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 10px;
  transition: opacity 0.15s;
}

.dl-btn:hover { opacity: 0.88; }

.auto-note {
  font-size: 0.75rem;
  color: var(--dim);
  margin-bottom: 16px;
}

/* ══════════════════════════════════════
   STAGE 4: ERROR
   ══════════════════════════════════════ */

.error-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2a1515;
  border: 1px solid #4a2020;
  color: #f87171;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.error-msg {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  word-break: break-word;
}

/* ══════════════════════════════════════
   TOS MODAL
   ══════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.80);
  backdrop-filter: blur(6px);
}

.modal-box {
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
}

.modal-header {
  margin-bottom: 20px;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.modal-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.modal-rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  padding: 0;
}

.modal-rules li {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 10px 12px;
  background: #1c1c1c;
  border: 1px solid var(--border2);
  border-radius: 6px;
  line-height: 1.45;
}

.modal-rules li strong { color: var(--text); font-weight: 500; }

.modal-captcha {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  text-align: center;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--dim);
}

.footer-brand { color: var(--dim); }
.footer-sep   { opacity: 0.3; }
.footer a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.footer a:hover { color: var(--text); }

/* ── Stem chips (instruments page preview) ── */
.stem-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.stem-chip {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px 10px;
}

/* ── Stem list (instruments results) ── */
.stem-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.stem-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.84rem;
  color: var(--text);
}

.stem-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .page-heading h1 { font-size: 1.3rem; }
  .center-stage { padding: calc(var(--nav-h) + 20px) 16px 40px; }
  .nav-tag { display: none; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

::selection { background: rgba(255,255,255,0.12); }

/* ════════════════════════════════════════════════════════════════════════════
   AUTH / UPGRADE / ACCOUNT pages
   ══════════════════════════════════════════════════════════════════════════ */

.nav-right { display: flex; gap: 10px; align-items: center; }
.nav-acct {
  font-size: 0.78rem; font-weight: 600; color: var(--text-dim);
  padding: 8px 14px; border-radius: 100px;
  border: 1px solid var(--border); text-decoration: none;
  letter-spacing: 0.02em; transition: all 0.15s;
}
.nav-acct:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.nav-acct.premium {
  background: linear-gradient(90deg, rgba(255,184,0,0.12), rgba(255,119,0,0.12));
  border-color: rgba(255,184,0,0.4); color: #ffb800;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-acct.premium svg { color: #ffb800; }

.auth-stage {
  min-height: calc(100vh - 200px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 24px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: rgba(12,12,32,0.6);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 40px 32px;
  text-align: center;
  backdrop-filter: blur(12px);
}
.auth-icon, .success-check, .error-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 18px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(167,139,250,0.15));
  border: 1px solid rgba(167,139,250,0.3);
  color: #a78bfa;
}
.success-check { font-size: 2.4rem; color: #4ade80;
  background: linear-gradient(135deg, rgba(74,222,128,0.15), rgba(34,197,94,0.15));
  border-color: rgba(74,222,128,0.3); }
.error-icon { font-size: 2.2rem; font-weight: 700; color: #f87171;
  background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.3); }
.auth-title {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.auth-sub { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 28px; line-height: 1.6; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-input {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 12px;
  background: rgba(0,0,0,0.3); color: var(--text);
  font-size: 0.95rem; font-family: inherit;
  outline: none; transition: border-color 0.15s;
}
.auth-input:focus { border-color: rgba(167,139,250,0.5); }
.auth-status { margin-top: 16px; min-height: 1.2em; font-size: 0.85rem; }
.auth-status.ok  { color: #4ade80; }
.auth-status.err { color: #f87171; }
.auth-footnote { color: var(--text-dim); font-size: 0.75rem; margin-top: 24px; line-height: 1.6; }
.auth-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.auth-meta { margin-top: 24px; color: var(--text-dim); font-size: 0.85rem; }
.auth-meta a { color: #a78bfa; text-decoration: none; }
.auth-meta a:hover { text-decoration: underline; }

.upgrade-stage { padding: 60px 24px 100px; max-width: 1100px; margin: 0 auto; }
.upgrade-head { text-align: center; margin-bottom: 48px; }
.upgrade-eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 100px;
  background: linear-gradient(90deg, rgba(255,184,0,0.15), rgba(255,119,0,0.15));
  border: 1px solid rgba(255,184,0,0.3); color: #ffb800;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.18em; margin-bottom: 16px;
}
.upgrade-title {
  font-size: 2.4rem; font-weight: 900; letter-spacing: -0.04em; margin-bottom: 12px;
  background: linear-gradient(90deg, #fff, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.upgrade-sub { color: var(--text-dim); font-size: 1rem; line-height: 1.6; max-width: 540px; margin: 0 auto; }

.plan-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 40px;
}
@media (max-width: 880px) { .plan-grid { grid-template-columns: 1fr; } }

.plan-card {
  position: relative;
  background: rgba(12,12,32,0.6); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px 28px;
  display: flex; flex-direction: column;
  backdrop-filter: blur(8px);
  transition: transform 0.2s, border-color 0.2s;
}
.plan-card:hover { transform: translateY(-4px); border-color: rgba(167,139,250,0.3); }
.plan-card.featured {
  border-color: rgba(167,139,250,0.5);
  background: linear-gradient(180deg, rgba(167,139,250,0.08), rgba(0,212,255,0.04));
  box-shadow: 0 0 40px rgba(167,139,250,0.15);
}
.plan-badge {
  position: absolute; top: -12px; right: 24px;
  padding: 4px 12px; border-radius: 100px;
  background: linear-gradient(90deg, #00d4ff, #a78bfa); color: #050512;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em;
}
.plan-badge.alt { background: linear-gradient(90deg, #ffb800, #ff7700); color: #fff; }
.plan-name { font-size: 0.85rem; font-weight: 700; color: var(--text-dim);
             letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.plan-amt { font-size: 2.4rem; font-weight: 900; letter-spacing: -0.03em; color: var(--text); }
.plan-cycle { color: var(--text-dim); font-size: 0.9rem; }
.plan-permo { color: #a78bfa; font-size: 0.8rem; font-weight: 600; margin-bottom: 20px; }
.plan-feats { list-style: none; padding: 0; margin: 24px 0; flex: 1; }
.plan-feats li {
  padding: 8px 0; color: var(--text-dim); font-size: 0.88rem; line-height: 1.5;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
}
.plan-feats li:last-child { border-bottom: 0; }
.plan-cta {
  display: block; width: 100%; padding: 14px;
  background: rgba(255,255,255,0.06);
  color: var(--text); font-weight: 700; font-size: 0.9rem;
  border: 1px solid var(--border); border-radius: 100px; cursor: pointer;
  letter-spacing: 0.04em; transition: all 0.15s;
}
.plan-cta:hover { background: rgba(255,255,255,0.1); }
.plan-cta.primary {
  background: linear-gradient(90deg, #00d4ff, #a78bfa);
  color: #050512; border-color: transparent;
}
.plan-cta.primary:hover { filter: brightness(1.1); }
.plan-cta:disabled { opacity: 0.6; cursor: wait; }

.upgrade-foot { text-align: center; }
.upgrade-foot p { color: var(--text-dim); font-size: 0.85rem; margin: 6px 0; }
.upgrade-foot p.muted { font-size: 0.75rem; opacity: 0.7; }
.upgrade-foot a { color: #a78bfa; text-decoration: none; }
.upgrade-foot a:hover { text-decoration: underline; }

.account-stage { padding: 60px 24px 80px; max-width: 640px; margin: 0 auto; }
.account-head { text-align: center; margin-bottom: 32px; }
.account-title { font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 6px; }
.account-sub { color: var(--text-dim); font-size: 0.9rem; }
.account-card {
  background: rgba(12,12,32,0.6); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; margin-bottom: 16px;
  backdrop-filter: blur(8px);
}
.acct-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,0.05);
}
.acct-row:last-of-type { border-bottom: 0; }
.acct-label { color: var(--text-dim); font-size: 0.85rem; font-weight: 600; }
.acct-value { color: var(--text); font-size: 0.95rem; font-weight: 600; }
.acct-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.acct-section-title { font-size: 0.85rem; font-weight: 700; color: var(--text-dim);
                      letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.acct-help { color: var(--text-dim); font-size: 0.85rem; line-height: 1.6; margin-bottom: 16px; }
.account-foot { text-align: center; margin-top: 32px; }

.tier-badge {
  display: inline-block; padding: 4px 14px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em;
}
.tier-badge.free    { background: rgba(255,255,255,0.06); color: var(--text-dim); border: 1px solid var(--border); }
.tier-badge.premium { background: linear-gradient(90deg, rgba(0,212,255,0.2), rgba(167,139,250,0.2));
                      color: #00d4ff; border: 1px solid rgba(0,212,255,0.4); }
.tier-badge.lifetime { background: linear-gradient(90deg, rgba(255,184,0,0.2), rgba(255,119,0,0.2));
                       color: #ffb800; border: 1px solid rgba(255,184,0,0.4); }

.usage-grid { display: grid; gap: 8px; }
.usage-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; background: rgba(0,0,0,0.2); border-radius: 10px;
  border: 1px solid var(--border);
}
.usage-name { font-size: 0.88rem; color: var(--text); }
.usage-val  { font-size: 0.88rem; color: var(--text-dim); font-weight: 600; }

.token-box {
  display: flex; gap: 8px; align-items: stretch;
  background: rgba(0,0,0,0.4); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px;
}
.token-box code {
  flex: 1; font-family: 'Space Mono', monospace; font-size: 0.75rem;
  color: var(--text-dim); padding: 8px 10px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.token-box .btn-ghost { padding: 8px 14px; font-size: 0.78rem; }

/* ── URL Input (OR divider pattern) ─────────────────────────────────────── */
.url-or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 10px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
}
.url-or-divider::before,
.url-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.url-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .875rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s, background .2s;
  font-family: inherit;
}
.url-input:hover  { border-color: rgba(255,255,255,.18); }
.url-input:focus  { border-color: rgba(255,255,255,.32); background: rgba(0,0,0,.5); }
.url-input::placeholder { color: var(--dim); }
.url-sites {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.url-site-tag {
  font-size: .68rem;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
}

