a { color: inherit; }

/* ── SPA SHELL ───────────────────────────── */
html, body { height: 100%; overflow: hidden; }

#main-content {
  position: fixed;
  top: 0; left: 0; right: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 64px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.view { display: none; }
.view.active { display: block; animation: viewFadeIn .15s ease; }
@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}

/* ── BOTTOM BAR ──────────────────────────── */
.bottom-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 44px;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 200;
  font-size: 12px;
  color: var(--muted);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}
.bottom-bar.is-revealed {
  transform: translateY(0);
  pointer-events: auto;
}
.bottom-left  { display: flex; align-items: center; gap: 0; }
.bottom-live  { display: flex; align-items: center; gap: 5px; font-weight: 600; color: var(--text); margin-right: 6px; }
.bottom-dot   { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: pulse 2s ease-in-out infinite; flex-shrink: 0; }
.bottom-sep   { margin: 0 8px; opacity: .35; }
.bottom-right { display: flex; align-items: center; }
.bottom-link  { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 12px; transition: color .12s; }
.bottom-link:hover { color: var(--text); }
footer { display: none; }

/* ── NAV active link ─────────────────────── */
.nav-links .nav-view-link { transition: color .15s; }
.nav-links .nav-view-link.active { color: var(--accent); font-weight: 600; }

