/* ============================================================================
   CEO KIDS · ESS Brain Summer Camp 2026 — exclusive.school
   Brand stylesheet (landing page + admin console)
   ----------------------------------------------------------------------------
   All brand colors live in the :root tokens below — retheme in one place.
   ============================================================================ */

:root {
  /* Brand palette — Exclusive School System */
  --navy-950: #0A1428;
  --navy-900: #0E1D3A;
  --navy-800: #14294F;
  --navy-700: #1B3C73;   /* primary */
  --navy-600: #24509B;
  --ink:      #17233C;
  --muted:    #5C6880;

  --gold-700: #A87A10;
  --gold:     #C9971C;   /* brand gold */
  --gold-400: #F0B429;
  --gold-100: #F9ECC8;

  --cream:    #FBF7EE;   /* page background */
  --sand:     #F3ECDC;   /* alternate section */
  --paper:    #FFFFFF;
  --line:     #E7DEC9;

  --teal:     #0E7C6B;   /* success · FREE for members */
  --teal-050: #E4F3F0;
  --coral:    #E2560E;   /* camp energy accent */
  --coral-050:#FDEDE3;
  --red:      #C0392B;   /* errors · delete */
  --red-050:  #FBEAE7;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(14, 29, 58, .06), 0 4px 14px rgba(14, 29, 58, .07);
  --shadow-2: 0 2px 6px rgba(14, 29, 58, .08), 0 14px 38px rgba(14, 29, 58, .13);
  --container: 1120px;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-600); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; color: var(--navy-900); font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; border-radius: 4px; }

/* Urdu text — Nastaliq needs extra breathing room */
.ur {
  font-family: var(--font-urdu);
  direction: rtl;
  unicode-bidi: isolate;
  line-height: 2;
  font-size: 1.02em;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* Keep anchor jumps & focus scrolls clear of the sticky header */
section[id], .field, .check-card, .radio-cards { scroll-margin-top: 96px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-700);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }

