/* KudEgOwo — School Safety Research Platform
   Font: Manrope | Design: Lottielab-inspired, monochrome + #0c8c5e */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --green:       #0c8c5e;
  --green-mid:   #0a7a52;
  --green-light: rgba(12,140,94,0.08);
  --green-glow:  rgba(12,140,94,0.15);
  --ink:         #08090a;
  --navy:        #0d0f1a;
  --navy-card:   #13162a;
  --white:       #ffffff;
  --mist:        #f5f5f5;
  --cloud:       #e2e2e2;
  --muted:       #6b7280;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.12);
  --r:    6px;
  --r-lg: 14px;
  --r-xl: 20px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: var(--font); }

/* ═══════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cloud);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; gap: 0;
  padding: 0 28px; height: 60px;
}
.nav-brand {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; flex-shrink: 0;
  margin-right: auto;
}
.nav-brand:hover { text-decoration: none; }
.nav-logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-mark img { width: 100%; height: 100%; border-radius: 8px; object-fit: cover; }
.nav-logo-initials {
  font-size: 12px; font-weight: 900; color: var(--green);
  letter-spacing: -0.5px;
}
.nav-name { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; }
.nav-badge {
  font-size: 9px; font-weight: 700; color: var(--green);
  background: var(--green-light);
  border: 1px solid rgba(12,140,94,0.2);
  border-radius: 4px; padding: 2px 6px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.nav-links {
  display: flex; align-items: center; gap: 6px; margin-right: 20px;
}
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 6px 12px; border-radius: var(--r);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); background: var(--mist); }
.btn-nav {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: var(--white);
  font-size: 13.5px; font-weight: 700;
  padding: 8px 18px; border-radius: var(--r);
  border: none; cursor: pointer;
  transition: opacity 0.15s; text-decoration: none;
  white-space: nowrap;
}
.btn-nav:hover { opacity: 0.85; text-decoration: none; color: var(--white); }
.btn-nav-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   HERO — white, centered, big type
═══════════════════════════════════════════════════ */
.hero {
  padding: 88px 28px 80px;
  text-align: center;
  background: var(--white);
  position: relative; overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--cloud);
}
.hero-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; color: var(--green);
  text-transform: uppercase; letter-spacing: 0.8px;
  background: var(--green-light);
  border: 1px solid rgba(12,140,94,0.2);
  border-radius: 99px; padding: 5px 14px;
  margin-bottom: 32px;
}
.hero-label-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.7)} }
.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 0;
  max-width: 820px; margin: 0 auto 8px;
}
.hero h1 .accent { color: var(--green); }
.hero-sub {
  font-size: 18px; font-weight: 400; color: var(--muted);
  line-height: 1.65; max-width: 520px;
  margin: 20px auto 36px; letter-spacing: -0.1px;
}
.hero-actions {
  display: flex; gap: 12px; justify-content: center;
  align-items: center; flex-wrap: wrap; margin-bottom: 64px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--white);
  font-size: 15px; font-weight: 700; letter-spacing: -0.2px;
  padding: 13px 26px; border-radius: var(--r);
  border: none; cursor: pointer; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 0 rgba(0,0,0,0.15);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.18); text-decoration: none; color: var(--white); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink);
  font-size: 15px; font-weight: 600;
  padding: 13px 22px; border-radius: var(--r);
  border: 1.5px solid var(--cloud);
  cursor: pointer; text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.btn-ghost:hover { border-color: var(--ink); background: var(--mist); text-decoration: none; color: var(--ink); }
