/* =====================================================================
   GEMS Global Scholarship — style.css
   "Midnight Editorial" design system. Tokens can be overridden at runtime
   by index.php from the CMS `config` table (:root inline override).
   ===================================================================== */

:root {
  --bg: #190e26;            /* Deep Midnight Purple */
  --bg-2: #1f1330;          /* raised panel */
  --border: #2D1F47;        /* fine 1px container border */
  --gold: #f2ca50;          /* Champagne Gold (actions) */
  --gold-soft: #f6d97a;
  --cream: #E8D5B0;
  --white: #FFFFFF;
  --muted: #c3b9dd;
  --muted-soft: #a99ecb;
  --btn-ink: #0b0a0d;       /* near-black type on gold buttons */
  --line: rgba(255,255,255,0.08);
  --line-strong: var(--border);
  --card: rgba(255,255,255,0.035);
  --card-hi: rgba(255,255,255,0.06);
  --glass: rgba(255,255,255,0.04);
  --radius: 16px;
  --shadow: 0 30px 70px -34px rgba(0,0,0,0.75);
  --danger: #e5736f;
  --ok: #57c98b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--white);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,h4 { font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
:where(a, button, summary, input, select, textarea, .btn):focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px;
}
.wrap { width: min(1180px, 90vw); margin-inline: auto; position: relative; }
.gold { color: var(--gold); }

/* collaboration lockup (Denning × GEMS) */
.collab { display: inline-flex; align-items: center; }
.collab img { width: auto; display: block; }
.collab .x { color: var(--gold); font-weight: 600; opacity: .92; line-height: 0; }
.program-name { font-weight: 600; letter-spacing: 0.01em;
  color: var(--gold-soft); font-size: clamp(1.1rem, 2.1vw, 1.5rem); margin-top: 16px; }
/* hero brand name (replaces the logo in the hero) */
.hero-name { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px;
  font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  font-size: clamp(1.05rem, 2.1vw, 1.35rem); }
