/**
 * VCL vACC Website — Main Stylesheet
 * 
 * Official Brand Colors:
 * - Primary Red:  #b81137
 * - Primary Blue: #00457c
 */

/* ---------------------------------------------------------
   1. CSS Custom Properties (Theme System & Brand Colors)
   --------------------------------------------------------- */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface2: #eef4fa;
  --text: #10213d;
  --muted: #687b95;
  --line: #dbe4ef;
  --primary: #00457c;        /* Official Brand Blue */
  --primary-red: #b81137;    /* Official Brand Red */
  --primary2: #147df5;       /* Highlight Accent Blue */
  --hero: #031427;           /* Deep dark blue hero background */
  --nav: rgba(7, 26, 50, 0.45);
  --shadow: 0 18px 50px rgba(16, 38, 70, 0.08);
}

[data-theme="dark"] {
  --bg: #050d18;
  --surface: #0a1727;
  --surface2: #0e2035;
  --text: #f2f7ff;
  --muted: #9aadc7;
  --line: #172c44;
  --primary: #2985d0;        /* Adjusted contrast blue for dark background */
  --primary-red: #d9264c;    /* Adjusted contrast red for dark background */
  --primary2: #5bb8ff;
  --hero: #020912;
  --nav: rgba(4, 15, 28, 0.52);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

/* ---------------------------------------------------------
   2. Reset & Core Typography
   --------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.25s, color 0.25s;
  background-image: radial-gradient(circle at 10% 20%, rgba(0, 69, 124, 0.04), transparent 25%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* ---------------------------------------------------------
   3. Header Navigation (.nav)
   --------------------------------------------------------- */
.nav {
  position: fixed;
  z-index: 1050;
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  display: flex;
  align-items: center;
  background: var(--nav);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--text);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--line);
}

.nav-inner {
  width: min(1280px, calc(100% - 48px));
  margin: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand-logo {
  height: 85px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  transition: height 0.2s, max-width 0.2s;
}

/* Nav Links & Dropdowns */
.links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}

.nav-item {
  position: relative;
  height: 88px;
  display: flex;
  align-items: center;
}

.nav-link {
  position: relative;
  padding: 35px 4px;
  color: inherit;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link.active:after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--primary-red);
  left: 4px;
  right: 4px;
  bottom: 0;
}

.nav-link .nav-chevron {
  font-size: 8px;
  opacity: 0.65;
  margin-left: 5px;
  display: inline-block;
  transition: transform 0.18s;
}

.nav-item.has-dropdown:hover .nav-chevron,
.nav-item.has-dropdown.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translate(-50%, -7px);
  min-width: 205px;
  padding: 8px;
  background: rgba(3, 20, 39, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
  z-index: 60;
}

.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 7px;
  color: #eaf3ff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: rgba(184, 17, 55, 0.2);
  color: #ffffff;
}

.nav.scrolled .nav-dropdown {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

.nav.scrolled .nav-dropdown a {
  color: var(--text);
}

.nav.scrolled .nav-dropdown a:hover {
  background: rgba(0, 69, 124, 0.08);
  color: var(--primary);
}

/* Actions: Language, Theme, Search, Login */
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-wrap {
  position: relative;
}

.language {
  height: 36px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 14px;
}

.language:hover,
.language[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.08);
}

.nav.scrolled .language:hover,
.nav.scrolled .language[aria-expanded="true"] {
  background: rgba(0, 69, 124, 0.08);
}

.lang-chevron {
  font-size: 9px;
  opacity: 0.75;
  transition: transform 0.2s;
}

.language[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  min-width: 145px;
  padding: 6px;
  background: rgba(3, 20, 39, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: 0.18s;
  z-index: 100;
}

.lang-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #eaf3ff;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.lang-option:hover,
.lang-option.selected {
  background: rgba(184, 17, 55, 0.2);
}

.lang-option .check {
  margin-left: auto;
  opacity: 0;
}

.lang-option.selected .check {
  opacity: 1;
  color: #ff6b8b;
}

/* Theme Control */
.theme-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 2px;
}

.theme-icon {
  font-size: 16px;
  line-height: 1;
  transition: 0.2s;
}

.theme-icon.sun {
  color: #ffd45c;
}

.theme-icon.moon {
  color: #a9bdd5;
  opacity: 0.65;
}

.theme-toggle {
  width: 38px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.14);
  transition: 0.2s;
}

.theme-toggle .thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff !important;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
  transition: 0.2s;
}

.theme-toggle .thumb::before,
.theme-toggle .thumb::after,
.theme-toggle.dark .thumb::before,
.theme-toggle.dark .thumb::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

.theme-toggle.dark .thumb {
  transform: translateX(16px);
  background: #ffffff !important;
}

.nav.scrolled .theme-toggle {
  background: rgba(0, 69, 124, 0.08);
  border-color: var(--line);
}

.theme-control.dark .sun {
  opacity: 0.45;
}

.theme-control.dark .moon {
  opacity: 1;
  color: #c9e2ff;
}

.nav.scrolled .theme-icon.sun {
  color: #e5ad24;
}

.nav.scrolled .theme-icon.moon {
  color: #637893;
}

/* Header Login Button (Styled with Official Brand Blue #00457c) */
.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #00457c;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.18s, background 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 14px rgba(0, 69, 124, 0.35);
  white-space: nowrap;
}

.login-btn:hover {
  background: #00335e;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 69, 124, 0.45);
}

/* Authenticated Member User Menu Pill & Dropdown */
.user-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-menu-btn {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}

.user-menu-btn:hover,
.user-menu-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.nav.scrolled .user-menu-btn {
  background: rgba(0, 69, 124, 0.08);
  border-color: var(--line);
  color: var(--text) !important;
}

.nav.scrolled .user-menu-btn:hover,
.nav.scrolled .user-menu-btn[aria-expanded="true"] {
  background: rgba(0, 69, 124, 0.15);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 69, 124, 0.15);
}

.user-avatar {
  font-size: 13px;
  color: #64b5f6;
}

.user-name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-cid {
  font-size: 11px;
  opacity: 0.8;
}

.user-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 12px;
  background: #091a2e;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 100;
}

.user-menu.show {
  display: block;
}

.nav.scrolled .user-menu {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.user-info-box {
  padding: 4px 6px 8px;
}

.user-info-name {
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}

.nav.scrolled .user-info-name {
  color: var(--text);
}

.user-info-detail {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.nav.scrolled .user-info-detail {
  color: var(--muted);
}

.user-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 8px 0;
}

.nav.scrolled .user-menu-divider {
  background: var(--line);
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 7px;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.user-menu-item.logout {
  color: #ff6b8b;
}

.user-menu-item.logout:hover {
  background: rgba(184, 17, 55, 0.25);
  color: #ffffff;
}

.nav.scrolled .user-menu-item {
  color: var(--text);
}

.nav.scrolled .user-menu-item.logout {
  color: var(--primary-red);
}

.nav.scrolled .user-menu-item.logout:hover {
  background: rgba(184, 17, 55, 0.1);
  color: var(--primary-red);
}

.mobile-menu {
  display: none;
  cursor: pointer;
}

/* ---------------------------------------------------------
   4. Homepage Hero (.hero)
   --------------------------------------------------------- */
.hero {
  min-height: 100svh;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--hero);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 20, 39, 0.80) 0%, rgba(3, 20, 39, 0.50) 45%, rgba(3, 20, 39, 0.12) 100%),
              radial-gradient(ellipse at 70% 30%, rgba(184, 17, 55, 0.10), transparent 60%);
  transform: scale(1.02);
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 16, 31, 0.35), transparent 30%, rgba(0, 0, 0, 0.04));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 48px));
  margin: auto;
  padding-top: 45px;
  color: #ffffff;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: #ff6b8b;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(52px, 7vw, 88px);
  line-height: 0.95;
  margin: 0 0 20px;
  font-weight: 850;
  letter-spacing: -4px;
}

.hero h1 span {
  color: #144f7d;
}

.hero h2 {
  font-size: clamp(25px, 3vw, 39px);
  line-height: 1.1;
  max-width: 620px;
  margin: 0 0 22px;
  font-weight: 500;
  letter-spacing: -1px;
}

.hero p {
  max-width: 590px;
  line-height: 1.7;
  color: #d6e6f8;
  margin: 0 0 30px;
  font-size: 16px;
}

.buttons {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 14px 22px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s, background 0.2s;
  color: #ffffff;
}

.btn.primary {
  background: #00457c;
  border-color: #00457c;
  box-shadow: 0 4px 14px rgba(0, 69, 124, 0.35);
}

.btn.primary:hover {
  background: #00335e;
  border-color: #00335e;
  box-shadow: 0 6px 18px rgba(0, 69, 124, 0.45);
}

.btn.secondary,
.btn.accent {
  background: #b81137;
  border-color: #b81137;
  box-shadow: 0 4px 14px rgba(184, 17, 55, 0.35);
}

.btn.secondary:hover,
.btn.accent:hover {
  background: #960d2b;
  border-color: #960d2b;
  box-shadow: 0 6px 18px rgba(184, 17, 55, 0.45);
}

.btn:hover {
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  text-align: center;
  font-size: 11px;
  opacity: 0.8;
}

.scroll-cue .circle {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 7px auto 0;
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  50% { transform: translateY(5px); }
}

/* ---------------------------------------------------------
   5. Section & Grids (.section, .stats, .cards)
   --------------------------------------------------------- */
.section {
  padding: 92px 0;
}

.container {
  width: min(1280px, calc(100% - 48px));
  margin: auto;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
}

.kicker {
  color: var(--primary-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.section h3 {
  font-size: 34px;
  margin: 8px 0 8px;
  letter-spacing: -1px;
}

.section-intro {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.more {
  color: var(--primary-red);
  font-size: 13px;
  font-weight: 700;
}

/* Stat Cards */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon {
  font-size: 28px;
}

.stat small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.num {
  font-size: 30px;
  font-weight: 750;
  margin-top: 5px;
}

.live {
  font-size: 10px;
  color: #15a66c;
  margin-left: 8px;
}

/* Feature Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  min-height: 180px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #00457c, #031427);
  color: #ffffff;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.2);
}

.card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 20, 39, 0.85), rgba(3, 20, 39, 0.08));
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-icon {
  font-size: 25px;
  margin-bottom: auto;
}

.card h4 {
  font-size: 19px;
  margin: 0 0 7px;
}

.card p {
  font-size: 12px;
  line-height: 1.5;
  color: #d6e4f5;
  margin: 0;
}

.card:nth-child(1) { background: linear-gradient(135deg, #b81137, #031427); }
.card:nth-child(2) { background: linear-gradient(135deg, #00457c, #031427); }
.card:nth-child(3) { background: linear-gradient(135deg, #185a9d, #031427); }
.card:nth-child(4) { background: linear-gradient(135deg, #8c0d29, #031427); }

/* ---------------------------------------------------------
   6. Sub-Page Hero & Content Layout
   --------------------------------------------------------- */
.page-hero {
  position: relative;
  margin-top: 0;
  padding-top: 88px;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--hero);
  color: #ffffff;
}

.page-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(3, 20, 39, 0.88) 0%, rgba(3, 20, 39, 0.55) 50%, rgba(3, 20, 39, 0.18) 100%),
                    var(--page-hero-banner, none);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
  z-index: 1;
}