/* ── NAV ─────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.3px;
  color: var(--text);
  font-weight: 700;
}
.nav-logo .logo-mark {
  width: 30px; height: 30px;
  flex-shrink: 0;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.nav-logo:hover .logo-mark {
  transform: rotate(15deg) scale(1.08);
}
.nav-logo .brand {
  color: var(--text);
}
.nav-logo .brand-accent {
  color: var(--text);
  margin: 0 2px;
}
.nav-logo .brand-sub {
  color: var(--muted);
  font-weight: 500;
  margin-left: 2px;
}
.nav-links { display: flex; gap: 32px; font-size: 14px; }
.nav-links a {
  color: var(--text-soft); text-decoration: none;
  font-weight: 500; transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-btn {
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.nav-btn:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

/* ── Nav avatar dropdown ── */
.nav-avatar-wrap { position: relative; }
.nav-avatar-btn {
  height: 36px;
  padding: 0 10px 0 12px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: box-shadow .15s, border-color .15s;
  flex-shrink: 0;
}
.nav-avatar-chevron { opacity: .75; transition: transform .2s; flex-shrink: 0; }
.nav-avatar-btn.open .nav-avatar-chevron { transform: rotate(180deg); }
.nav-avatar-btn:hover,
.nav-avatar-btn.open {
  box-shadow: 0 0 0 3px rgba(124,58,237,.25);
  border-color: rgba(124,58,237,.4);
}
.nav-avatar-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 210px;
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}
.nav-avatar-dropdown.open { display: flex; }
.nav-dd-email {
  padding: 12px 16px 10px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.nav-dd-item {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background .12s;
}
.nav-dd-item:hover { background: rgba(124,58,237,.07); }
.nav-dd-divider { height: 1px; background: var(--border); }
.nav-dd-item.nav-dd-logout { color: var(--danger, #ef4444); }
.nav-dd-item.nav-dd-logout:hover { background: rgba(239,68,68,.07); }

/* ── HERO ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 140px 20px 90px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 1000px 600px at 50% 0%,  #f5f3ff 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 15% 30%,  #faf5ff 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 85% 25%,  #eef2ff 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 800px 500px at 50% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 800px 500px at 50% 30%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  font-size: 13px; color: var(--text-soft);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.hero-badge .pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--accent-2);
  font-weight: 600; font-size: 11px;
  padding: 2px 8px; border-radius: 999px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% {opacity:1} 50% {opacity:.4} }

.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  max-width: 900px;
  color: var(--text);
}
.hero h1 .accent-text {
  background: linear-gradient(120deg, #7c3aed 0%, #a855f7 50%, #6d28d9 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 640px; line-height: 1.65;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex; gap: 12px;
  flex-wrap: wrap; justify-content: center;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: var(--shadow-accent);
  border: none; cursor: pointer;
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124,58,237,0.35);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--text);
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--border-strong);
  transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
  font-family: inherit; cursor: pointer;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.hero-note {
  margin-top: 22px; font-size: 13px; color: var(--muted-2);
  display: inline-flex; align-items: center; gap: 16px;
  flex-wrap: wrap; justify-content: center;
}
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 14px; height: 14px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 64px;
  max-width: 760px; width: 100%;
}
.stat {
  text-align: center;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px;
  backdrop-filter: blur(8px);
}
.stat-num {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 500; }

/* ── SECTION ─────────────────────────────── */
.section { padding: 100px 24px; position: relative; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-inner-narrow { max-width: 820px; margin: 0 auto; }
.section-soft { background: var(--bg-soft); }
.section-soft + .section-soft { border-top: 1px solid var(--border); }

.section-label {
  text-align: center; font-size: 12px;
  color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.section-label::before,
.section-label::after {
  content: ''; height: 1px; width: 30px;
  background: var(--accent); opacity: .35;
}
.section-title {
  text-align: center;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: var(--text);
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 64px;
  line-height: 1.65;
}


/* ── USE CASE FLOW ───────────────────────── */
.usecase-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr) ;
  gap: 0;
  position: relative;
  max-width: 1000px; margin: 0 auto;
}
.uc-step {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 28px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.uc-step + .uc-step { margin-left: -1px; }
.uc-step:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  z-index: 2;
}
.uc-step-num {
  position: absolute; top: 14px; right: 16px;
  font-size: 11px; font-weight: 700; color: var(--muted-2);
  letter-spacing: 1px;
}
.uc-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 26px; margin-bottom: 16px;
  background: var(--accent-soft);
  border: 1px solid #ddd6fe;
}
.uc-step h4 {
  font-size: 15px; font-weight: 700;
  margin-bottom: 6px; color: var(--text);
}
.uc-step p {
  font-size: 13px; color: var(--muted); line-height: 1.55;
  margin-bottom: 12px;
}
.uc-highlight {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-2);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px; font-weight: 600;
}
.uc-connector {
  display: grid; place-items: center;
  color: var(--accent);
}
.uc-connector svg { width: 24px; height: 24px; }

/* ── ACCOUNT VIEW ─────────────────────────── */
.acct-auth-center {
  min-height: calc(100vh - 108px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 36px 32px;
  width: 100%; max-width: 420px;
  box-shadow: 0 8px 40px rgba(0,0,0,.1);
}
.auth-notice {
  background: rgba(124,58,237,.08);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.5;
}
.auth-tabs {
  display: flex; gap: 4px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 8px; padding: 4px; margin-bottom: 24px;
}
.auth-tab {
  flex: 1; padding: 8px; border: none; background: none;
  border-radius: 6px; font-size: 14px; font-weight: 500;
  color: var(--muted); cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.auth-tab.active { background: var(--accent); color: #fff; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-form label { font-size: 13px; font-weight: 500; color: var(--muted); display: block; }
.auth-form input {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text);
  font-size: 14px; font-family: inherit; outline: none;
  transition: border-color .15s; box-sizing: border-box;
}
.auth-form input:focus { border-color: var(--accent); }
.auth-form .ref-hint { font-size: 11px; color: var(--muted); }
.auth-btn {
  padding: 11px; background: var(--accent); color: #fff;
  border: none; border-radius: 8px; font-size: 14px;
  font-weight: 600; cursor: pointer; font-family: inherit;
  transition: opacity .15s; width: 100%;
}
.auth-btn:hover { opacity: .85; }
.auth-btn:disabled { opacity: .5; cursor: default; }
.auth-msg { font-size: 13px; min-height: 20px; }
.auth-msg.error { color: #ef4444; }
.auth-msg.success { color: #22c55e; }
.auth-switch { font-size: 13px; color: var(--muted); text-align: center; margin-top: 4px; }
.auth-switch a { color: var(--accent); cursor: pointer; text-decoration: none; }

.acct-container { max-width: 900px; margin: 0 auto; padding: 24px 24px 60px; }
.acct-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; margin-bottom: 16px;
}
.acct-card h2 {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px;
}

#view-account .tabs-bar { display: none; }
#view-account .tab-btn {
  flex: 1; background: transparent; border: none;
  border-radius: 7px; padding: 9px 16px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  cursor: pointer; font-family: inherit; transition: all .15s;
}
#view-account .tab-btn:hover { background: var(--bg-soft); color: var(--text); }
#view-account .tab-btn.active { background: var(--accent); color: #fff; }
#view-account .tab-panel { display: none; }
#view-account .tab-panel.active { display: block; }

#view-account .tbl-wrap { overflow-x: auto; }
#view-account table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 540px; }
#view-account th {
  text-align: left; padding: 9px 10px; color: var(--muted);
  font-weight: 700; font-size: 11px; text-transform: uppercase;
  letter-spacing: .04em; border-bottom: 2px solid var(--border);
  white-space: nowrap; background: var(--bg-soft);
}
#view-account td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); }
#view-account tr:last-child td { border-bottom: none; }
#view-account tr:hover td { background: rgba(124,58,237,.04); }
#view-account .key-cell { font-family: 'SFMono-Regular', monospace; color: var(--accent); font-size: 12px; }
#view-account .ts { color: var(--muted); font-size: 11px; }
#view-account .empty { text-align: center; color: var(--muted); padding: 36px 0; font-size: 14px; }
#view-account .action-btns { display: flex; gap: 6px; flex-wrap: wrap; }
#view-account .copy-btn {
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--muted); font-size: 10px; padding: 3px 8px;
  border-radius: 4px; cursor: pointer; margin-left: 6px;
  font-weight: 600; font-family: inherit; transition: background .15s;
}
#view-account .copy-btn:hover { background: var(--border); color: var(--text); }

