/* ============================================================
   RankForge — AI SEO & Backlink Software
   Design system: dark, techy, electric-green "robot" aesthetic
   ============================================================ */

:root {
  --bg: #070b14;
  --bg-2: #0a101f;
  --surface: #0d1526;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eaf0fb;
  --muted: #9aa8c0;
  --faint: #64748b;
  --accent: #22e584;
  --accent-2: #38bdf8;
  --accent-3: #a78bfa;
  --danger: #f87171;
  --warning: #fbbf24;
  --grad: linear-gradient(135deg, #22e584 0%, #38bdf8 100%);
  --grad-soft: linear-gradient(135deg, rgba(34, 229, 132, 0.14), rgba(56, 189, 248, 0.14));
  --shadow-glow: 0 0 40px rgba(34, 229, 132, 0.22);
  --shadow-card: 0 12px 40px rgba(2, 6, 16, 0.55);
  --radius: 16px;
  --radius-sm: 10px;
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --nav-h: 68px;
  --max-w: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

::selection { background: rgba(34, 229, 132, 0.35); }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(34, 229, 132, 0.08);
  border: 1px solid rgba(34, 229, 132, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 17px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.brand .brand-mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 0 10px rgba(34,229,132,0.5)); }
.brand em { font-style: normal; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px; background: var(--grad);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .login-link { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav-cta .login-link:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px; height: 42px;
  color: var(--text);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 99;
  background: rgba(9, 14, 26, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 18px 24px 26px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 6px; color: var(--muted); font-size: 16px; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .mm-cta { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  padding: 13px 26px;
  border: 1px solid transparent;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary {
  background: var(--grad);
  color: #04120a;
  box-shadow: 0 6px 24px rgba(34, 229, 132, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(34, 229, 132, 0.42); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 90px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#linkCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.hero-glow {
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.32;
  pointer-events: none;
}
.hero-glow.g1 { background: #0e7a4d; top: -280px; left: -160px; }
.hero-glow.g2 { background: #155e8f; bottom: -320px; right: -180px; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 20px 0 20px;
}
.hero-sub { color: var(--muted); font-size: 18px; max-width: 540px; margin-bottom: 34px; }
.hero-trust { display: flex; align-items: center; gap: 26px; margin-top: 36px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.trust-item svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

/* Hero form card */
.hero-card {
  background: linear-gradient(160deg, rgba(20, 30, 52, 0.92), rgba(11, 17, 32, 0.94));
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 229, 132, 0.7), transparent);
}
.hero-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.hero-card-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-card h3 { font-family: var(--font-head); font-size: 22px; margin-bottom: 6px; }
.hero-card .hc-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(4, 8, 16, 0.7);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  color: var(--text);
  padding: 12px 15px;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(34, 229, 132, 0.65);
  box-shadow: 0 0 0 3px rgba(34, 229, 132, 0.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }

.form-note { font-size: 12.5px; color: var(--faint); text-align: center; margin-top: 12px; }
.form-success {
  display: none;
  text-align: center;
  padding: 34px 10px;
}
.form-success.show { display: block; }
.form-success .ok-ring {
  width: 62px; height: 62px; margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(34, 229, 132, 0.12);
  border: 1.5px solid rgba(34, 229, 132, 0.5);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.form-success h4 { font-family: var(--font-head); font-size: 20px; margin-bottom: 8px; }
.form-success p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* ---------- Marquee / platforms ---------- */
.platforms { border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); background: var(--bg-2); padding: 26px 0; overflow: hidden; }
.platforms-track { display: flex; gap: 14px; width: max-content; animation: marquee 34s linear infinite; }
.platforms:hover .platforms-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.plat-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}
.plat-chip svg { width: 15px; height: 15px; color: var(--accent); }

/* ---------- Cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.22s, background 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.card:hover { transform: translateY(-4px); background: var(--card-hover); border-color: var(--border-strong); box-shadow: var(--shadow-card); }

.icon-tile {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft);
  border: 1px solid rgba(34, 229, 132, 0.28);
  color: var(--accent);
  margin-bottom: 18px;
}
.icon-tile svg { width: 23px; height: 23px; }

.card h3 { font-family: var(--font-head); font-size: 18.5px; margin-bottom: 9px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ---------- Stats ---------- */
.stats-band { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-label { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- Testimonials ---------- */
.t-card { display: flex; flex-direction: column; gap: 14px; }
.t-stars { display: flex; gap: 3px; color: var(--warning); }
.t-stars svg { width: 16px; height: 16px; }
.t-text { color: var(--text); font-size: 14.8px; line-height: 1.65; flex: 1; }
.t-who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700; font-size: 15px;
  color: #05130b;
  background: var(--grad);
}
.t-who .t-name { font-weight: 600; font-size: 14.5px; }
.t-who .t-role { color: var(--faint); font-size: 12.5px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 460px)); gap: 26px; justify-content: center; }
.price-card {
  position: relative;
  background: linear-gradient(165deg, rgba(19, 29, 50, 0.9), rgba(10, 16, 30, 0.95));
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 36px 32px;
  display: flex; flex-direction: column;
}
.price-card.featured { border-color: rgba(34, 229, 132, 0.55); box-shadow: var(--shadow-glow); }
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #04120a;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.price-name { font-family: var(--font-head); font-size: 20px; margin-bottom: 4px; }
.price-desc { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.price-line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price-amount { font-family: var(--font-head); font-size: 46px; font-weight: 700; letter-spacing: -0.03em; }
.price-period { color: var(--muted); font-size: 14.5px; }
.price-note { color: var(--faint); font-size: 12.5px; margin-bottom: 24px; }
.price-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.price-features li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--text); }
.price-features svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }

.pay-methods { display: flex; justify-content: center; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.pay-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 13px; color: var(--muted); background: var(--card); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq details[open] { border-color: rgba(34, 229, 132, 0.35); }
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform 0.25s; color: var(--accent); flex: none; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  padding: 64px 40px;
  text-align: center;
  background: linear-gradient(140deg, rgba(19, 46, 36, 0.9), rgba(12, 26, 44, 0.95));
  border: 1px solid rgba(34, 229, 132, 0.3);
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% -10%, rgba(34, 229, 132, 0.22), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { font-family: var(--font-head); font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.02em; margin-bottom: 14px; position: relative; }
.cta-band p { color: var(--muted); margin-bottom: 30px; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(255,255,255,0.07); background: var(--bg-2); padding: 64px 0 34px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer h5 { font-family: var(--font-head); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 13px;
}

/* ---------- Chat bubble ---------- */
.chat-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--grad);
  color: #04120a;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(34, 229, 132, 0.45);
  transition: transform 0.2s;
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-panel {
  position: fixed;
  right: 22px; bottom: 90px;
  z-index: 90;
  width: 320px;
  background: #0c1322;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.chat-panel.open { display: flex; }
.chat-head { background: var(--grad-soft); border-bottom: 1px solid var(--border); padding: 14px 18px; display: flex; align-items: center; gap: 11px; }
.chat-head .avatar { width: 36px; height: 36px; font-size: 13px; }
.chat-head .ch-name { font-weight: 600; font-size: 14.5px; }
.chat-head .ch-status { font-size: 12px; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.chat-head .ch-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.chat-body { padding: 16px; max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.msg.bot { background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: rgba(34, 229, 132, 0.16); border: 1px solid rgba(34, 229, 132, 0.3); border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; background: rgba(4,8,16,0.7); border: 1px solid var(--border-strong); border-radius: 10px; color: var(--text); padding: 10px 13px; font-size: 13.5px; outline: none; }
.chat-input button { background: var(--grad); border: none; border-radius: 10px; width: 42px; color: #04120a; display: flex; align-items: center; justify-content: center; }
.chat-input button svg { width: 17px; height: 17px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; } .reveal-d2 { transition-delay: 0.16s; } .reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + 64px) 0 56px; overflow: hidden; }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(32px, 4.6vw, 48px); letter-spacing: -0.02em; margin: 16px 0 14px; }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 640px; }
.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,229,132,0.4), transparent);
}