.page-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 12, 24, 0.6) 0%, transparent 55%);
  z-index: 1;
}

.page-hero-inner,
.page-hero .container {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 35px 0 46px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #b9cbe0;
  font-size: 12px;
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.breadcrumb .sep {
  opacity: 0.45;
}

.page-kicker {
  font-size: 11px;
  letter-spacing: 2.8px;
  color: #ff6b8b;
  font-weight: 800;
  margin-bottom: 9px;
}

.page-title {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
  margin: 0 0 12px;
  letter-spacing: -2px;
}

.page-description {
  max-width: 680px;
  color: #d5e4f5;
  line-height: 1.65;
  margin: 0;
  font-size: 15px;
}

.page-section {
  padding: 72px 0;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 52px;
  align-items: start;
}

.content {
  min-width: 0;
}

.content h2 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 0 0 14px;
}

.content h3 {
  font-size: 21px;
  margin: 34px 0 10px;
}

.content p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 18px;
}

.lead {
  font-size: 18px !important;
  line-height: 1.75 !important;
  color: var(--text) !important;
}

.accent {
  border-left: 3px solid var(--primary-red);
  padding: 15px 20px;
  background: var(--surface2);
  border-radius: 0 10px 10px 0;
  margin: 26px 0;
}

.accent p {
  margin: 0;
  color: var(--text);
}

.side {
  position: sticky;
  top: 96px;
}

.side-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.side-title {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 750;
  font-size: 14px;
}

.side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  transition: 0.18s;
}

.side-nav a:last-child {
  border-bottom: 0;
}

.side-nav a:hover,
.side-nav a.active {
  color: var(--primary-red);
  background: rgba(184, 17, 55, 0.055);
}

.side-nav a.active {
  font-weight: 700;
}

.side-nav span {
  font-size: 10px;
  opacity: 0.55;
}

/* ---------------------------------------------------------
   7. Disclaimer & Shared Footer (.disclaimer-wrap, .footer)
   --------------------------------------------------------- */
main,
.page-section {
  flex: 1 0 auto;
}

.disclaimer-wrap {
  margin-top: auto;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
  transition: background 0.25s, border-color 0.25s;
}

body > .footer:first-of-type,
.footer:not(.disclaimer-wrap + .footer) {
  margin-top: auto;
}

.disclaimer-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

.footer {
  background: #031427;
  color: #ffffff;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copy {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  opacity: 0.85;
}

.footer-links a:hover {
  color: #ff6b8b;
  opacity: 1;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-socials a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.footer-socials a:hover {
  color: #ffffff;
  background: var(--primary-red);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------
   8. Responsive Media Queries
   --------------------------------------------------------- */
@media (max-width: 1100px) {
  .links { gap: 14px; }
  .nav-inner { gap: 18px; }
  .brand-sub { display: none; }
  .layout { grid-template-columns: 1fr 250px; gap: 30px; }
}

@media (max-width: 900px) {
  .theme-control {
    display: none !important;
  }

  .mobile-menu {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    cursor: pointer;
    border-radius: 8px;
    padding: 0;
    transition: background 0.18s, border-color 0.18s;
  }

  .mobile-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 18px;
    height: 18px;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-icon .bar {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
    transition: transform 0.25s ease, background-color 0.2s ease;
  }

  /* When mobile menu is active/open: morph to vertical bars ||| */
  .nav.mobile-open .mobile-icon {
    transform: rotate(90deg);
  }

  .nav.mobile-open .mobile-menu {
    background: rgba(0, 69, 124, 0.25);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 12px rgba(0, 69, 124, 0.35);
  }

  .nav.scrolled .mobile-menu {
    border-color: var(--line);
    background: rgba(0, 69, 124, 0.06);
    color: var(--text);
  }

  .nav.scrolled.mobile-open .mobile-menu {
    background: rgba(0, 69, 124, 0.15);
    border-color: var(--primary);
  }

  .mobile-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
  }

  .nav.scrolled .mobile-menu:hover {
    background: rgba(0, 69, 124, 0.14);
    border-color: var(--primary);
  }

  .links {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: rgba(3, 20, 39, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    z-index: 55;
  }

  .nav.mobile-open .links {
    display: flex;
  }

  .nav.scrolled .links {
    background: var(--surface);
    border-color: var(--line);
    box-shadow: var(--shadow);
  }

  .nav-item {
    height: auto;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    padding: 12px 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav.scrolled .nav-link {
    border-color: var(--line);
  }

  .nav-dropdown {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 10px 16px;
    min-width: 0;
  }

  .nav-item.has-dropdown.open .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    padding: 8px 12px;
  }

  .nav-inner { gap: 15px; }
  .stats, .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-content { padding-top: 35px; }
  .hero h1 { font-size: 58px; }
  .hero h2 { font-size: 28px; }
  .section { padding: 70px 0; }
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .footer-left {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .footer-copy {
    text-align: center;
  }
  .footer-right {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-left: 0;
    width: 100%;
  }
  .footer-links {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 12px 18px;
  }
  .footer-socials {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .nav { height: 68px; }
  .page-hero { margin-top: 0; padding-top: 68px; min-height: 320px; }
  .links { top: 68px; }
  .nav-inner, .container, .hero-content, .page-hero-inner { width: calc(100% - 24px); }
  .brand-logo { height: 42px; max-width: 140px; }
  .actions { gap: 6px; }
  .language { padding: 0 6px; font-size: 12.5px; }
  .user-menu-btn { height: 32px; padding: 0 10px; font-size: 12px; gap: 5px; }
  .user-menu-btn .user-avatar { font-size: 11px; }
  .login-btn { padding: 6px 10px; font-size: 12px; }
  .stats, .cards { grid-template-columns: 1fr; }
  .hero { height: 100svh; }
  .hero h1 { font-size: 50px; letter-spacing: -3px; }
  .hero h2 { font-size: 25px; }
  .hero p { font-size: 14px; }
  .buttons { flex-wrap: wrap; }
  .section h3 { font-size: 28px; }
  .section-head { align-items: flex-start; }
}

/* ---------------------------------------------------------
   Staff Page & Modern Profile Cards (Elevated Aviation UI)
   --------------------------------------------------------- */
.staff-intro-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 32px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.staff-card-elevated {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.staff-card-elevated:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 45, 90, 0.12);
  border-color: rgba(0, 69, 124, 0.35);
}

.staff-img-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #071a32, #00457c);
  overflow: hidden;
}

.staff-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.staff-card-elevated:hover .staff-img-wrap img {
  transform: scale(1.04);
}

.staff-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a2544, #00457c);
  color: #ffffff;
}

.staff-avatar-placeholder .initials {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 2px;
  opacity: 0.9;
}

.staff-avatar-placeholder .icon {
  font-size: 24px;
  margin-top: 6px;
  opacity: 0.7;
}

.staff-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 20, 39, 0.1) 0%, rgba(3, 20, 39, 0.82) 100%);
  pointer-events: none;
}

.staff-header-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.staff-callsign-badge {
  background: rgba(3, 20, 39, 0.75);
  backdrop-filter: blur(10px);
  color: #65c3ff;
  border: 1px solid rgba(101, 195, 255, 0.35);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.staff-cid-badge {
  background: rgba(3, 20, 39, 0.75);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.staff-name-overlay {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  z-index: 2;
  color: #ffffff;
}

.staff-name-overlay h3 {
  font-size: 21px;
  font-weight: 750;
  margin: 0;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.staff-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.staff-roles-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.staff-role-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 69, 124, 0.08);
  color: var(--primary);
  border: 1px solid rgba(0, 69, 124, 0.18);
}

[data-theme="dark"] .staff-role-pill {
  background: rgba(59, 156, 255, 0.12);
  border-color: rgba(59, 156, 255, 0.25);
  color: #72b9ff;
}

.staff-role-pill.lead-role {
  background: linear-gradient(135deg, rgba(184, 17, 55, 0.12), rgba(0, 69, 124, 0.15));
  color: var(--text);
  border-color: rgba(184, 17, 55, 0.3);
  font-weight: 700;
}

.staff-bio {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 18px;
  flex-grow: 1;
}

.staff-bio a {
  color: var(--primary2);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.staff-bio a:hover {
  color: var(--primary-red);
}

.staff-footer-action {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.staff-contact-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: 0.2s;
}

.staff-contact-link:hover {
  color: var(--primary2);
  text-decoration: underline;
}

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

/* ==========================================================================
   Join Us Page Styles (UD-057)
   ========================================================================== */
.join-closed-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(184, 17, 55, 0.18));
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.join-closed-icon {
  font-size: 28px;
  color: #ef4444;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.join-closed-text h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 750;
  color: #dc2626;
}

[data-theme="dark"] .join-closed-text h4 {
  color: #f87171;
}

.join-closed-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.9;
}

.join-card-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 34px;
  box-shadow: var(--shadow);
  margin-bottom: 34px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary2);
  margin-bottom: 12px;
}

.join-card-section h2 {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.5px;
  margin: 0 0 24px;
  color: var(--text);
}

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

.join-req-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.join-req-item .req-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 69, 124, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

[data-theme="dark"] .join-req-item .req-icon {
  background: rgba(91, 184, 255, 0.15);
  color: var(--primary2);
}

.join-req-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--text);
}

.join-req-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* Intake Comparison Grid */
.intake-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 34px;
}

.intake-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.intake-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 69, 124, 0.1);
  border-color: rgba(0, 69, 124, 0.3);
}

.intake-card.status-open {
  border-top: 4px solid #16a34a;
}

.intake-card.status-closed {
  border-top: 4px solid #ef4444;
}

.intake-card-header {
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.intake-card-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.intake-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 69, 124, 0.15), rgba(20, 125, 245, 0.2));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

[data-theme="dark"] .intake-icon {
  color: var(--primary2);
}

.intake-card-title-group h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 750;
  color: var(--text);
}

.intake-sub {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

.intake-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.intake-badge.badge-open {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.intake-badge.badge-closed {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px currentColor;
}

.intake-card-body {
  padding: 22px 26px;
  flex-grow: 1;
}

.intake-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 20px;
}

.intake-req-group h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}

.intake-numbered-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.intake-numbered-list li {
  margin-bottom: 8px;
}

.intake-email-link {
  color: var(--primary2);
  font-weight: 600;
  text-decoration: underline;
  word-break: break-all;
}

.intake-email-link:hover {
  color: var(--primary-red);
}

.intake-card-footer {
  padding: 18px 26px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface2);
}

.intake-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
}

.intake-btn.disabled {
  background: rgba(148, 163, 184, 0.2);
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: not-allowed;
  opacity: 0.75;
}

/* Steps Container */
.apply-steps-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 22px 0 28px;
}

.apply-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.step-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

/* Integrity Warning Callout */
.join-warning-callout {
  background: linear-gradient(135deg, rgba(184, 17, 55, 0.08), rgba(0, 69, 124, 0.08));
  border-left: 4px solid var(--primary-red);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.warning-icon {
  font-size: 26px;
  color: var(--primary-red);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.warning-content h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 750;
  color: var(--text);
}

.warning-highlight {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--primary-red);
  font-weight: 600;
}

