/* =========================================================================
   Hone — marketing site design system
   Premium dark, neon-blue fintech aesthetic matching the desktop app.
   Pure CSS, no build step. Mobile-first and fully responsive.
   ========================================================================= */

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

:root {
  --bg: #04080f;
  --bg-2: #081120;
  --panel: #0b1524;
  --panel-2: #0f1d31;
  --border: #173353;
  --border-soft: #0f2238;
  --text: #eaf2ff;
  --muted: #a3b8d6;
  --muted-2: #6f8bb0;
  --accent: #00f0ff;
  --accent-2: #2563ff;
  --pos: #3cff9e;
  --neg: #ff5c7a;
  --gold: #ffb020;
  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px rgba(0, 240, 255, 0.16);
  --sp-section: clamp(56px, 9vw, 104px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image:
    radial-gradient(60% 40% at 50% -5%, rgba(37, 99, 255, 0.12), transparent 70%),
    radial-gradient(40% 30% at 95% 5%, rgba(0, 240, 255, 0.08), transparent 70%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(0, 240, 255, 0.28); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 5vw, 28px); }
.accent { color: var(--accent); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
section { position: relative; padding: var(--sp-section) 0; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.26em; font-size: 12px;
  font-weight: 700; color: var(--accent); margin: 0 0 14px; opacity: 0.95;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 16px; font-weight: 700; letter-spacing: -0.02em; color: #f3f8ff; }
h1 { font-size: clamp(34px, 6vw, 66px); }
h2 { font-size: clamp(27px, 4.4vw, 44px); }
h3 { font-size: clamp(18px, 2.4vw, 21px); }
p { color: var(--muted); }
.lead { font-size: clamp(16px, 2.1vw, 19px); color: var(--muted); max-width: 620px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 15px;
  font-family: var(--font);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
  white-space: nowrap; line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #02101f;
  box-shadow: 0 8px 28px rgba(0, 240, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0, 240, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--border); color: var(--text); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 16px; border-radius: 13px; }
.btn:active { transform: translateY(0); }

/* ---- nav ---- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(4, 8, 15, 0.78);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; letter-spacing: -0.01em; font-size: 19px; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #03101f; font-size: 16px; font-weight: 900;
  box-shadow: 0 0 18px rgba(0, 240, 255, .4);
}
.brand img.mark-img {
  width: 36px; height: 36px; border-radius: 10px; object-fit: cover;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.32);
}
.brand small { display: block; font-size: 10px; color: var(--muted-2); font-weight: 600; letter-spacing: 1px; font-family: var(--font); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; color: var(--muted); font-weight: 600; position: relative; transition: color .18s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--accent); transition: right .25s ease; border-radius: 2px; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-soft);
  color: var(--text); font-size: 20px; cursor: pointer; width: 44px; height: 44px;
  border-radius: 11px; align-items: center; justify-content: center;
}
.menu-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* real app screenshots */
.app-shot-wrap { margin: clamp(32px, 6vw, 50px) auto 0; max-width: 360px; }
.app-shot {
  width: 100%; border-radius: 18px; border: 1px solid var(--border);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(16px, 3vw, 24px); align-items: start; }
.shots figure { margin: 0; }
.shots img {
  width: 100%; border-radius: 16px; border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 82, 255, 0.14);
  transition: transform 0.25s ease, box-shadow .25s ease;
}
.shots img:hover { transform: translateY(-6px); box-shadow: 0 30px 64px rgba(0, 0, 0, 0.6), 0 0 56px rgba(0, 240, 255, 0.2); }
.shots figcaption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; letter-spacing: 0.02em; }

/* credibility stat strip */
.trust { padding: 30px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: rgba(255, 255, 255, 0.015); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-num { font-family: var(--mono); font-size: clamp(20px, 3vw, 27px); font-weight: 800; color: var(--accent); text-shadow: 0 0 18px rgba(0, 240, 255, 0.35); }
.trust-lbl { color: var(--muted); font-size: 13px; }

/* sticky download bar */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  padding: 12px 18px; background: rgba(4, 8, 15, 0.9); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); transform: translateY(120%); transition: transform 0.35s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta span { color: var(--muted); font-size: 14px; }

/* ---- hero ---- */
.hero { padding: clamp(64px, 11vw, 116px) 0 clamp(56px, 9vw, 92px); text-align: center; background: url("assets/hero-bg.png") center 35% / cover no-repeat; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 8, 15, 0.72), rgba(4, 8, 15, 0.94)),
    radial-gradient(60% 50% at 50% 0%, rgba(37, 99, 255, 0.24), transparent 70%),
    radial-gradient(40% 40% at 80% 10%, rgba(0, 240, 255, 0.12), transparent 70%);
}
.grid-overlay::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image:
    linear-gradient(rgba(22, 48, 79, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 48, 79, 0.5) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%);
}
.hero h1 { max-width: 900px; margin-inline: auto; }
.hero .lead { margin: 0 auto 32px; }
.hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.pill {
  font-size: 12px; font-weight: 700; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted); background: rgba(255, 255, 255, .02);
}
.pill.live::before { content: "●"; color: var(--pos); margin-right: 6px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted-2); }