.hero-name::before { content: ""; width: 34px; height: 2px; background: var(--gold); display: inline-block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px;
  padding: 15px 30px; border-radius: 6px; font-weight: 700; font-family: inherit;
  font-size: 0.88rem; letter-spacing: 0.03em; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-gold { background: var(--gold); color: var(--btn-ink); }
.btn-gold:hover { transform: translateY(-2px); background: var(--gold-soft); }
.btn-gold:disabled { opacity: .65; cursor: default; transform: none; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--cream); }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,.06); border-color: var(--cream); }
.btn-danger { background: rgba(229,115,111,.12); border-color: rgba(229,115,111,.45); color: #f0a6a2; }
.btn-danger:hover { transform: translateY(-2px); background: rgba(229,115,111,.22); border-color: var(--danger); color: #fff; }

/* ---------- NAV ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 22px; }
.nav-collab { gap: 14px; }
.nav-collab img.dite { height: 96px; }   /* desktop logo footprint (+50%) */
.nav-collab img.gems { height: 26px; }
.nav-collab .x { font-size: 1.6rem; margin: 0 6px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 0.85rem; font-weight: 600; }
.nav-links a:not(.nav-cta) { color: var(--muted); transition: color .2s; }
.nav-links a:not(.nav-cta):hover { color: var(--white); }
.nav-cta { padding: 11px 22px; }
@media (max-width: 940px) { .nav-links a:not(.nav-cta) { display: none; } }   /* hide text nav on mobile */
@media (max-width: 540px) { .nav-collab img.dite { height: 54px; } .nav-collab img.gems { height: 18px; } }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; padding: 70px 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0;
  background: url('../../assets/campus-hero.jpg') 82% 62% / cover no-repeat; }
/* background video — sits behind the overlay, covers the hero */
.hero-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
/* overlay: darker on the left (text stays legible) → lighter on the right (video shows through),
   plus a bottom fade that blends the hero into the page below */
/* left-aligned hero: darker on the left (text legible) → video shows on the right */
.hero-overlay { position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(101deg, rgba(25,14,38,0.90) 0%, rgba(25,14,38,0.72) 38%, rgba(25,14,38,0.42) 68%, rgba(25,14,38,0.26) 100%),
    linear-gradient(to top, var(--bg) 1%, rgba(25,14,38,0.14) 42%, transparent 66%); }
.hero .wrap { z-index: 2; }   /* aligned to the standard container like every other section */
.hero-inner { max-width: 640px; text-align: left; }
/* legibility of overlaid text on bright video frames */
.hero-name, .hero h1, .hero p.lead { text-shadow: 0 2px 24px rgba(10,5,18,0.55); }
.hero-photo-m { display: none; }
.hero-collab { display: flex; gap: 26px; margin: 0 0 26px; justify-content: flex-start; }
.hero-collab img.dite { height: 180px; }   /* +50% */
.hero-collab img.gems { height: 42px; }
.hero-collab .x { font-size: 2.85rem; margin: 0 9px; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.015em; }
.hero h1 .l1 { color: var(--white); display: block; }
.hero h1 .l2 { color: var(--gold); display: block; }
.hero p.lead { font-size: 1.12rem; color: #efeaf9; margin: 24px 0 34px; max-width: 50ch; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-start; }
.hero-props { display: flex; flex-wrap: wrap; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 26px; }
.hero-props div { padding-right: 24px; margin-right: 24px; border-right: 1px solid var(--line); }
.hero-props div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-props strong { font-size: 1.25rem; font-weight: 900; display: block; color: var(--gold); letter-spacing: 0; white-space: nowrap; }
.hero-props span { font-size: 0.78rem; color: var(--muted); font-weight: 500; white-space: nowrap; }

/* ---------- SECTION ---------- */
section.block { padding: 100px 0; position: relative; }
.section-head { max-width: 62ch; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 800; text-transform: uppercase; margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 1.05rem; font-weight: 500; }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ---------- AWARD (split) ---------- */
.award { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.award.rev { grid-template-columns: 0.95fr 1.05fr; }   /* photo left, text right */
@media (max-width: 920px) { .award, .award.rev { grid-template-columns: 1fr; gap: 40px; } }
.award h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 800; text-transform: uppercase; margin-bottom: 20px; }
.award .seal { display: inline-flex; align-items: baseline; gap: 10px; margin-bottom: 22px; }
.award .seal b { font-size: 3.4rem; font-weight: 900; color: var(--gold); line-height: 1; }
.award .seal span { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cream); }
.award p { color: var(--muted); font-weight: 500; margin-bottom: 26px; font-size: 1.05rem; }
.award-list { list-style: none; display: grid; gap: 16px; }
.award-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.98rem; color: #efeaf9; font-weight: 500; }
.award-list li svg { width: 20px; height: 20px; flex: none; stroke: var(--gold); fill: none; stroke-width: 2; margin-top: 2px; }
.award-photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.award-photo img { display: block; width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.award-photo .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px;
  background: linear-gradient(to top, rgba(25,14,38,0.92), transparent);
  font-size: 0.82rem; color: var(--cream); font-weight: 600; letter-spacing: 0.02em; }

/* benefits */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.card:hover { transform: translateY(-5px); border-color: rgba(242,202,80,.45); background: var(--card-hi); }
.card h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .01em; }
.card h3::before { content: ""; display: block; width: 30px; height: 2px; background: var(--gold); margin-bottom: 18px; }
.card p { color: var(--muted); font-size: 0.93rem; font-weight: 500; }

/* programmes by partner university */
.uni-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.uni-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .uni-grid.three { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .uni-grid { grid-template-columns: 1fr; } }

