:root {
  --bg-start: #0f172a;
  --bg-end: #111827;
  --panel: #111827;
  --panel-alt: #0b1222;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-2: #fcd34d;
  --border: #1f2937;
}

body {
  background: radial-gradient(90% 60% at 10% 10%, #122549 0%, #0f172a 35%, #0b1222 100%);
  color: var(--text);
}

.home-modern .panel {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-alt) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.home-modern .panel-heading {
  background: transparent;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  letter-spacing: 0.5px;
  font-weight: 600;
}

.home-modern .panel-title {
  font-weight: 700;
  text-transform: uppercase;
}

.panel-title {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.4px;
}

.home-modern .panel {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-alt) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-radius: 14px;
}

.panel {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-alt) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-radius: 14px;
}

.home-modern .panel-heading {
  background: transparent;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  letter-spacing: 0.5px;
  font-weight: 600;
  border-radius: 14px 14px 0 0;
}

.panel-heading {
  background: transparent;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  letter-spacing: 0.5px;
  font-weight: 600;
  border-radius: 14px 14px 0 0;
}

.home-modern .table {
  color: var(--text);
}

.table {
  color: var(--text);
}

.home-modern .table > thead > tr > th {
  border-color: var(--border);
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.table > thead > tr > th {
  border-color: var(--border);
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.04);
}

/* Encabezados y hover en modo home-modern, forzando sobre Bootstrap */
.home-modern .panel .table > thead > tr > th {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  color: var(--text);
  border-color: var(--border);
}

.home-modern .table > tbody > tr > td {
  background: transparent;
}

.home-modern .table-hover > tbody > tr:hover > td {
  background: rgba(34, 211, 238, 0.12) !important;
  color: var(--text);
}

.dataTables_wrapper .row {
  margin-left: 0;
  margin-right: 0;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  color: var(--text);
}

.home-modern .table > tbody > tr > td {
  border-color: var(--border);
}

.table > tbody > tr > td {
  border-color: var(--border);
}

.home-modern .table-hover > tbody > tr:hover {
  background: rgba(34, 211, 238, 0.08);
}

.live-flights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 992px) {
  .live-flights-grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

.live-map {
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel-alt);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.live-map .leaflet-control-container .leaflet-top .leaflet-control,
.live-map .leaflet-control-container .leaflet-bottom .leaflet-control {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border);
  color: var(--text);
}

.table-hover > tbody > tr:hover {
  background: rgba(34, 211, 238, 0.08);
}

/* Refuerzo de hover en filas */
.home-modern .table > tbody > tr:hover > td,
.table > tbody > tr:hover > td {
  background: rgba(34, 211, 238, 0.12);
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(34, 211, 238, 0.16) !important;
  color: #67e8f9 !important;
}

.dataTables_wrapper .dataTables_info {
  color: var(--muted);
}

.home-modern .hero-panel {
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.08), rgba(124, 58, 237, 0.08));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.home-modern .hero-panel h2 {
  margin-top: 0;
  font-weight: 700;
  color: #e0f2fe;
}

.home-modern .hero-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.hero-main {
  flex: 1 1 320px;
  min-width: 300px;
}

.hero-side-card {
  width: 260px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-side-card .side-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.hero-side-card .side-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-side-card .side-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.hero-side-card .side-list li:last-child {
  border-bottom: none;
}

.hero-side-card .side-list a {
  color: #93c5fd;
}

.hero-side-card .side-list a:hover {
  color: #bfdbfe;
}

.hero-side-card .side-list .date {
  color: var(--muted);
  font-size: 12px;
}

.hero-stat .label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.2;
  word-break: break-word;
  white-space: normal;
}

.hero-stat .number {
  font-size: 22px;
  font-weight: 800;
  color: #e5e7eb;
  margin-top: 4px;
}

.home-modern .stat-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  margin-right: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  min-width: 180px;
  height: 72px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.home-modern .stat-chip .value {
  font-weight: 700;
  font-size: 20px;
}

.home-modern .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.home-modern .stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.home-modern .stat-card .label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.home-modern .stat-card .number {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}