.btn-arrow {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Trust bar */
.hero-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
  font-size: 13px; font-weight: 500; color: var(--muted);
}
.trust-avatars {
  display: flex;
}
.trust-av {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--white);
  margin-left: -8px; background: var(--mist);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: var(--muted);
  overflow: hidden;
}
.trust-av:first-child { margin-left: 0; }
.trust-av-1 { background: #c8f5e4; color: var(--green-mid); }
.trust-av-2 { background: #fde8e4; color: #c0392b; }
.trust-av-3 { background: #e8edff; color: #5b6fcc; }
.trust-av-4 { background: #fff5e0; color: #c47a1e; }

/* Hero visual — dark card strip */
.hero-visual {
  margin-top: 64px;
  background: var(--navy);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 48px 40px 0;
  position: relative;
  overflow: hidden;
}
.hero-visual::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(12,140,94,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-visual-label {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 24px; text-align: left;
}
.hero-cards {
  display: grid; grid-template-columns: 1.4fr 1fr 0.85fr;
  gap: 12px; position: relative;
}
.hcard {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px 12px 0 0;
  padding: 20px;
  min-height: 200px;
}
.hcard-label {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.3);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px;
}
.hcard-title {
  font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.9);
  line-height: 1.4; margin-bottom: 10px;
}
.hcard-body { font-size: 12.5px; color: rgba(255,255,255,0.4); line-height: 1.6; }

/* Stat chips inside hero card */
.hcard-stat {
  margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap;
}
.hstat {
  background: rgba(12,140,94,0.15); border: 1px solid rgba(12,140,94,0.25);
  border-radius: 6px; padding: 6px 10px;
  font-size: 11px; font-weight: 700; color: var(--green);
}

/* Role pill row */
.hcard-roles { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.hcard-role {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; padding: 8px 10px;
}
.hcard-role-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.hcard-role-name { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,0.65); }
.hcard-role-count { font-size: 10.5px; color: rgba(255,255,255,0.25); margin-left: auto; }

/* Chat preview */
.hcard-chat { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.hchat-bubble {
  padding: 8px 11px; border-radius: 10px;
  font-size: 11px; line-height: 1.5;
}
.hchat-ai { background: rgba(12,140,94,0.15); color: rgba(255,255,255,0.7); align-self: flex-start; border-radius: 0 10px 10px 10px; }
.hchat-user { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.5); align-self: flex-end; border-radius: 10px 0 10px 10px; }

/* ═══════════════════════════════════════════════════
   STATS BAND
═══════════════════════════════════════════════════ */
.stats-band {
  background: var(--mist); border-bottom: 1px solid var(--cloud);
  padding: 36px 28px;
}
.stats-band-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.stat-item { text-align: center; flex: 1; min-width: 120px; }
.stat-num {
  font-size: 36px; font-weight: 900; color: var(--ink);
  letter-spacing: -1.5px; line-height: 1;
}
.stat-num .green { color: var(--green); }
.stat-lbl { font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.stat-div { width: 1px; height: 40px; background: var(--cloud); }

/* ═══════════════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════════════ */
.section { padding: 80px 28px; }
.section-inner { max-width: 1160px; margin: 0 auto; }

.section-header { margin-bottom: 52px; }
.section-header.center { text-align: center; }
.eyebrow {
  font-size: 11px; font-weight: 800; color: var(--green);
  text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 900;
  color: var(--ink); letter-spacing: -1.5px; line-height: 1.1;
}
.section-body {
  font-size: 17px; font-weight: 400; color: var(--muted);
  line-height: 1.65; margin-top: 14px; max-width: 540px;
  letter-spacing: -0.1px;
}
.section-header.center .section-body { margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════════════
   ROLE GRID — 4 cards like Lottielab feature grid
═══════════════════════════════════════════════════ */
.role-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.role-card {
  background: var(--white);
  border: 1.5px solid var(--cloud);
  border-radius: var(--r-lg);
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none; display: block; color: inherit;
  position: relative; overflow: hidden;
}
.role-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--green-light);
  opacity: 0; transition: opacity 0.2s;
}
.role-card:hover { border-color: var(--green); box-shadow: 0 8px 24px rgba(12,140,94,0.1); transform: translateY(-3px); text-decoration: none; }
.role-card:hover::before { opacity: 1; }
.role-card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--ink); display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px;
  color: var(--green); position: relative;
}
.role-card-title { font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.2px; }
.role-card-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }
.role-card-arrow {
  margin-top: 20px; font-size: 13px; font-weight: 700;
  color: var(--green); display: flex; align-items: center; gap: 5px;
  opacity: 0; transition: opacity 0.2s;
}
.role-card:hover .role-card-arrow { opacity: 1; }