/* facilities / campus life (hostel, shuttle, …) */
.facilities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 820px) { .facilities-grid { grid-template-columns: 1fr; } }
.facility-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.facility-card:hover { transform: translateY(-4px); border-color: rgba(242,202,80,.45); background: var(--card-hi); }
.facility-card h3 { font-size: 1.16rem; color: var(--gold); margin-bottom: 8px; }
.facility-card p { color: var(--muted); font-size: 0.96rem; line-height: 1.6; }
.uni-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 32px; transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.uni-card:hover { transform: translateY(-4px); border-color: rgba(242,202,80,.45); background: var(--card-hi); }
.uni-card .uni-sub { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; }
.uni-card .uni-name { font-size: 1.28rem; font-weight: 800; color: var(--gold); margin-bottom: 20px; letter-spacing: -0.01em; }
.uni-card .uni-name::after { content: ""; display: block; width: 34px; height: 2px; background: var(--gold); margin-top: 14px; }
/* partner-university logo shown in place of the text name */
.uni-card .uni-logo { margin-bottom: 20px; }
.uni-card .uni-logo img { height: 48px; width: auto; max-width: 100%; display: block; }
/* multiple accreditation logos side by side (e.g. City & Guilds + Pearson) */
.uni-card .uni-logo .uni-logos { display: inline-flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.uni-card .uni-logo .uni-logos img:not(:only-child) { height: 46px; }                    /* light-on-dark logos (e.g. City & Guilds) */
.uni-card .uni-logo .uni-logos img:not(:only-child):first-child { height: 62px; }        /* City & Guilds badge — biggest */
/* a dark-on-light logo (e.g. full-colour Pearson) gets a white chip so it stays legible on the dark card */
.uni-card .uni-logo .uni-logos img:not(:only-child):last-child { height: 40px; background: #fff; padding: 8px 14px; border-radius: 10px; box-sizing: content-box; }
.uni-card .uni-logo::after { content: ""; display: block; width: 34px; height: 2px; background: var(--gold); margin-top: 16px; }
/* badge card (e.g. HEC): larger square emblem + a caption below it */
.uni-card.has-badge .uni-logo { margin-bottom: 12px; }
.uni-card.has-badge .uni-logo::after { display: none; }
.uni-card.has-badge .uni-logo img { height: 62px; }
.uni-card .uni-cap { display: inline-block; margin-bottom: 20px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em; color: var(--gold); }
.uni-card .uni-cap::after { content: ""; display: block; width: 34px; height: 2px; background: var(--gold); margin-top: 14px; }
@media (max-width: 560px) { .uni-card .uni-logo img { height: 42px; } }
/* highlighted note under the programmes (e.g. BBA credit transfer) */
.programs-note { display: flex; gap: 20px; align-items: center; margin-top: 34px; padding: 24px 28px;
  background: var(--card-hi); border: 1px solid rgba(242,202,80,.45); border-left: 4px solid var(--gold); border-radius: var(--radius); }
.programs-note-badge { flex: none; align-self: flex-start; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--btn-ink); background: var(--gold); padding: 6px 12px; border-radius: 999px; }
.programs-note-body h3 { font-size: 1.15rem; color: var(--gold); margin-bottom: 6px; }
.programs-note-body p { color: var(--muted); font-size: 0.98rem; line-height: 1.6; }
@media (max-width: 640px) { .programs-note { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; } }
.uni-card .uni-list { list-style: none; display: grid; gap: 13px; }
.uni-card .uni-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; color: #efeaf9; font-weight: 500; }
.uni-card .uni-list li svg { width: 18px; height: 18px; flex: none; stroke: var(--gold); fill: none; stroke-width: 2; margin-top: 3px; }

/* USP stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 44px;
  padding: 26px 28px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-strip div { text-align: center; }
.stat-strip strong { display: block; font-size: 1.55rem; font-weight: 900; color: var(--gold); line-height: 1.1; letter-spacing: -0.01em; }
.stat-strip span { display: block; font-size: 0.76rem; color: var(--muted); font-weight: 500; margin-top: 6px; }
@media (max-width: 680px) { .stat-strip { grid-template-columns: 1fr 1fr; gap: 24px 16px; } }

/* campus map cards */
.campus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.campus-grid.single { grid-template-columns: minmax(0, 620px); justify-content: center; }
@media (max-width: 820px) { .campus-grid { grid-template-columns: 1fr; } }
.campus-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s ease, border-color .3s ease; }
.campus-card:hover { transform: translateY(-4px); border-color: rgba(242,202,80,.45); }
.campus-map { height: 240px; background: var(--bg-2); }
.campus-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.campus-info { padding: 22px 24px; }
.campus-info h3 { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; margin-bottom: 8px; }
.campus-info p { color: var(--muted); font-size: 0.92rem; font-weight: 500; margin-bottom: 14px; }
.campus-dir { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; color: var(--gold); }
.campus-dir svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 2; }
.campus-dir:hover { color: var(--gold-soft); }
/* clickable map card (no API key) */
.campus-card-link { display: block; color: inherit; }
.campus-map-static { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, rgba(242,202,80,.12), transparent 62%), var(--bg-2); }
.campus-map-static::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; }
.campus-map-static .pin { width: 42px; height: 42px; stroke: var(--gold); fill: none; stroke-width: 1.7; position: relative; z-index: 1; transition: transform .3s ease; }
.campus-map-static .campus-map-label { font-size: 0.76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--cream); position: relative; z-index: 1; }
.campus-card-link:hover .campus-map-static .pin { transform: translateY(-4px); }