.warning-sub {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 900px) {
  .join-general-grid,
  .intake-comparison-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   Documents & Policies Page (about/documents.php)
   --------------------------------------------------------- */
.docs-hero-overview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 36px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.docs-overview-left {
  flex: 1;
  min-width: 0;
}

.docs-overview-left h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 10px 0 12px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.docs-overview-left .lead {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 680px;
}

.docs-stats-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}

.stat-pill .stat-num {
  font-size: 16px;
  font-weight: 850;
  color: var(--primary2);
}

.stat-pill .stat-label {
  color: var(--muted);
  font-weight: 600;
  text-transform: capitalize;
}

.docs-quick-toc {
  width: 260px;
  flex-shrink: 0;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}

.docs-quick-toc .toc-header {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.docs-quick-toc .toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-quick-toc .toc-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}

.docs-quick-toc .toc-list li a:hover {
  background: rgba(0, 69, 124, 0.06);
  border-color: var(--primary2);
  color: var(--primary2);
  transform: translateX(2px);
}

.docs-quick-toc .toc-counter {
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(0, 69, 124, 0.1);
  color: var(--primary2);
}

.docs-section-group {
  margin-bottom: 40px;
}

.docs-section-head {
  margin-bottom: 20px;
}

.docs-section-head h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 6px 0 0;
  letter-spacing: -0.01em;
  color: var(--text);
}

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

.doc-card-elevated {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(16, 38, 70, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.doc-card-elevated:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(16, 38, 70, 0.09);
  border-color: rgba(20, 125, 245, 0.35);
}

.doc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.doc-file-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(184, 17, 55, 0.1);
  color: var(--primary-red);
}

.doc-file-tag i {
  font-size: 14px;
}

