* {
  box-sizing: border-box;
}

#lock-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  --bg-opacity: 0.35;
}

#lock-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./assets/MEL2.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: var(--bg-opacity);
  z-index: 0;
}

#lock-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 24, 0.35);
  z-index: 1;
}

.lock-card {
  position: relative;
  z-index: 2;
  width: min(420px, calc(100% - 32px));
  padding: 28px;
  border-radius: 18px;
  background: #111b24;
  color: #f6efdf;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  border: 1px solid rgba(214, 180, 111, .18);
}

.lock-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.lock-card p {
  margin: 0 0 16px;
  color: #c5c0b2;
  line-height: 1.5;
}

.lock-card input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(214, 180, 111, .25);
  background: #0b141d;
  color: #f6efdf;
  outline: none;
  font-size: 16px;
  font-family: var(--font-body);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.lock-card input:hover {
  background: rgba(11, 20, 29, 0.8);
  border-color: rgba(214, 180, 111, 0.35);
}

.lock-card button {
  width: 100%;
  margin-top: 16px;
  padding: 16px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #d6b46f, #bda063);
  color: #09131b;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(214, 180, 111, 0.15);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.lock-card button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(214, 180, 111, 0.25);
}

.lock-card button:active {
  transform: translateY(0);
}

.error {
  min-height: 22px;
  margin-top: 12px;
  color: #ff8a8a;
  font-size: 14px;
  font-weight: 500;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

.password-wrapper.has-error {
  animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

body.locked {
  overflow: hidden;
}

.password-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

#password-input {
  width: 100%;
  padding-right: 48px;
  box-sizing: border-box;
}

#password-input:focus {
  border-color: #dbb376 !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(219, 179, 118, 0.25) !important;
  background: rgba(11, 20, 29, 0.9);
}

.password-wrapper.has-error #password-input {
  border-color: #ef4444 !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.3) !important;
}

.eye-icon {
  position: absolute;
  right: 16px;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
  user-select: none;
  transition: color 0.2s ease;
}

.eye-icon:hover {
  color: #f1f5f9;
}

#site-content {
  display: none;
}

