/* =========================================================
   The Matrix Box — Dark Matrix Gaming Theme
   ========================================================= */

:root {
  --bg: #03070a;
  --bg-2: #06120c;
  --bg-3: #0a1a12;
  --surface: rgba(0, 255, 140, 0.04);
  --surface-2: rgba(0, 255, 140, 0.07);
  --border: rgba(0, 255, 140, 0.12);
  --text: #e6ffe9;
  --text-dim: #93b8a1;
  --text-faint: #5e7d69;
  --neon: #00ff88;
  --neon-2: #00e676;
  --neon-3: #aaff00;
  --grad: linear-gradient(120deg, #00ff88, #00e676 55%, #aaff00);
  --grad-soft: linear-gradient(120deg, rgba(0, 255, 136, 0.15), rgba(170, 255, 0, 0.15));
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1200px;
  font-family: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
button { font-family: inherit; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* animated background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60vw 60vw at 80% -10%, rgba(0, 230, 118, 0.18), transparent 60%),
    radial-gradient(55vw 55vw at 0% 10%, rgba(0, 255, 136, 0.14), transparent 60%),
    radial-gradient(50vw 50vw at 50% 110%, rgba(170, 255, 0, 0.12), transparent 60%);
  z-index: -2;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 140, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 140, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: -2;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 80%);
  pointer-events: none;
}

h1, h2, h3, .brand-text {
  font-family: "Orbitron", "Inter", sans-serif;
  letter-spacing: 0.5px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------- Navbar ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(7, 7, 13, 0.65);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}
.brand .logo {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad);
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  color: #07070d;
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.5);
}
/* when a custom logo image is used */
.logo.has-img {
  background: none !important;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Custom logo is a full lockup (icon + wordmark) — zoom the badge into the
   "M" cube icon so the navbar/footer badge stays clean (the name is shown by
   the brand-text beside it). Adjust scale / origin if the crop looks off. */
.brand .logo.has-img img { transform: scale(1.75); transform-origin: 50% 38%; }
.brand-text { font-size: 1.15rem; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--neon); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* nav dropdown */
.nav-item-dd { position: relative; }
.nav-dd-toggle { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-dd-toggle .caret { font-size: 0.65rem; transition: transform 0.2s; }
/* invisible bridge so the menu doesn't vanish when moving the mouse down */
.nav-item-dd::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 18px;
  display: none;
}
.nav-item-dd:hover::after { display: block; }
.nav-dd-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 220px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 8px; display: none; flex-direction: column; gap: 2px;
  box-shadow: var(--shadow); z-index: 120; opacity: 0; transition: opacity 0.18s, transform 0.18s;
}
.nav-item-dd:hover .nav-dd-menu,
.nav-item-dd.open .nav-dd-menu { display: flex; opacity: 1; transform: translateX(-50%) translateY(0); }
.nav-item-dd:hover .caret, .nav-item-dd.open .caret { transform: rotate(180deg); }
.nav-dd-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 10px; color: var(--text-dim) !important; font-weight: 500;
}
.nav-dd-menu a:hover { background: var(--surface); color: var(--neon) !important; }
.nav-dd-menu .dd-sub { font-size: 0.74rem; color: var(--text-faint); display: block; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--grad);
  color: #07070d;
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.25);
}
.btn-primary:hover { box-shadow: 0 14px 40px rgba(0, 230, 118, 0.45); transform: translateY(-2px); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--neon); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-danger { background: rgba(255, 45, 143, 0.15); color: #ff7ab3; border-color: rgba(255, 45, 143, 0.4); }
.btn-danger:hover { background: rgba(255, 45, 143, 0.25); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 26px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 12px var(--neon); animation: pulse 1.8s infinite; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; margin-bottom: 22px; }
.hero p { color: var(--text-dim); font-size: 1.15rem; max-width: 640px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.stat .num { font-family: "Orbitron", sans-serif; font-size: 2.2rem; font-weight: 800; }
.stat .label { color: var(--text-faint); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }

/* ---------------- Sections ---------------- */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head .kicker { color: var(--neon); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 10px 0 14px; }
.section-head p { color: var(--text-dim); }

/* ---------------- Cards / grid ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); border-color: rgba(0, 255, 136, 0.4); box-shadow: var(--shadow); }
.card .thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-3) var(--grad-soft);
  background-size: cover;
  background-position: center;
  position: relative;
}
.card .thumb .ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: "Orbitron", sans-serif;
  font-size: 2.4rem; font-weight: 900;
  color: rgba(255,255,255,0.12);
}
.card .badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600;
  background: rgba(7,7,13,0.7); backdrop-filter: blur(6px);
  border: 1px solid var(--border);
}
.card .status {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600;
}
.status-released { background: rgba(0,240,255,0.15); color: var(--neon); border: 1px solid rgba(0,240,255,0.3); }
.status-dev { background: rgba(255,196,0,0.15); color: #ffd24a; border: 1px solid rgba(255,196,0,0.3); }
.status-soon { background: rgba(177,74,255,0.15); color: #cf9bff; border: 1px solid rgba(177,74,255,0.3); }
.card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card .body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card .body p { color: var(--text-dim); font-size: 0.92rem; flex: 1; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.tag { font-size: 0.72rem; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); }
.card .card-foot { display: flex; gap: 8px; margin-top: auto; }

/* ---------------- Filter bar ---------------- */
.filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 8px 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer; font-weight: 500; transition: all 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--neon); }
.filter-btn.active { background: var(--grad); color: #07070d; border-color: transparent; }

/* ---------------- Services ---------------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.service {
  padding: 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}
.service:hover { transform: translateY(-5px); border-color: rgba(177,74,255,0.4); }
.service .ic { font-size: 2rem; margin-bottom: 16px; }
.service h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------------- About ---------------- */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: ""; position: absolute; inset: -2px;
  background: var(--grad); opacity: 0.12; filter: blur(30px); z-index: 0;
}
.about-card > * { position: relative; z-index: 1; }