.doc-meta-badge {
  font-size: 11px;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.doc-meta-badge.scope-vacc {
  background: rgba(0, 69, 124, 0.1);
  color: var(--primary2);
  border: 1px solid rgba(0, 69, 124, 0.2);
}

.doc-meta-badge.scope-vatsea {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.doc-meta-badge.scope-vatsim {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.doc-title {
  font-size: 16px;
  font-weight: 750;
  line-height: 1.45;
  margin: 0 0 16px;
  color: var(--text);
  flex-grow: 1;
}

.doc-specs-row {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  font-size: 12px;
}

.doc-specs-row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.spec-val {
  color: var(--text);
  font-weight: 700;
}

.doc-actions-row {
  display: flex;
  gap: 8px;
}

.btn-doc-read,
.btn-doc-download {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.btn-doc-read {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-doc-read:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-doc-download {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.btn-doc-download:hover {
  background: var(--surface2);
  color: var(--primary-red);
  border-color: var(--primary-red);
}

.docs-legal-note {
  margin-top: 36px;
  padding: 14px 18px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.docs-legal-note i {
  font-size: 16px;
  color: var(--primary2);
  flex-shrink: 0;
  margin-top: 1px;
}

.docs-legal-note p {
  margin: 0;
}

/* Document Viewer Modal */
.doc-modal-viewer {
  border: none;
  border-radius: 16px;
  padding: 0;
  width: 92vw;
  max-width: 1100px;
  height: 88vh;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.doc-modal-viewer:not([open]) {
  display: none;
}

.doc-modal-viewer::backdrop {
  background: rgba(3, 16, 32, 0.75);
  backdrop-filter: blur(6px);
}

.doc-viewer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: var(--surface2);
  border-bottom: 1px solid var(--line);
  gap: 16px;
  flex-shrink: 0;
}

.doc-viewer-meta small {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  color: var(--primary2);
  letter-spacing: 0.05em;
  display: block;
}

.doc-viewer-meta h4 {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.doc-viewer-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-viewer-close-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.doc-viewer-close-btn:hover {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
}

.doc-viewer-frame-wrap {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #2b2b2b;
  position: relative;
}

.doc-viewer-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 900px) {
  .docs-hero-overview {
    flex-direction: column;
    padding: 24px;
  }
  .docs-quick-toc {
    width: 100%;
  }
}

/* ---------------------------------------------------------
   Logo Pack & Brand Assets Page (about/logo.php)
   --------------------------------------------------------- */
.logo-hero-overview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 36px;
  box-shadow: var(--shadow);
}

.logo-hero-overview h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 10px 0 12px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-hero-overview .lead {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 720px;
}

.logo-hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.logo-feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-feat-item i {
  font-size: 24px;
  color: var(--primary2);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-feat-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 750;
  color: var(--text);
}

.logo-feat-item span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.logo-section-group {
  margin-bottom: 40px;
}

.logo-section-head {
  margin-bottom: 22px;
}

.logo-section-head h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 6px 0 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo-section-head .section-intro {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: 680px;
}

.logo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.logo-card-elevated {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(16, 38, 70, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.logo-card-elevated:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(16, 38, 70, 0.1);
  border-color: rgba(20, 125, 245, 0.35);
}

.logo-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.logo-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.logo-type-badge.colour-badge {
  background: rgba(0, 69, 124, 0.1);
  color: var(--primary2);
}

.logo-type-badge.bw-badge {
  background: rgba(100, 116, 139, 0.12);
  color: var(--text);
}

.logo-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  color: var(--text);
}

.logo-bg-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.bg-opt {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}

.bg-opt:hover {
  color: var(--text);
}

.bg-opt.active {
  background: var(--surface);
  color: var(--primary2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.logo-preview-stage {
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease;
}

.logo-preview-stage.bg-light {
  background: #ffffff;
}

.logo-preview-stage.bg-dark {
  background: #040d1a;
}

.logo-preview-stage.bg-checker {
  background-color: #ffffff;
  background-image: 
    linear-gradient(45deg, #e6edf5 25%, transparent 25%), 
    linear-gradient(-45deg, #e6edf5 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #e6edf5 75%), 
    linear-gradient(-45deg, transparent 75%, #e6edf5 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

.logo-display-img {
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

.logo-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px;
  flex-grow: 1;
}

.logo-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  padding: 12px 14px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 12px;
}

.logo-specs-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-actions-row {
  display: flex;
  gap: 8px;
}

.btn-logo-action {
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-logo-action.primary {
  flex: 1;
}

/* Square Variants Grid */
.logo-square-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.logo-square-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 3px 14px rgba(16, 38, 70, 0.04);
}

.square-preview-stage {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
}

.square-preview-stage.bg-light {
  background: #ffffff;
}

.square-preview-stage.bg-dark {
  background: #040d1a;
}

.square-preview-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.square-card-info {
  flex: 1;
  min-width: 0;
}

.square-card-info h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 750;
  color: var(--text);
}

.square-card-info small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.square-actions {
  display: flex;
  gap: 6px;
}

/* Color Palette Cards Grid */
.palette-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.palette-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(16, 38, 70, 0.04);
}

.palette-swatch {
  height: 80px;
  width: 100%;
}

.palette-body {
  padding: 16px;
}

.palette-body h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 750;
  color: var(--text);
}

.palette-role {
  margin: 0 0 14px;
  font-size: 11.5px;
  color: var(--muted);
}

.palette-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hex-copy-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hex-copy-btn span {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
}

.hex-copy-btn code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
}

.hex-copy-btn:hover {
  background: rgba(0, 69, 124, 0.08);
  border-color: var(--primary2);
  color: var(--primary2);
}

.rgb-val {
  font-size: 11px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Brand Guidelines (Do's & Don'ts) */
.rules-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.rule-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.rule-box.rule-do {
  border-top: 4px solid #10b981;
}

.rule-box.rule-dont {
  border-top: 4px solid var(--primary-red);
}

.rule-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.rule-do .rule-box-header i {
  color: #10b981;
  font-size: 20px;
}

.rule-dont .rule-box-header i {
  color: var(--primary-red);
  font-size: 20px;
}

.rule-box-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  color: var(--text);
}

.rule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.rule-do .rule-list li i {
  color: #10b981;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.rule-dont .rule-list li i {
  color: var(--primary-red);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* In-Page Toast */
.logo-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--hero);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: translateY(60px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

.logo-toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 900px) {
  .logo-hero-overview {
    padding: 24px;
  }
  .logo-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   Pilot Scenery Directory Page (pilot/sceneries.php)
   --------------------------------------------------------- */
.scenery-hero-overview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.scenery-hero-overview h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 10px 0 12px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.scenery-hero-overview .lead {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 720px;
}

.scenery-stats-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.scenery-stat-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
}

.scenery-stat-pill .stat-num {
  font-size: 15px;
  font-weight: 850;
  color: var(--primary2);
}

.scenery-stat-pill .stat-label {
  color: var(--muted);
  font-weight: 600;
}

/* Filter & Search Toolbar */
.scenery-filter-toolbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(16, 38, 70, 0.04);
}

.scenery-search-wrap {
  position: relative;
  margin-bottom: 20px;
}

.scenery-search-wrap .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
}

.scenery-search-input {
  width: 100%;
  padding: 13px 44px 13px 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.scenery-search-input:focus {
  border-color: var(--primary2);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(20, 125, 245, 0.15);
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: color 0.15s;
}

.search-clear-btn:hover {
  color: var(--primary-red);
}

.scenery-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group-label {
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.filter-pills {
  display: inline-flex;
  background: var(--surface2);
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.filter-pill {
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  color: var(--text);
}

.filter-pill.active {
  background: var(--surface);
  color: var(--primary2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-weight: 750;
}

.filter-pill.toggle-recommended {
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
}

.filter-pill.toggle-recommended.active {
  background: rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.4);
  color: #b45309;
}

.filter-pill.toggle-recommended i {
  color: #eab308;
}

/* Airport Chips Jumper Bar */
.scenery-airport-chips-wrap {
  margin-top: 18px;
}

.airport-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.airport-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.airport-chip:hover {
  border-color: var(--primary2);
  color: var(--primary2);
}

.airport-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.airport-chip.active .chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.chip-icao {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
}

.chip-count {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 69, 124, 0.1);
  color: var(--primary2);
}

/* Results Count Bar */
.scenery-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}

.btn-reset-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--primary2);
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.btn-reset-filters:hover {
  text-decoration: underline;
}

/* Scenery Cards Grid */
.scenery-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}

.scenery-card-elevated {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 18px rgba(16, 38, 70, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.scenery-card-elevated:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(16, 38, 70, 0.09);
  border-color: rgba(20, 125, 245, 0.35);
}

.scenery-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.scenery-icao-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scenery-icao-code {
  font-size: 16px;
  font-weight: 850;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 8px;
  letter-spacing: 0.05em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scenery-airport-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.content .scenery-airport-name,
.scenery-airport-name {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 750;
  color: var(--text);
  line-height: 1.25 !important;
}

.scenery-airport-city {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.scenery-badges-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.scenery-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-recommended {
  background: rgba(234, 179, 8, 0.15);
  color: #b45309;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.badge-recommended i {
  color: #eab308;
}

.badge-license.freeware {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-license.payware {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

/* Supported Simulators Row */
.scenery-sims-container {
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.sims-label {
  display: block;
  font-size: 10.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 6px;
}

.sim-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sim-pill {
  font-size: 11px;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
}

.sim-pill.sim-msfs {
  background: rgba(14, 165, 233, 0.1);
  color: #0284c7;
  border-color: rgba(14, 165, 233, 0.25);
}

.sim-pill.sim-xp {
  background: rgba(249, 115, 22, 0.1);
  color: #ea580c;
  border-color: rgba(249, 115, 22, 0.25);
}

.sim-pill.sim-p3d {
  background: rgba(168, 85, 247, 0.1);
  color: #9333ea;
  border-color: rgba(168, 85, 247, 0.25);
}

.sim-pill.sim-fsx {
  background: rgba(100, 116, 139, 0.12);
  color: var(--muted);
  border-color: rgba(100, 116, 139, 0.2);
}

.sim-pill.sim-generic {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

/* Remarks / Notes */
.scenery-remark-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0, 69, 124, 0.04);
  border-left: 3px solid var(--primary2);
  border-radius: 0 8px 8px 0;
  margin-bottom: 18px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  flex-grow: 1;
}

.scenery-remark-box .remark-icon {
  font-size: 13px;
  color: var(--primary2);
  margin-top: 1px;
  flex-shrink: 0;
}

.remark-content {
  word-break: break-word;
}

.remark-content a {
  color: var(--primary2);
  text-decoration: underline;
  font-weight: 600;
}

/* Actions Row */
.scenery-actions-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-scenery-action {
  flex: 1;
  font-size: 12.5px;
  font-weight: 750;
  padding: 10px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-icon-copy,
.btn.btn-icon-copy {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 16px;
  flex-shrink: 0;
  background: #64748b !important;
  border: 1px solid #64748b !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(100, 116, 139, 0.25) !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon-copy:hover,
.btn.btn-icon-copy:hover {
  background: #475569 !important;
  border-color: #475569 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.35) !important;
  transform: translateY(-2px);
}

/* Empty State */
.scenery-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.empty-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
}

.scenery-empty-state h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.scenery-empty-state p {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.6;
}

.empty-reset-btn {
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .scenery-hero-overview {
    padding: 24px;
  }
  .scenery-filter-toolbar {
    padding: 18px;
  }
  .scenery-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Pilot Cue Card Directory Styles (.cue-card-...)
   ========================================================================== */
.cue-hero-overview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.cue-stats-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.cue-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.cue-stat-pill .stat-num {
  font-weight: 800;
  color: var(--primary2);
  background: rgba(0, 69, 124, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.cue-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.cue-card-elevated {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.cue-card-elevated:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 45, 90, 0.12);
  border-color: rgba(0, 69, 124, 0.35);
}

.cue-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.cue-icao-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cue-icao-code {
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 1px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #002d5a);
  padding: 9px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 69, 124, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
}

.cue-airport-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.content .cue-airport-name,
.cue-airport-name {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 750;
  color: var(--text);
  line-height: 1.25 !important;
}

.cue-airport-city {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.cue-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.cue-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cue-badge.badge-format {
  background: rgba(0, 69, 124, 0.1);
  color: var(--primary2);
  border: 1px solid rgba(0, 69, 124, 0.2);
}

.cue-card-details-box {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 12.5px;
  line-height: 1.6;
}

.cue-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}

.cue-meta-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cue-meta-label {
  color: var(--muted);
  font-weight: 600;
}

.cue-meta-value {
  color: var(--text);
  font-weight: 700;
}

.cue-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cue-actions-row .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  min-width: 0;
}

.cue-actions-row .btn-icon-copy {
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px;
  font-size: 16px;
}

@media (max-width: 900px) {
  .cue-hero-overview {
    padding: 24px;
  }
  .cue-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Pilot Weather & Live METAR Dashboard Styles (.weather-...)
   ========================================================================== */
.weather-hero-overview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.weather-search-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.weather-search-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.weather-search-input-wrap {
  position: relative;
  flex: 1;
}

.weather-search-input-wrap .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
}

.weather-input {
  width: 100%;
  padding: 13px 18px 13px 44px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.weather-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 69, 124, 0.18);
  background: var(--surface);
}

.weather-quick-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.quick-add-label {
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-right: 4px;
}

.quick-hub-btn {
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.quick-hub-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.weather-toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.weather-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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

.btn-toolbar-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 750;
  padding: 8px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  line-height: 1.2;
}

.btn-toolbar-action.refresh {
  background: var(--surface2);
  border-color: var(--line);
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-toolbar-action.refresh:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 69, 124, 0.25);
}

.btn-toolbar-action.clear {
  background: rgba(184, 17, 55, 0.08);
  border-color: rgba(184, 17, 55, 0.28);
  color: #dc2626;
}

[data-theme="dark"] .btn-toolbar-action.clear {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.btn-toolbar-action.clear:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(184, 17, 55, 0.35);
}

.weather-cards-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.weather-card-elevated {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  cursor: grab;
}

.weather-card-elevated:active {
  cursor: grabbing;
}

.weather-card-elevated.dragging {
  opacity: 0.45;
  transform: scale(0.98);
}

.weather-card-elevated.drag-over {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 69, 124, 0.25);
  background: var(--surface2);
}

.weather-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.weather-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.weather-drag-handle {
  color: var(--muted);
  font-size: 18px;
  cursor: grab;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  padding: 2px;
}

.weather-card-elevated:hover .weather-drag-handle {
  opacity: 1;
}

.weather-icao-code {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 1px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #002d5a);
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 69, 124, 0.25);
  min-width: 72px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.weather-airport-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.content .weather-airport-name,
.weather-airport-name {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 750;
  color: var(--text);
  line-height: 1.25 !important;
}

.weather-airport-city {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.weather-card-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Flight Category Badges */
.flight-cat-badge {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.flight-cat-badge.cat-vfr {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.flight-cat-badge.cat-mvfr {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.flight-cat-badge.cat-ifr {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.flight-cat-badge.cat-lifr {
  background: rgba(168, 85, 247, 0.15);
  color: #9333ea;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.flight-cat-badge.cat-unknown {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* Decoded Weather Grid */
.weather-decoded-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.weather-metric-box {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metric-label {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.metric-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

/* Raw METAR String Box */
.raw-metar-container {
  position: relative;
  background: #081424;
  border: 1px solid rgba(0, 102, 204, 0.35);
  border-radius: 12px;
  padding: 14px 46px 14px 16px;
  margin-bottom: 14px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.content .raw-metar-text,
.raw-metar-text {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Monaco, Courier, monospace;
  font-size: 14.5px;
  font-weight: 750;
  line-height: 1.6;
  color: #ffffff !important;
  margin: 0;
  word-break: break-all;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.copy-metar-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.copy-metar-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.weather-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

.weather-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-card-action {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-card-action:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-card-action.danger:hover {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
}

.btn-card-reorder {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-card-reorder:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Spin animation for reload buttons */
.spin-anim {
  animation: spin 0.8s linear infinite;
}

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

@media (max-width: 768px) {
  .weather-search-form {
    flex-direction: column;
  }
  .weather-search-form .btn {
    width: 100%;
  }
  .weather-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .weather-card-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   VCL vACC Airports & Geospatial Map Styles
   ========================================================================== */
.airports-map-wrapper {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-top: 24px;
}

.airports-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.map-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-title i {
  color: var(--primary2);
}

.map-subtitle {
  font-size: 13px;
  color: var(--muted);
}

/* Leaflet Custom Airport Pins */
.vcl-airport-marker {
  background: transparent;
  border: none;
}

.vcl-marker-pin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #00457c;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
  white-space: nowrap;
}

[data-theme="dark"] .vcl-marker-pin {
  background: #0066cc;
  border-color: #0f172a;
}

.vcl-marker-pin:hover {
  transform: scale(1.15) translateY(-2px);
  background: #b81137;
  z-index: 1000;
}

.vcl-marker-pin .marker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  display: inline-block;
}

/* Leaflet Custom Popup Styling */
.vcl-leaflet-popup .leaflet-popup-content-wrapper {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 0;
  overflow: hidden;
}

.vcl-leaflet-popup .leaflet-popup-content {
  margin: 0;
  line-height: 1.4;
}

.vcl-leaflet-popup .leaflet-popup-tip {
  background: var(--surface);
  border: 1px solid var(--line);
}

.vcl-map-popup {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 240px;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.popup-icao {
  font-size: 14px;
  font-weight: 850;
  color: #ffffff;
  background: var(--primary);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.popup-country {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}

.popup-title {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  color: var(--text);
  line-height: 1.3;
}

.popup-coords {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
}

.popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.popup-btn {
  font-size: 11px;
  font-weight: 750;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.popup-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Airport Cards Grid */
.airport-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.airport-card-elevated {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.airport-card-elevated:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 69, 124, 0.35);
  box-shadow: 0 8px 24px rgba(0, 69, 124, 0.1);
}

[data-theme="dark"] .airport-card-elevated:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.airport-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.airport-icao-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.airport-flag {
  font-size: 20px;
  line-height: 1;
}

.airport-icao-badge {
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 1px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #002d5a);
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 69, 124, 0.2);
}

.airport-badges-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.airport-status-badge {
  font-size: 11px;
  font-weight: 750;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.airport-status-badge.badge-active {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.airport-info-body {
  margin-bottom: 18px;
}

.airport-title {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 750;
  color: var(--text);
  line-height: 1.35;
}

.airport-location {
  margin: 0 0 12px 0;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.airport-coord-box {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.coord-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.coord-item small {
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.coord-item span {
  font-size: 12px;
  font-weight: 750;
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  color: var(--text);
}

.btn-locate-map {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--primary2);
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-locate-map:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.airport-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.btn-airport-tool {
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.2;
}

.btn-airport-tool i {
  color: var(--primary2);
  font-size: 13px;
  transition: color 0.18s ease;
}

.btn-airport-tool:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 69, 124, 0.22);
}

.btn-airport-tool:hover i {
  color: #ffffff;
}

.card-focus-highlight {
  animation: cardHighlight 2.5s ease-out;
}

@keyframes cardHighlight {
  0% {
    box-shadow: 0 0 0 4px #0066cc, 0 8px 30px rgba(0, 102, 204, 0.4);
    border-color: #0066cc;
  }
  70% {
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.3), 0 8px 30px rgba(0, 102, 204, 0.15);
    border-color: #0066cc;
  }
  100% {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  }
}

/* ==========================================================================
   VCL vACC Preferred Routes Styles
   ========================================================================== */
.vcl-routes-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.vcl-route-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px;
}

.vcl-route-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 69, 124, 0.3);
  box-shadow: 0 8px 24px rgba(0, 69, 124, 0.08);
}

[data-theme="dark"] .vcl-route-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.vcl-route-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.vcl-city-pair {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pair-endpoint {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pair-endpoint.arr {
  text-align: right;
}

.endpoint-icao {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0.8px;
  color: var(--text);
  line-height: 1.1;
}

.endpoint-name {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.pair-connector {
  display: flex;
  align-items: center;
  position: relative;
  width: 90px;
  justify-content: center;
}

.corridor-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line), var(--line) 4px, transparent 4px, transparent 8px);
}

.plane-icon {
  font-size: 16px;
  color: var(--primary2);
  background: var(--surface);
  padding: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transform: rotate(90deg);
}

.vcl-route-meta-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.route-pill {
  font-size: 11.5px;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.route-id-pill {
  background: rgba(0, 69, 124, 0.1);
  color: var(--primary2);
  border: 1px solid rgba(0, 69, 124, 0.2);
}

.route-date-pill {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* Full Width Filed Route Terminal Section */
.vcl-route-body {
  width: 100%;
}

.route-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.body-label {
  font-size: 11.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-copy-route-inline {
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-copy-route-inline:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.route-string-box {
  background: #081424;
  border: 1px solid rgba(0, 102, 204, 0.35);
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
  width: 100%;
}

.route-string-box code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Monaco, Courier, monospace;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.6;
  color: #38bdf8 !important;
  word-break: break-all;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Clean Route Footer Toolbar */
.vcl-route-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  width: 100%;
}

.route-actions-left {
  display: flex;
  gap: 8px;
}

.btn-simbrief {
  background: linear-gradient(135deg, var(--primary), #002d5a);
  color: #ffffff !important;
  border: 1px solid rgba(0, 69, 124, 0.3);
  font-size: 12.5px;
  font-weight: 750;
  padding: 7px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 69, 124, 0.2);
}

.btn-simbrief:hover {
  background: linear-gradient(135deg, #00569c, var(--primary));
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 69, 124, 0.35);
}

.route-actions-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-route-weather {
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.2;
}

.btn-route-weather i {
  color: var(--primary2);
  transition: color 0.18s ease;
}

.btn-route-weather:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 69, 124, 0.2);
}

.btn-route-weather:hover i {
  color: #ffffff;
}

@media (max-width: 640px) {
  .vcl-city-pair {
    width: 100%;
    justify-content: space-between;
  }
  .pair-connector {
    width: 50px;
  }
  .vcl-route-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .route-actions-right {
    justify-content: flex-end;
  }
}

/* ==========================================================================
   Staff Portal & Administrative Operations Styles (.staff-...)
   ========================================================================== */

/* Flash Alerts */
.staff-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}
.staff-alert-success {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.staff-alert-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.staff-alert-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.staff-alert-info {
  background: rgba(0, 69, 124, 0.12);
  color: var(--primary2);
  border: 1px solid rgba(0, 69, 124, 0.25);
}

/* Profile Card */
.staff-profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.staff-profile-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.staff-avatar-badge {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, #00457c, #00284d);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 14px rgba(0, 69, 124, 0.3);
  flex-shrink: 0;
}
.staff-role-pill {
  display: inline-block;
  background: rgba(0, 69, 124, 0.1);
  color: var(--primary2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.staff-member-name {
  margin: 0 0 6px !important;
  font-size: 22px !important;
  font-weight: 850 !important;
  color: var(--text) !important;
  line-height: 1.2 !important;
}
.staff-member-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}
.staff-member-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.staff-member-meta b {
  color: var(--text);
}
.staff-perm-count {
  background: var(--surface2);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

/* Assigned Permissions Wrap */
.staff-assigned-perms-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.assigned-perms-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.assigned-perms-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.staff-perm-chip {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.staff-perm-chip i {
  color: var(--primary2);
}

/* Metrics Grid */
.staff-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.staff-metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.staff-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}
.metric-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.metric-icon-box.blue { background: rgba(0, 69, 124, 0.12); color: #00457c; }
.metric-icon-box.emerald { background: rgba(16, 185, 129, 0.12); color: #059669; }
.metric-icon-box.purple { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.metric-icon-box.amber { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.metric-icon-box.cyan { background: rgba(6, 182, 212, 0.12); color: #0891b2; }
.metric-icon-box.indigo { background: rgba(99, 102, 241, 0.12); color: #4f46e5; }
.metric-icon-box.teal { background: rgba(20, 184, 166, 0.12); color: #0d9488; }

.metric-details {
  flex-grow: 1;
  min-width: 0;
}
.metric-num {
  font-size: 22px;
  font-weight: 850;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 3px;
}
.metric-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.metric-sub {
  font-size: 11.5px;
  color: var(--muted);
}

/* Modules Grid */
.staff-modules-section {
  margin-bottom: 36px;
}
.section-subheading {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.staff-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.staff-module-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.staff-module-tile.accessible:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 69, 124, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.staff-module-tile.locked {
  opacity: 0.75;
  background: var(--surface2);
}
.tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.tile-icon.users { background: rgba(0, 69, 124, 0.12); color: #00457c; }
.tile-icon.airports { background: rgba(16, 185, 129, 0.12); color: #059669; }
.tile-icon.charts { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.tile-icon.routes { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.tile-icon.apikey { background: rgba(6, 182, 212, 0.12); color: #0891b2; }
.tile-icon.discord { background: rgba(88, 101, 242, 0.12); color: #5865F2; }
.tile-icon.cpt { background: rgba(236, 72, 153, 0.12); color: #db2777; }
.tile-icon.sceneries { background: rgba(20, 184, 166, 0.12); color: #0d9488; }

.tile-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tile-badge.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}
.tile-badge.badge-lock {
  background: rgba(100, 116, 139, 0.15);
  color: var(--muted);
}
.tile-title {
  margin: 0 0 8px !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--text) !important;
}
.tile-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 18px !important;
  flex-grow: 1;
}
.tile-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Controller Applications Horizontal Control Rows */
.staff-app-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.staff-app-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}
.staff-app-row.accessible:hover {
  border-color: rgba(0, 69, 124, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}
.staff-app-row.locked {
  background: var(--surface2);
  opacity: 0.8;
}
.app-row-main {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
}
.app-row-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.app-row-body {
  flex: 1 1 auto;
  min-width: 0;
}
.app-row-title-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.app-row-title {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--text) !important;
}
.app-row-desc {
  margin: 0 0 6px !important;
  font-size: 13px !important;
  color: var(--muted) !important;
  line-height: 1.45 !important;
}
.app-row-meta {
  font-size: 11.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.app-row-switch-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.tile-badge.badge-red {
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
}

/* Modern iOS-Style Toggle Switch */
.vcl-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  margin: 0;
  cursor: pointer;
}
.vcl-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.vcl-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: all 0.25s ease-in-out;
  border-radius: 28px;
}
[data-theme="dark"] .vcl-slider {
  background-color: #334155;
}
.vcl-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
.vcl-switch input:checked + .vcl-slider {
  background-color: #059669;
}
.vcl-switch input:checked + .vcl-slider:before {
  transform: translateX(24px);
}
.vcl-switch input:disabled + .vcl-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .staff-app-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }
  .app-row-switch-wrap {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Staff Table & Form Cards */
.staff-table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}
.staff-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.staff-card-header h3 {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}
.staff-table-wrap {
  overflow-x: auto;
  width: 100%;
}
.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}
.staff-table th {
  background: var(--surface2);
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.6px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.staff-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: middle;
}
.staff-table tbody tr:hover {
  background: rgba(0, 69, 124, 0.03);
}
.staff-table tbody tr:last-child td {
  border-bottom: none;
}

/* Staff Form Elements */
.staff-form-group {
  margin-bottom: 20px;
}
.staff-form-label {
  display: block;
  font-size: 13px;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 6px;
}
.staff-form-input,
.staff-form-select,
.staff-form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.staff-form-input:focus,
.staff-form-select:focus,
.staff-form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 69, 124, 0.15);
}
.staff-form-help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.staff-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.staff-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.staff-checkbox-item input[type="checkbox"] {
  margin-top: 2px;
  cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .staff-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .staff-modules-grid {
    grid-template-columns: 1fr;
  }
  .staff-profile-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .staff-metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* Staff Portal & Table Buttons */
.btn.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  gap: 6px;
  border-radius: 7px;
  font-weight: 700;
}
.btn:not(.primary):not(.secondary):not(.accent):not(.danger) {
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--line);
}
.btn:not(.primary):not(.secondary):not(.accent):not(.danger):hover {
  background: var(--surface);
  border-color: var(--primary2);
  color: var(--primary2);
}
.staff-table td .btn,
.staff-table-card .btn:not(.primary):not(.secondary):not(.accent):not(.danger) {
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.staff-table td .btn:hover,
.staff-table-card .btn:not(.primary):not(.secondary):not(.accent):not(.danger):hover {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary2);
}
.btn-action-blue,
.btn.btn-blue {
  background: #00457c;
  color: #ffffff !important;
  border: 1px solid #00457c;
  box-shadow: 0 2px 8px rgba(0, 69, 124, 0.25);
}
.btn-action-blue:hover,
.btn.btn-blue:hover {
  background: #00335e;
  border-color: #00335e;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Gray Copy Token Button for Staff Table (Light & Dark compatible) */
.btn-copy-token,
.btn.btn-copy-token,
.staff-table td .btn.btn-copy-token,
.staff-table-card .btn.btn-copy-token {
  background: #e2e8f0 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  padding: 3px 8px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  line-height: 1.2 !important;
}
.btn-copy-token:hover,
.btn.btn-copy-token:hover,
.staff-table td .btn.btn-copy-token:hover,
.staff-table-card .btn.btn-copy-token:hover {
  background: #cbd5e1 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1px);
}
[data-theme="dark"] .btn-copy-token,
[data-theme="dark"] .btn.btn-copy-token,
[data-theme="dark"] .staff-table td .btn.btn-copy-token,
[data-theme="dark"] .staff-table-card .btn.btn-copy-token {
  background: #334155 !important;
  color: #e2e8f0 !important;
  border-color: #475569 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}
[data-theme="dark"] .btn-copy-token:hover,
[data-theme="dark"] .btn.btn-copy-token:hover,
[data-theme="dark"] .staff-table td .btn.btn-copy-token:hover,
[data-theme="dark"] .staff-table-card .btn.btn-copy-token:hover {
  background: #475569 !important;
  color: #ffffff !important;
  border-color: #64748b !important;
}

/* Flight Simulator Multi-Select Dropdown Component */
.sim-multiselect-wrap {
  position: relative;
  width: 100%;
}
.sim-multiselect-trigger {
  width: 100%;
  min-height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 38px 6px 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}
.sim-multiselect-trigger:focus,
.sim-multiselect-wrap.is-open .sim-multiselect-trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 69, 124, 0.15);
}
.sim-multiselect-placeholder {
  color: var(--muted);
  font-size: 13.5px;
}
.sim-multiselect-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 11px;
  transition: transform 0.2s ease;
  pointer-events: none;
}
.sim-multiselect-wrap.is-open .sim-multiselect-chevron {
  transform: translateY(-50%) rotate(180deg);
}
.sim-multiselect-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
  padding: 12px;
  z-index: 1050;
  display: none;
}
.sim-multiselect-wrap.is-open .sim-multiselect-panel {
  display: block;
}
.sim-multiselect-options {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.sim-option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
}
.sim-option-item:hover {
  background: var(--surface2);
}
.sim-option-item input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}
.sim-multiselect-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 69, 124, 0.12);
  color: var(--primary);
  border: 1px solid rgba(0, 69, 124, 0.2);
}
.sim-multiselect-chip .chip-remove {
  cursor: pointer;
  opacity: 0.7;
  font-size: 13px;
  display: inline-flex;
}
.sim-multiselect-chip .chip-remove:hover {
  opacity: 1;
  color: #dc2626;
}
.sim-custom-add-box {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.sim-custom-add-box input {
  flex-grow: 1;
  padding: 6px 10px;
  font-size: 12.5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface2);
  color: var(--text);
}

/* Ultra-Compact Staff Confirmation Modal */
dialog.staff-confirm-modal,
.staff-confirm-modal {
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  padding: 22px 20px 20px !important;
  width: 90% !important;
  max-width: 380px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: fit-content !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45) !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  overflow: visible !important;
  display: block;
}
dialog.staff-confirm-modal:not([open]),
.staff-confirm-modal:not([open]) {
  display: none !important;
}
dialog.staff-confirm-modal::backdrop,
.staff-confirm-modal::backdrop {
  background: rgba(3, 16, 32, 0.75) !important;
  backdrop-filter: blur(6px) !important;
}
dialog.doc-modal-viewer[style*="max-width"] {
  height: auto !important;
  min-height: 0 !important;
  max-height: fit-content !important;
}

/* Unified Red Action Button for Confirmation Modals */
.btn-delete-confirm,
button.btn-delete-confirm {
  background: var(--primary-red, #b81137) !important;
  border: 1px solid var(--primary-red, #b81137) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(184, 17, 55, 0.35) !important;
  transition: transform 0.15s, background 0.15s !important;
}

.btn-delete-confirm:hover,
button.btn-delete-confirm:hover {
  background: #960d2b !important;
  border-color: #960d2b !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* =========================================================
   HOMEPAGE LIVE COCKPIT CONSOLE & RADAR MAP (UD-096)
   ========================================================= */

.section-kicker-dash {
  display: inline-block;
  width: 14px;
  height: 3px;
  background: var(--primary-red);
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 2px;
}

.live-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 750;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: radarPulse 1.8s infinite ease-in-out;
}

@keyframes radarPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 12px #10b981; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Refined 4 Stats Grid */
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 980px) {
  .home-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .home-stats-grid {
    grid-template-columns: 1fr;
  }
}

.home-stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.stat-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--line);
}

.stat-icon-wrap.green,
.stat-icon-wrap.amber,
.stat-icon-wrap.red {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--line);
}

[data-theme="dark"] .stat-icon-wrap,
[data-theme="dark"] .stat-icon-wrap.green,
[data-theme="dark"] .stat-icon-wrap.amber,
[data-theme="dark"] .stat-icon-wrap.red,
.dark-theme .stat-icon-wrap,
.dark-theme .stat-icon-wrap.green,
.dark-theme .stat-icon-wrap.amber,
.dark-theme .stat-icon-wrap.red {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
}

.stat-content-wrap {
  flex: 1;
}

.stat-label-text {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-big-number {
  font-size: 32px;
  font-weight: 850;
  line-height: 1.1;
  margin: 4px 0 2px;
  color: var(--text);
  letter-spacing: -1px;
}

.stat-sub-text {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-trend-up {
  color: #10b981;
  font-weight: 700;
}

/* Cockpit Radar Console Container */
.airspace-console {
  margin-top: 24px;
  background: #020f1e;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10;
  isolation: isolate;
}

.airspace-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: #04172c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.console-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.console-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.console-kicker {
  font-size: 10.5px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.console-heading {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

.console-region-btn {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.console-region-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #ffffff;
  border-color: #38bdf8;
}

/* Split Body: Map + Sidebar */
.airspace-console-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  height: 490px;
  position: relative;
}

@media (max-width: 980px) {
  .airspace-console-body {
    grid-template-columns: 1fr;
    height: auto;
  }
}

.airspace-map-wrap {
  position: relative;
  height: 100%;
  min-height: 440px;
  background: #010811;
}

#vatsimLiveMap {
  width: 100%;
  height: 100%;
  min-height: 440px;
  background: #010811;
  z-index: 1;
}

/* Floating Map Legend */
.airspace-map-legend {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 20;
  background: rgba(2, 15, 30, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: #cbd5e1;
  pointer-events: none;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.legend-line-cyan {
  width: 14px;
  height: 2px;
  background: #38bdf8;
  display: inline-block;
  border-radius: 1px;
}

.legend-dot-sector {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00457c;
  border: 1px solid #38bdf8;
  display: inline-block;
}

/* Interactive Map Attribution Widget (Image 4 & 5: media_1791968115797_4a1623b5.png, media_1791968121864_834e7f5c.png) */
.airspace-map-attribution {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

.attribution-pill-content {
  background: rgba(13, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  color: #cbd5e1;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  animation: fadeInPill 0.2s ease-out;
}

.attribution-pill-content a {
  color: #38bdf8;
  text-decoration: none;
}
.attribution-pill-content a:hover {
  text-decoration: underline;
}

.attribution-info-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(13, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.attribution-info-btn:hover,
.attribution-info-btn.active {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
  border-color: #38bdf8;
  transform: scale(1.08);
}

@keyframes fadeInPill {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Sidebar Console */
.airspace-console-sidebar {
  background: #031427;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

@media (max-width: 980px) {
  .airspace-console-sidebar {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    height: 380px;
  }
}

.sidebar-controls-bar {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #031427;
  flex-shrink: 0;
}

.sidebar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-title-text {
  font-size: 13.5px;
  font-weight: 750;
  color: #ffffff;
}

.badge-online-count {
  font-size: 11px;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.console-tab-selector {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 3px;
}

.console-tab-btn {
  flex: 1;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  font-size: 12px;
  font-weight: 750;
  color: #94a3b8;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.console-tab-btn:hover {
  color: #ffffff;
}

.console-tab-btn.active {
  background: #00457c;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 69, 124, 0.4);
}

.sidebar-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-list-container::-webkit-scrollbar {
  width: 5px;
}
.sidebar-list-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

/* Radar List Items */
.radar-list-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
  cursor: pointer;
  gap: 8px;
}

.radar-list-item:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
  transform: translateX(2px);
}

.radar-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.radar-callsign-box {
  min-width: 0;
}

.radar-callsign-text {
  font-family: monospace;
  font-size: 13px;
  font-weight: 750;
  color: #ffffff;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radar-sub-desc {
  font-size: 11px;
  color: #94a3b8;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radar-item-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.radar-freq-pill {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 69, 124, 0.4);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.radar-listen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 23px;
  border-radius: 6px;
  background: rgba(0, 69, 124, 0.45);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
  padding: 0;
}

.radar-listen-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
  transform: scale(1.08);
}

.radar-listen-btn:active {
  transform: scale(0.96);
}

.radar-listen-btn i {
  line-height: 1;
}

.radar-empty-state {
  text-align: center;
  padding: 40px 16px;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.6;
}

.radar-empty-state i {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
  opacity: 0.6;
}

/* Aircraft Marker SVG */
.vatsim-aircraft-marker {
  background: none;
  border: none;
}
.vatsim-aircraft-marker svg {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease;
}

/* =========================================================
   FEATURED EVENTS SECTION (UD-101 / Screenshot Redesign)
   ========================================================= */

.events-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.events-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e11d48;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.events-kicker-bar {
  display: inline-block;
  width: 18px;
  height: 2.5px;
  background: #e11d48;
  border-radius: 2px;
}

.events-main-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.events-sub-intro {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  max-width: 620px;
  line-height: 1.5;
}

.events-view-all-link {
  color: #e11d48 !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s, transform 0.2s;
  white-space: nowrap;
}

.events-view-all-link:hover {
  color: #be123c !important;
  transform: translateX(3px);
  text-decoration: underline;
}

/* Showcase Grid Layout */
.events-showcase-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 991px) {
  .events-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .events-showcase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Left Hero Banner Card */
.featured-event-hero-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 360px;
  background-color: #0c1a2e;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  display: flex;
}

.featured-event-slides-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
}

.featured-event-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 1;
}

.featured-event-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 2;
  flex: 1;
}

.featured-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Bottom-only gradient overlay leaving top/center artwork clearly visible */
.featured-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(8, 18, 32, 0) 0%, rgba(8, 18, 32, 0.15) 35%, rgba(8, 18, 32, 0.72) 65%, rgba(8, 18, 32, 0.95) 100%);
  z-index: 2;
}

/* Content anchored gracefully at the bottom */
.featured-slide-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 360px;
  padding: 24px 28px;
  box-sizing: border-box;
}

.featured-bottom-content {
  margin-top: auto;
}

.featured-event-heading {
  color: #ffffff;
  font-size: 24px;
  font-weight: 750;
  margin: 0 0 8px;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.featured-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 10px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.featured-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.featured-meta-item i {
  color: #38bdf8;
  font-size: 14px;
}

/* 2-line auto-wrap description with ellipsis per user instructions */
.featured-event-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  line-height: 1.52;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 16px;
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.featured-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.btn-featured-details {
  background: #0284c7;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 650;
  padding: 9px 22px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-featured-details:hover {
  background: #0369a1;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
}

/* Right Upcoming Events Card */
.upcoming-events-card-pane {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.upcoming-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.upcoming-pane-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 750;
  color: var(--text);
}

.upcoming-pane-title i {
  color: #0284c7;
  font-size: 19px;
}

.upcoming-view-calendar {
  font-size: 13px;
  font-weight: 650;
  color: #0284c7;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.upcoming-view-calendar:hover {
  color: #0369a1;
  text-decoration: underline;
}

.upcoming-events-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
  gap: 10px;
  padding-top: 6px;
}

.upcoming-event-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, transform 0.18s ease, border-color 0.2s ease;
  cursor: pointer;
}

.upcoming-event-item:last-child {
  border-bottom: 1px solid transparent;
}

.upcoming-event-item:hover,
.upcoming-event-item.active {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
  transform: translateX(4px);
}

[data-theme="dark"] .upcoming-event-item:hover,
[data-theme="dark"] .upcoming-event-item.active {
  background: rgba(2, 132, 199, 0.18);
  border-color: rgba(56, 189, 248, 0.35);
}

.upcoming-event-item:hover .upcoming-item-arrow,
.upcoming-event-item.active .upcoming-item-arrow {
  color: #0284c7;
  transform: translateX(3px);
}

.upcoming-date-box {
  width: 52px;
  height: 58px;
  min-width: 52px;
  background: #0f172a;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.upcoming-date-month {
  font-size: 10px;
  font-weight: 750;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.upcoming-date-day {
  font-size: 18px;
  font-weight: 850;
  line-height: 1.15;
  margin: 1px 0;
  color: #ffffff;
}

.upcoming-date-weekday {
  font-size: 9px;
  font-weight: 650;
  color: #94a3b8;
  text-transform: uppercase;
  line-height: 1;
}

.upcoming-item-body {
  flex: 1;
  min-width: 0;
}

.upcoming-badge-pill {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.upcoming-badge-pill.type-training {
  background: #ffe4e6;
  color: #e11d48;
}

.upcoming-badge-pill.type-event {
  background: #dcfce7;
  color: #15803d;
}

.upcoming-badge-pill.type-community {
  background: #e0f2fe;
  color: #0284c7;
}

.upcoming-badge-pill.type-exam {
  background: #fef3c7;
  color: #b45309;
}

/* Dark theme overrides for badges */
[data-theme="dark"] .upcoming-badge-pill.type-training {
  background: rgba(225, 29, 72, 0.2);
  color: #fda4af;
}

[data-theme="dark"] .upcoming-badge-pill.type-event {
  background: rgba(22, 163, 74, 0.2);
  color: #86efac;
}

[data-theme="dark"] .upcoming-badge-pill.type-community {
  background: rgba(2, 132, 199, 0.2);
  color: #7dd3fc;
}

[data-theme="dark"] .upcoming-badge-pill.type-exam {
  background: rgba(217, 119, 6, 0.2);
  color: #fcd34d;
}

.upcoming-item-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.upcoming-item-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.upcoming-item-meta-span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.upcoming-item-meta-span i {
  font-size: 11.5px;
}

.upcoming-item-arrow {
  color: #94a3b8;
  font-size: 16px;
  margin-left: 8px;
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}

/* Fallback grid & card styles */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.event-card {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: var(--text);
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  border-color: var(--primary2);
}

.event-empty-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* =========================================================
   OUR NETWORK SECTION (UD-096)
   ========================================================= */

.network-section-wrap {
  padding: 70px 0 60px;
  border-top: 1px solid var(--line);
}

.network-title-wrap {
  text-align: center;
  margin-bottom: 24px;
}

.network-kicker {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-red);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.network-nodes-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.network-node-link {
  text-align: center;
  text-decoration: none;
  color: var(--text);
  padding: 10px 18px;
  border-radius: 10px;
  transition: transform 0.2s, background 0.2s;
}

.network-node-link:hover {
  transform: translateY(-2px);
  background: var(--surface2);
}

.network-node-name {
  font-size: 20px;
  font-weight: 850;
  margin: 0 0 3px;
  letter-spacing: -0.5px;
}

.network-node-sub {
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.network-disclaimer-text {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  opacity: 0.85;
}

/* =========================================================
   RADAR CONSOLE POPUP DESIGNS (UD-097)
   Matches reference images media_1791967496626_c41491f5.png,
   media_1791967509878_2e4bac96.png, media_1791967520790_cef20e1d.png
   ========================================================= */

/* Leaflet Popup Shell Reset & Dark Styling */
.vcl-radar-popup .leaflet-popup-content-wrapper {
  background: rgba(13, 23, 42, 0.96) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(56, 189, 248, 0.12) !important;
  backdrop-filter: blur(14px) !important;
  padding: 0 !important;
  overflow: hidden;
}

.vcl-radar-popup .leaflet-popup-tip {
  background: rgba(13, 23, 42, 0.96) !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
}

.vcl-radar-popup .leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
  min-width: 250px;
}

.vcl-radar-popup a.leaflet-popup-close-button {
  top: 10px !important;
  right: 10px !important;
  width: 24px !important;
  height: 24px !important;
  line-height: 22px !important;
  text-align: center !important;
  color: #94a3b8 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vcl-radar-popup a.leaflet-popup-close-button:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
}

/* 1. Pilot Popup Container (Image 2 & 3) */
.radar-pilot-popup {
  padding: 14px 16px 12px;
}

.pilot-ident-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 24px;
  margin-bottom: 8px;
}

.pilot-callsign {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  font-family: var(--font-mono, monospace);
}

.pilot-ac-badge {
  font-size: 11px;
  font-weight: 750;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 5px;
  padding: 1px 6px;
  letter-spacing: 0.5px;
  font-family: var(--font-mono, monospace);
}

.radar-popup-route {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0.8px;
  color: #f8fafc;
  margin-bottom: 12px;
  font-family: var(--font-mono, monospace);
}

.route-plane-icon {
  color: #38bdf8;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
}

.radar-popup-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  text-align: center;
}

.radar-popup-metrics.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-lbl {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.metric-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
}

.radar-popup-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  font-size: 11.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2. FIR (비행정보 구역) Popup Container (Image 4) */
.radar-fir-popup {
  padding: 14px 16px 12px;
}

.fir-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 24px;
  margin-bottom: 10px;
}

.fir-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.fir-icao-badge {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 5px;
  padding: 1px 6px;
  letter-spacing: 0.5px;
  font-family: var(--font-mono, monospace);
}

.fir-atc-status {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
}

.atc-offline-text {
  color: #94a3b8;
  font-size: 12.5px;
  font-style: italic;
}

.atc-online-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 12.5px;
}

.atc-online-item + .atc-online-item {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.live-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
  flex-shrink: 0;
}

/* Selected Aircraft Radar Circle Aura (Image 3) */
.selected-aircraft-aura {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #00f0ff;
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.5);
  position: absolute;
  top: -8px;
  left: -8px;
  pointer-events: none;
  animation: radarAuraPulse 2s infinite ease-out;
}

@keyframes radarAuraPulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 0.9; }
}

/* ---------------------------------------------------------
   Dual Simulator Workbench (.dual-sim-showcase) - UD-105 / Photorealistic Upgrade
   - Left: Pilot Dimension (Airbus/Boeing Glass Cockpit PFD Canvas)
   - Center: Glowing Perspective Divider
   - Right: Controller Dimension (EuroScope TopSky Radar Canvas)
   - Photorealistic MFD Bezels, Corner Screws & Glass Reflection
   - Compatible with Light & Dark modes
   --------------------------------------------------------- */
.dual-sim-showcase {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .dual-sim-showcase {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .dual-sim-showcase {
  background: #09111e;
  border-color: rgba(56, 189, 248, 0.18);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55);
}

.sim-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sim-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.sim-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sim-indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
}

.sim-indicator-dot.pilot-dot {
  background: #0284c7;
  color: #0284c7;
}

.sim-indicator-dot.atc-dot {
  background: #10b981;
  color: #10b981;
}

.sim-panel-title {
  font-size: 16px;
  font-weight: 750;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.sim-panel-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.sim-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.sim-badge.pilot-badge {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.sim-badge.atc-badge {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Photorealistic MFD Bezel & Screen Wrap */
.sim-screen-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #02060d;
  border: 3px solid #1a273a;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), inset 0 0 40px rgba(0, 0, 0, 0.98), 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

/* Metallic Bezel Hex Screws */
.mfd-corner-screw {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #94a3b8 30%, #475569 70%, #0f172a 100%);
  border: 1px solid #1e293b;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.8);
  z-index: 10;
  pointer-events: none;
}

.mfd-corner-screw.top-left { top: 5px; left: 5px; }
.mfd-corner-screw.top-right { top: 5px; right: 5px; }
.mfd-corner-screw.bottom-left { bottom: 5px; left: 5px; }
.mfd-corner-screw.bottom-right { bottom: 5px; right: 5px; }

/* Anti-glare glass reflection sheen */
.mfd-glass-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 32%, transparent 60%);
  pointer-events: none;
  z-index: 5;
  border-radius: 14px;
}

/* PFD FMA Status Bar (5-Column Glass Cockpit Annunciator) */
.pfd-fma-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #060e19;
  border-bottom: 1.5px solid #142032;
  padding: 6px 4px;
  font-size: 10px;
  font-weight: 750;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.3px;
  text-align: center;
}

.fma-col {
  border-right: 1px solid #121c2d;
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.fma-col:last-child {
  border-right: none;
}

.fma-item.fma-cyan {
  color: #38bdf8;
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
}

.fma-item.fma-green {
  color: #4ade80;
  text-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
}

.fma-item.fma-white {
  color: #f1f5f9;
}

/* TopSky Radar Status Bar */
.radar-top-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #050d18;
  border-bottom: 1.5px solid #142032;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 750;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #64748b;
  letter-spacing: 0.5px;
}

.radar-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.radar-live-tag {
  color: #38bdf8;
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
}

.radar-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: radarPulse 1.8s infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Canvas Holder (Height increased to 340px for rich aeronautical detail) */
.sim-canvas-holder {
  position: relative;
  width: 100%;
  height: 340px;
}

.sim-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Center Visual Divider */
.sim-center-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.sim-divider-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}

.sim-divider-beacon {
  cursor: pointer;
  outline: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin: 12px 0;
  box-shadow: var(--shadow);
  transition: transform 0.2s, color 0.2s;
}

.sim-divider-beacon:hover {
  color: #0284c7;
  transform: rotate(180deg);
}

/* Action Links (3 items below each canvas) */
.sim-action-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.sim-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  transition: all 0.2s ease;
  white-space: nowrap;
}

[data-theme="light"] .sim-action-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .sim-action-btn:hover {
  background: #ffffff;
  border-color: #0284c7;
  color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.18);
}

[data-theme="dark"] .sim-action-btn {
  background: #0f1c30;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

[data-theme="dark"] .sim-action-btn:hover {
  background: #142540;
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

.sim-action-btn i {
  font-size: 14px;
  color: #0284c7;
  transition: color 0.2s;
}

[data-theme="dark"] .sim-action-btn i {
  color: #38bdf8;
}

.sim-action-btn .ext-icon {
  font-size: 10px;
  opacity: 0.6;
  margin-left: 2px;
}

/* Responsive queries */
@media (max-width: 1024px) {
  .dual-sim-showcase {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .sim-center-divider {
    display: none;
  }
}

@media (max-width: 640px) {
  .sim-action-links {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ==========================================================================
   VCL vACC — Pure CSS Full-Page Loading Screen System
   Focuses purely on the VCL logo with high-performance CSS animation,
   recreating and elevating the lively motion of the legacy vcl_loading.gif.
   ========================================================================== */

#loader,
#preloader,
.vcl-loader-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
  pointer-events: all;
  user-select: none;
}

/* Hidden State: Dismissed when page finishes loading */
#loader.is-hidden,
#preloader.is-hidden,
.vcl-loader-backdrop.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Active State: Triggered on initial load, reload, or link click */
#loader.is-active,
#loader.show,
#preloader.is-active,
.vcl-loader-backdrop.is-active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
}

/* Dark Theme Backdrop */
[data-theme="dark"] #loader,
[data-theme="dark"] .vcl-loader-backdrop {
  background: rgba(7, 13, 24, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Logo Animation Container */
.vcl-loader-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px;
}

/* Logo Box with Hover Float & Breathing Animation */
.vcl-loader-logo-box {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 8px;
  animation: vclLogoHover 2.4s ease-in-out infinite;
  will-change: transform, filter;
}

/* VCL Loading Logo Image (#loading-image) */
#loading-image,
.vcl-loading-logo {
  width: 320px;
  max-width: 82vw;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 69, 124, 0.20));
  transition: filter 0.3s ease;
}

/* Dark Mode Logo Luminous Glow */
[data-theme="dark"] #loading-image,
[data-theme="dark"] .vcl-loading-logo {
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.55)) drop-shadow(0 14px 28px rgba(2, 132, 199, 0.35));
}

/* Animated Shimmer Light Sweep across the Logo */
.vcl-loader-shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 25%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 75%,
    transparent 100%
  );
  transform: skewX(-25deg);
  animation: vclShineSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

[data-theme="dark"] .vcl-loader-shine {
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(56, 189, 248, 0) 25%,
    rgba(56, 189, 248, 0.45) 50%,
    rgba(56, 189, 248, 0) 75%,
    transparent 100%
  );
}

/* Dynamic Ground Shadow that responds to logo elevation */
.vcl-loader-shadow {
  width: 220px;
  max-width: 60vw;
  height: 14px;
  margin-top: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 69, 124, 0.28) 0%, rgba(0, 69, 124, 0.08) 50%, transparent 75%);
  animation: vclShadowScale 2.4s ease-in-out infinite;
  will-change: transform, opacity;
}

[data-theme="dark"] .vcl-loader-shadow {
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.35) 0%, rgba(2, 132, 199, 0.12) 50%, transparent 75%);
}

/* Keyframe: Floating & Breathing Logo Motion */
@keyframes vclLogoHover {
  0% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-16px) scale(1.035);
  }
  100% {
    transform: translateY(0px) scale(1);
  }
}

/* Keyframe: Responding Ground Shadow */
@keyframes vclShadowScale {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }
  50% {
    transform: scale(0.72);
    opacity: 0.22;
  }
  100% {
    transform: scale(1);
    opacity: 0.65;
  }
}

/* Keyframe: Shimmer Light Sweep */
@keyframes vclShineSweep {
  0%, 20% {
    left: -120%;
  }
  60%, 100% {
    left: 180%;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .vcl-loader-logo-box,
  .vcl-loader-shadow,
  .vcl-loader-shine {
    animation: none !important;
  }
}

/* Mobile Viewport */
@media (max-width: 600px) {
  #loading-image,
  .vcl-loading-logo {
    width: 240px;
    max-width: 78vw;
  }
  .vcl-loader-shadow {
    width: 170px;
    margin-top: 14px;
  }
}

/* ==========================================================================
   ATC Quick Calculator — Design System & Interactive Components
   ========================================================================== */
.calc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calc-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.calc-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--surface2);
  border-bottom: 1px solid var(--line);
}

.calc-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 69, 124, 0.12);
  color: var(--primary2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

[data-theme="dark"] .calc-header-icon {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.calc-card-title-group h3 {
  font-size: 18px;
  font-weight: 750;
  margin: 0 0 4px;
  color: var(--text);
}

.calc-card-title-group p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.calc-body-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
  padding: 24px;
}

@media (max-width: 991px) {
  .calc-body-grid {
    grid-template-columns: 1fr;
  }
}

.calc-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-field-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.calc-input,
.calc-select {
  width: 100%;
  height: 42px;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.calc-input:focus,
.calc-select:focus {
  outline: none;
  border-color: var(--primary2);
  box-shadow: 0 0 0 3px rgba(0, 69, 124, 0.15);
}

.calc-input-addon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
}

.calc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 6px;
}