/* google reviews / testimonials carousel */
.reviews-carousel { position: relative; padding: 0 6px; }
.review-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 12px; scrollbar-width: none; }
.review-track::-webkit-scrollbar { display: none; }
.g-review { flex: 0 0 clamp(278px, 30%, 342px); scroll-snap-align: start; background: var(--card-hi); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow); transition: transform .3s ease, border-color .3s ease; }
.g-review:hover { transform: translateY(-4px); border-color: rgba(242,202,80,.42); }
@media (max-width: 560px) { .g-review { flex-basis: 84%; } }
.g-review-top { display: flex; align-items: center; gap: 12px; }
.g-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.15rem; flex: none; }
.g-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.g-name { font-weight: 700; color: var(--white); font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-when { color: var(--muted); font-size: 0.8rem; }
.g-logo { flex: none; line-height: 0; }
.g-stars { display: flex; align-items: center; gap: 2px; }
.g-stars .star { width: 18px; height: 18px; fill: var(--gold); }
.g-check { width: 16px; height: 16px; margin-left: 6px; }
.g-text { color: #efeaf9; font-size: 0.93rem; line-height: 1.6; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.g-more { color: var(--gold); font-size: 0.9rem; font-weight: 600; }
.g-more:hover { color: var(--gold-soft); }
.rev-arrow { position: absolute; top: 44%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 1px solid #e0e0e0; color: #444; font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.28); transition: background .2s; }
.rev-arrow:hover { background: #f1f3f4; }
.rev-prev { left: -10px; } .rev-next { right: -10px; }
@media (max-width: 680px) { .rev-arrow { display: none; } }
.reviews-foot { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.g-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--muted);
  background: var(--card); border: 1px solid var(--border); border-radius: 100px; padding: 8px 16px; }
.g-badge svg { line-height: 0; }

/* ---------- ENQUIRY CARD ("Not Sure Where to Begin?") — brand theme, prominent ---------- */
.enquiry-card { position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.022));
  border: 1.5px solid rgba(242,202,80,.5); border-radius: 22px; padding: clamp(30px, 4vw, 50px); width: 100%;
  box-shadow: 0 44px 90px -46px rgba(0,0,0,.85), 0 0 70px -24px rgba(242,202,80,.30); }
.enquiry-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }
.enquiry-head { margin-bottom: 26px; }
.enquiry-card h2 { color: var(--white); font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 800;
  line-height: 1.04; letter-spacing: -0.02em; text-transform: none; }
.enquiry-sub { color: var(--gold); font-size: clamp(1.35rem, 3.2vw, 2rem); font-weight: 600; line-height: 1.1; margin-top: 4px; }
.enquiry-card form { display: grid; gap: 14px; }
.enquiry-card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .enquiry-card .row2 { grid-template-columns: 1fr; } }
.enquiry-card .field { display: block; }
.enquiry-card .field input,
.enquiry-card .field select {
  width: 100%; height: 58px; padding: 0 18px; border-radius: 9px;
  border: 1px solid var(--border); background: rgba(255,255,255,.05); color: var(--white);
  font-family: inherit; font-size: 1rem; font-weight: 500; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s; }
.enquiry-card .field input::placeholder { color: var(--muted-soft); }
.enquiry-card .field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2ca50' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }
.enquiry-card .field select:invalid { color: var(--muted-soft); }   /* placeholder option shown grey */
.enquiry-card .field select option { color: #1b0835; }
.enquiry-card .field input:focus,
.enquiry-card .field select:focus { border-color: var(--gold); background: rgba(255,255,255,.09); box-shadow: 0 0 0 3px rgba(242,202,80,.24); }
.enquiry-card .field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(229,115,111,.22); }
.enquiry-card .btn-gold { width: 100%; height: 58px; margin-top: 4px; font-size: 1rem; border-radius: 9px; }
.enquiry-note { text-align: center; color: var(--muted-soft); font-size: 0.8rem; font-weight: 500; margin-top: 2px; }
.enquiry-card .form-error { color: #f5b0ac; text-align: center; font-weight: 600; font-size: 0.85rem; }
.enquiry-card .form-error:empty { display: none; }
.enquiry-card .form-success { display: none; margin-top: 6px; padding: 22px 20px; border-radius: 12px;
  background: rgba(242,202,80,.12); border: 1px solid rgba(242,202,80,.4); color: var(--cream); font-weight: 600; text-align: center; line-height: 1.6; }

/* aerial band */
.band { position: relative; height: 420px; overflow: hidden; border-block: 1px solid var(--line); }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.band .overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(25,14,38,0.82), rgba(25,14,38,0.4) 60%, rgba(25,14,38,0.65)); display: flex; align-items: center; }
.band .overlay .wrap { color: #fff; }
.band .overlay h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; text-transform: uppercase; max-width: 18ch; }
.band .overlay p { color: var(--cream); margin-top: 12px; font-weight: 500; max-width: 40ch; }
@media (max-width: 600px) { .band { height: 360px; } }

