/* ============================================================
   Lirelle — Web interface stylesheet
   Shared across landing / pricing / signin / dashboard / legal.
   Built on the in-app lumo.css tokens (same warm-coal palette,
   same gold). Web type system layered on top:
     - Dela Gothic One  → display / headlines
     - Source Code Pro  → mono labels, meta, fine print
     - Inter            → long-form body copy
   Web stays dark like the app. (Emails are light — separate files.)
   ============================================================ */

/* SF Mono isn't on non-Apple devices — Source Code Pro is the web fallback for mono. */
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;500;600&display=swap');

:root {
  /* Brand tokens — carried verbatim from the app */
  --bg:          #0A0808;
  --card:        #141210;
  --card-hover:  #1B1814;
  --border:      #1F1C18;
  --text:        #EFEAE4;
  --ink:         #888F8A;
  --gold:        #EBB638;
  --orange:      #FF9B50;
  --red:         #EF5350;
  --green:       #6FBF73;

  --ink-dim:     #5C615E;
  --hairline:    #17140F;
  --gold-soft:   rgba(235,182,56,0.12);
  --gold-tint:   rgba(235,182,56,0.10);
  --gold-ring:   rgba(235,182,56,0.32);
  --green-soft:  rgba(111,191,115,0.14);
  --card-08:     rgba(255,255,255,0.08);

  /* Type — matches the in-app system-font stack (lumo.css) */
  --font:    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  --display: var(--font);
  --body:    var(--font);
  --mono:    "SF Mono", ui-monospace, "Source Code Pro", Menlo, monospace;

  /* Rhythm */
  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

/* warm atmospheric wash, like the app onboarding canvas */
.page {
  min-height: 100vh;
  background:
    radial-gradient(1100px 720px at 78% -8%, #221d18 0%, transparent 56%),
    radial-gradient(900px 680px at 6% 8%, #1d1915 0%, transparent 52%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- shared brand bits ---------- */
.orb {
  border-radius: 50%;
  flex: 0 0 auto;
  background: radial-gradient(circle at 32% 30%, #FFD980 0%, #EBB638 42%, #B4791C 100%);
  box-shadow: 0 0 18px rgba(235,182,56,0.32);
}
.wordmark {
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--text);
}

/* mono kicker / eyebrow label */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker.dim { color: var(--ink-dim); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  transition: filter 120ms ease, background 120ms ease, border-color 120ms ease;
}
.btn-primary { background: var(--gold); color: #1A1206; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--card-hover); border-color: #2A2620; }
.btn-lg { height: 54px; padding: 0 30px; font-size: 16px; }
.btn .sub {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  opacity: 0.72;
}

/* ============================================================
   NAV (sticky)
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10,8,8,0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; gap: 18px; }
.nav-brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.nav-brand .orb { width: 22px; height: 22px; }
.nav-brand .wordmark { font-size: 16px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 8px;
  transition: color 120ms ease, background 120ms ease;
}
.nav-link:hover { color: var(--text); background: var(--card); }
.nav .btn { height: 40px; padding: 0 18px; font-size: 13.5px; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section { position: relative; }
.section-pad { padding: 84px 0; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.section-title {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.8px;
  color: var(--text);
}
.section-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 56ch;
}
.divider { height: 1px; background: var(--border); border: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 64px 0 76px; }
.hero .container {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5.4vw, 66px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -2px;
  color: var(--text);
  margin: 22px 0 24px;
}
.hero h1 .gold { color: var(--gold); }
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-sub b { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hero-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-dim);
}
.hero-meta b { color: var(--ink); font-weight: 500; }

/* ============================================================
   PRODUCT MOCKUP — mini bank window (authentic app UI)
   ============================================================ */
.mockup-stage {
  position: relative;
  perspective: 1600px;
}
.mock-win {
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 40px 90px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.4);
}
.mock-titlebar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border-bottom: 1px solid var(--hairline);
}
.mock-traffic { display: flex; gap: 8px; }
.mock-traffic i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mock-traffic .r { background: #FF5F57; }
.mock-traffic .y { background: #FEBC2E; }
.mock-traffic .g { background: #28C840; }
.mock-body { display: flex; min-height: 320px; }
.mock-side {
  width: 168px;
  flex: 0 0 auto;
  border-right: 1px solid var(--border);
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mock-brand { display: flex; align-items: center; gap: 9px; padding: 6px 8px 16px; }
.mock-brand .orb { width: 18px; height: 18px; }
.mock-brand .wordmark { font-size: 12.5px; letter-spacing: 1.6px; }
.mock-nav {
  display: flex; align-items: center; gap: 10px;
  height: 32px; padding: 0 10px; border-radius: 7px;
  font-family: var(--body); font-size: 12.5px; font-weight: 500; color: var(--ink);
}
.mock-nav .dotico { width: 15px; height: 15px; flex: 0 0 auto; color: var(--ink); }
.mock-nav.active { background: var(--card); color: var(--text); position: relative; }
.mock-nav.active .dotico { color: var(--gold); }
.mock-nav.active::before {
  content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px; border-radius: 0 3px 3px 0; background: var(--gold);
}
.mock-nav .ct {
  margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--ink-dim);
  background: var(--card); padding: 1px 6px; border-radius: 9px;
}
.mock-seclabel {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink-dim); padding: 16px 10px 7px;
}
.mock-main { flex: 1 1 auto; min-width: 0; padding: 20px 22px; }
.mock-main h4 {
  font-family: var(--body); font-size: 18px; font-weight: 700; letter-spacing: -0.3px;
  color: var(--text); margin-bottom: 4px;
}
.mock-main .mock-sub {
  font-family: var(--mono); font-size: 10.5px; color: var(--ink); margin-bottom: 18px;
}
.mock-row {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 2px; border-bottom: 1px solid var(--hairline);
}
.mock-row .rdot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: 0 0 auto; }
.mock-row .rdot.gold { background: var(--gold); }
.mock-row .rdot.green { background: var(--green); }
.mock-row .rbody { flex: 1 1 auto; min-width: 0; }
.mock-row .rtitle {
  font-family: var(--body); font-size: 13.5px; font-weight: 600; color: var(--text);
  margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-row .rmeta {
  font-family: var(--mono); font-size: 10px; color: var(--ink);
  display: flex; gap: 7px; align-items: center;
}
.mbadge {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.7px; text-transform: uppercase;
  padding: 2px 6px; border-radius: 5px;
}
.mbadge.summary { color: var(--gold); background: var(--gold-soft); }
.mbadge.transcript { color: var(--green); background: var(--green-soft); }

/* floating dictation capsule */
.cap-float {
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(27,24,20,0.94);
  border: 1px solid var(--card-08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.cap-float .kbd {
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: #1A1206;
  background: var(--gold); padding: 4px 9px; border-radius: 6px;
  box-shadow: 0 0 18px rgba(235,182,56,0.4);
}
.cap-float .wave { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 16px; }
.cap-float .wave i { width: 2.5px; border-radius: 2px; background: var(--gold); }
.cap-float .lbl { font-family: var(--mono); font-size: 11.5px; color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .cap-float .wave i { animation: capwave 1s ease-in-out infinite; }
  .cap-float .wave i:nth-child(2) { animation-delay: 0.12s; }
  .cap-float .wave i:nth-child(3) { animation-delay: 0.24s; }
  .cap-float .wave i:nth-child(4) { animation-delay: 0.36s; }
  .cap-float .wave i:nth-child(5) { animation-delay: 0.48s; }
}
@keyframes capwave {
  0%, 100% { height: 5px; opacity: 0.65; }
  50% { height: 15px; opacity: 1; }
}

/* ============================================================
   FEATURE CARDS (how it works)
   ============================================================ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card {
  background: var(--card);
  border: 1px solid var(--card-08);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}
.feat-card:hover { border-color: var(--gold-ring); transform: translateY(-2px); background: var(--card-hover); }
.feat-ico {
  width: 48px; height: 48px; border-radius: 13px; flex: 0 0 auto;
  background: linear-gradient(160deg, var(--gold-soft), transparent 70%), var(--bg);
  border: 1px solid var(--gold-ring);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.feat-card h3 {
  font-family: var(--body); font-size: 19px; font-weight: 600; letter-spacing: -0.3px;
  color: var(--text);
}
.feat-card p {
  font-family: var(--body); font-size: 15px; line-height: 1.62; color: var(--ink);
}
.feat-card p b { color: var(--text); font-weight: 600; }

/* ============================================================
   PRICING
   ============================================================ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.plan.feature {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 24px 60px rgba(235,182,56,0.08);
}
.plan-tag {
  position: absolute; top: -11px; right: 22px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase;
  font-weight: 600; color: #1A1206; background: var(--gold);
  padding: 4px 10px; border-radius: 6px;
}
.plan-name {
  font-family: var(--mono); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 600; color: var(--ink);
}
.plan.feature .plan-name { color: var(--gold); }
.plan-price { display: flex; align-items: baseline; gap: 7px; }
.plan-price .amt {
  font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: -1.5px; color: var(--text);
}
.plan-price .cur {
  font-family: var(--body); font-size: 24px; font-weight: 600; color: var(--text);
  align-self: flex-start; margin-top: 5px; margin-left: -3px;
}
.plan-price .per { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.plan-desc {
  font-family: var(--body); font-size: 14px; line-height: 1.6; color: var(--ink);
  padding-top: 16px; border-top: 1px solid var(--border); margin-top: -2px;
}
.plan .btn { width: 100%; margin-top: auto; }
.plan-note {
  font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--ink-dim);
  text-align: center; margin-top: 26px; max-width: 60ch; margin-left: auto; margin-right: auto;
}

/* ============================================================
   PRIVACY STRIP
   ============================================================ */
.privacy {
  background: var(--card);
  border: 1px solid var(--card-08);
  border-radius: 18px;
  padding: 52px 48px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}
.privacy .pv-title {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.7px;
  color: var(--text);
}
.privacy .pv-body {
  font-family: var(--body); font-size: 16px; line-height: 1.7; color: var(--ink);
}
.privacy .pv-body b { color: var(--text); font-weight: 600; }
.pv-lock { color: var(--gold); margin-bottom: 18px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 760px; border-top: 1px solid var(--border); }
.faq {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  font-family: var(--body);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text);
  transition: color 120ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold); }
.faq summary .q { flex: 1 1 auto; }
.faq summary .pm {
  flex: 0 0 auto; width: 18px; height: 18px; position: relative; color: var(--ink);
  transition: transform 180ms ease, color 120ms ease;
}
.faq summary .pm::before, .faq summary .pm::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
}
.faq summary .pm::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq summary .pm::after { left: 8px; top: 0; width: 2px; height: 18px; transition: opacity 180ms ease; }
.faq[open] summary { color: var(--gold); }
.faq[open] summary .pm { color: var(--gold); transform: rotate(180deg); }
.faq[open] summary .pm::after { opacity: 0; }
.faq-a {
  font-family: var(--body); font-size: 15px; line-height: 1.66; color: var(--ink);
  padding: 0 40px 24px 4px; max-width: 64ch;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 56px;
}
.footer .container { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand .orb { width: 20px; height: 20px; }
.footer-brand .wordmark { font-size: 14px; }
.footer-links { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.footer-link {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-dim);
  padding: 7px 12px; border-radius: 7px; transition: color 120ms ease, background 120ms ease;
}
.footer-link:hover { color: var(--ink); background: var(--card); }
.footer-legal {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-dim); width: 100%;
  padding-top: 22px; margin-top: 4px; border-top: 1px solid var(--hairline);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .mockup-stage { max-width: 520px; }
  .cards-3 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .privacy { grid-template-columns: 1fr; gap: 26px; padding: 36px 28px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section-pad { padding: 60px 0; }
  .nav-links .nav-link { display: none; }
}

/* ============================================================
   WEB CABINET / DASHBOARD  (dashboard.html)
   Left sidebar mirrors the in-app nav; main content scrolls.
   ============================================================ */
.dash {
  display: grid;
  grid-template-columns: 256px 1fr;
  min-height: 100vh;
}

/* ---- sidebar ---- */
.dash-side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  border-right: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
}
.dash-brand { display: flex; align-items: center; gap: 11px; padding: 6px 10px 26px; }
.dash-brand .orb { width: 22px; height: 22px; }
.dash-brand .wordmark { font-size: 15px; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav-item {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 12px; border-radius: 9px;
  color: var(--ink); cursor: pointer; position: relative;
  font-size: 14px; font-weight: 500;
  transition: background 120ms ease, color 120ms ease;
}
.dash-nav-item .ico { color: var(--ink); flex: 0 0 auto; transition: color 120ms ease; }
.dash-nav-item:hover { background: var(--card); color: var(--text); }
.dash-nav-item:hover .ico { color: var(--text); }
.dash-nav-item.active { color: var(--text); background: var(--card); }
.dash-nav-item.active .ico { color: var(--gold); }
.dash-nav-item.active::before {
  content: ""; position: absolute; left: -16px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: var(--gold);
}
.dash-side-spacer { flex: 1 1 auto; }
.dash-side-foot {
  border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.dash-side-link {
  display: flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 12px; border-radius: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-dim);
  transition: color 120ms ease, background 120ms ease;
}
.dash-side-link:hover { color: var(--ink); background: var(--card); }

/* ---- main ---- */
.dash-main { min-width: 0; }
.dash-wrap { max-width: 820px; padding: 44px 48px 80px; }
.dash-section { margin-top: 52px; }
.dash-section:first-child { margin-top: 0; }
.dash-sec-title {
  font-family: var(--display); font-size: 13px; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink);
  margin-bottom: 18px;
}

/* ---- account header ---- */
.acct-header {
  display: flex; align-items: center; gap: 18px;
  padding-bottom: 30px; border-bottom: 1px solid var(--border);
}
.acct-avatar {
  width: 60px; height: 60px; border-radius: 50%; flex: 0 0 auto;
  background: radial-gradient(circle at 32% 30%, #FFD980 0%, #EBB638 42%, #B4791C 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: #2A1C06;
}
.acct-id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.acct-email { font-size: 19px; font-weight: 600; letter-spacing: -0.2px; color: var(--text); }
.acct-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-pill {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase;
  font-weight: 600; color: var(--gold); background: var(--gold-soft);
  padding: 5px 11px; border-radius: 7px;
}
.plan-pill .pp-sep { color: rgba(235,182,56,0.5); }

/* ---- devices ---- */
.dev-row {
  display: flex; align-items: center; gap: 15px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.dev-row .dev-act { margin-left: 4px; }
.dev-signout {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 13px; border-radius: 8px;
  font-family: var(--body); font-size: 12.5px; font-weight: 500;
  color: var(--ink); background: transparent; border: 1px solid var(--border);
  cursor: pointer; white-space: nowrap;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}
.dev-signout:hover { color: var(--red); border-color: rgba(239,83,80,0.4); background: rgba(239,83,80,0.08); }
.dev-signout svg { flex: 0 0 auto; }
.dev-ico {
  width: 42px; height: 42px; border-radius: 11px; flex: 0 0 auto;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.dev-body { flex: 1 1 auto; min-width: 0; }
.dev-name { font-size: 14.5px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.dev-meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink); }
.dev-meta .this { color: var(--gold); }
.dv-pill {
  flex: 0 0 auto; white-space: nowrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.6px; text-transform: uppercase;
  font-weight: 500; padding: 4px 9px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 6px;
}
.dv-pill .bdot { flex: 0 0 auto; }
.dv-pill .bdot { width: 6px; height: 6px; border-radius: 50%; }
.dv-pill.live { color: var(--green); background: var(--green-soft); }
.dv-pill.live .bdot { background: var(--green); }
.dv-pill.idle { color: var(--ink); background: var(--card); border: 1px solid var(--border); }
.dv-pill.idle .bdot { background: var(--ink-dim); }

/* ---- billing card ---- */
.bill-card {
  background: var(--card); border: 1px solid var(--card-08);
  border-radius: 14px; padding: 4px 24px;
}
.bill-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.bill-row:last-child { border-bottom: none; }
.bill-label { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.bill-value { font-size: 14.5px; font-weight: 500; color: var(--text); text-align: right; white-space: nowrap; }
.bill-value .sub { font-family: var(--mono); font-size: 11.5px; color: var(--ink); font-weight: 400; }
.bill-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 18px 0 4px; }
.bill-actions .btn { height: 42px; }
.bill-link {
  font-family: var(--mono); font-size: 12.5px; color: var(--gold);
  border-bottom: 1px solid rgba(235,182,56,0.4); padding-bottom: 1px; margin-left: 4px;
}
.bill-link:hover { border-bottom-color: var(--gold); }
.card-brand {
  display: inline-flex; align-items: center; gap: 8px;
}
.card-brand .cb-mark {
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--text); background: var(--bg); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 4px;
}

/* ---- payment provider (we don't store cards — Robokassa/Stripe do) ---- */
.pay-provider { display: inline-flex; align-items: center; gap: 8px; }
.pay-provider .pv-logo {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.4px;
  color: var(--gold); background: var(--gold-soft); padding: 4px 9px; border-radius: 6px;
}
.bill-note {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: var(--ink-dim);
  padding: 16px 0 2px; border-top: 1px solid var(--hairline); margin-top: 2px;
}

/* ---- invoices table ---- */
.inv-table { width: 100%; border-collapse: collapse; }
.inv-table th {
  text-align: left; padding: 0 12px 12px 0;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--ink-dim); font-weight: 500; border-bottom: 1px solid var(--border);
}
.inv-table th:last-child, .inv-table td:last-child { text-align: right; padding-right: 0; }
.inv-table td {
  padding: 14px 12px 14px 0; border-bottom: 1px solid var(--hairline);
  font-size: 13.5px; color: var(--text);
}
.inv-table td.mono { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.inv-table tr:hover td { background: var(--card); }
.inv-receipt {
  font-family: var(--mono); font-size: 12px; color: var(--gold);
  display: inline-flex; align-items: center; gap: 6px;
}
.inv-receipt:hover { text-decoration: underline; }

/* ---- settings rows ---- */
.set-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.set-row:last-child { border-bottom: none; }
.set-label { font-size: 14px; font-weight: 500; color: var(--text); }
.set-desc { font-family: var(--mono); font-size: 11.5px; color: var(--ink); margin-top: 4px; }
.set-text.danger .set-label { color: var(--red); }
.toggle {
  width: 44px; height: 26px; border-radius: 13px; flex: 0 0 auto;
  background: var(--card); border: 1px solid var(--border); position: relative; cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--ink);
  transition: transform 140ms ease, background 140ms ease;
}
.toggle.on { background: var(--gold-soft); border-color: rgba(235,182,56,0.4); }
.toggle.on::after { transform: translateX(18px); background: var(--gold); }

/* ---- dashboard responsive ---- */
@media (max-width: 820px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side {
    position: static; height: auto; flex-direction: row; align-items: center;
    border-right: none; border-bottom: 1px solid var(--border);
    padding: 12px 16px; gap: 4px; overflow-x: auto;
  }
  .dash-brand { padding: 0 14px 0 6px; }
  .dash-nav { flex-direction: row; }
  .dash-nav-item { height: 36px; white-space: nowrap; }
  .dash-nav-item.active::before { display: none; }
  .dash-side-spacer, .dash-side-foot { display: none; }
  .dash-wrap { padding: 32px 24px 64px; }
}

/* ============================================================
   CHANGE-PLAN MODAL  (pure CSS, opens via :target)
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal:target { display: flex; }
.modal-scrim {
  position: absolute; inset: 0;
  background: rgba(6,5,5,0.68);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  width: 100%; max-width: 544px;
  max-height: 90vh; overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--card-08);
  border-radius: 18px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.62);
}
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 26px 28px 4px;
}
.modal-title {
  font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.4px;
  color: var(--text);
}
.modal-sub { font-family: var(--body); font-size: 14px; line-height: 1.5; color: var(--ink); margin-top: 7px; }
.modal-close {
  width: 34px; height: 34px; border-radius: 8px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); background: var(--bg); border: 1px solid var(--border);
  transition: color 120ms ease, background 120ms ease;
}
.modal-close:hover { color: var(--text); background: var(--card-hover); }
.modal-body { padding: 18px 28px 22px; display: flex; flex-direction: column; gap: 10px; }

.plan-opt {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg);
}
.plan-opt.current { border-color: rgba(235,182,56,0.42); background: var(--gold-tint); }
.plan-opt .po-main { flex: 1 1 auto; min-width: 0; }
.plan-opt .po-name {
  font-size: 15px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 9px;
}
.po-cur-tag {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.6px; text-transform: uppercase;
  font-weight: 600; color: var(--gold); background: var(--gold-soft);
  padding: 2px 7px; border-radius: 5px;
}
.plan-opt .po-desc { font-family: var(--body); font-size: 13px; line-height: 1.5; color: var(--ink); margin-top: 5px; }
.plan-opt .po-price {
  font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--text);
  white-space: nowrap; text-align: right;
}
.plan-opt .po-price small { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--ink); }
.plan-opt .btn { height: 38px; padding: 0 16px; font-size: 13px; flex: 0 0 auto; }
.modal-foot { padding: 4px 28px 26px; }
.modal-note { font-family: var(--mono); font-size: 11.5px; line-height: 1.65; color: var(--ink-dim); }

/* confirm-variant modal (device sign-out) */
.modal-card.confirm { max-width: 440px; }
.modal-card.confirm .modal-body { padding-top: 8px; }
.confirm-dev {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg);
}
.confirm-dev .dev-ico { width: 38px; height: 38px; border-radius: 10px; }
.confirm-dev .cd-name { font-size: 14px; font-weight: 600; color: var(--text); }
.confirm-dev .cd-meta { font-family: var(--mono); font-size: 11px; color: var(--ink); margin-top: 3px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1 1 auto; }
.btn-danger { background: var(--red); color: #2A0A09; }
.btn-danger:hover { filter: brightness(1.07); }

/* ============================================================
   AUTH  (signin.html) — centered card, two states
   ============================================================ */
.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--card);
  border: 1px solid var(--card-08);
  border-radius: 20px;
  padding: 40px 40px 34px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.3);
}
.auth-brand {
  display: flex; align-items: center; gap: 11px; justify-content: center;
  margin-bottom: 30px;
}
.auth-brand .orb { width: 26px; height: 26px; }
.auth-brand .wordmark { font-size: 17px; letter-spacing: 2px; }
.auth-h {
  font-family: var(--display); font-size: 25px; font-weight: 700; letter-spacing: -0.5px;
  color: var(--text); text-align: center; margin-bottom: 9px;
}
.auth-lead {
  font-size: 14.5px; line-height: 1.55; color: var(--ink);
  text-align: center; margin-bottom: 28px; max-width: 34ch;
  margin-left: auto; margin-right: auto;
}
.auth-lead b { color: var(--text); font-weight: 600; }
.auth-field { margin-bottom: 14px; }
.auth-label {
  display: block;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 8px;
}
.auth-input {
  width: 100%; height: 50px; padding: 0 16px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 11px;
  color: var(--text); font-family: var(--body); font-size: 15px;
  outline: none; transition: border-color 120ms ease, box-shadow 120ms ease;
}
.auth-input::placeholder { color: var(--ink-dim); }
.auth-input:focus { border-color: var(--gold-ring); box-shadow: 0 0 0 3px var(--gold-tint); }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-alt {
  text-align: center; margin-top: 22px;
  font-size: 13.5px; color: var(--ink);
}
.auth-alt a { color: var(--gold); border-bottom: 1px solid var(--gold-ring); padding-bottom: 1px; }
.auth-alt a:hover { border-bottom-color: var(--gold); }

/* OTP cells */
.otp-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 8px; }
.otp-cell {
  width: 100%; max-width: 50px; aspect-ratio: 5 / 6;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: 11px;
  font-family: var(--mono); font-size: 24px; font-weight: 600; color: var(--text);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.otp-cell.filled { border-color: var(--gold-ring); }
.otp-cell.caret { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.auth-sent {
  font-size: 13.5px; line-height: 1.5; color: var(--ink); text-align: center;
  margin-bottom: 24px;
}
.auth-sent b { color: var(--text); font-weight: 600; }
.auth-resend {
  font-family: var(--mono); font-size: 12px; color: var(--ink-dim);
  text-align: center; margin-top: 20px;
}
.auth-resend a { color: var(--gold); }
.auth-back {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-family: var(--mono); font-size: 12px; color: var(--ink);
  margin-bottom: 22px; transition: color 120ms ease;
}
.auth-back:hover { color: var(--text); }