.home-modern .badge-accent {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.home-modern a {
  color: #93c5fd;
}

.home-modern a:hover {
  color: #67e8f9;
}

.panel a,
.table a {
  color: #93c5fd;
}

.panel a:hover,
.table a:hover {
  color: #bfdbfe;
}

/* Ajuste de cabeceras de tabla (evitar gris de bootstrap) */
.table > thead > tr > th {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text);
  border-color: var(--border);
}

.hub-banner {
  margin: 10px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.12), rgba(79, 70, 229, 0.12));
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.alert,
.alert-danger {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.08), rgba(79, 70, 229, 0.08));
  color: var(--text);
  margin: 10px 0;
}

/* Enlaces a aeropuertos en verde */
a[href*="airport_info"] {
  color: #34d399;
}

a[href*="airport_info"]:hover {
  color: #6ee7b7;
}

.home-modern ::selection {
  background: rgba(34, 211, 238, 0.25);
  color: var(--text);
}

/* Navbar styling */
.navbar.navbar-inverse {
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.12), rgba(79, 70, 229, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  margin: 10px 12px 16px 12px;
  padding: 6px 10px;
}

/* Panel base */
.panel.panel-default {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-alt) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: var(--text);
}

.panel.panel-default > .panel-heading {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.panel.panel-default > .panel-heading .panel-title {
  color: var(--text);
}

.navbar.navbar-inverse .navbar-nav > li > a,
.navbar.navbar-inverse .navbar-brand {
  color: #e5e7eb !important;
  border-radius: 12px;
  padding: 10px 14px;
}

.navbar.navbar-inverse .navbar-nav > li > a:hover,
.navbar.navbar-inverse .navbar-brand:hover {
  background: rgba(34, 211, 238, 0.2);
  color: #67e8f9 !important;
}

.navbar.navbar-inverse .navbar-toggle {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar.navbar-inverse .navbar-toggle .icon-bar {
  background-color: #e5e7eb;
}

/* Main layout width */
.home-modern {
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
}

.container-fluid {
  padding-left: 12px;
  padding-right: 12px;
}

.row {
  margin-left: -5px;
  margin-right: -5px;
}

/* Dropdown menu styling */
.navbar-nav > li > .dropdown-menu {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  padding: 6px 0;
}

.navbar-nav > li > .dropdown-menu > li > a {
  color: #e5e7eb;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-nav > li > .dropdown-menu > li > a:hover,
.navbar-nav > li > .dropdown-menu > li > a:focus {
  background: rgba(34, 211, 238, 0.16);
  color: #67e8f9;
}

.navbar-nav > li > .dropdown-menu .divider {
  background-color: var(--border);
}

.navbar-nav > li > .dropdown-menu i {
  color: #67e8f9;
  width: 16px;
  text-align: center;
}

.navbar-nav > li > a > i {
  color: #e5e7eb;
  margin-right: 6px;
}

.redes-container ul {
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
}

.redes-container ul li {
  list-style: none;
}

.redes-container ul li a {
  width: 44px;
  height: 44px;
  line-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.redes-container ul li a:hover {
  background: rgba(34, 211, 238, 0.2);
  color: #67e8f9;
  border-color: rgba(34, 211, 238, 0.4);
}

.footer-line {
  height: 1px;
  margin: 0 auto 12px auto;
  width: 100%;
  max-width: 1200px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  border-radius: 999px;
}

.discord-embed {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Staff cards */
.staff-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.staff-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.staff-avatar img {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
}

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

.staff-name {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.staff-role {
  color: #93c5fd;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.staff-email a {
  color: #34d399;
}

.staff-email a:hover {
  color: #6ee7b7;
}

.staff-description {
  margin: 4px 0 0 0;
  color: var(--muted);
  line-height: 1.4;
}

/* Pilot options */
.pilot-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.pilot-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.pilot-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  border-color: rgba(34, 211, 238, 0.4);
  color: #bfdbfe;
}

.pilot-option .option-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #67e8f9;
}

.pilot-option .option-text {
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.pilot-option .option-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(2, 6, 23, 0.8);
}

.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.analytics-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  min-height: 96px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.analytics-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.analytics-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-top: 6px;
}

.analytics-sub {
  font-size: 12px;
  color: #67e8f9;
  margin-top: 4px;
}

.analytics-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.analytics-chart-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  min-height: 260px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.analytics-chart-title {
  margin: 0 0 8px 0;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  color: var(--text);
}

.analytics-chart-canvas {
  width: 100% !important;
  height: 220px !important;
}

/* ICAO search */
.icao-search {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.icao-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.icao-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.icao-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.icao-card .icao-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.icao-card .icao-meta {
  color: var(--muted);
  font-size: 13px;
}

.icao-card .icao-meta span {
  color: #cbd5e1;
  font-weight: 600;
}

/* Panels (general) */
.home-modern .panel {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-alt) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-radius: 14px;
}

.home-modern .panel-heading {
  background: transparent;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  letter-spacing: 0.5px;
  font-weight: 600;
  border-radius: 14px 14px 0 0;
}

.modal-content {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(11, 18, 34, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.modal-header,
.modal-footer {
  border-color: var(--border);
  color: var(--text);
}

.modal-title {
  color: var(--text);
}

.modal-body label {
  color: var(--muted);
}

.modal-body input.form-control {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
}

.modal-body input.form-control:focus {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: none;
}

.modal-footer .btn,
.modal-body .btn {
  border-radius: 10px;
}

.modal-footer .btn-default {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.modal-footer .btn-primary,
.modal-body .btn-primary {
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.25), rgba(79, 70, 229, 0.3));
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: #e5e7eb;
}

.modal-footer .btn-primary:hover,
.modal-body .btn-primary:hover {
  background: rgba(34, 211, 238, 0.35);
}

/* Tabs and panels in profile */
.home-modern .nav-tabs {
  border-bottom: 1px solid var(--border);
}

.home-modern .nav-tabs > li > a {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  color: var(--text);
  margin-right: 6px;
  padding: 10px 14px;
}

.nav-tabs > li > a {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  color: var(--text);
  margin-right: 6px;
  padding: 10px 14px;
}

.home-modern .nav-tabs > li.active > a,
.home-modern .nav-tabs > li.active > a:focus,
.home-modern .nav-tabs > li.active > a:hover {
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.16), rgba(79, 70, 229, 0.18));
  color: #67e8f9;
  border: 1px solid var(--border);
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.16), rgba(79, 70, 229, 0.18));
  color: #67e8f9;
  border: 1px solid var(--border);
}