/* eligibility split */
.split { display: grid; grid-template-columns: 1fr 0.85fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.check-list { list-style: none; display: grid; gap: 22px; }
.check-list li { display: flex; gap: 16px; align-items: flex-start; }
.check-list .mark { flex: none; width: 30px; height: 30px; border-radius: 7px; background: rgba(242,202,80,.14);
  color: var(--gold); display: grid; place-items: center; font-size: 0.9rem; font-weight: 800; margin-top: 1px; border: 1px solid rgba(242,202,80,.3); }
.check-list li strong { display: block; font-weight: 700; font-size: 1.02rem; margin-bottom: 2px; }
.check-list li span { color: var(--muted); font-size: 0.93rem; font-weight: 500; }
.photo-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.photo-card img { display: block; width: 100%; height: 100%; object-fit: cover; min-height: 440px; }
.photo-card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px;
  background: linear-gradient(to top, rgba(25,14,38,0.92), transparent); font-size: 0.82rem; color: var(--cream); font-weight: 600; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 34px 30px; border-right: 1px solid var(--line); background: var(--card); }
.step:last-child { border-right: 0; }
@media (max-width: 900px) { .step:nth-child(2) { border-right: 0; } .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--line); } }
.step .num { font-size: 1.5rem; font-weight: 900; color: var(--gold); display: block; margin-bottom: 16px; }
.step h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; text-transform: uppercase; }
.step p { font-size: 0.9rem; color: var(--muted); font-weight: 500; }

/* ---------- APPLY / FORM ---------- */
.apply-wrap { max-width: 760px; margin-inline: auto; }
.apply-intro { text-align: center; margin-bottom: 40px; }
.apply-intro h2 { font-size: clamp(2rem, 3.8vw, 2.7rem); text-transform: uppercase; font-weight: 800; }
.apply-intro p { color: var(--muted); margin: 16px auto 0; font-weight: 500; max-width: 54ch; }
.apply-mini { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 22px; }
.apply-mini span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: #efeaf9; font-weight: 500; }
.apply-mini svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 2.2; flex: none; }

/* stepper */
.steps-nav { display: flex; align-items: center; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.sn { display: flex; align-items: center; gap: 10px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-soft); white-space: nowrap; }
.sn-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-strong); font-size: 0.82rem; font-weight: 800; flex: none; transition: color .25s, border-color .25s, background .25s; }
.sn.active { color: var(--gold); }
.sn.active .sn-num { border-color: var(--gold); color: var(--btn-ink); background: var(--gold); }
.sn.done { color: var(--gold); }
.sn.done .sn-num { border-color: var(--gold); color: var(--gold); background: rgba(242,202,80,.14); }
.steps-line { flex: 1; height: 2px; min-width: 14px; background: var(--line-strong); margin: 0 10px; border-radius: 2px; transition: background .3s; }
.steps-line.filled { background: var(--gold); }

.form-step { display: grid; gap: 18px; }
.form-actions { display: flex; gap: 12px; margin-top: 6px; }
.form-actions .btn-gold { flex: 1; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row3 { grid-template-columns: 1fr; } }

/* duplicate email/phone → OTP reclaim flow */
.dup-notice { display: grid; gap: 12px; padding: 18px; border-radius: 14px;
  background: rgba(229,115,111,.08); border: 1px solid rgba(229,115,111,.32); }
.dup-msg { font-size: 0.88rem; font-weight: 600; color: #f5b0ac; margin: 0; }
.otp-box { display: grid; gap: 10px; padding-top: 4px; border-top: 1px solid rgba(229,115,111,.24); }
.otp-hint { font-size: 0.8rem; color: var(--muted); margin: 0; }
.otp-row { display: flex; gap: 10px; }
.otp-row input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(255,255,255,.05); color: var(--white); font-size: 1.1rem; letter-spacing: 0.3em; text-align: center; }
.otp-row input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,202,80,.16); }
.otp-error { font-size: 0.8rem; color: #f5b0ac; font-weight: 600; margin: 0; }
.otp-error:empty { display: none; }
.btn-link { background: none; border: none; padding: 0; color: var(--gold); font-size: 0.8rem; font-weight: 700; text-decoration: underline;
  cursor: pointer; text-align: left; width: fit-content; }
.btn-link:hover { color: var(--white); }
.prev-academics { font-size: 0.82rem; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; margin: 0; }

form#applyForm { display: grid; gap: 18px; padding: clamp(24px, 4vw, 38px); border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  border: 1px solid var(--border); box-shadow: var(--shadow); }
form#applyForm > * { min-width: 0; }   /* stop any child (e.g. the stepper) from forcing horizontal overflow */
.steps-nav { min-width: 0; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 0.72rem; font-weight: 700; color: var(--muted); letter-spacing: 0.09em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--line-strong);
  background-color: rgba(255,255,255,.045); color: var(--white); font-family: inherit; font-size: 0.95rem; font-weight: 500; outline: none;
  transition: border-color .2s, background-color .2s, box-shadow .2s; }