.calc-btn-primary:hover {
  background: var(--primary2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 69, 124, 0.25);
}

.calc-results-col {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-res-header {
  font-size: 13.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.calc-res-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.calc-res-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  gap: 12px;
}

.calc-res-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.calc-res-val {
  font-size: 13.5px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--primary2);
  text-align: right;
  word-break: keep-all;
}

[data-theme="dark"] .calc-res-val {
  color: #38bdf8;
}

.calc-res-val.highlight {
  font-size: 14px;
  font-weight: 800;
  color: #be123c;
}

[data-theme="dark"] .calc-res-val.highlight {
  color: #fb7185;
}

.calc-res-status {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.calc-res-status.warn {
  background: rgba(225, 29, 72, 0.1);
  color: #e11d48;
}

.calc-res-status.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.calc-res-status.neutral {
  background: rgba(100, 116, 139, 0.12);
  color: var(--muted);
}

.calc-diagram-box {
  background: #081325;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
  overflow: hidden;
  color: #e2e8f0;
}

.calc-diagram-svg {
  width: 100%;
  height: auto;
  display: block;
}

.calc-disclaimer {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: auto;
  padding-top: 8px;
}

/* Sub-tabs inside Converters */
.calc-sub-tabs {
  display: flex;
  background: var(--surface2);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 8px;
  gap: 4px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.calc-sub-tab {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-align: center;
}

.calc-sub-tab:hover {
  color: var(--text);
}

.calc-sub-tab.active {
  background: var(--card);
  color: var(--primary2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .calc-sub-tab.active {
  color: #38bdf8;
}

/* Quick Matrix Table */
.calc-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-top: 12px;
}

.calc-matrix-table th {
  text-align: left;
  padding: 8px 10px;
  background: var(--surface2);
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.calc-matrix-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.calc-matrix-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   ATC Bookings Schedule Modal Dialog (Aviation Modern Glassmorphism)
   ========================================================================== */
.home-stat-card.clickable-stat-card {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.home-stat-card.clickable-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  border-color: rgba(2, 132, 199, 0.45);
}

.home-stat-card.clickable-stat-card:active {
  transform: translateY(-1px);
}

.home-stat-card.clickable-stat-card .stat-icon-wrap {
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.home-stat-card.clickable-stat-card:hover .stat-icon-wrap {
  transform: scale(1.08);
  background: rgba(2, 132, 199, 0.15);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.35);
}

.clickable-stat-card .stat-content-wrap {
  position: relative;
}

.card-click-hint {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary2);
  margin-left: auto;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
}

.home-stat-card.clickable-stat-card:hover .card-click-hint {
  opacity: 1;
  transform: translateX(2px);
}

/* ATC Bookings Modal Dialog */
dialog.atc-bookings-modal {
  border: none;
  border-radius: 20px;
  padding: 0;
  width: 92vw;
  max-width: 860px;
  max-height: 88vh;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 99999;
}

dialog.atc-bookings-modal:not([open]) {
  display: none;
}

dialog.atc-bookings-modal::backdrop {
  background: rgba(2, 15, 30, 0.78);
  backdrop-filter: blur(8px);
}

.atc-bookings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--surface2);
  border-bottom: 1px solid var(--line);
  gap: 16px;
  flex-shrink: 0;
}

.atc-bookings-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.atc-bookings-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid rgba(2, 132, 199, 0.25);
  flex-shrink: 0;
}