/* ---------------- CTA / Contact ---------------- */
.cta {
  margin: 40px auto;
  max-width: var(--max);
  text-align: center;
  padding: 70px 24px;
  border-radius: 28px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.cta p { color: var(--text-dim); max-width: 520px; margin: 0 auto 28px; }
.contact-details {
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  justify-content: center; align-items: center;
  margin-top: 26px; color: var(--text-dim); font-size: 0.98rem;
}
.contact-details a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-dim); transition: color 0.2s; font-weight: 500;
}
.contact-details a:hover { color: var(--neon); }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--border); padding: 50px 0 30px; margin-top: 60px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer .brand { margin-bottom: 14px; }
.footer p { color: var(--text-faint); font-size: 0.9rem; max-width: 320px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); margin-bottom: 14px; font-family: "Inter"; }
.footer-col a { display: block; color: var(--text-dim); font-size: 0.92rem; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--neon); }
.footer-bottom { text-align: center; color: var(--text-faint); font-size: 0.85rem; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ---------------- Empty state ---------------- */
.empty {
  text-align: center; padding: 80px 24px; color: var(--text-dim);
  border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface);
}
.empty .ic { font-size: 3rem; margin-bottom: 16px; }

/* ---------------- Admin ---------------- */
.admin-shell { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }
.login-box {
  max-width: 420px; margin: 8vh auto; padding: 40px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  text-align: center;
}
.login-box .logo { width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); font-family: "Orbitron"; font-weight: 900; color: #07070d; font-size: 1.4rem; }
.field { text-align: left; margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 8px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--neon); }
.field textarea { resize: vertical; min-height: 90px; }
.field .hint { font-size: 0.78rem; color: var(--text-faint); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: auto; }

.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 16px; }
.admin-head h1 { font-size: 1.8rem; }
.mode-pill { font-size: 0.75rem; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-dim); }
.mode-pill.live { color: var(--neon); border-color: rgba(0,240,255,0.4); }

.admin-grid { display: grid; grid-template-columns: 420px 1fr; gap: 30px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.panel h2 { font-size: 1.2rem; margin-bottom: 20px; }

.admin-list { display: flex; flex-direction: column; gap: 12px; }
.admin-item {
  display: flex; gap: 14px; align-items: center;
  padding: 14px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border);
}
.admin-item .ai-thumb {
  width: 64px; height: 48px; border-radius: 8px; flex-shrink: 0;
  background: var(--bg-3) var(--grad-soft); background-size: cover; background-position: center;
  display: grid; place-items: center; font-family: "Orbitron"; color: rgba(255,255,255,0.2); font-weight: 800;
}
.admin-item .ai-info { flex: 1; min-width: 0; }
.admin-item .ai-info h4 { font-size: 0.98rem; }
.admin-item .ai-info span { font-size: 0.8rem; color: var(--text-faint); }
.admin-item .ai-actions { display: flex; gap: 6px; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--bg-3); border: 1px solid var(--neon); color: var(--text);
  padding: 14px 24px; border-radius: 999px; box-shadow: var(--shadow);
  opacity: 0; transition: all 0.3s; z-index: 999; font-weight: 500;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

.notice {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--neon); padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 0.88rem; color: var(--text-dim); margin-bottom: 20px;
}

/* ---------------- Courses ---------------- */
.course-card .body { gap: 4px; }
.course-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.course-ic {
  font-size: 1.8rem; width: 52px; height: 52px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 14px;
  background: var(--grad-soft); border: 1px solid var(--border);
}
.course-meta { display: flex; flex-direction: column; gap: 2px; font-size: 0.78rem; color: var(--text-faint); }

/* ---------------- Coming Soon ---------------- */
.soon-badge {
  display: inline-block; font-size: 0.62rem; font-weight: 700; vertical-align: middle;
  padding: 3px 9px; border-radius: 999px; margin-left: 6px; letter-spacing: 0.5px;
  background: rgba(255,196,0,0.15); color: #ffd24a; border: 1px solid rgba(255,196,0,0.35);
  text-transform: uppercase; font-family: "Inter", sans-serif;
}
.is-soon { opacity: 0.78; }
.is-soon .btn[disabled] { cursor: not-allowed; opacity: 0.8; }
.btn[disabled] { cursor: not-allowed; }