.table > thead > tr > th,
.table > thead > tr > td {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.08), rgba(15, 23, 42, 0.9));
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.pilot-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-alt) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  color: var(--text);
}

.pilot-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pilot-card__callsign a {
  color: #e5e7eb;
  font-weight: 700;
  font-size: 16px;
}

/* Pilot photo size */
.pilot-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* Motion background */
.motion-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  filter: blur(0px);
}
.home-modern {
  position: relative;
  z-index: 1;
}
.motion-toggle {
  margin: 8px 0 12px 0;
}
.motion-toggle .btn.active {
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.3), rgba(79, 70, 229, 0.35));
}

/* Downloads grid */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.download-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-alt) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.download-card__title {
  font-weight: 700;
  color: var(--text);
}
.download-card__meta {
  font-size: 12px;
  color: #9ca3af;
  margin: 4px 0 8px;
}
.download-card__actions .btn {
  margin: 2px 2px 0 0;
}

.pilot-card__callsign a:hover {
  color: #67e8f9;
}

.pilot-card__name {
  color: var(--muted);
  font-size: 13px;
}

.pilot-card__country img {
  width: 26px;
  height: 18px;
  border-radius: 3px;
}

.pilot-card__meta {
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}

.pilot-card__meta i {
  margin-right: 6px;
  color: #67e8f9;
}

.pilot-card__meta-sub {
  font-size: 12px;
  color: #94a3b8;
  margin-left: 18px;
}

.pilot-card__stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
}

.pilot-card__rank img {
  height: 28px;
}

.pilot-card__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-active,
.badge-inactive {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  border: 1px solid var(--border);
}

.badge-active {
  background: rgba(34, 211, 238, 0.15);
  color: #67e8f9;
}

.badge-inactive {
  background: rgba(220, 38, 38, 0.12);
  color: #fca5a5;
}

.network-badge {
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #e5e7eb;
  font-size: 12px;
}