.field input, .field select { height: 50px; padding-block: 0; }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2ca50' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 15px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-soft); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background-color: rgba(255,255,255,.08); box-shadow: 0 0 0 3px rgba(242,202,80,.16); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { box-shadow: 0 0 0 3px rgba(229,115,111,.22); border-color: var(--danger); }
.field select option { color: #1b0835; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
form#applyForm .btn { margin-top: 4px; }
.form-note { font-size: 0.74rem; color: var(--muted-soft); text-align: center; font-weight: 500; }
.form-error { font-size: 0.82rem; color: #f5b0ac; text-align: center; font-weight: 600; }
.form-error:empty { display: none; }
.form-success { display: none; padding: 30px 24px; border-radius: 16px; background: rgba(242,202,80,.12); border: 1px solid rgba(242,202,80,.4); color: var(--cream); font-size: 0.98rem; text-align: center; font-weight: 600; line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
details { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 4px 28px; transition: border-color .25s, background .25s; }
details[open] { border-color: rgba(242,202,80,.35); background: var(--card-hi); }
summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; color: var(--gold); transition: transform .25s; font-weight: 300; line-height: 1; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 22px; color: var(--muted); font-size: 0.94rem; font-weight: 500; }

/* ---------- FOOTER ---------- */
footer { background: #120a1c; border-top: 1px solid var(--line); padding: 60px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; padding-bottom: 38px; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 30px; } }
.foot-logos { gap: 16px; margin-bottom: 20px; }
.foot-logos img.dite { height: 144px; }   /* +50% */
.foot-logos img.gems { height: 32px; }
.foot-logos .x { font-size: 1.8rem; margin: 0 5px; }
footer h4 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 700; }
footer ul { list-style: none; display: grid; gap: 11px; font-size: 0.9rem; color: var(--muted); }
footer ul a { color: var(--muted); font-weight: 500; }
footer ul a:hover { color: var(--white); }
footer p.tagline { color: var(--muted); font-size: 0.92rem; font-weight: 500; max-width: 42ch; }
.foot-bottom { display: flex; justify-content: space-between; padding-top: 26px; font-size: 0.8rem; color: var(--muted-soft); flex-wrap: wrap; gap: 12px; font-weight: 500; }

/* gentle entrance */
@keyframes riseIn { from { transform: translateY(20px); } to { transform: none; } }
.reveal { opacity: 1; transform: none; }
.reveal.in { animation: riseIn .7s ease both; }
@media (prefers-reduced-motion: reduce) { .reveal.in { animation: none; } }

/* ---------- MOBILE / TABLET (landing) ---------- */
@media (max-width: 760px) {
  /* phone-first hero: full-screen portrait video, text centred over it */
  .hero { display: flex; align-items: center; min-height: 90vh; min-height: 90svh; padding: 76px 0 40px; overflow: hidden; background: var(--bg); }
  .hero-bg { display: none; }
  .hero-video { display: block; }
  .hero-overlay { display: block; background:
    linear-gradient(to bottom, rgba(25,14,38,0.62) 0%, rgba(25,14,38,0.42) 32%, rgba(25,14,38,0.44) 60%, rgba(25,14,38,0.85) 100%); }
  .hero .wrap { z-index: 2; }
  .hero-inner { max-width: 100%; }
  .hero-name { margin-bottom: 12px; }
  .hero h1 { font-size: clamp(1.8rem, 8.6vw, 2.7rem); }
  .hero-name { font-size: clamp(0.92rem, 3.4vw, 1.1rem); letter-spacing: 0.14em; }
  .hero p.lead { font-size: 0.95rem; margin: 14px 0 22px; max-width: 36ch; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { width: 100%; }
  section.block { padding: 64px 0; }
  .section-head { margin-bottom: 34px; }
  .award { gap: 32px; }
  .band { height: 300px; }
  .foot-logos { flex-wrap: wrap; }
  .foot-logos img.dite { height: 84px; }   /* +50% */
  .foot-logos img.gems { height: 26px; }
  footer p.tagline { max-width: 100%; }
}
@media (max-width: 540px) {
  .nav-inner { gap: 12px; }
  .nav-collab { gap: 10px; }
  .nav-collab .x { font-size: 1.15rem; margin: 0 1px; }
  .nav-cta { white-space: nowrap; padding: 8px 10px; font-size: 0.74rem; }
  .award .seal b { font-size: 2.7rem; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn-ghost, .form-actions .btn-gold { flex: 1 1 100%; }
  /* Safety padding so the primary CTA never hugs the browser's bottom chrome */
  #apply { padding-bottom: 96px; }
  /* Compact "dot" stepper on phones (3 full labels don't fit → they forced overflow) */
  .sn { font-size: 0; gap: 0; }
  .sn-num { font-size: 0.82rem; }
  .steps-line { margin: 0 8px; }
}

/* =====================================================================
   ADMIN DASHBOARD
   ===================================================================== */
.dash-body { min-height: 100vh; }

/* login gate */
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); background: var(--glass); border: 1px solid var(--border);
  border-radius: 18px; padding: 38px 34px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.login-card .lock { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(242,202,80,.14); border: 1px solid rgba(242,202,80,.3); color: var(--gold); margin-bottom: 20px; font-size: 1.2rem; }
.login-card h1 { font-size: 1.4rem; text-transform: uppercase; margin-bottom: 6px; }
.login-card p.sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 26px; }
.login-card .field { margin-bottom: 16px; }
.login-card .btn { width: 100%; margin-top: 8px; }
.login-hint { margin-top: 18px; font-size: 0.76rem; color: var(--muted-soft); text-align: center; }

/* top bar */
.dash-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.dash-top .brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .02em; }
.dash-top .brand .dot { width: 30px; height: 30px; border-radius: 8px; background: var(--gold); color: var(--btn-ink); display: grid; place-items: center; font-weight: 900; }
.dash-user { display: flex; align-items: center; gap: 14px; font-size: 0.84rem; color: var(--muted); }
.role-chip { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 100px; background: rgba(242,202,80,.14); color: var(--gold); border: 1px solid rgba(242,202,80,.3); }

/* tabs */
.dash-tabs { display: flex; gap: 4px; padding: 0 clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--border);
  background: var(--bg); position: sticky; top: 59px; z-index: 30; overflow-x: auto; }
