@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  --bg-obsidian: #06080D;
  --bg-carbon: #0B0F17;
  --bg-panel: #101622;
  --bg-panel-elevated: #161E2E;
  --bg-input: #080B11;
  --border-line: rgba(255, 255, 255, 0.09);
  --border-brass: rgba(229, 169, 60, 0.42);
  --border-cobalt: rgba(59, 130, 246, 0.45);
  --text-white: #F8FAFC;
  --text-silver: #CBD5E1;
  --text-steel: #8B9BB4;
  --brass: #E5A93C;
  --brass-bright: #FBBF24;
  --brass-glow: rgba(229, 169, 60, 0.16);
  --cobalt: #2563EB;
  --cobalt-bright: #60A5FA;
  --emerald: #10B981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --crimson: #EF4444;
  --crimson-soft: rgba(239, 68, 68, 0.14);
  --violet: #8B5CF6;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  /* Legacy variable aliases for dashboard pages */
  --text-main: var(--text-white);
  --text-secondary: var(--text-silver);
  --text-muted: var(--text-steel);
  --border-subtle: var(--border-line);
  --gold: var(--brass-bright);
  --primary: var(--cobalt);
  --primary-light: var(--cobalt-bright);
  --danger: var(--crimson);
  --bg-card: var(--bg-panel);
  --bg-card-hover: var(--bg-panel-elevated);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--brass);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-top: 4px;
}

.section-desc {
  color: var(--text-steel);
  font-size: 14px;
  max-width: 680px;
  margin-top: 4px;
}

.smartcard-visual,
.kta-card-metal {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 85.6 / 53.98;
  margin: 0 auto;
  border-radius: 15px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 16%, rgba(251, 191, 36, 0.25), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(37, 99, 235, 0.24), transparent 45%),
    linear-gradient(135deg, #090D16 0%, #151F32 48%, #070A10 100%);
  border: 1.5px solid rgba(229, 169, 60, 0.68);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kta-card-metal::after,
.smartcard-visual::after {
  content: "NESKAR 1965";
  position: absolute;
  left: 22px;
  bottom: 48px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: rgba(246, 196, 83, 0.06);
  -webkit-text-stroke: 0.6px rgba(246, 196, 83, 0.14);
  letter-spacing: -1.5px;
  pointer-events: none;
}

.sc-chip {
  width: 46px;
  height: 34px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 30%, rgba(0,0,0,0.22) 31%, transparent 33%, transparent 66%, rgba(0,0,0,0.22) 67%, transparent 69%),
    linear-gradient(0deg, transparent 48%, rgba(0,0,0,0.22) 49%, transparent 51%),
    linear-gradient(135deg, #FEF08A 0%, #D97706 55%, #92400E 100%);
  border: 1px solid #FEF9C3;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.kta-photo-frame {
  width: 72px;
  height: 92px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--brass);
  background: #e5e7eb;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.kta-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-obsidian);
  color: var(--text-white);
}

body {
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(circle at 80% 0%, rgba(229, 169, 60, 0.11), transparent 38%),
    radial-gradient(circle at 10% 15%, rgba(37, 99, 235, 0.13), transparent 40%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
}

/* DO ONLY apply this class to items OUTSIDE the initial layout viewport (modern-web-guidance: defer-rendering-heavy-content) */
.heavy-section-deferred {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 480px;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

/* Top Crest Bar */
.crest-bar {
  background: #030508;
  border-bottom: 1px solid var(--border-line);
  padding: 9px 0;
  font-size: 12px;
}

.crest-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.crest-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-steel);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.status-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 10px var(--brass);
}

.crest-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}