.network-badge:hover {
  background: rgba(34, 211, 238, 0.16);
  color: #67e8f9;
}

.home-modern .panel {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-alt) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-radius: 14px;
}

.home-modern .panel-heading {
  background: transparent;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  letter-spacing: 0.5px;
  font-weight: 600;
  border-radius: 14px 14px 0 0;
}

/* DataTables overrides to avoid default gray selection/striping */
.home-modern table.dataTable tbody tr,
.home-modern table.dataTable tbody td {
  background: transparent !important;
}

.home-modern table.dataTable tbody tr.selected,
.home-modern table.dataTable tbody td.sorting_1,
.home-modern table.dataTable tbody td.sorting_2,
.home-modern table.dataTable tbody td.sorting_3 {
  background: rgba(34, 211, 238, 0.08) !important;
}

tbody > tr:hover > td.sorting_1,
tbody > tr:hover > td.sorting_2,
tbody > tr:hover > td.sorting_3 {
  background: rgba(34, 211, 238, 0.12) !important;
}

/* Override selected row highlight in tables */
.home-modern .table-striped > tbody > tr.active > td,
.home-modern .table-striped > tbody > tr.active:hover > td,
.home-modern table.dataTable tbody tr.selected > td {
  background: rgba(34, 211, 238, 0.12) !important;
  color: var(--text);
}

@media (max-width: 991px) {
  .home-modern .hero-panel {
    margin-bottom: 16px;
  }
}
/* Flight search modern cards */
.flight-card--modern {
  border: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}
