/* =========================================================
   ZERIVOX — site.css (SINGLE SOURCE OF TRUTH)
   - Dark blue gradient background
   - White hero text (always readable)
   - White cards (strong contrast)
   - Cyan accent only (no pink/purple)
   - ONE light theme block (optional)
   ========================================================= */

/* =========================================================
   Part 1: Design tokens
   ========================================================= */
:root{
  /* Background (dark default) */
  --bg:  #071a2c;
  --bg2: #0b2438;

  /* Surfaces */
  --panel:  rgba(255,255,255,.04);  /* subtle dark surface */
  --panel2: rgba(255,255,255,.02);  /* even softer */

  /* Text */
  --ink:   rgba(255,255,255,.95);
  --muted: rgba(255,255,255,.74);

  /* Lines */
  --line: rgba(255,255,255,.14);

  /* Brand (CYAN ONLY) */
  --accent:  #3bc4e6;
  --accent2: #3bc4e6;

  /* Radii + shadows */
  --radius: 16px;
  --shadow: 0 16px 36px rgba(0,0,0,.35);

  /* Fonts */
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;

  /* Header tokens (used by zx header) */
  --zx-font: var(--sans);
  --zx-ink: rgba(255,255,255,.92);
  --zx-ink-soft: rgba(255,255,255,.70);
  --zx-line: rgba(255,255,255,.10);

  --zx-blue: #06B6D4;
  --zx-blue-deep: #0891B2;
  --zx-blue-soft: rgba(6,182,212,.16);
  --zx-blue-glow: rgba(6,182,212,.45);

  --zx-radius: 14px;
}

/* =========================================================
   Part 2: Reset + base
   ========================================================= */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);

  /* Single definitive background */
  background:
    radial-gradient(1200px 700px at 15% -10%, #0b3a55 0%, transparent 55%),
    radial-gradient(900px 600px at 85% 10%, #0a2f47 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

a{ color: rgba(255,255,255,.92); }
a:hover{ color: var(--accent); }

.wrap{ max-width: 1100px; margin: 0 auto; padding: 0 18px; }

/* Skip link */
.skiplink{
  position: absolute; left: -999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skiplink:focus{
  left: 16px; top: 16px;
  width: auto; height: auto;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  z-index: 9999;
}

/* =========================================================
   Part 3: Common typography + utilities
   ========================================================= */
.kicker{
  margin: 0 0 10px;
  font-family: var(--mono);
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}

.h1{
  margin: 0 0 12px;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: rgba(255,255,255,.97);
}

.h2{ margin: 0 0 10px; font-size: 26px; letter-spacing: -.01em; color: rgba(255,255,255,.96); }
.h3{ margin: 0 0 8px;  font-size: 16px; color: rgba(255,255,255,.95); }

.lead{
  margin: 0 0 16px;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  max-width: 74ch;
}

.muted{ color: var(--muted); line-height: 1.7; }
.accent{ color: var(--accent); }

.row{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* =========================================================
   Part 4: Buttons + chips + tags
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  cursor: pointer;

  color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.06);
}

.btn--ghost:hover{
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.28);
}

.btn--primary{
  border-color: rgba(59,196,230,.45);
  background: linear-gradient(135deg, rgba(59,196,230,.30), rgba(59,196,230,.16));
}

.btn--primary:hover{ color: rgba(255,255,255,.98); }

.chip,
.tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(59,196,230,.35);
  background: rgba(59,196,230,.14);
  color: rgba(11,18,32,.92);
  font-family: var(--mono);
  font-size: 12px;
}