:root,
[data-theme="dark"] {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.45rem);
  --text-xl: clamp(1.45rem, 1.2rem + 1.2vw, 2.15rem);
  --text-2xl: clamp(2rem, 1.3rem + 2vw, 3.4rem);
  --text-3xl: clamp(2.9rem, 1.5rem + 4vw, 5.9rem);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --radius-sm: .5rem;
  --radius-md: .85rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.8rem;
  --radius-full: 999px;
  --font-body: 'General Sans', 'Inter', sans-serif;
  --font-display: 'Cabinet Grotesk', 'General Sans', sans-serif;
  --color-bg: #071018;
  --color-surface: rgba(11, 20, 29, 0.84);
  --color-surface-2: rgba(15, 29, 41, 0.9);
  --color-surface-3: #122333;
  --color-border: rgba(214, 180, 111, 0.16);
  --color-divider: rgba(214, 180, 111, 0.08);
  --color-text: #f6efdf;
  --color-text-muted: #c5c0b2;
  --color-text-faint: #8f948f;
  --color-text-inverse: #09131b;
  --color-primary: #d6b46f;
  --color-primary-strong: #e6c98c;
  --color-accent: #8ca3ab;
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, .18);
  --shadow-md: 0 20px 50px rgba(0, 0, 0, .32);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, .45);
  --content: 1180px;
  --transition: 220ms cubic-bezier(.16, 1, .3, 1);
  --color-bg-about: linear-gradient(180deg, #071018 0%, #0b141d 100%);
  --color-bg-routes: linear-gradient(180deg, #0b1620 0%, #102434 100%);
  --color-bg-fleet: linear-gradient(180deg, #122333 0%, #0b141d 100%);
  --color-bg-ranks: linear-gradient(180deg, #0e1a26 0%, #151f2b 100%);
  --color-bg-leadership: linear-gradient(180deg, #0b1620 0%, #101a24 100%);
  --color-bg-gallery: linear-gradient(180deg, #071018 0%, #0a1320 100%);
  --color-bg-join: linear-gradient(180deg, #101f2e 0%, #071018 100%);
  --color-glass-bg: rgba(17, 27, 36, 0.6);
  --color-cta-bg: linear-gradient(140deg, rgba(214, 180, 111, 0.12), rgba(16, 29, 41, 0.7));
  --color-header-bg: linear-gradient(180deg, rgba(7, 16, 24, 0.92), rgba(7, 16, 24, 0.72));
  --color-hero-overlay: linear-gradient(270deg, rgba(7, 16, 24, 0.18), rgba(7, 16, 24, 0.46) 32%, rgba(7, 16, 24, 0.88) 76%, var(--color-bg));
  --color-eyebrow-bg: rgba(7, 16, 24, 0.5);
  --color-dropdown-bg: rgba(18, 35, 51, 0.96);
  --color-rank-table-wrap-bg: linear-gradient(180deg, rgba(11, 20, 29, 0.9), rgba(18, 35, 51, 0.82));
  --color-rank-table-premium-th-bg: rgb(35, 40, 39);
  --color-rank-table-premium-td-bg: rgba(35, 40, 39, 0.75);
  --color-mini-card-bg: rgba(255, 255, 255, 0.03);
  --color-mini-card-hover-bg: rgba(255, 255, 255, 0.06);
  --color-footer-bg-end: #050a0f;
  --color-footer-text: #7c8894;
  --color-footer-notice: #a0aab5;
  --color-footer-divider: rgba(255, 255, 255, 0.08);
  --color-page-header-bg: linear-gradient(180deg, #071018 0%, #0b1620 100%);
  --color-route-string-bg: #060c12;
  --color-route-string-text: #c5c0b2;
  --color-route-string-border: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] {
  --color-bg: #f9f7f2;
  --color-surface: rgba(255, 255, 255, 0.85);
  --color-surface-2: rgba(247, 245, 238, 0.9);
  --color-surface-3: #ebdcb9;
  --color-border: rgba(181, 144, 73, 0.25);
  --color-divider: rgba(181, 144, 73, 0.12);
  --color-text: #241e17;
  --color-text-muted: #6b6053;
  --color-text-faint: #9c9081;
  --color-text-inverse: #f9f7f2;
  --color-primary: #b59049;
  --color-primary-strong: #8c6b2b;
  --color-accent: #5f757e;
  --shadow-sm: 0 10px 30px rgba(181, 144, 73, 0.05);
  --shadow-md: 0 20px 50px rgba(181, 144, 73, 0.08);
  --shadow-lg: 0 32px 80px rgba(181, 144, 73, 0.12);
  --color-bg-about: linear-gradient(180deg, #f9f7f2 0%, #f4f1e6 100%);
  --color-bg-routes: linear-gradient(180deg, #f4f1e6 0%, #ebe7d8 100%);
  --color-bg-fleet: linear-gradient(180deg, #e5dfcf 0%, #f4f1e6 100%);
  --color-bg-ranks: linear-gradient(180deg, #f1ece0 0%, #e6dfcf 100%);
  --color-bg-leadership: linear-gradient(180deg, #f4f1e6 0%, #e8e2d2 100%);
  --color-bg-gallery: linear-gradient(180deg, #f9f7f2 0%, #f1ebe0 100%);
  --color-bg-join: linear-gradient(180deg, #ebdcb9 0%, #f9f7f2 100%);
  --color-glass-bg: rgba(255, 255, 255, 0.65);
  --color-cta-bg: linear-gradient(140deg, rgba(214, 180, 111, 0.15), rgba(255, 255, 255, 0.65));
  --color-header-bg: linear-gradient(180deg, rgba(249, 247, 242, 0.92), rgba(249, 247, 242, 0.72));
  --color-hero-overlay: linear-gradient(270deg, rgba(255, 255, 255, 0.05), rgba(249, 247, 242, 0.4) 32%, rgba(249, 247, 242, 0.85) 76%, var(--color-bg));
  --color-eyebrow-bg: rgba(255, 255, 255, 0.45);
  --color-dropdown-bg: rgba(255, 255, 255, 0.96);
  --color-rank-table-wrap-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 245, 238, 0.82));
  --color-rank-table-premium-th-bg: rgb(242, 239, 230);
  --color-rank-table-premium-td-bg: rgba(242, 239, 230, 0.75);
  --color-mini-card-bg: rgba(255, 255, 255, 0.6);
  --color-mini-card-hover-bg: rgba(255, 255, 255, 0.95);
  --color-footer-bg-end: #f4f1e6;
  --color-footer-text: #6b6053;
  --color-footer-notice: #5f757e;
  --color-footer-divider: rgba(181, 144, 73, 0.15);
  --color-page-header-bg: linear-gradient(180deg, #f9f7f2 0%, #f4f1e6 100%);
  --color-route-string-bg: #eceae1;
  --color-route-string-text: var(--color-text);
  --color-route-string-border: rgba(181, 144, 73, 0.15);
}

[data-theme="emerald"] {
  --color-bg: #031210;
  --color-surface: rgba(6, 26, 22, 0.88);
  --color-surface-2: rgba(9, 36, 30, 0.92);
  --color-surface-3: #0d4036;
  --color-border: rgba(16, 185, 129, 0.22);
  --color-divider: rgba(16, 185, 129, 0.10);
  --color-text: #e6f7f3;
  --color-text-muted: #93c5ba;
  --color-text-faint: #5e9489;
  --color-text-inverse: #02100d;
  --color-primary: #10b981;
  --color-primary-strong: #34d399;
  --color-accent: #f59e0b;
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, .25);
  --shadow-md: 0 20px 50px rgba(0, 0, 0, .40);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, .55);
  --color-bg-about: linear-gradient(180deg, #031210 0%, #061a16 100%);
  --color-bg-routes: linear-gradient(180deg, #061a16 0%, #0a2923 100%);
  --color-bg-fleet: linear-gradient(180deg, #0d4036 0%, #061a16 100%);
  --color-bg-ranks: linear-gradient(180deg, #051814 0%, #0b2f28 100%);
  --color-bg-leadership: linear-gradient(180deg, #061a16 0%, #08241e 100%);
  --color-bg-gallery: linear-gradient(180deg, #031210 0%, #061d18 100%);
  --color-bg-join: linear-gradient(180deg, #0a2c25 0%, #031210 100%);
  --color-glass-bg: rgba(6, 26, 22, 0.65);
  --color-cta-bg: linear-gradient(140deg, rgba(16, 185, 129, 0.15), rgba(6, 26, 22, 0.8));
  --color-header-bg: linear-gradient(180deg, rgba(3, 18, 16, 0.94), rgba(3, 18, 16, 0.76));
  --color-hero-overlay: linear-gradient(270deg, rgba(3, 18, 16, 0.18), rgba(3, 18, 16, 0.46) 32%, rgba(3, 18, 16, 0.88) 76%, var(--color-bg));
  --color-eyebrow-bg: rgba(3, 18, 16, 0.6);
  --color-dropdown-bg: rgba(7, 31, 26, 0.96);
  --color-rank-table-wrap-bg: linear-gradient(180deg, rgba(6, 26, 22, 0.9), rgba(13, 64, 54, 0.82));
  --color-rank-table-premium-th-bg: rgb(15, 45, 38);
  --color-rank-table-premium-td-bg: rgba(15, 45, 38, 0.75);
  --color-mini-card-bg: rgba(16, 185, 129, 0.04);
  --color-mini-card-hover-bg: rgba(16, 185, 129, 0.09);
  --color-footer-bg-end: #010908;
  --color-footer-text: #6e948b;
  --color-footer-notice: #93c5ba;
  --color-footer-divider: rgba(16, 185, 129, 0.15);
  --color-page-header-bg: linear-gradient(180deg, #031210 0%, #061a16 100%);
  --color-route-string-bg: #020d0b;
  --color-route-string-text: #93c5ba;
  --color-route-string-border: rgba(16, 185, 129, 0.15);
}

[data-theme="red"] {
  --color-bg: #090304;
  --color-surface: rgba(24, 10, 12, 0.88);
  --color-surface-2: rgba(34, 13, 16, 0.92);
  --color-surface-3: #3e1217;
  --color-border: rgba(239, 68, 68, 0.24);
  --color-divider: rgba(239, 68, 68, 0.12);
  --color-text: #fee2e2;
  --color-text-muted: #fca5a5;
  --color-text-faint: #b91c1c;
  --color-text-inverse: #090304;
  --color-primary: #ef4444;
  --color-primary-strong: #f87171;
  --color-accent: #f59e0b;
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, .3);
  --shadow-md: 0 20px 50px rgba(0, 0, 0, .45);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, .6);
  --color-bg-about: linear-gradient(180deg, #090304 0%, #170709 100%);
  --color-bg-routes: linear-gradient(180deg, #170709 0%, #290a0e 100%);
  --color-bg-fleet: linear-gradient(180deg, #3e1217 0%, #170709 100%);
  --color-bg-ranks: linear-gradient(180deg, #120507 0%, #26090c 100%);
  --color-bg-leadership: linear-gradient(180deg, #170709 0%, #21080b 100%);
  --color-bg-gallery: linear-gradient(180deg, #090304 0%, #180608 100%);
  --color-bg-join: linear-gradient(180deg, #2f0b0f 0%, #090304 100%);
  --color-glass-bg: rgba(24, 10, 12, 0.65);
  --color-cta-bg: linear-gradient(140deg, rgba(239, 68, 68, 0.15), rgba(24, 10, 12, 0.8));
  --color-header-bg: linear-gradient(180deg, rgba(9, 3, 4, 0.94), rgba(9, 3, 4, 0.76));
  --color-hero-overlay: linear-gradient(270deg, rgba(9, 3, 4, 0.18), rgba(9, 3, 4, 0.46) 32%, rgba(9, 3, 4, 0.88) 76%, var(--color-bg));
  --color-eyebrow-bg: rgba(9, 3, 4, 0.6);
  --color-dropdown-bg: rgba(28, 11, 14, 0.96);
  --color-rank-table-wrap-bg: linear-gradient(180deg, rgba(24, 10, 12, 0.9), rgba(62, 18, 23, 0.82));
  --color-rank-table-premium-th-bg: rgb(45, 15, 18);
  --color-rank-table-premium-td-bg: rgba(45, 15, 18, 0.75);
  --color-mini-card-bg: rgba(239, 68, 68, 0.04);
  --color-mini-card-hover-bg: rgba(239, 68, 68, 0.09);
  --color-footer-bg-end: #040102;
  --color-footer-text: #a85d65;
  --color-footer-notice: #fca5a5;
  --color-footer-divider: rgba(239, 68, 68, 0.15);
  --color-page-header-bg: linear-gradient(180deg, #090304 0%, #170709 100%);
  --color-route-string-bg: #060203;
  --color-route-string-text: #fca5a5;
  --color-route-string-border: rgba(239, 68, 68, 0.15);
}

html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *:before,
html.theme-transitioning *:after {
  transition: background-color 350ms ease, border-color 350ms ease, color 350ms ease, box-shadow 350ms ease !important;
}

/* Luxury Theme Switcher Popover */
.eyv-theme-popover-wrapper {
  position: relative;
  display: inline-block;
}

.eyv-theme-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  background: var(--color-dropdown-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.eyv-theme-popover.is-open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.eyv-theme-popover-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 8px;
  padding-left: 4px;
}

.eyv-theme-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 4px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.eyv-theme-option:last-child {
  margin-bottom: 0;
}

.eyv-theme-option:hover {
  background: var(--color-mini-card-hover-bg);
  border-color: var(--color-border);
  transform: translateX(2px);
}

.eyv-theme-option.is-active {
  background: var(--color-mini-card-hover-bg);
  border-color: var(--color-primary);
  font-weight: 700;
}

.eyv-theme-option-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyv-theme-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.eyv-theme-swatch.gold { background: linear-gradient(135deg, #071018 50%, #d6b46f 50%); }
.eyv-theme-swatch.emerald { background: linear-gradient(135deg, #031210 50%, #10b981 50%); }
.eyv-theme-swatch.red { background: linear-gradient(135deg, #090304 50%, #ef4444 50%); }

.eyv-theme-check {
  display: none;
  color: var(--color-primary);
  font-weight: bold;
}

.eyv-theme-option.is-active .eyv-theme-check {
  display: block;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  z-index: 99;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  background: var(--color-header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
}

.header-inner {
  width: 100%;
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding-inline: 1.5rem;
}

.shell {
  width: min(calc(100% - 1.5rem), var(--content));
  margin-inline: auto;
  padding-inline: 1rem;
}

.shell {
  padding-left: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: transparent;
  padding: 0;
  object-fit: contain;
}

.brand-copy strong,
.brand-copy span {
  display: block;
  text-transform: uppercase;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: var(--text-md);
  letter-spacing: .12em;
}

.brand-copy span {
  font-size: var(--text-xs);
  letter-spacing: .22em;
  color: var(--color-text-muted);
}

.nav-links {
  display: flex;
  gap: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color 0.2s ease, opacity 0.2s ease;
  right: 1.5rem !important;
  /* Locks the right edge cleanly aligned with the layout margin */
  left: auto !important;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-actions {
  margin-left: auto;
}

.nav-shortcuts {
  display: none;
  align-items: center !important;
}

.theme-toggle,
.cmd-trigger-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  padding: 0 12px;
}

.cmd-trigger-btn {
  gap: 8px;
}

.cmd-kbd-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(214, 180, 111, 0.12);
  color: var(--color-primary);
  border: 1px solid rgba(214, 180, 111, 0.25);
  line-height: 1;
}

.theme-toggle {
  width: 46px;
  padding: 0;
}

#btnNightVisionToggle {
  display: none !important;
}

.theme-toggle:hover,
.cmd-trigger-btn:hover {
  background: rgba(214, 180, 111, 0.08);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.route-count-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(214, 180, 111, 0.15);
  color: var(--color-primary);
  border: 1px solid rgba(214, 180, 111, 0.3);
  margin-left: 6px;
}


@media (min-width: 992px) {
  .nav-shortcuts {
    display: flex;
    flex-direction: row;
    gap: var(--space-6);
    margin-left: auto;
    /* Pushes the entire link group to the right */
    padding-right: var(--space-4);
    /* Adds a nice breathing room before the moon icon */
  }

  .nav-actions {
    margin-left: 0;
    /* Resets the action container so it clusters neatly with the links */
  }

  .nav-shortcuts a {
    position: relative;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color 0.2s ease;
    padding-bottom: 6px;
  }

  /* The glowing gradient line (hidden by default) */
  .nav-shortcuts a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
    border-radius: 2px;
    opacity: 0;
    box-shadow: 0 1px 6px rgba(214, 180, 111, 0.4);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }

  .nav-shortcuts a:hover {
    color: var(--color-primary);
  }

  /* Animate the line spreading outwards on hover */
  .nav-shortcuts a:hover::after {
    width: 100%;
    opacity: 1;
  }
}

@media (min-width: 992px) {
  .nav-shortcuts {
    display: flex;
    flex-direction: row;
    gap: var(--space-6);
  }

  .nav-shortcuts a {
    position: relative;
    /* Required to anchor the underline */
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color 0.2s ease;
    padding-bottom: 6px;
    /* Creates spacing between text and the line */
  }

  /* The glowing gradient line (hidden by default) */
  .nav-shortcuts a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    /* Start exactly in the middle */
    transform: translateX(-50%);
    /* Centers the element perfectly */
    width: 0;
    /* Starts at 0 width for the animation */
    height: 2px;
    /* The gradient: Transparent on edges, gold in the middle */
    background: linear-gradient(90deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
    border-radius: 2px;
    opacity: 0;
    box-shadow: 0 1px 6px rgba(214, 180, 111, 0.4);
    /* Adds the soft ambient glow */
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }

  .nav-shortcuts a:hover {
    color: var(--color-primary);
  }

  /* Animate the line spreading outwards on hover */
  .nav-shortcuts a:hover::after {
    width: 100%;
    opacity: 1;
  }
}

/* Active nav highlight — current page link gets gold underline */
@media (min-width: 992px) {
  .nav-shortcuts a[aria-current="page"] {
    color: var(--color-primary);
  }
  .nav-shortcuts a[aria-current="page"]::after {
    width: 100%;
    opacity: 1;
  }
}

/* 2. Base Menu Toggle Button Configuration */
.menu-toggle {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  display: none;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(214, 180, 111, 0.08);
  border-color: var(--color-primary);
}

.shell.nav {
  position: relative;
  /* Keeps absolute elements tracked to the header boundaries */
}

.nav-links {
  display: flex !important;
  flex-direction: column;
  position: absolute !important;
  top: 78px;
  right: 1.5rem !important;
  width: auto;
  background: var(--color-dropdown-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: var(--space-4);
  gap: var(--space-2);
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.5s;
}

/* Active State (Controlled by your JavaScript scroll/click toggle) */
.nav-links.is-open {
  opacity: 1;
  /* Fade completely into view */
  visibility: visible;
  /* Make links clickable */
  transform: translateY(0);
  box-shadow:
    0 12px 40px rgba(4, 10, 16, 0.65),
    /* Layer 1: Strong, deep dark-blue shadow */
    0 0 20px rgba(214, 180, 111, 0.04);
}

/* Active State (Controlled by JavaScript Toggle) */
.nav-links.is-open {
  display: flex;
}

/* Sub-styling for link items inside the vertical dropdown container */
.nav-links a {
  position: relative;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.35rem 1.25rem;
  border-radius: 10px;
  width: 100%;
  transition: color 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 100%;
  background: rgba(214, 180, 111, 0.08);
  border-radius: 10px;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-links a:hover::before {
  width: 100%;
}

/* 1. Desktop Position Modifier */
@media (min-width: 992px) {
  .nav-links {
    right: 7.5rem !important;
    /* Positions under the toggle on desktop */
    left: auto !important;
  }
}

/* 2. Mobile Clean Alignment Overrides */
@media (max-width: 980px) {
  .nav-links {
    position: absolute !important;
    top: 78px;
    /* Perfectly gaps below your header bar */

    /* --- THE FIX: Anchor right, cancel left, lock the width --- */
    right: 1.5rem !important;
    left: auto !important;
    width: 200px !important;

    gap: var(--space-2);
    padding: var(--space-4);
    border-radius: 14px;
    background: var(--color-dropdown-bg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
}

/* --- DESKTOP HOVER DROPDOWN --- */
.dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* The invisible bridge: prevents the menu from vanishing 
         when moving the mouse from the text to the box */
.dropdown-wrapper::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  z-index: 10;
}

/* The Dropdown Box */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  /* Pushes it just below the header */
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--color-dropdown-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--space-2);
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;

  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 12px 40px rgba(4, 10, 16, 0.65);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 90;
}

/* The Reveal Animation */
.dropdown-wrapper:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Sub-link specific styling */
.dropdown-menu a {
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  color: var(--color-text);
  padding-bottom: 0.6rem;
  transition: color 0.3s ease;
  /* Overrides the 6px padding from the main nav */
}

.dropdown-menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 100%;
  background: rgba(214, 180, 111, 0.08);
  border-radius: 8px;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}

/* Disable the glowing underline for the internal sub-links */
.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  color: var(--color-primary);
}

.dropdown-menu a:hover::before {
  width: 100%;
}

/* Forces the main "Routes" link to stay glowing and gold 
         while the user is hovered inside the dropdown box */
.dropdown-wrapper:hover>a {
  color: var(--color-primary);
}

.dropdown-wrapper:hover>a::after {
  width: 100%;
  opacity: 1;
}

/* --- MOBILE MENU ACCORDION --- */
.mobile-dropdown {
  width: 100%;
}

/* The clickable summary button (Mimics .nav-links a) */
.mobile-dropdown summary {
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: var(--color-text);
  padding: 0.35rem 1.25rem;
  /* FIXED: Now matches the standard <a> links perfectly */
  border-radius: 10px;
  width: 100%;
  cursor: pointer;
  transition: color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  margin: 0;
  /* Ensures no hidden browser margins push it around */
}

.mobile-dropdown summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 100%;
  background: rgba(214, 180, 111, 0.08);
  border-radius: 10px;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}

/* Hides the default browser triangle in Chrome/Safari/Edge */
.mobile-dropdown summary::-webkit-details-marker {
  display: none;
}

/* Hover effect matching the regular buttons */
.mobile-dropdown summary:hover {
  color: var(--color-primary);
}

.mobile-dropdown summary:hover::before {
  width: 100%;
}

/* The container for the sub-links */
.mobile-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.2rem;
  padding-left: 1.25rem;
  /* FIXED: Aligns the sub-links with the parent text */
}

/* Smoothly rotates the chevron icon when tapped open */
.mobile-dropdown summary svg {
  transition: transform 0.3s ease;
  color: inherit;
}

.mobile-dropdown[open] summary svg {
  transform: rotate(180deg);
}

.ceo-message {
  margin-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
  border-left: 2px solid rgba(214, 180, 111, 0.25);
  padding-left: var(--space-8);
  padding-bottom: var(--space-6);
}

.ceo-message p:nth-of-type(2) {
  color: var(--color-text-muted);
  font-style: italic;
  max-width: 65ch;
  line-height: 1.7;
  /* Slightly increased from 1.6 for enhanced long-form breathing room */

  /* --- TYPOGRAPHY POLISH --- */
  hanging-punctuation: first;
  font-size: var(--text-base);
  /* Ensures it feels distinct from smaller caption text */
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.92rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: 0 8px 24px rgba(214, 180, 111, 0.2);
}

.btn-primary:hover {
  background: var(--color-primary-strong);
  color: var(--color-text-inverse);
  box-shadow: 0 12px 30px rgba(214, 180, 111, 0.35);
}

.btn-secondary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(214, 180, 111, 0.4);
  color: var(--color-primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.hero {
  position: relative;
  display: block;
  padding: clamp(0.5rem, 2vw, 1.5rem) 0 var(--space-12);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

/* Theme-specific hero images — now wrapping <picture> elements */
.hero-media picture.hero-light {
  display: none;
}
.hero-media picture.hero-dark {
  display: block;
}

[data-theme="light"] .hero-media picture.hero-dark {
  display: none !important;
}
[data-theme="light"] .hero-media picture.hero-light {
  display: block !important;
}

/* Ensure the inner img still fills its picture wrapper */
.hero-media picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-hero-overlay);
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: end;
}

.hero-copy {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(214, 180, 111, 0.12);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.eyebrow-head {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--color-eyebrow-bg);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

h1 {
  margin: var(--space-5) 0 var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 0.96;
  letter-spacing: -0.045em;
  max-width: 10ch;
}

.hero-copy p {
  max-width: 60ch;
  color: var(--color-text-muted);
}

.hero-actions,
.hero-stats {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: var(--space-6);
}

.hero-stats {
  margin-top: var(--space-8);
}

.stat-card {
  min-width: 170px;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-glass-bg);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 180, 111, 0.3);
  box-shadow: 0 12px 30px rgba(214, 180, 111, 0.1);
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
}

.stat-card span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.hero-side {
  display: grid;
  gap: var(--space-4);
  max-width: 100%;
  margin-top: var(--space-6);
}

.glass {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.info-panel {
  padding: var(--space-6);
}

.info-panel h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin: 0.7rem 0 0.4rem;
}

.info-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.mini-grid div {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-mini-card-bg);
  border: 1px solid var(--color-border);
}

.mini-btn {
  display: block;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-mini-card-bg);
  border: 1px solid var(--color-border);
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.mini-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 180, 111, 0.35);
  background: var(--color-mini-card-hover-bg);
  box-shadow: 0 10px 25px rgba(214, 180, 111, 0.08);
}

.mini-grid strong {
  display: block;
  font-size: var(--text-lg);
  font-family: var(--font-display);
  color: var(--color-primary);
}

.mini-btn strong,
.mini-btn span {
  display: block;
}

.section {
  padding: clamp(var(--space-12), 8vw, var(--space-20)) 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-8);
  align-items: end;
  margin-bottom: var(--space-8);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.section-head p {
  margin: 0;
  max-width: 52ch;
  color: var(--color-text-muted);
}

.section-head {
  padding-left: 1rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 180, 111, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-5);
  background: rgba(214, 180, 111, 0.12);
  color: var(--color-primary);
}

.card h3 {
  margin: 0 0 0.7rem;
  font-size: var(--text-lg);
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
}

.media-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-5);
  align-items: stretch;
}

.photo-card {
  overflow: hidden;
  border-radius: 1.8rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.photo-card:hover {
  border-color: rgba(214, 180, 111, 0.25);
  box-shadow: var(--shadow-lg);
}

.photo-card img {
  width: 100%;
  height: auto;
  display: block;
}

.copy-stack {
  display: grid;
  gap: var(--space-5);
}

.feature-list {
  display: grid;
  gap: var(--space-4);
  margin-top: 0;
}

.fleet-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.group-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: 0.5rem;
}

.feature-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}

.feature-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 0.55rem;
  background: var(--color-primary);
  box-shadow: 0 0 0 8px rgba(214, 180, 111, 0.08);
  flex-shrink: 0;
}

.fleet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.fleet-item {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
}

.fleet-item strong {
  display: block;
}

.fleet-item span {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.fleet-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.fleet-card-link .fleet-item {
  transition: transform var(--transition), border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.fleet-card-link:hover .fleet-item {
  transform: translateY(-4px);
  border-color: rgba(214, 180, 111, 0.3);
  background: linear-gradient(145deg, rgba(214, 180, 111, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: 0 16px 40px rgba(214, 180, 111, 0.2);
}

/* ============================================================
   GALLERY CAROUSEL
   ============================================================ */
.gallery-carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  width: 100%;
}

.carousel-content {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(214, 180, 111, 0.18);
  background: #070f18;
}

.carousel-content img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 540px;
  transition: opacity 0.35s ease;
}

/* Photo credit overlay — always visible in carousel */
.carousel-content .photo-credit {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.25rem 0.9rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 0 0 1.25rem 1.25rem;
  opacity: 1;
  transform: none;
  pointer-events: none;
}

/* Arrow buttons — gold/glass style */
.carousel-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(214, 180, 111, 0.35);
  background: rgba(17, 27, 36, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-primary, #d6b46f);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.carousel-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
}

.carousel-btn:hover {
  background: rgba(214, 180, 111, 0.18);
  border-color: rgba(214, 180, 111, 0.7);
  box-shadow: 0 0 18px rgba(214, 180, 111, 0.25);
  transform: scale(1.08);
}

.carousel-btn:active {
  transform: scale(0.95);
}

/* Progress bar + counter */
.carousel-progress-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.85rem;
  padding: 0 0.25rem;
}

.carousel-progress-track {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(214, 180, 111, 0.15);
  overflow: hidden;
}

.carousel-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(214, 180, 111, 0.6), var(--color-primary, #d6b46f));
  width: 11%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-counter {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-primary, #d6b46f);
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
  min-width: 2.6rem;
  text-align: right;
}

@media (max-width: 640px) {
  .carousel-btn {
    width: 2.4rem;
    height: 2.4rem;
  }
  .carousel-content img {
    max-height: 320px;
  }
}


.cta-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  background: var(--color-cta-bg);
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  box-shadow: var(--shadow-lg)
}

.cta-panel h2 {
  margin: .7rem 0 0;
  font-family: var(--font-display);
  font-size: var(--text-2xl)
}

.disclaimer {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: rgba(214, 180, 111, .08);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-sm)
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease
}

.reveal.is-visible {
  opacity: 1;
  transform: none
}

@media (max-width:980px) {
  .hero {
    min-height: auto;
    padding-top: 7rem
  }

  .hero-grid,
  .media-split,
  .fleet-grid,
  .gallery,
  .info-grid {
    grid-template-columns: 1fr
  }

  .nav-links {
    position: absolute;
    top: calc(100% + .7rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md)
  }

  .nav-links.is-open {
    display: flex
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center
  }

  .mini-grid,
  .fleet-list {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:640px) {
  .shell {
    width: min(calc(100% - 1rem), var(--content))
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch
  }

  .btn {
    width: 100%
  }

  .nav {
    align-items: flex-start;
    padding-block: .8rem
  }

  .nav-actions {
    margin-left: auto
  }

  .mini-grid,
  .fleet-list {
    grid-template-columns: 1fr
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start
  }

  .body {
    padding: 24px 0 60px !important;
  }
}

@media (max-width:640px) {
  .nav {
    padding-inline: 1rem;
  }
}

.fleet-item {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fleet-img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.fleet-item strong {
  display: block;
}

.fleet-item span {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.fleet-data {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: all 0.5s ease;
}

.fleet-data hr {
  border: 0;
  border-top: 1px solid var(--color-divider);
  margin: 0.5rem 0;
}

.fleet-data p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Desktop: Hover-Verhalten NUR bei echten Mäusen */
@media (hover: hover) and (pointer: fine) {
  .fleet-card-link:hover .fleet-data {
    max-height: 200px;
    /* Groß genug für den Text */
    opacity: 1;
    margin-top: 0.5rem;
  }
}

/* Mobile: Klasse, die per JavaScript getriggert wird */
.fleet-card-link.is-expanded .fleet-data {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.5rem;
}

.fleet-item {
  position: relative;
}

/* 2. Der Pfeil: Standardmäßig sichtbar, unten rechts, zeigt nach unten */
.fleet-item::after {
  content: "";
  position: absolute;
  bottom: 1.2rem;
  /* Sitzt elegant in der unteren rechten Ecke */
  top: auto;
  /* Explicitly set so we can override it cleanly */
  right: 1.2rem;
  width: 20px;
  height: 20px;
  /* Neuer SVG-Code für einen Pfeil nach unten (Chevron Down) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6b46f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;

  /* Ist nun von Anfang an sichtbar */
  opacity: 1;

  /* Transition on 'all' so rotation and position updates are handled */
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. Desktop Hover: Karte klappt auf -> Pfeil springt nach oben rechts und zeigt diagonal (↗) */
@media (hover: hover) and (pointer: fine) {
  .fleet-card-link:hover .fleet-item::after {
    bottom: auto;
    /* Löst den Pfeil von unten */
    top: 1.2rem;
    /* Pinnt den Pfeil oben fest */
    transform: rotate(-135deg);
    /* Dreht den Chevron nach oben-rechts */
  }
}

/* 4. Mobile Tap: Karte klappt auf -> Pfeil springt nach oben rechts und zeigt diagonal (↗) */
.fleet-card-link.is-expanded .fleet-item::after {
  bottom: auto;
  top: 1.2rem;
  transform: rotate(-135deg);
}

.fleet-grid-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 2rem;
}

.fleet-grid-content p {
  margin: 0;
  min-width: 0;
}

.fleet-meta-row {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  min-width: 0;
  display: block;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.45rem !important;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (hover: hover) and (pointer: fine) {
  .fleet-card-link:hover .fleet-data {
    max-height: 600px !important;
    /* Increased from 200px */
  }
}

.fleet-card-link.is-expanded .fleet-data {
  max-height: 600px !important;
  /* Increased from 200px */
}

/* 2. Style the new Geek Data container (Hidden by default) */
.fleet-geek-data {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active state for Geek Data */
.fleet-card-link.show-geek .fleet-geek-data {
  max-height: 250px;
  opacity: 1;
  margin-top: 0.5rem;
}

/* 3. Style the clickable toggle arrow */
.geek-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 4px 0;
  /* Creates a slightly larger tap target */
  transition: color 0.5s ease;
}

.geek-toggle:hover {
  color: var(--color-text);
  /* Brightens on hover */
}

.geek-toggle svg {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Rotate the arrow 180 degrees when expanded */
.fleet-card-link.show-geek .geek-toggle svg {
  transform: rotate(180deg);
}

.tooltip .tseasonal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.op-tag,
.status-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  /* Squarer, more modern pill shape */
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.2;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.op-etihad {
  color: #09131b;
  background: linear-gradient(135deg, #d6b46f, #bda063);
  border-color: rgba(214, 180, 111, 0.8);
}

.op-airarabia {
  color: #fff;
  background: linear-gradient(135deg, #E1002A, #b30022);
  border-color: rgba(225, 0, 42, 0.8);
}

.op-cargo {
  color: #09131b;
  background: linear-gradient(135deg, #7dcfff, #5cbbe8);
  border-color: rgba(125, 207, 255, 0.8);
}

.op-historic {
  color: #09131b;
  background: linear-gradient(135deg, #b8865a, #9e734c);
  border-color: rgba(184, 134, 90, 0.8);
}

.op-special {
  color: #09131b;
  background: linear-gradient(135deg, #5fd6a7, #4ec295);
  border-color: rgba(95, 214, 167, 0.8);
}

.status-seasonal {
  color: #dff6ff;
  background: rgba(140, 163, 171, 0.2);
  border-color: rgba(140, 163, 171, 0.5);
}

.status-yearround {
  color: #f6efdf;
  background: #2A3640;
  border-color: #50606B;
}

.rank-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-top: var(--space-6);
  border-radius: 1.8rem;
  border: 1px solid var(--color-border);
  background: var(--color-rank-table-wrap-bg);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
  /* Forces a horizontal scrolling canvas on small mobile viewports */
  overflow-y: hidden;
  /* Prevents accidental vertical drifting while shifting lanes */
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 980px) {
  .rank-table-wrap {
    overflow-x: auto !important;
  }

  .rank-table {
    min-width: 980px !important;
  }
}

.rank-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: fixed;
  border-radius: 12px;
  overflow: hidden;
}

.rank-table thead th {
  color: #09131b;
  text-shadow: none;
}

.rank-table th,
.rank-table td {
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 0.9rem 1rem;
  text-align: center;
  vertical-align: middle;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.rank-table thead th {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -.02em;
}

.rank-table thead th.col-rank {
  background: linear-gradient(135deg, rgba(227, 193, 132, 0.22) 0%, rgba(179, 143, 77, 0.12) 100%);
  color: var(--color-text);
  border-bottom: 2px solid rgba(227, 193, 132, 0.15);
  font-weight: 600;
  letter-spacing: 0.02em;
  width: 14%;
  -webkit-font-smoothing: antialiased;
}

.rank-table thead th.col-hours {
  background: linear-gradient(135deg, rgba(227, 193, 132, 0.22) 0%, rgba(179, 143, 77, 0.12) 100%);
  color: var(--color-text);
  border-bottom: 2px solid rgba(227, 193, 132, 0.15);
  font-weight: 600;
  letter-spacing: 0.02em;
  width: 10%;
  -webkit-font-smoothing: antialiased;
}

.rank-table thead th.col-benefits {
  background: linear-gradient(135deg, rgba(227, 193, 132, 0.22) 0%, rgba(179, 143, 77, 0.12) 100%);
  color: var(--color-text);
  border-bottom: 2px solid rgba(227, 193, 132, 0.15);
  font-weight: 600;
  letter-spacing: 0.02em;
  width: 30%;
  -webkit-font-smoothing: antialiased;
}

.rank-table thead th.col-codeshares {
  background: linear-gradient(135deg, rgba(227, 193, 132, 0.22) 0%, rgba(179, 143, 77, 0.12) 100%);
  color: var(--color-text);
  border-bottom: 2px solid rgba(227, 193, 132, 0.15);
  font-weight: 600;
  letter-spacing: 0.02em;
  width: 12%;
  -webkit-font-smoothing: antialiased;
}

.rank-table thead th.col-meva {
  background: linear-gradient(135deg, rgba(227, 193, 132, 0.22) 0%, rgba(179, 143, 77, 0.12) 100%);
  color: var(--color-text);
  border-bottom: 2px solid rgba(227, 193, 132, 0.15);
  font-weight: 600;
  letter-spacing: 0.02em;
  width: 17%;
  -webkit-font-smoothing: antialiased;
}

.rank-table thead th.col-charters {
  background: linear-gradient(135deg, rgba(227, 193, 132, 0.22) 0%, rgba(179, 143, 77, 0.12) 100%);
  color: var(--color-text);
  border-bottom: 2px solid rgba(227, 193, 132, 0.15);
  font-weight: 600;
  letter-spacing: 0.02em;
  width: 17%;
  -webkit-font-smoothing: antialiased;
}

.rank-table tbody th {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 800;
  text-align: center;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.04);
}

.rank-table tbody td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.rank-table th,
.rank-table td {
  border: 1px solid rgba(214, 180, 111, 0.14);
}

.rank-table tbody tr.premium th {
  color: var(--color-primary-strong);
  background-color: var(--color-rank-table-premium-th-bg);
}

.rank-table tbody tr.premium td {
  background-color: var(--color-rank-table-premium-td-bg);
  color: var(--color-text);
}

.rank-badge-gold {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(214, 180, 111, 0.15), rgba(214, 180, 111, 0.03));
  border: 1px solid rgba(214, 180, 111, 0.3);
  box-shadow: 0 0 12px rgba(214, 180, 111, 0.08);
  white-space: nowrap;
}

.center-cell {
  text-align: center;
}

.check-big {
  display: inline-block;
  color: #c9a24a;
  font-size: 3.25rem;
  line-height: 1;
  font-weight: 900;
}

.check-small {
  display: inline-block;
  color: #d2b35a;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 900;
}

.stamp {
  display: inline-block;
  padding: .38rem .78rem;
  border: 3px solid #7b2f2a;
  color: #7b2f2a;
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(-14deg);
  letter-spacing: .08em;
  border-radius: .45rem;
  background: rgba(123, 47, 42, 0.10);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .rank-table {
    min-width: 980px;
  }

  .rank-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
  }
}

.rank-table-wrap {
  border-bottom: none;
  overflow: hidden;
}

.rank-table {
  border-bottom: none;
}

.rank-table tbody tr:last-child th,
.rank-table tbody tr:last-child td {
  border-bottom: none;
}

td.charters-locked-cell {
  padding: 0 !important;
  /* Removes cell padding so the inner div can fill 100% of the height */
  vertical-align: middle;
  background-color: rgba(16, 20, 28, 0.4);
  /* The sleek dark lockout tint */
}

/* The magic wrapper that perfectly centers everything over all 6 rows */
td.charters-locked-cell .stamp-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  /* Forces browser rendering to respect the vertical span */
  height: 100%;
  width: 100%;
}

/* Style the text stamp exactly like a physical stamp */
td.charters-locked-cell .stamp {
  display: inline-block;
  color: #ba4343;
  /* Clean luxury red/crimson */
  border: 2px solid #ba4343;
  padding: 6px 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  transform: rotate(-20deg);
  /* The slick dynamic stamp angle */
  white-space: nowrap;
}

.leadership-stack {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-6);
}

.leadership-group {
  padding: var(--space-6);
  border-radius: 1.8rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}

.group-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: -.03em;
}

.group-head span {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.leadership-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.leader-card {
  padding: var(--space-6);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
  position: relative !important;
}

.leader-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 180, 111, .26);
  background: rgba(255, 255, 255, .05);
  box-shadow: 0 16px 40px rgba(214, 180, 111, 0.3);

}

.leader-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.leader-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem .75rem;
  border-radius: var(--radius-full);
  background: rgba(214, 180, 111, .12);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: var(--text-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.leader-role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: right;
}

.leader-card h4 {
  margin: 0 0 .3rem;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: -.02em;
}

.leader-meta {
  margin: 0 0 .8rem;
  color: var(--color-primary-strong);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.leader-desc {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.leader-president {
  border-color: rgba(214, 180, 111, .28);
  background: linear-gradient(145deg, rgba(214, 180, 111, .10), rgba(255, 255, 255, .03));
}

.leader-vacant {
  opacity: .9;
  border-style: dashed;
}

.leader-advisor {
  background: linear-gradient(145deg, rgba(140, 163, 171, .10), rgba(255, 255, 255, .03));
}

@media (max-width: 980px) {

  .leadership-grid,
  .leadership-grid.compact {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .group-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .body {
    padding: 24px 16px 60px;
  }

  .detail-header {
    padding: 24px 16px 0;
  }

  .leadership-grid,
  .leadership-grid.compact {
    grid-template-columns: 1fr;
  }

  .leader-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .leader-role {
    text-align: left;
  }
}

/* ===== EXECUTIVE LEADERSHIP CARD THEMES ===== */
.leader-ceo {
  background: linear-gradient(145deg, rgba(214, 180, 111, 0.16), rgba(255, 255, 255, 0.03));
  border-color: rgba(214, 180, 111, 0.35);
}
.leader-ceo:hover {
  background: linear-gradient(145deg, rgba(214, 180, 111, 0.22), rgba(255, 255, 255, 0.05));
  border-color: rgba(214, 180, 111, 0.55);
}
.leader-ceo .leader-badge {
  color: #d6b46f;
  border-color: rgba(214, 180, 111, 0.4);
  background: rgba(214, 180, 111, 0.12);
}

.leader-coo {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.14), rgba(255, 255, 255, 0.03));
  border-color: rgba(245, 158, 11, 0.3);
}
.leader-coo:hover {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.2), rgba(255, 255, 255, 0.05));
  border-color: rgba(245, 158, 11, 0.5);
}
.leader-coo .leader-badge {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
}

.leader-dops {
  background: linear-gradient(145deg, rgba(20, 184, 166, 0.14), rgba(255, 255, 255, 0.03));
  border-color: rgba(20, 184, 166, 0.3);
}
.leader-dops:hover {
  background: linear-gradient(145deg, rgba(20, 184, 166, 0.2), rgba(255, 255, 255, 0.05));
  border-color: rgba(20, 184, 166, 0.5);
}
.leader-dops .leader-badge {
  color: #2dd4bf;
  border-color: rgba(20, 184, 166, 0.4);
  background: rgba(20, 184, 166, 0.12);
}

.leader-hot {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.14), rgba(255, 255, 255, 0.03));
  border-color: rgba(14, 165, 233, 0.3);
}
.leader-hot:hover {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.2), rgba(255, 255, 255, 0.05));
  border-color: rgba(14, 165, 233, 0.5);
}
.leader-hot .leader-badge {
  color: #38bdf8;
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.12);
}

.leader-trustee {
  background: linear-gradient(145deg, rgba(140, 163, 171, 0.14), rgba(255, 255, 255, 0.03));
  border-color: rgba(140, 163, 171, 0.22);
}
.leader-trustee:hover {
  background: linear-gradient(145deg, rgba(140, 163, 171, 0.2), rgba(255, 255, 255, 0.05));
  border-color: rgba(140, 163, 171, 0.4);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
}

main {
  width: 100%;
}

.section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: var(--space-6) 0 clamp(var(--space-12), 8vw, var(--space-20)) !important;
  overflow: hidden;
  border-top: 1px solid rgba(214, 180, 111, 0.06);
}

.section>.shell {
  position: relative;
  z-index: 2;
}

#about {
  background: var(--color-bg-about);
}

#routes {
  background: var(--color-bg-routes);
}

#fleet {
  background: var(--color-bg-fleet);
}

#ranks {
  background: var(--color-bg-ranks);
}

#leadership {
  background: var(--color-bg-leadership);
}

#gallery {
  background: var(--color-bg-gallery);
}

#join {
  background: var(--color-bg-join);
}

.section {
  padding: clamp(var(--space-12), 8vw, var(--space-20)) 0;
  border-top: 1px solid rgba(214, 180, 111, 0.06);
}

.footer {
  padding: var(--space-8) 0 var(--space-10);
  border-top: 1px solid var(--color-divider);

  /* Use a slightly darker, softer text-muted variable if available, or stick to this */
  color: var(--color-text-muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);

  /* Gives the top fan-site label an elegant, premium tint */
  color: #a0aab5;
}

.footer-top p {
  margin: 0 auto;
}

.footer-legal {
  display: flex;
  justify-content: center;
}

.footer-legal p {
  max-width: 1000px;
  margin: 0;
  text-align: center;
  font-size: var(--text-xs);
  line-height: 1.6;
  color: #7c8894;
}

.footer-legal strong {
  color: #d6b46f;
  font-weight: 600;
}

@media (max-width: 640px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-legal p {
    max-width: 100%;
    padding-inline: 0.5rem;
  }
}

.real-airline-notice {
  color: #a0aab5;
  /* Soft, desaturated off-white */
  font-size: var(--text-sm);
  margin-top: var(--space-4);
}

/* Style the specific link container */
.real-airline-notice a {
  color: #d6b46f;
  /* Your signature premium brand accent gold */
  text-decoration: underline;

  /* Modern styling control: overrides old-school messy underlines 
      and gives a crisp separation distance between the letters and the line */
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;

  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

/* Add an active interaction glow when a pilot hovers over it */
.real-airline-notice a:hover {
  color: #f4efe6;
  /* Brightens to your crisp cream text color */
  text-decoration-color: #f4efe6;
}

.leader-card {
  position: relative;
}


.leader-card-link {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 1000 !important;
  pointer-events: auto !important;
  inset: 0;
  border-radius: inherit;
}

.leader-top,
.leader-card h4,
.leader-meta,
.leader-desc {
  position: relative;
  z-index: 1;
  pointer-events: none !important;
}

.leader-card>*:not(.leader-card-link) {
  position: relative;
  z-index: 2;
}

.status-badge.check {
  color: #d6b46f;
  /* Use your exact brand gold/bronze color hex code */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(214, 180, 111, 0.1);
  /* Subtle glowing background ring */
  padding: 6px;
  border-radius: 50%;
}

.status-badge.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  /* Enforces a solid, highly visible premium footprint */
  height: 40px;
  /* Keeps the container perfectly circular */
  border-radius: 50%;

  /* Your established design colors */
  background: rgba(214, 180, 111, 0.08);
  /* Muted sand-gold tint */
  color: #d6b46f;
}

/* --- IMAGE LIGHTBOX --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 16, 24, 0.92);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  /* This ensures the entire uncropped picture is visible */
  object-fit: contain;
}

.lightbox.show .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--color-text-muted);
  font-size: 45px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 10000;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--color-primary);
}

/* Lightbox navigation arrows */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  z-index: 10001;
}

