/* web/style.css — Vault UPI QR Gen — Professional Light Mode SaaS */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  /* Colors */
  --bg:          #f8f9fc;
  --bg-2:        #f1f3f8;
  --surface:     #ffffff;
  --surface-2:   #f8f9fc;
  --border:      #e5e7ef;
  --border-2:    #d1d5e0;
  --text-1:      #0f1117;
  --text-2:      #4b5263;
  --text-3:      #8991a4;
  --primary:     #4f46e5;
  --primary-h:   #4338ca;
  --primary-s:   rgba(79,70,229,0.08);
  --success:     #059669;
  --success-bg:  #ecfdf5;
  --error:       #dc2626;
  --error-bg:    #fef2f2;
  --warning:     #d97706;
  --blue:        #2563eb;
  --purple:      #7c3aed;
  --orange:      #ea580c;

  /* Spacing / radius */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);

  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-1);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Topbar ──────────────────────────────────────────────────────────── */
.topbar {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.topbar-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
}
.brand-icon {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.brand-icon.sm { width: 22px; height: 22px; border-radius: 5px; }
.brand-name {
  font-size: 16px; font-weight: 700; color: var(--text-1);
  letter-spacing: -0.3px;
}
.brand-sub {
  font-size: 12px; font-weight: 500; color: var(--text-3);
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 999px;
}
.logo-mark { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-tagline { font-size: 10px; color: var(--text-3); font-weight: 400; line-height: 1; }
.brand-x { color: var(--text-3); font-weight: 300; }

.topbar-right { display: flex; align-items: center; gap: 10px; }

.tg-nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; text-decoration: none;
  color: #2481cc; background: #e8f4fd;
  border: 1px solid rgba(36,129,204,0.2);
  padding: 6px 14px; border-radius: 999px;
  transition: all 0.15s;
}
.tg-nav-btn:hover { background: #d0e8f8; border-color: rgba(36,129,204,0.4); }

.topbar-pill {
  font-size: 12px; font-weight: 500;
  color: var(--primary);
  background: var(--primary-s);
  border: 1px solid rgba(79,70,229,0.15);
  padding: 4px 12px; border-radius: 999px;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 40px 24px 24px;
  max-width: 640px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; color: var(--success);
  background: var(--success-bg);
  border: 1px solid rgba(5,150,105,0.2);
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 16px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800; letter-spacing: -1px;
  line-height: 1.15; color: var(--text-1);
  margin-bottom: 12px;
}
.hero-sub {
  font-size: 15px; color: var(--text-2); line-height: 1.6;
  margin-bottom: 24px;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px 32px;
  box-shadow: var(--shadow-sm); display: inline-flex;
}
.stat { text-align: center; padding: 0 28px; }
.stat-val { display: block; font-size: 22px; font-weight: 700; color: var(--text-1); letter-spacing: -0.5px; }
.stat-label { display: block; font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.stat-div { width: 1px; height: 36px; background: var(--border); }

/* ── Main ────────────────────────────────────────────────────────────── */
.main {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px 48px;
}

/* ── Card shell (two-column) ─────────────────────────────────────────── */
.card-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 380px;
  overflow: hidden;
  margin-bottom: 24px;
}
.card-shell.single { grid-template-columns: 1fr; }
.card-shell.success-shell { grid-template-columns: 1fr 1fr; }

/* ── Form pane ───────────────────────────────────────────────────────── */
.form-pane {
  padding: 40px 40px;
  border-right: 1px solid var(--border);
}
.pane-header { margin-bottom: 28px; }
.pane-title { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; color: var(--text-1); }
.pane-sub   { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* ── Info pane ───────────────────────────────────────────────────────── */
.info-pane { padding: 40px 32px; background: var(--bg); }

.info-card {
  margin-bottom: 24px;
}
.info-step {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 20px;
}
.step-num {
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--primary); color: white;
  border-radius: 8px; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-title { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 3px; }
.step-desc  { font-size: 13px; color: var(--text-2); line-height: 1.6; }

.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
}
.trust-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-2);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.trust-row:last-child { border-bottom: none; padding-bottom: 0; }
.trust-row:first-child { padding-top: 0; }
.trust-icon {
  width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.trust-icon.green  { background: #dcfce7; color: #16a34a; }
.trust-icon.blue   { background: #dbeafe; color: #2563eb; }
.trust-icon.purple { background: #ede9fe; color: #7c3aed; }
.trust-icon.orange { background: #ffedd5; color: #ea580c; }

/* ── Fields ──────────────────────────────────────────────────────────── */
.field { margin-bottom: 20px; }
.field-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  margin-bottom: 8px;
}
.field-icon {
  width: 14px; height: 14px; flex-shrink: 0; color: var(--text-3);
}
.field-wrap { position: relative; }
.field-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  font-family: var(--sans); font-size: 14px;
  color: var(--text-1);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.field-input::placeholder { color: var(--text-3); }
.field-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.field-input.mono { font-family: var(--mono); font-size: 12.5px; }

.eye-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-3); padding: 4px;
  transition: color 0.15s;
}
.eye-btn:hover { color: var(--text-2); }

/* ── Help toggles ────────────────────────────────────────────────────── */
.help-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 12px;
  color: var(--primary); font-weight: 500;
  margin-top: 7px; padding: 0;
  transition: color 0.15s;
}
.help-toggle:hover { color: var(--primary-h); }
.help-chevron { transition: transform 0.25s; flex-shrink: 0; }
.help-toggle.open .help-chevron { transform: rotate(180deg); }

.help-box {
  display: none;
  margin-top: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
}
.help-box.open { display: block; animation: fadeIn 0.2s ease; }
.help-title {
  font-size: 12px; font-weight: 600; color: var(--text-1);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.help-steps {
  padding-left: 18px; font-size: 13px; color: var(--text-2);
  line-height: 1.7;
}
.help-steps li { margin-bottom: 3px; }
.help-steps code, .help-box code {
  font-family: var(--mono); font-size: 11.5px;
  background: var(--surface); border: 1px solid var(--border-2);
  padding: 1px 5px; border-radius: 4px; color: var(--text-1);
}
.help-steps kbd {
  font-family: var(--mono); font-size: 11px;
  background: var(--surface); border: 1px solid var(--border-2);
  border-bottom: 2px solid var(--border-2);
  padding: 1px 5px; border-radius: 4px; color: var(--text-1);
}
.help-note {
  margin-top: 10px; padding: 8px 12px;
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: var(--r-sm); font-size: 12px; color: #92400e;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary {
  width: 100%; padding: 12px 20px;
  background: var(--primary);
  border: none; border-radius: var(--r-sm);
  color: white; font-family: var(--sans); font-size: 14px; font-weight: 600;
  cursor: pointer; letter-spacing: 0.1px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(79,70,229,0.3), 0 4px 12px rgba(79,70,229,0.15);
  margin-top: 8px;
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-h);
  box-shadow: 0 2px 6px rgba(79,70,229,0.35), 0 8px 20px rgba(79,70,229,0.2);
  transform: translateY(-1px);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-outline {
  width: 100%; padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border-2); border-radius: var(--r-sm);
  color: var(--text-2); font-family: var(--sans); font-size: 14px; font-weight: 500;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.15s;
  margin-top: 12px;
}
.btn-outline:hover { background: var(--bg); border-color: var(--text-3); color: var(--text-1); }

.btn-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  animation: spin 0.65s linear infinite;
  display: none; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-note {
  text-align: center; font-size: 12px; color: var(--text-3);
  margin-top: 12px; display: flex; align-items: center;
  justify-content: center; gap: 5px;
}

/* ── Progress view ───────────────────────────────────────────────────── */
.progress-wrap { padding: 40px; }

.progress-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.progress-label {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 16px; color: var(--text-1);
}
.pulse-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(79,70,229,0.4);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(79,70,229,0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(79,70,229,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,70,229,0); }
}
.stage-chip {
  font-size: 11px; font-weight: 600; font-family: var(--mono);
  color: var(--primary); background: var(--primary-s);
  border: 1px solid rgba(79,70,229,0.2);
  padding: 4px 12px; border-radius: 999px;
  transition: all 0.3s;
}

.prog-bar-track {
  height: 4px; background: var(--bg-2);
  border-radius: 999px; margin-bottom: 24px; overflow: hidden;
}
.prog-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--primary), #818cf8);
  border-radius: 999px;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Step dots */
