/* ==========================================================================
   أُفُق للرحلات وحجوزات الطيران - Design System & Modern CSS
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #0A1026;
  --bg-navy-deep: #0D1636;
  --bg-card: rgba(22, 34, 68, 0.75);
  --bg-card-hover: rgba(30, 47, 92, 0.85);
  --glass-border: rgba(255, 255, 255, 0.12);
  
  --primary-cyan: #00E5FF;
  --primary-cyan-glow: rgba(0, 229, 255, 0.35);
  --accent-gold: #FFB703;
  --accent-gold-glow: rgba(255, 183, 3, 0.3);
  
  --whatsapp-green: #25D366;
  --whatsapp-hover: #1EBE5B;
  --whatsapp-glow: rgba(37, 211, 102, 0.4);
  
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --danger: #EF4444;
  --success: #10B981;
  --warning: #F59E0B;
  
  /* Typography */
  --font-family: 'Tajawal', 'Cairo', system-ui, -apple-system, sans-serif;

  /* Shadows & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 229, 255, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px var(--primary-cyan-glow);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 229, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(255, 183, 3, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(13, 22, 54, 0.5) 0%, transparent 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00E5FF 0%, #0088FF 100%);
  color: #050B14;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-whatsapp-header {
  background: rgba(37, 211, 102, 0.15);
  color: var(--whatsapp-green);
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-header:hover {
  background: var(--whatsapp-green);
  color: #050B14;
  box-shadow: 0 0 15px var(--whatsapp-glow);
}

.btn-whatsapp-full {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  padding: 12px 24px;
  font-size: 16px;
  box-shadow: 0 4px 15px var(--whatsapp-glow);
}

.btn-whatsapp-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.6);
  filter: brightness(1.1);
}

.btn-admin {
  background: rgba(255, 183, 3, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 183, 3, 0.3);
}

.btn-admin:hover {
  background: var(--accent-gold);
  color: #0A1026;
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

.btn-danger-outline {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-danger-outline:hover {
  background: var(--danger);
  color: #FFFFFF;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Header & Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 16, 38, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 0;
}

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

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

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-cyan) 0%, #0077FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0A1026;
  box-shadow: 0 0 15px var(--primary-cyan-glow);
}

.brand-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  display: block;
}

.brand-name .highlight {
  color: var(--primary-cyan);
}

.brand-tagline {
  font-size: 12px;
  color: var(--text-secondary);
  display: block;
  margin-top: -4px;
}

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

.currency-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  font-size: 13px;
  color: var(--text-secondary);
}

.currency-selector select {
  background: transparent;
  color: var(--text-primary);
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.currency-selector select option {
  background: var(--bg-navy-deep);
  color: var(--text-primary);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, rgba(10, 16, 38, 0.7) 0%, rgba(10, 16, 38, 0.95) 100%), url('hero_bg.jpg') center/cover no-repeat;
  border-bottom: 1px solid var(--glass-border);
}

.hero-title {
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
}

/* Search Box */
.search-box {
  padding: 30px;
  text-align: right;
}

.trip-types {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 16px;
}

.type-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.type-btn.active {
  background: rgba(0, 229, 255, 0.15);
  color: var(--primary-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.search-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr 1fr 1fr;
  gap: 16px;
  align-items: flex-end;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(10, 16, 38, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 10px var(--primary-cyan-glow);
}

.input-group select option {
  background: var(--bg-navy-deep);
  color: var(--text-primary);
}

.swap-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--primary-cyan);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.swap-btn:hover {
  background: var(--primary-cyan);
  color: #0A1026;
  transform: rotate(180deg);
}

.search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: 20px;
}

.filter-toggles {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.toggle-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  user-select: none;
}