.atc-bookings-title {
  margin: 0;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.3px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.atc-bookings-count-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.15);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.atc-bookings-subtitle {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.atc-bookings-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.atc-bookings-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.atc-bookings-close-btn:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
  transform: rotate(90deg);
}

.atc-bookings-body {
  padding: 22px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Empty Bookings State */
.atc-bookings-empty {
  text-align: center;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.atc-bookings-empty-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--muted);
  margin-bottom: 16px;
}

.atc-bookings-empty-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.atc-bookings-empty-desc {
  margin: 0 auto;
  max-width: 440px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Bookings Timeline Cards */
.atc-bookings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.atc-booking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.atc-booking-item:hover {
  border-color: rgba(2, 132, 199, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.atc-booking-item.is-active {
  border-left: 4px solid #10b981;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, var(--surface2) 100%);
}

.atc-booking-item.is-upcoming {
  border-left: 4px solid #0284c7;
}

.atc-booking-badge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
}

.atc-facility-badge {
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #00457c;
  color: #ffffff;
  display: inline-block;
  text-align: center;
}

.atc-facility-badge.ctr { background: #00457c; }
.atc-facility-badge.app { background: #0284c7; }
.atc-facility-badge.twr { background: #b81137; }
.atc-facility-badge.gnd { background: #d97706; }
.atc-facility-badge.del { background: #475569; }

.atc-booking-details-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.atc-booking-callsign-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.atc-booking-callsign {
  font-size: 16px;
  font-weight: 850;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.5px;
}

.atc-booking-posname {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.atc-booking-controller-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.atc-booking-cid-badge {
  font-size: 11.5px;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
}

.atc-booking-time-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.atc-booking-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.atc-booking-hours {
  font-size: 15px;
  font-weight: 850;
  color: var(--text);
  font-family: ui-monospace, monospace;
  letter-spacing: 0.3px;
}

.atc-booking-duration {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.atc-booking-status-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.atc-booking-status-col:empty {
  display: none;
}

.atc-booking-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.atc-booking-status-pill.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.atc-booking-status-pill.active .status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: bookingPulse 1.8s infinite;
}

.atc-booking-status-pill.upcoming {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.28);
}

.atc-booking-status-pill.upcoming .status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0284c7;
}

@keyframes bookingPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.atc-bookings-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--surface2);
  border-top: 1px solid var(--line);
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.atc-bookings-footer-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] dialog.atc-bookings-modal,
.dark-theme dialog.atc-bookings-modal {
  background: #061527;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .atc-bookings-header,
[data-theme="dark"] .atc-bookings-footer,
.dark-theme .atc-bookings-header,
.dark-theme .atc-bookings-footer {
  background: #030d19;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .atc-booking-item,
.dark-theme .atc-booking-item {
  background: #0b1d33;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .atc-booking-item:hover,
.dark-theme .atc-booking-item:hover {
  background: #0e2440;
  border-color: rgba(56, 189, 248, 0.45);
}

[data-theme="dark"] .atc-booking-cid-badge,
.dark-theme .atc-booking-cid-badge {
  background: #061527;
  border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
  .atc-booking-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .atc-booking-time-col {
    align-items: flex-start;
    text-align: left;
  }
  .atc-booking-status-col {
    justify-content: flex-start;
  }
}




/* ==========================================================================
   Secret SkyOps Mini-Game Modal Dialog (UD-156)
   ========================================================================== */
dialog.skyops-game-modal {
  border: none;
  border-radius: 14px;
  padding: 0;
  width: 98vw;
  max-width: 1720px;
  height: 96vh;
  max-height: 96vh;
  background: #060b14;
  color: #f1f5f9;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(56, 189, 248, 0.28);
  position: fixed;
  inset: 0;
  margin: auto;
  overflow: hidden;
  z-index: 99999;
}

dialog.skyops-game-modal:not([open]) {
  display: none;
}

dialog.skyops-game-modal::backdrop {
  background: rgba(2, 8, 18, 0.82);
  backdrop-filter: blur(10px);
}

.skyops-modal-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.skyops-modal-bar {
  height: 44px;
  min-height: 44px;
  background: #081224;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.skyops-modal-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.05em;
}

.skyops-modal-bar-left i {
  font-size: 15px;
  color: #10b981;
}

.skyops-modal-bar-close {
  background: rgba(224, 26, 56, 0.15);
  border: 1px solid rgba(224, 26, 56, 0.4);
  color: #fda4af;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.18s ease;
}

.skyops-modal-bar-close:hover {
  background: rgba(224, 26, 56, 0.35);
  color: #ffffff;
  transform: scale(1.06);
}

.skyops-iframe-holder {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  background: #040811;
}

.skyops-iframe-holder iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 900px) {
  dialog.skyops-game-modal {
    width: 98vw;
    height: 96vh;
    max-height: 96vh;
    border-radius: 12px;
  }
}


/* Desktop-only enforcement for secret mini-game trigger (UD-156) */
@media (max-width: 1024px), (hover: none), (pointer: coarse) {
  #secretMiniGameTrigger,
  .sim-center-divider {
    display: none !important;
  }
}