.steps-row {
  display: flex; align-items: center; margin-bottom: 28px;
}
.step-dot {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  flex-shrink: 0;
}
.step-dot .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-2);
  border: 2px solid var(--border-2);
  transition: all 0.4s;
}
.step-dot.active .dot { background: var(--primary); border-color: var(--primary); }
.step-dot.done .dot {
  background: var(--success); border-color: var(--success);
}
.step-dot span {
  font-size: 10px; color: var(--text-3); font-weight: 500;
  white-space: nowrap;
}
.step-dot.active span, .step-dot.done span { color: var(--text-2); }
.step-line {
  flex: 1; height: 2px; background: var(--border);
  margin: 0 4px; margin-bottom: 14px;
  transition: background 0.4s;
}
.step-line.done { background: var(--success); }

/* Terminal */
.terminal {
  background: #1a1b26;
  border-radius: var(--r-md);
  overflow: hidden;
  font-family: var(--mono); font-size: 12.5px;
}
.terminal-header {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  background: #13141f;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot.red    { background: #ff5f57; }
.term-dot.yellow { background: #febc2e; }
.term-dot.green2 { background: #28c840; }
.term-title {
  font-size: 11px; color: rgba(255,255,255,0.3); margin-left: 8px;
  font-family: var(--sans); font-weight: 500;
}
.terminal-body {
  padding: 16px; max-height: 260px; overflow-y: auto;
  line-height: 1.7;
}
.terminal-body::-webkit-scrollbar { width: 4px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }
.terminal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.log-line {
  display: flex; gap: 12px;
  animation: logSlide 0.18s ease;
}
@keyframes logSlide { from { opacity:0; transform:translateX(-4px); } to { opacity:1; transform:translateX(0); } }
.log-time { color: rgba(255,255,255,0.25); flex-shrink: 0; font-size: 11px; padding-top: 1px; }
.log-msg  { color: #a9b1d6; }
.log-stage-pill {
  display: inline-block; padding: 0 6px; border-radius: 4px;
  font-size: 10px; font-weight: 600; margin-right: 4px; vertical-align: middle;
}
.pill-checkout, .pill-stripe_init { background: rgba(96,165,250,0.15); color: #60a5fa; }
.pill-tax_update, .pill-payment_method { background: rgba(251,191,36,0.15); color: #fbbf24; }
.pill-stripe_confirm { background: rgba(248,113,113,0.15); color: #f87171; }
.pill-approve { background: rgba(167,139,250,0.15); color: #a78bfa; }
.pill-instructions { background: rgba(52,211,153,0.15); color: #34d399; }
.pill-reconnect { background: rgba(148,163,184,0.15); color: #94a3b8; }
.log-ok  { color: #4ade80; font-weight: 500; }
.log-err { color: #f87171; }
.log-dim { color: rgba(169,177,214,0.5); }

.progress-note {
  text-align: center; font-size: 13px; color: var(--text-3);
  margin-top: 16px;
}

/* ── Success view ────────────────────────────────────────────────────── */
.qr-pane {
  padding: 48px 40px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(160deg, #f8f9ff 0%, #f0f4ff 100%);
}
.success-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--success);
  background: var(--success-bg); border: 1px solid rgba(5,150,105,0.2);
  padding: 5px 14px; border-radius: 999px;
  margin-bottom: 28px;
}
.qr-frame {
  position: relative;
  background: white; border-radius: 16px;
  padding: 16px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06), var(--shadow-lg);
  margin-bottom: 20px;
}
.qr-frame img {
  display: block; width: 200px; height: 200px; border-radius: 8px;
}
.qr-shine {
  position: absolute; inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 60%);
  pointer-events: none;
}
.scan-label { font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.upi-apps { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.app-chip {
  font-size: 11px; font-weight: 500; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px;
}

.details-pane { padding: 48px 40px; }
.details-title { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; }
.details-sub { font-size: 14px; color: var(--text-2); margin-bottom: 28px; }

.countdown-card {
  background: linear-gradient(135deg, var(--primary), #818cf8);
  border-radius: var(--r-lg);
  padding: 20px 24px; margin-bottom: 20px; color: white;
}
.countdown-label { font-size: 12px; font-weight: 500; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.countdown-val { font-size: 28px; font-weight: 800; letter-spacing: -1px; font-family: var(--mono); margin-bottom: 12px; }
.countdown-bar-track { height: 3px; background: rgba(255,255,255,0.2); border-radius: 999px; }
.countdown-bar { height: 100%; background: white; border-radius: 999px; width: 100%; transition: width 1s linear; }

.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.meta-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; }
.meta-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-3); margin-bottom: 5px; font-weight: 500; }
.meta-val { font-size: 14px; font-weight: 600; color: var(--text-1); font-family: var(--mono); word-break: break-all; }
.meta-val.small { font-size: 12px; }
.meta-val.success { color: var(--success); font-size: 18px; }

.link-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 10px 14px;
  margin-bottom: 12px;
}
.link-val {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.copy-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--surface); border: 1px solid var(--border-2);
  color: var(--text-2); font-family: var(--sans); font-size: 12px; font-weight: 500;
  padding: 5px 12px; border-radius: 6px; cursor: pointer;
  transition: all 0.15s; flex-shrink: 0;
}
.copy-btn:hover { background: var(--primary-s); border-color: rgba(79,70,229,0.3); color: var(--primary); }
.copy-btn.copied { color: var(--success); border-color: rgba(5,150,105,0.3); background: var(--success-bg); }

/* ── Error view ──────────────────────────────────────────────────────── */
.error-wrap {
  padding: 60px 40px; text-align: center; max-width: 480px; margin: 0 auto;
}
.error-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--error-bg); color: var(--error);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.error-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.error-chip {
  display: inline-block;
  font-family: var(--mono); font-size: 12px;
  background: var(--error-bg); color: var(--error);
  border: 1px solid rgba(220,38,38,0.2);
  padding: 3px 10px; border-radius: 5px;
  margin-bottom: 16px;
}
.error-msg { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 28px; }

/* ── Bottom section ──────────────────────────────────────────────────── */
.bottom-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 24px;
}
.bottom-inner {
  max-width: 680px; margin: 0 auto;
}
.col-title {
  font-size: 18px; font-weight: 700; letter-spacing: -0.3px;
  margin-bottom: 24px; color: var(--text-1);
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--text-1); text-align: left;
  padding: 18px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--primary); }
.faq-chevron { flex-shrink: 0; transition: transform 0.25s; color: var(--text-3); }
.faq-q.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-a {
  display: none; padding-bottom: 16px;
  font-size: 13px; color: var(--text-2); line-height: 1.8;
}
.faq-a.open { display: block; animation: fadeIn 0.2s ease; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-note { font-size: 13px; color: var(--text-3); }

/* ── Views ───────────────────────────────────────────────────────────── */
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* ── Telegram Promo Banner ──────────────────────────────────────────── */
.tg-promo-section {
  background: linear-gradient(135deg, #0088cc 0%, #2481cc 50%, #1a6fb0 100%);
  padding: 28px 24px;
}
.tg-promo-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.tg-promo-left { display: flex; align-items: flex-start; gap: 20px; flex: 1; }
.tg-icon-wrap {
  width: 56px; height: 56px; flex-shrink: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.tg-promo-title {
  font-size: 18px; font-weight: 700; color: white;
  margin-bottom: 6px; letter-spacing: -0.3px;
}
.tg-promo-desc {
  font-size: 14px; color: rgba(255,255,255,0.8);
  line-height: 1.5; margin-bottom: 12px;
}
.tg-promo-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.tg-badge {
  font-size: 12px; font-weight: 500;
  background: rgba(255,255,255,0.15);
  color: white; padding: 3px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
}
.tg-join-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: #0088cc;
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  padding: 12px 24px; border-radius: 12px;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.tg-join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ── Bottom two-column ─────────────────────────────────────────────── */
.bottom-inner.two-col {
  display: grid; grid-template-columns: 1fr 400px; gap: 60px;
}

/* ── Contact / About card ──────────────────────────────────────────── */
.contact-col { }
.about-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
}
.about-logo-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.about-name { font-size: 16px; font-weight: 700; color: var(--text-1); }
.about-sub  { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.about-desc {
  font-size: 13px; color: var(--text-2); line-height: 1.7;
  margin-bottom: 18px;
}
.contact-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.contact-link {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 11px 14px; border-radius: var(--r-sm);
  border: 1px solid transparent; transition: all 0.15s;
}
.contact-link.tg {
  background: #e8f4fd; color: #0088cc;
  border-color: rgba(0,136,204,0.2);
}
.contact-link.tg:hover { background: #d0e8f8; border-color: rgba(0,136,204,0.4); }
.contact-link.tg-channel {
  background: var(--bg); color: var(--text-2);
  border-color: var(--border-2);
}
.contact-link.tg-channel:hover { background: var(--bg-2); color: var(--text-1); }
.contact-role {
  margin-left: auto; font-size: 11px; font-weight: 500;
  color: var(--text-3); background: var(--bg-2);
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--border);
}
.disclaimer {
  font-size: 12px; color: var(--warning);
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: var(--r-sm); padding: 10px 12px; line-height: 1.5;
}

/* ── Footer updated ────────────────────────────────────────────────── */
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-left { display: flex; flex-direction: column; gap: 2px; }
.footer-right {
  display: flex; align-items: center; gap: 8px;
}
.footer-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--text-3);
  text-decoration: none; transition: color 0.15s;
}
.footer-link:hover { color: #0088cc; }
.footer-dot { color: var(--border-2); }

/* ── Responsive additions ──────────────────────────────────────────── */

@media (max-width: 860px) {
  .card-shell, .card-shell.success-shell { grid-template-columns: 1fr; }
  .form-pane { border-right: none; border-bottom: 1px solid var(--border); padding: 28px 24px; }
  .info-pane { padding: 24px; }
  .qr-pane { border-right: none; border-bottom: 1px solid var(--border); padding: 32px 24px; }
  .details-pane { padding: 28px 24px; }
  .hero { padding: 40px 24px 32px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-div { display: none; }
  .stat { padding: 0 16px; }
  .steps-row { overflow-x: auto; padding-bottom: 4px; }
  .tg-promo-inner { flex-direction: column; align-items: flex-start; }
  .tg-join-btn { align-self: stretch; justify-content: center; }
  .bottom-inner.two-col { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { flex-direction: column; gap: 12px; align-items: flex-start; height: auto; padding: 20px 24px; }
  .topbar-right { gap: 8px; }
  .tg-nav-btn { display: none; }
  .brand-tagline { display: none; }
}

/* ── Bottom Section Layout ───────────────────────────────────────────── */
.bottom-section {
  background: var(--bg-2);
  padding: 60px 24px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.bottom-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-col { width: 100%; }
.col-title {
  font-size: 18px; font-weight: 700; color: var(--text-1);
  margin-bottom: 20px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--text-1);
  text-align: left;
}
.faq-chevron {
  transition: transform 0.3s;
  color: var(--text-3);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-a {
  display: none; padding-bottom: 16px;
  font-size: 13.5px; color: var(--text-2); line-height: 1.6;
}
.faq-item.open .faq-a { display: block; animation: fadeIn 0.2s; }

/* ── Trust Card ──────────────────────────────────────────────────────── */
.trust-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.trust-row {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500; color: var(--text-1);
}
.trust-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
}
.trust-icon.blue { background: var(--blue-bg); color: var(--blue); }
.trust-icon.green { background: var(--green-bg); color: var(--green); }
.trust-icon.purple { background: rgba(124,58,237,0.1); color: #7c3aed; }
.trust-icon.orange { background: rgba(245,158,11,0.1); color: #f59e0b; }

/* -- Bulk Tasks -------------------------------------------------------- */
.task-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.task-header {
  display: flex; justify-content: space-between; align-items: center;
}
.task-token {
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text-1);
  display: flex; align-items: center; gap: 8px;
}
.task-status-badge {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 3px 8px; border-radius: 4px;
}
.badge-running { background: var(--blue-bg, #eff6ff); color: var(--blue, #2563eb); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-error { background: var(--error-bg); color: var(--error); }
.badge-queued { background: var(--bg-2); color: var(--text-2); }

.task-body {
  display: flex; flex-direction: column; gap: 8px;
}
.task-progress-track {
  height: 4px; background: var(--bg-2); border-radius: 999px; overflow: hidden;
}
.task-progress-fill {
  height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), #818cf8);
  transition: width 0.3s linear;
}
.task-logs {
  font-family: var(--mono); font-size: 12px; color: var(--text-2);
  max-height: 80px; overflow-y: auto; background: var(--bg);
  padding: 8px 12px; border-radius: 6px; border: 1px solid var(--border-2);
}
.task-log-line { margin-bottom: 2px; }
.task-log-line.ok { color: var(--success); font-weight: 600; }
.task-log-line.err { color: var(--error); font-weight: 600; }

.task-result {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-2); padding: 12px; border-radius: var(--r-sm);
  border: 1px dashed var(--border-2);
}
.task-qr-link {
  font-family: var(--mono); font-size: 12px; color: var(--primary);
  text-decoration: none; word-break: break-all; margin-right: 12px;
}
.task-qr-link:hover { text-decoration: underline; }