/* ═══════════════════════════════════════════════════
   DARK FEATURE SECTION
═══════════════════════════════════════════════════ */
.section-dark { background: var(--navy); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-body { color: rgba(255,255,255,0.5); }
.section-dark .eyebrow { color: var(--green); }

.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.feat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg); padding: 28px;
  transition: background 0.2s, border-color 0.2s;
}
.feat-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(12,140,94,0.3); }
.feat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(12,140,94,0.15); border: 1px solid rgba(12,140,94,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--green); margin-bottom: 18px;
}
.feat-title { font-size: 15px; font-weight: 800; color: var(--white); margin-bottom: 8px; letter-spacing: -0.2px; }
.feat-body { font-size: 13.5px; color: rgba(255,255,255,0.45); line-height: 1.65; }

/* ═══════════════════════════════════════════════════
   MASONRY / BENTO GRID — like Lottielab templates grid
═══════════════════════════════════════════════════ */
.bento { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.bento-card {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--cloud); position: relative;
  min-height: 200px; display: flex; flex-direction: column;
}
.bento-card.tall { grid-row: span 2; }
.bento-card.wide { grid-column: span 2; }
.bento-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.bento-tag {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--green);
  background: var(--green-light); border-radius: 4px;
  padding: 3px 8px; display: inline-block; margin-bottom: 10px; width: fit-content;
}
.bento-title { font-size: 18px; font-weight: 900; color: var(--ink); letter-spacing: -0.5px; line-height: 1.2; }
.bento-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 8px; }

/* Dark bento card */
.bento-dark { background: var(--ink); border-color: var(--ink); }
.bento-dark .bento-title { color: var(--white); }
.bento-dark .bento-desc { color: rgba(255,255,255,0.45); }

/* Green bento card */
.bento-green { background: var(--green); border-color: var(--green); }
.bento-green .bento-title { color: var(--white); }
.bento-green .bento-desc { color: rgba(255,255,255,0.7); }
.bento-green .bento-tag { background: rgba(255,255,255,0.2); color: var(--white); }

/* Score visual */
.score-ring {
  width: 80px; height: 80px; margin: 16px 0;
  border-radius: 50%; border: 6px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: inset 0 0 0 6px rgba(12,140,94,0.4);
}
.score-num { font-size: 22px; font-weight: 900; color: var(--white); }

/* ═══════════════════════════════════════════════════
   CTA BAND
═══════════════════════════════════════════════════ */
.cta-band {
  background: var(--ink); padding: 72px 28px;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, 48px); font-weight: 900;
  color: var(--white); letter-spacing: -1.5px; line-height: 1.1;
  margin-bottom: 14px;
}
.cta-band p { font-size: 17px; color: rgba(255,255,255,0.5); margin-bottom: 36px; }
.cta-band .btn-primary { background: var(--green); font-size: 16px; padding: 15px 32px; }
.cta-band .btn-primary:hover { background: var(--green-mid); }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.footer {
  background: var(--navy); padding: 40px 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-name { font-size: 14px; font-weight: 800; color: var(--white); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.35); transition: color 0.15s; }
.footer-links a:hover { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.2); }

/* ═══════════════════════════════════════════════════
   REGISTRATION FLOW
═══════════════════════════════════════════════════ */
body.page-reg {
  background: var(--mist); min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 16px;
}
.reg-wrap {
  background: var(--white); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: 44px 44px;
  width: 100%; max-width: 520px;
}
.reg-header { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; }
.reg-logo-wrap { display: flex; align-items: center; gap: 9px; }
.reg-name { font-size: 16px; font-weight: 900; color: var(--ink); letter-spacing: -0.3px; }
.reg-badge { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--green); background: var(--green-light); border-radius: 4px; padding: 2px 6px; }