/* ---- app mock (legacy, kept for compatibility) ---- */
.mock { margin: 60px auto 0; max-width: 880px; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: var(--shadow-md); }
.mock-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); }
.mock-top i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.mock-top i:nth-child(1) { background: #ff5f57; } .mock-top i:nth-child(2) { background: #febc2e; } .mock-top i:nth-child(3) { background: #28c840; }
.mock-title { margin-left: 10px; font-size: 12px; color: var(--muted-2); font-family: var(--mono); }
.mock-body { padding: 26px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }

/* ---- generic grids ---- */
.section-head { text-align: center; max-width: 700px; margin: 0 auto clamp(40px, 6vw, 58px); }
.section-head p { font-size: clamp(15px, 2vw, 17px); }
.grid { display: grid; gap: clamp(16px, 2.4vw, 22px); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

.card {
  background: linear-gradient(180deg, rgba(15, 29, 49, 0.7), rgba(8, 17, 32, 0.7));
  border: 1px solid var(--border-soft); border-radius: var(--radius); padding: clamp(22px, 3vw, 28px);
  transition: border-color .22s, transform .22s, box-shadow .22s;
  position: relative; backdrop-filter: blur(4px);
}
.card:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 16px;
  background: rgba(0, 240, 255, .08); border: 1px solid rgba(0, 240, 255, .18);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; margin: 0; }
.badge-soon { font-size: 10px; font-weight: 700; color: var(--gold); border: 1px solid rgba(255, 176, 32, .4); padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.badge-pro { font-size: 10px; font-weight: 700; color: var(--accent); border: 1px solid rgba(0, 240, 255, .45); padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; white-space: nowrap; }
.check { list-style: none; padding: 0; margin: 18px 0 0; }
.check li { position: relative; padding: 9px 0 9px 28px; color: var(--text); border-top: 1px solid var(--border-soft); font-size: 15px; }
.check li:before { content: "✓"; position: absolute; left: 0; top: 9px; color: var(--accent); font-weight: 700; }

/* ---- steps ---- */
.steps { counter-reset: step; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .n {
  flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-weight: 700; font-family: var(--mono); color: var(--accent);
  background: rgba(0, 240, 255, .08); border: 1px solid rgba(0, 240, 255, .2);
}

/* ---- pricing ---- */
.price-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.plan {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 34px); display: flex; flex-direction: column;
  transition: transform .22s, border-color .22s;
}
.plan:hover { transform: translateY(-4px); }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(0, 240, 255, .25), 0 30px 80px rgba(0, 82, 255, .2); position: relative; }
.plan.featured::before {
  content: "MOST POPULAR"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #03101f;
  font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 5px 13px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); font-family: var(--font); }
.plan .amt { font-size: clamp(36px, 5vw, 44px); font-weight: 800; font-family: var(--mono); margin: 6px 0; color: #f3f8ff; }
.plan .amt small { font-size: 14px; color: var(--muted-2); font-family: var(--font); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 22px 0; flex: 1; }
.plan li { padding: 9px 0; font-size: 14.5px; color: var(--muted); border-bottom: 1px solid var(--border-soft); }
.plan li::before { content: "✓"; color: var(--pos); font-weight: 800; margin-right: 10px; }
.plan li.off { color: var(--muted-2); opacity: .6; }
.plan li.off::before { content: "—"; color: var(--muted-2); }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; }
details { border: 1px solid var(--border-soft); border-radius: 13px; padding: 4px 20px; margin-bottom: 12px; background: var(--panel); transition: border-color .2s; }
details[open] { border-color: var(--border); }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-head); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; flex: none; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 18px; font-size: 15px; }

