/* ==========================================================================
   JEZORA AI — design system (Phase 0)
   Palette from the approved logo pack. Mobile-first.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy-950: #04061a;
  --navy-900: #080d2a;
  --navy-850: #0b1236;
  --navy-800: #101843;
  --navy-700: #1a2457;
  --line: rgba(140, 170, 255, 0.14);
  --line-strong: rgba(140, 170, 255, 0.26);
  --text: #eef3ff;
  --text-soft: #b6c2e6;
  --text-mute: #8391bd;
  --cyan: #00d4ff;
  --blue: #0066ff;
  --purple: #9b3cff;
  --magenta: #ff2e96;
  --ok: #2fd6a0;
  --warn: #ffb547;
  --danger: #ff5c7a;
  --grad: linear-gradient(90deg, var(--purple), var(--cyan));
  --grad-btn: linear-gradient(90deg, #8a35f0 0%, #3f5cff 55%, #0aa8ff 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #6be6ff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { font-size: 0.9em; background: rgba(255, 255, 255, 0.06); padding: 0.1em 0.4em; border-radius: 5px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--text-mute); }
.small { font-size: 0.85rem; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: var(--navy-950); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---- Brand ------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-icon { width: 40px; height: 40px; border-radius: 10px; }
.brand-logo { height: 46px; width: auto; }
.footer-logo { height: 54px; width: auto; }
@media (min-width: 760px) { .brand-logo { height: 52px; } }
.brand-word { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.16em; color: #fff; white-space: nowrap; }
.brand-word.small { font-size: 0.95rem; }
.brand-ai { background: linear-gradient(90deg, var(--cyan), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Header / footer ---------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(4, 6, 26, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.btn.header-cta { display: none; }
@media (min-width: 560px) { .btn.header-cta { display: inline-flex; } }

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); background: var(--navy-950); }
.footer-inner { display: grid; gap: 14px; }
.footer-brand { display: flex; flex-direction: column; gap: 2px; }
.footer-tag { font-family: var(--font-head); font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-mute); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--text-soft); text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }
.footer-note { font-size: 0.8rem; color: var(--text-mute); margin: 0; max-width: 760px; }
@media (min-width: 860px) { .footer-inner { grid-template-columns: auto 1fr; align-items: center; } .footer-links { justify-content: flex-end; } .footer-note { grid-column: 1 / -1; } }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-primary { color: #fff; background: var(--grad-btn); box-shadow: 0 8px 28px rgba(60, 90, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 36px rgba(0, 180, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); }
.btn-ghost:hover { color: #fff; border-color: var(--cyan); background: rgba(0, 212, 255, 0.08); }
.btn-danger { color: #fff; background: rgba(255, 92, 122, 0.16); border-color: rgba(255, 92, 122, 0.55); }
.btn-danger:hover { color: #fff; background: rgba(255, 92, 122, 0.3); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 0.88rem; border-radius: 10px; }
.btn-block { width: 100%; }

.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn-label { opacity: 0.8; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Forms -------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: 0.86rem; font-weight: 600; color: var(--text-soft); }
.optional { font-weight: 400; color: var(--text-mute); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; /* 16px prevents iOS zoom */
  color: var(--text); background: rgba(4, 6, 26, 0.65); border: 1px solid var(--line-strong); border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 110px; resize: vertical; }