.lightbox-arrow:hover {
  background: rgba(214,180,111,0.2);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-img-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-credit {
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-arrow { width: 40px; height: 40px; }
}

/* --- GALLERY HOVER ANIMATION --- */
.photo-card img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-card:hover img {
  transform: scale(1.04);
  /* Creates the subtle zoom */
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-18px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 48px 0;
  animation: fadeDown .6s cubic-bezier(.22, 1, .36, 1) both;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: all .2s;
}

.back-btn:hover {
  background: rgba(214, 180, 111, 0.1);
  border-color: var(--color-primary);
}

.back-btn svg {
  width: 14px;
  height: 14px;
  fill: var(--color-primary);
}

.body {
  padding: 32px 0 80px;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.map-controls {
  position: relative;
  margin-bottom: 20px;
  z-index: 50;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.map-search-container {
  position: relative;
  display: inline-block;
}

.map-search-input {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 14px 10px 36px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  outline: none;
  width: 250px;
  transition: all 0.2s ease;
  height: 41.6px;
  /* Matches filter-toggle-btn height precisely */
  box-sizing: border-box;
}

.map-search-input:focus {
  border-color: var(--color-primary);
  background: rgba(214, 180, 111, 0.04);
  box-shadow: 0 0 0 2px rgba(214, 180, 111, 0.15);
}

.map-search-icon {
  position: absolute;
  left: 12px;
  top: 13px;
  pointer-events: none;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.map-search-input:focus+.map-search-icon {
  color: var(--color-primary);
}

.autocomplete-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--color-dropdown-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  color: var(--color-text);
  font-size: var(--text-sm);
  transition: all 0.15s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background: rgba(214, 180, 111, 0.15);
  color: #fff;
}

.autocomplete-item .airport-code {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-primary-strong);
}

.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-toggle-btn:hover {
  background: rgba(214, 180, 111, 0.08);
  border-color: var(--color-primary);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.filter-toggle-btn .chevron {
  transition: transform 0.3s ease;
  margin-left: 4px;
}

.filter-toggle-btn.is-open .chevron {
  transform: rotate(180deg);
}

.filter-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-dropdown-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: min(420px, calc(90vh - 180px));
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  z-index: 1000;
}

.filter-dropdown-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filter-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(214, 180, 111, 0.08);
}

.filter-title {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.filter-reset-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
}

.filter-reset-btn:hover {
  color: var(--color-primary);
}

.filter-menu-body {
  padding: 20px 24px;
  max-height: calc(75vh - 80px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-menu-body::-webkit-scrollbar {
  width: 6px;
}

.filter-menu-body::-webkit-scrollbar-track {
  background: transparent;
}

.filter-menu-body::-webkit-scrollbar-thumb {
  background: rgba(214, 180, 111, 0.2);
  border-radius: 10px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}

.detail-title {
  font-size: var(--text-xs);
  letter-spacing: 5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text-muted);
}

.detail-rank-name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--color-text);
}