.flight-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.flight-code {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #e5e7eb;
}
.flight-airline {
  font-size: 13px;
  color: #9ca3af;
}
.flight-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.flight-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px 12px;
}
.flight-col {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 8px 10px;
}
.flight-col .label {
  font-size: 11px;
  text-transform: uppercase;
  color: #9ca3af;
  letter-spacing: 0.4px;
}
.flight-col .value {
  font-size: 14px;
  font-weight: 700;
  color: #e5e7eb;
}
.flight-col .subvalue {
  font-size: 12px;
  color: #a5b4fc;
}
.flight-card__footer {
  margin-top: 10px;
  text-align: right;
}
/* Flight search modern cards */
.flight-card--modern {
  border: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s;
}
.flight-card--modern:hover {
  transform: translateY(-5px);
}
.flight-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.flight-code {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #e5e7eb;
}
.flight-airline {
  font-size: 13px;
  color: #9ca3af;
}
.flight-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.flight-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px 12px;
}
.flight-col {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 8px 10px;
}
.flight-col .label {
  font-size: 11px;
  text-transform: uppercase;
  color: #9ca3af;
  letter-spacing: 0.4px;
}
.flight-col .value {
  font-size: 14px;
  font-weight: 700;
  color: #e5e7eb;
}
.flight-col .subvalue {
  font-size: 12px;
  color: #a5b4fc;
}
.flight-card__footer {
  margin-top: 10px;
  text-align: right;
}
@media (max-width: 768px) {
  .flight-card__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .flight-row {
    grid-template-columns: 1fr;
  }
}
/* Flight search modern cards accent */
.flight-card--modern {
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
  background: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(79,70,229,0.12));
}
.flight-card--modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.flight-col {
  background: linear-gradient(120deg, rgba(34,211,238,0.08), rgba(79,70,229,0.08));
  border: 1px solid rgba(34, 211, 238, 0.18);
}
.flight-code {
  color: #67e8f9;
}
.flight-airline {
  color: #c084fc;
}
.flight-col .subvalue {
  color: #a5b4fc;
}
.flight-card__footer .btn {
  background: linear-gradient(120deg, rgba(34,211,238,0.28), rgba(79,70,229,0.32));
  border: 1px solid rgba(34,211,238,0.35);
}
/* Duración badges */
.duration-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 10px;
  color: #0b0f1a;
  font-weight: 700;
}
.dur-green { background: #34d399; color: #0b0f1a; }
.dur-yellow { background: #f59e0b; color: #0b0f1a; }
.dur-red { background: #ef4444; color: #0b0f1a; }
/* Live flights table modern */
.live-table {
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.live-table thead tr th {
  background: linear-gradient(120deg, rgba(34,211,238,0.14), rgba(79,70,229,0.12)) !important;
  color: #e5e7eb !important;
  border-color: var(--border) !important;
}
.live-table tbody tr:hover td { background: rgba(34,211,238,0.08) !important; }
.live-table .progress { background: rgba(255,255,255,0.08); border-radius: 8px; height: 16px; }
.live-table .progress-bar { background-color: #34d399; font-size: 11px; line-height: 16px; border-radius: 8px; }

/* Latest flights slider */
.latest-slider {
  background: linear-gradient(120deg, rgba(17,24,39,0.55), rgba(31,41,55,0.55));
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}
.latest-slider__header {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}
.latest-title {
  font-weight: 800;
  font-size: 16px;
  color: #e5e7eb;
}
.latest-subtitle {
  font-size: 12px;
  color: #9ca3af;
}
.latest-slider__mask {
  position: relative;
  overflow: hidden;
}
.latest-slider__track {
  display: flex;
  gap: 12px;
  padding: 8px 16px;
  align-items: center;
  flex-wrap: nowrap;
  will-change: transform;
}
.flight-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0c1b33 0%, #123252 50%, #0a1f3d 100%);
  border: 1px solid rgba(59,130,246,0.35);
  border-radius: 999px;
  padding: 8px 14px;
  color: #e5e7eb;
  box-shadow: 0 8px 18px rgba(0,0,0,0.32);
  flex: 0 0 auto;
  white-space: nowrap;
}
.flight-pill .pill-code {
  font-weight: 800;
  font-size: 14px;
  color: #67e8f9;
}
.flight-pill .pill-route {
  font-weight: 600;
  font-size: 13px;
  color: #e5e7eb;
}
.flight-pill .pill-duration {
  font-size: 12px;
  color: #c7d2fe;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.flight-pill .pill-date {
  font-size: 11px;
  color: #9ca3af;
  flex-shrink: 0;
}
.top-highlight td {
  border-top: 1px solid rgba(251,191,36,0.65) !important;
  border-bottom: 1px solid rgba(251,191,36,0.65) !important;
  box-shadow: inset 0 0 0 1px rgba(251,191,36,0.35), 0 0 12px rgba(251,191,36,0.25);
  background: radial-gradient(circle at 20% 20%, rgba(251,191,36,0.12), rgba(17,24,39,0.8));
}
.latest-slider__mask::before,
.latest-slider__mask::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  pointer-events: none;
  z-index: 2;
}
.latest-slider__mask::before {
  left: 0;
  background: linear-gradient(90deg, rgba(11,16,28,1), rgba(11,16,28,0));
}
.latest-slider__mask::after {
  right: 0;
  background: linear-gradient(270deg, rgba(11,16,28,1), rgba(11,16,28,0));
}

/* Top tables (touchdowns & vuelos largos) */
.top-table {
  color: #e5e7eb;
  background: rgba(255,255,255,0.02);
}
.top-table thead tr th {
  background: linear-gradient(120deg, rgba(34,211,238,0.14), rgba(79,70,229,0.14));
  border-color: rgba(255,255,255,0.08);
  color: #e5e7eb;
}
.top-table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}
.top-table tbody tr:hover td {
  background: rgba(34,211,238,0.08);
}
.flight-pill-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0c1b33 0%, #123252 50%, #0a1f3d 100%);
  border: 1px solid rgba(59,130,246,0.35);
  color: #e5e7eb;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.28);
  white-space: nowrap;
}


/* Top tables rounding & highlight */
.top-table tbody tr td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.top-table tbody tr td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}
.top-highlight td {
  border-top: 1px solid rgba(251,191,36,0.65) !important;
  border-bottom: 1px solid rgba(251,191,36,0.65) !important;
  box-shadow: inset 0 0 0 1px rgba(251,191,36,0.45), 0 0 14px rgba(251,191,36,0.35);
  background: linear-gradient(120deg, rgba(251,191,36,0.28), rgba(17,24,39,0.75));
}









.route-heatmap-wrapper {
  overflow-x: auto;
}

.route-heatmap-table {
  min-width: 520px;
  text-align: center;
}