/* ---- CTA band ---- */
.cta-band { text-align: center; }
.cta-band .inner {
  background: linear-gradient(135deg, rgba(0, 82, 255, .2), rgba(0, 240, 255, .1));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(40px, 7vw, 64px) clamp(24px, 5vw, 40px);
  position: relative; overflow: hidden;
}
.cta-band .inner::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .4;
  background: radial-gradient(50% 80% at 50% 0%, rgba(0, 240, 255, .18), transparent 70%);
}
.cta-band .inner > * { position: relative; z-index: 1; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--border-soft); padding: clamp(40px, 6vw, 56px) 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot-col h4 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-2); margin: 0 0 14px; font-family: var(--font); }
.foot-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color .18s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted-2); }
.disclaimer { font-size: 12px; color: var(--muted-2); max-width: 560px; }

/* ---- docs layout ---- */
.docs-wrap { display: grid; grid-template-columns: 248px 1fr; gap: 50px; padding: 50px 0 90px; align-items: start; }
.docs-side { position: sticky; top: 90px; }
.docs-side h4 { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-2); margin: 22px 0 8px; }
.docs-side a { display: block; font-size: 14px; color: var(--muted); padding: 6px 12px; border-radius: 8px; border-left: 2px solid transparent; }
.docs-side a:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.docs-content { min-width: 0; }
.docs-content h1 { font-size: clamp(30px, 5vw, 38px); }
.docs-content h2 { font-size: clamp(22px, 3.4vw, 27px); margin-top: 48px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.docs-content h3 { margin-top: 28px; color: var(--text); }
.docs-content p, .docs-content li { color: var(--muted); font-size: 15.5px; }
.docs-content code { font-family: var(--mono); background: var(--bg-2); border: 1px solid var(--border-soft); padding: 2px 7px; border-radius: 6px; font-size: 13px; color: var(--accent); }
.docs-content pre { background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: 12px; padding: 18px; overflow-x: auto; }
.docs-content pre code { border: 0; background: none; padding: 0; color: var(--text); }
.callout { border: 1px solid var(--border); border-left: 3px solid var(--accent); background: rgba(0, 240, 255, .05); border-radius: 10px; padding: 14px 18px; margin: 20px 0; }
.callout.warn { border-left-color: var(--gold); background: rgba(255, 176, 32, .06); }
.callout.danger { border-left-color: var(--neg); background: rgba(255, 92, 122, .06); }

/* legal page readability */
.legal h3 { font-family: var(--font-head); }

/* ---- scroll reveal (added by JS, so no-JS stays visible) ---- */
.reveal-init { opacity: 0; transform: translateY(20px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) {
  .reveal-init { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   Responsive
   ========================================================================= */

/* tablet */
@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(6, 12, 22, 0.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 8px clamp(18px, 5vw, 28px) 18px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
    transform-origin: top; transform: scaleY(0); opacity: 0; pointer-events: none;
    transition: transform .22s ease, opacity .2s ease;
  }
  header.nav.open .nav-links { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 15px 4px; font-size: 16px; border-bottom: 1px solid var(--border-soft); }
  .nav-links a::after { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn { padding: 11px 16px; font-size: 14px; }
  .menu-toggle { display: inline-flex; }
  .docs-wrap { grid-template-columns: 1fr; gap: 8px; padding-top: 28px; }
  .docs-side { position: static; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; padding: 14px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--panel); }
  .docs-side h4 { display: none; }
  .docs-side a { padding: 7px 13px; border: 1px solid var(--border-soft); border-radius: 999px; font-size: 13px; }
  .docs-side a:hover { border-color: var(--accent); }
  .mock-body { grid-template-columns: 1fr; }
}

/* large phone */
@media (max-width: 680px) {
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-col:first-child { grid-column: 1 / -1; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .foot-bottom { flex-direction: column; }
}

/* small phone */
@media (max-width: 420px) {
  .nav-cta .btn { padding: 10px 13px; font-size: 13px; }
  .brand { font-size: 17px; }
  .foot-grid { grid-template-columns: 1fr; }
  .sticky-cta span { display: none; }
  .sticky-cta { padding: 10px 14px; }
  .sticky-cta .btn { width: 100%; }
}

/* ========================================================================== */
/*  Accounts: auth pages + dashboard                                          */
/* ========================================================================== */

/* shared button extras */
.btn-block { width: 100%; }
.btn-sm { padding: 9px 15px; font-size: 13px; border-radius: 10px; }
.btn-google {
  width: 100%; background: #fff; color: #1f2937; border: 1px solid #dfe3eb;
  font-weight: 600;
}
.btn-google:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #cfd6e2; }
.btn .danger, .btn.danger { }
.btn-ghost.danger:hover { border-color: var(--neg); color: var(--neg); }

/* ---- auth pages ---- */
.auth-wrap {
  min-height: calc(100vh - 68px);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(28px, 7vw, 72px) clamp(18px, 5vw, 28px);
}

/* centered premium stage over the generated background image */
.auth-stage {
  position: relative; min-height: calc(100vh - 68px);
  display: grid; place-items: center;
  padding: clamp(32px, 6vw, 72px) clamp(18px, 5vw, 28px);
  background: #04080f url("assets/auth-bg.png") center / cover no-repeat fixed;
}
.auth-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(4, 8, 15, 0.35), rgba(4, 8, 15, 0.82) 70%),
    linear-gradient(180deg, rgba(4, 8, 15, 0.55), rgba(4, 8, 15, 0.78));
}
.auth-box { position: relative; z-index: 1; width: 100%; max-width: 440px; }
.auth-box .auth-card { max-width: none; }

/* tasteful quote + trust strip beneath the card */
.auth-quote {
  margin: 22px auto 0; max-width: 400px; text-align: center;
  color: var(--muted); font-size: 13.5px; line-height: 1.6;
}
.auth-quote b { color: #dfe9ff; }
.auth-trust {
  margin: 16px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  color: var(--muted-2); font-size: 12px; letter-spacing: 0.02em;
}
.auth-trust span { display: inline-flex; align-items: center; gap: 6px; }
.auth-trust span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.8; }
.auth-card {
  width: 100%; max-width: 440px;
  background: linear-gradient(180deg, rgba(13, 24, 41, 0.86), rgba(6, 12, 22, 0.92));
  backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(120, 170, 255, 0.18); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 40px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}
.auth-card .brand { justify-content: center; font-size: 22px; margin-bottom: 22px; }
.auth-card h1 { font-size: clamp(26px, 4vw, 33px); margin-bottom: 8px; text-align: center; }
.auth-sub { color: var(--muted); margin: 0 0 24px; font-size: 14.5px; text-align: center; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: #c7d6ef; letter-spacing: 0.01em; }
.field > span:first-child { font-family: var(--font-head); }
.field em { color: var(--muted-2); font-style: normal; font-weight: 500; font-size: 12px; }
.field input {
  width: 100%; background: rgba(8, 16, 28, 0.85); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 15px; color: var(--text);
  font-family: var(--font); font-size: 15px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input::placeholder { color: var(--muted-2); opacity: 0.8; }
.field input:focus { outline: none; border-color: var(--accent); background: rgba(8, 16, 28, 0.98); box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.16); }
.field input:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-form .btn-lg { margin-top: 4px; }
.auth-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; font-size: 14px; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--accent); font-weight: 600; }

/* dashboard: redeem / link a key */
.redeem-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; align-items: stretch; }
.redeem-row input {
  flex: 1 1 240px; min-width: 0;
  background: rgba(8, 16, 28, 0.9); border: 1px solid var(--border);
  border-radius: 11px; padding: 12px 14px; color: var(--text);
  font-family: var(--font); font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.redeem-row input::placeholder { color: var(--muted-2); opacity: 0.85; }
.redeem-row input:focus {
  outline: none; border-color: var(--accent);
  background: rgba(8, 16, 28, 1); box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.16);
}
.redeem-row .btn { flex: 0 0 auto; }
.redeem-msg { margin: 10px 0 0; font-size: 13.5px; }
.redeem-msg.ok { color: var(--pos, #14F195); }
.redeem-msg.err { color: var(--neg, #ff5470); }

/* alerts */
.alert { padding: 12px 15px; border-radius: 11px; font-size: 14px; margin-bottom: 18px; border: 1px solid; }
.alert.error { background: rgba(255, 92, 122, 0.1); border-color: rgba(255, 92, 122, 0.4); color: #ffb3c2; }
.alert.ok { background: rgba(60, 255, 158, 0.1); border-color: rgba(60, 255, 158, 0.38); color: #adffd6; }
.alert.warn { background: rgba(255, 176, 32, 0.1); border-color: rgba(255, 176, 32, 0.4); color: #ffd690; }
.alert a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ---- dashboard ---- */
.dash-wrap { padding: clamp(28px, 5vw, 52px) 0 80px; min-height: calc(100vh - 68px); }
.dash-loading { color: var(--muted); padding: 60px 0; text-align: center; }
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.dash-head h1 { margin-bottom: 6px; font-size: clamp(28px, 4.4vw, 40px); }
.dash-muted { color: var(--muted); font-size: 14px; }
.plan-badge {
  font-family: var(--font-head); font-weight: 700; letter-spacing: 0.08em; font-size: 13px;
  padding: 8px 16px; border-radius: 999px; background: rgba(0, 240, 255, 0.12);
  color: var(--accent); border: 1px solid rgba(0, 240, 255, 0.4); white-space: nowrap;
}
.plan-badge.gold { background: rgba(255, 176, 32, 0.12); color: var(--gold); border-color: rgba(255, 176, 32, 0.45); }
.plan-badge.muted { background: rgba(255, 255, 255, 0.05); color: var(--muted); border-color: var(--border); }

.dash-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: clamp(18px, 3vw, 26px); margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.dash-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dash-card-head h2 { margin: 0; font-size: clamp(18px, 2.6vw, 22px); }
.dash-chip { font-size: 13px; font-family: var(--font); font-weight: 600; color: var(--muted); background: rgba(255,255,255,0.05); border: 1px solid var(--border-soft); border-radius: 999px; padding: 3px 11px; margin-left: 6px; }
.dash-empty { color: var(--muted); font-size: 14.5px; margin: 6px 0; }

/* license rows */
.lic-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; border-top: 1px solid var(--border-soft); }
.lic-row:first-child { border-top: none; }
.lic-main { min-width: 0; flex: 1; }
.lic-top { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.lic-key { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--text); background: #0a1422; border: 1px solid var(--border-soft); border-radius: 8px; padding: 8px 10px; word-break: break-all; }
.lic-end { margin-top: 7px; }

.status-pill { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 10px; border-radius: 999px; }
.status-pill.ok { background: rgba(60, 255, 158, 0.14); color: var(--pos); }
.status-pill.muted { background: rgba(255, 255, 255, 0.07); color: var(--muted); }

/* device rows */
.dev-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border-soft); }
.dev-row:first-of-type { border-top: none; }

/* purchase table */
.dash-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dash-table th { text-align: left; color: var(--muted-2); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 10px; border-bottom: 1px solid var(--border-soft); }
.dash-table td { padding: 12px 10px; border-bottom: 1px solid var(--border-soft); color: var(--text); }
.dash-table tr:last-child td { border-bottom: none; }

@media (max-width: 560px) {
  .lic-row, .dev-row { flex-direction: column; align-items: stretch; }
  .lic-row .btn, .dev-row .btn { align-self: flex-start; }
  .dash-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* purchase gate on the Pro page */
.buy-gate { max-width: 760px; margin: 0 auto 30px; }
.buy-gate-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(37, 99, 255, 0.12), rgba(0, 240, 255, 0.08));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow-sm);
}
.buy-gate-inner b { font-family: var(--font-head); font-size: 18px; color: #f3f8ff; }
.buy-gate-inner p { margin: 4px 0 0; font-size: 14px; max-width: 420px; }
.buy-gate-actions { display: flex; gap: 10px; flex-shrink: 0; }
.buy-as {
  max-width: 760px; margin: 0 auto 26px; text-align: center; color: var(--muted);
  font-size: 14px; background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 12px 16px;
}
.buy-as b { color: var(--accent); }
@media (max-width: 560px) {
  .buy-gate-actions { width: 100%; }
  .buy-gate-actions .btn { flex: 1; }
}