.detail-divider {
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  margin-bottom: 24px;
}

.stats {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.stat-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 20px;
  text-align: center;
  min-width: 90px;
}

.stat-box .n {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--color-primary);
}

.stat-box .l {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 3px;
}

.legend {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-ey {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 1.5px solid rgba(214, 180, 111, 0.5);
}

.dot-aa {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E1002A;
  border: 1.5px solid #E1002A;
}

#globe-wrap {
  position: relative;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  touch-action: pan-y;
  max-width: 100%;
  padding: 0 1rem;
  margin: 0 auto;
}

canvas {
  display: block;
  cursor: grab;
  border-radius: 50%;
  touch-action: pan-y;
  max-width: 100%;
  height: auto;
}

canvas:active {
  cursor: grabbing;
}

.tooltip {
  position: fixed;
  background: rgba(15, 29, 41, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(214, 180, 111, 0.15);
  border-radius: 12px;
  padding: 14px 18px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.tooltip[style*="opacity: 1"] {
  visibility: visible;
  transform: translateY(0);
}

#tt-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 2px;
}

.tooltip .tcountry {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.tooltip .tseasonal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-btn {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-text-muted);
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(214, 180, 111, 0.08);
  color: var(--color-text);
  border-color: rgba(214, 180, 111, 0.3);
}

.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #09131b;
}

.source-note {
  margin-top: 12px;
  font-size: 10px;
  color: rgba(214, 180, 111, 0.4);
  letter-spacing: 1px;
  text-align: center;
}

.mega-footer {
  padding: var(--space-12) 0 var(--space-8);
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-footer-bg-end) 100%);
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 10;
}

/* Brand Column Adjustments */
.brand-mark-small {
  width: 40px;
  height: 40px;
  background: transparent;
  padding: 0;
  object-fit: contain;
}

.mf-top-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  /* This gives the text column more breathing room */
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.mf-brand-col p {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 42ch;
}

/* Link Columns */
.mf-link-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  /* Uses your gold */
  margin: 0 0 var(--space-5) 0;
}

.mf-link-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

.mf-link-col a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.mf-link-col a:hover {
  color: #C5A768;
  transform: translateY(-2px);
  /* A subtle physical shift on hover */
}

.mf-link-col a.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mf-link-col a.icon-link svg {
  display: block;
  /* Flexbox handles the alignment, so we just let it be a block */
  margin: 0;
  flex-shrink: 0;
  /* Prevents the icon from squishing if the text gets long */
}

/* Divider & Bottom Section */
.mf-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(214, 180, 111, 0.15) 0%, rgba(214, 180, 111, 0.02) 100%);
  margin-bottom: var(--space-6);
}

.mf-bottom-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mf-copyright {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.mf-copyright strong {
  color: var(--color-text);
  font-weight: 600;
}

.mf-legal {
  font-size: 11px;
  color: var(--color-text-faint);
  line-height: 1.6;
  max-width: 140ch;
}

.mf-legal a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.mf-legal a:hover {
  color: var(--color-text);
}

/* Mobile Responsiveness */
@media (max-width: 980px) {
  .mf-top-grid {
    grid-template-columns: 1fr 1fr;
    /* 2 columns on tablets */
    gap: var(--space-8) var(--space-4);
  }

  .mf-brand-col {
    grid-column: 1 / -1;
    /* Brand takes full width */
  }

  .mf-brand-col p {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .mf-top-grid {
    grid-template-columns: 1fr;
    /* Stack everything on phones */
  }
}

.mf-bottom-classic {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
}

.mf-copyright-centered {
  font-size: var(--text-xs);
  color: var(--color-footer-text);
  letter-spacing: 0.02em;
}

.mf-short-divider {
  border: 0;
  border-top: 1px solid var(--color-footer-divider);
  margin: 0 auto;
  width: 100%;
  max-width: 200px;
}

.mf-legal-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mf-legal-centered p {
  max-width: 1000px;
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--color-footer-text);
}

.mf-legal-centered .real-airline-notice {
  color: var(--color-footer-notice);
  font-size: var(--text-sm);
}

.mf-legal-centered .real-airline-notice a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.mf-legal-centered .real-airline-notice a:hover {
  color: var(--color-text);
  text-decoration-color: var(--color-text);
}

/* Mobile specific padding for the legal text so it doesn't touch the screen edges */
@media (max-width: 640px) {
  .mf-legal-centered p {
    padding-inline: 1rem;
  }
}

/* --- CODESHARES PAGE STYLES --- */
.page-header {
  padding: clamp(var(--space-8), 6vw, var(--space-12)) 0 var(--space-8);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-page-header-bg);
}

.page-header h1 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1;
  letter-spacing: -.03em;
}

.page-header p {
  max-width: 65ch;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  margin: 0;
}

.tables-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.table-column {
  display: flex;
  flex-direction: column;
}

.partner-stack {
  display: grid;
  gap: var(--space-8);
}

.partner-group {
  padding: var(--space-6);
  border-radius: 1.8rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.partner-card {
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.partner-card:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 180, 111, .26);
  background: rgba(255, 255, 255, .05);
  box-shadow: 0 10px 30px rgba(214, 180, 111, 0.15);
}

.partner-card h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-base);
  letter-spacing: -.01em;
  color: var(--color-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partner-card .dot {
  margin-top: 0;
  /* Re-applying the slightly smaller 8px size from your original codeshare design */
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 4px rgba(214, 180, 111, 0.08);
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 20px;
  margin-bottom: 30px;
  width: 100%;
}

.main-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: -.03em;
  color: var(--color-primary-strong);
}

.main-header span {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  width: 100%;
}

.sub-header h3 {
  color: var(--color-text-muted);
  margin: 0;
  font-weight: 400;
  font-size: 1.4rem;
}

.sub-header span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.tail-logo {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  margin-left: auto;
  border-radius: 4px;
  flex-shrink: 0;
}

.tail-logo-white {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  margin-left: auto;
  border-radius: 4px;
  flex-shrink: 0;
  background-color: #EBE6D6;
}

.tail-logo-dark {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  margin-left: auto;
  border-radius: 4px;
  flex-shrink: 0;
  background-color: #071018;
}

/* Note: Your media queries at the bottom of styles.css will already handle mobile nicely! */

/* --- DYNAMIC EVENTS & GATE BOOKING STYLES --- */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-6);
}

@media (min-width: 992px) {
  .events-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-6);
}

@media (min-width: 992px) {
  .tools-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.event-details-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: rgba(214, 180, 111, 0.15);
  border: 1px solid var(--color-primary);
  color: var(--color-primary-strong);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: var(--space-4);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-meta-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Countdown Timer Stylings */
.countdown-container {
  display: flex;
  gap: var(--space-3);
  margin: var(--space-6) 0;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.countdown-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  min-width: 75px;
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}

.countdown-segment:hover {
  border-color: rgba(214, 180, 111, 0.4);
}

.countdown-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary-strong);
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(214, 180, 111, 0.2);
}

.countdown-label {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Route plan copy block */
.route-briefing {
  background: var(--color-surface-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-top: auto;
}

.route-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.route-header h4 {
  margin: 0;
  font-size: var(--text-xs);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.copy-route-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(214, 180, 111, 0.05);
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  border-radius: 4px;
  transition: all var(--transition);
}

.copy-route-btn:hover {
  background: rgba(214, 180, 111, 0.15);
  border-color: var(--color-primary);
  color: var(--color-primary-strong);
}

.route-string {
  font-family: monospace;
  font-size: 11px;
  background: var(--color-route-string-bg);
  padding: var(--space-3);
  border-radius: 4px;
  border: 1px solid var(--color-route-string-border);
  color: var(--color-route-string-text);
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
}

/* Gate Selection Panel */
.gate-tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.gate-progress-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.gate-progress-bar {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, var(--color-primary), #e6c98c);
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-3);
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Custom Scrollbar for Gate Grid */
.gate-grid::-webkit-scrollbar {
  width: 5px;
}

.gate-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.gate-grid::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.gate-grid::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Gate Cards */
.gate-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 150px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.gate-card.is-available {
  border-left-color: #10b981;
}

.gate-card.is-booked {
  border-left-color: #f59e0b;
}

.gate-card.is-user-booked {
  border-left-color: var(--color-primary);
}

.gate-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(255, 255, 255, 0.08);
}

.gate-card.is-available:hover {
  border-color: rgba(16, 185, 129, 0.4);
}

.gate-card.is-user-booked {
  border-color: rgba(214, 180, 111, 0.4);
  background: rgba(214, 180, 111, 0.03);
}

.gate-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.gate-type-badge {
  font-size: 8px;
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  color: var(--color-text-muted);
}

.gate-aircraft {
  font-size: 10px;
  color: var(--color-text-faint);
  font-weight: 500;
}

.gate-pilot-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gate-status-text {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.gate-card-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gate-card.is-available .gate-status-text {
  color: #10b981;
}

.gate-card.is-booked .gate-status-text {
  color: #f59e0b;
}

.gate-card.is-user-booked .gate-status-text {
  color: var(--color-primary);
}

.gate-action-btn {
  width: 100%;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 0;
  border-radius: 4px;
  margin-top: 4px;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-book-gate {
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.05);
  color: #10b981;
}

.btn-book-gate:hover {
  background: #10b981;
  color: #09131b;
  border-color: #10b981;
}

.btn-release-gate {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-top: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: rgba(239, 68, 68, 0.08);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  color: #ef4444;
  padding: 10px 0;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.gate-card.is-user-booked:hover .btn-release-gate {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.btn-release-gate:hover {
  background: rgba(239, 68, 68, 0.15);
  backdrop-filter: blur(12px) saturate(1.6);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
}

/* Booking Modal Overlay */
.booking-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 12, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.booking-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

.booking-modal-card {
  background: #111b24;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  width: min(440px, calc(100% - 32px));
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-overlay.is-active .booking-modal-card {
  transform: translateY(0);
}

.booking-modal-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}

.booking-modal-card p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-6);
}

.booking-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.booking-form-group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.booking-form-group input,
.booking-form-group select {
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #0b141d;
  color: #f6efdf;
  outline: none;
  font-size: 14px;
  font-family: var(--font-body);
  transition: all var(--transition);
}

.booking-form-group input:focus,
.booking-form-group select:focus {
  border-color: var(--color-primary);
  background: rgba(11, 20, 29, 0.8);
  box-shadow: 0 0 0 2px rgba(214, 180, 111, 0.15);
}

.booking-modal-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.booking-modal-actions button {
  flex: 1;
  padding: 12px 18px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all var(--transition);
}

.btn-confirm-booking {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: none;
}

.btn-confirm-booking:hover {
  background: var(--color-primary-strong);
  transform: translateY(-1px);
}

.btn-cancel-booking {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.btn-cancel-booking:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Toast Notice */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(11, 20, 29, 0.95);
  border: 1px solid var(--color-primary);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  z-index: 11000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.copy-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --- CODESHARES OVERHAUL STYLES --- */

/* Stats Grid */
.codeshare-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.codeshare-stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.codeshare-stat-card:hover {
  border-color: rgba(214, 180, 111, 0.25);
  box-shadow: 0 10px 30px rgba(214, 180, 111, 0.05);
}

.codeshare-stat-val {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary-strong);
  font-family: var(--font-display);
}

.codeshare-stat-lbl {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Search and Filter Area */
/* Search and Filter Area */
.codeshare-control-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--color-border);
  padding: var(--space-5);
  border-radius: 1.5rem;
}

.codeshare-controls-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 992px) {
  .codeshare-controls-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.codeshare-search-wrapper {
  position: relative;
  flex: 1;
}

@media (min-width: 992px) {
  .codeshare-search-wrapper {
    max-width: 55%;
  }
}

.codeshare-search-input {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  padding: 0.8rem 1.5rem 0.8rem 3rem;
  color: var(--color-text);
  font-size: var(--text-sm);
  transition: all var(--transition);
}

.codeshare-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(214, 180, 111, 0.15);
  outline: none;
}