.reg-progress { display: flex; gap: 6px; margin-bottom: 32px; }
.reg-step-bar { flex: 1; height: 3px; border-radius: 99px; background: var(--cloud); transition: background 0.3s; }
.reg-step-bar.active { background: var(--ink); }
.reg-step-bar.done  { background: var(--green); }

.reg-title { font-size: 24px; font-weight: 900; color: var(--ink); letter-spacing: -0.7px; margin-bottom: 6px; }
.reg-sub   { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 28px; }

/* Form fields */
.field { margin-bottom: 18px; }
.field-label {
  display: block; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: #888; margin-bottom: 7px;
}
.field-input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--cloud); border-radius: var(--r);
  font-size: 14.5px; font-family: var(--font); color: var(--ink);
  background: var(--white); outline: none;
  transition: border-color 0.15s;
}
.field-input:focus { border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Role picker */
.role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.role-opt {
  border: 1.5px solid var(--cloud); border-radius: var(--r);
  padding: 13px 14px; cursor: pointer;
  display: flex; align-items: flex-start; gap: 10px;
  transition: border-color 0.15s, background 0.15s;
}
.role-opt:hover { border-color: var(--ink); }
.role-opt.selected { border-color: var(--green); background: var(--green-light); }
.role-opt input[type=radio] { display: none; }
.role-opt-icon { color: var(--green); flex-shrink: 0; margin-top: 1px; }
.role-opt-name { font-size: 13px; font-weight: 800; color: var(--ink); }
.role-opt-sub  { font-size: 11px; color: var(--muted); margin-top: 2px; }

.btn-submit {
  width: 100%; background: var(--ink); color: var(--white);
  border: none; border-radius: var(--r); padding: 14px;
  font-size: 15px; font-family: var(--font); font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: opacity 0.15s; letter-spacing: -0.2px;
}
.btn-submit:hover { opacity: 0.85; }
.btn-submit:disabled { opacity: 0.4; cursor: not-allowed; }

/* OTP grid */
.otp-grid { display: flex; gap: 8px; margin-bottom: 22px; }
.otp-grid input {
  flex: 1; text-align: center;
  font-size: 24px; font-weight: 900; font-family: var(--font);
  padding: 14px 8px; border: 1.5px solid var(--cloud);
  border-radius: var(--r); outline: none; color: var(--ink);
  transition: border-color 0.15s;
}
.otp-grid input:focus { border-color: var(--ink); }

/* Alert messages */
.alert-err { background: #fde8e4; border: 1px solid #f5c6c1; border-radius: var(--r); padding: 11px 15px; font-size: 13.5px; color: #b71c1c; margin-bottom: 18px; font-weight: 500; }
.alert-ok  { background: #eaf5ee; border: 1px solid #b8dfc6; border-radius: var(--r); padding: 11px 15px; font-size: 13.5px; color: #1a6b3a; margin-bottom: 18px; font-weight: 500; }
.alert-info { background: var(--mist); border: 1px solid var(--cloud); border-radius: var(--r); padding: 12px 16px; font-size: 13px; color: var(--muted); margin-bottom: 18px; line-height: 1.6; }

/* ═══════════════════════════════════════════════════
   CHAT / INTERVIEW
═══════════════════════════════════════════════════ */
body.page-chat {
  background: #f7f8fa; min-height: 100vh;
  display: flex; flex-direction: column;
}
.chat-nav {
  background: var(--white); border-bottom: 1px solid var(--cloud);
  padding: 0 20px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50; flex-shrink: 0;
}
.chat-nav-brand { display: flex; align-items: center; gap: 9px; }
.chat-nav-name { font-size: 15px; font-weight: 900; color: var(--ink); letter-spacing: -0.3px; }
.chat-nav-badge { font-size: 9px; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: 0.5px; background: var(--green-light); border-radius: 4px; padding: 2px 6px; }
.chat-nav-role { font-size: 12px; font-weight: 600; color: var(--muted); }

.chat-prog-bar { background: var(--white); border-bottom: 1px solid #eee; padding: 6px 20px 8px; flex-shrink: 0; }
.chat-prog-track { height: 3px; background: var(--cloud); border-radius: 99px; }
.chat-prog-fill { height: 100%; background: var(--green); border-radius: 99px; transition: width 0.5s ease; }
.chat-prog-label { display: flex; justify-content: space-between; font-size: 11px; color: #bbb; padding: 4px 0 2px; }

.chat-body {
  flex: 1; overflow-y: auto; padding: 28px 16px;
  display: flex; flex-direction: column; gap: 18px;
  max-width: 700px; width: 100%; margin: 0 auto;
}
.msg-row { display: flex; gap: 10px; align-items: flex-start; max-width: 88%; }
.msg-row.usr { flex-direction: row-reverse; margin-left: auto; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900;
}
.avatar.ai   { background: var(--ink); color: var(--green); }
.avatar.usr  { background: var(--green); color: var(--white); }
.bubble {
  background: var(--white); border: 1px solid var(--cloud);
  border-radius: 14px; padding: 12px 16px;
  font-size: 14.5px; line-height: 1.65; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.msg-row.usr .bubble { background: var(--ink); color: var(--white); border-color: var(--ink); }
.ai-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--green); margin-bottom: 5px; }
.typing { display: flex; gap: 4px; padding: 6px 0; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--cloud); animation: tdot 1.2s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes tdot { 0%,80%,100%{transform:scale(0.7);opacity:0.4} 40%{transform:scale(1.1);opacity:1} }
.choices { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 0; }
.choice-btn {
  background: var(--white); border: 1.5px solid var(--cloud);
  border-radius: 8px; padding: 8px 14px;
  font-size: 13.5px; font-weight: 600; font-family: var(--font);
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
  color: var(--ink);
}
.choice-btn:hover { border-color: var(--green); background: var(--green-light); }
.chat-input-wrap {
  background: var(--white); border-top: 1px solid var(--cloud);
  padding: 14px 16px; flex-shrink: 0;
}
.chat-input-inner { max-width: 700px; margin: 0 auto; display: flex; gap: 10px; align-items: flex-end; }
.chat-input-inner textarea {
  flex: 1; border: 1.5px solid var(--cloud); border-radius: var(--r);
  padding: 11px 14px; font-size: 14.5px; font-family: var(--font);
  resize: none; outline: none; max-height: 120px; line-height: 1.5;
  transition: border-color 0.15s;
}
.chat-input-inner textarea:focus { border-color: var(--ink); }
.send-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  border: none; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0; transition: opacity 0.15s;
}
.send-btn:hover { opacity: 0.8; }
.send-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════
   THANK YOU
═══════════════════════════════════════════════════ */
.ty-wrap { min-height: 100vh; background: var(--mist); display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.ty-card { background: var(--white); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 52px 44px; max-width: 540px; width: 100%; text-align: center; }
.ty-icon { width: 68px; height: 68px; background: var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 28px; color: var(--green); }
.ty-title { font-size: 30px; font-weight: 900; color: var(--ink); letter-spacing: -1px; margin-bottom: 12px; }
.ty-sub { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 32px; }
.ty-next { background: var(--mist); border-radius: var(--r-lg); padding: 20px; margin-bottom: 28px; text-align: left; }
.ty-next-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px; color: var(--green); margin-bottom: 12px; }
.ty-next-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; line-height: 1.5; }
.ty-share { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }

/* ═══════════════════════════════════════════════════
   ADMIN
═══════════════════════════════════════════════════ */
body.admin-body { background: #f7f8fa; min-height: 100vh; display: flex; }
.admin-sidebar {
  width: 220px; min-width: 220px; background: var(--navy);
  min-height: 100vh; display: flex; flex-direction: column;
  padding: 0; flex-shrink: 0;
}
.sb-logo { padding: 20px 18px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.sb-logo-name { font-size: 14px; font-weight: 900; color: var(--white); letter-spacing: -0.3px; }
.sb-logo-badge { font-size: 9px; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: 0.5px; background: rgba(12,140,94,0.15); border-radius: 4px; padding: 2px 5px; }
.sb-section { padding: 16px 14px 4px; font-size: 10px; font-weight: 800; color: rgba(255,255,255,0.2); text-transform: uppercase; letter-spacing: 1px; }
.sb-link {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; margin: 1px 8px; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.5); border-radius: var(--r);
  text-decoration: none; transition: all 0.15s;
}
.sb-link:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); text-decoration: none; }
.sb-link.active { background: rgba(12,140,94,0.18); color: var(--green); }
.sb-link svg { flex-shrink: 0; opacity: 0.6; }
.sb-link.active svg { opacity: 1; }
.admin-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.admin-top {
  background: var(--white); border-bottom: 1px solid var(--cloud);
  padding: 0 24px; height: 56px;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.admin-top-title { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; }
.admin-content { flex: 1; overflow-y: auto; padding: 24px; }

/* KPIs */
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--white); border: 1px solid var(--cloud); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.kpi-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 8px; }
.kpi-val { font-size: 32px; font-weight: 900; color: var(--ink); line-height: 1; letter-spacing: -1px; }
.kpi-val.green { color: var(--green); }
.kpi-sub { font-size: 12px; color: #bbb; margin-top: 6px; }

/* Table */
.tcard { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 22px; }
.tcard-head { padding: 16px 20px; border-bottom: 1px solid var(--mist); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.tcard-title { font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: -0.2px; }
.dtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtable th { padding: 10px 16px; text-align: left; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); background: var(--mist); border-bottom: 1px solid var(--cloud); white-space: nowrap; }
.dtable td { padding: 12px 16px; border-bottom: 1px solid var(--mist); vertical-align: middle; }
.dtable tbody tr:last-child td { border-bottom: none; }
.dtable tbody tr:hover td { background: #fafafa; }
.role-pill { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 10.5px; font-weight: 700; }

/* Charts */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.chart-card { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 20px; }
.chart-card h3 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 18px; }
.chart-card canvas { max-height: 220px; }

/* Search */
.s-input {
  padding: 8px 12px; border: 1.5px solid var(--cloud);
  border-radius: var(--r); font-size: 13px; font-family: var(--font);
  outline: none; transition: border-color 0.15s;
}
.s-input:focus { border-color: var(--ink); }

/* Admin buttons */
.a-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: var(--white);
  border: none; border-radius: var(--r);
  padding: 8px 16px; font-size: 13px; font-family: var(--font);
  font-weight: 700; cursor: pointer; text-decoration: none;
  transition: opacity 0.15s;
}
.a-btn:hover { opacity: 0.85; color: var(--white); text-decoration: none; }
.a-btn.outline { background: transparent; color: var(--ink); border: 1.5px solid var(--cloud); }
.a-btn.outline:hover { border-color: var(--ink); }