.badge { display: inline-block; padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.badge.active  { background: #d1fae5; color: #065f46; }
.badge.expired { background: #fef3c7; color: #92400e; }
.badge.revoked { background: #fee2e2; color: #991b1b; }
.badge.unused  { background: #f1f5f9; color: #475569; }
.tier-badge { display: inline-block; padding: 2px 9px; border-radius: 5px; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.tier-basic { background: #f1f5f9; color: #475569; }
.tier-plus  { background: #dbeafe; color: #1d4ed8; }
.tier-max   { background: #ede9fe; color: #6d28d9; }
.trial-badge { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 10px; font-weight: 700; background: rgba(245,158,11,.18); color: #d97706; margin-left: 5px; vertical-align: middle; }

.inline-order-form {
  background: rgba(124,58,237,.04); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px; margin-top: 12px; display: none;
}
.inline-order-form.open { display: block; }
.inline-order-form h4 { margin: 0 0 12px; font-size: 14px; color: var(--text); }
.inline-order-form .form-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.inline-order-form select {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg); color: var(--text); font-size: 13px;
  font-family: inherit; outline: none;
}
.inline-order-form select:focus { border-color: var(--accent); }
.form-price-preview { font-size: 13px; color: var(--muted); margin-top: 8px; }
.form-price-preview strong { color: var(--accent); font-size: 15px; }
.btn-renew, .btn-upgrade-u {
  padding: 6px 12px; font-size: 12px; font-weight: 600;
  border-radius: 6px; cursor: pointer; border: 1px solid;
  background: none; transition: all .15s; font-family: inherit;
}
.btn-renew { border-color: var(--accent); color: var(--accent); }
.btn-renew:hover { background: var(--accent); color: #fff; }
.btn-upgrade-u { border-color: #a855f7; color: #a855f7; }
.btn-upgrade-u:hover { background: #a855f7; color: #fff; }
.acct-btn-primary {
  padding: 8px 16px; background: var(--accent); color: #fff;
  border: none; border-radius: 7px; font-size: 13px;
  font-weight: 600; cursor: pointer; font-family: inherit; transition: opacity .15s;
}
.acct-btn-primary:hover { opacity: .85; }
.acct-btn-secondary {
  padding: 8px 14px; background: transparent; color: var(--muted);
  border: 1px solid var(--border); border-radius: 7px; font-size: 13px;
  cursor: pointer; font-family: inherit; transition: background .15s;
}
.acct-btn-secondary:hover { background: var(--bg-soft); }

.qr-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-width: 380px; margin: 0 auto;
}
.qr-card img { width: 200px; height: 200px; border-radius: 10px; border: 2px solid var(--border); }
.qr-info { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.qr-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.qr-row .qr-label { color: var(--muted); }
.qr-row .qr-val { font-weight: 600; font-family: monospace; color: var(--text); }
.qr-row .qr-amount { font-size: 20px; font-weight: 800; color: var(--accent); }
.qr-code-copy {
  width: 100%; background: var(--bg-soft); border: 1px dashed var(--accent);
  border-radius: 8px; padding: 10px 14px; text-align: center;
  font-family: monospace; font-size: 16px; font-weight: 700; color: var(--accent);
  letter-spacing: 2px; cursor: pointer; transition: background .15s;
}
.qr-code-copy:hover { background: rgba(124,58,237,.08); }
.qr-poll-status { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.qr-poll-status .dot-anim { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.qr-timer { font-size: 12px; color: var(--muted); }
.qr-cancel-btn {
  background: none; border: 1px solid var(--border); border-radius: 7px;
  padding: 7px 18px; font-size: 13px; color: var(--muted); cursor: pointer; font-family: inherit;
}
.qr-cancel-btn:hover { background: var(--bg-soft); }

/* ── Inline payment card (renew/upgrade QR) ── */
.acct-pay-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  max-width: 680px; margin: 20px auto 0;
  animation: card-in .18s ease;
}
@keyframes card-in { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.pay-hd {
  background: var(--accent); padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pay-hd-label { color: rgba(255,255,255,.7); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pay-hd-amount { color: #fff; font-size: 20px; font-weight: 800; margin-top: 3px; }
.pay-hd-code { color: #fff; font-family: monospace; font-size: 18px; font-weight: 800; letter-spacing: .07em; margin-top: 3px; }
.pay-countdown {
  background: #fffbeb; border-bottom: 1px solid #fde68a;
  padding: 8px 20px; text-align: center; font-size: 13px; color: #92400e; font-weight: 500;
}
.pay-countdown span { font-weight: 800; color: #d97706; }
[data-theme="dark"] .pay-countdown { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.2); color: #fbbf24; }
[data-theme="dark"] .pay-countdown span { color: #fcd34d; }
.pay-cols { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.pay-col { padding: 18px 20px; }
.pay-col + .pay-col { border-left: 1px solid var(--border); }
.pay-col-title { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; text-align: center; }
.pay-qr-wrap { text-align: center; }
.pay-qr-wrap img { width: 190px; height: 190px; border-radius: 10px; border: 1px solid var(--border); display: block; margin: 0 auto; }
.pay-qr-status { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; font-size: 13px; color: var(--accent); font-weight: 600; }
.pay-spinner { width: 14px; height: 14px; flex-shrink: 0; border: 2px solid rgba(124,58,237,.2); border-top-color: var(--accent); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-dl-btn { display: block; width: 100%; margin-top: 10px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--muted); border-radius: 8px; padding: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .15s; font-family: inherit; }
.pay-dl-btn:hover { background: rgba(124,58,237,.08); }
.pay-bank-title { font-size: 14px; font-weight: 700; color: var(--text); text-align: center; margin-bottom: 12px; }
.pay-trow { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); gap: 8px; }
.pay-trow:last-of-type { border-bottom: none; }
.pay-tlabel { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.pay-tval { font-size: 13px; font-weight: 700; color: var(--text); text-align: right; flex: 1; }
.pay-tval.mono { font-family: monospace; color: var(--accent); word-break: break-all; }
.pay-tval.accent { color: var(--accent); }
.pay-tnote { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 12px; font-size: 11.5px; color: #92400e; margin-top: 10px; line-height: 1.5; }
[data-theme="dark"] .pay-tnote { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.2); color: #fbbf24; }
.pay-copy-btn { flex-shrink: 0; padding: 3px 8px; font-size: 11px; font-weight: 600; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; background: var(--bg-soft); color: var(--muted); transition: all .15s; font-family: inherit; }
.pay-copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.pay-footer { display: flex; align-items: center; justify-content: flex-end; padding: 12px 20px; }
.pay-cancel-btn { font-size: 13px; color: var(--muted); border: 1px solid var(--border); border-radius: 8px; padding: 7px 14px; background: none; cursor: pointer; font-family: inherit; transition: border-color .15s; }
.pay-cancel-btn:hover { border-color: var(--danger, #ef4444); color: var(--danger, #ef4444); }
@media (max-width: 560px) {
  .pay-cols { grid-template-columns: 1fr; }
  .pay-col + .pay-col { border-left: none; border-top: 1px solid var(--border); }
}

.acct-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 9000;
  align-items: center; justify-content: center;
}
.acct-modal-overlay.open { display: flex; }
.acct-modal-box {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 32px 28px;
  width: 420px; max-width: 92vw;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  text-align: center;
}
.acct-modal-box h3 { font-size: 18px; color: var(--text); margin: 12px 0 8px; }
.acct-modal-box p { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.acct-key-display {
  font-family: monospace; font-size: 13px; font-weight: 700;
  color: var(--accent); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; margin: 0 0 16px; cursor: pointer; word-break: break-all;
}
.btn-modal-close {
  padding: 10px 28px; background: var(--accent); color: #fff;
  border: none; border-radius: 8px; font-size: 14px;
  font-weight: 600; cursor: pointer; font-family: inherit;
}
.btn-modal-close:hover { opacity: .85; }

/* ── FEATURES GRID ───────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.feature-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform .2s, box-shadow .25s, border-color .2s;
  overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.04) 0%, transparent 50%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.feature-card:hover {
  border-color: #c4b5fd;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  font-size: 24px;
  margin-bottom: 16px;
  border: 1px solid #ddd6fe;
}
.feature-card h3 {
  font-size: 17px; font-weight: 700;
  margin-bottom: 8px; color: var(--text);
  letter-spacing: -0.2px;
}
.feature-card p {
  font-size: 14px; color: var(--muted);
  line-height: 1.6;
}
.feature-tag {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px; font-weight: 600;
  color: var(--success);
}
.feature-tag.purple { background: var(--accent-soft); border-color: #ddd6fe; color: var(--accent-2); }
.feature-tag.orange { background: #fff7ed; border-color: #fed7aa; color: var(--warning); }
.feature-tag.teal   { background: #ecfeff; border-color: #a5f3fc; color: var(--info); }

/* ── WORKFLOW ────────────────────────────── */
.workflow-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.wf-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.wf-item:hover {
  border-color: #c4b5fd;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.wf-item-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  font-size: 20px;
  border: 1px solid #ddd6fe;
}
.wf-item h4 {
  font-size: 15px; font-weight: 700;
  margin-bottom: 4px; color: var(--text);
}
.wf-item p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.wf-item p code {
  background: var(--accent-soft);
  color: var(--accent-2);
  padding: 1px 6px; border-radius: 4px;
  font-size: 12px; font-weight: 600;
}

/* ── ADVANCED ────────────────────────────── */
.advanced-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
}
.adv-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px; color: var(--text-soft);
  transition: border-color .2s, background .2s;
}
.adv-item:hover {
  border-color: #c4b5fd;
  background: #fdfcff;
}
.adv-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  font-size: 16px;
}

/* ── STEPS ───────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px; margin: 0 auto;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px; left: 12%; right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  background: var(--bg-soft);
  padding: 0 12px;
}
.step-num {
  width: 56px; height: 56px;
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 800;
  color: var(--accent);
  margin-bottom: 20px;
  box-shadow: 0 0 0 6px var(--bg-soft), var(--shadow-md);
}
.step h3 {
  font-size: 17px; font-weight: 700;
  margin-bottom: 8px; color: var(--text);
}
.step p { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 240px; }

/* ── DOWNLOAD / VERSION ──────────────────── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}
.dl-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column;
  gap: 22px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  overflow: hidden;
}
.dl-card-windows, .dl-card-mac {
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
  border-color: #ddd6fe;
  box-shadow: var(--shadow-md);
}
.dl-card-windows:hover, .dl-card-mac:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.dl-card-soon {
  background: var(--bg-soft);
  border-style: dashed;
  border-color: var(--border-strong);
}
.dl-card-soon-stripe {
  position: absolute;
  top: 14px; right: -36px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 40px;
  transform: rotate(35deg);
  box-shadow: var(--shadow-sm);
}

.dl-card-head {
  display: flex; align-items: flex-start; gap: 16px;
}
.dl-os-icon {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.dl-os-icon svg { width: 30px; height: 30px; }
.dl-os-windows { background: linear-gradient(135deg, #0078d4 0%, #00408a 100%); }
.dl-os-mac     { background: linear-gradient(135deg, #4b5563 0%, #111827 100%); }

.dl-card-soon .dl-os-icon { opacity: 0.65; }

.dl-os-info { flex: 1; min-width: 0; }
.dl-os-info h3 {
  font-size: 20px; font-weight: 800;
  color: var(--text);
  letter-spacing: -0.4px;
  margin: 4px 0 4px;
}
.dl-os-info p {
  font-size: 13px; color: var(--muted);
}

.dl-os-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.dl-os-badge-live {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: var(--success);
}
.dl-os-badge-live .dl-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}
.dl-os-badge-soon {
  background: var(--accent-soft);
  border-color: #ddd6fe;
  color: var(--accent-2);
}

.dl-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.dl-card-soon .dl-card-meta {
  background: rgba(255,255,255,0.5);
  border-style: dashed;
}
.dl-meta-label {
  display: block;
  font-size: 11px; font-weight: 600;
  color: var(--muted-2);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 4px;
}
.dl-card-meta strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.dl-card-windows .dl-card-meta strong:first-of-type, .dl-card-mac .dl-card-meta strong:first-of-type { color: var(--accent); }

.dl-card-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
}

@media (max-width: 720px) {
  .download-grid { grid-template-columns: 1fr; }
  .dl-card-soon-stripe { font-size: 10px; padding: 3px 36px; right: -32px; }
}