.route-heatmap-table th,
.route-heatmap-table td {
  text-align: center;
  vertical-align: middle;
  font-size: 12px;
}

.route-heatmap-table th.heatmap-row {
  text-align: left;
  min-width: 140px;
}

.heatmap-code {
  display: block;
  font-weight: 700;
  color: var(--text);
}

.heatmap-name {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.heatmap-cell {
  border-radius: 8px;
  font-weight: 700;
  color: #0b1220;
}

.analytics-scatter {
  height: 260px;
}


.pilot-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.pilot-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  min-height: 92px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.pilot-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-top: 6px;
  word-break: break-word;
}


.pilot-profile-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: stretch;
}

.pilot-profile-photo {
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.14), rgba(59, 130, 246, 0.12));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.1);
}

.pilot-profile-photo .pilot-photo {
  height: 220px;
  border-radius: 10px;
}

.pilot-profile-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pilot-profile-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.pilot-profile-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  min-height: 72px;
}

.pilot-profile-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.pilot-profile-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-top: 6px;
}

.pilot-profile-sub {
  font-size: 11px;
  color: var(--muted);
}

@media (max-width: 992px) {
  .pilot-profile-card {
    grid-template-columns: 1fr;
  }
  .pilot-profile-photo .pilot-photo {
    height: 260px;
  }
}


.dataTables_wrapper .dataTables_length select option {
  background: #0f172a;
  color: #e2e8f0;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.18);
  outline: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.35), rgba(59, 130, 246, 0.35)) !important;
  color: #e0f2fe !important;
  border-color: rgba(34, 211, 238, 0.5) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  background: rgba(15, 23, 42, 0.45) !important;
  color: rgba(148, 163, 184, 0.7) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:focus {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.22);
}


.pagination > li > a,
.pagination > li > span {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  margin: 0 2px;
}

.pagination > li > a:hover,
.pagination > li > span:hover {
  background: rgba(34, 211, 238, 0.16) !important;
  color: #67e8f9 !important;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.35), rgba(59, 130, 246, 0.35)) !important;
  color: #e0f2fe !important;
  border-color: rgba(34, 211, 238, 0.5) !important;
}

.pagination > .disabled > span,
.pagination > .disabled > a {
  background: rgba(15, 23, 42, 0.45) !important;
  color: rgba(148, 163, 184, 0.7) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
}


.pilot-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.pilot-quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(59, 130, 246, 0.12));
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.pilot-quick-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  border-color: rgba(34, 211, 238, 0.45);
  color: #bfdbfe;
}

.pilot-quick-action .qa-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #67e8f9;
}

.pilot-quick-action .qa-text {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
}


.pilot-quick-action .qa-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 0 2px rgba(2, 6, 23, 0.8);
}

.pilot-quick-action .qa-badge i {
  font-size: 10px;
}


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

.mails-title {
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mails-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.mails-new {
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.35), rgba(59, 130, 246, 0.35));
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: #e0f2fe;
}

.mails-new:hover {
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.65);
}

.mails-table .mail-unread .mail-subject {
  font-weight: 700;
  color: #e0f2fe;
}

.mail-actions {
  display: flex;
  gap: 10px;
}

.mail-action {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: #93c5fd;
  text-decoration: none;
}

.mail-action:hover {
  background: rgba(34, 211, 238, 0.16);
  color: #67e8f9;
}

.mail-action.mail-delete:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

@media (max-width: 768px) {
  .mails-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .mail-actions {
    justify-content: flex-start;
  }
}


.pilot-auto-reserve {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.12));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.auto-reserve-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auto-reserve-title {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.auto-reserve-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.auto-reserve-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-top: 10px;
}

.auto-reserve-field {
  min-width: 180px;
}

.auto-reserve-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
}

.auto-reserve-field .form-control {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
}

.auto-reserve-actions .btn {
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.35), rgba(59, 130, 246, 0.35));
  border: 1px solid rgba(34, 211, 238, 0.5);
  color: #e0f2fe;
  border-radius: 10px;
}

.auto-reserve-status {
  margin-top: 8px;
  min-height: 18px;
  font-size: 12px;
  color: var(--muted);
}

.auto-reserve-status.is-ok {
  color: #67e8f9;
}