/* ── Buttons & chips ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 700 16px/1 var(--font-body);
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold-400); color: var(--navy-950); box-shadow: 0 6px 18px rgba(240, 180, 41, .35); }
.btn-gold:hover { background: #F6C244; box-shadow: 0 8px 24px rgba(240, 180, 41, .45); }
.btn-navy { background: var(--navy-700); color: #fff; }
.btn-navy:hover { background: var(--navy-600); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-400); }
.btn-outline { background: var(--paper); color: var(--navy-700); border-color: var(--navy-700); }
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #A93226; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  color: #EAF0FA; border-radius: 999px; padding: 8px 15px;
  font-size: 14px; font-weight: 600;
}
.chip svg { width: 16px; height: 16px; stroke: var(--gold-400); }

/* ── Announcement bar ────────────────────────────────────────────────── */
.announce {
  background: linear-gradient(90deg, var(--gold-700), var(--gold) 40%, var(--gold-400));
  color: var(--navy-950); text-align: center; font-weight: 700; font-size: 14px;
  padding: 9px 16px;
}
.announce .ur { font-size: 15px; line-height: 1.6; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 29, 58, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(240, 180, 41, .25);
}
.site-header .container { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-crest { width: 42px; height: 42px; flex: none; }
.brand-name { font: 800 15px/1.2 var(--font-body); color: #fff; letter-spacing: .08em; }
.brand-name small { display: block; font-weight: 600; font-size: 11px; letter-spacing: .22em; color: var(--gold-400); margin-top: 3px; }

/* Brand logo images (assets/img) — .logo-white renders the navy marks white
   for dark surfaces via filter */
.logo-white { filter: brightness(0) invert(1); }
.brand-mark { width: 46px; height: auto; flex: none; }
.brand-word { height: 27px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: #D7E0F0; text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--gold-400); }
.site-nav .btn { padding: 11px 20px; font-size: 14.5px; }
@media (max-width: 860px) { .site-nav a:not(.btn) { display: none; } }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #EAF0FA;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(240, 180, 41, .22), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(36, 80, 155, .55), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950) 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(240,180,41,.14) 1.2px, transparent 1.3px);
  background-size: 26px 26px;
  mask-image: linear-gradient(115deg, transparent 42%, #000 78%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 44px; align-items: center; padding-block: 74px 82px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(240, 180, 41, .12); border: 1px solid rgba(240, 180, 41, .45);
  color: var(--gold-400); border-radius: 999px; padding: 8px 16px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(44px, 6.4vw, 76px); color: #fff; font-weight: 700;
  margin: 22px 0 6px; letter-spacing: -.01em;
}
.hero h1 .accent { color: var(--gold-400); font-style: italic; }
.hero-ur {
  color: var(--gold-100); font-size: clamp(19px, 2.6vw, 26px); margin: 2px 0 14px;
}
.hero-sub { max-width: 560px; color: #C4D0E4; font-size: 18px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.hero-price {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(240,180,41,.4);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px; max-width: 640px;
}
.hero-price .amount { font: 700 30px/1 var(--font-display); color: var(--gold-400); }
.hero-price .amount small { font-size: 15px; font-family: var(--font-body); font-weight: 700; color: #C4D0E4; }
.hero-price .free-tag {
  background: var(--teal); color: #fff; font-weight: 800; font-size: 13px;
  padding: 7px 13px; border-radius: 999px; letter-spacing: .04em;
}
.hero-price .ur { color: #C4D0E4; font-size: 15px; flex-basis: 100%; margin: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Rotating crest badge */
.hero-side { display: grid; justify-items: center; gap: 26px; }
.orbit-badge { position: relative; width: min(300px, 62vw); aspect-ratio: 1; }
.orbit-badge .spin { position: absolute; inset: 0; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-badge .core {
  position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--navy-600), var(--navy-900) 72%);
  border: 1.5px solid rgba(240,180,41,.55);
  display: grid; place-items: center;
}
.hero-note {
  background: rgba(255,255,255,.05); border: 1px dashed rgba(240,180,41,.5);
  border-radius: var(--radius); padding: 14px 18px; font-size: 14px; color: #C4D0E4;
  max-width: 300px; text-align: center;
}
.hero-note strong { color: var(--gold-400); }
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 56px 64px; }
  .hero-side { display: none; }
}

/* Marquee strip */
.marquee { background: var(--gold-400); border-block: 3px solid var(--navy-950); overflow: hidden; }
.marquee-track {
  display: flex; gap: 44px; width: max-content; padding: 12px 0;
  animation: marquee 30s linear infinite;
  font: 800 14px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--navy-950);
  white-space: nowrap;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 44px; }
.marquee-track b { color: var(--coral); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .orbit-badge .spin { animation: none; }
}

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 78px 0; }
.section-alt { background: var(--sand); border-block: 1px solid var(--line); }
.section-dark { background: linear-gradient(155deg, var(--navy-900), var(--navy-950)); color: #D7E0F0; }
.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin-top: 12px; }
.section-dark .section-head h2 { color: #fff; }
.section-head .ur { color: var(--muted); font-size: 17px; }
.section-dark .section-head .ur { color: #A9B8D4; }

/* Track cards */
.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.track {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-1); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.track::after {
  content: attr(data-num); position: absolute; top: 6px; right: 16px;
  font: 700 64px/1 var(--font-display); color: var(--sand);
}
.track-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--navy-700); margin-bottom: 18px; position: relative; z-index: 1;
}
.track:nth-child(2) .track-icon { background: var(--teal); }
.track:nth-child(3) .track-icon { background: var(--coral); }
.track-icon svg { width: 26px; height: 26px; stroke: #fff; }
.track h3 { font-size: 22px; position: relative; z-index: 1; }
.track .ur { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.track ul { list-style: none; margin: 8px 0 0; padding: 0; }
.track li { padding: 7px 0 7px 28px; position: relative; font-size: 15.5px; border-top: 1px dashed var(--line); }
.track li:first-child { border-top: 0; }
.track li::before {
  content: ""; position: absolute; left: 2px; top: 14px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--gold-100); border: 1.5px solid var(--gold);
}
.track li::after {
  content: ""; position: absolute; left: 6px; top: 18px; width: 6px; height: 3.5px;
  border-left: 1.8px solid var(--gold-700); border-bottom: 1.8px solid var(--gold-700);
  transform: rotate(-45deg);
}
@media (max-width: 920px) { .tracks { grid-template-columns: 1fr; } }

/* Schedule table */
.sched-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px; align-items: start; }
.sched-table {
  width: 100%; border-collapse: collapse; background: var(--paper);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
}
.sched-table caption { caption-side: top; text-align: left; padding-bottom: 12px; font-weight: 700; color: var(--muted); font-size: 14px; }
.sched-table th, .sched-table td { padding: 15px 20px; text-align: left; }
.sched-table thead th {
  background: var(--navy-800); color: var(--gold-100); font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase;
}
.sched-table tbody tr { border-top: 1px solid var(--line); }
.sched-table tbody tr:nth-child(even) { background: #FDFBF5; }
.sched-table .time {
  white-space: nowrap; font-weight: 800; color: var(--navy-700);
  font-variant-numeric: tabular-nums; font-size: 15px;
}
.sched-table .break-row td { background: var(--gold-100); font-weight: 700; }
.sched-aside { display: grid; gap: 16px; }
.info-card {
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--gold);
  border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow-1);
}
.info-card h4 { font-family: var(--font-body); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.info-card p { margin: 0; font-weight: 700; font-size: 17px; }
.info-card .ur { font-weight: 400; color: var(--muted); font-size: 14.5px; }
@media (max-width: 920px) { .sched-wrap { grid-template-columns: 1fr; } }

/* Fees & requirements */
.fees-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 26px; }
.fee-card {
  position: relative; background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-1); overflow: hidden;
}
.fee-card.member { border-color: var(--teal); }
.fee-card .ribbon {
  position: absolute; top: 18px; right: -42px; transform: rotate(38deg);
  background: var(--teal); color: #fff; font: 800 11px/1 var(--font-body);
  letter-spacing: .12em; padding: 7px 48px;
}
.fee-card h3 { font-size: 20px; }
.fee-card .price { font: 700 44px/1 var(--font-display); color: var(--navy-700); margin: 12px 0 4px; }
.fee-card.member .price { color: var(--teal); }
.fee-card .price small { font: 700 15px/1 var(--font-body); color: var(--muted); }
.fee-card .ur { color: var(--muted); font-size: 15px; }
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.req-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--coral-050); border: 1.5px dashed var(--coral);
  border-radius: var(--radius); padding: 22px 24px;
}
.req-card .req-icon {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  background: var(--coral); display: grid; place-items: center;
}
.req-card .req-icon svg { width: 24px; height: 24px; stroke: #fff; }
.req-card h3 { font-size: 18px; margin-bottom: 4px; }
.req-card p { margin: 0; font-size: 14.5px; color: var(--muted); }
@media (max-width: 860px) { .fees-grid, .req-grid { grid-template-columns: 1fr; } }

/* ── Application form ────────────────────────────────────────────────── */
.apply-shell { max-width: 880px; margin: 0 auto; }
.form-card {
  background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--gold);
  border-radius: var(--radius); box-shadow: var(--shadow-2); padding: clamp(24px, 5vw, 52px);
}
.form-intro { text-align: center; margin-bottom: 34px; }
.form-intro h2 { font-size: clamp(28px, 4vw, 38px); }
.form-intro .ur { color: var(--muted); }

