@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors - Brand */
    --primary-blue: #003366;
    --secondary-blue: #0077b6;
    --accent-blue: #00b4d8;
    --brand-dark: #00122e;
    
    /* Colors - Semantic */
    --success: #00a86b;
    --warning: #ffb703;
    --danger: #d90429;
    --info: #219ebc;
    
    /* Colors - Neutral */
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-200: #dee2e6;
    --gray-300: #ced4da;
    --gray-400: #adb5bd;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --gray-700: #343a40;
    --gray-800: #212529;
    --black: #000000;

    /* Backgrounds */
    --bg-main: var(--white);
    --bg-alt: var(--gray-50);
    --bg-dark: var(--brand-dark);
    --bg-card: var(--white);
    
    /* Text Colors */
    --text-primary: var(--gray-800);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-400);
    --text-on-dark: var(--white);
    --text-on-primary: var(--white);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;

    /* Borders */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-full: 9999px;
    --border-color: var(--gray-200);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-family: 'Inter', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

[data-theme="dark"] {
    --bg-main: #0a192f;
    --bg-alt: #112240;
    --bg-card: #112240;
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --text-muted: #495670;
    --border-color: #233554;
}


/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: var(--transition-fast);
    border: 1px solid transparent;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-puja-expres {
    background-color: var(--secondary-blue);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-xs);
}

.btn-danger {
    background-color: var(--danger);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

/* --- Forms & Inputs --- */
.form-group {
    margin-bottom: var(--spacing-md);
}

.label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.input {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: var(--white);
    font-size: var(--font-size-base);
    transition: var(--transition-fast);
}

.input:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

/* --- Cards --- */
.card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
}

.flight-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-sm);
}

.iata-code {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-blue);
}

.badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.badge-success {
    background-color: rgba(0, 168, 107, 0.1);
    color: var(--success);
}

.badge-danger {
    background-color: rgba(217, 4, 41, 0.1);
    color: var(--danger);
}

.badge-info {
    background-color: rgba(33, 158, 188, 0.1);
    color: var(--info);
}

/* --- Chat Components --- */
.chat-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 600px;
    margin: 0 auto;
}

.chat-bubble {
    max-width: 80%;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    position: relative;
}

.chat-bubble-received {
    align-self: flex-start;
    background-color: var(--gray-100);
    border-bottom-left-radius: 0;
}

.chat-bubble-sent {
    align-self: flex-end;
    background-color: var(--secondary-blue);
    color: var(--white);
    border-bottom-right-radius: 0;
}

.audio-message {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.wave-icon {
    width: 100px;
    height: 20px;
    background: repeating-linear-gradient(90deg, currentColor 0, currentColor 2px, transparent 2px, transparent 4px);
    opacity: 0.6;
}

/* --- Bidding Slider --- */
.bidding-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: var(--border-color);
    border-radius: 5px;
    outline: none;
}

.bidding-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--secondary-blue);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}

/* --- Sidebar --- */
.sidebar {
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-right: 1px solid var(--border-color);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    font-weight: 500;
}

.sidebar-item-active {
    background-color: rgba(0, 119, 182, 0.05);
    color: var(--secondary-blue);
}

.sidebar-item:hover {
    background-color: var(--gray-50);
}


/* ============================================================
   BLAJET – Design System
   "El Salesforce de la Aviación Privada"
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── Variables ─────────────────────────────────────────── */
:root {
  /* Colores primarios */
  --navy: #0A0E1A;
  --navy-light: #111827;
  --navy-card: #161D2F;
  --navy-border: #1E2A45;

  /* Azul eléctrico */
  --blue: #1E6FFF;
  --blue-light: #3B82F6;
  --blue-glow: rgba(30, 111, 255, 0.3);
  --blue-subtle: rgba(30, 111, 255, 0.08);

  /* Dorado */
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-subtle: rgba(201, 168, 76, 0.12);

  /* Texto */
  --text-primary: #F0F4FF;
  --text-secondary: #8B9CC8;
  --text-muted: #4A5578;

  /* Semáforo */
  --green: #10B981;
  --yellow: #F59E0B;
  --red: #EF4444;
  --purple: #8B5CF6;

  /* Espaciado */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --shadow-blue: 0 4px 24px rgba(30, 111, 255, 0.25);
  --shadow-gold: 0 4px 24px rgba(201, 168, 76, 0.2);

  /* Transiciones */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--navy);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--navy-light);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue);
}

