/* ============================================================================
   verifAI — Design system (Direction C · "Refined Glass")
   Hand-authored CSS mirroring the design-handoff tokens. No build step.
   ============================================================================ */

/* ----- Fonts -------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

/* ----- Tokens ------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg-900: #05060E;
  --bg-800: #0B1024;
  --bg-700: #10173A;

  --glass:        rgba(255, 255, 255, 0.04);
  --glass-raised: rgba(255, 255, 255, 0.07);

  --border:       rgba(255, 255, 255, 0.10);
  --border-soft:  rgba(255, 255, 255, 0.06);

  /* Text */
  --text:        #F2F4FB;
  --text-dim:    #9AA3C2;

  /* Brand */
  --accent:       #E64A2E;            /* coral */
  --accent-soft:  rgba(230, 74, 46, 0.18);
  --accent-shadow: rgba(230, 74, 46, 0.35);
  --accent-glow:   rgba(230, 74, 46, 0.55);

  --brand-blue:   #5B8DEF;

  /* Status */
  --status-ok:     #3FCF8E;
  --status-warn:   #F5B544;
  --status-danger: #F26A6A;

  /* Type */
  --font-serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --font-sans:  'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:  'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

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

  /* Shadows */
  --shadow-card:    0 30px 60px rgba(0, 0, 0, 0.6),  inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-elev:    0 30px 60px rgba(0, 0, 0, 0.4);
  --shadow-accent:  0 12px 30px rgba(230, 74, 46, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --shadow-icon:    0 12px 30px rgba(230, 74, 46, 0.55);
}

/* ----- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-900);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
em { font-style: italic; }

/* ----- Aurora background -------------------------------------------------- */
/*
   Three layers, all pointer-events:none and aria-hidden. Sits behind a
   z-index:1 content wrapper.
*/
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.aurora::before,
.aurora::after,
.aurora .aurora-grid {
  content: '';
  position: absolute;
}
.aurora::before {
  /* blue orb, top-left */
  top: -20%;
  left: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(91, 141, 239, 0.35), transparent 70%);
  filter: blur(40px);
}
.aurora::after {
  /* coral orb, bottom-right */
  bottom: -30%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(230, 74, 46, 0.28), transparent 70%);
  filter: blur(40px);
}
.aurora .aurora-grid {
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Content sits above aurora */
.app-shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* ----- Wordmark ----------------------------------------------------------- */
.wordmark { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.wordmark-lg { font-size: 18px; }
.wordmark .ai { color: var(--accent); }

/* ----- Eyebrow / labels --------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--text-dim);
}
.eyebrow.accent { color: var(--accent); }
.eyebrow.tight { letter-spacing: 0.18em; }
.eyebrow.short { letter-spacing: 0.15em; }

/* ----- Headings ----------------------------------------------------------- */
.h-hero {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}
.h-hero .accent-italic { font-style: italic; color: var(--accent); }

.h-page {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}
.h-page .accent-italic { font-style: italic; color: var(--accent); }

.h-panel {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
}
.h-verdict {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0;
}

/* ----- Status dot --------------------------------------------------------- */
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-dot.ok     { background: var(--status-ok);     box-shadow: 0 0 8px var(--status-ok); }
.status-dot.warn   { background: var(--status-warn);   box-shadow: 0 0 8px var(--status-warn); }
.status-dot.danger { background: var(--status-danger); box-shadow: 0 0 8px var(--status-danger); }

@keyframes status-pulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 8px  currentColor; }
  50%      { opacity: 0.7; box-shadow: 0 0 12px currentColor; }
}
.status-dot.pulse { animation: status-pulse 2s ease-in-out infinite; }

