/* ============================================================
   Snipely — "Nightwatch" design system
   Dark-first. Ink surfaces, one deliberate Signal Green accent.
   Tokens mirror mobile/lib/theme.ts.
   ============================================================ */

:root {
  /* Surfaces */
  --ink: #0F1115;
  --ink-secondary: #13161C;
  --ink-raised: #161A21;
  --ink-float: #1C2129;
  --ink-tertiary: #20252E;

  /* Text */
  --paper: #F4F4F5;
  --mist: #9AA1AD;
  --faint: #646B78;

  /* Accent — Signal Green */
  --signal: #00E676;
  --signal-pressed: #00C766;
  --signal-text: #2BEE8C;
  --signal-soft: rgba(0, 230, 118, 0.12);

  /* Secondary — Coral */
  --coral: #FF3D5A;
  --coral-text: #FF7A8D;
  --coral-soft: rgba(255, 61, 90, 0.14);

  /* Borders */
  --border-hairline: rgba(244, 244, 245, 0.08);
  --border-default: rgba(244, 244, 245, 0.12);
  --border-strong: #3A404B;

  /* Radii */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-full: 999px;

  /* Shadows */
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-raised: 0 10px 24px rgba(0, 0, 0, 0.45);
  --glow: 0 0 24px rgba(0, 230, 118, 0.35);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: var(--r-sm); }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.14; }
h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.0625rem; letter-spacing: -0.01em; }
p  { margin: 0; }

.tnum { font-variant-numeric: tabular-nums; }

.caption {
  font-size: 0.6875rem; line-height: 1.27; text-transform: uppercase;
  letter-spacing: 0.6px; font-weight: 600; color: var(--faint);
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--mist); }
.center { text-align: center; }

/* Eyebrow / signal caption */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--signal-text);
}

/* Live dot */
.live-dot { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--signal); box-shadow: 0 0 6px rgba(0,230,118,0.6); flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 600; font-size: 0.9375rem;
  padding: 12px 22px; border-radius: var(--r-full); border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease-out, background .18s ease-out, box-shadow .18s ease-out, border-color .18s ease-out;
  white-space: nowrap;
}
/* Primary — the one glowing CTA per viewport */
.btn--primary { background: var(--signal); color: var(--ink); font-weight: 700; box-shadow: var(--glow); }
.btn--primary:hover { background: var(--signal-pressed); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
/* Secondary */
.btn--secondary { background: var(--ink-float); color: var(--paper); border-color: var(--border-default); }
.btn--secondary:hover { border-color: var(--border-strong); transform: translateY(-1px); }
/* Ghost / quiet */
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--border-default); }
.btn--ghost:hover { background: var(--ink-float); }
.btn--danger { background: transparent; color: var(--coral-text); border-color: var(--coral-soft); }
.btn--danger:hover { background: var(--coral-soft); }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* App Store badge button */
.appstore {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--signal); color: var(--ink); border-radius: var(--r-full);
  padding: 12px 24px 12px 20px; font-weight: 700; box-shadow: var(--glow);
  transition: transform .18s ease-out, background .18s ease-out;
}
.appstore:hover { background: var(--signal-pressed); transform: translateY(-1px); }
.appstore svg { width: 22px; height: 22px; flex: none; }
.appstore small { display: block; font-size: 0.6875rem; font-weight: 600; opacity: .8; letter-spacing: .02em; }
.appstore b { display: block; font-size: 1rem; font-weight: 700; line-height: 1.1; }