/* ─── Typography ────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

.text-gold {
  color: var(--gold);
}

.text-blue {
  color: var(--blue-light);
}

.text-muted {
  color: var(--text-secondary);
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Layout ────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.flex-1 {
  flex: 1;
}

.flex-wrap {
  flex-wrap: wrap;
}

.grid {
  display: grid;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

/* ─── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-blue);
}

.card-glass {
  background: rgba(22, 29, 47, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(30, 111, 255, 0.15);
  border-radius: var(--radius-lg);
}

.card-gold {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(201, 168, 76, 0.05));
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-lg);
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #1557D0);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2B7FFF, var(--blue));
  color: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #A8882A);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--navy-border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue-light);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--red);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-xl {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

/* ─── Forms ─────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--navy-light);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control-icon {
  position: relative;
}

.form-control-icon .icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.form-control-icon .form-control {
  padding-left: 2.8rem;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B9CC8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.form-error {
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 0.3rem;
}

/* ─── Badges ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-blue {
  background: rgba(30, 111, 255, 0.15);
  color: var(--blue-light);
  border: 1px solid rgba(30, 111, 255, 0.3);
}

.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-yellow {
  background: rgba(245, 158, 11, 0.15);
  color: var(--yellow);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-gold {
  background: var(--gold-subtle);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-gray {
  background: rgba(139, 156, 200, 0.1);
  color: var(--text-secondary);
  border: 1px solid var(--navy-border);
}

/* ─── Alerts ────────────────────────────────────────────── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6EE7B7;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #FCD34D;
}

.alert-info {
  background: rgba(30, 111, 255, 0.1);
  border: 1px solid rgba(30, 111, 255, 0.3);
  color: #93C5FD;
}

/* ─── Tables ────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table thead th {
  padding: 0.9rem 1.25rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--navy-border);
}

.table tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  vertical-align: middle;
}

.table tbody tr:hover {
  background: rgba(30, 111, 255, 0.04);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ─── Navbar ────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--navy-border);
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.navbar-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: white;
}

.navbar-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.navbar-name span {
  color: var(--gold);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.navbar-nav a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  background: var(--blue-subtle);
  color: var(--blue-light);
}

.navbar-nav a.active {
  font-weight: 600;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notif-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--navy-light);
  border: 1px solid var(--navy-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.notif-btn:hover {
  border-color: var(--blue);
  color: var(--blue-light);
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  background: var(--navy-light);
  border: 1px solid var(--navy-border);
  cursor: pointer;
  transition: var(--transition);
}

.user-menu:hover {
  border-color: var(--blue);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

/* ─── Sidebar ───────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: calc(100vh - 64px);
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--navy-light);
  border-right: 1px solid var(--navy-border);
  padding: 1.5rem 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: 1.5rem;
}

.sidebar-label {
  padding: 0 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  background: var(--blue-subtle);
  color: var(--text-primary);
  border-left-color: var(--blue);
}

.sidebar-nav a.active {
  background: var(--blue-subtle);
  color: var(--blue-light);
  border-left-color: var(--blue);
  font-weight: 600;
}

.sidebar-nav .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.main-content {
  flex: 1;
  padding: 2rem;
  overflow-x: hidden;
}

/* ─── Stats Cards ───────────────────────────────────────── */
.stat-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-change {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.stat-change.up {
  color: var(--green);
}

.stat-change.down {
  color: var(--red);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: rgba(30, 111, 255, 0.15);
  color: var(--blue-light);
}

.stat-icon.green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
}

.stat-icon.gold {
  background: var(--gold-subtle);
  color: var(--gold);
}

.stat-icon.red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
}

.stat-icon.purple {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple);
}

/* ─── Auction Cards ─────────────────────────────────────── */
.auction-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-slow);
  cursor: pointer;
}

.auction-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--shadow-blue);
}

.auction-card-img {
  height: 180px;
  object-fit: cover;
  width: 100%;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-border));
}

.auction-card-img-placeholder {
  height: 180px;
  background: linear-gradient(135deg, #111827, #1E2A45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.auction-card-body {
  padding: 1.25rem;
}

.auction-route {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.auction-route .iata {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.auction-route .arrow {
  color: var(--blue-light);
  font-size: 1rem;
}

.auction-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.auction-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}

.auction-price-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auction-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
}

.auction-countdown {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-light);
  background: var(--blue-subtle);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
}

.auction-countdown.urgent {
  color: var(--red);
  background: rgba(239, 68, 68, 0.1);
  animation: pulse 1s infinite;
}

/* ─── Live indicator ────────────────────────────────────── */
.live-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* ─── Map ───────────────────────────────────────────────── */
.map-container {
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--navy-border);
}

/* ─── Modal ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 560px;
  width: 100%;
  transform: translateY(20px);
  transition: transform 0.3s;
  box-shadow: var(--shadow-lg);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--navy-light);
  border: 1px solid var(--navy-border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.modal-close:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ─── Page Header ───────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 800;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

/* ─── Tabs ──────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--navy-light);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 0.25rem;
  margin-bottom: 1.5rem;
}

.tab-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: var(--transition);
  text-align: center;
}

.tab-btn.active {
  background: var(--blue);
  color: white;
  box-shadow: var(--shadow-blue);
}

.tab-btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* ─── Progress bar ──────────────────────────────────────── */
.progress {
  height: 6px;
  background: var(--navy-border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-bar.blue {
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
}

.progress-bar.gold {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.progress-bar.green {
  background: linear-gradient(90deg, #059669, var(--green));
}

/* ─── Animations ────────────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.animate-fade {
  animation: fadeIn 0.4s ease;
}

.animate-slide {
  animation: slideUp 0.4s ease;
}

.skeleton {
  background: linear-gradient(90deg, var(--navy-light) 25%, var(--navy-border) 50%, var(--navy-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ─── Divider ───────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--navy-border);
  margin: 1.5rem 0;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 1.5rem 0;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--navy-border);
}

/* ─── Utilities ─────────────────────────────────────────── */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rounded {
  border-radius: var(--radius);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-full {
  border-radius: 9999px;
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.sticky {
  position: sticky;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

.cursor-pointer {
  cursor: pointer;
}

.select-none {
  user-select: none;
}

.pointer-events-none {
  pointer-events: none;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* ─── Empty State ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.875rem;
}

/* ─── Dropdown ──────────────────────────────────────────── */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
}

.dropdown-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background: var(--blue-subtle);
  color: var(--text-primary);
}

.dropdown-item.danger {
  color: var(--red);
}

.dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.dropdown-divider {
  height: 1px;
  background: var(--navy-border);
  margin: 0.4rem 0;
}

/* ─── Ticker ────────────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  background: rgba(30, 111, 255, 0.06);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
  padding: 0.6rem 0;
}

.ticker-track {
  display: flex;
  gap: 3rem;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.ticker-item .price {
  color: var(--gold);
  font-weight: 700;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sidebar {
    display: none;
  }

  .main-content {
    padding: 1.5rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .navbar-nav {
    display: none;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-content {
    padding: 1rem;
  }
}