.codeshare-search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  transition: color var(--transition);
}

.codeshare-search-input:focus + .codeshare-search-icon {
  color: var(--color-primary);
}

.codeshare-dropdowns-group {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}

/* Custom Dropdown / Select Styles */
.codeshare-select-wrapper {
  position: relative;
  min-width: 170px;
  flex: 1;
}

@media (min-width: 768px) {
  .codeshare-select-wrapper {
    flex: initial;
  }
}

.codeshare-select {
  width: 100%;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: none !important;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  padding: 0.8rem 2.5rem 0.8rem 1.25rem;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.codeshare-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(214, 180, 111, 0.15);
  outline: none;
}

.select-arrow {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary, #d6b46f) !important;
  pointer-events: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.codeshare-select:focus ~ .select-arrow {
  color: var(--color-primary-strong, #e5ca8a) !important;
  transform: translateY(-50%) rotate(180deg);
}

.codeshare-tab-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  border-radius: 2rem;
  padding: 0.6rem 1.2rem;
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.codeshare-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.15);
}

.codeshare-tab-btn.is-active {
  background: var(--color-primary-strong);
  color: #0b141d;
  /* Dark theme contrast text */
  border-color: var(--color-primary-strong);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(214, 180, 111, 0.3);
}

/* Reset Button */
.btn-reset-filters {
  background: transparent;
  border: 1px dashed rgba(214, 180, 111, 0.4);
  color: var(--color-primary-strong);
  border-radius: 2rem;
  padding: 0.8rem 1.6rem;
  margin-top: 10px;
  margin-bottom: 4px;
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  align-self: flex-start;
}

.btn-reset-filters:hover {
  background: rgba(214, 180, 111, 0.08);
  border-color: var(--color-primary-strong);
  transform: translateY(-1px);
}

/* Globe 3D Section Styles */
.globe-card-section {
  position: relative;
  margin-bottom: 2rem;
  padding: 24px;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.globe-card-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.globe-title-icon {
  color: var(--color-primary);
  flex-shrink: 0;
}

.globe-card-subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.globe-search-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 1.75rem auto 1.5rem auto;
  padding-top: 0.5rem;
  z-index: 80;
  text-align: left;
}

.globe-search-input {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text);
  font-size: var(--text-sm);
  outline: none;
  transition: all 0.2s;
}

.globe-search-icon-svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.globe-dest-card {
  position: absolute;
  bottom: 50px;
  right: 24px;
  z-index: 80;
  width: 280px;
  background: rgba(18, 35, 51, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.globe-dest-card h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: #fff;
}

.globe-dest-card-airport {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.globe-dest-card-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.globe-dest-card-airlines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 4px;
}

.btn-clear-dest-search {
  width: 100%;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-muted);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
  text-align: center;
  height: auto;
  line-height: 1;
}

.btn-clear-dest-search:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.codeshare-globe-wrap {
  position: relative;
  background: transparent;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.codeshare-globe-canvas {
  cursor: grab;
  border-radius: 50%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.codeshare-globe-legend {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.af-klm-filter-wrap {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-reset-globe {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid rgba(214, 180, 111, 0.2);
  background: rgba(214, 180, 111, 0.03);
  color: var(--color-primary);
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
  height: auto;
  line-height: 1;
}

.btn-reset-globe:hover {
  background: rgba(214, 180, 111, 0.1);
  border-color: var(--color-primary);
}

.codeshare-filter-tabs-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.codeshare-filter-tabs-wrapper {
  position: relative !important;
  width: 100% !important;
  display: block !important;
  overflow: visible !important;
}

.codeshare-filter-tabs {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  flex-wrap: nowrap !important;
  padding: 4px 4px 4px 4px !important;
  align-items: center !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  width: 100% !important;
  scroll-behavior: smooth !important;
}

.codeshare-filter-tabs::-webkit-scrollbar {
  display: none !important;
}

.filter-scroll-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 30 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(17, 30, 44, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid var(--color-primary-strong, #d6b46f) !important;
  color: var(--color-primary-strong, #d6b46f) !important;
  box-shadow: 0 0 12px rgba(214, 180, 111, 0.3), 0 4px 12px rgba(0, 0, 0, 0.6) !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease !important;
}

.filter-scroll-arrow svg {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
}

.filter-scroll-arrow.left {
  left: 0 !important;
  right: auto !important;
}

.filter-scroll-arrow.right {
  right: 0 !important;
  left: auto !important;
}

.filter-scroll-arrow:hover {
  background: var(--color-primary-strong, #e6c98c) !important;
  color: #0b141d !important;
  border-color: var(--color-primary-strong) !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.filter-scroll-arrow.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-50%) scale(0.8) !important;
}

/* Mobile Responsiveness for Codeshare Page */
@media (max-width: 768px) {
  .globe-card-section {
    padding: 16px 12px;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
  }

  .globe-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
  }

  .globe-card-subtitle {
    margin-bottom: 1rem;
    font-size: 0.8rem;
  }

  .globe-search-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.25rem !important;
    padding-top: 0.5rem !important;
    z-index: 10 !important;
  }

  .globe-dest-card {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    margin-top: 1rem;
    box-shadow: none;
  }

  .af-klm-filter-wrap {
    bottom: 12px;
    left: 12px;
    font-size: 9px;
    padding: 3px 6px;
  }

  .btn-reset-globe {
    bottom: 12px;
    right: 12px;
    padding: 5px 10px;
    font-size: 8px;
  }

  .codeshare-control-panel {
    padding: 1rem 0.875rem;
    border-radius: 1rem;
    gap: 0.75rem;
  }

  .codeshare-filter-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .codeshare-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .codeshare-tab-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  .codeshare-dropdowns-group {
    gap: var(--space-2);
  }

  .codeshare-select-wrapper {
    min-width: 130px;
  }

  .codeshare-select {
    padding: 0.65rem 2rem 0.65rem 1rem;
    font-size: 0.8rem;
  }

  .codeshare-search-input {
    padding: 0.65rem 1.25rem 0.65rem 2.6rem;
    font-size: 0.8rem;
  }

  .codeshare-search-icon {
    left: 1rem;
  }

  .codeshare-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .codeshare-stat-card {
    padding: 0.75rem 0.5rem;
    border-radius: 0.85rem;
    text-align: center;
    align-items: center;
  }

  .codeshare-stat-val {
    font-size: 1.2rem;
  }

  .codeshare-stat-lbl {
    font-size: 0.65rem;
    letter-spacing: 0;
  }

  .codeshare-modal-card {
    max-width: calc(100vw - 32px);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 1rem;
  }

  .codeshare-modal-header {
    padding: 1rem 1rem 0.75rem 1rem;
    gap: 0.75rem;
  }

  .codeshare-modal-logo-container {
    width: 48px;
    height: 48px;
  }

  .codeshare-modal-body {
    padding: 1rem;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .codeshare-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
  }

  .codeshare-stat-card {
    padding: 0.6rem 0.35rem;
  }

  .codeshare-stat-val {
    font-size: 1.05rem;
  }

  .codeshare-stat-lbl {
    font-size: 0.6rem;
  }
}

/* Status Bar */
.codeshare-status-bar {
  margin-bottom: var(--space-6);
  padding: 0 var(--space-1);
}

.match-counter-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Card Improvements & Alliance Badges */
.partner-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.partner-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  padding: 1px;
  background: linear-gradient(to bottom, rgba(214, 180, 111, 0.3), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.partner-card:hover::after {
  opacity: 1;
}

.partner-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 180, 111, 0.25);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 30px rgba(214, 180, 111, 0.1);
}

.partner-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.partner-card h4 {
  font-size: 1.05rem;
  font-family: var(--font-display);
  color: var(--color-text);
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partner-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: auto;
}

/* Alliance Badges */
.alliance-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  border: 1px solid transparent;
}

.alliance-star-alliance {
  background: rgba(214, 180, 111, 0.1);
  color: var(--color-primary-strong);
  border-color: rgba(214, 180, 111, 0.2);
}

.alliance-skyteam {
  background: rgba(43, 140, 237, 0.1);
  color: #58a6ff;
  border-color: rgba(43, 140, 237, 0.2);
}

.alliance-oneworld {
  background: rgba(235, 87, 87, 0.1);
  color: #ff6b6b;
  border-color: rgba(235, 87, 87, 0.2);
}

.alliance-independent {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
  border-color: rgba(255, 255, 255, 0.07);
}

.partner-routes-tag {
  font-size: var(--text-xs);
  color: var(--color-primary-strong);
  font-weight: 600;
}

.partner-card .tail-logo,
.partner-card .tail-logo-white,
.partner-card .tail-logo-dark {
  max-height: 26px;
  max-width: 80px;
  object-fit: contain;
}

.partner-card .tail-logo-white {
  opacity: 0.9;
}

/* No Results Card */
.no-results-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-12) var(--space-6);
  border: 1px dashed var(--color-border);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.005);
  margin-top: var(--space-8);
}

.no-results-icon {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  opacity: 0.6;
}

.no-results-card h3 {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.no-results-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 440px;
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.partner-card.is-hidden {
  display: none !important;
}

/* Detail Modal Overlay */
.codeshare-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 20, 29, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.codeshare-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.codeshare-modal-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.codeshare-modal-overlay.is-active .codeshare-modal-card {
  transform: scale(1) translateY(0);
}

.codeshare-modal-header {
  padding: var(--space-6) var(--space-6) var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.codeshare-modal-logo-container {
  width: 64px;
  height: 64px;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.codeshare-modal-logo {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.codeshare-modal-logo-container.is-white-bg {
  background: #EBE6D6;
}

.codeshare-modal-logo-container.is-dark-bg {
  background: #071018;
}

.codeshare-modal-title-wrapper h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  font-weight: 700;
}

.codeshare-modal-title-wrapper span {
  font-size: var(--text-xs);
  color: var(--color-primary-strong);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.codeshare-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.codeshare-modal-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
}

.codeshare-modal-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.codeshare-modal-info-section h4 {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--space-2) 0;
  font-weight: 700;
}

.codeshare-modal-info-section p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
}

.codeshare-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.codeshare-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: 0.5rem;
  padding: 0.4rem 0.8rem;
  font-size: var(--text-xs);
  font-weight: 500;
}

.codeshare-tag.highlight {
  border-color: rgba(214, 180, 111, 0.3);
  background: rgba(214, 180, 111, 0.05);
  color: var(--color-primary-strong);
}

.codeshare-modal-footer {
  padding: var(--space-4) var(--space-6) var(--space-6) var(--space-6);
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-codeshare-action {
  width: 100%;
  text-align: center;
}

@media (min-width: 480px) {
  .btn-codeshare-action {
    width: auto;
  }
}

/* FUN OPERATIONS MODES STYLE RULES */
/* 1. Turbulence Mode */
.mode-turbulence .card,
.mode-turbulence .codeshare-stat-card,
.mode-turbulence .gate-card {
  animation: turbulence 0.3s ease-in-out infinite;
}

@keyframes turbulence {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  20% {
    transform: translate(-1px, 1px) rotate(-0.3deg);
  }

  40% {
    transform: translate(1px, -1px) rotate(0.3deg);
  }

  60% {
    transform: translate(-1.5px, -0.5px) rotate(-0.2deg);
  }

  80% {
    transform: translate(1.5px, 1.5px) rotate(0.4deg);
  }
}

/* 2. Squawk 7700 Mode */
.emergency-bar {
  background: #ef4444;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  animation: flashRed 0.8s infinite alternate;
  display: none;
  z-index: 1000;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-squawk .emergency-bar {
  display: block;
}

@keyframes flashRed {
  0% {
    background: #ef4444;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(239, 68, 68, 0.4);
  }

  100% {
    background: #7f1d1d;
  }
}

/* 3. Disco Mode */
.mode-disco .card,
.mode-disco .codeshare-stat-card,
.mode-disco .gate-card {
  animation: discoGlow 3s linear infinite;
  transition: border-color 0.5s ease;
}

@keyframes discoGlow {
  0% {
    border-color: #ff007f;
    box-shadow: 0 0 12px rgba(255, 0, 127, 0.15);
  }

  25% {
    border-color: #00f0ff;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
  }

  50% {
    border-color: #00ff66;
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.15);
  }

  75% {
    border-color: #ffcc00;
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.15);
  }

  100% {
    border-color: #ff007f;
    box-shadow: 0 0 12px rgba(255, 0, 127, 0.15);
  }
}

.mode-disco h1,
.mode-disco h2,
.mode-disco .eyebrow {
  background: linear-gradient(90deg, #ff007f, #00f0ff, #00ff66, #ffcc00, #ff007f);
  background-size: 400% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: discoText 4s linear infinite;
  display: inline-block;
}

@keyframes discoText {
  to {
    background-position: 400% center;
  }
}

.mode-disco .header-bar {
  border-bottom-color: #ff007f;
  animation: discoBorder 4s linear infinite;
}

@keyframes discoBorder {
  0% {
    border-bottom-color: #ff007f;
  }

  25% {
    border-bottom-color: #00f0ff;
  }

  50% {
    border-bottom-color: #00ff66;
  }

  75% {
    border-bottom-color: #ffcc00;
  }

  100% {
    border-bottom-color: #ff007f;
  }
}

/* 4. Nosedive / Bank Angle Mode */
.mode-nosedive #site-content {
  transform: rotate(-2.5deg) translateY(12px);
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mode-nosedive {
  animation: warningVibe 0.5s infinite alternate;
}

@keyframes warningVibe {
  0% {
    box-shadow: inset 0 0 50px rgba(239, 68, 68, 0.35);
  }

  100% {
    box-shadow: inset 0 0 150px rgba(239, 68, 68, 0.7);
  }
}

.mode-nosedive .emergency-bar {
  display: block;
  background: #dc2626 !important;
  animation: flashNosedive 0.25s infinite alternate !important;
  font-size: 13px;
}

@keyframes flashNosedive {
  0% {
    background: #dc2626;
  }

  100% {
    background: #000;
    color: #dc2626;
  }
}

/* 5. Hyperdrive Mode */
.mode-hyperdrive {
  filter: saturate(1.8) contrast(1.15);
  animation: hyperspeed 0.05s infinite;
}

.mode-hyperdrive .emergency-bar {
  display: block;
  background: #2563eb !important;
  color: #fff !important;
  animation: flashHyper 0.5s infinite alternate !important;
}

@keyframes flashHyper {
  0% {
    background: #2563eb;
  }

  100% {
    background: #1e3a8a;
  }
}

@keyframes hyperspeed {
  0% {
    transform: translate(0.8px, 0.8px);
  }

}

/* 6. Scrolling ATIS Broadcast Banner */
.atis {
  background: var(--color-surface-2, rgba(0, 255, 136, 0.03));
  border-bottom: 1px solid var(--color-border, rgba(0, 255, 136, 0.08));
  padding: 9px 0;
  overflow: hidden;
  width: 100%;
  transition: background var(--transition, 220ms ease), border-color var(--transition, 220ms ease);
}

.atis-inner {
  display: inline-flex;
  gap: 100px;
  animation: tick 60s linear infinite;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary, rgba(0, 255, 136, 0.55));
}