.auto-reserve-status.is-warn {
  color: #fbbf24;
}

.auto-reserve-status.is-error {
  color: #fca5a5;
}

.auto-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.auto-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.auto-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.auto-slider:before {
  position: absolute;
  content: '';
  height: 22px;
  width: 22px;
  left: 3px;
  top: 2px;
  background: #e5e7eb;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.auto-switch input:checked + .auto-slider {
  background: rgba(34, 211, 238, 0.3);
  border-color: rgba(34, 211, 238, 0.55);
}

.auto-switch input:checked + .auto-slider:before {
  transform: translateX(22px);
  background: #67e8f9;
}

@media (max-width: 768px) {
  .auto-reserve-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .auto-reserve-actions .btn {
    width: 100%;
  }
}

.pilot-auto-reserve .form-control option {
  background: #0f172a;
  color: #e2e8f0;
}

.auto-reserve-current {
  margin-top: 10px;
}

.auto-reserve-empty {
  color: var(--muted);
  font-size: 12px;
}

.auto-reserve-current-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.12);
}

.auto-reserve-current-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: #e0f2fe;
}

.auto-reserve-current-meta {
  font-size: 12px;
  color: var(--text);
  margin-bottom: 4px;
}

.auto-reserve-current-meta span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 10px;
  margin-right: 4px;
}

#currentReservation .auto-reserve-current-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.12);
}

#currentReservation .auto-reserve-current-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: #e0f2fe;
}

#currentReservation .auto-reserve-current-meta {
  font-size: 12px;
  color: var(--text);
  margin-bottom: 4px;
}

#currentReservation .auto-reserve-current-meta span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 10px;
  margin-right: 4px;
}

.stats-filter-panel {
  margin-bottom: 16px;
}

.stats-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.stats-filter-title {
  font-weight: 800;
  letter-spacing: 0.4px;
}

.stats-filter-sub {
  font-size: 12px;
  color: var(--muted);
}

.stats-filter-form {
  margin: 0;
}

.stats-year-select {
  min-width: 120px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  color-scheme: dark;
}
.stats-year-select:focus {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.18);
  outline: none;
}
.stats-year-select option {
  background: #0f172a;
  background-color: #0f172a;
  color: #e2e8f0;
}
.stats-year-select option:checked {
  background: #1e293b;
  color: #e0f2fe;
}
.stats-year-select:focus {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.18);
  outline: none;
}
.stats-year-select option {
  background: #0f172a;
  background-color: #0f172a;
  color: #e2e8f0;
}
.stats-year-select option:checked {
  background: #1e293b;
  color: #e0f2fe;
}

.stats-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  padding-top: 12px;
}

.stats-kpi {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.stats-kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
}

.stats-kpi-value {
  font-size: 20px;
  font-weight: 700;
  margin-top: 6px;
  color: var(--text);
}

.stats-chart {
  height: 320px;
}

@media (max-width: 768px) {
  .stats-filter {
    flex-direction: column;
    align-items: flex-start;
  }
  .stats-filter-form {
    width: 100%;
  }
  .stats-year-select {
    width: 100%;
  }
}





.rules-content {
  padding: 16px;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: break-word;
}
.rules-content img {
  max-width: 100%;
  height: auto;
}
.rules-content table {
  width: 100%;
}
.rules-content h1:first-child,
.rules-content h2:first-child,
.rules-content h3:first-child {
  margin-top: 0;
}


.register-page {
  padding: 8px 0 20px;
}

.register-panel .panel-heading {
  font-weight: 800;
  letter-spacing: 0.4px;
}

.register-intro {
  color: var(--muted);
  margin-bottom: 14px;
}

.register-grid {
  margin-bottom: 6px;
}

.register-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.register-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #e0f2fe;
  font-weight: 700;
  margin-bottom: 10px;
}

.register-field {
  margin-bottom: 12px;
}

.register-field label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.register-field .form-control,
.register-field select,
.register-field textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
}

.register-field .form-control:focus,
.register-field select:focus,
.register-field textarea:focus {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.18);
  outline: none;
}

.register-field .input-group-addon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px 0 0 10px;
}

.register-form select option {
  background: #0f172a;
  color: #e2e8f0;
}

