/* ============================================================
   ADDH Platform – style.css
   Brand: African Diaspora Development Holdings
   Aesthetic: Pan-African Power — Dark luxury, gold accents,
              bold editorial typography, commanding presence
   Fonts: Playfair Display (display) + DM Sans (body)
   Palette: Onyx black, ADDH gold, warm white, emerald accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties ───────────────────────────────── */
:root {
  /* ADDH Brand Colors — pulled from addh.global */
  --gold:           #C9A84C;   /* Primary ADDH gold */
  --gold-light:     #E8C96A;
  --gold-dim:       #A08030;
  --gold-pale:      rgba(201,168,76,.12);

  --onyx:           #0A0A0A;   /* Near-black background */
  --onyx-2:         #111111;
  --onyx-3:         #181818;
  --onyx-4:         #222222;
  --onyx-5:         #2E2E2E;

  --white:          #FFFFFF;
  --cream:          #F5F0E8;   /* Warm off-white */
  --text-dim:       rgba(255,255,255,.6);
  --text-muted:     rgba(255,255,255,.35);

  --emerald:        #1A7A4A;   /* Success green */
  --emerald-light:  #22A362;
  --ruby:           #B22222;   /* Error red */
  --amber:          #D4960A;   /* Warning */

  /* Light surface (for forms/cards in dark theme) */
  --surface:        #161616;
  --surface-2:      #1E1E1E;
  --border:         rgba(201,168,76,.2);
  --border-strong:  rgba(201,168,76,.4);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --s1:  4px;   --s2:  8px;   --s3:  12px;  --s4:  16px;
  --s5:  24px;  --s6:  32px;  --s7:  48px;  --s8:  64px;
  --s9:  96px;  --s10: 128px;

  /* Radii */
  --r-sm: 4px;  --r-md: 8px;  --r-lg: 16px;
  --r-xl: 24px; --r-full: 9999px;

  /* Shadows */
  --shadow-gold: 0 0 40px rgba(201,168,76,.15);
  --shadow-dark: 0 8px 40px rgba(0,0,0,.6);
  --shadow-xl:   0 20px 80px rgba(0,0,0,.8);

  /* Layout */
  --container-max: 1200px;
  --sidebar-w: 260px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--white);
  background: var(--onyx);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Container ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--s5);
}

/* ── Bilingual label pattern ─────────────────────────────── */
.en {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72em;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: .03em;
  margin-top: 2px;
}

/* ── Gold divider line ───────────────────────────────────── */
.gold-line {
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: var(--s4) 0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
  border: 1px solid transparent;
  transition: all .25s ease;
  cursor: pointer;
  text-decoration: none !important;
  letter-spacing: .03em;
  gap: 3px;
  position: relative;
  overflow: hidden;
}

.btn small { font-size: .72em; opacity: .75; font-weight: 400; }

.btn-primary {
  background: var(--gold);
  color: var(--onyx);
  border-color: var(--gold);
  font-weight: 700;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .2s;
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--onyx); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { box-shadow: 0 4px 20px rgba(201,168,76,.4); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--onyx); }

.btn-ghost {
  background: rgba(255,255,255,.06);
  color: var(--white);
  border-color: rgba(255,255,255,.15);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }

.btn-danger { background: var(--ruby); color: #fff; border-color: var(--ruby); }
.btn-danger:hover { background: #8B0000; }

.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: .82rem; }
.btn-xs { padding: 4px 10px; font-size: .75rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.full-width { width: 100%; }

/* ── Form Elements ───────────────────────────────────────── */
.form-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .88rem;
  color: var(--gold);
  margin-bottom: var(--s2);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.5;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--white);
  background: var(--onyx-4);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-control::placeholder { color: rgba(255,255,255,.3); }
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}
.form-control.is-error { border-color: var(--ruby); }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
}

select.form-control option { background: var(--onyx-3); color: var(--white); }

textarea.form-control { resize: vertical; min-height: 130px; }

.form-group { margin-bottom: var(--s5); }