.toggle-checkbox input {
  accent-color: var(--primary-cyan);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.price-slider-group {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.price-slider-group strong {
  color: var(--accent-gold);
  font-size: 15px;
}

.price-slider-group input[type="range"] {
  accent-color: var(--primary-cyan);
  cursor: pointer;
}

.search-actions {
  display: flex;
  gap: 12px;
}

/* Stats Banner */
.stats-banner {
  background: rgba(13, 22, 54, 0.5);
  border-y: 1px solid var(--glass-border);
  padding: 24px 0;
  margin-bottom: 40px;
}

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

.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-item i {
  color: var(--primary-cyan);
  width: 32px;
  height: 32px;
}

.stat-item h4 {
  font-size: 16px;
  font-weight: 700;
}

.stat-item p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Main Content & Results */
.main-content {
  flex: 1;
  padding-bottom: 60px;
}

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

.results-info h2 {
  font-size: 26px;
  font-weight: 800;
}

.results-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.sort-controls select {
  background: rgba(16, 31, 66, 0.8);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

/* Active Tags */
.active-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag-badge {
  background: rgba(0, 229, 255, 0.12);
  color: var(--primary-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tag-badge button {
  background: transparent;
  border: none;
  color: currentColor;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

/* Flight Cards List */
.flights-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.flight-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 24px;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.flight-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.flight-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-cyan) 0%, #0077FF 100%);
  opacity: 0.8;
}

.airline-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.airline-logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.airline-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
}

.airline-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.flight-number {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.flight-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}

.badge-gold {
  background: rgba(255, 183, 3, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 183, 3, 0.3);
}

.badge-cyan {
  background: rgba(0, 229, 255, 0.15);
  color: var(--primary-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

/* Route Timeline */
.route-timeline {
  display: grid;
  grid-template-columns: 1fr 140px 1fr;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.time-box h3 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.time-box p {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
}

.time-box span {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}

.route-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.duration-text {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.line-container {
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.line-bar {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--glass-border), var(--primary-cyan), var(--glass-border));
}

.plane-icon {
  color: var(--primary-cyan);
  transform: rotate(270deg);
}

.stops-text {
  font-size: 12px;
  font-weight: 700;
}

.stops-direct {
  color: var(--success);
}

.stops-connecting {
  color: var(--warning);
}

/* Price & Booking Actions */
.booking-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  border-right: 1px solid var(--glass-border);
  padding-right: 24px;
}

.price-box {
  text-align: left;
  direction: ltr;
}

.price-main {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-cyan);
}

.price-sub {
  font-size: 13px;
  color: var(--text-secondary);
  display: block;
}

.seats-left {
  font-size: 12px;
  color: var(--warning);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.card-actions .btn {
  width: 100%;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-lg);
  margin-top: 20px;
}

.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-modal-wide {
  max-width: 850px;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: var(--danger);
  color: #FFFFFF;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.modal-flight-code {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-cyan);
  background: rgba(0, 229, 255, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-section {
  background: rgba(10, 16, 38, 0.6);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.detail-section h4 {
  font-size: 15px;
  color: var(--primary-cyan);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  font-size: 14px;
}

.detail-item span {
  color: var(--text-secondary);
  display: block;
  font-size: 12px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  gap: 12px;
}

/* Admin Modal Specifics */
.admin-header {
  margin-bottom: 20px;
}

.admin-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-title i {
  color: var(--accent-gold);
  width: 36px;
  height: 36px;
}

.admin-title h3 {
  font-size: 22px;
}

.admin-title p {
  color: var(--text-secondary);
  font-size: 14px;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 24px;
}

.admin-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-tab.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

.admin-tab-content.hidden {
  display: none;
}

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

.form-group.full-width {
  grid-column: span 2;
}

.json-updater-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.json-hint {
  font-size: 14px;
  color: var(--text-secondary);
}

.json-updater-box textarea {
  width: 100%;
  background: rgba(10, 16, 38, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: #38BDF8;
  font-family: monospace;
  font-size: 13px;
  padding: 16px;
  outline: none;
}

.json-actions, .settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.settings-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-navy-deep);
  color: var(--text-primary);
  border: 1px solid var(--primary-cyan);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastIn 0.3s ease;
  font-weight: 600;
  font-size: 14px;
}

@keyframes toastIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
  text-decoration: none;
  transition: all 0.3s;
}

.floating-whatsapp i {
  width: 30px;
  height: 30px;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.7);
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--whatsapp-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Footer */
.footer {
  background: rgba(5, 11, 20, 0.95);
  border-top: 1px solid var(--glass-border);
  padding: 50px 0 0;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand h3 {
  font-size: 20px;
  color: var(--primary-cyan);
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-links h4, .footer-contact h4 {
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-cyan);
}

.footer-contact p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.4);
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Responsive Mobile-First Optimization (تحسينات الاستجابة الكاملة للموبايل)
   ========================================================================== */

@media (max-width: 992px) {
  .search-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .swap-btn {
    display: flex;
    margin: 0 auto;
  }

  .flight-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .booking-section {
    border-right: none;
    border-top: 1px solid var(--glass-border);
    padding-right: 0;
    padding-top: 16px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .card-actions {
    width: 100%;
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }

  .navbar {
    padding: 10px 0;
  }

  .nav-container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .brand {
    justify-content: center;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .currency-selector {
    padding: 4px 8px;
  }

  .btn-whatsapp-header {
    flex: 1;
    font-size: 13px;
    padding: 8px 12px;
    justify-content: center;
  }

  .hero-section {
    padding: 35px 0 25px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.35;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .search-box {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .trip-types {
    justify-content: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .type-btn {
    font-size: 13px;
    padding: 6px 12px;
  }

  .search-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .swap-btn {
    width: 38px;
    height: 38px;
    margin: -4px auto;
  }

  .input-group label {
    font-size: 12px;
  }

  .input-group input,
  .input-group select {
    padding: 10px 12px;
    font-size: 14px;
  }

  .search-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 16px;
    padding-top: 14px;
  }

  .filter-toggles {
    justify-content: space-between;
    gap: 10px;
  }

  .search-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .search-actions .btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
  }

  .stats-banner {
    padding: 16px 0;
    margin-bottom: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .stat-item {
    gap: 8px;
  }

  .stat-item h4 {
    font-size: 13px;
  }

  .stat-item p {
    font-size: 11px;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .results-info h2 {
    font-size: 20px;
  }

  .sort-controls {
    width: 100%;
    justify-content: space-between;
  }

  .sort-controls select {
    flex: 1;
  }

  /* Flight Card Mobile Styling */
  .flight-card {
    padding: 16px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .airline-info {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .airline-name {
    font-size: 15px;
  }

  .flight-number {
    font-size: 12px;
  }

  .route-timeline {
    grid-template-columns: 1fr 100px 1fr;
    gap: 6px;
  }

  .time-box h3 {
    font-size: 20px;
  }

  .time-box p {
    font-size: 12px;
  }

  .time-box span {
    font-size: 10px;
  }

  .duration-text {
    font-size: 10px;
  }

  .booking-section {
    border-right: none;
    border-top: 1px dashed var(--glass-border);
    padding-right: 0;
    padding-top: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    direction: rtl;
  }

  .price-main {
    font-size: 22px;
  }

  .seats-left {
    font-size: 12px;
    justify-content: flex-start;
  }

  .card-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .btn-whatsapp-full {
    width: 100%;
    font-size: 16px;
    padding: 14px;
    border-radius: 12px;
    justify-content: center;
  }

  .floating-whatsapp {
    bottom: 20px;
    left: 16px;
    width: 52px;
    height: 52px;
  }

  .floating-whatsapp i {
    width: 26px;
    height: 26px;
  }

  .modal-card {
    padding: 18px;
    max-height: 95vh;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

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

  .time-box h3 {
    font-size: 18px;
  }

  .price-main {
    font-size: 20px;
  }
}