fieldset.fblock { border: 0; padding: 0; margin: 0 0 38px; }
.fblock-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
  padding-bottom: 12px; border-bottom: 2px solid var(--gold-100);
}
.fblock-num {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--navy-700); color: var(--gold-400);
  display: grid; place-items: center; font: 700 18px/1 var(--font-display);
}
.fblock-head legend, .fblock-head .fblock-title { font: 600 22px/1.2 var(--font-display); color: var(--navy-900); padding: 0; }
.fblock-head .ur { margin-right: auto; color: var(--muted); font-size: 15px; }

.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.frow + .frow { margin-top: 18px; }
.field.wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .frow { grid-template-columns: 1fr; } }

.field label.flabel {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-weight: 700; font-size: 15px; margin-bottom: 7px;
}
.field label.flabel .ur { font-weight: 400; color: var(--muted); font-size: 15px; line-height: 1.7; }
.req-star { color: var(--red); font-weight: 800; }
.fhint { font-size: 13px; color: var(--muted); margin-top: 6px; }

.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field input[type="number"], .field input[type="date"], .field select, .field textarea {
  width: 100%; font: 500 16px/1.4 var(--font-body); color: var(--ink);
  background: #FDFCF8; border: 1.5px solid #D8CFBA; border-radius: var(--radius-sm);
  padding: 13px 15px; transition: border-color .12s, box-shadow .12s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(36, 80, 155, .14);
  background: #fff;
}
.field.invalid input, .field.invalid select, .field.invalid textarea,
.field.invalid .phone-wrap { border-color: var(--red); }
.field.invalid .phone-wrap input { border-color: transparent; }
.ferror { display: none; font-size: 13.5px; color: var(--red); font-weight: 600; margin-top: 6px; }
.ferror .ur { font-size: 14px; }
.field.invalid .ferror { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Pakistani phone input */
.phone-wrap {
  display: flex; align-items: stretch; background: #FDFCF8;
  border: 1.5px solid #D8CFBA; border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color .12s, box-shadow .12s;
}
.phone-wrap:focus-within { border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(36, 80, 155, .14); background: #fff; }
.phone-prefix {
  display: flex; align-items: center; gap: 7px; padding: 0 13px;
  background: var(--sand); border-right: 1.5px solid #D8CFBA;
  font-weight: 800; font-size: 15px; color: var(--navy-800); white-space: nowrap;
}
.phone-prefix .flag { font-size: 17px; }
.phone-wrap input {
  flex: 1; min-width: 0; border: 0 !important; background: transparent !important;
  box-shadow: none !important; border-radius: 0 !important;
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
.phone-wrap input:focus { outline: none; }

/* Radio cards (membership) */
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .radio-cards { grid-template-columns: 1fr; } }
.radio-card { position: relative; display: block; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card .rc-body {
  display: block; border: 1.5px solid #D8CFBA; border-radius: var(--radius-sm);
  padding: 16px 18px 16px 48px; height: 100%;
  background: #FDFCF8; transition: all .12s; position: relative;
}
.radio-card .rc-body::before {
  content: ""; position: absolute; left: 16px; top: 20px; width: 20px; height: 20px;
  border: 2px solid #C9BFA8; border-radius: 50%; background: #fff;
}
.radio-card input:checked + .rc-body {
  border-color: var(--navy-700); background: #F4F7FD; box-shadow: 0 0 0 4px rgba(36, 80, 155, .12);
}
.radio-card input:checked + .rc-body::before { border-color: var(--navy-700); background: radial-gradient(var(--navy-700) 0 42%, #fff 46%); }
.radio-card input:focus-visible + .rc-body { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.rc-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 800; font-size: 15.5px; }
.rc-title .tag { flex: none; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.tag-free { background: var(--teal-050); color: var(--teal); }
.tag-fee { background: var(--gold-100); color: var(--gold-700); }
.rc-body .ur { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }

/* Confirmation checkbox cards */
.check-card { position: relative; display: block; cursor: pointer; margin-bottom: 14px; }
.check-card input { position: absolute; opacity: 0; }
.check-card .cc-body {
  display: grid; grid-template-columns: 30px 1fr; gap: 14px;
  border: 1.5px solid #D8CFBA; border-radius: var(--radius-sm);
  background: #FDFCF8; padding: 17px 18px; transition: all .12s;
}
.check-card .cc-box {
  width: 26px; height: 26px; border: 2px solid #C9BFA8; border-radius: 8px; background: #fff;
  display: grid; place-items: center; transition: all .12s; margin-top: 2px;
}
.check-card .cc-box svg { width: 15px; height: 15px; stroke: #fff; stroke-width: 3.4; opacity: 0; }
.check-card input:checked + .cc-body { border-color: var(--teal); background: var(--teal-050); }
.check-card input:checked + .cc-body .cc-box { background: var(--teal); border-color: var(--teal); }
.check-card input:checked + .cc-body .cc-box svg { opacity: 1; }
.check-card input:focus-visible + .cc-body { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.check-card.invalid .cc-body { border-color: var(--red); background: var(--red-050); }
.cc-en { display: block; font-weight: 700; font-size: 15.5px; }
.cc-en .req-star { margin-left: 2px; }
.cc-ur { display: block; color: var(--muted); font-size: 15px; margin-top: 3px; }

/* Fee summary + submit */
.fee-summary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--navy-900); color: #fff; border-radius: var(--radius-sm);
  padding: 18px 22px; margin: 6px 0 22px;
}
.fee-summary .fs-label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #A9B8D4; font-weight: 800; }
.fee-summary .fs-amount { font: 700 30px/1 var(--font-display); color: var(--gold-400); }
.fee-summary .fs-amount.free { color: #4FD1B5; }
.fee-summary .ur { color: #A9B8D4; font-size: 14px; }
.submit-row { display: grid; gap: 12px; }
.submit-row .btn { width: 100%; padding: 18px; font-size: 18px; }
.submit-note { text-align: center; font-size: 13.5px; color: var(--muted); margin: 0; }
.form-alert {
  display: none; background: var(--red-050); border: 1.5px solid var(--red); color: var(--red);
  border-radius: var(--radius-sm); padding: 14px 18px; font-weight: 700; font-size: 15px; margin-bottom: 20px;
}
.form-alert.show { display: block; }

/* Success panel */
.success-panel { text-align: center; padding: 30px 10px; }
.success-panel .ok-badge {
  width: 86px; height: 86px; margin: 0 auto 24px; border-radius: 50%;
  background: var(--teal); display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(14, 124, 107, .35);
}
.success-panel .ok-badge svg { width: 42px; height: 42px; stroke: #fff; stroke-width: 3; }
.success-panel h2 { font-size: 32px; }
.success-panel .ref { display: inline-block; background: var(--sand); border: 1px dashed var(--gold-700); border-radius: 8px; padding: 8px 16px; font-weight: 800; margin: 10px 0 18px; }
.success-panel p { max-width: 520px; margin: 0 auto 12px; color: var(--muted); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-950); color: #A9B8D4; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.site-footer h4 { color: var(--gold-400); font-family: var(--font-body); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #D7E0F0; text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-tagline { font-style: italic; font-family: var(--font-display); color: #D7E0F0; font-size: 17px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 13.5px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════════════
   ADMIN CONSOLE (backend.html)
   ════════════════════════════════════════════════════════════════════════ */
.admin-body { background: #EFEBE0; min-height: 100vh; display: flex; flex-direction: column; }

/* Login gate */
.gate {
  flex: 1; display: grid; place-items: center; padding: 40px 20px;
  background:
    radial-gradient(700px 420px at 80% -10%, rgba(240,180,41,.18), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950) 75%);
}
.gate-card {
  width: min(430px, 100%); background: var(--paper); border-radius: var(--radius);
  border-top: 6px solid var(--gold); box-shadow: var(--shadow-2); padding: 40px 36px;
  text-align: center;
}
.gate-card .lock-badge {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px;
  background: var(--navy-700); display: grid; place-items: center;
}
.gate-card .lock-badge svg { width: 30px; height: 30px; stroke: var(--gold-400); }
.gate-card h1 { font-size: 26px; margin-bottom: 4px; }
.gate-card .ur { color: var(--muted); font-size: 15px; }
.gate-card form { margin-top: 22px; display: grid; gap: 14px; text-align: left; }
.gate-card input[type="password"] {
  width: 100%; font: 500 17px/1 var(--font-body); padding: 14px 16px;
  border: 1.5px solid #D8CFBA; border-radius: var(--radius-sm); background: #FDFCF8;
}
.gate-card input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(36,80,155,.14); }
.gate-error { display: none; color: var(--red); background: var(--red-050); border-radius: 8px; padding: 10px 14px; font-weight: 700; font-size: 14px; }
.gate-error.show { display: block; }
.gate-note { font-size: 13px; color: var(--muted); margin: 16px 0 0; }

/* Admin top bar */
.admin-top { background: var(--navy-900); color: #fff; position: sticky; top: 0; z-index: 40; box-shadow: var(--shadow-1); }
.admin-top .container { display: flex; align-items: center; gap: 16px; height: 66px; }
.admin-top .brand { margin-right: auto; }
.mode-pill {
  font-size: 12px; font-weight: 800; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px;
  background: rgba(240,180,41,.16); color: var(--gold-400); border: 1px solid rgba(240,180,41,.5);
  white-space: nowrap;
}
.mode-pill.live { background: rgba(79,209,181,.14); color: #4FD1B5; border-color: rgba(79,209,181,.5); }

.demo-banner {
  background: var(--gold-100); border-bottom: 1px solid var(--gold);
  color: var(--gold-700); font-weight: 600; font-size: 14px; padding: 10px 0;
}
.demo-banner .container { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }

/* Stats */
.admin-main { flex: 1; padding: 30px 0 60px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 24px; }
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; box-shadow: var(--shadow-1);
}
.stat .s-label { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat .s-value { font: 700 30px/1.1 var(--font-display); color: var(--navy-800); margin-top: 6px; }
.stat .s-value small { font-size: 15px; }
.stat.teal .s-value { color: var(--teal); }
.stat.gold .s-value { color: var(--gold-700); }
@media (max-width: 980px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--muted); }
.search-box input {
  width: 100%; font: 500 15px/1 var(--font-body); padding: 12px 14px 12px 42px;
  border: 1.5px solid #D8CFBA; border-radius: 999px; background: var(--paper);
}
.search-box input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(36,80,155,.12); }

/* Leads table */
.table-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; }
.table-scroll { overflow-x: auto; }
.leads-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 980px; }
.leads-table thead th {
  background: var(--navy-800); color: var(--gold-100); text-align: left;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  padding: 13px 14px; white-space: nowrap; position: sticky; top: 0;
}
.leads-table tbody td { padding: 13px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.leads-table tbody tr.lead-row:hover { background: #FBF8EF; }
.leads-table .num { color: var(--muted); font-variant-numeric: tabular-nums; }
.leads-table .lead-name { font-weight: 700; color: var(--navy-800); }
.leads-table .sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.leads-table td.phone { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-member { background: var(--teal-050); color: var(--teal); }
.pill-standard { background: var(--gold-100); color: var(--gold-700); }
.pill-yes { background: var(--teal-050); color: var(--teal); }
.pill-no { background: var(--red-050); color: var(--red); }
.row-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; border: 1.5px solid var(--line);
  background: #fff; cursor: pointer; display: grid; place-items: center; transition: all .1s;
}
.icon-btn svg { width: 16px; height: 16px; stroke: var(--muted); }
.icon-btn:hover { border-color: var(--navy-600); }
.icon-btn:hover svg { stroke: var(--navy-600); }
.icon-btn.danger:hover { border-color: var(--red); background: var(--red-050); }
.icon-btn.danger:hover svg { stroke: var(--red); }
.leads-table .detail-row td { background: #FCFAF3; border-top: 1px dashed var(--line); padding: 18px 22px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 26px; }
.detail-grid .d-item { font-size: 14px; }
.detail-grid .d-label { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.leads-table input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--navy-700); cursor: pointer; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state h3 { color: var(--navy-800); }
.table-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 18px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); flex-wrap: wrap; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10, 20, 40, .55); backdrop-filter: blur(3px);
  display: none; place-items: center; z-index: 100; padding: 20px;
}
.modal-overlay.show { display: grid; }
.modal {
  width: min(440px, 100%); background: var(--paper); border-radius: var(--radius);
  border-top: 6px solid var(--red); box-shadow: var(--shadow-2); padding: 30px 28px;
}
.modal h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.modal h2 svg { width: 24px; height: 24px; stroke: var(--red); flex: none; }
.modal p { font-size: 14.5px; color: var(--muted); }
.modal .ur { font-size: 14.5px; }
.modal input[type="password"] {
  width: 100%; font: 500 16px/1 var(--font-body); padding: 13px 15px; margin: 6px 0 4px;
  border: 1.5px solid #D8CFBA; border-radius: var(--radius-sm); background: #FDFCF8;
}
.modal input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(192,57,43,.12); }
.modal-error { display: none; color: var(--red); font-weight: 700; font-size: 13.5px; margin: 6px 0 0; }
.modal-error.show { display: block; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* Toast */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px);
  background: var(--navy-900); color: #fff; font-weight: 700; font-size: 15px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid rgba(240,180,41,.5);
  box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 120;
  max-width: min(92vw, 560px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: rgba(79,209,181,.6); }
.toast.err { background: var(--red); border-color: transparent; }

.spinner {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.hidden { display: none !important; }