.tags{ display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* =========================================================
   Part 5: Cards + sections + grids
   ========================================================= */
.section{ padding: 34px 0; }
.section--alt{
  background: rgba(255,255,255,.04);
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.grid3{ display: grid; gap: 14px; margin-top: 14px; grid-template-columns: 1fr; }
@media (min-width: 920px){ .grid3{ grid-template-columns: repeat(3, 1fr); } }

.grid2{ display: grid; gap: 14px; margin-top: 14px; grid-template-columns: 1fr; }
@media (min-width: 820px){ .grid2{ grid-template-columns: repeat(2, 1fr); } }

/* White card standard (single definitive version) */
.card,
.heroCard,
.cta,
.authCard,
.dashCard,
.adminCard,
.writingItem{
  background: #ffffff;
  color: #0b1220;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card{ padding: 16px; }
.heroCard{ padding: 16px; }
.authCard, .dashCard, .adminCard{ padding: 16px; }
.writingItem{ padding: 14px; }
.cta{
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cardTitle{
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(15,23,42,.65);
  margin-bottom: 10px;
}

.divider{ height: 1px; background: rgba(15,23,42,.10); margin: 14px 0; }

.list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(15,23,42,.72);
  line-height: 1.7;
}

.link{
  display: inline-flex;
  margin-top: 10px;
  text-decoration: none;
  font-family: var(--mono);
  color: var(--accent2);
}
.link:hover{ color: #0b1220; text-decoration: underline; }

/* Ensure text inside white cards is dark and readable */
.card .muted,
.heroCard .muted,
.cta .muted{
  color: #475569;
}

/* Buttons inside white cards: use light styling automatically */
.card .btn,
.heroCard .btn,
.cta .btn,
.authCard .btn,
.dashCard .btn,
.adminCard .btn,
.writingItem .btn{
  background: #ffffff;
  border-color: rgba(15,23,42,.14);
  color: #0b1220;
}
.card .btn--primary,
.heroCard .btn--primary,
.cta .btn--primary{
  border-color: rgba(59,196,230,.40);
  background: linear-gradient(135deg, rgba(59,196,230,.18), rgba(59,196,230,.10));
}

/* =========================================================
   Part 6: Hero
   ========================================================= */
.hero{ padding: 44px 0 18px; }
.hero__grid{ display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 980px){
  .hero__grid{ grid-template-columns: 1.18fr .82fr; align-items: start; }
}

/* Hero foreground ALWAYS readable */
.hero{ color: rgba(255,255,255,.95); }
.hero .kicker{ color: rgba(255,255,255,.70); }
.hero .lead{ color: rgba(255,255,255,.84); }
.hero .muted{ color: rgba(255,255,255,.74); }

/* Hero links/buttons */
.hero a{ color: rgba(255,255,255,.92); }
.hero a:hover{ color: var(--accent); }

/* =========================================================
   Part 7: Legacy topbar (if used)
   ========================================================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,14,18,.70);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.brand{ display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brandLogo{ width: 34px; height: 34px; display: block; }
.brandText{ display: flex; flex-direction: column; gap: 2px; }

.brand__name{
  font-family: var(--mono);
  letter-spacing: .10em;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 12px;
  color: rgba(255,255,255,.95);
}
.brand__tag{
  color: rgba(255,255,255,.68);
  font-size: 11px;
  letter-spacing: .06em;
}

.nav{
  margin-left: auto;
  margin-right: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.nav a{
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(255,255,255,.75);
  font-family: var(--mono);
  font-size: 12px;
}
.nav a:hover{
  border-color: var(--line);
  color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.06);
}

.actions{ margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* =========================================================
   Part 8: ZX header (Lottery variant)
   ========================================================= */
.zx-header--lottery{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  background:
    radial-gradient(900px 420px at 18% -30%, rgba(6,182,212,.16), transparent 60%),
    rgba(10,14,18,.72);
  border-bottom: 1px solid var(--zx-line);
}

.zx-header-inner--lottery{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 18px;
  min-height: 58px;

  display: flex;
  align-items: center;
  gap: 18px;

  font-family: var(--zx-font);
}

/* Brand */
.zx-brand--lottery{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  flex: 0 0 auto;
}

.zx-logo--lottery{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  flex: 0 0 auto;
}

.zx-brandname--lottery{
  font-family: var(--zx-font);
  font-weight: 900;
  letter-spacing: .16em;
  font-size: 12px;
  color: var(--zx-ink);
  text-transform: uppercase;
}

.zx-brandtag--lottery{
  font-family: var(--zx-font);
  font-size: 12px;
  color: var(--zx-ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav LEFT, actions RIGHT (enterprise layout) */
.zx-nav--lottery{
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-width: 0;
  margin-left: 8px;
}

.zx-actions--lottery{
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Nav link glow */
.zx-navlink--lottery,
.zx-toplink{
  position: relative;
  text-decoration: none;
  color: var(--zx-ink-soft);
  font-family: var(--zx-font);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .02em;
  padding: 10px 8px;
  border-radius: 12px;
  transition: color .18s ease, background .18s ease, text-shadow .18s ease, transform .18s ease;
}

.zx-navlink--lottery:hover,
.zx-toplink:hover{
  color: var(--zx-ink);
  background: var(--zx-blue-soft);
  text-shadow: 0 0 10px var(--zx-blue-glow);
  transform: translateY(-1px);
}

/* Animated underline (nav only) */
.zx-navlink--lottery::after{
  content:"";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--zx-blue), transparent);
  opacity: 0;
  transform: scaleX(.6);
  transition: opacity .18s ease, transform .18s ease;
}
.zx-navlink--lottery:hover::after{
  opacity: 1;
  transform: scaleX(1);
}

/* Mobile menu trigger */
.zx-menuWrap{ position: relative; display: none; }
.zx-caret{ display: inline-block; transform: translateY(-1px); }

.zx-menuBtnLite{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(6,182,212,.28);
  background: linear-gradient(135deg, rgba(6,182,212,.14), rgba(255,255,255,.06));
  color: var(--zx-ink);
  font-family: var(--zx-font);
  font-weight: 850;
  font-size: 13px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 10px 22px rgba(6,182,212,.12);
}
.zx-menuBtnLite:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(6,182,212,.18);
  background: linear-gradient(135deg, rgba(6,182,212,.18), rgba(255,255,255,.10));
}
.zx-menuBtnLite:focus-visible,
.zx-navlink--lottery:focus-visible,
.zx-toplink:focus-visible{
  outline: 2px solid rgba(6,182,212,.65);
  outline-offset: 3px;
}

/* Menu panel */
.zx-menuPanel{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(320px, 86vw);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,14,18,.96);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  padding: 10px;
  z-index: 60;
}
.zx-menuLink{
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.03);
}
.zx-menuLink:hover{ background: rgba(255,255,255,.06); }

/* Responsive header */
@media (max-width: 860px){
  .zx-nav--lottery{ display: none; }
  .zx-toplink{ display: none; }
  .zx-menuWrap{ display: block; }
}

@media (max-width: 520px){
  .zx-header-inner--lottery{
    padding: 10px 12px;
    min-height: 56px;
    gap: 12px;
  }
  .zx-logo--lottery{ width: 32px; height: 32px; border-radius: 11px; }
  .zx-brandtag--lottery{ display: none; }
  .zx-brandname--lottery{ font-size: 11px; letter-spacing: .14em; }
  .zx-menuBtnLite{ padding: 9px 12px; font-size: 12px; }
}

/* =========================================================
   Part 9: Auth / dashboard / admin / writing / article
   (kept from your structure, without conflicting overrides)
   ========================================================= */
.authPage{ padding: 26px 0 40px; }
.authLayout{ display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.authHeader{ margin-bottom: 10px; }
.authKicker{ margin: 0; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: #64748b; }
.authTitle{ margin: 10px 0 6px; font-size: clamp(28px, 5.6vw, 42px); line-height: 1.04; letter-spacing: -0.02em; color: #0b1220; }
.authLead{ margin: 0; color: #475569; }

.authAlert{
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(15,23,42,.02);
  color: #0b1220;
}
.authAlert--error{ border-color: rgba(239,68,68,.30); background: rgba(239,68,68,.10); }
.authAlert--info{ border-color: rgba(6,182,212,.30); background: rgba(6,182,212,.10); }

.authForm{ display: grid; gap: 12px; }
.authField{ display: grid; gap: 6px; }
.authLabel{ font-weight: 700; color: #0b1220; letter-spacing: .01em; }

.authInput{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.14);
  background: #fff;
  color: #0b1220;
  outline: none;
}
.authInput::placeholder{ color: rgba(71,85,105,.70); }
.authInput:focus{
  border-color: rgba(8,145,178,.45);
  box-shadow: 0 0 0 6px rgba(6,182,212,.14);
}

.authPasswordRow{ display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.authToggleBtn{ height: 44px; padding: 0 14px; white-space: nowrap; }
.authHint{ margin: 0; font-size: 13px; color: #475569; }
.authSubmit{ height: 44px; width: 100%; justify-content: center; }
.authFooter{ display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 2px; }

.authLink{
  font-weight: 800;
  text-decoration: none;
  color: var(--accent2);
  font-family: var(--mono);
}
.authLink:hover{ color: #0b1220; text-decoration: underline; }

.authAside{ display: grid; gap: 12px; }
.authPanel{ background: rgba(15,23,42,.02); border: 1px solid rgba(15,23,42,.12); border-radius: var(--radius); padding: 14px; }
.authPanelTitle{ margin: 0 0 10px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: #64748b; }
.authList{ margin: 0; padding-left: 18px; color: #475569; line-height: 1.7; }

@media (min-width: 740px){
  .authPage{ padding: 34px 0 54px; }
  .authCard{ padding: 18px; }
}
@media (min-width: 980px){
  .authLayout{ grid-template-columns: 1.15fr .85fr; gap: 16px; }
  .authAside{ position: sticky; top: 88px; }
}

/* Dashboard/Admin/Writing page paddings (your structure) */
.dashPage, .adminPage, .writingPage{ padding: 26px 0 44px; }

/* Admin table responsiveness (kept) */
.adminTableWrap{
  margin-top: 12px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(255,255,255,.70);
}
.adminTable{ width: 100%; border-collapse: collapse; min-width: 760px; }
.adminTable th, .adminTable td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(15,23,42,.10);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adminTable th{
  text-align: left;
  font-family: var(--mono);
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(15,23,42,.65);
}
.adminTable tbody tr:hover{ background: rgba(15,23,42,.03); }

@media (max-width: 900px){
  .adminTableWrap{ overflow: visible; }
  .adminTable{ min-width: 0; }
  .adminTable thead{ display: none; }
  .adminTable, .adminTable tbody, .adminTable tr, .adminTable td{
    display: block;
    width: 100%;
  }
  .adminTable tr{ border-bottom: 1px solid rgba(15,23,42,.10); padding: 8px 0; }
  .adminTable td{
    border-bottom: none;
    padding: 8px 12px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    text-align: left !important;
  }
  .adminTable td::before{
    content: attr(data-label);
    display: block;
    font-family: var(--mono);
    letter-spacing: .10em;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(15,23,42,.55);
    margin-bottom: 4px;
  }
}

/* Writing grid */
.writingGrid{ display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
@media (min-width: 740px){ .writingGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px){ .writingGrid{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.writingTitle{ margin: 0 0 8px; font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; color: #0b1220; }
.writingExcerpt{ margin: 0; line-height: 1.55; overflow-wrap: anywhere; color: #475569; }

/* Article / prose */
.prose{ overflow-wrap: anywhere; color: #0b1220; }
.prose h1, .prose h2, .prose h3{ margin-top: 18px; margin-bottom: 10px; color: #0b1220; }
.prose p{ line-height: 1.75; margin: 0 0 12px; color: #475569; }
.prose code{
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(241,245,249,.90);
  color: #0b1220;
}
.prose blockquote{
  margin: 16px 0;
  padding: 12px 14px;
  border-left: 4px solid rgba(8,145,178,.45);
  background: rgba(241,245,249,.90);
  border-radius: 12px;
  color: #0b1220;
}
.prose ul{ padding-left: 18px; }
.prose a{ color: var(--accent2); text-decoration: none; }
.prose a:hover{ text-decoration: underline; }

/* =========================================================
   Part 10: Footer (simple + compatible)
   ========================================================= */
.footer{
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 24px 0;
  color: rgba(255,255,255,.72);
}
.footer__inner{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   Part 11: Optional light theme (single definitive block)
   Enable: <html data-theme="light">
   ========================================================= */
:root[data-theme="light"]{
  --bg:  #F7F8FA;
  --bg2: #EEF2F7;

  --ink:   #0B1220;
  --muted: #475569;
  --line: rgba(15,23,42,.12);

  --accent:  #0891B2;
  --accent2: #0891B2;

  --shadow: 0 12px 28px rgba(15,23,42,.10);

  --zx-ink: rgba(11,18,32,.92);
  --zx-ink-soft: rgba(11,18,32,.68);
  --zx-line: rgba(11,18,32,.12);

  --zx-blue: #06B6D4;
  --zx-blue-deep: #0891B2;
  --zx-blue-soft: rgba(6,182,212,.14);
  --zx-blue-glow: rgba(6,182,212,.40);
}

:root[data-theme="light"] body{
  color: var(--ink);
  background:
    radial-gradient(1100px 700px at 12% 0%, rgba(6,182,212,.12), transparent 60%),
    radial-gradient(900px 650px at 92% 6%, rgba(6,182,212,.08), transparent 55%),
    radial-gradient(1000px 800px at 50% 100%, rgba(15,23,42,.05), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

:root[data-theme="light"] a{ color: var(--accent2); }
:root[data-theme="light"] a:hover{ color: var(--ink); }

/* Header becomes light but keeps the glow language */
:root[data-theme="light"] .zx-header--lottery{
  background:
    radial-gradient(900px 420px at 18% -30%, rgba(6,182,212,.14), transparent 60%),
    rgba(255,255,255,.86);
  border-bottom: 1px solid var(--zx-line);
}
:root[data-theme="light"] .zx-menuPanel{
  background: rgba(255,255,255,.96);
  border-color: rgba(15,23,42,.14);
  box-shadow: 0 24px 70px rgba(15,23,42,.18);
}
:root[data-theme="light"] .zx-menuLink{
  background: rgba(15,23,42,.02);
  border-color: rgba(15,23,42,.12);
  color: #0b1220;
}
:root[data-theme="light"] .zx-menuLink:hover{ background: rgba(15,23,42,.04); }

/* Footer in light mode */
:root[data-theme="light"] .footer{
  border-top: 1px solid rgba(15,23,42,.12);
  color: rgba(15,23,42,.72);
}


/* =========================================================
   ESSAY / ARTICLE (public + private use same layout)
   ========================================================= */
/* =========================================================
   ESSAY / ARTICLE (public + private use same layout)
   ========================================================= */
.articleCard{ min-width: 0; }

.articleHead{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.articleMeta{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.articleHeadRight{ display: grid; gap: 10px; }

.articleFooter{
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

@media (min-width: 740px){
  .writingActions{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .articleHeadRight{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .articleFooter{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   HEADER (Zx system) — standard header
   ========================================================= */
.zx-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(10,14,18,.70);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.zx-header-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

/* Brand */
.zx-brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.zx-logo{ border-radius: 10px; flex: 0 0 auto; }

.zx-brandtext{
  display: grid;
  line-height: 1.1;
  min-width: 0;
}

.zx-brandname{
  letter-spacing: .12em;
  font-weight: 800;
  font-size: 12px;
  color: rgba(255,255,255,.92);
}

.zx-brandtag{
  font-size: 12px;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop nav */
.zx-nav{
  display: flex;
  gap: 18px;
  align-items: center;
}

.zx-navlink{
  text-decoration: none;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  padding: 10px 8px;
  border-radius: 12px;
}
.zx-navlink:hover{
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.06);
}

/* Buttons */
.zx-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.04);
  white-space: nowrap;
}
.zx-btn:hover{ background: rgba(255,255,255,.07); }

/* Cyan pill */
.zx-btn-pill{
  border-color: rgba(6,182,212,.32);
  background: rgba(6,182,212,.10);
}

.zx-btn-ghost{ background: rgba(255,255,255,.02); }

/* Actions (right cluster) */
.zx-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.zx-desktopOnly{ display: inline-flex; }

/* Mobile menu wrap */
.zx-menuWrap{
  position: relative;
  display: none;
}

.zx-menuBtn{ gap: 8px; }

.zx-caret{
  display: inline-block;
  transform: translateY(-1px);
}

/* Menu panel (dropdown) */
.zx-menuPanel{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(320px, 86vw);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,14,18,.96);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  padding: 10px;
  z-index: 60;
}

.zx-menuCard{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zx-menuTop{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6px 0 6px;
}

.zx-menuTitle{
  font-weight: 700;
  color: rgba(255,255,255,.92);
  font-size: 14px;
}

.zx-menuClose{
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.88);
  border-radius: 12px;
  padding: 8px 10px;
}
.zx-menuClose:hover{ background: rgba(255,255,255,.06); }

.zx-menuNav{
  display: grid;
  gap: 8px;
  padding: 0 6px;
}

.zx-menuLink{
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.03);
}
.zx-menuLink:hover{ background: rgba(255,255,255,.06); }

.zx-menuActions{
  display: grid;
  gap: 8px;
  padding: 0 6px 6px 6px;
}

.zx-btn-full{ width: 100%; }

/* Responsive: standard header */
@media (max-width: 860px){
  .zx-nav{ display: none; }
  .zx-desktopOnly{ display: none; }
  .zx-menuWrap{ display: block; }
}

@media (max-width: 520px){
  .zx-header-inner{ padding: 10px 12px; gap: 10px; }
  .zx-brandtag{ display: none; }
  .zx-menuPanel{ width: min(340px, 92vw); }
}

/* =========================================================
   FOOTER (Cisco-style)
   ========================================================= */
.zx-footer-cisco{
  margin-top: 60px;
  background: rgba(10,14,18,.82);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
}

.zx-footer-cisco__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 18px 22px;
}

.zx-footer-cisco__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.zx-footer-cisco__links{
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.zx-footer-cisco__links--compact{ gap: 14px; }

.zx-footer-cisco__link{
  text-decoration: none;
  font-size: 13px;
  color: rgba(255,255,255,.78);
  padding: 10px 10px;
  border-radius: 12px;
}
.zx-footer-cisco__link:hover{
  color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.05);
}

.zx-footer-cisco__rule{
  height: 1px;
  border: 0;
  background: rgba(255,255,255,.10);
  margin: 12px 0;
}

.zx-footer-cisco__social{
  display: flex;
  gap: 10px;
  align-items: center;
}

.zx-footer-cisco__icon{
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  font-weight: 800;
}
.zx-footer-cisco__icon:hover{
  color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.07);
}

.zx-footer-cisco__copy{
  font-size: 13px;
  color: rgba(255,255,255,.65);
  padding-top: 6px;
}

.zx-footer-cisco__link:focus-visible,
.zx-footer-cisco__icon:focus-visible{
  outline: 2px solid rgba(124,242,255,.95);
  outline-offset: 3px;
}

/* Mobile footer layout */
@media (max-width: 760px){
  .zx-footer-cisco__inner{ padding: 18px 14px 22px; }

  .zx-footer-cisco__row--top{
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .zx-footer-cisco__row--top .zx-footer-cisco__links{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
  }

  .zx-footer-cisco__social{ justify-content: flex-start; }

  .zx-footer-cisco__row--mid{ display: block; }
  .zx-footer-cisco__row--mid .zx-footer-cisco__links{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
  }

  .zx-footer-cisco__row--bottom{ display: block; }

  .zx-footer-cisco__link{ padding: 12px 10px; }
}

@media (max-width: 360px){
  .zx-footer-cisco__row--top .zx-footer-cisco__links,
  .zx-footer-cisco__row--mid .zx-footer-cisco__links{
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   THEME SYSTEM — SINGLE SOURCE OF TRUTH
   - Default: DARK (matches screenshot)
   - Optional LIGHT via: <html data-theme="light">
   - Hero is ALWAYS dark-blue banner with readable white text
   - No global body nukes, no duplicate overrides
   ========================================================= */

/* -----------------------------
   1) DEFAULT THEME (DARK)
   ----------------------------- */
:root{
  --bg: #070a0e;
  --bg2:#0b0f14;

  --panel: rgba(255,255,255,.03);
  --panel2: rgba(255,255,255,.02);

  --ink: #e6edf3;
  --muted: #a6b3c2;
  --line: rgba(230,237,243,.10);

  /* CYAN ONLY */
  --accent:  #67e8f9;
  --accent2: #67e8f9;

  --radius: 16px;
  --shadow: 0 16px 44px rgba(0,0,0,.42);
}

/* Page background (dark) */
body{
  color: var(--ink);
  background:
    radial-gradient(1100px 700px at 12% 0%, rgba(103,232,249,.14), transparent 60%),
    radial-gradient(900px 650px at 92% 6%, rgba(103,232,249,.08), transparent 55%),
    radial-gradient(1000px 800px at 50% 100%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

a{ color: var(--ink); }
a:hover{ color: var(--accent); }

/* -----------------------------
   2) OPTIONAL LIGHT THEME
   ----------------------------- */
:root[data-theme="light"]{
  --bg:  #F7F8FA;
  --bg2: #EEF2F7;

  --panel:  rgba(15,23,42,.03);
  --panel2: rgba(15,23,42,.02);

  --ink:   #0B1220;
  --muted: #334155;

  --line: rgba(11,18,32,.12);

  /* CYAN ONLY */
  --accent:  #0891B2;
  --accent2: #0891B2;

  --shadow: 0 16px 44px rgba(15,23,42,.10);
}

:root[data-theme="light"] body{
  color: var(--ink);
  background:
    radial-gradient(1100px 700px at 12% 0%, rgba(6,182,212,.12), transparent 60%),
    radial-gradient(900px 650px at 92% 6%, rgba(6,182,212,.08), transparent 55%),
    radial-gradient(1000px 800px at 50% 100%, rgba(15,23,42,.05), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

:root[data-theme="light"] a{ color: var(--accent); }
:root[data-theme="light"] a:hover{ color: var(--ink); }

/* -----------------------------
   3) HERO BANNER — ALWAYS DARK
   (works in BOTH light + dark pages)
   ----------------------------- */
.hero{
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(103,232,249,.14), transparent 55%),
    radial-gradient(900px 600px at 85% 10%, rgba(103,232,249,.08), transparent 55%),
    linear-gradient(180deg, #071a2c 0%, #0b2438 100%);
  color: rgba(255,255,255,.95);
}

/* Hero text */
.hero .h1{ color: rgba(255,255,255,.97); }
.hero .kicker{ color: rgba(255,255,255,.70); }
.hero .lead{ color: rgba(255,255,255,.84); }
.hero .muted,
.hero .zx-permission,
.hero #cta-expectations{ color: rgba(255,255,255,.74); }

/* Hero links */
.hero a{ color: rgba(255,255,255,.92); }
.hero a:hover{ color: rgba(103,232,249,.92); }

/* Hero buttons */
.hero .btn{
  color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
}
.hero .btn--primary{
  border-color: rgba(103,232,249,.55);
  background: linear-gradient(135deg, rgba(103,232,249,.30), rgba(103,232,249,.14));
}
.hero .btn--ghost:hover{
  background: rgba(103,232,249,.12);
  border-color: rgba(103,232,249,.45);
}

/* Hero right card always light + readable */
.hero .heroCard{
  background: #ffffff;
  border-color: rgba(15,23,42,.12);
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
  color: #0b1220;
}
.hero .heroCard *{ color: inherit; }
.hero .heroCard .muted{ color: #475569; }

/* -----------------------------
   4) SAFE LIGHT THEME SURFACES
   (no !important wars)
   ----------------------------- */
:root[data-theme="light"] .card,
:root[data-theme="light"] .heroCard,
:root[data-theme="light"] .authCard,
:root[data-theme="light"] .dashCard,
:root[data-theme="light"] .adminCard,
:root[data-theme="light"] .writingItem,
:root[data-theme="light"] .cta{
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 10px 26px rgba(15,23,42,.10);
}

:root[data-theme="light"] .section--alt{
  background: rgba(15,23,42,.02);
  border-top-color: rgba(15,23,42,.08);
  border-bottom-color: rgba(15,23,42,.08);
}

/* Light chips/tags */
:root[data-theme="light"] .chip{
  color: rgba(15,23,42,.75);
  background: rgba(6,182,212,.08);
  border-color: rgba(15,23,42,.12);
}
:root[data-theme="light"] .tag{
  background: rgba(15,23,42,.02);
  color: rgba(15,23,42,.72);
  border-color: rgba(15,23,42,.12);
}

/* Light buttons */
:root[data-theme="light"] .btn{
  color: var(--ink);
  background: rgba(15,23,42,.02);
  border-color: rgba(15,23,42,.14);
}
:root[data-theme="light"] .btn--ghost:hover{
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.18);
}
:root[data-theme="light"] .btn--primary{
  border-color: rgba(8,145,178,.30);
  background: linear-gradient(135deg, rgba(6,182,212,.18), rgba(6,182,212,.10));
}

/* Light header surfaces */
:root[data-theme="light"] .zx-header,
:root[data-theme="light"] .zx-header--lottery,
:root[data-theme="light"] .topbar{
  background: rgba(247,248,250,.88);
  border-bottom-color: rgba(15,23,42,.12);
}
/* =========================================================
   EMERGENCY CONTRAST FIX — HERO + BACKGROUND
   Drop-in patch (safe)
   ========================================================= */

/* Force hero to be dark, always */
.hero{
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(6,182,212,.18), transparent 55%),
    radial-gradient(900px 600px at 85% 10%, rgba(6,182,212,.10), transparent 55%),
    linear-gradient(180deg, #071a2c 0%, #0b2438 100%);
  color: #ffffff;
}

/* Hero text hard-locked for contrast */
.hero .h1,
.hero h1{
  color: #ffffff;
}

.hero .lead,
.hero p{
  color: rgba(255,255,255,.88);
}

.hero .kicker{
  color: rgba(255,255,255,.72);
}

/* Buttons in hero */
.hero .btn{
  background: rgba(255,255,255,.10);
  color: #ffffff;
  border-color: rgba(255,255,255,.30);
}

.hero .btn--primary{
  background: linear-gradient(
    135deg,
    rgba(6,182,212,.35),
    rgba(6,182,212,.18)
  );
  border-color: rgba(6,182,212,.65);
}

/* Kill light bleed behind hero */
body{
  background:
    linear-gradient(180deg, #071a2c 0%, #0b2438 320px, #f7f9fc 320px);
}
/* =========================================================
   VISUAL HIERARCHY FIX — post-hero sections
   ========================================================= */

/* Section headings must be dark on light background */
.section h2,
.section h3,
.section .h2,
.section .h3,
.sectionTitle{
  color: #0b1220;
  font-weight: 800;
}

/* Muted text in light sections was too weak */
.section .muted{
  color: #475569;
}

/* Page background: add depth so cards stand out */
body{
  background:
    linear-gradient(
      180deg,
      #071a2c 0,
      #0b2438 320px,
      #f1f5f9 320px,
      #f8fafc 100%
    );
}

/* Cards need stronger separation */
.card,
.writingItem,
.cta{
  box-shadow:
    0 10px 26px rgba(15,23,42,.10),
    0 1px 0 rgba(255,255,255,.8) inset;
}

/* Mid-page nav bar must contrast */
.topbar,
.zx-header{
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(15,23,42,.12);
}

.topbar a,
.zx-navlink{
  color: #0b1220;
}

.topbar a:hover,
.zx-navlink:hover{
  background: rgba(6,182,212,.10);
  color: #0b1220;
}
/* =========================================================
   FORCE FULL DARK BACKGROUND (site-wide)
   Paste at END of site.css
   ========================================================= */

/* 1) Whole-page dark background (no light fade) */
html, body{
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(6,182,212,.12), transparent 55%),
    radial-gradient(900px 600px at 85% 10%, rgba(6,182,212,.08), transparent 55%),
    linear-gradient(180deg, #071a2c 0%, #0b2438 55%, #071a2c 100%) !important;
  color: rgba(255,255,255,.92);
}

/* 2) Remove the “light bands” behind sections */
.section,
.section--alt{
  background: transparent !important;
  border-top-color: rgba(255,255,255,.08) !important;
  border-bottom-color: rgba(255,255,255,.08) !important;
}

/* 3) Make section headings readable on dark */
.section .h2,
.section h2,
.section .h3,
.section h3{
  color: rgba(255,255,255,.95) !important;
}

/* 4) Make paragraph text readable on dark (outside cards) */
.section > .wrap,
.section--alt > .wrap{
  color: rgba(255,255,255,.80);
}

/* 5) Keep cards WHITE (strong contrast) */
.card,
.writingItem,
.cta{
  background: #ffffff !important;
  color: #0b1220 !important;
}

/* 6) Ensure text inside white cards stays dark */
.card h1, .card h2, .card h3,
.writingItem h1, .writingItem h2, .writingItem h3,
.cta h1, .cta h2, .cta h3{
  color: #0b1220 !important;
}
.card .muted,
.writingItem .muted,
.cta .muted{
  color: #475569 !important;
}
/* =========================================================
   HERO CTA BUTTON — CONTRAST FIX
   ========================================================= */

/* Primary CTA in hero */
.hero .btn--primary{
  background: linear-gradient(
    135deg,
    #22d3ee,
    #06b6d4
  );
  border-color: rgba(255,255,255,.0);
  color: #072a3a;
  font-weight: 700;
}

/* Hover state: clearer lift */
.hero .btn--primary:hover{
  background: linear-gradient(
    135deg,
    #67e8f9,
    #22d3ee
  );
  color: #04202c;
}

/* Secondary / ghost button next to it */
.hero .btn--ghost{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.35);
  color: #ffffff;
}

.hero .btn--ghost:hover{
  background: rgba(255,255,255,.18);
}
/* =========================================================
   BRAND TEXT — MATCH MENU COLOUR (DESKTOP + MOBILE)
   ========================================================= */

/* Remove any background / badge styling everywhere */
.brand,
.zx-brand,
.zx-brand--lottery{
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Brand container uses SAME colour as menu links */
.brand,
.zx-brand,
.zx-brand--lottery{
  color: var(--accent2) !important;
}

/* Brand name + tagline inherit menu colour */
.brand__name,
.zx-brandname,
.zx-brandname--lottery,
.brand__tag,
.zx-brandtag,
.zx-brandtag--lottery{
  color: inherit !important;
}

/* Tagline slightly quieter */
.brand__tag,
.zx-brandtag,
.zx-brandtag--lottery{
  opacity: .8;
}

/* Mobile header specifically (MENU button layout) */
@media (max-width: 860px){
  .zx-header,
  .zx-header--lottery{
    background: rgba(247,248,250,.95);
  }

  .brand,
  .zx-brand,
  .zx-brand--lottery{
    color: var(--accent2) !important;
  }
}
/* =========================================================
   SECTION INTRO TEXT — DARK BACKGROUND IMPROVEMENT
   ========================================================= */

/* Section intro paragraphs (like Writing intro) */
.section > .wrap > p,
.sectionIntro,
.sectionLead{
  color: rgba(255,255,255,.82);
  line-height: 1.65;
  max-width: 68ch;
}

/* Second line / supporting sentence */
.section > .wrap > p + p{
  color: rgba(255,255,255,.70);
  margin-top: 6px;
}





/* =========================================================
   HERO CTA — NUCLEAR OVERRIDE (works even if classes differ)
   ========================================================= */

/* Primary CTA pill (button or link) */
.hero a.btn--primary,
.hero button.btn--primary,
.hero .btn.btn--primary,
.hero a[href*="conversation"],
.hero button[type="submit"]{
  background: linear-gradient(135deg, #22d3ee, #06b6d4) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  color: #ffffff !important;              /* <- THIS is the fix */
  font-weight: 700 !important;
}

/* Primary CTA hover */
.hero a.btn--primary:hover,
.hero button.btn--primary:hover,
.hero .btn.btn--primary:hover{
  background: linear-gradient(135deg, #67e8f9, #22d3ee) !important;
  color: #ffffff !important;
}

/* Secondary action next to it (your “Read short essays…”) */
.hero .row a:not(.btn--primary),
.hero .row .link,
.hero a[href*="essay"],
.hero a[href*="writing"]{
  color: rgba(255,255,255,.78) !important;
  text-decoration: none !important;
}

/* Secondary hover */
.hero .row a:not(.btn--primary):hover,
.hero .row .link:hover{
  color: #ffffff !important;
  text-decoration: underline !important;
}




/* =========================================================
   FOOTER — polish (hierarchy, spacing, contrast)
   ========================================================= */

.zx-footer-cisco{
  background: rgba(7,26,44,.92);
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.72);
}

/* Layout breathing room */
.zx-footer-cisco__inner{
  padding-top: 22px;
  padding-bottom: 26px;
}

/* Top row alignment */
.zx-footer-cisco__row--top{
  align-items: center;
}

/* Links: calmer default, clearer hover */
.zx-footer-cisco__link{
  color: rgba(255,255,255,.74);
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

.zx-footer-cisco__link:hover{
  color: #ffffff;
  background: rgba(255,255,255,.06);
}

/* Make the second row slightly quieter than the first */
.zx-footer-cisco__row--mid .zx-footer-cisco__link{
  color: rgba(255,255,255,.66);
  font-weight: 550;
}
.zx-footer-cisco__row--mid .zx-footer-cisco__link:hover{
  color: rgba(255,255,255,.92);
}

/* Divider: cleaner */
.zx-footer-cisco__rule{
  background: rgba(255,255,255,.12);
  margin: 14px 0;
}

/* Social icons: consistent size + clearer contrast */
.zx-footer-cisco__icon{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.88);
  font-weight: 900;
  line-height: 1;
}

.zx-footer-cisco__icon:hover{
  background: rgba(6,182,212,.12);
  border-color: rgba(6,182,212,.35);
  color: #ffffff;
}

/* Copyright: smaller + quieter */
.zx-footer-cisco__copy{
  color: rgba(255,255,255,.58);
  font-size: 13px;
  padding-top: 10px;
}

/* Mobile: reduce link padding + improve wrap */
@media (max-width: 760px){
  .zx-footer-cisco__link{ padding: 12px 10px; }
  .zx-footer-cisco__rule{ margin: 12px 0; }
}
/* =========================================================
   FOOTER LINK HOVER — TEXT CONTRAST FIX
   ========================================================= */

.zx-footer-cisco__link{
  color: rgba(255,255,255,.75);
  transition: color .15s ease, background .15s ease;
}

/* Hover: brighten text explicitly */
.zx-footer-cisco__link:hover{
  color: #ffffff !important;               /* <- THIS is the key fix */
  background: rgba(255,255,255,.06);
}
.zx-footer-cisco__link:hover{
  color: #ffffff;
  background: rgba(255,255,255,.07);
}


/* =========================================================
   FOOTER SOCIAL ICONS — HOVER CONTRAST FIX
   ========================================================= */

.zx-footer-cisco__icon{
  color: rgba(255,255,255,.82);
  transition:
    color .15s ease,
    background .15s ease,
    border-color .15s ease;
}

/* Hover: icon must go full white */
.zx-footer-cisco__icon:hover{
  color: #ffffff !important;               /* key fix */
  background: rgba(6,182,212,.12);
  border-color: rgba(6,182,212,.40);
}
.zx-footer-cisco__icon:hover{
  color: rgba(255,255,255,.95);
}


/* =========================================================
   FOOTER COPYRIGHT — VISIBILITY FIX
   ========================================================= */

.zx-footer-cisco__copy{
  color: rgba(255,255,255,.70);   /* brighter but still secondary */
  font-size: 13px;
  letter-spacing: .01em;
}
.zx-footer-cisco__copy{
  margin-top: 6px;
}




/* =========================================================
   FAST CONTACT — FORCE "Email" LABEL ON 2ND PILL
   (works even if the button is empty)
   ========================================================= */

/* Target the 2nd item in the Fast contact row */
.heroCard .row > :nth-child(2){
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 74px;            /* keeps pill size consistent */
}

/* Always show a label (even if element has no text) */
.heroCard .row > :nth-child(2)::before{
  content: "Email";
  color: #0b1220;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  opacity: 1;
}

/* If there *is* hidden text inside, don’t let it interfere */
.heroCard .row > :nth-child(2) *{
  color: transparent !important;
}




/* =========================================================
   DASHBOARD — make it look like the rest of the site
   ========================================================= */

.dashPage{ padding: 34px 0 54px; }

/* Grid: main + aside */
.dashGrid{
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 980px){
  .dashGrid{ grid-template-columns: 1.25fr .75fr; }
  .dashAside{ position: sticky; top: 92px; }
}

/* Main card header */
.dashHead{ margin-bottom: 12px; }
.dashKicker{
  margin: 0;
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  color: #64748b;
}
.dashTitle{
  margin: 10px 0 8px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #0b1220;
}
.dashAccent{ color: var(--accent2); }
.dashLead{
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

/* Badges (use the existing .tag but make them look right in dashboard) */
.dashBadges{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}
.dashBadges .tag{
  background: rgba(6,182,212,.10);
  border-color: rgba(6,182,212,.25);
  color: rgba(15,23,42,.78);
}

/* Actions */
.dashActions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.dashBtn{ height: 40px; }

/* Notice */
.dashNotice{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(15,23,42,.02);
  color: #0b1220;
}
.dashNotice code{
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(241,245,249,.90);
  border: 1px solid rgba(15,23,42,.10);
}

/* Aside panels */
.dashPanel{
  background: #ffffff;
  color: #0b1220;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(15,23,42,.10);
  padding: 14px;
}
.dashAside{ display: grid; gap: 12px; }

.dashPanelTitle{
  margin: 0 0 10px;
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(15,23,42,.65);
}

/* Quick links inside panel */
.dashLinks{
  display: grid;
  gap: 8px;
}
.dashLink{
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.02);
  color: #0b1220;
  font-weight: 650;
}
.dashLink:hover{
  border-color: rgba(6,182,212,.35);
  background: rgba(6,182,212,.10);
}

/* Owner tools row */
.dashRow{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}




/* =========================================================
   FORCE approve-users admin page to be WHITE + readable
   (wins over earlier adminTableWrap/adminPanel rules)
   ========================================================= */
.adminPage .adminCard{
  background:#fff;
  color:#0b1220;
  border:1px solid rgba(15,23,42,.12);
}

.adminPage .adminHead .muted,
.adminPage .adminHead p.muted{
  color:#475569;
}

/* Make the inner panels white (your screenshot shows them grey) */
.adminPage .adminPanel{
  background:#fff;
  border:1px solid rgba(15,23,42,.12);
}

/* Fix the grey table wrapper */
.adminPage .adminTableWrap{
  background:#fff;
  border:1px solid rgba(15,23,42,.12);
}

/* Table text contrast */
.adminPage .adminTable th{
  color: rgba(15,23,42,.65);
  background: rgba(15,23,42,.02);
}
.adminPage .adminTable td{
  color:#0b1220;
}
.adminPage .adminTable td.muted,
.adminPage .adminTable .muted{
  color:#475569;
}

/* Pills on white background */
.adminPage .pill{
  border-color: rgba(15,23,42,.14);
  background: rgba(15,23,42,.02);
  color: rgba(15,23,42,.72);
}
.adminPage .pill--danger{
  border-color: rgba(239,68,68,.28);
  background: rgba(239,68,68,.10);
  color: rgba(127,29,29,.95);
}

/* Edit dropdown */
.adminPage .editBox{
  background:#fff;
  border:1px solid rgba(15,23,42,.12);
}
.adminPage .editLabel{ color:#0b1220; }
.adminPage .editInput{
  background:#fff;
  color:#0b1220;
  border:1px solid rgba(15,23,42,.14);
}
.adminPage .editInput:focus{
  border-color: rgba(8,145,178,.45);
  box-shadow: 0 0 0 6px rgba(6,182,212,.14);
}

/* Delete button (if not already defined) */
.adminPage .btn--danger{
  border-color: rgba(239,68,68,.30);
  background: rgba(239,68,68,.12);
  color:#7f1d1d;
}
.adminPage .btn--danger:hover{
  background: rgba(239,68,68,.16);
}

/* Optional: stop sticky header overlaying content */
.adminPage{ padding-top: 92px; }
@media (max-width: 520px){
  .adminPage{ padding-top: 76px; }
}




/* =========================================================
   SCI-FI DARK PANELS (PUBLIC SITE ONLY)
   - Cyan only
   - Removes white cards on homepage/services/writing/about/contact
   - Keeps admin/auth/dashboard white
   Paste at END of site.css
   ========================================================= */

/* 1) Public card surfaces: dark */
.heroCard,
.section .card,
.section .cta,
.section .writingItem{
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 55%),
              rgba(14, 22, 38, .96) !important;  /* #0E1626-ish */
  color: rgba(255,255,255,.92) !important;

  border: 1px solid rgba(103,232,249,.16) !important; /* cyan edge */
  box-shadow:
    0 18px 55px rgba(0,0,0,.45),
    0 0 0 1px rgba(103,232,249,.07) inset !important;

  border-radius: var(--radius);
}

/* 2) Typography inside dark panels */
.heroCard .cardTitle,
.section .card .chip,
.section .writingItem .chip{
  color: rgba(103,232,249,.92) !important;   /* cyan label */
}

.heroCard .list,
.section .card p,
.section .writingItem p{
  color: rgba(255,255,255,.86) !important;
}

.heroCard .list,
.section .card .muted,
.section .cta .muted,
.section .writingItem .muted{
  color: rgba(165,190,214,.78) !important;
}

/* Divider */
.heroCard .divider,
.section .card .divider,
.section .cta .divider{
  background: rgba(255,255,255,.10) !important;
}

/* Links inside dark cards */
.section .card .link,
.section .writingItem .link{
  color: var(--accent) !important;
}
.section .card .link:hover,
.section .writingItem .link:hover{
  color: rgba(255,255,255,.95) !important;
}

/* 3) Buttons INSIDE dark panels: console style */
.heroCard .btn,
.section .card .btn,
.section .cta .btn,
.section .writingItem .btn{
  background: rgba(255,255,255,.03) !important;
  border-color: rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.92) !important;
}

.heroCard .btn--ghost:hover,
.section .card .btn--ghost:hover,
.section .cta .btn--ghost:hover{
  background: rgba(103,232,249,.10) !important;
  border-color: rgba(103,232,249,.40) !important;
  box-shadow: 0 0 0 6px rgba(103,232,249,.10) !important;
}

/* Primary keeps cyan-only language */
.heroCard .btn--primary,
.section .card .btn--primary,
.section .cta .btn--primary{
  background: linear-gradient(135deg, rgba(103,232,249,.22), rgba(103,232,249,.10)) !important;
  border-color: rgba(103,232,249,.42) !important;
}

/* 4) Keep admin/auth/dashboard WHITE (so you don’t break forms/tables) */
.authCard, .dashCard, .adminCard,
.adminPage .adminPanel,
.adminPage .adminTableWrap{
  background: #fff !important;
  color: #0b1220 !important;
  border-color: rgba(15,23,42,.12) !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.10) !important;
}

/* Ensure form inputs remain white */
.authInput, .adminPage .editInput{
  background: #fff !important;
  color: #0b1220 !important;
}

.heroCard:hover,
.section .card:hover,
.section .writingItem:hover{
  transform: translateY(-2px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  border-color: rgba(103,232,249,.28) !important;
  box-shadow:
    0 22px 70px rgba(0,0,0,.50),
    0 0 0 1px rgba(103,232,249,.10) inset !important;
}
a:focus-visible,
button:focus-visible{
  outline: 2px solid rgba(103,232,249,.70);
  outline-offset: 3px;
  border-radius: 12px;
}
/* =========================================================
   FIX: text inside sci-fi dark panels is too faint
   Paste at END of site.css
   ========================================================= */

/* Make normal paragraph text readable inside dark panels */
.zx-panel p,
.heroCard p,
.section .card p,
.section .writingItem p{
  color: rgba(255,255,255,.86) !important;
}

/* Specifically fix your "permission" line (the one that’s disappearing) */
.zx-panel .zx-permission,
.heroCard .zx-permission,
.section .card .zx-permission,
.section .writingItem .zx-permission{
  color: rgba(255,255,255,.78) !important; /* was too low */
}

/* Keep "muted" still secondary, but not invisible */
.zx-panel .muted,
.heroCard .muted,
.section .card .muted,
.section .writingItem .muted{
  color: rgba(165,190,214,.76) !important;
}

/* Lists inside panels */
.zx-panel .list,
.heroCard .list,
.section .card .list{
  color: rgba(255,255,255,.84) !important;
}
.zx-panel .zx-permission{
  border-left: 3px solid rgba(103,232,249,.22);
  padding-left: 12px;
}


/* =========================================================
   FIX: remove duplicated "Email" label in Fast contact
   ========================================================= */

/* Kill any forced pseudo-labels */
.heroCard .row > :nth-child(2)::before,
.heroCard .row > :nth-child(2)::after{
  content: none !important;
}

/* Ensure button text is visible normally */
.heroCard .row > :nth-child(2),
.heroCard .row > :nth-child(2) *{
  color: inherit !important;
}


/* Make Email slightly stronger than Copy */
.heroCard .row a.btn{
  border-color: rgba(103,232,249,.35);
}

.heroCard .row button.btn{
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.82);
}


/* =========================================================
   HERO FAST CONTACT: remove underline from the mailto pill
   (wins over any global/link/hover rules)
   ========================================================= */

.heroCard .row a.btn,
.heroCard .row a.btn:link,
.heroCard .row a.btn:visited,
.heroCard .row a.btn:hover,
.heroCard .row a.btn:active,
.heroCard .row a.btn:focus,
.heroCard .row a.btn:focus-visible{
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-color: transparent !important;
  text-decoration-thickness: 0 !important;
}

/* =========================================================
   HERO SECONDARY CTA — remove underline
   ========================================================= */

/* Secondary hero CTA is a button, not a text link */
.hero .row a.btn,
.hero .row a.btn:link,
.hero .row a.btn:visited,
.hero .row a.btn:hover,
.hero .row a.btn:active,
.hero .row a.btn:focus,
.hero .row a.btn:focus-visible{
  text-decoration: none !important;
}

.hero .btn--ghost{
  letter-spacing: .04em;
}


/* =========================================================
   SERVICE CARD CTA — remove underline everywhere
   ("Ask about this →")
   ========================================================= */

a.link,
a.link:link,
a.link:visited,
a.link:hover,
a.link:active,
a.link:focus,
a.link:focus-visible{
  text-decoration: none !important;
}
a.link{
  font-weight: 650;
  letter-spacing: .02em;
}


/* =========================================================
   AUTH (LOGIN/REGISTER) — small device improvements
   ========================================================= */

/* Better spacing + safe area on phones */
.authPage{
  padding: 18px 0 36px;
  padding-bottom: calc(36px + env(safe-area-inset-bottom));
}

/* Single column by default, tighter gaps */
.authLayout{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Make the card read like a “sheet” */
.authCard{
  border-radius: 18px;
  padding: 16px;
}

/* Improve readability + reduce wasted vertical space */
.authTitle{ margin: 8px 0 6px; }
.authLead{ margin: 0; }

/* Inputs + buttons: bigger tap targets */
.authInput{
  height: 48px;
  font-size: 16px;              /* prevents iOS zoom */
  border-radius: 14px;
}

.authToggleBtn{
  height: 48px;
  min-width: 84px;
  border-radius: 999px;
}

.authSubmit{
  height: 48px;
  border-radius: 999px;
}

/* Alerts: more compact but clear */
.authAlert{
  border-radius: 14px;
  padding: 12px 14px;
}

/* Hide the side panels on very small screens (optional) */
@media (max-width: 420px){
  .authAside{ display: none; }
}

/* On tablets, bring them back but keep it tidy */
@media (min-width: 740px){
  .authLayout{
    grid-template-columns: 1.1fr .9fr;
    gap: 14px;
    align-items: start;
  }
  .authAside{ display: grid; }
}

/* Make panels feel consistent with the new sci-fi scheme (if you kept them white) */
.authPanel{
  border-radius: 16px;
}


/* =========================================================
   MOBILE MENU — stop it swallowing the whole screen
   ========================================================= */

@media (max-width: 520px){
  .zx-menuPanel{
    width: min(360px, 92vw);
    max-height: calc(100vh - 84px);
    overflow: auto;
    padding: 10px;
    border-radius: 18px;

    /* slightly less “white slab” feel */
    background: rgba(10,14,18,.92);
    backdrop-filter: blur(12px);
  }

  .zx-menuLink{
    padding: 14px 12px;
    border-radius: 14px;
  }

  /* Make login/register feel like buttons, not random links */
  .zx-menuActions .zx-btn{
    padding: 12px 14px;
    border-radius: 999px;
  }
}


/* =========================================================
   MOBILE MENU — fully opaque white (no see-through)
   ========================================================= */

@media (max-width: 860px){
  .zx-menuPanel{
    background: #ffffff !important;       /* truly opaque */
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}


/* =========================================================
   MOBILE MENU — fixed panel below sticky header
   ========================================================= */

@media (max-width: 860px){
  .zx-menuPanel{
    position: fixed !important;

    /* Sit below the header bar */
    top: 74px !important;

    /* Keep it inside screen edges */
    left: 12px !important;
    right: 12px !important;
    width: auto !important;

    /* Prevent it getting too tall */
    max-height: calc(100vh - 90px) !important;
    overflow: auto !important;

    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15,23,42,.22) !important;
    z-index: 9999 !important;
  }
}

/* Slightly smaller header on tiny phones -> adjust the offset */
@media (max-width: 520px){
  .zx-menuPanel{ top: 66px !important; }
}


/* =========================================================
   Optional: dim page behind open menu (no JS changes)
   Add class "menuOpen" to <body> when menu is open
   ========================================================= */

body.menuOpen::before{
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.55);
  z-index: 9998;
}



/* =========================================================
   HAMBURGER MENU BUTTON (mobile trigger)
   - Visuals only
   - JS toggles .is-open on .zx-hamburger
   ========================================================= */

.zx-hamburger{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.zx-hamburger:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(6,182,212,.35);
  transform: translateY(-1px);
}

.zx-hamburger:focus-visible{
  outline: 2px solid rgba(6,182,212,.75);
  outline-offset: 3px;
}

/* 3-line icon container */
.zx-hamburger__lines{
  position: relative;
  width: 18px;
  height: 12px;
}

/* Middle line */
.zx-hamburger__lines span{
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.90);
  transition: opacity .15s ease;
}

/* Top + bottom lines */
.zx-hamburger__lines::before,
.zx-hamburger__lines::after{
  content:"";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.90);
  transition: transform .16s ease, top .16s ease, bottom .16s ease;
}

.zx-hamburger__lines::before{ top: 0; }
.zx-hamburger__lines::after{ bottom: 0; }

/* =========================================================
   OPEN STATE — hamburger becomes X
   ========================================================= */

.zx-hamburger.is-open .zx-hamburger__lines span{
  opacity: 0;
}

.zx-hamburger.is-open .zx-hamburger__lines::before{
  top: 5px;
  transform: rotate(45deg);
}

.zx-hamburger.is-open .zx-hamburger__lines::after{
  bottom: 5px;
  transform: rotate(-45deg);
}


/* =========================================================
   MOBILE MENU — HAMBURGER BUTTON (ZERIVOX BLUE)
   ========================================================= */

/* Hamburger button container */
.zx-menuBtnLite{
  background: rgba(6,182,212,.16);           /* Zerivox cyan tint */
  border: 1px solid rgba(6,182,212,.45);
  color: #06b6d4;                             /* Zerivox blue */
  box-shadow: 0 8px 20px rgba(6,182,212,.18);
}

/* Hover: stronger, still clean */
.zx-menuBtnLite:hover{
  background: rgba(6,182,212,.24);
  border-color: rgba(6,182,212,.65);
  color: #0891b2;                             /* slightly deeper cyan */
}

/* Focus-visible (keyboard accessibility) */
.zx-menuBtnLite:focus-visible{
  outline: 2px solid rgba(6,182,212,.75);
  outline-offset: 3px;
}
.zx-menuBtnLite{
  font-weight: 800;
  letter-spacing: .04em;
}


/* =========================================================
   HEADER BRAND — WIDTH CONTROL (ALL SCREENS)
   ========================================================= */

.zx-brand--lottery{
  min-width: 0;          /* allows text truncation */
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}


/* =========================================================
   HEADER BRAND — MOBILE WIDTH TUNING
   ========================================================= */

@media (max-width: 520px){
  .zx-brand--lottery{
    max-width: calc(100% - 64px); /* leaves room for hamburger */
  }

  .zx-brandtext--lottery{
    min-width: 0;
  }

  .zx-brandtag--lottery{
    display: block;
    font-size: 11px;
    opacity: .75;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


/* =========================================================
   Stronger hamburger + X (clearer visibility)
   ========================================================= */

.zx-hamburger{
  width: 44px;
  height: 44px;
  border-radius: 50%;

  background: #ffffff;
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

/* ---- Hamburger lines ---- */
.zx-hamburger__lines{
  position: relative;
  width: 22px;
  height: 16px;
}

.zx-hamburger__lines::before,
.zx-hamburger__lines::after,
.zx-hamburger__lines span{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2.5px;              /* thicker lines */
  background: #111;           /* strong contrast */
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

.zx-hamburger__lines::before{ top: 0; }
.zx-hamburger__lines span{ top: 6.5px; }
.zx-hamburger__lines::after{ bottom: 0; }

/* ---- OPEN STATE → clear X ---- */
.zx-hamburger.is-open .zx-hamburger__lines::before{
  transform: translateY(6.5px) rotate(45deg);
}

.zx-hamburger.is-open .zx-hamburger__lines::after{
  transform: translateY(-6.5px) rotate(-45deg);
}

.zx-hamburger.is-open .zx-hamburger__lines span{
  opacity: 0;
}

/* Optional hover polish */
.zx-hamburger:hover{
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
}
/* =========================================================
   Header polish: bigger brand + more visible hamburger
   ========================================================= */

/* 1) Logo mark a bit bigger */
.zx-logo--lottery{
  width: 38px;      /* was 32px in markup */
  height: 38px;
}

/* 2) Brand text a bit bigger */
.zx-brandname--lottery{
  font-size: 1.15rem;   /* bump up */
  font-weight: 800;     /* a touch stronger */
  letter-spacing: .08em;/* keep your “tech” spacing */
  line-height: 1.05;
}

.zx-brandtag--lottery{
  font-size: .82rem;    /* slightly larger for readability */
  line-height: 1.1;
}

/* Optional: tiny spacing tweak so the larger mark/text feels balanced */
.zx-brand--lottery{
  gap: .65rem;
}

/* 3) Hamburger: bigger hit area + higher contrast */
.zx-hamburger{
  width: 44px;
  height: 44px;
  border-radius: 999px;

  /* Visible against light/grey header */
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,0,0,.14);
  box-shadow: 0 1px 6px rgba(0,0,0,.10);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* Make it feel clickable */
  cursor: pointer;
}

.zx-hamburger:hover{
  background: rgba(255,255,255,.88);
  border-color: rgba(0,0,0,.22);
}

.zx-hamburger:active{
  transform: translateY(1px);
}

/* 4) Hamburger lines: darker + thicker */
.zx-hamburger__lines{
  width: 20px;
  height: 14px;
  position: relative;
  display: inline-block;
}

/* If your hamburger uses pseudo-elements, this covers both patterns */
.zx-hamburger__lines span,
.zx-hamburger__lines::before,
.zx-hamburger__lines::after{
  background: rgba(0,0,0,.85); /* strong contrast */
  border-radius: 999px;
}

/* If your implementation is the common 3-line version */
.zx-hamburger__lines::before,
.zx-hamburger__lines::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px; /* thicker */
}

.zx-hamburger__lines::before{ top: 0; }
.zx-hamburger__lines span{
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 2px; /* thicker */
}
.zx-hamburger__lines::after{ bottom: 0; }

/* 5) When open (you already toggle .is-open in JS), keep it bold/clear */
.zx-hamburger.is-open{
  background: rgba(255,255,255,.92);
  border-color: rgba(0,0,0,.25);
}


/* =========================================================
   Cyber Auth (Login/Register)
   ========================================================= */

.zx-auth{
  padding: clamp(24px, 4vw, 48px) 16px;
}

.zx-auth__wrap{
  max-width: 980px;
  margin: 0 auto;
}

.zx-auth__layout{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 900px){
  .zx-auth__layout{
    grid-template-columns: 1.15fr .85fr;
    align-items: start;
    gap: 22px;
  }
}

.zx-authCard{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
  backdrop-filter: blur(8px);
}

.zx-authHead{ margin-bottom: 14px; }

.zx-authBadge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 800;
  color: rgba(0,0,0,.70);
  text-transform: uppercase;
}

.zx-authBadge__icon{
  width: 18px;
  height: 18px;
  color: rgba(0,0,0,.75);
}

.zx-authTitle{
  margin: 10px 0 6px;
  font-size: clamp(2.1rem, 3.6vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.zx-authLead{
  margin: 0;
  color: rgba(0,0,0,.65);
}

/* Alerts */
.zx-authAlert{
  margin: 14px 0 16px;
  border-radius: 14px;
  padding: 12px 12px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  border: 1px solid rgba(0,0,0,.10);
}

.zx-authAlert__icon{
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.zx-authAlert--error{
  background: rgba(255, 235, 235, .75);
  border-color: rgba(160, 0, 0, .18);
}

.zx-authAlert--info{
  background: rgba(225, 245, 255, .75);
  border-color: rgba(0, 110, 160, .18);
}

/* Form */
.zx-authForm{ display: grid; gap: 14px; }

.zx-field{ display: grid; gap: 6px; }
.zx-label{ font-weight: 700; }

.zx-input{
  width: 100%;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(255,255,255,.98);
  outline: none;
  transition: box-shadow .2s ease, border-color .2s ease, transform .06s ease;
}

.zx-input:focus{
  border-color: rgba(0, 170, 210, .55);
  box-shadow: 0 0 0 4px rgba(124,242,255,.35);
}

.zx-help{
  margin: 0;
  font-size: .86rem;
  color: rgba(0,0,0,.60);
}

.zx-help--warn{
  color: rgba(140, 60, 0, .85);
  font-weight: 700;
}

/* Password row */
.zx-passwordRow{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.zx-btn{
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(255,255,255,.75);
  cursor: pointer;
  font-weight: 700;
}

.zx-btn--ghost:hover{
  background: rgba(255,255,255,.92);
}

.zx-btn--primary{
  border: 1px solid rgba(0, 140, 170, .35);
  background: rgba(124,242,255,.35);
}

.zx-submit{
  width: 100%;
  padding: 13px 16px;
}

/* Row under password */
.zx-authRow{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Checkbox */
.zx-check{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.zx-check__box{
  width: 18px;
  height: 18px;
}

/* Links + muted */
.zx-link{
  color: rgba(0, 120, 160, 1);
  text-decoration: none;
  font-weight: 700;
}

.zx-link:hover{ text-decoration: underline; }
.zx-link--strong{ font-weight: 800; }

.zx-muted{ color: rgba(0,0,0,.60); }

.zx-authFoot{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}

/* Security chips */
.zx-authMeta{
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.zx-chip{
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.65);
}

/* Aside */
.zx-authAside{
  display: grid;
  gap: 14px;
}

.zx-panel{
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.zx-panel__title{
  margin: 0 0 8px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .78rem;
  color: rgba(0,0,0,.70);
}

.zx-panel__text{ margin: 0; }

.zx-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(0,0,0,.70);
}


/* =========================================================
   VISIBILITY & CONTRAST BOOST (Cyber Auth)
   ========================================================= */

/* Page background: darker, cleaner gradient */
.zx-auth{
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(40,140,180,.35), transparent 60%),
    linear-gradient(180deg, #071b2c 0%, #04121e 100%);
}

/* Main card: brighter, clearer separation */
.zx-authCard{
  background: #f6f8fa; /* solid, not translucent */
  border: 1px solid rgba(0,0,0,.18);
  box-shadow:
    0 18px 40px rgba(0,0,0,.35),
    0 2px 0 rgba(255,255,255,.6) inset;
}

/* Headings: stronger hierarchy */
.zx-authTitle{
  color: #0b1620;
  font-weight: 900;
}

.zx-authLead{
  color: #3b4a57;
  font-size: 1rem;
}

/* Badge */
.zx-authBadge{
  color: #4b5c69;
}

.zx-authBadge__icon{
  color: #1c2d3b;
}

/* Labels */
.zx-label{
  color: #0f1f2b;
  font-weight: 800;
}

/* Inputs: higher contrast + clearer focus */
.zx-input{
  background: #ffffff;
  border: 1.5px solid rgba(0,0,0,.22);
  color: #0b1620;
}

.zx-input::placeholder{
  color: #7a8a97;
}

.zx-input:focus{
  border-color: #3fd2ff;
  box-shadow:
    0 0 0 4px rgba(63,210,255,.35),
    0 1px 0 rgba(255,255,255,.8) inset;
}

/* Helper text */
.zx-help{
  color: #4a5b69;
}

.zx-help--warn{
  color: #8c3a00;
}

/* Primary button: STRONG visual anchor */
.zx-btn--primary{
  background: linear-gradient(180deg, #6fe8ff, #45cfe8);
  color: #04212d;
  font-weight: 900;
  border: 1px solid #3fbfd8;
  box-shadow:
    0 6px 16px rgba(0,160,200,.45),
    0 1px 0 rgba(255,255,255,.7) inset;
}

.zx-btn--primary:hover{
  filter: brightness(1.05);
}

.zx-btn--primary:active{
  transform: translateY(1px);
}

/* Ghost buttons (Show password) */
.zx-btn--ghost{
  background: #ffffff;
  border: 1.5px solid rgba(0,0,0,.25);
  color: #0f1f2b;
}

/* Checkbox row */
.zx-check__text{
  color: #0f1f2b;
  font-weight: 600;
}

/* Links */
.zx-link{
  color: #007fa6;
}

.zx-link--strong{
  color: #006b90;
}

/* Security chips: readable + confident */
.zx-chip{
  background: #ffffff;
  color: #0f1f2b;
  border: 1.5px solid rgba(0,0,0,.22);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

/* =======================
   SIDE PANELS (KEY FIX)
   ======================= */

.zx-panel{
  background: #e9edf0; /* much brighter */
  border: 1px solid rgba(0,0,0,.22);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

.zx-panel__title{
  color: #0f1f2b;
  font-weight: 900;
}

.zx-panel__text,
.zx-list{
  color: #243545;
}

/* Ensure side panels don’t look disabled */
.zx-authAside{
  opacity: 1;
}


/* =========================================================
   FINAL SIDE PANEL VISIBILITY OVERRIDE
   (wins specificity + opacity issues)
   ========================================================= */

.zx-authAside .zx-panel{
  background: #eef2f5;
  border: 1px solid rgba(0,0,0,.22);
}

/* Titles — force dark ink */
.zx-authAside .zx-panel .zx-panel__title{
  color: #0b1620 !important;
  font-weight: 900;
  opacity: 1 !important;
}

/* Body text — force readable contrast */
.zx-authAside .zx-panel .zx-panel__text,
.zx-authAside .zx-panel p,
.zx-authAside .zx-panel li{
  color: #243545 !important;
  opacity: 1 !important;
}

/* Lists */
.zx-authAside .zx-panel ul{
  color: #1f3344 !important;
  opacity: 1 !important;
}

/* Kill inherited “muted” styling inside panels */
.zx-authAside .zx-panel .zx-muted{
  color: #243545 !important;
  opacity: 1 !important;
}


/* =========================================================
   Dashboard upgrades (cards + link grid)
   ========================================================= */

.dashLinkGrid{
  display: grid;
  gap: 10px;
}

.dashLinkCard{
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(255,255,255,.85);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.dashLinkCard:hover{
  transform: translateY(-1px);
}

.dashLinkCard__title{
  font-weight: 900;
  color: rgba(0,0,0,.82);
}

.dashLinkCard__desc{
  font-size: .9rem;
  color: rgba(0,0,0,.60);
}

.dashLinkCard--owner{
  border-color: rgba(0, 150, 190, .30);
}

.dashList{
  margin: 0;
  padding-left: 18px;
  color: rgba(0,0,0,.75);
}

.dashSmall{
  margin: 10px 0 0;
  font-size: .9rem;
}

/* Optional: info variant notice */
.dashNotice--info{
  border: 1px solid rgba(0, 120, 160, .20);
  background: rgba(225, 245, 255, .55);
}


/* Make the dashboard main column stack nicely */
.dashMain{
  display: grid;
  gap: 18px;
}

.dashStack{
  display: grid;
  gap: 16px;
}

.dashPanel--main{
  box-shadow: 0 14px 34px rgba(0,0,0,.20);
}

.dashSmall{
  margin: 10px 0 0;
  font-size: .9rem;
}

/* Ensure content doesn't feel like it's under the header */
.dashPage{
  padding-top: 24px;
}


/* =========================================================
   Writing (Cyber Editorial)
   ========================================================= */

.zx-writing{
  padding: clamp(22px, 4vw, 44px) 16px;
}

.zx-wCard{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 16px 44px rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
}

.zx-wHead{
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.zx-wKicker{
  margin: 0;
  font-weight: 900;
  letter-spacing: .14em;
  font-size: .72rem;
  text-transform: uppercase;
  color: rgba(0,0,0,.60);
}

.zx-wTitle{
  margin: 8px 0 6px;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.zx-wLead{
  margin: 0;
  color: rgba(0,0,0,.68);
  max-width: 62ch;
}

.zx-wStats{
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
  align-items: stretch;
}

.zx-stat{
  min-width: 92px;
  border-radius: 14px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.10);
  padding: 10px 12px;
}

.zx-stat__k{
  display: block;
  font-size: .72rem;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
  font-weight: 900;
}

.zx-stat__v{
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
  color: rgba(0,0,0,.82);
}

.zx-wToolbar{
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0 16px;
}

.zx-langSeg{
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.16);
  background: rgba(255,255,255,.7);
  overflow: hidden;
}

.zx-seg{
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .08em;
  font-size: .78rem;
  color: rgba(0,0,0,.75);
  border-right: 1px solid rgba(0,0,0,.12);
}

.zx-seg:last-child{ border-right: 0; }
.zx-seg.is-active{
  background: rgba(124,242,255,.45);
  color: rgba(0,0,0,.85);
}

.zx-search{
  display: grid;
  gap: 6px;
  min-width: min(420px, 100%);
}

.zx-input{
  width: 100%;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  outline: none;
}

.zx-input:focus{
  border-color: rgba(0, 170, 210, .55);
  box-shadow: 0 0 0 4px rgba(124,242,255,.35);
}

.zx-input--search{
  padding-left: 14px;
}

.zx-searchHint{
  font-size: .82rem;
  color: rgba(0,0,0,.55);
  justify-self: end;
}

.zx-wGrid{
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 760px){
  .zx-wGrid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.zx-wItem{
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.88);
  padding: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.14);
  display: grid;
  gap: 10px;
}

.zx-wTop{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zx-chip{
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  font-size: .74rem;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(255,255,255,.7);
  color: rgba(0,0,0,.75);
}

.zx-chip--soft{
  background: rgba(0,0,0,.04);
}

.zx-chip--ok{
  border-color: rgba(0,140,90,.25);
  background: rgba(210,255,235,.65);
}

.zx-chip--danger{
  border-color: rgba(170,40,40,.20);
  background: rgba(255,230,230,.65);
}

.zx-wItem__title{
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.zx-wItem__excerpt{
  margin: 0;
  color: rgba(0,0,0,.64);
  line-height: 1.5;
}

.zx-wActions{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.zx-btn{
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,.16);
  background: rgba(255,255,255,.75);
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.zx-btn--primary{
  border-color: rgba(0, 140, 170, .35);
  background: rgba(124,242,255,.40);
  color: rgba(0,0,0,.85);
}

.zx-btn--danger{
  border-color: rgba(170,40,40,.28);
  background: rgba(255,210,210,.70);
  color: rgba(0,0,0,.85);
}

.zx-btn--ghost:hover{
  background: rgba(255,255,255,.92);
}

.zx-wBlocked{
  font-weight: 900;
  font-size: .84rem;
  color: rgba(0,0,0,.55);
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.04);
  border: 1px dashed rgba(0,0,0,.18);
}

/* Empty state */
.zx-wEmpty{
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(255,255,255,.85);
  padding: 16px;
}

.zx-wEmpty__title{
  margin: 0 0 6px;
  font-weight: 900;
}

/* Article view */
.zx-articleCard{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 16px 44px rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
}

.zx-articleHead{
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,.10);
  margin-bottom: 14px;
}

.zx-articleTitle{
  margin: 8px 0 6px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.15;
}

.zx-articleMeta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zx-inlineForm{ margin: 0; }

.zx-alert{
  margin-top: 12px;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.75);
}

.zx-alert__title{
  font-weight: 900;
  margin-bottom: 4px;
}

.zx-alert--ok{
  background: rgba(210,255,235,.65);
  border-color: rgba(0,140,90,.25);
}

.zx-alert--warn{
  background: rgba(255,230,230,.70);
  border-color: rgba(170,40,40,.22);
}

.zx-prose{
  color: rgba(0,0,0,.82);
  line-height: 1.75;
}

.zx-prose h1, .zx-prose h2, .zx-prose h3{
  line-height: 1.2;
}

.zx-articleFoot{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.10);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Accessibility helper */
.zx-srOnly{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Muted */
.zx-muted{ color: rgba(0,0,0,.60); }


/* =========================================================
   Public Writing (dark + cyber editorial)
   ========================================================= */

.pubWriting { padding: 46px 16px; color: rgba(255,255,255,.92); }
.pubWritingHead { max-width: 980px; margin: 0 auto 20px; }
.pubWritingTitle { font-size: clamp(2rem, 3.2vw, 2.8rem); margin: 0 0 10px; }
.pubWritingLead { margin: 0 0 8px; color: rgba(255,255,255,.78); line-height: 1.6; }

.pubWritingFilters{
  display: inline-flex;
  gap: 8px;
  margin-top: 12px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
}

.pubFilter{
  text-decoration: none;
  color: rgba(255,255,255,.80);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .72rem;
  padding: 8px 12px;
  border-radius: 999px;
}

.pubFilter.is-active{
  background: rgba(124,242,255,.22);
  color: rgba(255,255,255,.95);
}

.pubGrid{
  max-width: 980px;
  margin: 18px auto 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 820px){
  .pubGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pubCard{
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  box-shadow: 0 18px 50px rgba(0,0,0,.40);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 12px;
}

.pubChipRow{ display:flex; gap:10px; flex-wrap:wrap; }
.pubChip{
  display:inline-flex;
  align-items:center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(124,242,255,.20);
  background: rgba(124,242,255,.12);
  font-weight: 900;
  font-size: .78rem;
  color: rgba(124,242,255,.95);
}
.pubChipSoft{
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
}

.pubCardTitle{ margin: 0; font-size: 1.18rem; line-height: 1.25; }
.pubCardExcerpt{ margin: 0; color: rgba(255,255,255,.70); line-height: 1.6; }

.pubRead{
  margin-top: 4px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 900;
  color: rgba(124,242,255,.95);
  text-decoration: none;
}

.pubRead:hover{ text-decoration: underline; }

.pubEmpty{
  max-width: 980px;
  margin: 18px auto 0;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  padding: 18px;
}
.pubEmptyTitle{ margin: 0 0 6px; font-weight: 900; }
.pubEmptyText{ margin: 0; color: rgba(255,255,255,.70); }


/* Live chat widget */
.zxChatFab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255,255,255,.12);
  color: inherit;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.zxChat{
  position: fixed;
  right: 18px;
  bottom: 70px;
  width: min(360px, calc(100vw - 36px));
  height: 460px;
  z-index: 9999;
  border-radius: 16px;
  overflow: hidden;
}

.zxChat__header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 12px;
  background: rgba(0,0,0,.35);
}

.zxChat__close{
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.zxChat__log{
  height: calc(460px - 54px - 58px);
  overflow: auto;
  padding: 12px;
  background: rgba(0,0,0,.18);
}

.zxChat__form{
  display: flex;
  gap: 8px;
  padding: 10px;
  background: rgba(0,0,0,.28);
}

.zxChat__input{
  flex: 1;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.12);
  color: inherit;
}

.chatLine{
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
}

.chatLine.is-visitor{ background: rgba(255,255,255,.06); }
.chatLine.is-admin{ background: rgba(120,255,180,.08); }

.chatLine__meta{ font-size: 12px; opacity: .75; margin-bottom: 6px; }

/* Admin inbox layout */
.chatAdminGrid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 900px){
  .chatAdminGrid{ grid-template-columns: 320px 1fr; }
}
.chatThreadList{ list-style: none; padding: 0; margin: 0; }
.chatThreadLink{
  display: block;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.10);
  margin-bottom: 10px;
}
.chatThreadLink.is-active{ background: rgba(255,255,255,.06); }
.chatLog{ max-height: 420px; overflow: auto; padding: 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.10); }
.chatMsg{ padding: 10px; border-radius: 12px; margin-bottom: 10px; border: 1px solid rgba(255,255,255,.10); }
.chatMsg.is-admin{ background: rgba(120,255,180,.08); }
.chatMsg.is-visitor{ background: rgba(255,255,255,.06); }
.chatMeta{ font-size: 12px; opacity: .75; margin-bottom: 6px; }
.chatBody{ white-space: pre-wrap; }

/* Honeypot hidden */
.hp{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* ============================================================
   Live chat widget
   - High z-index so it sits above footer overlays
   ============================================================ */

.zxChatFab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483647;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255,255,255,.12);
  color: inherit;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.zxChat{
  position: fixed;
  right: 18px;
  bottom: 70px;
  width: min(360px, calc(100vw - 36px));
  height: 460px;
  z-index: 2147483647;
  border-radius: 16px;
  overflow: hidden;
}

.zxChat__header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 12px;
  background: rgba(0,0,0,.35);
}

.zxChat__close{
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.zxChat__log{
  height: calc(460px - 54px - 58px);
  overflow: auto;
  padding: 12px;
  background: rgba(0,0,0,.18);
}

.zxChat__form{
  display: flex;
  gap: 8px;
  padding: 10px;
  background: rgba(0,0,0,.28);
}

.zxChat__input{
  flex: 1;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.12);
  color: inherit;
}

/* Chat message bubbles */
.chatLine{
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
}

.chatLine.is-visitor{ background: rgba(255,255,255,.06); }
.chatLine.is-admin{ background: rgba(120,255,180,.08); }

.chatLine__meta{ font-size: 12px; opacity: .75; margin-bottom: 6px; }

/* Honeypot hidden from humans */
.hp{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}



/* =========================================================
   Live Chat Widget
   ========================================================= */

.zxChat {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 320px;
  max-height: 420px;
  background: #0b1f33;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
}

.zxChat[hidden] {
  display: none;
}

.zxChat__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #122a44;
  color: #e8f6ff;
  font-size: 14px;
}

.zxChat__header button {
  background: none;
  border: 0;
  color: #9fbad0;
  font-size: 20px;
  cursor: pointer;
}

.zxChat__log {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-size: 13px;
  color: #e6f2fb;
}

.zxChat__msg {
  margin-bottom: 8px;
  line-height: 1.4;
}

.zxChat__msg--user {
  color: #7cf2ff;
}

.zxChat__msg--admin {
  color: #ffd479;
}

.zxChat__form {
  display: flex;
  gap: 6px;
  padding: 10px;
  background: #0e243a;
}

.zxChat__form input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #1f3c57;
  background: #071726;
  color: #e6f2fb;
}

.zxChat__form button {
  padding: 8px 12px;
  border-radius: 8px;
  border: 0;
  background: #1cc8ee;
  color: #00202a;
  font-weight: 600;
  cursor: pointer;
}


/* =========================================================
   LIVE CHAT - guaranteed clickable + above everything
   ========================================================= */
.zxChatPill{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999999;           /* above footer/overlays */
  pointer-events: auto;      /* ensure click works */
}

.zxChat{
  position: fixed;
  right: 18px;
  bottom: 70px;              /* above the pill */
  width: min(420px, calc(100vw - 36px));
  height: min(520px, calc(100vh - 120px));
  z-index: 999999;           /* above everything */
  pointer-events: auto;
}

.zxChat[hidden]{
  display: none !important;
}


/* ===========================
   Live Chat (modern + visible)
   =========================== */

/* Optional: set these once if you don't already have theme vars */
:root{
  --zx-chat-bg: rgba(18, 22, 31, 0.92);
  --zx-chat-border: rgba(255,255,255,0.12);
  --zx-chat-shadow: 0 18px 60px rgba(0,0,0,0.55);
  --zx-chat-text: rgba(255,255,255,0.92);
  --zx-chat-muted: rgba(255,255,255,0.68);
  --zx-chat-chip: rgba(255,255,255,0.08);
  --zx-chat-focus: rgba(120, 180, 255, 0.55);
  --zx-chat-danger: rgba(255, 95, 95, 0.18);
}

/* Floating button */
.zxChatFab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  border: 1px solid var(--zx-chat-border);
  background: rgba(20, 24, 34, 0.9);
  color: var(--zx-chat-text);
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 650;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.zxChatFab:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 55px rgba(0,0,0,0.62);
  border-color: rgba(255,255,255,0.18);
}
.zxChatFab:focus-visible{
  outline: 3px solid var(--zx-chat-focus);
  outline-offset: 3px;
}

/* Chat panel */
.zxChat{
  position: fixed;
  right: 18px;
  bottom: 72px;
  z-index: 9999;

  border: 1px solid var(--zx-chat-border);
  background: var(--zx-chat-bg);
  color: var(--zx-chat-text);
  border-radius: 18px;
  box-shadow: var(--zx-chat-shadow);

  overflow: hidden;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transform-origin: bottom right;
  animation: zxChatIn 180ms ease-out;
}
@keyframes zxChatIn{
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Header */
.zxChat__header{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.10);

  /* subtle header gradient for visibility */
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );
}
.zxChat__header strong{
  display:block;
  font-size: 14px;
  letter-spacing: 0.2px;
}
.zxChat__header .muted{
  color: var(--zx-chat-muted);
}

/* Close button */
.zxChat__close{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--zx-chat-text);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor:pointer;
  line-height: 0;
  font-size: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.zxChat__close:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
}
.zxChat__close:focus-visible{
  outline: 3px solid var(--zx-chat-focus);
  outline-offset: 3px;
}

/* Log area */
.zxChat__log{
  padding: 12px;
  overflow-y: auto;
  background: rgba(0,0,0,0.10);
}

/* nicer scrollbar (webkit) */
.zxChat__log::-webkit-scrollbar{ width: 10px; }
.zxChat__log::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0);
  background-clip: padding-box;
}
.zxChat__log::-webkit-scrollbar-thumb:hover{
  background: rgba(255,255,255,0.22);
  border: 2px solid rgba(0,0,0,0);
  background-clip: padding-box;
}

/* Message bubbles
   Works if your JS inserts nodes with these classes.
   If it doesn't yet, see section 2 below for a tiny HTML/JS-friendly tweak. */
.zxChat__msg{
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: var(--zx-chat-text);
  margin: 8px 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.zxChat__msg--me{
  margin-left: auto;
  background: rgba(120,180,255,0.16);
  border-color: rgba(120,180,255,0.22);
}
.zxChat__msg--system{
  max-width: 100%;
  font-size: 12px;
  color: var(--zx-chat-muted);
  background: rgba(255,255,255,0.04);
  border-style: dashed;
  border-color: rgba(255,255,255,0.14);
  text-align: left;
}
.zxChat__msg--warn{
  max-width: 100%;
  background: var(--zx-chat-danger);
  border-color: rgba(255,95,95,0.28);
}

/* If your JS uses generic elements inside log, this still helps */
.zxChat__log > *{
  margin: 8px 0;
}

/* Form / input */
.zxChat__form{
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.zxChat__input{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.20);
  color: var(--zx-chat-text);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 40px;
}
.zxChat__input::placeholder{
  color: rgba(255,255,255,0.45);
}
.zxChat__input:focus{
  outline: none;
  border-color: rgba(120,180,255,0.38);
  box-shadow: 0 0 0 4px rgba(120,180,255,0.16);
}

/* Hide honeypot reliably */
.hp{
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

/* Mobile: make it feel like a bottom sheet */
@media (max-width: 520px){
  .zxChat{
    right: 10px;
    left: 10px;
    bottom: 10px;
    width: auto !important;
    max-width: none !important;
    height: min(70vh, 520px) !important;
    border-radius: 16px;
  }
  .zxChatFab{
    right: 10px;
    bottom: 10px;
  }
}




/* =========================================================
   Chat UI polish (override layer)
   Paste AFTER your existing chat CSS
   ========================================================= */

/* Panel: slightly tighter, more premium */
.zxChat{
  border-radius: 18px;
  overflow: hidden;
}

/* Header: stronger contrast + nicer structure */
.zxChat__header{
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.07),
    rgba(255,255,255,0.02)
  );
}

.zxChat__header strong{
  font-size: 14px;
  letter-spacing: 0.2px;
}

.zxChat__header .muted{
  opacity: 0.85;
}

/* Log: more "chat-like" background + breathing room */
.zxChat__log{
  padding: 14px 14px 12px;
  background:
    radial-gradient(1200px 700px at 30% 0%, rgba(120,180,255,0.08), transparent 60%),
    rgba(0,0,0,0.12);
}

/* Make messages stack with consistent spacing */
.zxChat__log > .zxChat__msg{
  margin: 10px 0;
}

/* Bubble: stop looking like a full-width pill */
.zxChat__msg{
  display: inline-block;              /* key: bubble hugs content */
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  line-height: 1.35;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* Incoming (admin/other): left aligned */
.zxChat__msg{
  align-self: flex-start;             /* works best if log becomes flex column */
}

/* Make the log behave like a chat stack */
.zxChat__log{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Your messages: right aligned, slightly different styling */
.zxChat__msg--me{
  align-self: flex-end;
  background: rgba(120,180,255,0.18);
  border-color: rgba(120,180,255,0.22);
}

/* System messages: centered + lighter */
.zxChat__msg--system{
  align-self: center;
  max-width: 92%;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.04);
  border-style: dashed;
  border-color: rgba(255,255,255,0.16);
  box-shadow: none;
}

/* Input bar: looks like a modern composer */
.zxChat__form{
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.10);
  gap: 10px;
}

/* Input field: nicer */
.zxChat__input{
  border-radius: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.92);
}

.zxChat__input::placeholder{
  color: rgba(255,255,255,0.48);
}

.zxChat__input:focus{
  outline: none;
  border-color: rgba(120,180,255,0.42);
  box-shadow: 0 0 0 4px rgba(120,180,255,0.16);
}

/* Send button: match the panel better */
.zxChat__form .btn.btn--primary{
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 42px;
}

/* Close button: more modern */
.zxChat__close{
  border-radius: 10px;
  width: 34px;
  height: 34px;
}

/* Optional: empty state (if log is empty) */
.zxChat__log:empty::before{
  content: "Say hello — messages will appear here.";
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  padding: 10px 2px;
}

/* Mobile polish */
@media (max-width: 520px){
  .zxChat__msg{ max-width: 88%; }
  .zxChat__header{ padding: 12px; }
  .zxChat__form{ padding: 10px; }
}



/* ============================
   Chat: arruma o layout (FIX)
   Cole NO FIM do site.css
   ============================ */

/* 1) Painel: posição e proporção (para de ficar “enterrado”) */
.zxChat{
  position: fixed !important;
  right: 18px !important;
  bottom: 88px !important;                 /* sobe o widget */
  width: 380px !important;
  max-width: calc(100vw - 36px) !important;
  height: 520px !important;
  max-height: calc(100vh - 140px) !important;

  box-sizing: border-box !important;
  border-radius: 18px !important;
  overflow: hidden !important;

  border: 1px solid rgba(255,255,255,0.14) !important;
  background: rgba(14, 18, 26, 0.92) !important;
  box-shadow: 0 22px 70px rgba(0,0,0,0.60) !important;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* 2) Header: mais “app-like” */
.zxChat__header{
  padding: 14px 14px 12px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) !important;
  border-bottom: 1px solid rgba(255,255,255,0.10) !important;
}
.zxChat__header strong{
  font-size: 14px !important;
}
.zxChat__header .muted{
  color: rgba(255,255,255,0.70) !important;
}

/* 3) Log: ocupa o espaço certo e não fica “vazio feio” */
.zxChat__log{
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;

  padding: 14px !important;
  background: rgba(0,0,0,0.10) !important;

  /* evita a última msg ficar escondida atrás do form */
  padding-bottom: 90px !important;
}

/* REMOVE o “Say hello…” (deixa isso irritante) */
.zxChat__log:empty::before{
  content: "" !important;
}

/* 4) Bolhas: finalmente parecem bolhas */
.zxChat__msg{
  display: inline-block !important;
  max-width: 78% !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;

  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;

  color: rgba(255,255,255,0.92) !important;
  line-height: 1.35 !important;
  word-break: break-word !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.28) !important;

  align-self: flex-start !important;
}
.zxChat__msg--me{
  align-self: flex-end !important;
  background: rgba(120,180,255,0.22) !important;
  border-color: rgba(120,180,255,0.26) !important;
}
.zxChat__msg--system{
  align-self: center !important;
  max-width: 92% !important;
  font-size: 12px !important;
  color: rgba(255,255,255,0.75) !important;
  background: rgba(255,255,255,0.05) !important;
  border-style: dashed !important;
  box-shadow: none !important;
}

/* 5) Composer: NÃO CORTA, fica firme e bonito */
.zxChat__form{
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;

  display: flex !important;
  gap: 10px !important;
  align-items: center !important;

  padding: 12px !important;
  box-sizing: border-box !important;

  background: linear-gradient(180deg, rgba(14,18,26,0.10), rgba(14,18,26,0.92)) !important;
  border-top: 1px solid rgba(255,255,255,0.12) !important;
}

/* input melhor + alto */
.zxChat__input{
  flex: 1 !important;
  min-height: 44px !important;
  padding: 11px 12px !important;

  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  background: rgba(0,0,0,0.24) !important;
  color: rgba(255,255,255,0.92) !important;

  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06) !important;
}
.zxChat__input::placeholder{
  color: rgba(255,255,255,0.52) !important;
}
.zxChat__input:focus{
  outline: none !important;
  border-color: rgba(120,180,255,0.50) !important;
  box-shadow: 0 0 0 4px rgba(120,180,255,0.16), inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

/* botão Send finalmente com cara de “primário” */
.zxChat__form .btn.btn--primary{
  min-height: 44px !important;
  padding: 10px 16px !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  opacity: 1 !important;
  filter: none !important;

  box-shadow: 0 14px 34px rgba(0,0,0,0.38) !important;
}
.zxChat__form .btn.btn--primary:hover{
  transform: translateY(-1px);
}

/* 6) Mobile: vira bottom-sheet de verdade */
@media (max-width: 520px){
  .zxChat{
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    width: auto !important;
    height: min(72vh, 560px) !important;
    max-height: none !important;
  }
  .zxChat__msg{ max-width: 88% !important; }
}



/* ============================
   FIX: Send button muito escuro
   ============================ */

.zxChat__form .btn.btn--primary{
  background: linear-gradient(
    180deg,
    #5fb3ff,
    #3a8dde
  ) !important;

  color: #08131f !important;          /* texto escuro para contraste */
  font-weight: 800 !important;

  border: 1px solid rgba(255,255,255,0.35) !important;

  box-shadow:
    0 10px 26px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.35) !important;

  opacity: 1 !important;
  filter: none !important;
}

/* Hover: claramente interativo */
.zxChat__form .btn.btn--primary:hover{
  background: linear-gradient(
    180deg,
    #78c3ff,
    #4c9ee6
  ) !important;

  transform: translateY(-1px);
}

/* Active: feedback físico */
.zxChat__form .btn.btn--primary:active{
  transform: translateY(0);
  box-shadow:
    0 6px 18px rgba(0,0,0,0.35),
    inset 0 2px 4px rgba(0,0,0,0.25) !important;
}


/* ============================================================
   Admin inbox composer (reply box)
   Reason:
     Replace default textarea + awkward spacing with a modern,
     full-width “message composer” layout.
   ============================================================ */

.zxAdminComposer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.zxAdminComposer__row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.zxAdminComposer__field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.zxAdminComposer__label {
  font-size: 13px;
  opacity: 0.9;
}

.zxAdminComposer__input {
  width: 100%;
  min-height: 56px;
  resize: vertical;

  padding: 12px 12px;
  border-radius: 14px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);

  color: rgba(255,255,255,0.92);
  outline: none;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.zxAdminComposer__input::placeholder {
  color: rgba(255,255,255,0.45);
}

.zxAdminComposer__input:focus {
  border-color: rgba(120, 190, 255, 0.55);
  box-shadow:
    0 0 0 4px rgba(120, 190, 255, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.zxAdminComposer__send {
  white-space: nowrap;
  padding: 12px 16px;
  border-radius: 14px;
}

.zxAdminComposer__meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  opacity: 0.85;
}

.zxAdminComposer__count {
  opacity: 0.75;
}

/* ============================================================
   ABOUT / INNER PAGES TEXT VISIBILITY FIX
   ============================================================ */

.zx-page {
  color: #e6edf3;
}

.zx-page h1,
.zx-page h2,
.zx-page h3,
.zx-page h4 {
  color: #ffffff;
}

.zx-page p,
.zx-page li,
.zx-page blockquote {
  color: #c9d4df;
}

/* Safety: ensure no parent opacity hides text */
.zx-page,
.zx-page * {
  opacity: 1;
}

/* ============================================================
   ABOUT PAGE (Modern cyber layout + spacing + FX)
   Applies only to: <main class="zx-page zx-about">
   ============================================================ */

.zx-about { position: relative; }

/* Your container */
.zx-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Sticky header overlap fix (anchors) */
.zx-about-section,
.zx-timeline__item {
  scroll-margin-top: 110px;
}

/* ============================================================
   CANONICAL MEASURE (FIX)
   - Enforces same line length everywhere.
   ============================================================ */

/* Wider long-form measure (less “skinny column”, still readable) */
/* Unified reading width */
.zx-measure {
  max-width: var(--zx-reading-width);
}


/* ============================================================
   HERO
   ============================================================ */

.zx-about-hero {
  position: relative;
  padding: 64px 0 32px;
}

.zx-about-hero__grid {
  display: grid;
  grid-template-columns: 1fr; /* single column now */
  gap: 24px;
  align-items: start;
}

/* Ensure hero copy respects measure even inside grid */
.zx-about-hero__copy {
  justify-self: start;
}

/* Panel wrapper (now used in HTML) */
.zx-about-hero__panel {
  max-width: 78ch;
  padding: 40px 44px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  box-shadow: 0 16px 50px rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
}

.zx-about-hero__title {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  margin: 10px 0 12px;
}

.zx-glow {
  text-shadow: 0 0 18px rgba(88, 188, 255, 0.35);
}

.zx-about-hero .zx-lead{
  font-size: 1.05rem;
  line-height: 1.55;
  color: #eef5ff;
  margin-top: 14px;
}

.zx-about-hero__body{
  margin-top: 18px;
}

.zx-about-hero__body p + p{
  margin-top: 14px;
}

.zx-about-hero__note{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
  color: #a8b3bf;
  max-width: 60ch;
}

/* ============================================================
   QUICK NAV
   ============================================================ */

.zx-about-nav {
  position: sticky;
  top: 56px;
  z-index: 5;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.18);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.zx-about-nav .zx-container {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px 16px;
}

.zx-about-nav__link {
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  color: #e6edf3;
  text-decoration: none;
  font-size: 13px;
}

.zx-about-nav__link.is-active {
  border-color: rgba(88, 188, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(88, 188, 255, 0.12);
}

/* ============================================================
   SECTIONS
   ============================================================ */

.zx-about-section { padding: 44px 0; }

.zx-about-section--soft {
  background: rgba(0,0,0,0.10);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.zx-about-section__head { margin-bottom: 18px; }
.zx-about-section__head h2 { margin: 0 0 6px; }

/* ============================================================
   TIMELINE
   ============================================================ */

.zx-timeline { position: relative; margin-top: 10px; padding-left: 14px; }

.zx-timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.10);
}

.zx-timeline__item {
  position: relative;
  padding: 14px 14px 14px 18px;
  margin: 0 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.16);
}

.zx-timeline__dot {
  position: absolute;
  left: -2px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(88, 188, 255, 0.9);
  box-shadow: 0 0 18px rgba(88, 188, 255, 0.5);
}

/* ============================================================
   CARDS
   ============================================================ */

.zx-cardgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .zx-cardgrid { grid-template-columns: 1fr; }
}

.zx-card {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.16);
  padding: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.20);
}

/* ============================================================
   QUOTE (FIXED)
   - Your old CSS broke here because the brace was missing.
   ============================================================ */

.zx-quote {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 3px solid rgba(88, 188, 255, 0.7);
  background: rgba(0,0,0,0.16);
  border-radius: 12px;
}
@media (min-width: 1200px) {
  .zx-about-hero__panel {
    max-width: 82ch;
  }
}
/* FORCE readable line spacing for About hero text */
.zx-about-hero__copy p,
.zx-about-hero__copy li {
  line-height: 1.75;   /* <-- THIS is what your eye wants */
}
/* Strong paragraph separation */
.zx-about-hero__body p + p {
  margin-top: 1.6rem; /* was too tight before */
}


/* ============================================================
   GLOBAL READING WIDTH
   One canonical line-length for the entire About page
   ============================================================ */

:root {
  --zx-reading-width: 72ch; /* ← this matches your TIMELINE width */
}
.zx-about-hero__copy {
  max-width: var(--zx-reading-width);
}
/* ============================================================
   ABOUT / INNER PAGES TEXT VISIBILITY FIX
   ============================================================ */
.zx-page { color: #e6edf3; }
.zx-page h1, .zx-page h2, .zx-page h3, .zx-page h4 { color: #fff; }
.zx-page p, .zx-page li, .zx-page blockquote { color: #c9d4df; }
.zx-page, .zx-page * { opacity: 1; }

/* ============================================================
   ABOUT PAGE — ONE WIDTH, ONE RHYTHM (FIX)
   Goal:
   - One consistent page width (hero, timeline, cards, quote)
   - No tiny hero "card"
   - No timeline full-width
   ============================================================ */

:root{
  --zx-about-width: 980px;     /* overall content width (desktop) */
  --zx-about-padding: 18px;    /* side padding on mobile */
  --zx-about-radius: 18px;
}

.zx-about { position: relative; }

/* ✅ THE MAIN FIX: one wrapper controls the entire page width */
.zx-about-wrap{
  max-width: var(--zx-about-width);
  margin: 0 auto;
  padding: 0 var(--zx-about-padding);
}

/* Sections spacing */
.zx-about-hero{ padding: 64px 0 26px; }
.zx-about-section{ padding: 40px 0; }
.zx-about-section--soft{
  background: rgba(0,0,0,0.10);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--zx-about-radius);
  padding-left: 18px;
  padding-right: 18px;
}

/* ------------------------------------------------------------
   HERO: stop being a small card. Make it full width of wrapper.
   ------------------------------------------------------------ */
.zx-about-hero__grid{ display:block; }

/* Remove “skinny measure” behaviour */
.zx-measure{ max-width: none; width: 100%; }

/* Make hero panel wide and calm */
.zx-about-hero__panel{
  width: 100%;
  max-width: none;
  padding: 44px 44px;
  border-radius: var(--zx-about-radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
}

@media (max-width: 700px){
  .zx-about-hero__panel{ padding: 26px 20px; }
}

.zx-about-hero__title{
  font-size: clamp(38px, 4.2vw, 62px);
  line-height: 1.02;
  margin: 10px 0 16px;
}

.zx-glow{ text-shadow: 0 0 18px rgba(88,188,255,0.35); }

.zx-about-hero .zx-lead{
  font-size: 1.08rem;
  line-height: 1.78;
  color: #eef5ff;
  margin: 0 0 18px;
}

/* ✅ Space between lines + paragraphs (this is what you asked) */
.zx-about-hero__panel p,
.zx-about-hero__panel li{
  line-height: 1.85;
}

.zx-about-hero__body p + p{ margin-top: 1.6rem; }

.zx-about-hero__note{
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #a8b3bf;
  line-height: 1.75;
}

/* ------------------------------------------------------------
   QUICK NAV: keep it inside wrapper width
   ------------------------------------------------------------ */
.zx-about-nav{
  position: sticky;
  top: 56px;
  z-index: 5;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.18);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin: 0 calc(var(--zx-about-padding) * -1);
  padding: 0 var(--zx-about-padding);
}

.zx-about-nav .zx-container{
  max-width: none;
  padding: 10px 0;
  margin: 0;
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.zx-about-nav__link{
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  color: #e6edf3;
  text-decoration: none;
  font-size: 13px;
}

/* ------------------------------------------------------------
   SECTION HEADERS: align to same width
   ------------------------------------------------------------ */
.zx-about-section__head{ margin: 0 0 18px; }
.zx-about-section__head h2{ margin: 0 0 6px; }

/* ------------------------------------------------------------
   TIMELINE: stop being full-width. Match wrapper width.
   ------------------------------------------------------------ */
.zx-timeline{
  position: relative;
  margin-top: 12px;
  padding-left: 18px;
}

.zx-timeline::before{
  content:"";
  position:absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.10);
}

.zx-timeline__item{
  position: relative;
  margin: 0 0 14px;
  padding: 18px 20px 18px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
}

.zx-timeline__dot{
  position:absolute;
  left: -1px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(88,188,255,0.9);
  box-shadow: 0 0 18px rgba(88,188,255,0.5);
}

/* timeline typography rhythm */
.zx-timeline__item p, .zx-timeline__item li{ line-height: 1.75; }
.zx-timeline__item p + p{ margin-top: 1rem; }

/* ------------------------------------------------------------
   CARDS: keep them inside wrapper width and consistent
   ------------------------------------------------------------ */
.zx-cardgrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 900px){
  .zx-cardgrid{ grid-template-columns: 1fr; }
}

.zx-card{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
  padding: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
}

.zx-quote{
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 3px solid rgba(88,188,255,0.7);
  background: rgba(0,0,0,0.14);
  border-radius: 12px;
  line-height: 1.75;
}
/* ============================================================
   ABOUT PAGE — QUICK NAV WIDTH FIX
   ------------------------------------------------------------
   Problem:
   - The quick-nav spans full width
   - Everything else uses the reading measure
   - Creates visual mismatch and "floating bar" feeling

   Solution:
   - Constrain nav content to the same reading width
   - Center it like hero, timeline, and text blocks
   ============================================================ */

/* Keep the sticky background full-width */
.zx-about-nav {
  display: flex;
  justify-content: center; /* centers inner content */
}

/* Constrain the actual links */
.zx-about-nav .zx-container {
  max-width: var(--zx-reading-width); /* SAME width as hero/timeline */
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  justify-content: flex-start;
}

/* Optional: tighten pills slightly so they feel lighter */
.zx-about-nav__link {
  font-size: 12.5px;
  padding: 6px 10px;
  opacity: 0.9;
}

/* Mobile safety */
@media (max-width: 768px) {
  .zx-about-nav .zx-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}


/* ============================================================
   ABOUT PAGE — QUICK NAV WIDTH & BALANCE FIX
   ------------------------------------------------------------
   Problem:
   - Quick-nav bar was full-width
   - Content boxes are constrained
   - Causes visual misalignment and "floating" look

   Fix:
   - Constrain nav to same reading width as content
   ============================================================ */

.zx-about-nav {
  background: rgba(0,0,0,0.18);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* THIS is the key fix */
.zx-about-nav .zx-container {
  max-width: var(--zx-reading-width); /* same as hero + timeline */
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
}

/* =========================================================
   Essay page hooks (from essay.php)
   ========================================================= */

.zx-skip{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.zx-skip:focus{
  position:fixed;
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 12px;
  border-radius:12px;
  background:#fff;
  color:#000;
  z-index:9999;
}

/* Language switcher */
.zx-essayLangbar{ padding:.75rem 0; }
.zx-essayLangbar__inner{ display:flex; align-items:center; justify-content:flex-end; gap:.75rem; flex-wrap:wrap; }
.zx-essayLangbar__label{ font-size:.85rem; opacity:.75; letter-spacing:.02em; white-space:nowrap; }
.zx-essayLangbar__list{ display:flex; gap:.4rem; margin:0; padding:0; list-style:none; }
.zx-essayLangbar__link{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.42rem .7rem; border-radius:999px; text-decoration:none;
  font-size:.85rem; line-height:1;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  color:inherit; opacity:.92;
  transition:transform .12s ease, background .12s ease, opacity .12s ease, border-color .12s ease;
}
.zx-essayLangbar__link:hover{ background:rgba(255,255,255,.10); opacity:1; transform:translateY(-1px); }
.zx-essayLangbar__link.is-active{ background:rgba(255,255,255,.16); border-color:rgba(255,255,255,.32); opacity:1; }
.zx-essayLangbar__dot{ width:.45rem; height:.45rem; border-radius:50%; background:rgba(255,255,255,.55); opacity:.6; }
.zx-essayLangbar__link.is-active .zx-essayLangbar__dot{ opacity:1; }
@media (max-width:640px){ .zx-essayLangbar__inner{ justify-content:flex-start; } }

/* Essay-only refinements (scoped) */
.zx-essay .zx-essayCard{
  background:#fff;
  border-radius:18px;
  box-shadow:
    0 24px 64px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.6);
}
.zx-essay .zx-essayProse{
  border-left:3px solid rgba(0,0,0,.08);
  padding-left:1.75rem;
}
.zx-essay .zx-essayProse blockquote{
  border-left-color: rgba(106,211,232,.9);
  background: rgba(106,211,232,.05);
}