/* ----- Status pills ------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text-dim);
  white-space: nowrap;
}
.pill.mono { font-family: var(--font-mono); font-weight: 400; font-size: 12px; padding: 6px 12px; color: var(--text-dim); }
.pill.ok       { background: rgba(63, 207, 142, 0.22);   color: var(--status-ok);     border-color: rgba(63, 207, 142, 0.55); }
.pill.warn     { background: rgba(245, 181, 68, 0.22);   color: var(--status-warn);   border-color: rgba(245, 181, 68, 0.55); }
.pill.danger   { background: rgba(242, 106, 106, 0.22);  color: var(--status-danger); border-color: rgba(242, 106, 106, 0.55); }
.pill.accent   { background: var(--accent-soft);         color: var(--accent);        border-color: rgba(230, 74, 46, 0.55); }

/* ----- Auth card ---------------------------------------------------------- */
.auth-card {
  width: 460px;
  max-width: calc(100vw - 32px);
  padding: 40px 40px 36px;
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-card .hero-block { display: flex; flex-direction: column; gap: 10px; margin-top: -2px; }
.auth-card .hero-block .h-hero { margin-top: 14px; }
.auth-card .subtitle { font-size: 14px; color: var(--text-dim); margin: 0; }

/* ----- Form fields -------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.field-input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field-input::placeholder { color: var(--text-dim); }
.field-input:hover   { border-color: rgba(255, 255, 255, 0.18); }
.field-input:focus   { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(230, 74, 46, 0.25); }

.field-toggle {
  position: absolute;
  right: 14px;
  bottom: 13px;
  font-size: 11px;
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
}

/* Checkbox + label row */
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 13px;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-label .check {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 120ms ease, border-color 120ms ease;
}
.checkbox-label input:checked + .check {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox-label input:checked + .check::after {
  content: '';
  width: 4px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
}
.link-accent { color: var(--accent); font-size: 13px; font-weight: 500; }
.link-accent:hover { opacity: 0.85; }

/* ----- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
  padding: 14px 18px;
}
.btn-primary:hover { background: #ef5d43; }
.btn-primary .arrow { font-family: var(--font-mono); font-weight: 500; margin-left: 4px; }
.btn-block { width: 100%; }
.btn-toolbar {
  padding: 7px 14px;
  font-size: 12px;
  background: var(--glass);
  border-color: var(--border);
  border-radius: 8px;
  color: var(--text);
}

/* ----- Trust callout ------------------------------------------------------ */
.trust-callout {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.trust-callout .glyph {
  color: var(--brand-blue);
  font-size: 14px;
  line-height: 1;
  margin-top: 2px;
  font-family: var(--font-mono);
}
.trust-callout .text { font-size: 11px; color: var(--text-dim); line-height: 1.55; }
.trust-callout .text strong { color: var(--text); font-weight: 600; }

/* ----- Top utility strip (login, etc.) ------------------------------------ */
.top-strip {
  position: fixed;
  top: 24px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}
.top-strip .left, .top-strip .right { display: flex; align-items: center; gap: 10px; }
.top-strip .right {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ----- Bottom legal line -------------------------------------------------- */
.bottom-legal {
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
  z-index: 10;
}

/* ----- Page layout: centered (login) -------------------------------------- */
.center-grid {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 80px 16px;
}

/* ----- Login two-column layout -------------------------------------------- */
/*
   <main class="app-shell">
     <div class="login-grid">
       <div class="login-left">  ... welcome + auth-card ...
       <div class="login-right"> ... hero image (hidden < lg) ...
     </div>
     <footer class="login-footer">...</footer>
   </main>
*/
.login-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 32px;
  padding: 96px 24px 80px;
  width: 100%;
  margin: 0 auto;
}
.login-left  { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 22px; }
.login-right { display: none; }

/* lg+ : 3-column grid — empty left spacer, login dead-center, bot image far right */
@media (min-width: 1024px) {
  .login-grid {
    grid-template-columns: 1fr minmax(0, 460px) 1fr;
    gap: 32px;
    justify-items: stretch;
    padding: 80px 32px;
    max-width: none;
  }
  .login-left  { justify-self: center; grid-column: 2; }
  .login-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    grid-column: 3;
    min-height: 560px;
    padding-right: 16px;
  }
}

/* Hero image + glow halo (right column on lg+) */
.hero-image-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.hero-image-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91, 141, 239, 0.30), rgba(230, 74, 46, 0.18) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-image {
  position: relative;
  height: 560px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 0 50px rgba(91, 141, 239, 0.45));
}

/* The hero block above the auth card on the login page */
.hero-block--top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px;
}

/* ----- Top utility strip extras (login) ----------------------------------- */
.top-strip-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 4px;
}
.top-strip-tag {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-sans);
}
.top-strip-shield {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
}
.top-strip .right { font-size: 12px; }

/* ----- "Forgot password" row (right-aligned) ------------------------------ */
.row-end {
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
}

/* ----- Button icon (sign in) ---------------------------------------------- */
.btn-icon { width: 18px; height: 18px; }

/* ----- Trust callout: image variant w/ heading + body --------------------- */
.trust-callout .glyph-svg {
  width: 22px;
  height: 22px;
  color: var(--brand-blue);
  flex-shrink: 0;
  margin-top: 1px;
}
.trust-callout {
  /* upgrade to a 22px icon column */
  grid-template-columns: 22px 1fr;
}
.trust-callout-body { display: flex; flex-direction: column; gap: 4px; }
.trust-callout-body h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.trust-callout-body p {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ----- Login footer (Powered by + copyright) ------------------------------ */
.login-footer {
  text-align: center;
  padding: 24px 16px 40px;
}
.login-footer-powered {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--text-dim);
}
.login-footer-logo { height: 16px; opacity: 0.85; }
.login-footer-copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.75;
}