.crest-right a {
  color: var(--text-silver);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.crest-right a:hover {
  color: var(--brass-bright);
}

/* Main Architectural Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(6, 8, 13, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-line);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(145deg, #1E293B, #090D16);
  border: 1.5px solid var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--brass-bright);
  box-shadow: 0 0 22px rgba(229, 169, 60, 0.22);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.1;
}

.brand-name span {
  color: var(--brass);
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-steel);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  color: var(--text-silver);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 8px;
  transition: all 0.16s ease;
  position: relative;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.main-nav a.active {
  color: var(--brass-bright);
  background: rgba(229, 169, 60, 0.1);
  border: 1px solid rgba(229, 169, 60, 0.3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 980px) {
  .nav-wrapper {
    height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
  }
  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

/* Bold Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12.5px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 14.5px;
}

.btn-brass,
.btn-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #05070B;
  border-color: #FBBF24;
  box-shadow: 0 6px 22px rgba(229, 169, 60, 0.28);
}

.btn-brass:hover,
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(229, 169, 60, 0.42);
}

.btn-primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #fff;
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background: rgba(16, 22, 34, 0.85);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-outline:hover {
  border-color: var(--brass);
  color: var(--brass-bright);
  background: var(--bg-panel-elevated);
}

.btn-emerald {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
}

.btn-purple {
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  color: #fff;
  border-color: rgba(196, 181, 253, 0.35);
}

.btn-danger {
  background: var(--crimson-soft);
  color: #FCA5A5;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Page Hero & Dynamic Particle Breadcrumb Banners */
.page-hero {
  position: relative;
  padding: 54px 0 46px;
  border-bottom: 1px solid rgba(229, 169, 60, 0.32);
  background:
    radial-gradient(circle at 82% 20%, rgba(229, 169, 60, 0.22), transparent 46%),
    radial-gradient(circle at 14% 82%, rgba(37, 99, 235, 0.2), transparent 48%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, #070C18 0%, #0B1324 55%, #06080D 100%);
  background-size: 100% 100%, 100% 100%, 42px 42px, 42px 42px, 100% 100%;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06), 0 18px 45px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.page-hero--compact {
  padding: 36px 0 32px;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.55) 20%, rgba(246, 196, 83, 0.9) 50%, rgba(37, 99, 235, 0.55) 80%, transparent 100%);
  z-index: 3;
}