/* ---------------- Admin catalog ---------------- */
.cat-group-title { font-size: 1.05rem; margin: 24px 0 12px; color: var(--text); }
.cat-list { display: flex; flex-direction: column; gap: 10px; }
.cat-row {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border);
}
.cat-name { flex: 1; font-weight: 500; }
.cat-status { padding: 7px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
/* toggle switch */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; cursor: pointer; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--border); transition: 0.2s;
}
.switch .slider::before {
  content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
  background: var(--text-dim); border-radius: 50%; transition: 0.2s;
}
.switch input:checked + .slider { background: var(--grad); border-color: transparent; }
.switch input:checked + .slider::before { transform: translateX(20px); background: #07070d; }

/* ---------------- Pathway (Academy) ---------------- */
.pathway { display: flex; align-items: stretch; justify-content: center; gap: 16px; flex-wrap: wrap; }
.path-step {
  position: relative; flex: 1; min-width: 240px; max-width: 320px;
  padding: 30px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.path-step:hover { transform: translateY(-5px); border-color: rgba(0,240,255,0.4); }
.path-num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #07070d; font-weight: 800; font-family: "Orbitron", sans-serif;
}
.path-ic { font-size: 2.4rem; margin: 8px 0 12px; }
.path-step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.path-step p { color: var(--text-dim); font-size: 0.92rem; }
.path-arrow { display: flex; align-items: center; font-size: 1.8rem; color: var(--neon); }

/* ---------------- Careers ---------------- */
.careers-list { display: flex; flex-direction: column; gap: 16px; max-width: 880px; margin: 0 auto; }
.career-card {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 24px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}
.career-card:hover { transform: translateY(-3px); border-color: rgba(0,240,255,0.4); }
.career-info { flex: 1; min-width: 220px; }
.career-info h3 { font-size: 1.25rem; margin-bottom: 8px; }
.career-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; font-size: 0.82rem; color: var(--text-faint); }
.career-info p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------------- Apply form ---------------- */
.apply-type { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.type-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 22px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer; transition: all 0.2s; text-align: center;
}
.type-card:hover { border-color: var(--neon); color: var(--text); transform: translateY(-3px); }
.type-card.active { border-color: transparent; background: var(--grad-soft); color: var(--text); box-shadow: 0 0 0 2px var(--neon) inset; }
.type-card .ic { font-size: 1.8rem; }
.type-card strong { font-size: 1.05rem; }
.type-card .sub { font-size: 0.78rem; color: var(--text-faint); }
.form-group { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 18px; }

/* ---------------- Admin tabs ---------------- */
.admin-tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tab {
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); font-weight: 600; font-size: 0.92rem; transition: all 0.2s;
}
.admin-tab:hover { color: var(--text); border-color: var(--neon); }
.admin-tab.active { background: var(--grad); color: #07070d; border-color: transparent; }
.tab-badge { background: rgba(0,0,0,0.25); padding: 1px 8px; border-radius: 999px; font-size: 0.78rem; margin-left: 4px; }
.apps-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.app-filter { padding: 8px 14px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); color: var(--text); }
.apps-list { display: flex; flex-direction: column; gap: 12px; }

/* ---------------- Modal ---------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px;
}
.modal {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto; position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; background: var(--surface);
  border: 1px solid var(--border); color: var(--text); width: 34px; height: 34px;
  border-radius: 50%; cursor: pointer; font-size: 1rem;
}
.modal-close:hover { border-color: var(--neon); }
.modal-row { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.modal-row .ml { color: var(--text-faint); min-width: 130px; flex-shrink: 0; }
.modal-row .mv { color: var(--text); word-break: break-word; }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s, transform 0.7s; }
.reveal.in { opacity: 1; transform: none; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 72px; right: 0; flex-direction: column;
    background: var(--bg-2); border: 1px solid var(--border);
    padding: 24px; gap: 18px; border-radius: 0 0 0 16px;
    transform: translateX(110%); transition: transform 0.3s; min-width: 200px;
  }
  .nav-links.open { transform: none; }
  .nav-toggle { display: block; }
  .nav-item-dd { width: 100%; }
  .nav-dd-menu {
    position: static; transform: none; min-width: 0; width: 100%;
    box-shadow: none; background: var(--surface); margin-top: 6px;
  }
  .about-wrap { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .stats { gap: 32px; }
  .field-row { grid-template-columns: 1fr; }
  .apply-type { grid-template-columns: 1fr; }
  .apps-head { flex-direction: column; align-items: stretch; }
  .path-arrow { transform: rotate(90deg); }
  .career-card { flex-direction: column; align-items: stretch; text-align: left; }
  .cat-row { flex-wrap: wrap; }
  .cat-name { flex-basis: 100%; }
}