/* ---------- Legal pages ---------- */
.legal-body { max-width: 820px; }
.legal-body h3 { font-family: var(--font-head); font-size: 20px; margin: 34px 0 12px; color: var(--text); }
.legal-body h3:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.legal-body ul { list-style: disc; padding-left: 22px; }
.legal-updated { color: var(--faint); font-size: 13px; margin-bottom: 30px; }

/* ---------- Breadcrumb ---------- */
.crumb { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--faint); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); }

/* ---------- Auth pages ---------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-side {
  position: relative;
  background: linear-gradient(160deg, #0c1a16, #0a1220 60%);
  border-right: 1px solid rgba(255,255,255,0.07);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth-side::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: rgba(34, 229, 132, 0.13);
  filter: blur(120px);
  top: -140px; right: -140px;
}
.auth-side .auth-quote { position: relative; margin-top: auto; }
.auth-side .auth-quote p { font-size: 19px; line-height: 1.55; color: var(--text); font-family: var(--font-head); max-width: 420px; }
.auth-side .auth-quote .t-who { margin-top: 22px; }
.auth-perks { position: relative; display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.auth-perks span { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14.5px; }
.auth-perks svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; position: relative; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-family: var(--font-head); font-size: 30px; letter-spacing: -0.02em; margin-bottom: 8px; }
.auth-card .auth-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 28px; }
.auth-card .field { margin-bottom: 18px; }
.auth-alt { text-align: center; color: var(--muted); font-size: 14px; margin-top: 24px; }
.auth-alt a { color: var(--accent); font-weight: 600; }
.auth-back { position: absolute; top: 22px; left: 24px; font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.auth-back:hover { color: var(--text); }
.auth-note { background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.25); color: #bfe3f7; font-size: 13px; border-radius: 10px; padding: 10px 14px; margin-bottom: 20px; }
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}

/* ---------- App / dashboard shell ---------- */
:root { --app-sidebar: 248px; }
.app-body { background: #05080f; }
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  width: var(--app-sidebar);
  flex: none;
  background: #080d18;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  z-index: 40;
}
.app-sidebar .brand { padding: 4px 10px 18px; font-size: 19px; }
.side-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); padding: 14px 12px 6px; }
.side-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.side-link svg { width: 18px; height: 18px; flex: none; }
.side-link:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.side-link.active { background: rgba(34,229,132,0.1); color: var(--accent); }
.side-link .pill { margin-left: auto; background: rgba(34,229,132,0.15); color: var(--accent); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
  height: 62px;
  flex: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(8, 13, 24, 0.8);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px;
  gap: 16px;
  position: sticky; top: 0; z-index: 30;
}
.app-topbar h1 { font-family: var(--font-head); font-size: 18px; letter-spacing: -0.01em; }
.app-topbar .topbar-right { display: flex; align-items: center; gap: 14px; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-chip .avatar { width: 34px; height: 34px; font-size: 13px; }
.user-chip .u-name { font-size: 13.5px; font-weight: 600; }
.user-chip .u-plan { font-size: 11.5px; color: var(--accent); }
.app-content { padding: 26px; max-width: 1240px; width: 100%; margin: 0 auto; }

.stat-card { display: flex; flex-direction: column; gap: 6px; }
.stat-card .sc-top { display: flex; align-items: center; justify-content: space-between; }
.stat-card .sc-label { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat-card .sc-value { font-family: var(--font-head); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.stat-card .sc-delta { font-size: 12.5px; font-weight: 600; }
.sc-delta.up { color: var(--accent); } .sc-delta.down { color: var(--danger); }

.progress { height: 7px; border-radius: 99px; background: rgba(255,255,255,0.07); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--grad); }

.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table-wrap th {
  text-align: left; padding: 13px 16px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--border);
}
.table-wrap td { padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,0.045); color: var(--text); }
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tbody tr:hover td { background: rgba(255,255,255,0.02); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 999px; }
.badge.green { background: rgba(34,229,132,0.13); color: var(--accent); border: 1px solid rgba(34,229,132,0.3); }
.badge.blue { background: rgba(56,189,248,0.13); color: var(--accent-2); border: 1px solid rgba(56,189,248,0.3); }
.badge.amber { background: rgba(251,191,36,0.12); color: var(--warning); border: 1px solid rgba(251,191,36,0.3); }
.badge.red { background: rgba(248,113,113,0.12); color: var(--danger); border: 1px solid rgba(248,113,113,0.3); }
.badge.gray { background: rgba(255,255,255,0.06); color: var(--muted); border: 1px solid var(--border); }
.badge .dotp { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.btn-danger { background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.35); color: var(--danger); }
.btn-danger:hover { background: rgba(248,113,113,0.2); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .icon-tile { margin: 0 auto 18px; }
.empty-state h3 { font-family: var(--font-head); color: var(--text); margin-bottom: 8px; }

.demo-banner {
  background: rgba(251,191,36,0.09);
  border: 1px solid rgba(251,191,36,0.3);
  color: #fde68a;
  border-radius: 12px;
  font-size: 13px;
  padding: 10px 16px;
  margin-bottom: 22px;
}

.mobile-only { display: none; }
@media (max-width: 900px) {
  .app-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .app-sidebar.open { transform: none; box-shadow: 30px 0 60px rgba(0,0,0,0.5); }
  .mobile-only { display: flex; }
  .app-content { padding: 18px 14px; }
  .app-topbar { padding: 0 14px; }
  .user-chip .u-meta { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .login-link { display: none; }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 16px; }
  .section { padding: 68px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cta-band { padding: 46px 24px; }
  .chat-panel { width: calc(100vw - 44px); }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--nav-h) + 44px); }
  .hero-card { padding: 22px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