.dash-tabs a { padding: 16px 18px; font-size: 0.82rem; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; text-transform: uppercase; letter-spacing: .03em; }
.dash-tabs a:hover { color: var(--white); }
.dash-tabs a.active { color: var(--gold); border-bottom-color: var(--gold); }

.dash-main { padding: clamp(20px, 4vw, 40px); max-width: 1280px; margin-inline: auto; }
.dash-h { font-size: 1.5rem; text-transform: uppercase; margin-bottom: 4px; }
.dash-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }

.panel { background: var(--glass); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat { background: var(--glass); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; }
.stat b { display: block; font-size: 2rem; font-weight: 900; color: var(--gold); line-height: 1.1; }
.stat span { font-size: 0.74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .charts { grid-template-columns: 1fr; } }
.charts .panel.wide { grid-column: 1 / -1; }
.charts h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 16px; font-weight: 800; }
.chart-holder { position: relative; height: 260px; }

/* filters + table */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 20px; }
.filters .field { min-width: 150px; }
.filters .field label { margin-bottom: 6px; }
.filters input, .filters select { height: 44px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
table.leads { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 720px; }
table.leads th { text-align: left; padding: 14px 16px; background: var(--bg-2); color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.leads td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: #ece7f6; vertical-align: middle; }
table.leads tbody tr { cursor: pointer; transition: background .15s; }
table.leads tbody tr:hover { background: rgba(255,255,255,.035); }
table.leads tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 100px; }
.badge.Incomplete { background: rgba(229,115,111,.16); color: #f0a6a2; border: 1px solid rgba(229,115,111,.3); }
.badge.Screening { background: rgba(242,202,80,.16); color: var(--gold); border: 1px solid rgba(242,202,80,.32); }
.badge.Accepted, .badge.Interview { background: rgba(87,201,139,.16); color: #79d8a5; border: 1px solid rgba(87,201,139,.3); }
/* Denning division enquiry statuses */
.badge.New { background: rgba(77,182,216,.16); color: #7fd2ec; border: 1px solid rgba(77,182,216,.3); }
.badge.Qualified { background: rgba(242,202,80,.16); color: var(--gold); border: 1px solid rgba(242,202,80,.32); }
.badge.Enrolled { background: rgba(87,201,139,.16); color: #79d8a5; border: 1px solid rgba(87,201,139,.3); }
.badge.Lost { background: rgba(229,115,111,.16); color: #f0a6a2; border: 1px solid rgba(229,115,111,.3); }

/* communications team — per-lead outreach status (separate from the admissions pipeline) */
.contact-cell form { display: contents; }
.contact-select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  font-family: inherit; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 6px 26px 6px 12px; border-radius: 100px; min-height: 0;
  background-repeat: no-repeat; background-position: right 10px center; background-size: 9px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a89bc4' stroke-width='1.5'/%3E%3C/svg%3E");
}
.contact-select:disabled { cursor: default; opacity: .8; }
.contact-select:focus { outline: none; box-shadow: 0 0 0 3px rgba(242,202,80,.22); }
.contact-select.cs-not-contacted  { background-color: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--border); }
.contact-select.cs-call-done      { background-color: rgba(77,182,216,.16);  color: #7fd2ec;  border: 1px solid rgba(77,182,216,.3); }
.contact-select.cs-follow-up      { background-color: rgba(242,202,80,.16);  color: var(--gold); border: 1px solid rgba(242,202,80,.32); }
.contact-select.cs-not-interested { background-color: rgba(229,115,111,.16); color: #f0a6a2;  border: 1px solid rgba(229,115,111,.3); }
.contact-select.cs-no-response    { background-color: rgba(215,138,208,.16); color: #e3aede;  border: 1px solid rgba(215,138,208,.3); }
.contact-select.cs-converted      { background-color: rgba(87,201,139,.16);  color: #79d8a5;  border: 1px solid rgba(87,201,139,.3); }
.contact-select option { background: var(--bg); color: #fff; text-transform: none; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.pager .pages { display: flex; gap: 6px; flex-wrap: wrap; }
.pager a, .pager span.cur { padding: 8px 13px; border-radius: 8px; border: 1px solid var(--border); font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.pager a:hover { color: var(--white); border-color: var(--gold); }
.pager span.cur { background: var(--gold); color: var(--btn-ink); border-color: var(--gold); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }

/* activity / audit log */
.log-table td { vertical-align: top; }
.log-when b { display: block; font-weight: 700; white-space: nowrap; }
.log-when span { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.log-user { font-weight: 700; }
.log-details b { display: block; font-weight: 700; }
.log-details span { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.log-ip { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.log-tag { display: inline-block; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 100px; white-space: nowrap; }
.log-tag.log-ok      { background: rgba(87,201,139,.16);  color: #79d8a5; border: 1px solid rgba(87,201,139,.3); }
.log-tag.log-info    { background: rgba(77,182,216,.16);  color: #7fd2ec; border: 1px solid rgba(77,182,216,.3); }
.log-tag.log-warn    { background: rgba(242,202,80,.16);  color: var(--gold); border: 1px solid rgba(242,202,80,.32); }
.log-tag.log-danger  { background: rgba(229,115,111,.16); color: #f0a6a2; border: 1px solid rgba(229,115,111,.3); }
.log-tag.log-neutral { background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--border); }

.btn-sm { min-height: 40px; padding: 10px 18px; font-size: 0.8rem; }
.muted-note { color: var(--muted-soft); font-size: 0.82rem; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* user + cms forms */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 16px; }
.flash { padding: 13px 16px; border-radius: 10px; font-size: 0.86rem; font-weight: 600; margin-bottom: 20px; }
.flash.ok { background: rgba(87,201,139,.14); color: #83ddab; border: 1px solid rgba(87,201,139,.3); }
.flash.err { background: rgba(229,115,111,.14); color: #f0a6a2; border: 1px solid rgba(229,115,111,.3); }
.cms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .cms-grid { grid-template-columns: 1fr; } }
.color-row { display: flex; align-items: center; gap: 10px; }
.color-row input[type="color"] { width: 48px; height: 44px; padding: 4px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.05); cursor: pointer; }
.color-row input[type="text"] { flex: 1; }

/* modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(10,5,18,0.6); backdrop-filter: blur(6px); }
.modal-backdrop.open { display: flex; }
.modal { width: min(640px, 100%); max-height: 90vh; overflow-y: auto; background: #1c1230; border: 1px solid var(--border);
  border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.modal-head h3 { font-size: 1.2rem; text-transform: uppercase; }
.modal-close { background: none; border: 1px solid var(--border); color: var(--muted); width: 36px; height: 36px; border-radius: 9px; cursor: pointer; font-size: 1.1rem; }
.modal-close:hover { color: var(--white); border-color: var(--gold); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
@media (max-width: 560px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-grid .full { grid-column: 1 / -1; }
.dt { font-size: 0.66rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-soft); font-weight: 800; margin-bottom: 5px; }
.dd { font-size: 0.94rem; color: #ece7f6; word-break: break-word; }