.field-error {
  display: block;
  color: #ff6b6b;
  font-size: .78rem;
  margin-top: var(--s1);
  min-height: 1.1em;
}

.char-count {
  display: block;
  text-align: right;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: .8em;
  text-transform: none;
  letter-spacing: 0;
}

/* Radio buttons */
.radio-fieldset { border: none; }
.radio-fieldset legend { width: 100%; }

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s2);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .2s;
  font-size: .9rem;
  background: var(--onyx-4);
  flex: 1;
  min-width: 140px;
  color: var(--white);
}

.radio-label:hover { border-color: var(--gold); background: var(--gold-pale); }
.radio-label input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }

.radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all .2s;
}

.radio-label input:checked + .radio-custom {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: inset 0 0 0 3px var(--onyx-4);
}

.radio-label:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-pale);
}

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: var(--s4) var(--s5);
  border-radius: var(--r-md);
  border-left: 4px solid transparent;
  font-size: .9rem;
  margin-bottom: var(--s5);
}

.alert-success { background: rgba(26,122,74,.15); border-color: var(--emerald-light); color: #6ee7a3; }
.alert-error   { background: rgba(178,34,34,.15); border-color: var(--ruby); color: #ff9999; }
.alert-warning { background: rgba(212,150,10,.15); border-color: var(--amber); color: #ffd166; }
.alert-info    { background: rgba(201,168,76,.08); border-color: var(--gold); color: var(--gold-light); }

/* ══════════════════════════════════════════════════════════
   SITE HEADER
   ══════════════════════════════════════════════════════════ */
.site-header {
  background: rgba(10,10,10,.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--s4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--s3);
  text-decoration: none !important;
  color: inherit;
}

.logo-emblem {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--onyx);
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(201,168,76,.3);
}

.logo-emblem.large {
  width: 60px; height: 60px;
  font-size: 1.6rem; border-radius: var(--r-md);
}

.logo-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .05em;
}

.logo-text span {
  font-size: .68rem;
  color: var(--text-dim);
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s5);
}

.site-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .88rem;
  color: var(--text-dim);
  text-decoration: none !important;
  transition: color .2s;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.site-nav a:not(.btn):hover { color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   SITE FOOTER
   ══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--onyx-2);
  border-top: 1px solid var(--border);
  padding: var(--s6) 0;
  margin-top: var(--s9);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s4);
}

.footer-brand { font-size: .85rem; color: var(--text-dim); }
.footer-brand strong { color: var(--gold); }

.footer-meta { display: flex; gap: var(--s5); font-size: .82rem; color: var(--text-muted); }
.footer-meta a { color: var(--text-muted); }
.footer-meta a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background: var(--onyx);
  overflow: hidden;
  padding: 100px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Geometric grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Radial gold glow */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(201,168,76,.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--s8);
  align-items: center;
}

/* Left column */
.hero-left { }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s5);
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
}

.hero-kicker::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.02;
  margin-bottom: var(--s5);
  letter-spacing: -.02em;
}

.hero-title .gold-word {
  color: var(--gold);
  font-style: italic;
}

.hero-title .block { display: block; }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 500px;
  margin-bottom: var(--s3);
  line-height: 1.7;
}

.hero-sub .en { color: var(--text-muted); margin-top: 4px; }

.hero-cta-row {
  display: flex;
  gap: var(--s3);
  align-items: center;
  margin-top: var(--s6);
  flex-wrap: wrap;
}

/* Right column — participants panel */
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-dark), var(--shadow-gold);
}

.panel-header {
  background: linear-gradient(135deg, var(--gold-dim) 0%, var(--gold) 100%);
  padding: var(--s4) var(--s5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--onyx);
}

.panel-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--onyx);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--onyx);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.6); }
}

.panel-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.pstat {
  padding: var(--s4) var(--s4);
  text-align: center;
  border-right: 1px solid var(--border);
}

.pstat:last-child { border-right: none; }