/* ---------- Brand lockup ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 1.2rem; color: var(--paper); }
.brand svg, .brand__mark { width: 30px; height: 30px; flex: none; }

/* Chip / badge */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-full);
  background: var(--signal-soft); border: 1px solid rgba(0,230,118,0.35);
  color: var(--signal-text); font-size: 0.8125rem; font-weight: 600;
}
.chip .live-dot { width: 7px; height: 7px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(28, 33, 41, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border-hairline);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-weight: 500; color: var(--mist); font-size: 0.9375rem; transition: color .15s; }
.nav__links a:hover { color: var(--paper); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__login { font-weight: 600; color: var(--paper); font-size: 0.9375rem; }
.nav__login:hover { color: var(--signal-text); }
@media (max-width: 820px) { .nav__links { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: clamp(52px, 8vw, 96px) 0 clamp(60px, 9vw, 104px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(760px 460px at 78% 6%, rgba(0,230,118,0.10), transparent 62%),
    radial-gradient(620px 420px at 6% 0%, rgba(0,230,118,0.05), transparent 55%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 48px; align-items: center; }
.hero h1 { margin-top: 20px; }
.hero h1 .hl { color: var(--signal-text); }
.hero__sub { margin-top: 22px; font-size: 1.15rem; color: var(--mist); max-width: 38ch; }
.hero__actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__note { margin-top: 20px; font-size: 0.875rem; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.hero__note svg { width: 16px; height: 16px; color: var(--signal); flex: none; }
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 52px; }
  .hero__sub { max-width: none; }
  .hero__visual { order: -1; }
}

/* ---------- Reticle motif ---------- */
.reticle { position: absolute; inset: 0; display: grid; place-items: center; z-index: 0; pointer-events: none; }
.reticle svg { width: min(560px, 116%); height: auto; opacity: .9; }
.reticle .ring-outer { animation: breathe 4.5s ease-in-out infinite; transform-origin: center; }
@keyframes breathe { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- Realistic iPhone ----------
   Explicit width + height (NOT aspect-ratio, which some browsers ignore and
   then the phone stretches into a long rectangle). Ratio ≈ 1 : 2.03 = iPhone. */
.scene { position: relative; display: flex; justify-content: center; align-items: center; min-height: 620px; }
.scene__glow { position: absolute; width: 62%; height: 58%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,230,118,0.22), transparent); filter: blur(38px); z-index: 0; }

.phone {
  position: relative; z-index: 2;
  width: 296px; height: 600px; flex: none;
  background: linear-gradient(150deg, #3a3f47, #191c22 55%, #2b2f36);
  border-radius: 54px; padding: 4px;
  box-shadow: var(--shadow-raised), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.phone__frame {
  position: relative; height: 100%; width: 100%;
  background: #05070a; border-radius: 50px; padding: 11px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.03);
}
/* proportional shrink on small screens — keeps the iPhone ratio intact */
@media (max-width: 400px) {
  .phone { width: 252px; height: 511px; border-radius: 46px; }
  .phone__frame { border-radius: 42px; padding: 9px; }
  .phone__screen { border-radius: 34px; }
  .scene { min-height: 540px; }
}
/* side buttons */
.phone::after {
  content: ""; position: absolute; right: -3px; top: 148px; width: 3px; height: 74px;
  background: linear-gradient(#4a4f57, #2b2f36); border-radius: 0 3px 3px 0;
}
.phone::before {
  content: ""; position: absolute; left: -3px; top: 120px; width: 3px; height: 40px;
  background: linear-gradient(#4a4f57, #2b2f36); border-radius: 3px 0 0 3px;
  box-shadow: 0 58px 0 #3a3f47, 0 108px 0 #3a3f47;
}
.phone__screen {
  position: relative; height: 100%; border-radius: 40px; overflow: hidden;
  background: linear-gradient(180deg, #0F1115, #0c0e12);
  display: flex; flex-direction: column;
}
/* dynamic island */
.phone__island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; background: #000; border-radius: var(--r-full); z-index: 5;
  display: flex; align-items: center; justify-content: flex-end; padding-right: 9px;
}
.phone__island::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #10151b; box-shadow: inset 0 0 0 1px #1c2732; }

.phone__status { display: flex; justify-content: space-between; align-items: center; padding: 15px 24px 6px; color: var(--paper); font-size: 0.72rem; font-weight: 600; }
.phone__status .sig { display: flex; gap: 5px; align-items: center; color: var(--mist); }

.phone__appbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 12px; }
.phone__appbar .t { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; color: var(--paper); }
.phone__appbar .t svg, .phone__mark { width: 18px; height: 18px; flex: none; }

.phone__body { padding: 2px 14px 16px; display: flex; flex-direction: column; gap: 11px; overflow: hidden; }

/* in-app listing card */
.appcard { background: var(--ink-raised); border: 1px solid var(--border-hairline); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.appcard__media { height: 96px; position: relative; background:
  radial-gradient(120px 80px at 70% 20%, rgba(0,230,118,0.10), transparent),
  linear-gradient(135deg, #1a1f27, #12151b); display: grid; place-items: center; }
.appcard__media svg { width: 34px; height: 34px; color: rgba(154,161,173,0.35); }
.appcard__tag { position: absolute; top: 8px; left: 8px; }
.appcard__b { padding: 9px 12px 11px; }
.appcard__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.appcard__price { color: var(--paper); font-weight: 700; font-size: 1.02rem; }
.appcard__title { color: var(--mist); font-size: 0.8rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appcard__meta { display: flex; gap: 12px; margin-top: 8px; color: var(--faint); font-size: 0.72rem; }
.appcard__meta span { display: inline-flex; align-items: center; gap: 4px; }
.appcard__meta svg { width: 11px; height: 11px; }

/* push notification banner (one-shot on load) */
.push {
  position: absolute; z-index: 6; left: 14px; right: 14px; top: 56px;
  background: rgba(28, 33, 41, 0.86); backdrop-filter: blur(14px);
  border: 1px solid var(--border-default); border-radius: 18px; padding: 11px 13px;
  box-shadow: var(--shadow-raised); display: flex; gap: 11px; align-items: center;
  opacity: 0; animation: pushIn .6s ease-out forwards; animation-delay: .8s;
}
.push__icon { width: 34px; height: 34px; border-radius: 9px; overflow: hidden; flex: none; }
.push__icon img, .push__icon svg { width: 100%; height: 100%; display: block; }
.push__t { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.78rem; color: var(--paper); }
.push__t .when { color: var(--faint); font-weight: 500; font-size: 0.68rem; margin-left: auto; }
.push__b { font-size: 0.76rem; color: var(--mist); margin-top: 2px; }
@keyframes pushIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ============================================================
   STAT STRIP
   ============================================================ */
.strip { border-top: 1px solid var(--border-hairline); border-bottom: 1px solid var(--border-hairline); background: var(--ink-secondary); }
.strip__inner { padding: 26px 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.strip__label { color: var(--faint); }
.stat { text-align: center; }
.stat b { display: block; font-size: 1.5rem; font-weight: 700; color: var(--paper); letter-spacing: -0.02em; }
.stat span { font-size: 0.8rem; color: var(--faint); }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: clamp(60px, 9vw, 104px) 0; }
.section--alt { background: var(--ink-secondary); }
.section__head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.section__head h2 { margin-top: 14px; }
.section__head p { margin-top: 16px; font-size: 1.08rem; color: var(--mist); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 28px 26px; border: 1px solid var(--border-hairline); border-radius: var(--r-xl); background: var(--ink-raised); box-shadow: var(--shadow-soft); }
.step__n { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--signal-soft); border: 1px solid rgba(0,230,118,0.35); color: var(--signal-text); display: grid; place-items: center; font-weight: 700; margin-bottom: 18px; }
.step h3 { margin-bottom: 8px; color: var(--paper); }
.step p { color: var(--mist); font-size: 0.96rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Features grid */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { padding: 26px 24px; border-radius: var(--r-xl); background: var(--ink-raised); border: 1px solid var(--border-hairline); box-shadow: var(--shadow-soft); }
.feat__ico { position: relative; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--signal-soft); color: var(--signal); display: grid; place-items: center; margin-bottom: 16px; }
.feat__ico svg { width: 24px; height: 24px; }
.feat h3 { color: var(--paper); margin-bottom: 7px; }
.feat p { color: var(--mist); font-size: 0.94rem; }
@media (max-width: 820px) { .feat-grid { grid-template-columns: 1fr; } }

/* Showcase (alternating phone + copy) */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase + .showcase { margin-top: clamp(56px, 8vw, 96px); }
.showcase--flip .showcase__visual { order: 2; }
.showcase__copy h2 { margin-top: 14px; }
.showcase__copy > p { margin-top: 16px; font-size: 1.06rem; color: var(--mist); }
.showcase ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.showcase li { display: flex; gap: 12px; align-items: flex-start; color: var(--paper); font-size: 1rem; }
.showcase li svg { width: 22px; height: 22px; color: var(--signal); flex: none; margin-top: 1px; }
.showcase__visual { display: flex; justify-content: center; }
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; gap: 36px; }
  .showcase--flip .showcase__visual { order: -1; }
}

/* Testimonials */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard { padding: 26px 24px; border-radius: var(--r-xl); background: var(--ink-raised); border: 1px solid var(--border-hairline); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.tcard .stars { display: flex; gap: 3px; color: var(--signal); margin-bottom: 14px; }
.tcard .stars svg { width: 16px; height: 16px; }
.tcard p { color: var(--paper); font-size: 1rem; line-height: 1.5; }
.tcard .who { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.tcard .av { width: 40px; height: 40px; border-radius: var(--r-full); background: var(--ink-tertiary); color: var(--signal-text); display: grid; place-items: center; font-weight: 700; }
.tcard .who b { display: block; font-size: 0.94rem; color: var(--paper); }
.tcard .who span { color: var(--faint); font-size: 0.82rem; }
@media (max-width: 820px) { .tgrid { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; max-width: 740px; margin: 0 auto; }
.plan { background: var(--ink-raised); border: 1px solid var(--border-hairline); border-radius: var(--r-xl); padding: 32px 30px; box-shadow: var(--shadow-soft); position: relative; }
.plan--featured { border-color: rgba(0,230,118,0.4); box-shadow: var(--shadow-raised); }
.plan__badge { position: absolute; top: -12px; left: 30px; }
.plan h3 { font-size: 1.05rem; color: var(--paper); }
.plan .price { margin: 14px 0 4px; font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; color: var(--paper); }
.plan .price span { font-size: 1rem; font-weight: 600; color: var(--faint); }
.plan .save { color: var(--signal-text); font-weight: 600; font-size: 0.875rem; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--mist); }
.plan li svg { width: 20px; height: 20px; color: var(--signal); flex: none; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.pricing__foot { margin-top: 22px; font-size: 0.875rem; color: var(--faint); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border-hairline); padding: 20px 4px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.05rem; color: var(--paper); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform .2s ease; color: var(--faint); flex: none; }
.faq details[open] summary .chev { transform: rotate(180deg); color: var(--signal); }
.faq p { margin-top: 12px; color: var(--mist); }

/* CTA band */
.ctaband { position: relative; overflow: hidden; text-align: center; }
.ctaband::before { content: ""; position: absolute; inset: 0; background: radial-gradient(680px 300px at 50% 0%, rgba(0,230,118,0.12), transparent 62%); pointer-events: none; }
.ctaband .inner { position: relative; z-index: 1; }
.ctaband p { color: var(--mist); margin: 16px auto 30px; max-width: 48ch; font-size: 1.1rem; }
.ctaband .hero__actions { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink-secondary); color: var(--mist); padding: 56px 0 40px; border-top: 1px solid var(--border-hairline); }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { max-width: 300px; }
.footer__brand p { margin-top: 14px; font-size: 0.92rem; color: var(--faint); }
.footer__cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer__col h4 { color: var(--paper); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.6px; margin: 0 0 14px; font-weight: 600; }
.footer__col a { display: block; color: var(--mist); font-size: 0.92rem; padding: 5px 0; transition: color .15s; }
.footer__col a:hover { color: var(--signal-text); }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border-hairline); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--faint); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth__aside { position: relative; overflow: hidden; background: var(--ink-secondary); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--border-hairline); }
.auth__aside::before { content: ""; position: absolute; inset: 0; background: radial-gradient(560px 380px at 26% 8%, rgba(0,230,118,0.12), transparent 60%); pointer-events: none; }
.auth__aside > * { position: relative; z-index: 1; }
.auth__aside .headline { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin-top: auto; color: var(--paper); }
.auth__aside .headline .hl { color: var(--signal-text); }
.auth__aside > div > p { color: var(--mist); margin-top: 16px; max-width: 36ch; }
.auth__points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.auth__points li { display: flex; gap: 10px; align-items: center; color: var(--paper); font-size: 0.96rem; }
.auth__points svg { width: 20px; height: 20px; color: var(--signal); flex: none; }
.auth__reticle { position: absolute; right: -120px; bottom: -120px; width: 380px; opacity: .5; z-index: 0; }

.auth__main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--ink); }
.auth__card { width: 100%; max-width: 400px; }
.auth__card h1 { font-size: 1.7rem; }
.auth__card .sub { color: var(--mist); margin-top: 8px; margin-bottom: 30px; }
.auth__card .back { display: inline-flex; align-items: center; gap: 7px; color: var(--mist); font-size: 0.9rem; margin-bottom: 28px; font-weight: 500; }
.auth__card .back:hover { color: var(--paper); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth__aside { display: none; } }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; color: var(--paper); }
.field input {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 1rem;
  border: 1px solid var(--border-default); border-radius: var(--r-md);
  background: var(--ink-secondary); color: var(--paper); transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.field input::placeholder { color: var(--faint); }
.field__hint { font-size: 0.82rem; color: var(--faint); margin-top: 6px; }
.field__row { display: flex; justify-content: space-between; align-items: center; }
.field__row a { color: var(--signal-text); font-size: 0.86rem; font-weight: 600; }

.form-foot { margin-top: 24px; text-align: center; font-size: 0.94rem; color: var(--mist); }
.form-foot a { color: var(--signal-text); font-weight: 600; }

.alert { display: none; padding: 12px 15px; border-radius: var(--r-md); font-size: 0.92rem; margin-bottom: 20px; border: 1px solid transparent; }
.alert.show { display: block; }
.alert--error { background: var(--coral-soft); color: var(--coral-text); border-color: rgba(255,61,90,0.3); }
.alert--ok { background: var(--signal-soft); color: var(--signal-text); border-color: rgba(0,230,118,0.35); }
.alert--info { background: var(--ink-float); color: var(--mist); border-color: var(--border-default); }

.spin { width: 16px; height: 16px; border: 2px solid rgba(15,17,21,0.35); border-top-color: var(--ink); border-radius: var(--r-full); animation: spin .6s linear infinite; display: none; }
.btn.loading .spin { display: inline-block; }
.btn.loading .btn__label { opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   DASHBOARD
   ============================================================ */
.app { min-height: 100vh; background: var(--ink); }
.appbar { background: rgba(28,33,41,0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-hairline); position: sticky; top: 0; z-index: 40; }
.appbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.appbar__user { display: flex; align-items: center; gap: 14px; }
.avatar { width: 38px; height: 38px; border-radius: var(--r-full); background: var(--signal-soft); border: 1px solid rgba(0,230,118,0.35); color: var(--signal-text); display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }
.appbar__meta { line-height: 1.2; text-align: right; }
.appbar__meta b { font-size: 0.9rem; color: var(--paper); }
.appbar__meta span { font-size: 0.8rem; color: var(--faint); display: block; }

.app__main { padding: 34px 0 80px; }
.app__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.app__head h1 { font-size: 1.6rem; }
.app__head p { color: var(--mist); margin-top: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--r-full); font-size: 0.78rem; font-weight: 600; }
.badge--active { background: var(--signal-soft); color: var(--signal-text); border: 1px solid rgba(0,230,118,0.35); }
.badge--none { background: var(--ink-tertiary); color: var(--mist); border: 1px solid var(--border-default); }
.badge--paused { background: var(--coral-soft); color: var(--coral-text); border: 1px solid rgba(255,61,90,0.3); }
.badge--dot::before { content: ""; width: 7px; height: 7px; border-radius: var(--r-full); background: currentColor; }
.badge--active.badge--dot::before { box-shadow: 0 0 6px currentColor; }

.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.scard { background: var(--ink-raised); border: 1px solid var(--border-hairline); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow-soft); }
.scard b { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; color: var(--paper); }
.scard span { color: var(--mist); font-size: 0.9rem; display: flex; align-items: center; gap: 7px; margin-top: 2px; }
.scard span svg { width: 16px; height: 16px; color: var(--signal); }
@media (max-width: 700px) { .summary { grid-template-columns: 1fr; } }

.alertcard { background: var(--ink-raised); border: 1px solid var(--border-hairline); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); overflow: hidden; margin-bottom: 18px; }
.alertcard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 22px; }
.alertcard__title { display: flex; align-items: center; gap: 12px; }
.alertcard__title h3 { font-size: 1.1rem; color: var(--paper); }
.alertcard__kw { color: var(--mist); font-size: 0.9rem; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.alertcard__kw span { display: inline-flex; align-items: center; gap: 5px; }
.alertcard__kw svg { width: 14px; height: 14px; color: var(--faint); }
.alertcard__actions { display: flex; gap: 8px; flex: none; }
.iconbtn { width: 36px; height: 36px; border-radius: var(--r-md); border: 1px solid var(--border-default); background: var(--ink-float); color: var(--mist); display: grid; place-items: center; cursor: pointer; transition: .15s; }
.iconbtn:hover { color: var(--paper); border-color: var(--border-strong); }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn--danger:hover { color: var(--coral-text); border-color: rgba(255,61,90,0.4); background: var(--coral-soft); }

.alertcard__listings { border-top: 1px solid var(--border-hairline); background: var(--ink-secondary); padding: 16px 22px; }
.alertcard__listings h4 { margin: 0 0 12px; }
.listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.listing { background: var(--ink-raised); border: 1px solid var(--border-hairline); border-radius: var(--r-md); overflow: hidden; transition: .15s; }
.listing:hover { border-color: rgba(0,230,118,0.4); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.listing__img { aspect-ratio: 4/3; background: var(--ink-tertiary); object-fit: cover; width: 100%; }
.listing__b { padding: 10px 12px 12px; }
.listing__price { font-weight: 700; font-size: 1.02rem; color: var(--paper); }
.listing__title { font-size: 0.84rem; color: var(--mist); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing__loc { font-size: 0.76rem; color: var(--faint); margin-top: 6px; }
.listings__empty { color: var(--faint); font-size: 0.9rem; padding: 6px 0; }

.empty { text-align: center; padding: 60px 20px; background: var(--ink-raised); border: 1px dashed var(--border-default); border-radius: var(--r-xl); }
.empty__ico { width: 60px; height: 60px; border-radius: var(--r-lg); background: var(--signal-soft); border: 1px solid rgba(0,230,118,0.35); color: var(--signal); display: grid; place-items: center; margin: 0 auto 18px; }
.empty__ico svg { width: 30px; height: 30px; }
.empty h3 { margin-bottom: 8px; color: var(--paper); }
.empty p { color: var(--mist); max-width: 42ch; margin: 0 auto 22px; }

.skeleton { background: var(--ink-tertiary); border-radius: var(--r-sm); position: relative; overflow: hidden; }
.notice { background: var(--ink-raised); border: 1px solid var(--border-default); border-left: 3px solid var(--signal); border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 24px; display: flex; gap: 14px; }
.notice svg { width: 22px; height: 22px; color: var(--signal); flex: none; }
.notice b { display: block; margin-bottom: 3px; color: var(--paper); }
.notice p { color: var(--mist); font-size: 0.94rem; }

.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink-float); border: 1px solid var(--border-default); color: var(--paper); padding: 12px 18px; border-radius: var(--r-full); font-size: 0.9rem; box-shadow: var(--shadow-raised); animation: toastIn .25s ease-out; }
.toast--error { border-color: rgba(255,61,90,0.4); color: var(--coral-text); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

.hidden { display: none !important; }
.pageload { min-height: 60vh; display: grid; place-items: center; }
.pageload .spin { display: inline-block; width: 30px; height: 30px; border-width: 3px; border-color: var(--border-default); border-top-color: var(--signal); }

/* ============================================================
   LEGAL / PROSE
   ============================================================ */
.prose { max-width: 760px; margin: 0 auto; padding: clamp(48px,7vw,84px) 0; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.prose .updated { color: var(--faint); margin: 12px 0 34px; font-size: 0.92rem; }
.prose h2 { font-size: 1.3rem; margin: 38px 0 12px; color: var(--paper); }
.prose p, .prose li { color: var(--mist); font-size: 1.02rem; }
.prose p { margin: 12px 0; }
.prose ul { margin: 12px 0; padding-left: 22px; display: grid; gap: 8px; }
.prose strong { color: var(--paper); }
.prose a { color: var(--signal-text); font-weight: 600; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .push { opacity: 1; }
}
