/* =====================================================================
   WISE COUNTER — shared stylesheet
   Brand: Wise Axis  |  Product: Wise Counter (EC Dollar coin counter)
   Hand-written, mobile-first, no framework.
   ---------------------------------------------------------------------
   Quick-edit map:
     1. :root .............. brand colours + spacing tokens
     2. @font-face ......... Good Times display font (see TODO)
     3. Base / typography .. resets, headings, body
     4. Layout helpers ..... .container, .section, .eyebrow
     5. Buttons ............ .btn / .btn-primary / .btn-outline
     6. Header / nav ....... sticky header + mobile toggle
     7. Hero ............... home hero panel
     8. Sections ........... problem, benefits, audience, steps, banner
     9. Forms .............. early-access form styling
    10. Footer
    11. Animations ........ fade-in-on-scroll
    12. Responsive ........ breakpoints
   ===================================================================== */

/* 1. ---------------------------------------------------------------- */
:root {
  --navy:   #03306B;   /* deep brand navy — text, footer, depth */
  --indigo: #2E3192;   /* royal indigo — secondary accents, gradients */
  --cyan:   #00AEEF;   /* BRIGHT CYAN — primary hero accent, CTAs */
  --cyan-deep: #008FC4;/* darker cyan used where text-on-fill needs contrast */
  --white:  #FFFFFF;   /* cards stay crisp white so they pop */
  --ink:    #0B1F3A;   /* near-navy body text */
  /* Page background tones — intentionally NOT pure white: a soft brand-tinted
     blue-grey so the site reads with a bit more depth (still bright). */
  --page:   #E7EEF7;   /* default section / body background */
  --mist:   #D8E4F2;   /* alternating (deeper) section background */
  --line:   #D2DEEC;   /* subtle borders (tuned for the tinted bg) */
  --muted:  #51607A;   /* secondary text */

  /* Signature diagonal brand gradient (cyan -> indigo) */
  --grad-brand: linear-gradient(120deg, var(--cyan) 0%, var(--indigo) 100%);
  --grad-deep:  linear-gradient(120deg, var(--indigo) 0%, var(--navy) 100%);

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow:    0 10px 30px rgba(3, 48, 107, 0.08);
  --shadow-md: 0 16px 40px rgba(3, 48, 107, 0.12);
  --shadow-cyan: 0 12px 28px rgba(0, 174, 239, 0.30);

  --maxw: 1140px;
  --gutter: clamp(18px, 5vw, 40px);

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Poppins', var(--font-body);
  /* Display font for the logo wordmark + hero headline only.
     Currently ORBITRON (free, commercial-OK, loaded via Google Fonts <link>). */
  --font-display: 'Orbitron', var(--font-head);
}

/* 2. ---------------------------------------------------------------- */
/* DISPLAY FONT
   We use Orbitron (Google Fonts) for the logo + hero headline — a free,
   wide, geometric, sci-fi face in the spirit of "Good Times" but with a
   commercial-friendly licence. It loads via the <link> in each page's
   <head>; no font file to host.

   OPTIONAL — if you ever license "Good Times":
   drop good-times.woff2 into assets/fonts/, uncomment the @font-face below,
   and change --font-display above to:  'Good Times', 'Orbitron', var(--font-head);
*/
/*
@font-face {
  font-family: 'Good Times';
  src: url('../fonts/good-times.woff2') format('woff2'),
       url('../fonts/good-times.woff')  format('woff');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
*/

/* 3. ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: var(--cyan-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
}

h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
/* Non-hero page <h1> (e.g. early-access, thank-you) — match the H2 scale
   so promoting headings to H1 for SEO doesn't change the visual design. */
h1:not(.display) { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }

/* Display face (Orbitron). Used only for the logo + hero headline.
   Falls back to Poppins 700 uppercase if the webfont fails to load. */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.08;
}

/* 4. ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(56px, 9vw, 100px) 0; }
.section--mist { background: var(--mist); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan-deep);
  margin-bottom: 14px;
  display: inline-block;
}

.lead { font-size: 1.15rem; color: var(--muted); }

/* 5. Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }

/* Cyan primary — uses navy text so cyan-on-light keeps strong contrast */
.btn-primary {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: var(--shadow-cyan);
}
.btn-primary:hover { background: var(--cyan-deep); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(3, 48, 107, 0.25);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan-deep); }