.pstat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.pstat-label {
  font-size: .65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.panel-list {
  padding: var(--s3);
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-list::-webkit-scrollbar { width: 4px; }
.panel-list::-webkit-scrollbar-track { background: transparent; }
.panel-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

.panel-item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 10px var(--s3);
  border-radius: var(--r-md);
  background: var(--onyx-3);
  transition: background .2s;
}

.panel-item:hover { background: var(--onyx-4); }

.panel-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--onyx-5));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  color: var(--gold-light);
  flex-shrink: 0;
}

.panel-info { flex: 1; overflow: hidden; }

.panel-name {
  font-weight: 600;
  font-size: .85rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-meta {
  font-size: .7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-ref {
  font-family: var(--font-body);
  font-size: .65rem;
  color: var(--gold-dim);
  font-weight: 600;
  letter-spacing: .04em;
  flex-shrink: 0;
}

.panel-empty {
  text-align: center;
  padding: var(--s7) var(--s5);
  color: var(--text-muted);
  font-size: .88rem;
}

.panel-empty .empty-icon { font-size: 2.5rem; margin-bottom: var(--s3); }

.panel-footer {
  padding: var(--s3) var(--s5);
  border-top: 1px solid var(--border);
  text-align: center;
}

.panel-cta {
  font-size: .78rem;
  color: var(--text-muted);
}

.panel-cta a { color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   FEATURES / WHY SECTION
   ══════════════════════════════════════════════════════════ */
.section { padding: var(--s8) 0; }

.section-kicker {
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: var(--s3);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: var(--s3);
}

.section-title .en { color: var(--text-dim); font-size: .55em; margin-top: 6px; }

.section-lead {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 540px;
  line-height: 1.7;
}

.features-section {
  background: var(--onyx-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s8);
  align-items: center;
}

.features-text { }

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.feature-card {
  background: var(--onyx-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s5);
  transition: border-color .25s, transform .25s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity .25s;
}

.feature-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: var(--s3);
  display: block;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--s2);
  line-height: 1.3;
}

.feature-card h3 small { display: block; font-size: .75em; color: var(--text-muted); font-family: var(--font-body); font-weight: 400; }

.feature-card p { font-size: .82rem; color: var(--text-dim); line-height: 1.6; }

/* Audience */
.audience-section { }

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s6);
}

.audience-tag {
  padding: 10px 22px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: all .2s;
  background: var(--gold-pale);
}

.audience-tag:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--onyx);
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--gold-dim) 0%, var(--gold) 50%, var(--gold-dim) 100%);
  padding: var(--s8) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cta-banner-inner { position: relative; z-index: 1; }

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--onyx);
  margin-bottom: var(--s3);
}

.cta-banner h2 .en { color: rgba(0,0,0,.5); }

.cta-banner p { color: rgba(0,0,0,.65); margin-bottom: var(--s6); font-size: 1rem; }

.cta-banner .btn-primary {
  background: var(--onyx);
  border-color: var(--onyx);
  color: var(--gold);
}

.cta-banner .btn-primary:hover {
  background: var(--onyx-5);
  border-color: var(--onyx-5);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}

/* ══════════════════════════════════════════════════════════
   REGISTRATION PAGE
   ══════════════════════════════════════════════════════════ */
.register-section { padding: var(--s8) 0 var(--s10); background: var(--onyx); }

.register-container { max-width: 780px; }

.page-header {
  margin-bottom: var(--s7);
  padding-bottom: var(--s6);
  border-bottom: 1px solid var(--border);
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 5px 14px;
  background: var(--gold-pale);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  font-size: .7rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: var(--s4);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: var(--s3);
  line-height: 1.1;
}

.page-header p { color: var(--text-dim); font-size: .95rem; }

/* Form sections */
.form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s6);
  margin-bottom: var(--s4);
  transition: border-color .2s;
}

.form-section:focus-within { border-color: var(--border-strong); }

.form-section-header {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
  margin-bottom: var(--s6);
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--border);
}

.section-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  opacity: .4;
}

.form-section-header h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  line-height: 1.3;
}