@keyframes tick {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

select option,
select optgroup {
  background-color: #0b141d;
  color: #ffffff;
}

@keyframes flash-warning {
  0% {
    opacity: 0.3;
  }

  100% {
    opacity: 1;
  }
}

/* Global utility class for hiding elements */
.is-hidden {
  display: none !important;
}

/* LIGHT THEME SPECIFIC CUSTOM OVERRIDES */
[data-theme="light"] select option,
[data-theme="light"] select optgroup {
  background-color: #f9f7f2 !important;
  color: #241e17 !important;
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  color: var(--color-text) !important;
  background-color: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(181, 144, 73, 0.25) !important;
}

/* Light mode overlay overrides for elements with inline color: #fff styling */
[data-theme="light"] [style*="color:#fff"],
[data-theme="light"] [style*="color: #fff"],
[data-theme="light"] [style*="color:rgb(255, 255, 255)"],
[data-theme="light"] [style*="color: rgb(255, 255, 255)"],
[data-theme="light"] [style*="color:#FFFFFF"],
[data-theme="light"] [style*="color: #FFFFFF"] {
  color: var(--color-text) !important;
}

/* Custom background styles override for cards/elements with inline background/border */
[data-theme="light"] [style*="background:rgba(255,255,255"],
[data-theme="light"] [style*="background: rgba(255,255,255"],
[data-theme="light"] [style*="background-color:rgba(255,255,255"],
[data-theme="light"] [style*="background-color: rgba(255,255,255"] {
  background-color: rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] [style*="border:1px solid rgba(255,255,255"],
[data-theme="light"] [style*="border: 1px solid rgba(255,255,255"],
[data-theme="light"] [style*="border:1px solid rgba(214,180,111,0.1)"] {
  border-color: rgba(181, 144, 73, 0.2) !important;
}

/* Custom badges/tags */
[data-theme="light"] .dest-airline-badge {
  background: rgba(181, 144, 73, 0.08) !important;
  border-color: rgba(181, 144, 73, 0.2) !important;
  color: var(--color-text) !important;
}

[data-theme="light"] .dest-airline-badge:hover {
  background: rgba(181, 144, 73, 0.15) !important;
  border-color: var(--color-primary) !important;
  color: var(--color-primary-strong) !important;

}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-primary);
  border-radius: 6px;
  border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-primary-strong);
}

/* Smooth transitions for theme toggles */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition: background 0.3s ease, 
              background-color 0.3s ease, 
              color 0.3s ease, 
              border-color 0.3s ease, 
              box-shadow 0.3s ease, 
              fill 0.3s ease, 
              stroke 0.3s ease !important;
}
/* ===== Dispatcher Destination Autocomplete ===== */
#dispDestination:focus {
  border-color: rgba(214, 180, 111, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(214, 180, 111, 0.12);
}

#dispDestSuggestions::-webkit-scrollbar { width: 4px; }
#dispDestSuggestions::-webkit-scrollbar-track { background: transparent; }
#dispDestSuggestions::-webkit-scrollbar-thumb { background: var(--color-primary, #d6b46f); border-radius: 4px; }
#dispDestSuggestions > div:last-child { border-bottom: none !important; }

/* ===== Number Input Spinner Arrows ===== */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(214, 180, 111, 0.12);
  border-left: 1px solid rgba(214, 180, 111, 0.25);
  border-radius: 0 6px 6px 0;
  width: 22px;
  cursor: pointer;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' viewBox='0 0 10 14'%3E%3Cpath d='M5 2 L9 6 L1 6 Z' fill='%23d6b46f'/%3E%3Cpath d='M5 12 L9 8 L1 8 Z' fill='%23d6b46f'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
  margin: 0;
  position: relative;
}

input[type=number]::-webkit-inner-spin-button:hover,
input[type=number]::-webkit-outer-spin-button:hover {
  background-color: rgba(214, 180, 111, 0.22);
}

input[type=number] {
  -moz-appearance: textfield;
}


/* ===== Gold Dropdown Arrows ===== */
select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0 L5 6 L10 0 Z' fill='%23d6b46f'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  padding-right: 30px !important;
}

/* ===== Command Palette Modal ===== */
.cmd-palette-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(7, 16, 24, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 7vh 1.25rem 7vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cmd-palette-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cmd-palette-modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: calc(86vh - 20px);
  display: flex;
  flex-direction: column;
  background: var(--color-surface, #0f1926);
  border: 1px solid var(--color-border, rgba(214, 180, 111, 0.25));
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(214, 180, 111, 0.1);
  overflow: hidden;
  transform: translateY(-12px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cmd-palette-backdrop.is-open .cmd-palette-modal {
  transform: translateY(0) scale(1);
}

.cmd-palette-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
  flex-shrink: 0;
}

.cmd-palette-icon {
  color: var(--color-primary, #d6b46f);
  flex-shrink: 0;
}

.cmd-palette-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--color-text, #f9fafb);
}

.cmd-palette-input::placeholder {
  color: var(--color-text-muted, rgba(255, 255, 255, 0.4));
}

.cmd-palette-close {
  background: transparent;
  border: none;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.4));
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.cmd-palette-results {
  flex: 1 1 auto;
  max-height: calc(82vh - 120px);
  min-height: 280px;
  overflow-y: auto;
  padding: 8px;
}

.cmd-palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-text, #f9fafb);
  transition: background 0.15s ease;
  cursor: pointer;
}

.cmd-palette-item:hover,
.cmd-palette-item.is-selected {
  background: rgba(214, 180, 111, 0.12);
}

.cmd-palette-item-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cmd-palette-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary, #d6b46f);
  flex-shrink: 0;
}

.cmd-palette-item-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}

.cmd-palette-item-desc {
  font-size: 12px;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.5));
}

.cmd-palette-item-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-primary, #d6b46f);
  border: 1px solid rgba(214, 180, 111, 0.2);
}

.cmd-palette-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.5));
  font-size: 14px;
}

.cmd-palette-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
  background: rgba(0, 0, 0, 0.2);
  font-size: 11px;
  color: var(--color-text-faint, rgba(255, 255, 255, 0.35));
  flex-shrink: 0;
}

.cmd-palette-footer kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.6));
}

/* ===== Jin-GO Assistant Chatbot Widget ===== */
.eyv-chatbot-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
}

.eyv-chatbot-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 10px;
  border-radius: 50px;
  background: rgba(15, 25, 38, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border, rgba(214, 180, 111, 0.35));
  color: var(--color-text, #f9fafb);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(214, 180, 111, 0.15);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease, padding 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
  overflow: hidden;
}

.eyv-chatbot-trigger:hover,
.eyv-chatbot-trigger.is-active {
  transform: translateY(-2px);
  background: rgba(15, 25, 38, 0.88);
  border-color: var(--color-primary, #d6b46f);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 25px rgba(214, 180, 111, 0.25);
}

/* Scroll Collapse Effect: Shrink to round icon while scrolling, expand when idle */
.eyv-chatbot-trigger.is-scrolling {
  padding: 6px;
  gap: 0;
}

/* Progress bar + counter */
.carousel-progress-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.85rem;
  padding: 0 0.25rem;
}

.carousel-progress-track {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(214, 180, 111, 0.15);
  overflow: hidden;
}

.carousel-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(214, 180, 111, 0.6), var(--color-primary, #d6b46f));
  width: 11.11%; /* set by JS */
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-counter {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-primary, #d6b46f);
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
  min-width: 2.6rem;
  text-align: right;
}

.eyv-chatbot-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(214, 180, 111, 0.18);
  border: 1px solid rgba(214, 180, 111, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary, #d6b46f);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.eyv-chatbot-trigger-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-primary, #d6b46f);
  white-space: nowrap;
  max-width: 140px;
  opacity: 1;
  transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, margin 0.35s ease;
}

.eyv-chatbot-trigger.is-scrolling .eyv-chatbot-trigger-label {
  max-width: 0;
  opacity: 0;
  margin: 0;
}

/* Chat Window Modal — Glassmorphism Translucent Background */
.eyv-chatbot-window {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 380px;
  min-width: 320px;
  max-width: calc(100vw - 32px);
  height: 520px;
  min-height: 380px;
  max-height: calc(100vh - 80px);
  background: rgba(15, 25, 38, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-border, rgba(214, 180, 111, 0.3));
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(214, 180, 111, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.95);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), width 0.1s ease, height 0.1s ease;
}

.eyv-chatbot-window.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.eyv-chatbot-window.is-resizing {
  user-select: none !important;
  -webkit-user-select: none !important;
  transition: none !important;
}

/* Chatbot Resize Handles */
.eyv-resize-handle {
  position: absolute;
  z-index: 999;
}

.eyv-resize-top {
  top: 0;
  left: 20px;
  right: 20px;
  height: 10px;
  cursor: ns-resize;
}

.eyv-resize-left {
  top: 20px;
  left: 0;
  bottom: 20px;
  width: 10px;
  cursor: ew-resize;
}

.eyv-resize-corner {
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  cursor: nwse-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eyv-resize-corner::after {
  content: '';
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--color-primary, #d6b46f);
  border-left: 2px solid var(--color-primary, #d6b46f);
  border-top-left-radius: 4px;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 4px;
  margin-left: 4px;
}

.eyv-resize-corner:hover::after,
.eyv-chatbot-window.is-resizing .eyv-resize-corner::after {
  opacity: 1;
  transform: scale(1.2);
}


/* Chat Header */
.eyv-chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
}

.eyv-chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyv-chatbot-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(214, 180, 111, 0.15);
  border: 1px solid rgba(214, 180, 111, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.eyv-chatbot-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text, #f9fafb);
  line-height: 1.2;
}

.eyv-chatbot-status {
  gap: 5px;
  font-size: 11px;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.5));
}

/* Progress bar + counter (replaces dots) */
.carousel-progress-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.85rem;
  padding: 0 0.25rem;
}

.carousel-progress-track {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(214, 180, 111, 0.15);
  overflow: hidden;
}

.carousel-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(214, 180, 111, 0.6), var(--color-primary, #d6b46f));
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-counter {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-primary, #d6b46f);
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
  min-width: 3.2ch;
  text-align: right;
}

.eyv-chatbot-close {
  background: transparent;
  border: none;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.4));
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.eyv-chatbot-close:hover {
  color: var(--color-primary, #d6b46f);
}

/* Message List */
.eyv-chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eyv-chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
}

.eyv-chat-msg.bot {
  align-self: flex-start;
}

.eyv-chat-msg.user {
  align-self: flex-end;
}

.eyv-chat-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text, #f9fafb);
}

.eyv-chat-msg.bot .eyv-chat-bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 4px;
}

.eyv-chat-msg.user .eyv-chat-bubble {
  background: var(--color-primary, #d6b46f);
  color: #071018;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

/* Action Button Inside Chat Bubble */
.eyv-chat-action-btn {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(214, 180, 111, 0.15);
  border: 1px solid rgba(214, 180, 111, 0.3);
  color: var(--color-primary, #d6b46f);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.eyv-chat-action-btn:hover {
  background: rgba(214, 180, 111, 0.28);
}

/* Suggestion Chips */
.eyv-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.eyv-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted, rgba(255, 255, 255, 0.8));
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.eyv-chip:hover {
  background: rgba(214, 180, 111, 0.15);
  border-color: var(--color-primary, #d6b46f);
  color: var(--color-primary, #d6b46f);
}

/* Input Area */
.eyv-chatbot-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
}

.eyv-chatbot-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--color-text, #f9fafb);
  outline: none;
  transition: border-color 0.2s ease;
}

.eyv-chatbot-input:focus {
  border-color: var(--color-primary, #d6b46f);
}

.eyv-chatbot-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary, #d6b46f);
  border: none;
  color: #071018;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.eyv-chatbot-send:hover {
  transform: scale(1.06);
  background: #e5ca8a;
}

@media (max-width: 480px) {
  .eyv-chatbot-container {
    bottom: 16px;
    right: 16px;
  }
  .eyv-chatbot-window {
    bottom: 60px;
    width: calc(100vw - 32px);
    height: 460px;
  }
}

/* ===== Discord Community Live Activity Card ===== */
.discord-activity-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.25);
  margin-top: 4px;
}

.discord-badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(88, 101, 242, 0.18);
  color: #5865f2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.discord-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text, #f9fafb);
  line-height: 1.2;
}

.discord-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23a55a;
  box-shadow: 0 0 8px #23a55a;
  display: inline-block;
}

.discord-status-sub {
  font-size: 11px;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.5));
  margin-top: 2px;
}

.discord-footer-stat {
  color: rgba(88, 101, 242, 0.9) !important;
  font-size: 13px;
}

.discord-footer-stat svg {
  color: #5865f2;
}

/* ===== Chatbot Tabs & NotebookLM View ===== */
.eyv-chatbot-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px;
}

.eyv-tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.5));
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.eyv-tab-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.eyv-tab-sub {
  font-size: 9.5px;
  font-weight: 500;
  opacity: 0.7;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.eyv-tab-btn:hover {
  color: var(--color-text, #f9fafb);
  background: rgba(255, 255, 255, 0.04);
}

.eyv-tab-btn.active {
  background: rgba(214, 180, 111, 0.15);
  color: var(--color-primary, #d6b46f);
  border: 1px solid rgba(214, 180, 111, 0.3);
}
.eyv-tab-btn.active .eyv-tab-sub {
  opacity: 0.9;
  color: var(--color-primary, #d6b46f);
}

.eyv-tab-content {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.eyv-tab-content.active {
  display: flex;
}

.eyv-notebook-hub {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(214, 180, 111, 0.04);
  height: 100%;
  overflow-y: auto;
}

.eyv-notebook-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-primary, #d6b46f);
}

.eyv-notebook-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text, #f9fafb);
  margin-top: 2px;
}

.eyv-notebook-desc {
  font-size: 12px;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.7));
  line-height: 1.5;
}

.eyv-notebook-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 12px;
}

.eyv-notebook-feat-item {
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text, #f9fafb);
  line-height: 1.4;
}

.eyv-notebook-launch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--color-primary, #d6b46f);
  color: #071018 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(214, 180, 111, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
  margin-top: auto;
}

.eyv-notebook-launch-btn:hover {
  transform: translateY(-2px);
  background: #e5ca8a;
}

/* ===== Chatbot Welcome / Mode Selection Screen ===== */
.eyv-welcome-screen {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  overflow-y: auto;
}

.eyv-welcome-header {
  text-align: center;
  padding: 4px 0 6px;
}

.eyv-welcome-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-primary, #d6b46f);
  margin-bottom: 4px;
}

.eyv-welcome-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text, #f9fafb);
  line-height: 1.25;
}

.eyv-welcome-subtitle {
  font-size: 11.5px;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.65));
  margin-top: 4px;
}

.eyv-welcome-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eyv-mode-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  color: var(--color-text, #f9fafb);
  font-family: inherit;
}

.eyv-mode-card:hover {
  transform: translateY(-2px);
  background: rgba(214, 180, 111, 0.08);
  border-color: var(--color-primary, #d6b46f);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(214, 180, 111, 0.15);
}

.eyv-mode-card.highlight {
  border-color: rgba(214, 180, 111, 0.25);
  background: linear-gradient(135deg, rgba(214, 180, 111, 0.07), rgba(255, 255, 255, 0.03));
}

.eyv-mode-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.eyv-mode-icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(214, 180, 111, 0.15);
  border: 1px solid rgba(214, 180, 111, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eyv-mode-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text, #f9fafb);
  line-height: 1.2;
}

.eyv-mode-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-primary, #d6b46f);
  margin-top: 1px;
}

.eyv-mode-desc {
  font-size: 11.5px;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.7));
  line-height: 1.45;
  margin-bottom: 8px;
}

.eyv-mode-btn {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary, #d6b46f);
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.eyv-mode-card:hover .eyv-mode-btn {
  transform: translateX(3px);
  color: #e5ca8a;
}

/* ===== Jin-GO AI (Gemini) Embedded Chat ===== */
.eyv-ai-chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* — Setup Screen — */
.eyv-ai-setup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 18px;
  height: 100%;
  text-align: center;
}