/* On dark / gradient panels */
.btn-on-dark { background: var(--white); color: var(--navy); }
.btn-on-dark:hover { background: var(--navy); color: var(--white); }

.btn-lg { padding: 17px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* 6. Header --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 20px rgba(3, 48, 107, 0.08);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

/* Logo wordmark uses the display font */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .35em;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .brand-wise { color: var(--navy); }
.brand .brand-counter { color: var(--cyan); }

.nav { display: flex; align-items: center; gap: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .98rem;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--cyan-deep); background: var(--mist); }

.nav-cta { margin-left: 8px; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 22px;
  background: var(--navy); margin-inline: auto;
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 7. Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(0,174,239,0.20), transparent 60%),
    radial-gradient(900px 520px at -10% 20%, rgba(46,49,146,0.16), transparent 55%),
    var(--page);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(30px, 5vw, 64px);
  padding: clamp(48px, 8vw, 96px) 0;
}
.hero h1.display {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  color: var(--navy);
  margin: .15em 0 .3em;
}
.hero .subhead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .98rem; color: var(--navy); }
.hero-note strong { color: var(--cyan-deep); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .85rem;
  padding: 8px 16px;
  border-radius: 999px;
}
.pill .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,174,239,0.2);
}

.hero-visual { position: relative; }
.hero-visual img,
.hero-visual video { width: 100%; height: auto; border-radius: var(--radius-lg); display: block; }

/* Responsive 16:9 wrapper used when the hero holds a YouTube/Vimeo embed. */
.hero-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--mist);
}
.hero-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
/* Local video file styling */
.hero-visual video { box-shadow: var(--shadow-md); background: #000; }

/* 8. Sections ------------------------------------------------------- */

/* Problem */
.problem-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}
.problem-card img { border-radius: var(--radius); }

/* Benefits grid */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

.icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad-brand);
  color: var(--white);
  margin-bottom: 18px;
}
.icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Audience chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(3,48,107,0.05);
  transition: transform .15s, border-color .15s, color .15s;
}
.chip:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--cyan-deep); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow);
}
.step-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--white);
  background: var(--grad-brand);
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

/* CTA banner (cyan gradient) */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--grad-brand);
  color: var(--white);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 80% -20%, rgba(255,255,255,0.25), transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--white); position: relative; }
.cta-banner p { color: rgba(255,255,255,0.92); max-width: 60ch; margin: 0 auto 28px; position: relative; }
.cta-banner .btn { position: relative; }

/* Coming-soon strip */
.soon-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--grad-deep);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
}
.soon-strip .badge { background: rgba(255,255,255,0.16); }
.soon-strip h3 { color: var(--white); margin: 8px 0 4px; }
.soon-strip p { color: rgba(255,255,255,0.85); margin: 0; }

.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0,174,239,0.14);
  color: var(--cyan-deep);
}

/* Coming-soon page hero */
.soon-hero {
  text-align: center;
  background:
    radial-gradient(900px 460px at 50% -10%, rgba(0,174,239,0.15), transparent 60%),
    var(--mist);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 8vw, 90px) clamp(20px, 5vw, 60px);
}
.soon-hero h1.display { font-size: clamp(2.1rem, 6vw, 3.8rem); margin: 18px 0; }
.soon-hero img { max-width: 360px; margin: 28px auto 0; }