input::placeholder { color: #5f6b95; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.18); }
input[aria-invalid="true"] { border-color: var(--danger); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-mute) 50%), linear-gradient(135deg, var(--text-mute) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input[type="date"] { color-scheme: dark; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.86rem; line-height: 1.5; color: var(--text-soft); cursor: pointer; }
.consent input, .radio input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--cyan); cursor: pointer; }
.radio { display: flex; gap: 10px; align-items: center; padding: 6px 0; color: var(--text-soft); cursor: pointer; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.stack { display: grid; gap: 16px; }

.alert { padding: 12px 14px; border-radius: 12px; font-size: 0.92rem; margin-bottom: 16px; border: 1px solid; }
.alert-ok { background: rgba(47, 214, 160, 0.1); border-color: rgba(47, 214, 160, 0.45); color: #b9f5e0; }
.alert-error { background: rgba(255, 92, 122, 0.1); border-color: rgba(255, 92, 122, 0.45); color: #ffc7d1; }

/* ---- Signup card -------------------------------------------------------- */
.signup-card {
  position: relative; padding: 22px 18px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 28, 80, 0.75), rgba(10, 14, 45, 0.85));
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.signup-card::before { content: ""; position: absolute; inset: -1px; border-radius: 21px; padding: 1px; background: linear-gradient(135deg, rgba(155, 60, 255, 0.7), rgba(0, 212, 255, 0.55) 40%, transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.signup-title { font-size: 1.25rem; margin-bottom: 4px; }
.signup-sub { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 16px; }
.signup { display: grid; gap: 14px; }
.signup-fields { display: grid; gap: 12px; }
@media (min-width: 560px) { .signup-card { padding: 28px; } .signup-fields { grid-template-columns: 0.8fr 1.2fr; } }
.form-status { margin: 0; font-size: 0.92rem; min-height: 0; }
.form-status:empty { display: none; }
.form-status.ok { color: #b9f5e0; padding: 12px 14px; border-radius: 12px; background: rgba(47, 214, 160, 0.1); border: 1px solid rgba(47, 214, 160, 0.45); }
.form-status.error { color: #ffc7d1; }
.signup.is-done .signup-fields, .signup.is-done .consent, .signup.is-done button { display: none; }
.fineprint { font-size: 0.8rem; color: var(--text-mute); margin: 12px 0 0; }

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 28px 0 56px; background: radial-gradient(120% 80% at 80% 0%, #15104a 0%, var(--navy-900) 45%, var(--navy-950) 100%); }
.hero-glow { position: absolute; inset: auto -20% -40% -20%; height: 60%; background: radial-gradient(50% 60% at 50% 50%, rgba(0, 102, 255, 0.22), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 8px; }
.hero-art { order: -1; margin: 0 -20px; display: flex; justify-content: center; }
.hero-art img {
  width: min(560px, 100%);
  -webkit-mask-image: radial-gradient(50% 50% at 55% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(50% 50% at 55% 50%, #000 62%, transparent 100%);
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); } }
.hero h1 { font-size: clamp(2rem, 7.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
.grad { background: linear-gradient(90deg, #b06bff 0%, var(--cyan) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.06rem; color: var(--text-soft); max-width: 600px; margin-bottom: 26px; }

@media (min-width: 960px) {
  .hero { padding: 56px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; gap: 40px; }
  .hero-art { order: 0; margin: 90px -40px 0 0; position: sticky; top: 120px; }
  .hero-art img { width: 100%; max-width: 640px; transform-origin: center; }
  .lead { font-size: 1.15rem; }
}

/* ---- Sections ----------------------------------------------------------- */
.section { padding: 64px 0; }
.section-alt { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-family: var(--font-head); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--purple); filter: brightness(1.35); margin-bottom: 10px; }
.section-title { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 700; max-width: 760px; }
.section-lead { color: var(--text-soft); font-size: 1.05rem; max-width: 680px; }
.section-lead.center, .section-title.center { margin-left: auto; margin-right: auto; }
@media (min-width: 960px) { .section { padding: 96px 0; } }

.cards { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.card { padding: 24px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(26, 36, 87, 0.45), rgba(11, 18, 54, 0.5)); border: 1px solid var(--line); transition: border-color 0.25s, transform 0.25s; }
.card:hover { border-color: rgba(0, 212, 255, 0.4); transform: translateY(-2px); }
.card h3 { font-size: 1.1rem; margin: 16px 0 8px; }
.card p { color: var(--text-soft); margin: 0; font-size: 0.96rem; }
.card-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(155, 60, 255, 0.25), rgba(0, 212, 255, 0.2)); border: 1px solid rgba(0, 212, 255, 0.3); }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-icon svg .fill { fill: var(--cyan); stroke: none; }

.split { display: grid; gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding: 14px 16px 14px 50px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); color: var(--text); }
.checklist li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--grad); }
.checklist li::after { content: ""; position: absolute; left: 23px; top: 50%; width: 5px; height: 9px; margin-top: -6px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.paths { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: path; }
@media (min-width: 700px) { .paths { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.paths li { counter-increment: path; position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 20px 66px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.paths li::before { content: counter(path, upper-alpha); position: absolute; left: 18px; top: 20px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; background: var(--grad); }
.paths strong { font-family: var(--font-head); font-size: 1.02rem; }
.paths span:last-child { color: var(--text-soft); font-size: 0.93rem; }
.path-level { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }

.neutral { display: grid; gap: 20px; align-items: start; }
@media (min-width: 760px) { .neutral { grid-template-columns: auto 1fr; gap: 32px; } }
.neutral-badge { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(155, 60, 255, 0.3), rgba(0, 212, 255, 0.25)); border: 1px solid rgba(0, 212, 255, 0.35); }
.neutral-badge svg { width: 36px; height: 36px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 10px; margin-top: 22px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.025); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-family: var(--font-head); font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--cyan); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--text-soft); }

.cta-final { background: radial-gradient(80% 90% at 50% 100%, rgba(0, 102, 255, 0.22), transparent 70%), var(--navy-950); }
.cta-final .signup-card { margin-top: 26px; text-align: left; }

/* ---- Message pages / prose --------------------------------------------- */
.message-page { min-height: 60vh; display: flex; align-items: center; background: radial-gradient(80% 70% at 50% 0%, #15104a, var(--navy-950) 70%); }
.message-card { padding: 36px 24px; border-radius: 20px; border: 1px solid var(--line-strong); background: rgba(11, 18, 54, 0.7); box-shadow: var(--shadow); }
.message-card h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
.message-card p { color: var(--text-soft); }
.message-card form { margin: 8px 0 0; }
.message-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); box-shadow: 0 0 40px rgba(0, 212, 255, 0.4); }
.message-icon svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.prose-page { background: var(--navy-950); }
.prose h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.prose h2 { font-size: 1.2rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--text-soft); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--text); }

/* ==========================================================================
   Admin
   ========================================================================== */
.admin-body { background: var(--navy-950); min-height: 100vh; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--navy-900); }
.admin-top .brand-icon { width: 32px; height: 32px; border-radius: 8px; }
.admin-pill { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(155, 60, 255, 0.2); color: #d4b3ff; }
.admin-user { display: flex; align-items: center; gap: 12px; }
.admin-user form { margin: 0; }
.admin-name { display: none; color: var(--text-soft); font-size: 0.9rem; }
@media (min-width: 640px) { .admin-name { display: inline; } }
.admin-nav { display: flex; gap: 4px; padding: 8px 14px; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--navy-900); scrollbar-width: none; }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a { flex: 0 0 auto; padding: 8px 14px; border-radius: 10px; color: var(--text-soft); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.admin-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.admin-nav a.active { color: #fff; background: rgba(0, 212, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.35); }
.admin-main { max-width: 1240px; margin: 0 auto; padding: 22px 16px 60px; }
@media (min-width: 760px) { .admin-main { padding: 30px 28px 80px; } }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; }
.admin-head h1 { font-size: 1.5rem; margin: 0; }
.admin-head p { margin: 0; width: 100%; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--navy-900); }
.stat-label { font-size: 0.8rem; color: var(--text-mute); }
.stat-value { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; }
.stat-note { font-size: 0.76rem; color: var(--text-mute); }

.panel { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--navy-900); margin-bottom: 16px; }
.panel h2 { font-size: 1.05rem; margin-bottom: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.panel-head form { margin: 0; }
.panel-grid { display: grid; gap: 16px; }
.panel-grid .panel { margin-bottom: 0; }
.panel-grid + .panel, .panel-grid + section { margin-top: 16px; }
@media (min-width: 900px) { .panel-grid { grid-template-columns: 1.4fr 1fr; } }

.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.kv li:last-child { border-bottom: 0; }
.kv span { color: var(--text-mute); }
.kv strong { text-align: right; font-weight: 500; word-break: break-word; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bar-fill { width: 100%; max-width: 30px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--cyan), var(--purple)); min-height: 2px; opacity: 0.9; }
.bar-fill.h-0 { background: var(--line); }
.bar-n { font-size: 0.7rem; color: var(--text-soft); min-height: 1em; }
.bar-d { font-size: 0.7rem; color: var(--text-mute); }
.h-0 { height: 2px; } .h-4 { height: 4%; } .h-8 { height: 8%; } .h-12 { height: 12%; } .h-16 { height: 16%; } .h-20 { height: 20%; } .h-24 { height: 24%; } .h-28 { height: 28%; } .h-32 { height: 32%; } .h-36 { height: 36%; } .h-40 { height: 40%; } .h-44 { height: 44%; } .h-48 { height: 48%; } .h-52 { height: 52%; } .h-56 { height: 56%; } .h-60 { height: 60%; } .h-64 { height: 64%; } .h-68 { height: 68%; } .h-72 { height: 72%; } .h-76 { height: 76%; } .h-80 { height: 80%; } .h-84 { height: 84%; } .h-88 { height: 88%; } .h-92 { height: 92%; } .h-96 { height: 96%; } .h-100 { height: 100%; }

.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--navy-900); margin-bottom: 14px; }
.filters .grow { grid-column: 1 / -1; }
.filters .filter-actions { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-end; }
@media (min-width: 1000px) { .filters { grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto; } .filters .grow, .filters .filter-actions { grid-column: auto; } }

.bulkbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 4px 10px; font-size: 0.9rem; color: var(--text-mute); }
.table-wrap { border-radius: 14px; border: 1px solid var(--line); background: var(--navy-900); overflow: hidden; }
.panel .table-wrap { border: 0; border-radius: 0; background: none; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; font-weight: 600; font-size: 0.76rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-mute); padding: 12px 14px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; word-break: break-word; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.table a { color: var(--text); text-decoration: none; font-weight: 500; }
.table a:hover { color: var(--cyan); }
.col-check { width: 40px; }
.col-check input { width: 18px; height: 18px; accent-color: var(--cyan); }
/* Stack table rows as cards on phones */
@media (max-width: 720px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { position: relative; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table td { padding: 3px 0; border: 0; }
  .table td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 96px; color: var(--text-mute); font-size: 0.78rem; }
  .table td.col-check { position: absolute; right: 12px; top: 12px; width: auto; }
}

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; text-transform: capitalize; white-space: nowrap; background: rgba(255, 255, 255, 0.07); color: var(--text-soft); }
.badge-verified, .badge-inv-clicked, .badge-camp-done { background: rgba(47, 214, 160, 0.15); color: #8ff0cd; }
.badge-pending, .badge-inv-queued, .badge-camp-queued, .badge-camp-sending { background: rgba(255, 181, 71, 0.15); color: #ffd699; }
.badge-unsubscribed, .badge-inv-failed, .badge-camp-cancelled { background: rgba(255, 92, 122, 0.14); color: #ffb3c1; }
.badge-inv-sent { background: rgba(0, 212, 255, 0.14); color: #94ecff; }

.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions form { margin: 0; }
.danger-zone { margin-top: 18px; padding: 14px; border-radius: 12px; border: 1px solid rgba(255, 92, 122, 0.35); background: rgba(255, 92, 122, 0.05); }
.danger-zone p { font-size: 0.9rem; color: var(--text-soft); }
.inline { display: flex; gap: 10px; flex-wrap: wrap; }
.inline input { max-width: 200px; min-height: 38px; padding: 8px 12px; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(80% 60% at 50% 0%, #15104a, var(--navy-950) 70%); }
.login-card { width: 100%; max-width: 400px; padding: 30px 24px; border-radius: 20px; border: 1px solid var(--line-strong); background: rgba(11, 18, 54, 0.8); box-shadow: var(--shadow); }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 22px; }
.login-brand img { border-radius: 14px; }