.register-form select {
  color-scheme: dark;
}

.register-checkbox label {
  color: var(--text);
  font-size: 13px;
}

.register-checkbox a {
  color: #67e8f9;
  font-weight: 700;
}

.register-captcha {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.register-captcha img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
}

.register-actions {
  margin-top: 12px;
}

.register-actions .btn {
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.35), rgba(59, 130, 246, 0.35));
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: #e0f2fe;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
}

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


.register-panel .panel-body {
  padding: 26px;
}

.register-form {
  padding: 12px;
}

.register-grid {
  margin-left: -8px;
  margin-right: -8px;
}

.register-grid > [class*='col-'] {
  padding-left: 8px;
  padding-right: 8px;
}

.register-section {
  padding: 16px;
}




.register-section {
  padding: 28px !important;
  margin-bottom: 18px;
}

.register-section-title {
  margin-bottom: 14px;
}

.register-section .register-field {
  margin-bottom: 16px;
}

.register-section .register-field:last-child {
  margin-bottom: 0;
}

.register-section .form-control,
.register-section textarea,
.register-section select {
  padding: 10px 12px;
}

.register-grid {
  margin-bottom: 12px;
}


.register-section select.form-control {
  font-size: 14px;
  line-height: 1.4;
  height: 40px;
  padding: 8px 12px;
}

.register-section select.form-control option {
  font-size: 14px;
  line-height: 1.4;
}


.pilot-activity-panel .panel-body {
  padding: 16px;
}

.pilot-activity-note {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}

.pilot-activity-counts {
  margin-left: 8px;
  color: #67e8f9;
  font-weight: 700;
}

.pilot-activity-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pilot-activity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.pilot-activity-badge.badge-ok {
  background: rgba(34, 211, 238, 0.2);
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.4);
}

.pilot-activity-badge.badge-warn {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.pilot-activity-badge.badge-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.pilot-activity-badge.badge-na {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5f5;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.pilot-activity-actions .btn {
  border-radius: 10px;
}


.metar-embed {
  display: flex;
  justify-content: center;
}

.metar-embed .metar-link {
  width: 100%;
  max-width: 420px;
  height: 278px;
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: #e5e7eb;
  text-decoration: none;
}










.metar-embed #metartaf-wGXkwhhB {
  color: #e5e7eb !important;
  background: transparent !important;
}

.metar-embed #metartaf-wGXkwhhB * {
  color: #e5e7eb !important;
}

.metar-embed #metartaf-wGXkwhhB img[src*="compass-2024-dark"],
.metar-embed #metartaf-wGXkwhhB img[src*="compass-arrow-dark"],
.metar-embed #metartaf-wGXkwhhB img[src*="/rwy/"] {
  filter: invert(1) brightness(1.2);
}

.metar-embed #metartaf-wGXkwhhB div[style*="border: 1px solid #000"][style*="background-color: #fff"] {
  background-color: #0f172a !important;
  border-color: rgba(226, 232, 240, 0.4) !important;
  color: #e5e7eb !important;
}



.metar-embed #metartaf-wGXkwhhB:hover,
.metar-embed #metartaf-wGXkwhhB:active,
.metar-embed #metartaf-wGXkwhhB:focus {
  background: transparent !important;
  color: #e5e7eb !important;
}

.metar-embed #metartaf-wGXkwhhB:hover * {
  color: #e5e7eb !important;
}


.api-test-panel .panel-body {
  padding: 16px;
}

.api-test-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.api-test-meta .api-label {
  color: #e0f2fe;
  font-weight: 700;
  margin-right: 6px;
}

.api-test-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.api-field label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.api-field .form-control {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
}

.api-field .form-control:focus {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.18);
  outline: none;
}

.api-field-action {
  display: flex;
  align-items: flex-end;
}

.api-test-status {
  min-height: 20px;
  font-size: 12px;
  margin-bottom: 8px;
}

.api-test-ok {
  color: #67e8f9;
}

.api-test-warn {
  color: #fbbf24;
}

.api-test-error {
  color: #fca5a5;
}

.api-test-result {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #e2e8f0;
  padding: 12px;
  min-height: 180px;
  max-height: 420px;
  overflow: auto;
}