/* 9. Forms ---------------------------------------------------------- */
.form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(26px, 5vw, 48px);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .92rem;
  color: var(--navy);
}
.field .req { color: var(--cyan-deep); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,174,239,0.18);
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #e23b4e; box-shadow: 0 0 0 3px rgba(226,59,78,0.14); }
.field .error-msg { color: #c5283d; font-size: .82rem; display: none; }
.field.invalid .error-msg { display: block; }

/* Checkbox rows */
.check-row { display: flex; align-items: flex-start; gap: 10px; }
.check-row input { width: auto; margin-top: 4px; }
.check-row label { font-weight: 400; font-family: var(--font-body); color: var(--ink); font-size: .95rem; }

fieldset.interest {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
fieldset.interest legend {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .92rem;
  color: var(--navy);
  padding: 0 6px;
}
.interest-opts { display: flex; flex-wrap: wrap; gap: 18px; }
.interest-opts .check-row { align-items: center; }

/* Honeypot — visually hidden but present in DOM */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.privacy-note { font-size: .85rem; color: var(--muted); margin-top: 16px; }

/* Error / alert banner */
.alert {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: .95rem;
}
.alert-error { background: #fdecee; border: 1px solid #f5c2c8; color: #a01828; }

/* Thank-you block */
.confirm {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
}
.confirm .check-badge {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: grid; place-items: center;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-cyan);
}
.confirm .check-badge svg { width: 40px; height: 40px; stroke: var(--white); fill: none; stroke-width: 3; }

/* 10. Footer -------------------------------------------------------- */
.site-footer {
  background: var(--grad-deep);
  color: rgba(255,255,255,0.82);
  padding: clamp(48px, 7vw, 72px) 0 28px;
  margin-top: clamp(40px, 6vw, 80px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
.site-footer .brand { color: var(--white); }
.site-footer .brand .brand-wise { color: var(--white); }
.site-footer p { color: rgba(255,255,255,0.78); font-size: .95rem; max-width: 38ch; }
.footer-col h4 { color: var(--white); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.82); font-size: .95rem; }
.footer-col a:hover { color: var(--cyan); text-decoration: none; }

.wise-family {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .85rem;
  color: var(--white);
}
.wise-family a { color: var(--cyan); font-weight: 600; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255,255,255,0.7);
}

/* 11. Animations ---------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger helper for grids */
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .chip:hover { transform: none; }
}

/* 12. Responsive ---------------------------------------------------- */
@media (max-width: 920px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .subhead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; max-width: 460px; margin-inline: auto; }
  .problem-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  /* Mobile nav: slide-down panel */
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 16px var(--gutter) 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
  .header-inner { position: relative; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .soon-strip { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* =====================================================================
   Utility — used by main.js to show/hide bill-counter elements
   ===================================================================== */
[hidden], .is-hidden { display: none !important; }

/* =====================================================================
   ADMIN PAGE (admin/index.php) — kept in the shared stylesheet so there's
   only one CSS file to upload.
   ===================================================================== */
.admin-body { background: var(--mist); }

.admin-shell { max-width: 980px; margin: 0 auto; padding: 40px var(--gutter) 80px; }

.admin-login {
  max-width: 420px;
  margin: 12vh auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px;
}
.admin-login h1 { font-size: 1.5rem; margin-bottom: 6px; }
.admin-login p { color: var(--muted); margin-bottom: 22px; }

.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
}
.admin-topbar .brand { color: var(--navy); }

.admin-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 32px);
  margin-bottom: 24px;
}
.admin-card h2 { font-size: 1.3rem; margin-bottom: 4px; }
.admin-card .hint { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }

.admin-card .field { margin-bottom: 18px; }
.admin-card label { font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--navy); }
.admin-card input[type="text"],
.admin-card input[type="email"],
.admin-card input[type="url"],
.admin-card input[type="password"],
.admin-card input[type="file"],
.admin-card select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.admin-card input:focus, .admin-card select:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,174,239,0.18);
}

.toggle-row { display: flex; align-items: center; gap: 12px; }
.toggle-row input { width: auto; }

.admin-flash {
  border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 22px; font-size: .95rem;
}
.admin-flash.ok  { background: #e7f8ef; border: 1px solid #b6e6cd; color: #18794e; }
.admin-flash.err { background: #fdecee; border: 1px solid #f5c2c8; color: #a01828; }

.leads-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table.leads { border-collapse: collapse; width: 100%; font-size: .88rem; }
table.leads th, table.leads td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.leads th { background: var(--mist); color: var(--navy); font-family: var(--font-head); font-weight: 600; position: sticky; top: 0; }
table.leads tr:hover td { background: #f9fcff; }
.leads-empty { color: var(--muted); padding: 24px 4px; }

.media-sub { display: none; margin-top: 12px; padding: 16px; background: var(--mist); border-radius: var(--radius-sm); }
.media-sub.active { display: block; }