/* Page buttons */
.pg-btn { padding: 6px 11px; border: 1.5px solid var(--cloud); border-radius: var(--r); font-size: 12px; font-weight: 700; font-family: var(--font); color: var(--ink); background: var(--white); cursor: pointer; transition: all 0.15s; }
.pg-btn:hover:not(:disabled) { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pg-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pg-btn:disabled { opacity: 0.35; cursor: default; }

/* Settings */
.s-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--cloud); padding: 0 24px; background: var(--white); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.s-tab { padding: 14px 18px; font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.15s; display: flex; align-items: center; gap: 7px; margin-bottom: -1px; white-space: nowrap; }
.s-tab:hover { color: var(--ink); }
.s-tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.s-pane { display: none; padding: 28px; background: var(--white); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.s-pane.active { display: block; }
.s-card { background: var(--mist); border: 1px solid var(--cloud); border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px; }
.s-card-title { font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 4px; letter-spacing: -0.2px; }
.s-card-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; line-height: 1.5; }
.s-field { margin-bottom: 16px; }
.s-label { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #888; margin-bottom: 6px; }
.s-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.s-btn { background: var(--ink); color: var(--white); border: none; border-radius: var(--r); padding: 10px 22px; font-size: 13.5px; font-family: var(--font); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: opacity 0.15s; }
.s-btn:hover { opacity: 0.85; }

/* Mobile topbar */
.m-topbar { display: none; background: var(--navy); padding: 0 16px; height: 52px; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 200; flex-shrink: 0; }
.m-topbar-name { font-size: 14px; font-weight: 900; color: var(--white); }
.sb-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 290; display: none; }
.sb-overlay.open { display: block; }