/* ----- Back link (← Back to Login) ---------------------------------------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  transition: opacity 120ms ease;
}
.back-link:hover { opacity: 0.85; }
.back-link svg { width: 14px; height: 14px; }
.text-center { text-align: center; }

/* ----- Help callout (forgot-password "Need help?") ------------------------ */
.help-callout {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.help-callout .glyph-svg {
  width: 18px;
  height: 18px;
  color: var(--brand-blue);
  flex-shrink: 0;
  margin-top: 1px;
}
.help-callout-body { display: flex; flex-direction: column; gap: 4px; }
.help-callout-body h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.help-callout-body p {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ----- Inline panel (small info card inside an auth-card) ----------------- */
.inline-panel {
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inline-panel-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

/* ----- Progress bar ------------------------------------------------------- */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 9999px;
  transition: width 400ms ease-out, background 200ms ease;
}
.progress-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* ----- Requirements list (password strength) ----------------------------- */
.req-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.req-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  transition: color 120ms ease;
}
.req-list li svg { width: 14px; height: 14px; color: var(--text-dim); flex-shrink: 0; transition: color 120ms ease; }
.req-list li.met { color: var(--status-ok); }
.req-list li.met svg { color: var(--status-ok); }

/* ----- App topbar (60px, glass, sticks above content) --------------------- */
/*
   <header class="topbar">
     <div class="topbar-inner">
       <div class="topbar-left">  ... wordmark + (optional nav) ...
       <div class="topbar-right"> ... pills, badges, icon buttons ...
     </div>
   </header>
*/
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 36, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 60px;
}
.topbar-inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-left  { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar-divider { width: 1px; height: 18px; background: var(--border); }
.topbar-tag    { font-size: 13px; color: var(--text-dim); }
.topbar-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
}
.topbar-secure svg { width: 14px; height: 14px; }

/* ----- Ghost button (used in topbars / toolbars) -------------------------- */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  white-space: nowrap;
}
.btn-ghost:hover  { background: var(--glass-raised); border-color: rgba(255, 255, 255, 0.18); }
.btn-ghost svg    { width: 14px; height: 14px; }

/* ----- Icon-only button (e.g. logout) ------------------------------------- */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.icon-btn:hover { background: rgba(242, 106, 106, 0.12); color: var(--status-danger); border-color: rgba(242, 106, 106, 0.55); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.neutral:hover { background: var(--glass-raised); color: var(--text); border-color: rgba(255, 255, 255, 0.18); }

/* ----- App content shell (when topbar is present) ------------------------- */
.app-content {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 32px 24px 48px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

/* ----- App footer (full content, glass top divider) ----------------------- */
.app-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(11, 16, 36, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.app-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 24px;
}
.app-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
.app-footer-col h4 {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.app-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.app-footer-col li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}
.app-footer-col li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.app-footer-col.brand p { margin: 4px 0; font-size: 13px; color: var(--text-dim); line-height: 1.55; }
.app-footer-col.brand .credit { margin-top: 14px; font-size: 11px; color: var(--text-dim); opacity: 0.75; }
.app-footer-logo { height: 18px; opacity: 0.85; }
.app-footer-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}
.app-footer-copy {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.75;
}
@media (max-width: 768px) {
  .app-footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ----- Admin sub-header (per-page header strip used by admin pages) ------- */
/*
   <header class="page-header">
     <div class="page-header-inner">
       <div class="page-header-left">  ... back + icon + title ...
       <div class="page-header-right"> ... action buttons ...
     </div>
   </header>
*/
.page-header {
  background: rgba(11, 16, 36, 0.45);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  z-index: 5;
}
.page-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-header-left  { display: flex; align-items: center; gap: 18px; min-width: 0; }
.page-header-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.back-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
  transition: color 120ms ease, transform 120ms ease;
}
.back-pill:hover { color: var(--text); }
.back-pill:hover svg { transform: translateX(-2px); }
.back-pill svg { width: 16px; height: 16px; transition: transform 120ms ease; }

.page-header-title-block {
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-header-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent), var(--brand-blue));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.page-header-icon svg { width: 22px; height: 22px; }
.page-header-title h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
}
.page-header-title p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-dim);
}

/* ----- Hide top-strip tag on very narrow viewports ------------------------ */
@media (max-width: 640px) {
  .top-strip-divider, .top-strip-tag { display: none; }
  .topbar-divider, .topbar-tag, .topbar-secure { display: none; }
  .btn-ghost span { display: none; }   /* keep just the icon for Admin link */
}
@media (max-width: 480px) {
  .topbar-inner { padding: 0 12px; }
  #sub-countdown { display: none !important; }
}

/* ----- Alerts / flash messages -------------------------------------------- */
.alert-stack { display: flex; flex-direction: column; gap: 8px; }
.alert {
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--glass);
}
.alert.error   { background: rgba(242, 106, 106, 0.10); border-color: rgba(242, 106, 106, 0.45); color: var(--status-danger); }
.alert.success { background: rgba(63, 207, 142, 0.10);  border-color: rgba(63, 207, 142, 0.45);  color: var(--status-ok); }
.alert.info    { background: rgba(91, 141, 239, 0.10);  border-color: rgba(91, 141, 239, 0.45);  color: var(--brand-blue); }

/* ----- Focus ring (a11y) -------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: inherit;
}

/* ----- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .status-dot.pulse { animation: none; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* ----- Responsive: keep auth card readable on small screens --------------- */
@media (max-width: 520px) {
  .auth-card { padding: 28px 22px 26px; gap: 16px; }
  .h-hero { font-size: 36px; }
  .top-strip { left: 16px; right: 16px; top: 16px; }
  .bottom-legal { font-size: 10px; }
}
