/* ── FinVista Login Page ──────────────────────────────────────── */

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

:root {
  --bg:         #02040a;
  --card:       #0d1220;
  --card-b:     rgba(99,102,241,.22);
  --input-bg:   #080c16;
  --input-b:    rgba(255,255,255,.08);
  --text:       #eef2ff;
  --text-mid:   #8896b3;
  --text-dim:   #3d4d6a;
  --blue:       #6366f1;
  --blue-l:     #818cf8;
  --blue-d:     #4338ca;
  --green:      #10b981;
  --border-foc: rgba(99,102,241,.55);
  --shadow-foc: rgba(99,102,241,.15);
}
[data-theme="light"] {
  --bg:         #eef2ff;
  --card:       #ffffff;
  --card-b:     rgba(99,102,241,.18);
  --input-bg:   #f5f7ff;
  --input-b:    rgba(99,102,241,.14);
  --text:       #0f172a;
  --text-mid:   #475569;
  --text-dim:   #94a3b8;
}

html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}

/* ── Background blobs ────────────────────────────────────────── */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  transition: background .3s;
}
.blob-1, .blob-2, .blob-3 { display: none; }

[data-theme="light"] .blob-1 { background: rgba(99,102,241,.08); }
[data-theme="light"] .blob-2 { background: rgba(139,92,246,.07); }
[data-theme="light"] .blob-3 { background: rgba(16,185,129,.05); }

@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,40px) scale(1.05); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-25px,-30px) scale(1.04); } }
@keyframes float3 { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.08); } }