/* Coming soon */
.cs-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: var(--white); }
.cs-inner { text-align: center; max-width: 480px; }
.cs-title { font-size: 40px; font-weight: 900; color: var(--ink); letter-spacing: -1.5px; margin: 20px 0 10px; }
.cs-sub { font-size: 16px; color: var(--muted); line-height: 1.65; margin-bottom: 32px; }

/* Alerts */
.err-msg { background: #fde8e4; border: 1px solid #f5c6c1; border-radius: var(--r); padding: 11px 15px; font-size: 13.5px; color: #b71c1c; margin-bottom: 18px; font-weight: 500; }
.ok-msg  { background: #eaf5ee; border: 1px solid #b8dfc6; border-radius: var(--r); padding: 11px 15px; font-size: 13.5px; color: #1a6b3a; margin-bottom: 18px; font-weight: 500; }

/* ═══════════════════════════════════════════════════
   LEGAL PAGES
═══════════════════════════════════════════════════ */
.legal-wrap { max-width: 720px; margin: 0 auto; padding: 64px 28px; }
.legal-wrap h1 { font-size: 36px; font-weight: 900; color: var(--ink); letter-spacing: -1.2px; margin-bottom: 6px; }
.legal-wrap h2 { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; margin: 32px 0 10px; }
.legal-wrap p, .legal-wrap li { font-size: 15px; color: #555; line-height: 1.8; }
.legal-wrap ul { padding-left: 20px; margin-top: 8px; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-cards { grid-template-columns: 1fr 1fr; }
  .hero-cards .hcard:last-child { display: none; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .role-grid { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-card.wide { grid-column: span 1; }
  .stats-band-inner { justify-content: center; }
  .stat-div { display: none; }
}
@media (max-width: 768px) {
  .admin-sidebar { position: fixed; left: -240px; top: 0; bottom: 0; z-index: 300; width: 220px; min-width: 220px; transition: left 0.25s; box-shadow: 4px 0 24px rgba(0,0,0,0.3); }
  .admin-sidebar.open { left: 0; }
  .m-topbar { display: flex !important; }
  .admin-top { display: none; }
  .admin-main { width: 100%; }
  .hero-visual { padding: 32px 20px 0; }
  .hero-cards { grid-template-columns: 1fr; }
  .hero-cards .hcard:not(:first-child) { display: none; }
  .s-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-inner { padding: 0 16px; }
  .hero { padding: 60px 20px 56px; }
  .hero h1 { letter-spacing: -1.5px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { gap: 10px; }
  .btn-primary, .btn-ghost { font-size: 14px; padding: 12px 20px; }
  .section { padding: 56px 20px; }
  .section-title { letter-spacing: -1px; }
  .role-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feat-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.tall { grid-row: span 1; }
  .reg-wrap { padding: 32px 24px; }
  .field-row { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 56px 20px; }
}