.form-section-header h2 .en { color: var(--text-muted); font-size: .72em; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--s5);
}

.full-width { grid-column: 1 / -1; }

/* Submit area */
.form-submit {
  padding: var(--s6) 0;
  text-align: center;
}

.btn-submit {
  min-width: 280px;
  padding: 18px 44px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.btn-text, .btn-spinner {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}

.spinner-svg {
  width: 22px; height: 22px;
  animation: spin .9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.submit-note {
  margin-top: var(--s4);
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   SUCCESS PAGE
   ══════════════════════════════════════════════════════════ */
.success-section {
  padding: var(--s9) 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--onyx);
}

.success-container { max-width: 620px; }

.success-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: var(--s8);
  text-align: center;
  box-shadow: var(--shadow-dark), var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.success-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}

.success-icon { margin: 0 auto var(--s6); width: 80px; }

.success-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: var(--s4);
}

.success-card h1 .en { color: var(--text-dim); }

.success-lead { color: var(--text-dim); margin-bottom: var(--s6); }

.ref-box {
  background: var(--onyx-3);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  padding: var(--s5);
  margin-bottom: var(--s6);
}

.ref-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--s2); }

.ref-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: .06em;
  margin-bottom: var(--s3);
}

.btn-copy {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px 18px;
  font-size: .8rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s;
}

.btn-copy:hover { background: var(--gold); color: var(--onyx); border-color: var(--gold); }

.success-info {
  background: rgba(201,168,76,.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--s4);
  text-align: left;
  margin-bottom: var(--s6);
}

.success-info p { font-size: .85rem; color: var(--text-dim); margin-bottom: var(--s2); line-height: 1.6; }
.success-info p:last-child { margin-bottom: 0; }

.success-actions {
  display: flex; gap: var(--s3); justify-content: center; flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════
   ADMIN LAYOUT
   ══════════════════════════════════════════════════════════ */
.admin-body {
  background: #0C0C0C;
  display: flex;
  min-height: 100vh;
  font-family: var(--font-body);
}

.admin-sidebar {
  width: var(--sidebar-w);
  background: var(--onyx-2);
  border-right: 1px solid var(--border);
  min-height: 100vh;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: transform .25s;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s5);
  border-bottom: 1px solid var(--border);
}

.sidebar-brand .logo-text strong { color: var(--gold); font-size: .95rem; }
.sidebar-brand .logo-text small  { color: var(--text-muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; }

.sidebar-nav { padding: var(--s4) var(--s3); flex: 1; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 10px var(--s4);
  border-radius: var(--r-md);
  color: var(--text-dim);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: all .2s;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .78rem;
}

.sidebar-link:hover { background: var(--gold-pale); color: var(--gold); }
.sidebar-link.active { background: var(--gold-pale); color: var(--gold); border-left: 2px solid var(--gold); }

.sidebar-icon { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-divider { border: none; border-top: 1px solid var(--border); margin: var(--s3) 0; }
.sidebar-logout:hover { background: rgba(178,34,34,.15); color: #ff8888; }

.admin-main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

.admin-topbar {
  background: var(--onyx-2);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--s6);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.sidebar-toggle { background: none; border: none; color: var(--text-dim); display: none; padding: var(--s2); }

.topbar-right { display: flex; align-items: center; gap: var(--s4); }
.admin-greeting { font-size: .82rem; color: var(--text-dim); }

.admin-content { flex: 1; padding: var(--s6); max-width: 1400px; width: 100%; }

.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--s6);
  gap: var(--s4);
  flex-wrap: wrap;
}

.admin-page-header h1 { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); margin-bottom: 4px; }
.admin-page-header h1 .en { font-size: .6em; color: var(--text-muted); }
.admin-page-header p { color: var(--text-muted); font-size: .85rem; }

.header-actions { display: flex; gap: var(--s3); }
.back-link { display: inline-block; font-size: .78rem; color: var(--text-muted); margin-bottom: var(--s2); }
.back-link:hover { color: var(--gold); }