/* ── Theme toggle ────────────────────────────────────────────── */
.theme-toggle {
  position: fixed;
  top: 18px; right: 18px;
  z-index: 100;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: all .2s;
}
[data-theme="light"] .theme-toggle { border-color: rgba(0,0,0,.1); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.theme-toggle:hover { transform: scale(1.1) rotate(10deg); }

/* ── Layout ──────────────────────────────────────────────────── */
.auth-layout {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ── Left panel (Copilot-style hero) ────────────────────────── */
.auth-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 48px 36px;
  background: #02040a;
  border-right: 1px solid rgba(255,255,255,.04);
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .auth-left {
  background: #f5f7fb;
  border-right-color: rgba(15,23,42,.08);
}
/* subtle radial glow */
.auth-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(99,102,241,.12), transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(236,72,153,.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .auth-left::before {
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(99,102,241,.09), transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(236,72,153,.05), transparent 70%);
}

/* Top bar */
.hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 3;
  margin-bottom: 24px;
}
.hero-logo { display: flex; align-items: center; gap: 10px; }
.hero-logo-gem { font-size: 1.5rem; filter: drop-shadow(0 2px 8px rgba(99,102,241,.55)); }
.hero-logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.3px;
}
.hero-nav {
  display: flex; gap: 28px;
  font-size: .82rem;
  color: var(--text-mid);
  font-weight: 500;
}
.hero-nav span, .hero-nav-link {
  cursor: pointer;
  transition: color .2s;
  color: var(--text-mid);
  text-decoration: none;
  position: relative;
  padding: 4px 2px;
}
.hero-nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.hero-nav-link:hover { color: var(--text, #fff); }
.hero-nav-link:hover::after { transform: scaleX(1); }

/* Stage */
.hero-stage {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  min-height: 520px;
}

.hero-headline {
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -2px;
  color: #e7ebf5;
  z-index: 2;
  position: relative;
  margin: 0;
}
[data-theme="light"] .hero-headline { color: #0f172a; }

.hero-grad {
  background: linear-gradient(135deg, #a5b4fc, #e9d5ff 50%, #fbcfe8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 800;
}
[data-theme="light"] .hero-grad {
  background: linear-gradient(135deg, #6366f1, #8b5cf6 50%, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin-top: 26px;
  font-size: 1.02rem;
  color: var(--text-mid);
  line-height: 1.55;
  font-weight: 500;
  z-index: 2;
  position: relative;
  max-width: 480px;
}

/* Pills — Copilot style */
.pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  border-radius: 99px;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .05em;
  color: #fff;
  text-transform: uppercase;
  z-index: 2;
  box-shadow:
    0 10px 24px rgba(0,0,0,.35),
    inset 0 -4px 8px rgba(0,0,0,.25),
    inset 0 2px 4px rgba(255,255,255,.22);
  animation: pillFloat 6s ease-in-out infinite;
  user-select: none;
  white-space: nowrap;
}
.pill > span { font-size: 1rem; }
.pill-green  { background: linear-gradient(180deg, #86efac, #22c55e); }
.pill-purple { background: linear-gradient(180deg, #c4b5fd, #8b5cf6); }
.pill-red    { background: linear-gradient(180deg, #fca5a5, #ef4444); }
.pill-slate  { background: linear-gradient(180deg, #cbd5e1, #64748b); }
.pill-orange { background: linear-gradient(180deg, #fdba74, #f97316); }
.pill-pink   { background: linear-gradient(180deg, #f9a8d4, #ec4899); }
.pill-amber  { background: linear-gradient(180deg, #fcd34d, #f59e0b); }

.pill-green  { animation-delay: 0s;   transform: rotate(-8deg); }
.pill-purple { animation-delay: .6s;  transform: rotate(6deg); }
.pill-red    { animation-delay: 1.2s; transform: rotate(12deg); }
.pill-slate  { animation-delay: 1.8s; transform: rotate(-12deg); }
.pill-orange { animation-delay: 2.4s; transform: rotate(-6deg); }
.pill-pink   { animation-delay: 3s;   transform: rotate(10deg); }
.pill-amber  { animation-delay: 3.6s; transform: rotate(-10deg); }

@keyframes pillFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

/* Hero footer */
.hero-footer {
  position: relative;
  z-index: 2;
  font-size: .75rem;
  color: var(--text-dim);
  padding-top: 12px;
}
.hero-footer strong { color: var(--text-mid); }

/* ── Right panel ─────────────────────────────────────────────── */
.auth-right {
  width: 460px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 32px;
  gap: 20px;
  background: #05080f;
}
[data-theme="light"] .auth-right { background: #ffffff; }

/* ── Auth card ───────────────────────────────────────────────── */
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--card-b);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,.4), 0 0 0 1px rgba(99,102,241,.08);
  transition: background .3s, border-color .3s;
}
[data-theme="light"] .auth-card {
  box-shadow: 0 8px 40px rgba(99,102,241,.12), 0 2px 8px rgba(0,0,0,.06);
}

/* Mobile brand */
.mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.brand-gem.sm { font-size: 1.8rem; }
.brand-name.sm {
  font-size: 1.3rem; font-weight: 800;
  background: linear-gradient(135deg, #fff 20%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .brand-name.sm {
  background: linear-gradient(135deg, #0f172a 20%, #6366f1 100%);
  -webkit-background-clip: text; background-clip: text;
}

/* Social login buttons */
.social-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  font-family: 'Inter', inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  border: 1px solid rgba(255,255,255,.1);
}
.social-google {
  background: #ffffff;
  color: #1f2937;
}
.social-google:hover { background: #f3f4f6; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }

.social-apple {
  background: #000;
  color: #fff;
  border-color: rgba(255,255,255,.15);
}
.social-apple:hover { background: #111; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.4); }

[data-theme="light"] .social-apple { border-color: rgba(0,0,0,.12); }
[data-theme="light"] .social-google { border-color: rgba(0,0,0,.14); }

.sm-icon-wrap {
  width: 72px; height: 72px;
  margin: 0 auto 4px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25), inset 0 0 0 1px rgba(0,0,0,.06);
}
[data-theme="light"] .sm-icon-wrap { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.sm-note {
  margin-top: 12px;
  font-size: .7rem;
  line-height: 1.5;
  color: var(--text-dim);
  text-align: left;
  padding: 10px 12px;
  background: rgba(99,102,241,.05);
  border: 1px dashed rgba(99,102,241,.2);
  border-radius: 8px;
}
.sm-note a { color: var(--blue-l); }
.sm-note code {
  background: rgba(255,255,255,.06);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: .85em;
}

.social-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--text-dim);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.social-divider::before, .social-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.08);
}
[data-theme="light"] .social-divider::before,
[data-theme="light"] .social-divider::after { background: rgba(15,23,42,.1); }

/* Tabs */
.auth-tabs {
  display: flex;
  background: rgba(99,102,241,.07);
  border: 1px solid rgba(99,102,241,.12);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 26px;
  gap: 4px;
}
[data-theme="light"] .auth-tabs { background: rgba(99,102,241,.06); border-color: rgba(99,102,241,.14); }

.tab {
  flex: 1;
  padding: 8px 0;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-mid);
  font-size: .82rem;
  font-weight: 600;
  font-family: 'Inter', inherit;
  cursor: pointer;
  transition: all .2s;
}
.tab.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 10px rgba(99,102,241,.4);
}

/* Forms */
.auth-form { display: none; flex-direction: column; gap: 16px; }
.auth-form.active { display: flex; animation: formIn .25s ease; }
@keyframes formIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: .2px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.hint-inline { font-weight: 400; color: var(--text-dim); font-size: .72rem; }

.form-group input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-b);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .88rem;
  font-family: 'Inter', inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input::placeholder { color: var(--text-dim); }
.form-group input:focus {
  border-color: var(--border-foc);
  box-shadow: 0 0 0 3px var(--shadow-foc);
}

.input-wrap { position: relative; }
.input-wrap input { padding-right: 42px; }
.eye-btn {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-dim);
  cursor: pointer; padding: 4px;
  display: flex; align-items: center;
  transition: color .2s;
}
.eye-btn svg { width: 16px; height: 16px; }
.eye-btn:hover { color: var(--text-mid); }
.eye-btn.revealed { color: var(--blue-l); }

/* Error / success */
.form-error   { font-size: .78rem; color: #fb7185; font-weight: 500; min-height: 18px; }
.form-success { font-size: .78rem; color: #34d399; font-weight: 600; }

/* Submit button */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #fff;
  border: none;
  padding: 12px 0;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 700;
  font-family: 'Inter', inherit;
  cursor: pointer;
  width: 100%;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(99,102,241,.35);
  margin-top: 2px;
}
.btn-submit svg { width: 16px; height: 16px; }
.btn-submit:hover { box-shadow: 0 8px 28px rgba(99,102,241,.55); transform: translateY(-2px); }
.btn-submit:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(99,102,241,.3); }

/* Form hint / link */
.form-hint {
  font-size: .75rem;
  color: var(--text-dim);
  text-align: center;
}
.form-hint a, .tab-link {
  color: var(--blue-l);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}
.form-hint a:hover, .tab-link:hover { color: #fff; }
[data-theme="light"] .form-hint a:hover, [data-theme="light"] .tab-link:hover { color: var(--blue); }

/* Footer */
.auth-footer {
  font-size: .72rem;
  color: var(--text-dim);
  text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .auth-left { display: none; }
  .auth-right { width: 100%; padding: 32px 20px; }
  .mobile-brand { display: flex; }
  .auth-card { padding: 28px 22px; }
}

@media (max-width: 400px) {
  .form-row { flex-direction: column; gap: 16px; }
}

/* Hide mobile-brand since we now have card-logo always visible */
.mobile-brand { display: none !important; }

/* ── Card logo (compact gem above tabs) ─────────────────────── */
.card-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}
.card-logo-badge {
  position: relative;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
}
.card-logo-gem {
  font-size: 2rem;
  filter: drop-shadow(0 6px 18px rgba(99,102,241,.7));
  animation: gemFloat 4s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
.card-logo-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.35) 0%, transparent 70%);
  animation: ringPulse 3s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1);    opacity: .65; }
  50%      { transform: scale(1.25); opacity: 1; }
}
.card-logo-text {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.6px;
  background: linear-gradient(135deg, #fff 20%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .card-logo-text {
  background: linear-gradient(135deg, #0f172a 20%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card-logo-tag {
  font-size: .76rem;
  color: var(--text-mid);
  font-style: italic;
  margin-top: 3px;
}

/* Forgot password link + Remember me */
.forgot-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: -8px; gap: 12px;
}
.remember-me {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; color: var(--muted, #8693ae);
  cursor: pointer; user-select: none;
  font-weight: 500;
}
.remember-me input[type="checkbox"] {
  width: 15px; height: 15px;
  cursor: pointer;
  accent-color: var(--blue-l, #6366f1);
  margin: 0;
}
.remember-me:hover span { color: var(--text, #e8ebf5); }
.forgot-link {
  font-size: .76rem;
  color: var(--blue-l);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}
.forgot-link:hover { color: #fff; }
[data-theme="light"] .forgot-link:hover { color: var(--blue); }

/* ── Forgot Password Modal ──────────────────────────────────── */
.fp-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fpFade .2s ease;
}
.fp-modal.open { display: flex; }
[data-theme="light"] .fp-modal { background: rgba(15,23,42,.5); }
@keyframes fpFade { from { opacity: 0; } to { opacity: 1; } }

.fp-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--card-b);
  border-radius: 20px;
  padding: 32px 28px 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  animation: fpPop .25s cubic-bezier(.16,1,.3,1);
}
[data-theme="light"] .fp-card { box-shadow: 0 20px 60px rgba(15,23,42,.2); }
@keyframes fpPop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

.fp-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--input-bg);
  color: var(--text-mid);
  cursor: pointer;
  font-size: .9rem;
  transition: all .2s;
}
.fp-close:hover { transform: rotate(90deg); color: var(--text); }

.fp-step { display: flex; flex-direction: column; gap: 14px; }
.fp-icon {
  font-size: 2.6rem;
  text-align: center;
  filter: drop-shadow(0 4px 14px rgba(99,102,241,.5));
}
.fp-step h3 { text-align: center; font-size: 1.2rem; font-weight: 800; letter-spacing: -.3px; }
.fp-step > p {
  text-align: center;
  font-size: .82rem;
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: 2px;
}
.fp-step > p b { color: var(--text); }

.fp-demo-note {
  background: rgba(99,102,241,.08);
  border: 1px dashed rgba(99,102,241,.4);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .78rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.fp-demo-note > b { color: var(--blue-l); }
.fp-demo-note small { display: block; margin-top: 6px; font-size: .7rem; color: var(--text-dim); }
.fp-demo-code {
  display: block;
  text-align: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 8px;
  color: var(--text);
  background: var(--input-bg);
  border-radius: 8px;
  padding: 10px 0;
  margin: 8px 0 4px;
  user-select: all;
}

/* ═════════════════════════════════════════════════════════════════
   LOGIN — phone + tablet responsive
   ═════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .auth-layout { grid-template-columns: 1fr !important; }
  .auth-left { display: none !important; }
  .auth-right { padding: 20px 16px; min-height: 100vh; }
  .auth-card { max-width: 100% !important; padding: 28px 20px !important; }
}
@media (max-width: 640px) {
  html { font-size: 14px; }
  .auth-card { padding: 22px 16px !important; border-radius: 14px !important; }
  .card-logo { margin-bottom: 16px !important; }
  .social-row { gap: 8px !important; }
  .social-btn { font-size: .9rem !important; padding: 10px 12px !important; }
  .auth-tabs { font-size: .92rem !important; }
  .form-group label { font-size: .82rem !important; }
  .form-group input { font-size: 1rem; padding: 10px 12px !important; min-height: 42px; }
  .btn-submit { min-height: 46px; font-size: .95rem; }
  .fp-card { width: 94vw !important; max-width: 94vw !important; padding: 22px 16px !important; }
  .form-row { grid-template-columns: 1fr !important; }
}

/* ═════════ ENHANCED HERO ═════════ */
/* Floating gradient orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 18s ease-in-out infinite;
}
.orb-1 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  top: -60px; left: -80px;
}
.orb-2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #ec4899, transparent 70%);
  bottom: -40px; right: -60px;
  animation-delay: -6s;
}
.orb-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, #10b981, transparent 70%);
  top: 40%; left: 50%;
  animation-delay: -12s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
  33%      { transform: translate(40px, -30px) scale(1.1); opacity: 0.55; }
  66%      { transform: translate(-30px, 40px) scale(0.95); opacity: 0.45; }
}

/* Modern floating chips */
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 11px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #fff;
  z-index: 2;
  white-space: nowrap;
  user-select: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1) inset;
  transition: transform 0.3s;
}
.chip:hover { transform: scale(1.08) translateY(-3px); }
.chip > span { font-size: 0.95rem; }

.chip-ai     { background: linear-gradient(135deg, rgba(99,102,241,0.85), rgba(168,85,247,0.85)); }
.chip-green  { background: linear-gradient(135deg, rgba(16,185,129,0.85), rgba(34,197,94,0.85)); }
.chip-purple { background: linear-gradient(135deg, rgba(139,92,246,0.85), rgba(217,70,239,0.85)); }
.chip-blue   { background: linear-gradient(135deg, rgba(59,130,246,0.85), rgba(14,165,233,0.85)); }
.chip-pink   { background: linear-gradient(135deg, rgba(236,72,153,0.85), rgba(244,114,182,0.85)); }
.chip-orange { background: linear-gradient(135deg, rgba(249,115,22,0.85), rgba(251,146,60,0.85)); }
.chip-amber  { background: linear-gradient(135deg, rgba(245,158,11,0.85), rgba(252,211,77,0.85)); }

.float-a { top: 6%;  left: 8%;  animation: floatA 7s ease-in-out infinite; transform: rotate(-6deg); }
.float-b { top: 4%;  right: 10%; animation: floatB 8s ease-in-out infinite; transform: rotate(4deg); }
.float-c { top: 28%; right: 4%;  animation: floatC 9s ease-in-out infinite; transform: rotate(8deg); }
.float-d { top: 48%; left: 2%;   animation: floatD 7.5s ease-in-out infinite; transform: rotate(-10deg); }
.float-e { bottom: 30%; right: 6%; animation: floatE 8.5s ease-in-out infinite; transform: rotate(6deg); }
.float-f { bottom: 14%; left: 10%; animation: floatF 7s ease-in-out infinite; transform: rotate(-5deg); }
.float-g { bottom: 4%;  right: 20%; animation: floatG 9s ease-in-out infinite; transform: rotate(10deg); }

@keyframes floatA { 0%,100% { transform: translate(0,0) rotate(-6deg); } 50% { transform: translate(10px, -18px) rotate(-3deg); } }
@keyframes floatB { 0%,100% { transform: translate(0,0) rotate(4deg); } 50% { transform: translate(-12px, 14px) rotate(7deg); } }
@keyframes floatC { 0%,100% { transform: translate(0,0) rotate(8deg); } 50% { transform: translate(8px, 20px) rotate(4deg); } }
@keyframes floatD { 0%,100% { transform: translate(0,0) rotate(-10deg); } 50% { transform: translate(14px, -12px) rotate(-6deg); } }
@keyframes floatE { 0%,100% { transform: translate(0,0) rotate(6deg); } 50% { transform: translate(-8px, -16px) rotate(9deg); } }
@keyframes floatF { 0%,100% { transform: translate(0,0) rotate(-5deg); } 50% { transform: translate(12px, 12px) rotate(-2deg); } }
@keyframes floatG { 0%,100% { transform: translate(0,0) rotate(10deg); } 50% { transform: translate(-14px, -10px) rotate(14deg); } }

/* AI badge */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 99px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  z-index: 3;
  position: relative;
  backdrop-filter: blur(12px);
  animation: pulseGlow 2.5s ease-in-out infinite;
}
.ai-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
  animation: blink 1.5s ease-in-out infinite;
}
.ai-badge-new {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: white;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(139,92,246,0); }
  50%      { box-shadow: 0 0 24px rgba(139,92,246,0.3); }
}

/* Typing cursor */
.typing {
  background: linear-gradient(135deg, #a5b4fc, #e9d5ff 50%, #fbcfe8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 800;
  position: relative;
}
.typing::after {
  content: '|';
  -webkit-text-fill-color: #a5b4fc;
  color: #a5b4fc;
  animation: caret 1s step-end infinite;
  margin-left: 2px;
}
@keyframes caret { 50% { opacity: 0; } }

/* Stats bar */
.hero-stats {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  z-index: 3;
  position: relative;
  flex-wrap: wrap;
  justify-content: center;
}
.stat-box {
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  text-align: center;
  min-width: 110px;
  transition: transform 0.2s, border-color 0.2s;
}
.stat-box:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, 0.5);
}
.stat-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #a5b4fc, #fbcfe8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.stat-prefix, .stat-suffix {
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0.8;
}
.stat-label {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Feature highlights */
.hero-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
  max-width: 420px;
  z-index: 3;
  position: relative;
}
.hf {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  text-align: left;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  animation: slideIn 0.6s ease-out both;
}
.hf:nth-child(1) { animation-delay: 0.2s; }
.hf:nth-child(2) { animation-delay: 0.4s; }
.hf:nth-child(3) { animation-delay: 0.6s; }
.hf:hover {
  transform: translateX(6px);
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(139, 92, 246, 0.08);
}
.hf-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 10px;
}
.hf-text b {
  display: block;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.hf-text small {
  color: #9ca3af;
  font-size: 0.74rem;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Trust row */
.trust-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.72rem;
  color: #9ca3af;
}
.trust-item {
  padding: 5px 11px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 99px;
  font-weight: 500;
}

/* Hide old chips/stats on smaller screens */
@media (max-width: 960px) {
  .chip, .orb, .ai-badge, .hero-stats, .hero-features, .trust-row { display: none; }
}

/* ═════════ INFO MODAL (Features / Security / Reviews) ═════════ */
.info-modal {
  position: fixed; inset: 0;
  background: rgba(8, 11, 25, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 10000;
  padding: 24px;
  animation: fadeIn 0.25s ease;
}
.info-modal.open { display: flex; }

.info-card {
  background: linear-gradient(145deg, #1a1f3a, #151930);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 28px 80px rgba(99, 102, 241, 0.3);
  animation: slideUpInfo 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideUpInfo {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.info-close {
  position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.info-close:hover { background: rgba(255,255,255,0.15); transform: rotate(90deg); }

.info-pane { display: none; }
.info-pane.active { display: block; animation: fadeIn 0.3s ease; }

.info-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 8px;
  animation: bounce 1s ease;
}
.info-pane h2 {
  font-size: 1.7rem;
  text-align: center;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #a5b4fc, #fbcfe8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.info-sub {
  text-align: center;
  color: #9ca3af;
  font-size: 0.92rem;
  margin: 0 0 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.info-item:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(139, 92, 246, 0.08);
}
.info-item > span:first-child {
  font-size: 22px; flex-shrink: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 8px;
}
.info-item b {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 3px;
  font-weight: 700;
}
.info-item small {
  color: #a1a7c4;
  font-size: 0.77rem;
  line-height: 1.45;
  display: block;
}

/* Reviews grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.review {
  padding: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  transition: transform 0.2s, border-color 0.2s;
}
.review:hover {
  transform: translateY(-3px);
  border-color: rgba(236, 72, 153, 0.4);
}
.review-stars {
  color: #fbbf24;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.review p {
  color: #e5e7eb;
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 0 12px;
  font-style: italic;
}
.review-meta {
  display: flex;
  gap: 4px;
  align-items: baseline;
  font-size: 0.78rem;
}
.review-meta b { color: #fff; font-weight: 600; }
.review-meta span { color: #8a90ad; }

.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(236,72,153,0.1));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 14px;
}
.rating-big {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #a5b4fc, #fbcfe8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rating-stars {
  color: #fbbf24;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.rating-count {
  color: #9ca3af;
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .info-card { padding: 24px 18px; }
  .info-pane h2 { font-size: 1.35rem; }
  .info-grid, .reviews-grid { grid-template-columns: 1fr; }
  .rating-summary { flex-direction: column; text-align: center; }
}

/* ---------- Review submission form ---------- */
.review-form {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(236,72,153,0.06));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 16px;
  padding: 22px 20px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-form-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px;
}
.review-form-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.review-form input[type="text"],
.review-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #fff;
  font: inherit;
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.review-form input[type="text"]:focus,
.review-form textarea:focus {
  border-color: rgba(139,92,246,0.6);
  background: rgba(255,255,255,0.08);
}
.review-form textarea {
  min-height: 90px;
  resize: vertical;
  font-family: inherit;
}
.review-form input::placeholder,
.review-form textarea::placeholder { color: rgba(255,255,255,0.35); }

.star-picker {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}
.star-btn {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: rgba(255,255,255,0.2);
  cursor: pointer;
  padding: 2px 4px;
  transition: color .12s, transform .12s;
}
.star-btn:hover { transform: scale(1.15); }
.star-btn.hover,
.star-btn.filled { color: #fbbf24; text-shadow: 0 0 10px rgba(251,191,36,0.5); }

.review-char-count {
  font-size: 0.75rem;
  color: #8a90ad;
  text-align: right;
  margin-top: -4px;
}
.btn-review-submit {
  align-self: flex-start;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 6px 18px rgba(99,102,241,0.35);
  transition: transform .12s, box-shadow .12s;
}
.btn-review-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(99,102,241,0.45); }
.btn-review-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.review-form-msg { margin: 0; font-size: 0.82rem; min-height: 1em; }
.review-form-msg.ok  { color: #34d399; }
.review-form-msg.err { color: #f87171; }

.review-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.review-list-head h3 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
}
.review-list-count { font-size: 0.78rem; color: #8a90ad; }

.review-empty {
  grid-column: 1 / -1;
  padding: 30px 18px;
  text-align: center;
  color: #8a90ad;
  font-size: 0.92rem;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}

/* ---------- LIGHT MODE OVERRIDES (home/login hero + info modal) ---------- */
[data-theme="light"] .hero-stage { color: #1f2937; }
[data-theme="light"] .hero-headline,
[data-theme="light"] .hero-title { color: #0f172a; }
[data-theme="light"] .hero-sub,
[data-theme="light"] .hero-subtitle { color: #475569; }

[data-theme="light"] .orb { opacity: 0.28; filter: blur(50px); }
[data-theme="light"] .orb-1 { background: radial-gradient(circle, #6366f1, transparent 70%); }
[data-theme="light"] .orb-2 { background: radial-gradient(circle, #ec4899, transparent 70%); }
[data-theme="light"] .orb-3 { background: radial-gradient(circle, #06b6d4, transparent 70%); }

[data-theme="light"] .chip {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(99,102,241,0.22);
  color: #1f2937;
  box-shadow: 0 6px 20px rgba(17,24,39,0.08);
  backdrop-filter: blur(10px);
}
[data-theme="light"] .chip-ai     { background: linear-gradient(135deg,#eef2ff,#fae8ff); color:#5b21b6; border-color: rgba(139,92,246,0.35); }
[data-theme="light"] .chip-green  { background: linear-gradient(135deg,#ecfdf5,#d1fae5); color:#065f46; border-color: rgba(16,185,129,0.35); }
[data-theme="light"] .chip-purple { background: linear-gradient(135deg,#f5f3ff,#ede9fe); color:#5b21b6; border-color: rgba(139,92,246,0.35); }
[data-theme="light"] .chip-blue   { background: linear-gradient(135deg,#eff6ff,#dbeafe); color:#1e3a8a; border-color: rgba(59,130,246,0.35); }
[data-theme="light"] .chip-pink   { background: linear-gradient(135deg,#fdf2f8,#fce7f3); color:#9d174d; border-color: rgba(236,72,153,0.35); }
[data-theme="light"] .chip-orange { background: linear-gradient(135deg,#fff7ed,#ffedd5); color:#9a3412; border-color: rgba(249,115,22,0.35); }
[data-theme="light"] .chip-amber  { background: linear-gradient(135deg,#fffbeb,#fef3c7); color:#92400e; border-color: rgba(245,158,11,0.35); }

[data-theme="light"] .ai-badge {
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(236,72,153,0.12));
  border: 1px solid rgba(139,92,246,0.35);
  color: #5b21b6;
}

[data-theme="light"] .hero-stats,
[data-theme="light"] .stat-box {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(17,24,39,0.08);
  box-shadow: 0 4px 14px rgba(17,24,39,0.06);
}
[data-theme="light"] .stat-value { color: #0f172a; }
[data-theme="light"] .stat-label { color: #64748b; }

[data-theme="light"] .hero-features .hf {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(17,24,39,0.08);
  color: #1f2937;
}
[data-theme="light"] .hf-title { color: #0f172a; }
[data-theme="light"] .hf-desc  { color: #475569; }

[data-theme="light"] .trust-row { color: #475569; }
[data-theme="light"] .trust-item {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(17,24,39,0.08);
  color: #1f2937;
}

[data-theme="light"] .hero-nav-link { color: #334155; }
[data-theme="light"] .hero-nav-link:hover { color: #6366f1; }

[data-theme="light"] .typing::after { background: #6366f1; }

/* Info modal (Features / Security / Reviews) */
[data-theme="light"] .info-modal { background: rgba(15, 23, 42, 0.55); }
[data-theme="light"] .info-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid rgba(17,24,39,0.08);
  color: #1f2937;
  box-shadow: 0 20px 60px rgba(15,23,42,0.2);
}
[data-theme="light"] .info-close { color: #475569; }
[data-theme="light"] .info-close:hover { color: #0f172a; background: rgba(0,0,0,0.05); }
[data-theme="light"] .info-pane h2 { color: #0f172a; }
[data-theme="light"] .info-pane > p { color: #475569; }
[data-theme="light"] .info-item {
  background: rgba(99,102,241,0.04);
  border: 1px solid rgba(17,24,39,0.08);
  color: #1f2937;
}
[data-theme="light"] .info-item:hover {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.3);
}
[data-theme="light"] .info-item h4 { color: #0f172a; }
[data-theme="light"] .info-item p  { color: #475569; }
[data-theme="light"] .info-icon h2 {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Review form / list in light mode */
[data-theme="light"] .review-form {
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(236,72,153,0.05));
  border: 1px solid rgba(99,102,241,0.2);
}
[data-theme="light"] .review-form-title { color: #0f172a; }
[data-theme="light"] .review-form input[type="text"],
[data-theme="light"] .review-form textarea {
  background: #fff;
  border: 1px solid rgba(17,24,39,0.12);
  color: #0f172a;
}
[data-theme="light"] .review-form input::placeholder,
[data-theme="light"] .review-form textarea::placeholder { color: #94a3b8; }
[data-theme="light"] .star-btn { color: rgba(17,24,39,0.2); }
[data-theme="light"] .star-btn.hover,
[data-theme="light"] .star-btn.filled { color: #f59e0b; }
[data-theme="light"] .review-char-count,
[data-theme="light"] .review-list-count { color: #64748b; }
[data-theme="light"] .review-list-head h3 { color: #0f172a; }
[data-theme="light"] .review-empty {
  color: #64748b;
  border: 1px dashed rgba(17,24,39,0.15);
  background: rgba(17,24,39,0.02);
}
[data-theme="light"] .review {
  background: #fff;
  border: 1px solid rgba(17,24,39,0.08);
  color: #1f2937;
  box-shadow: 0 4px 14px rgba(17,24,39,0.05);
}
[data-theme="light"] .review-meta b { color: #0f172a; }
[data-theme="light"] .review-meta span { color: #64748b; }
[data-theme="light"] .rating-summary {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(236,72,153,0.08));
  border: 1px solid rgba(99,102,241,0.2);
}
[data-theme="light"] .rating-big {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .rating-count { color: #64748b; }

/* ---------- Verify Email + Phone Modal ---------- */
.verify-modal {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(5, 8, 20, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  padding: 20px;
}
.verify-modal.open { display: flex; animation: vmFade .18s ease-out; }
@keyframes vmFade { from { opacity: 0; } to { opacity: 1; } }

.verify-card {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(155deg, #1a1f3a, #131834);
  border: 1px solid rgba(139,92,246,0.28);
  border-radius: 20px;
  padding: 28px 26px;
  color: #e6e8f0;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
  animation: vmPop .22s cubic-bezier(.2,.8,.2,1.1);
}
@keyframes vmPop { from { transform: translateY(10px) scale(.97); opacity:0; } to { transform:none; opacity:1; } }

.vm-header { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.vm-badge {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(99,102,241,0.4);
}
.verify-card h2 { margin: 0; font-size: 1.25rem; color: #fff; }
.vm-sub { margin: 2px 0 0; color: #9aa0c3; font-size: 0.85rem; }
.vm-intro { margin: 10px 0 18px; color: #b4bad6; font-size: 0.9rem; line-height: 1.5; }

.vm-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 14px 12px;
  margin-bottom: 12px;
}
.vm-row-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.vm-row-head h3 { margin: 0; font-size: 0.95rem; color: #fff; font-weight: 600; flex: 1; }
.vm-step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff; font-size: 0.75rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.vm-check {
  display: none;
  color: #34d399;
  font-weight: 800;
  margin-left: 6px;
}

.vm-row { display: flex; gap: 8px; margin-bottom: 6px; }
.vm-row input, .vm-readonly {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  padding: 10px 12px;
  font: inherit;
  outline: none;
}
.vm-row input:focus { border-color: rgba(139,92,246,0.6); }
.vm-readonly { color: #cbd2ee; background: rgba(255,255,255,0.03); user-select: all; }

.vm-btn, .vm-btn-ghost, .vm-btn-primary {
  border: none; border-radius: 10px; cursor: pointer; font-weight: 600;
  font-size: 0.85rem; padding: 10px 16px; white-space: nowrap;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.vm-btn {
  background: linear-gradient(135deg, #6366f1, #a855f7); color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.vm-btn:hover { transform: translateY(-1px); }
.vm-btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #e6e8f0;
}
.vm-btn-ghost:hover { background: rgba(255,255,255,0.1); }

.vm-note { margin: 4px 2px 0; font-size: 0.8rem; min-height: 1em; color: #9aa0c3; }
.vm-note.ok   { color: #34d399; }
.vm-note.err  { color: #f87171; }
.vm-note.demo { color: #fbbf24; background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.25); padding: 8px 10px; border-radius: 8px; }
.vm-note.demo b { color: #fff; letter-spacing: 2px; font-size: 0.95rem; }

.vm-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.vm-status { color: #9aa0c3; font-size: 0.82rem; }
.vm-btn-primary {
  background: linear-gradient(135deg, #10b981, #059669); color: #fff;
  padding: 11px 20px;
  box-shadow: 0 6px 18px rgba(16,185,129,0.35);
}
.vm-btn-primary:hover:not(:disabled) { transform: translateY(-1px); }
.vm-btn-primary:disabled { background: rgba(255,255,255,0.08); color: #6b7293; cursor: not-allowed; box-shadow: none; }

/* Light mode */
[data-theme="light"] .verify-modal { background: rgba(15,23,42,0.45); }
[data-theme="light"] .verify-card {
  background: linear-gradient(155deg, #ffffff, #f8fafc);
  border: 1px solid rgba(17,24,39,0.08);
  color: #1f2937;
  box-shadow: 0 30px 80px rgba(15,23,42,0.25);
}
[data-theme="light"] .verify-card h2 { color: #0f172a; }
[data-theme="light"] .vm-sub { color: #64748b; }
[data-theme="light"] .vm-intro { color: #475569; }
[data-theme="light"] .vm-section { background: rgba(99,102,241,0.04); border: 1px solid rgba(17,24,39,0.08); }
[data-theme="light"] .vm-row-head h3 { color: #0f172a; }
[data-theme="light"] .vm-row input, [data-theme="light"] .vm-readonly {
  background: #fff; border: 1px solid rgba(17,24,39,0.12); color: #0f172a;
}
[data-theme="light"] .vm-readonly { background: #f8fafc; color: #334155; }
[data-theme="light"] .vm-btn-ghost {
  background: rgba(17,24,39,0.04); border: 1px solid rgba(17,24,39,0.1); color: #1f2937;
}
[data-theme="light"] .vm-btn-ghost:hover { background: rgba(17,24,39,0.08); }
[data-theme="light"] .vm-note { color: #64748b; }
[data-theme="light"] .vm-status { color: #64748b; }
[data-theme="light"] .vm-footer { border-top-color: rgba(17,24,39,0.1); }
[data-theme="light"] .vm-btn-primary:disabled { background: rgba(17,24,39,0.08); color: #94a3b8; }

@media (max-width: 520px) {
  .vm-row { flex-direction: column; }
  .vm-row input, .vm-readonly { width: 100%; }
  .vm-btn, .vm-btn-ghost { width: 100%; }
}

/* ==========================================================
   Landing CTA card (login.html right panel)
   Sign-in / sign-up moved to signin.html + signup.html
   ========================================================== */
.auth-card.landing-cta {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px;
  padding: 36px 28px 30px !important;
}

/* ── login.html landing: show hero on mobile, stacked above CTA ────────── */
@media (max-width: 900px) {
  body:has(.landing-cta) .auth-layout {
    flex-direction: column !important;
  }
  body:has(.landing-cta) .auth-left {
    display: flex !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    padding: 20px 18px 12px !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,.05) !important;
    min-height: auto !important;
  }
  body:has(.landing-cta) .hero-stage {
    padding: 0 !important;
    min-height: auto !important;
  }
  /* Shrink hero typography on phones */
  body:has(.landing-cta) .hero-headline { font-size: clamp(1.8rem, 7vw, 2.4rem) !important; line-height: 1.08 !important; }
  body:has(.landing-cta) .hero-sub { font-size: 0.92rem !important; }
  /* Hide the floating/positioned decorative chips on mobile — they overflow & overlap */
  body:has(.landing-cta) .chip,
  body:has(.landing-cta) .orb { display: none !important; }
  /* Compact stats row */
  body:has(.landing-cta) .hero-stats {
    display: flex !important; gap: 10px !important;
    justify-content: space-between !important;
    margin-top: 14px !important;
  }
  body:has(.landing-cta) .stat-box {
    flex: 1 1 0 !important; padding: 10px 8px !important;
    min-width: 0 !important;
  }
  body:has(.landing-cta) .stat-num { font-size: 1rem !important; }
  body:has(.landing-cta) .stat-label { font-size: 0.68rem !important; }
  /* Stack feature highlights */
  body:has(.landing-cta) .hero-features { gap: 8px !important; margin-top: 14px !important; }
  body:has(.landing-cta) .hf { padding: 10px !important; }
  body:has(.landing-cta) .hero-footer { margin-top: 12px !important; }
  body:has(.landing-cta) .auth-right {
    width: 100% !important;
    padding: 18px 16px 28px !important;
    min-height: auto !important;
  }
  /* Topbar: make room so theme-toggle doesn't cover "Reviews" */
  body:has(.landing-cta) .hero-topbar {
    padding-right: 48px !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  body:has(.landing-cta) .hero-nav { gap: 12px !important; }
  body:has(.landing-cta) .hero-nav-link { font-size: 0.82rem !important; }
  /* Pin the theme toggle top-right of the viewport so it never overlaps nav */
  body:has(.landing-cta) .theme-toggle {
    position: fixed !important;
    top: 10px !important; right: 10px !important;
    z-index: 50 !important;
  }
}
@media (max-width: 430px) {
  body:has(.landing-cta) .hero-nav { gap: 10px !important; }
  body:has(.landing-cta) .hero-nav-link { font-size: 0.78rem !important; }
  body:has(.landing-cta) .hero-logo-name { font-size: 1rem !important; }
}
.lc-title {
  font-size: 1.55rem; font-weight: 800; letter-spacing: -0.01em;
  margin: 4px 0 0; color: var(--text, #e8ebf5);
}
[data-theme="light"] .lc-title { color: #0b1220; }
.lc-sub {
  color: #94a3b8; font-size: 0.95rem; line-height: 1.55;
  margin: 0 0 8px; max-width: 340px;
}
[data-theme="light"] .lc-sub { color: #475569; }
.lc-actions {
  display: flex; flex-direction: column; gap: 10px; width: 100%;
}
.lc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px; border-radius: 10px;
  font-size: 0.98rem; font-weight: 600; text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.lc-btn-primary {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 10px 30px -12px rgba(124,58,237,0.55);
}
.lc-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgba(124,58,237,0.7); }
.lc-btn-ghost {
  background: rgba(148,163,184,0.08);
  color: #e2e8f0;
  border: 1px solid rgba(148,163,184,0.22);
}
.lc-btn-ghost:hover { background: rgba(148,163,184,0.16); border-color: rgba(148,163,184,0.4); }
[data-theme="light"] .lc-btn-ghost { color: #0f172a; background: rgba(15,23,42,0.04); border-color: rgba(15,23,42,0.12); }
[data-theme="light"] .lc-btn-ghost:hover { background: rgba(15,23,42,0.08); }

.lc-trust {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 12px; padding-top: 14px;
  border-top: 1px solid rgba(148,163,184,0.15);
  width: 100%;
  font-size: 0.78rem; color: #94a3b8;
}
[data-theme="light"] .lc-trust { border-top-color: rgba(15,23,42,0.08); color: #64748b; }
@media (max-width: 420px) {
  .lc-trust { flex-direction: column; gap: 6px; }
}