.eyv-ai-setup-icon {
  font-size: 32px;
  line-height: 1;
  animation: eyv-pulse 2s ease-in-out infinite;
}

@keyframes eyv-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.eyv-ai-setup-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text, #f9fafb);
}

.eyv-ai-setup-desc {
  font-size: 12px;
  color: var(--color-text-muted, rgba(255,255,255,0.65));
  line-height: 1.55;
  max-width: 260px;
}

.eyv-ai-key-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(214,180,111,0.3);
  background: rgba(255,255,255,0.06);
  color: var(--color-text, #f9fafb);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.eyv-ai-key-input:focus {
  border-color: var(--color-primary, #d6b46f);
}

.eyv-ai-activate-btn {
  width: 100%;
  padding: 11px 18px;
  border-radius: 12px;
  border: none;
  background: var(--color-primary, #d6b46f);
  color: #071018;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 16px rgba(214,180,111,0.3);
}

.eyv-ai-activate-btn:hover {
  transform: translateY(-2px);
  background: #e5ca8a;
}

.eyv-ai-get-key-link {
  font-size: 11.5px;
  color: var(--color-primary, #d6b46f);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.eyv-ai-get-key-link:hover { opacity: 1; }

/* — Live Chat — */
.eyv-ai-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.eyv-ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.eyv-ai-model-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-primary, #d6b46f);
  letter-spacing: 0.02em;
}

.eyv-ai-reset-btn {
  background: none;
  border: none;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.5));
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
}

.eyv-ai-reset-btn:hover {
  color: var(--color-text, #f9fafb);
  background: rgba(255, 255, 255, 0.08);
}

.eyv-ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.eyv-ai-msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
}

.eyv-ai-msg.user {
  align-self: flex-end;
}

.eyv-ai-msg.bot {
  align-self: flex-start;
}

.eyv-ai-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text, #f9fafb);
  word-break: break-word;
}