/* Stats widgets */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: var(--s4); margin-bottom: var(--s6); }

.stat-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s5);
  display: flex;
  align-items: center;
  gap: var(--s4);
  transition: border-color .2s;
}
.stat-widget:hover { border-color: var(--border-strong); }

.stat-widget-icon { width: 46px; height: 46px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; background: var(--gold-pale); }

.stat-widget-num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 900; color: var(--gold); line-height: 1; }
.stat-widget-label { font-size: .75rem; color: var(--text-muted); margin-top: 4px; line-height: 1.4; text-transform: uppercase; letter-spacing: .05em; }

/* Charts grid */
.charts-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(340px,1fr)); gap: var(--s4); margin-bottom: var(--s6); }

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s5);
}

.chart-card h3 { font-size: .88rem; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--s5); padding-bottom: var(--s3); border-bottom: 1px solid var(--border); }

.bar-chart { display: flex; flex-direction: column; gap: var(--s3); }
.bar-row { display: flex; align-items: center; gap: var(--s3); }
.bar-label { font-size: .72rem; color: var(--text-dim); width: 130px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { flex: 1; height: 8px; background: var(--onyx-4); border-radius: var(--r-full); overflow: hidden; }
.bar-fill { height: 100%; background: var(--gold-dim); border-radius: var(--r-full); transition: width .6s ease; }
.bar-fill.accent { background: var(--gold); }
.bar-fill.alt { background: var(--emerald); }
.bar-val { font-family: var(--font-display); font-weight: 700; font-size: .78rem; color: var(--text-dim); width: 26px; text-align: right; }

.ratio-bars { display: flex; flex-direction: column; gap: var(--s4); }
.ratio-label { font-size: .78rem; color: var(--text-dim); margin-bottom: var(--s2); }
.ratio-track { height: 18px; background: var(--onyx-4); border-radius: var(--r-full); overflow: hidden; }
.ratio-fill { height: 100%; border-radius: var(--r-full); transition: width .8s ease; }
.ratio-fill.students     { background: linear-gradient(90deg, var(--gold-dim), var(--gold)); }
.ratio-fill.non-students { background: var(--onyx-5); }
.ratio-nums { display: flex; gap: var(--s5); margin-top: var(--s4); font-size: .82rem; color: var(--text-dim); }

/* Table cards */
.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--s6); }
.table-card-header { display: flex; align-items: center; justify-content: space-between; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--border); gap: var(--s4); }
.table-card-header h3 { font-size: .85rem; margin: 0; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }

.table-wrapper { overflow-x: auto; }

.data-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.data-table th { background: var(--onyx-3); font-size: .68rem; color: var(--gold-dim); text-transform: uppercase; letter-spacing: .08em; padding: 10px var(--s4); text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border); font-weight: 700; }
.data-table td { padding: 10px var(--s4); border-bottom: 1px solid rgba(201,168,76,.06); color: var(--text-dim); vertical-align: middle; }
.data-table tbody tr:hover { background: var(--onyx-3); }
.data-table tbody tr:last-child td { border-bottom: none; }

.ref-link { font-family: var(--font-display); font-weight: 700; font-size: .78rem; color: var(--gold); }
.table-actions { display: flex; gap: var(--s2); }