/* Bespoke Page Hero Color Themes */
.page-hero--home {
  background:
    radial-gradient(circle at 80% 24%, rgba(246, 196, 83, 0.24), transparent 45%),
    radial-gradient(circle at 15% 78%, rgba(37, 99, 235, 0.24), transparent 48%),
    radial-gradient(circle at 50% 0%, rgba(229, 169, 60, 0.12), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(165deg, #060B16 0%, #0D172A 50%, #05080F 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 44px 44px, 44px 44px, 100% 100%;
}

.page-hero--direktori {
  border-bottom-color: rgba(59, 130, 246, 0.42);
  background:
    radial-gradient(circle at 84% 20%, rgba(37, 99, 235, 0.3), transparent 48%),
    radial-gradient(circle at 16% 85%, rgba(14, 165, 233, 0.2), transparent 45%),
    radial-gradient(circle at 52% 10%, rgba(229, 169, 60, 0.14), transparent 45%),
    linear-gradient(rgba(96, 165, 250, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.032) 1px, transparent 1px),
    linear-gradient(165deg, #060D1D 0%, #0A1931 54%, #05080F 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px, 100% 100%;
}

.page-hero--karir {
  border-bottom-color: rgba(168, 85, 247, 0.42);
  background:
    radial-gradient(circle at 84% 20%, rgba(139, 92, 246, 0.28), transparent 48%),
    radial-gradient(circle at 16% 82%, rgba(245, 158, 11, 0.22), transparent 46%),
    radial-gradient(circle at 48% 0%, rgba(59, 130, 246, 0.15), transparent 48%),
    linear-gradient(rgba(196, 181, 253, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 181, 253, 0.028) 1px, transparent 1px),
    linear-gradient(165deg, #090A1A 0%, #14122B 54%, #06080F 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px, 100% 100%;
}

.page-hero--mitra {
  border-bottom-color: rgba(16, 185, 129, 0.42);
  background:
    radial-gradient(circle at 84% 22%, rgba(16, 185, 129, 0.26), transparent 48%),
    radial-gradient(circle at 16% 82%, rgba(229, 169, 60, 0.22), transparent 46%),
    radial-gradient(circle at 50% 0%, rgba(20, 184, 166, 0.14), transparent 48%),
    linear-gradient(rgba(52, 211, 153, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 211, 153, 0.028) 1px, transparent 1px),
    linear-gradient(165deg, #051114 0%, #091E22 54%, #05080E 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 38px 38px, 38px 38px, 100% 100%;
}

.page-hero--kta {
  border-bottom-color: rgba(246, 196, 83, 0.48);
  background:
    radial-gradient(circle at 82% 20%, rgba(246, 196, 83, 0.28), transparent 46%),
    radial-gradient(circle at 15% 84%, rgba(37, 99, 235, 0.22), transparent 46%),
    radial-gradient(circle at 50% 50%, rgba(229, 169, 60, 0.1), transparent 55%),
    linear-gradient(rgba(246, 196, 83, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 196, 83, 0.03) 1px, transparent 1px),
    linear-gradient(165deg, #0B0E17 0%, #161B29 52%, #06080E 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px, 100% 100%;
}

.hero-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.page-hero > .container {
  position: relative;
  z-index: 2;
}

.page-hero-watermark {
  position: absolute;
  right: -12px;
  bottom: -18px;
  font-family: var(--font-display);
  font-size: clamp(68px, 10.5vw, 148px);
  font-weight: 700;
  color: rgba(246, 196, 83, 0.045);
  -webkit-text-stroke: 1px rgba(246, 196, 83, 0.12);
  text-shadow: 0 0 42px rgba(229, 169, 60, 0.08);
  letter-spacing: -4px;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 1;
}

/* Breadcrumb Bar inside Page Hero */
.breadcrumb-bar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 13px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(6, 10, 18, 0.72);
  border: 1px solid rgba(229, 169, 60, 0.32);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.6px;
}

.breadcrumb-bar a {
  color: var(--text-silver);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.breadcrumb-bar a:hover {
  color: var(--brass-bright);
}

.breadcrumb-bar .bc-sep {
  color: rgba(229, 169, 60, 0.55);
}

.breadcrumb-bar .bc-current {
  color: var(--brass-bright);
  font-weight: 700;
}

.breadcrumb-bar .bc-tag {
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(229, 169, 60, 0.14);
  border: 1px solid rgba(229, 169, 60, 0.35);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--brass);
  margin-bottom: 12px;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--brass);
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.4px;
  color: #fff;
}

.display-title .accent {
  color: var(--brass-bright);
}

.lead-copy {
  font-size: 16.5px;
  color: var(--text-silver);
  max-width: 680px;
  margin-top: 16px;
  line-height: 1.65;
}

/* Architectural Cards & Bento Panels */
.card,
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.panel:hover {
  border-color: rgba(229, 169, 60, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.panel-gold {
  background: linear-gradient(160deg, rgba(229, 169, 60, 0.12) 0%, var(--bg-panel) 65%);
  border-color: var(--border-brass);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

@media (max-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-prima {
  background: var(--brass-glow);
  color: var(--brass-bright);
  border: 1px solid var(--border-brass);
}

.badge-reguler {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-silver);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.badge-blue {
  background: rgba(37, 99, 235, 0.18);
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-emerald {
  background: var(--emerald-soft);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.16);
  color: #C4B5FD;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

/* Alumni Avatar Monogram */
.alumni-monogram {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  border: 1px solid var(--border-brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--brass-bright);
  flex-shrink: 0;
}

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid var(--border-line);
}

.alert-success {
  background: var(--emerald-soft);
  border-color: rgba(16, 185, 129, 0.45);
  color: #A7F3D0;
}

.alert-error {
  background: var(--crimson-soft);
  border-color: rgba(239, 68, 68, 0.45);
  color: #FECACA;
}

.alert-warning {
  background: var(--brass-glow);
  border-color: var(--border-brass);
  color: #FDE68A;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-silver);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-white);
  padding: 11px 14px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.form-control:focus {
  border-color: var(--brass);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 680px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Dashboard Layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 26px;
  padding: 36px 0 64px;
  align-items: start;
}

@media (max-width: 940px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

.sidebar-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: 12px;
  padding: 20px;
  position: sticky;
  top: 96px;
}

.sidebar-menu {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--text-silver);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.15s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(229, 169, 60, 0.12);
  color: var(--brass-bright);
  border-left: 3px solid var(--brass);
}

/* Data Tables */
.table-wrap {
  overflow-x: auto;
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: 12px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.data-table th {
  background: #070A10;
  color: var(--text-steel);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-line);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Native <dialog> Modal (Locked: No Outside Click) */
dialog.app-modal {
  margin: auto;
  width: min(620px, 92vw);
  background: #0D131F;
  color: var(--text-white);
  border: 1px solid var(--border-brass);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

dialog.app-modal.modal-locked-pulse {
  transform: scale(1.012);
  border-color: var(--brass-bright);
  box-shadow: 0 0 0 3px rgba(229, 169, 60, 0.32), 0 30px 70px rgba(0, 0, 0, 0.9);
}

dialog.app-modal::backdrop {
  background-color: rgba(3, 5, 9, 0.78);
  backdrop-filter: blur(5px);
}

/* Global Searchable Dropdown Combobox (.qnk-combobox) */
.qnk-select-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}

.panel:has(.qnk-combobox.is-open),
.card:has(.qnk-combobox.is-open),
.form-group:has(.qnk-combobox.is-open),
.data-table tr:has(.qnk-combobox.is-open) {
  position: relative;
  z-index: 80;
}

.table-wrap:has(.qnk-combobox.is-open) {
  overflow: visible;
  position: relative;
  z-index: 80;
}

.qnk-combobox {
  position: relative;
  width: 100%;
  min-width: 150px;
  font-family: var(--font-sans);
}

.qnk-cb-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-white);
  padding: 11px 14px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.qnk-combobox--compact .qnk-cb-trigger {
  padding: 6px 10px;
  font-size: 12px;
}

.qnk-cb-trigger:hover {
  border-color: rgba(229, 169, 60, 0.5);
}

.qnk-cb-trigger:focus-visible,
.qnk-combobox.is-open .qnk-cb-trigger {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(229, 169, 60, 0.18);
}

.qnk-cb-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.qnk-cb-arrow {
  font-size: 11px;
  color: var(--brass-bright);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}

.qnk-combobox.is-open .qnk-cb-arrow {
  transform: rotate(180deg);
}

.qnk-cb-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: max(100%, 250px);
  max-width: min(420px, 92vw);
  background: #0B101B;
  border: 1px solid rgba(229, 169, 60, 0.55);
  border-radius: 10px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.85);
  z-index: 999;
  overflow: hidden;
}

.qnk-cb-panel[hidden] {
  display: none !important;
}

.qnk-cb-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #070A10;
  border-bottom: 1px solid var(--border-line);
}

.qnk-cb-search-icon {
  color: var(--brass);
  font-size: 13px;
  flex-shrink: 0;
}

.qnk-cb-search {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
}

.qnk-cb-search::placeholder {
  color: var(--text-steel);
}

.qnk-cb-kbd-hint {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-steel);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.qnk-cb-list {
  list-style: none;
  max-height: 235px;
  overflow-y: auto;
  padding: 5px;
  margin: 0;
}

.qnk-cb-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--text-silver);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.1s ease, color 0.1s ease;
}

.qnk-combobox--compact .qnk-cb-option {
  padding: 7px 10px;
  font-size: 12.5px;
}

.qnk-cb-option.is-active {
  background: rgba(229, 169, 60, 0.18);
  color: #fff;
}

.qnk-cb-option.is-selected {
  color: var(--brass-bright);
  font-weight: 700;
}

.qnk-cb-check {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brass-bright);
  opacity: 0;
  flex-shrink: 0;
}

.qnk-cb-option.is-selected .qnk-cb-check {
  opacity: 1;
}

.qnk-cb-empty {
  padding: 14px 12px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-steel);
}

.gate1-blur {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

/* Footer (Architectural Industrial-Prestige Background) */
.site-footer {
  margin-top: auto;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 0%, rgba(229, 169, 60, 0.16), transparent 44%),
    radial-gradient(circle at 86% 18%, rgba(37, 99, 235, 0.18), transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(229, 169, 60, 0.1), transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(180deg, #080E1C 0%, #0A1324 52%, #04070E 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 38px 38px, 38px 38px, 100% 100%;
  border-top: 1px solid rgba(229, 169, 60, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 -20px 60px rgba(0, 0, 0, 0.65);
  padding: 48px 0 30px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.6) 22%, rgba(246, 196, 83, 0.95) 50%, rgba(37, 99, 235, 0.6) 78%, transparent 100%);
}

.footer-watermark {
  position: absolute;
  right: -18px;
  bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 138px);
  font-weight: 700;
  letter-spacing: -4px;
  line-height: 1;
  color: rgba(229, 169, 60, 0.035);
  pointer-events: none;
  user-select: none;
}

.footer-crest-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 20px 24px;
  margin-bottom: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.12) 0%, rgba(16, 24, 41, 0.88) 55%, rgba(37, 99, 235, 0.12) 100%);
  border: 1px solid rgba(229, 169, 60, 0.35);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.footer-zone-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--brass-bright);
  background: rgba(229, 169, 60, 0.09);
  border: 1px solid rgba(229, 169, 60, 0.28);
  padding: 3px 9px;
  border-radius: 5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--brass-bright);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
}

.footer-links a {
  color: var(--text-silver);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-links a:hover {
  color: var(--brass-bright);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 12.5px;
  color: var(--text-silver);
}