.eyv-ai-msg.user .eyv-ai-bubble {
  background: var(--color-primary, #d6b46f);
  color: #071018;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

.eyv-ai-msg.bot .eyv-ai-bubble {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text, #f9fafb);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 4px;
}

.eyv-ai-link,
.eyv-ai-bubble a {
  color: var(--color-primary, #d6b46f) !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
  transition: opacity 0.2s ease !important;
}

.eyv-ai-link:hover,
.eyv-ai-bubble a:hover {
  opacity: 0.8 !important;
  text-decoration: none !important;
}

.eyv-ai-bubble ul {
  margin: 6px 0 2px 0;
  padding-left: 16px;
}

.eyv-ai-bubble li {
  margin-bottom: 3px;
}

.eyv-ai-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
  flex-shrink: 0;
}

.eyv-ai-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--color-text, #f9fafb);
  outline: none;
  transition: border-color 0.2s ease;
}

.eyv-ai-input:focus {
  border-color: var(--color-primary, #d6b46f);
}

.eyv-ai-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.eyv-ai-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary, #d6b46f);
  color: #071018;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.eyv-ai-send-btn:hover {
  transform: scale(1.06);
  background: #e5ca8a;
}

/* ===== Auto-Dismissing PWA Gold Install Banner ===== */
.eyv-pwa-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  width: calc(100% - 32px);
  max-width: 540px;
  background: linear-gradient(135deg, rgba(214, 180, 111, 0.95), rgba(184, 142, 63, 0.95));
  color: #071018;
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(214, 180, 111, 0.4);
  backdrop-filter: blur(10px);
  font-size: 13px;
  animation: eyvBannerSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.eyv-pwa-banner.is-dismissed {
  transform: translate(-50%, -100px);
  opacity: 0;
  pointer-events: none;
}

.eyv-pwa-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eyv-pwa-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.eyv-pwa-btn {
  background: #071018;
  color: #d6b46f;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.eyv-pwa-btn:hover {
  transform: scale(1.04);
}

.eyv-pwa-close {
  background: transparent;
  border: none;
  color: #071018;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

@keyframes eyvBannerSlideDown {
  from {
    transform: translate(-50%, -80px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* ===== Tools Page Section Dividers ===== */
.tools-section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 40px 0 20px 0;
  grid-column: 1 / -1;
}

.tools-section-divider:first-child {
  margin-top: 10px;
}

.tools-section-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(214, 180, 111, 0.15);
  border: 1px solid rgba(214, 180, 111, 0.3);
  color: var(--color-primary, #d6b46f);
  letter-spacing: 0.05em;
  line-height: 1;
}

.tools-section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--color-text, #f9fafb);
  text-transform: uppercase;
  white-space: nowrap;
}

.tools-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(214, 180, 111, 0.4), rgba(255, 255, 255, 0.05));
}

/* ===== OMAA METAR HEADER BAR ===== */
.eyv-metar-bar {
  background: var(--color-surface-2, rgba(7, 16, 24, 0.95));
  border-bottom: 1px solid var(--color-border, rgba(214, 180, 111, 0.2));
  padding: 6px 16px;
  font-size: 11px;
  color: var(--color-text-muted, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(10px);
  transition: background var(--transition, 220ms ease), border-color var(--transition, 220ms ease), color var(--transition, 220ms ease);
}

.eyv-metar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1200px;
  width: 100%;
}

.eyv-metar-badge {
  background: var(--color-cta-bg, rgba(214, 180, 111, 0.15));
  border: 1px solid var(--color-border, rgba(214, 180, 111, 0.3));
  color: var(--color-primary, #d6b46f);
  font-weight: 800;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.eyv-metar-text strong {
  color: var(--color-text, #f6efdf);
}

/* ===== FLEET MODAL STYLES ===== */
.eyv-fleet-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 9, 14, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.eyv-fleet-modal-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.eyv-fleet-modal-box {
  background: var(--color-surface, #0b1724);
  border: 1px solid rgba(214, 180, 111, 0.3);
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(214, 180, 111, 0.15);
  color: #fff;
}

.eyv-fleet-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.eyv-fleet-modal-header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--color-primary, #d6b46f);
  margin: 0 0 10px 0;
}

.eyv-fleet-modal-img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.eyv-fleet-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .eyv-fleet-modal-grid {
    grid-template-columns: 1fr;
  }
}

.eyv-fleet-modal-col h3 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-primary, #d6b46f);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.eyv-fleet-modal-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 11px;
}

.eyv-fleet-modal-col li {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.eyv-fleet-cabin-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: #cbd5e1;
}

.eyv-fleet-modal-actions {
  display: flex;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

/* ===== Fleet Card Prompt Button ===== */
.fleet-view-specs-btn {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary, #d6b46f);
  margin-top: 8px;
  padding: 4px 8px;
  background: rgba(214, 180, 111, 0.08);
  border: 1px solid rgba(214, 180, 111, 0.25);
  border-radius: 6px;
  text-align: center;
  transition: all 0.2s ease;
}

.fleet-item:hover .fleet-view-specs-btn {
  background: var(--color-primary, #d6b46f);
  color: #071018;
}

/* ===== SCROLL PROGRESS BAR & BACK TO TOP BUTTON ===== */
.eyv-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #d6b46f, #f59e0b, #e5ca8a);
  z-index: 10001;
  box-shadow: 0 0 10px rgba(214, 180, 111, 0.6);
  transition: width 0.1s linear;
}

.eyv-back-to-top {
  position: fixed;
  bottom: 144px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 23, 36, 0.9);
  border: 1px solid rgba(214, 180, 111, 0.4);
  color: var(--color-primary, #d6b46f);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9990;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(214, 180, 111, 0.2);
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .eyv-back-to-top {
    bottom: 85px;
    right: 16px;
  }
}

.eyv-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.eyv-back-to-top:hover {
  background: var(--color-primary, #d6b46f);
  color: #071018;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(214, 180, 111, 0.5);
}

/* ===== UNIVERSAL SELECT DROPDOWN NATIVE ARROW RESET & GOLD ARROW ===== */
select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

select:not(.codeshare-select) {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d6b46f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  padding-right: 32px !important;
}

select::-ms-expand {
  display: none !important;
}

/* ===== MOBILE HEADER CREW CENTER BUTTON & TOOL CARDS RESPONSIVE FIX ===== */
@media (max-width: 768px) {
  .nav-actions .btn,
  .header .btn {
    width: auto !important;
    min-height: 34px !important;
    padding: 0.35rem 0.85rem !important;
    font-size: 0.75rem !important;
    border-radius: var(--radius-full) !important;
  }
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 980px) {
  .card,
  .event-details-card {
    padding: 1rem 1.15rem !important;
    border-radius: 1rem !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .tools-grid {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    grid-template-columns: 1fr !important;
  }

  /* Force multi-column inline grids inside tool cards to collapse to 1 column on tablet and mobile viewports */
  .card [style*="grid-template-columns"],
  .tools-grid [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Prevent inputs and selects from forcing card overflow */
  .card input,
  .card select {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .card select {
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .tools-section-title {
    font-size: 11px !important;
    letter-spacing: 0.04em !important;
    white-space: normal !important;
  }

  #chkAircraftSelect,
  #btnDownloadPdf {
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .card,
  .event-details-card {
    padding: 0.85rem 0.9rem !important;
  }
}

/* Ensure horizontal scrolling tab containers retain proper button dimensions without collapsing */
#chkPhaseTabs,
#matrixRankSelector {
  display: flex !important;
  gap: 6px !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth !important;
}

#chkPhaseTabs button,
#matrixRankSelector button,
.matrix-tab-btn {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  min-width: max-content !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.tools-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2rem 0 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.tools-section-badge { background: rgba(214, 180, 111, 0.15); border: 1px solid var(--color-primary); color: var(--color-primary-strong); font-weight: 800; font-size: 11px; padding: 4px 8px; border-radius: 6px; flex-shrink: 0; }

.gate-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  flex-wrap: nowrap;
  white-space: nowrap !important;
}

.gate-type-badge {
  font-size: 8px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  color: var(--color-text-muted);
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.tools-section-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.tools-section-line {
  flex: 1;
  height: 1px;
  background: var(--color-divider);
}













/* ===== CHATBOT TYPING ANIMATION ===== */
.eyv-typing-bubble {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  opacity: 0.9;
  font-size: 0.82rem !important;
  color: var(--color-text-muted);
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 2px;
}

.typing-dots .dot {
  width: 6px;
  height: 6px;
  background: var(--color-primary, #d6b46f);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
  display: inline-block;
}

.typing-dots .dot:nth-child(1) { animation-delay: 0s; }
.typing-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dots .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.3; }
  40% { transform: translateY(-5px); opacity: 1; box-shadow: 0 0 6px var(--color-primary, #d6b46f); }
}

/* ===== FORCE SINGLE-LINE NAVIGATION & HEADER LINKS ===== */
.nav-shortcuts a,
.nav-links a,
.dropdown-menu a,
.mobile-dropdown-menu a,
.dropdown-wrapper > a,
.mobile-dropdown summary {
  white-space: nowrap !important;
}

/* ===== CHATBOT & COMMAND PALETTE LIGHT THEME STYLING ===== */
[data-theme="light"] .eyv-chatbot-window {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(181, 144, 73, 0.35) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 0 30px rgba(181, 144, 73, 0.15) !important;
  color: #241e17 !important;
}

[data-theme="light"] .eyv-chatbot-header {
  background: rgba(244, 241, 230, 0.85) !important;
  border-bottom: 1px solid rgba(181, 144, 73, 0.2) !important;
}

[data-theme="light"] .eyv-chatbot-title {
  color: #241e17 !important;
}

[data-theme="light"] .eyv-chatbot-status {
  color: #6b6053 !important;
}

[data-theme="light"] .eyv-chatbot-close {
  color: #6b6053 !important;
}
[data-theme="light"] .eyv-chatbot-close:hover {
  color: #b59049 !important;
}

/* Tabs */
[data-theme="light"] .eyv-chatbot-tabs {
  background: rgba(236, 234, 225, 0.6) !important;
  border-bottom: 1px solid rgba(181, 144, 73, 0.18) !important;
}

[data-theme="light"] .eyv-tab-btn {
  color: #6b6053 !important;
}

[data-theme="light"] .eyv-tab-btn.active {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #8c6b2b !important;
  border-color: rgba(181, 144, 73, 0.4) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .eyv-tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5) !important;
  color: #241e17 !important;
}

/* Chat Messages & Bubbles */
[data-theme="light"] .eyv-chat-msg.bot .eyv-chat-bubble,
[data-theme="light"] .eyv-ai-msg.bot .eyv-ai-bubble {
  background: #ffffff !important;
  color: #241e17 !important;
  border: 1px solid rgba(181, 144, 73, 0.2) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .eyv-chat-msg.user .eyv-chat-bubble,
[data-theme="light"] .eyv-ai-msg.user .eyv-ai-bubble {
  background: #b59049 !important;
  color: #ffffff !important;
}

[data-theme="light"] .eyv-ai-chat-header {
  background: rgba(244, 241, 230, 0.6) !important;
  border-bottom: 1px solid rgba(181, 144, 73, 0.18) !important;
}

[data-theme="light"] .eyv-ai-model-badge {
  color: #8c6b2b !important;
}

[data-theme="light"] .eyv-ai-reset-btn {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #6b6053 !important;
}
[data-theme="light"] .eyv-ai-reset-btn:hover {
  background: rgba(181, 144, 73, 0.2) !important;
  color: #8c6b2b !important;
}

/* First Time Welcome Mode Cards */
[data-theme="light"] .eyv-welcome-screen {
  background: transparent !important;
}

[data-theme="light"] .eyv-welcome-badge {
  background: rgba(181, 144, 73, 0.15) !important;
  color: #8c6b2b !important;
  border: 1px solid rgba(181, 144, 73, 0.3) !important;
}

[data-theme="light"] .eyv-welcome-title {
  color: #241e17 !important;
}

[data-theme="light"] .eyv-welcome-subtitle {
  color: #6b6053 !important;
}

[data-theme="light"] .eyv-mode-card {
  background: #ffffff !important;
  border: 1px solid rgba(181, 144, 73, 0.22) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
  color: #241e17 !important;
}

[data-theme="light"] .eyv-mode-card:hover {
  border-color: #b59049 !important;
  box-shadow: 0 8px 20px rgba(181, 144, 73, 0.15) !important;
}

[data-theme="light"] .eyv-mode-title {
  color: #241e17 !important;
}

[data-theme="light"] .eyv-mode-tag {
  color: #6b6053 !important;
}

[data-theme="light"] .eyv-mode-desc {
  color: #4a5568 !important;
}

[data-theme="light"] .eyv-mode-btn {
  background: rgba(181, 144, 73, 0.12) !important;
  border: 1px solid rgba(181, 144, 73, 0.3) !important;
  color: #8c6b2b !important;
}

[data-theme="light"] .eyv-mode-card:hover .eyv-mode-btn {
  background: #b59049 !important;
  color: #ffffff !important;
}

/* Suggestion Chips */
[data-theme="light"] .eyv-chip {
  background: #ffffff !important;
  border: 1px solid rgba(181, 144, 73, 0.25) !important;
  color: #4a5568 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .eyv-chip:hover {
  background: rgba(181, 144, 73, 0.15) !important;
  border-color: #b59049 !important;
  color: #8c6b2b !important;
}

/* Custom badges/tags */
[data-theme="light"] .dest-airline-badge {
  background: rgba(181, 144, 73, 0.08) !important;
  border-color: rgba(181, 144, 73, 0.2) !important;
  color: var(--color-text) !important;
}

[data-theme="light"] .dest-airline-badge:hover {
  background: rgba(181, 144, 73, 0.15) !important;
  border-color: var(--color-primary) !important;
  color: var(--color-primary-strong) !important;
}

::-webkit-scrollbar {
  width: 10px;
}

/* Light mode overrides for specific components */
[data-theme="light"] .hero-overlay {
  background: linear-gradient(0deg, var(--color-bg) 0%, rgba(249, 247, 242, 0.85) 15%, rgba(249, 247, 242, 0.3) 30%, transparent 50%),
    linear-gradient(270deg, transparent 0%, rgba(249, 247, 242, 0.15) 25%, rgba(249, 247, 242, 0.7) 55%, var(--color-bg) 80%) !important;
}

[data-theme="light"] #globeDestinationCard {
  background: var(--color-dropdown-bg) !important;
  color: var(--color-text) !important;
  border-color: var(--color-border) !important;
  box-shadow: 0 10px 30px rgba(181, 144, 73, 0.15) !important;
}

/* Light mode ATIS / METAR banner overrides */
[data-theme="light"] .eyv-metar-bar {
  background: var(--color-surface-2, rgba(244, 241, 230, 0.95)) !important;
  border-bottom-color: var(--color-border, rgba(181, 144, 73, 0.25)) !important;
  color: var(--color-text-muted, #6b6053) !important;
}

[data-theme="light"] .eyv-metar-badge {
  background: rgba(181, 144, 73, 0.12) !important;
  border-color: rgba(181, 144, 73, 0.3) !important;
  color: var(--color-primary-strong, #8c6b2b) !important;
}

[data-theme="light"] .eyv-metar-text strong {
  color: var(--color-text, #241e17) !important;
}

[data-theme="light"] .atis {
  background: var(--color-surface-2, rgba(244, 241, 230, 0.95)) !important;
  border-bottom-color: var(--color-border, rgba(181, 144, 73, 0.25)) !important;
}

[data-theme="light"] .atis-inner {
  color: var(--color-primary-strong, #8c6b2b) !important;
}

[data-theme="light"] #weatherDecoderOutput {
  background: var(--color-surface-2, rgba(244, 241, 230, 0.95)) !important;
  border-color: var(--color-border, rgba(181, 144, 73, 0.25)) !important;
}

/* Input Area */
[data-theme="light"] .eyv-chatbot-input-area,
[data-theme="light"] .eyv-ai-input-area {
  background: rgba(244, 241, 230, 0.9) !important;
  border-top: 1px solid rgba(181, 144, 73, 0.2) !important;
}

[data-theme="light"] .eyv-chatbot-input,
[data-theme="light"] .eyv-ai-input {
  background: #ffffff !important;
  border: 1px solid rgba(181, 144, 73, 0.3) !important;
  color: #241e17 !important;
}

[data-theme="light"] .eyv-chatbot-input::placeholder,
[data-theme="light"] .eyv-ai-input::placeholder {
  color: rgba(36, 30, 23, 0.45) !important;
}

[data-theme="light"] .eyv-chatbot-input:focus,
[data-theme="light"] .eyv-ai-input:focus {
  border-color: #b59049 !important;
  box-shadow: 0 0 0 3px rgba(181, 144, 73, 0.15) !important;
}

[data-theme="light"] .eyv-chatbot-send,
[data-theme="light"] .eyv-ai-send {
  background: #b59049 !important;
  color: #ffffff !important;
}

[data-theme="light"] .eyv-chatbot-send:hover,
[data-theme="light"] .eyv-ai-send:hover {
  background: #8c6b2b !important;
}

/* Command Palette Light Theme */
[data-theme="light"] .cmd-palette-backdrop {
  background: rgba(249, 247, 242, 0.82) !important;
}

[data-theme="light"] .cmd-palette-modal {
  background: #ffffff !important;
  border-color: rgba(181, 144, 73, 0.3) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .cmd-palette-input {
  color: #241e17 !important;
}

[data-theme="light"] .cmd-palette-input::placeholder {
  color: rgba(36, 30, 23, 0.45) !important;
}

[data-theme="light"] .cmd-palette-item {
  color: #241e17 !important;
}

[data-theme="light"] .cmd-palette-item:hover,
[data-theme="light"] .cmd-palette-item.is-selected {
  background: rgba(181, 144, 73, 0.12) !important;
}

[data-theme="light"] .cmd-palette-item-desc {
  color: #6b6053 !important;
}

/* Accessibility & High-Contrast Focus Ring Enhancement */
:focus-visible {
  outline: 2px solid var(--color-primary, #d6b46f) !important;
  outline-offset: 3px !important;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary, #d6b46f) !important;
  outline-offset: 2px !important;
}

.cmd-palette-item:focus-visible,
.nav-shortcuts a:focus-visible {
  outline: 2px solid var(--color-primary, #d6b46f) !important;
  outline-offset: 1px !important;
}

/* Mic Button Voice Recording Indicator */
.eyv-ai-mic-btn.is-recording {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  animation: eyv-mic-pulse 1.2s infinite;
}

@keyframes eyv-mic-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* --- FLIGHT DECK TOOLS CONTAINER & CARD SPACING SYSTEM --- */
.tools-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  box-sizing: border-box;
}

.tools-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.25rem;
  margin-bottom: -0.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border, rgba(214, 180, 111, 0.2));
  width: 100%;
  box-sizing: border-box;
}

.tools-grid > .tools-section-divider:first-child {
  margin-top: 0;
}

.tools-section-badge {
  background: var(--color-primary, #d6b46f);
  color: #0b141d;
  font-family: var(--font-display, inherit);
  font-weight: 800;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.tools-section-title {
  font-family: var(--font-display, inherit);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--color-primary-strong, #d6b46f);
  text-transform: uppercase;
  flex-shrink: 0;
}

.tools-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(214, 180, 111, 0.3), transparent);
}

.card.event-details-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  padding: 1.5rem;
  background: var(--color-surface, rgba(13, 24, 37, 0.85));
  border: 1px solid var(--color-border, rgba(214, 180, 111, 0.2));
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  margin: 0 !important;
}

.card.event-details-card:hover {
  border-color: rgba(214, 180, 111, 0.45);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

/* Light Theme Card & Grid Overrides */
[data-theme="light"] .tools-section-divider {
  border-bottom-color: rgba(181, 144, 73, 0.3) !important;
}

[data-theme="light"] .tools-section-badge {
  background: var(--color-primary-strong, #8c6b2b) !important;
  color: #ffffff !important;
}

[data-theme="light"] .tools-section-title {
  color: var(--color-primary-strong, #8c6b2b) !important;
}

[data-theme="light"] .card.event-details-card {
  background: var(--color-surface-2, rgba(244, 241, 230, 0.95)) !important;
  border-color: var(--color-border, rgba(181, 144, 73, 0.3)) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .card.event-details-card:hover {
  border-color: rgba(181, 144, 73, 0.5) !important;
  box-shadow: 0 8px 24px rgba(181, 144, 73, 0.12) !important;
}

/* --- EFB NIGHT VISION COCKPIT RED FILTER --- */
html.night-vision-mode {
  filter: sepia(100%) hue-rotate(300deg) contrast(125%) brightness(85%) !important;
  transition: filter 0.3s ease !important;
}

html.night-vision-mode img,
html.night-vision-mode video {
  filter: sepia(50%) hue-rotate(300deg) !important;
}

/* --- COMMAND PALETTE QUICK SEARCH MODAL (Ctrl + K) --- */
.cmd-palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 16, 0.82);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cmd-palette-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cmd-palette-dialog {
  width: min(640px, calc(100vw - 32px));
  background: rgba(13, 24, 37, 0.96);
  border: 1px solid rgba(214, 180, 111, 0.35);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(-10px) scale(0.98);
  transition: transform 0.2s ease;
}

.cmd-palette-backdrop.is-open .cmd-palette-dialog {
  transform: translateY(0) scale(1);
}

.cmd-palette-search-wrap {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
}

.cmd-palette-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.cmd-palette-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}

.cmd-palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--color-text-muted, #c5c0b2);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.cmd-palette-item.is-selected,
.cmd-palette-item:hover {
  background: rgba(214, 180, 111, 0.15);
  color: #fff;
}

.cmd-palette-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmd-palette-item-title {
  font-weight: 700;
  font-size: 13px;
}

.cmd-palette-item-desc {
  font-size: 11px;
  opacity: 0.7;
}

.cmd-palette-shortcut-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-primary-strong, #e6c98c);
}

/* --- FLOATING EFB UNIT CONVERTER OVERLAY WIDGET --- */
.efb-converter-fab {
  position: fixed !important;
  bottom: 88px !important;
  right: 24px !important;
  left: auto !important;
  z-index: 9988;
  background: linear-gradient(135deg, rgba(17, 30, 44, 0.95), rgba(7, 16, 24, 0.95));
  border: 1px solid var(--color-border, rgba(214, 180, 111, 0.4));
  color: var(--color-primary-strong, #e6c98c);
  padding: 10px 16px;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.efb-converter-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(214, 180, 111, 0.2);
}

.efb-converter-panel {
  position: fixed;
  bottom: 145px;
  right: 24px;
  left: auto;
  z-index: 9989;
  width: 320px;
  min-width: 260px;
  min-height: 240px;
  max-width: 95vw;
  max-height: 90vh;
  resize: both;
  overflow: auto;
  background: rgba(11, 20, 29, 0.95);
  border: 1px solid rgba(214, 180, 111, 0.3);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  padding: 14px;
  display: none;
  flex-direction: column;
  gap: 10px;
}

/* Mobile responsive layout: Move EFB Converter to bottom-left to avoid right-corner clutter */
@media (max-width: 768px) {
  .efb-converter-fab {
    bottom: 16px !important;
    right: auto !important;
    left: 16px !important;
    padding: 8px 14px;
    font-size: 11px;
  }
  .efb-converter-panel {
    bottom: 64px;
    right: auto;
    left: 16px;
    width: calc(100vw - 32px);
  }
}

.efb-converter-panel.is-open {
  display: flex;
}

.efb-converter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.efb-converter-header:active,
.efb-converter-header.is-dragging {
  cursor: grabbing;
}

.efb-converter-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.efb-converter-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
}

.efb-converter-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 8px;
  color: #fff;
  font-size: 11px;
  outline: none;
  box-sizing: border-box;
}

.efb-converter-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --- NIGHT VISION 3RD VISIT HINT TOAST BANNER --- */
.eyv-nv-hint-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(214, 180, 111, 0.4);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 16px rgba(214, 180, 111, 0.15);
  color: #f1f5f9;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  max-width: 380px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.eyv-nv-hint-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.eyv-nv-hint-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.eyv-nv-hint-text {
  flex: 1;
}

.eyv-nv-hint-text strong {
  color: #d6b46f;
}

.eyv-nv-hint-text kbd {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  font-family: monospace;
  font-weight: 600;
  line-height: 1;
  color: #d6b46f;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(214, 180, 111, 0.3);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.eyv-nv-hint-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.eyv-nv-hint-close:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
}

@media (max-width: 768px) {
  .eyv-nv-hint-toast {
    left: 16px;
    right: 16px;
    bottom: 20px;
    max-width: calc(100vw - 32px);
    font-size: 12px;
    padding: 10px 14px;
  }
}

/* ===== RECENT PIREPS SECTION STYLES ===== */
.pireps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

@media (min-width: 1200px) {
  .pireps-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.pirep-card {
  background: var(--color-surface, rgba(17, 27, 36, 0.75));
  border: 1px solid rgba(214, 180, 111, 0.18);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pirep-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(214, 180, 111, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pirep-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 180, 111, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(214, 180, 111, 0.1);
}

.pirep-card:hover::before {
  opacity: 1;
}

.pirep-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pirep-flight-no {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #d6b46f;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pirep-status {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.pirep-status.approved {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.pirep-status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.pirep-status.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.pirep-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pirep-icao {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #f6efdf;
  letter-spacing: 0.04em;
}

.pirep-route-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #d6b46f;
}

.pirep-duration {
  font-size: 0.72rem;
  color: var(--color-text-muted, #94a3b8);
  font-weight: 600;
}

.pirep-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--color-text-muted, #94a3b8);
}

.pirep-meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pirep-meta-label {
  color: var(--color-text-faint, #64748b);
  font-size: 0.75rem;
}

.pirep-meta-val {
  color: #e2e8f0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.pirep-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.pirep-card-skeleton {
  background: rgba(17, 27, 36, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  height: 210px;
  animation: pirepPulse 1.5s infinite ease-in-out;
}

@keyframes pirepPulse {
  0% { opacity: 0.4; }
  50% { opacity: 0.8; }
  100% { opacity: 0.4; }
}

.pirep-card {
  cursor: pointer;
}

/* ===== PIREP DETAILS MODAL ===== */
.pirep-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(7, 15, 23, 0.85);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pirep-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.pirep-modal-content {
  background: #0f1923;
  border: 1px solid rgba(214, 180, 111, 0.3);
  border-radius: 20px;
  width: min(650px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(214, 180, 111, 0.15);
  padding: 1.75rem;
  color: #f6efdf;
  animation: pirepModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pirepModalPop {
  from { transform: scale(0.95) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.pirep-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #e2e8f0;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.pirep-modal-close:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  transform: scale(1.05);
}

.pirep-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  padding-right: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pirep-modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #d6b46f;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pirep-modal-route-banner {
  background: rgba(214, 180, 111, 0.06);
  border: 1px dashed rgba(214, 180, 111, 0.25);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  margin: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pirep-modal-icao {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
}

.pirep-modal-arrow-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #d6b46f;
}

.pirep-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.pirep-detail-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.pirep-detail-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.pirep-detail-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  word-break: break-word;
}

/* ===== LIVE FLEET & LIVERY GALLERY STYLES ===== */
.live-fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.fleet-model-card {
  background: var(--color-surface, rgba(17, 27, 36, 0.75));
  border: 1px solid rgba(214, 180, 111, 0.18);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.fleet-model-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 180, 111, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(214, 180, 111, 0.1);
}

.fleet-model-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fleet-model-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #f6efdf;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fleet-model-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  background: rgba(214, 180, 111, 0.15);
  color: #d6b46f;
  border: 1px solid rgba(214, 180, 111, 0.3);
  white-space: nowrap;
}

.fleet-livery-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.5rem;
}

.livery-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.livery-tag.mainline {
  background: rgba(214, 180, 111, 0.12);
  color: #d6b46f;
  border-color: rgba(214, 180, 111, 0.3);
}

.livery-tag.cargo {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
}

.livery-tag.partner {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.3);
}

.fleet-filter-btn {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid rgba(214, 180, 111, 0.2);
  background: rgba(17, 27, 36, 0.6);
  color: var(--color-text-muted, #94a3b8);
  cursor: pointer;
  transition: all 0.2s ease;
}

.fleet-filter-btn:hover {
  border-color: #d6b46f;
  color: #f6efdf;
}

.fleet-filter-btn.active {
  background: rgba(214, 180, 111, 0.2);
  color: #d6b46f;
  border-color: #d6b46f;
}

/* ===== PIREP LIVE STATS GRID ===== */
.pirep-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

@media (max-width: 1100px) {
  .pirep-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .pirep-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pirep-stats-grid {
    grid-template-columns: 1fr;
  }
}

.pirep-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pirep-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 180, 111, 0.35);
  background: rgba(214, 180, 111, 0.05);
}

.pirep-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pirep-stat-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #f6efdf;
  line-height: 1.2;
}

.pirep-stat-value.gold {
  color: #d6b46f;
}

/* ===== FOOTER VA VERIFICATION BADGE ===== */
.va-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(214, 180, 111, 0.08);
  border: 1px solid rgba(214, 180, 111, 0.25);
  border-radius: 99px;
  padding: 4px 10px;
  margin-top: 10px;
  font-size: 0.72rem;
  color: #f6efdf;
  text-decoration: none;
  transition: all 0.2s ease;
}

.va-footer-badge:hover {
  background: rgba(214, 180, 111, 0.16);
  border-color: rgba(214, 180, 111, 0.5);
  transform: translateY(-1px);
}

/* ===== PASSWORD LOCKOUT STYLES ===== */
.password-wrapper.is-locked-out {
  border-color: rgba(239, 68, 68, 0.5) !important;
  background: rgba(239, 68, 68, 0.05) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2) !important;
}

.password-wrapper input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  color: #ef4444 !important;
}