/* Status badges */
.status-badge { display: inline-block; padding: 3px 10px; border-radius: var(--r-full); font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.status-pending    { background: rgba(212,150,10,.15);  color: #ffd166; }
.status-approved   { background: rgba(26,122,74,.2);   color: #6ee7a3; }
.status-rejected   { background: rgba(178,34,34,.15);  color: #ff9999; }
.status-waitlisted { background: rgba(201,168,76,.12); color: var(--gold); }
.status-badge.status-lg { font-size: .82rem; padding: 6px 18px; }

.empty-state { text-align: center; padding: var(--s7) !important; color: var(--text-muted); font-style: italic; }

.table-loader { display: flex; align-items: center; justify-content: center; gap: var(--s3); padding: var(--s6); color: var(--text-muted); }

.spinner { width: 22px; height: 22px; border: 2px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }

/* Filters */
.filter-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s5); margin-bottom: var(--s4); }
.filter-row { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: flex-end; }
.filter-group { flex: 1; min-width: 160px; }
.filter-group.filter-actions { display: flex; gap: var(--s2); align-items: flex-end; padding-bottom: 1px; }

/* Pagination */
.pagination-wrapper { padding: var(--s4) var(--s5); border-top: 1px solid var(--border); display: flex; justify-content: center; }
.pagination { display: flex; gap: var(--s1); align-items: center; flex-wrap: wrap; }
.page-btn { min-width: 34px; height: 34px; padding: 0 var(--s2); border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--onyx-3); font-size: .8rem; color: var(--text-dim); cursor: pointer; transition: all .2s; font-weight: 600; }
.page-btn:hover, .page-btn.active { background: var(--gold); border-color: var(--gold); color: var(--onyx); }
.page-ellipsis { padding: 0 var(--s2); color: var(--text-muted); }

/* Profile */
.profile-grid { display: grid; grid-template-columns: 1fr 380px; gap: var(--s5); align-items: start; }
.ref-display { font-size: .82rem; color: var(--gold-dim); font-weight: 600; letter-spacing: .04em; }

.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s5); margin-bottom: var(--s4); }
.info-card h3 { font-size: .78rem; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--border); }
.info-grid { display: flex; flex-direction: column; gap: var(--s3); }
.info-item { display: flex; gap: var(--s4); }
.info-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; width: 140px; flex-shrink: 0; padding-top: 2px; font-weight: 600; }
.info-value { font-size: .88rem; color: var(--text-dim); }

.category-tag { display: inline-block; background: var(--gold-pale); border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 4px 12px; font-size: .75rem; color: var(--gold); font-weight: 600; margin-bottom: var(--s4); text-transform: uppercase; letter-spacing: .04em; }
.project-idea-text { font-size: .88rem; color: var(--text-dim); line-height: 1.7; white-space: pre-wrap; }
.meta-card { background: var(--onyx-3); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: var(--s5); }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s6); max-width: 440px; width: 100%; box-shadow: var(--shadow-xl); }
.modal h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); margin-bottom: var(--s3); }
.modal p { color: var(--text-dim); margin-bottom: var(--s2); font-size: .88rem; }
.modal-actions { display: flex; gap: var(--s3); margin-top: var(--s5); justify-content: flex-end; }

/* Admin login */
.admin-login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--s5); background: radial-gradient(ellipse at 60% 40%, rgba(201,168,76,.08) 0%, transparent 60%), var(--onyx); }

.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s8); width: 100%; max-width: 420px; box-shadow: var(--shadow-xl), var(--shadow-gold); }
.login-brand { text-align: center; margin-bottom: var(--s6); }
.login-brand .logo-emblem { margin: 0 auto var(--s4); }
.login-brand h1 { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); margin-bottom: var(--s2); }
.login-brand p { font-size: .82rem; color: var(--text-muted); }
.login-back { text-align: center; margin-top: var(--s5); font-size: .78rem; color: var(--text-muted); }
.login-back a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s7); }
  .hero-panel { max-width: 560px; }
  .features-layout { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 80px 0 60px; min-height: auto; }
  .hero-title { font-size: 2.4rem; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-body.sidebar-open .admin-sidebar { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .admin-content { padding: var(--s4); }
  .form-grid { grid-template-columns: 1fr; }
  .filter-row { flex-direction: column; }
  .filter-group { min-width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
  .admin-page-header { flex-direction: column; }
  .success-actions { flex-direction: column; }
  .success-card { padding: var(--s6); }
}

@media (max-width: 480px) {
  .radio-group { flex-direction: column; }
  .radio-label { min-width: unset; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .site-nav a:not(.btn) { display: none; }
  .hero-cta-row { flex-direction: column; align-items: flex-start; }
  .features-grid { grid-template-columns: 1fr; }
}
