:root {
  --navy-blue: #0A192F;
  --navy-light: #112240;
  --navy-lighter: #233554;
  --gold: #D4AF37;
  --gold-light: #F1D471;
  --white: #FFFFFF;
  --gray-light: #F8F9FA;
  --gray-medium: #8892B0;
  --gray-dark: #333333;
  --success: #10B981;
  --error: #EF4444;
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--navy-blue);
  background-color: var(--gray-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo i {
  color: var(--gold);
  font-size: 28px;
  transform: rotate(-45deg);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-container input {
  padding: 10px 15px 10px 35px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  width: 250px;
  transition: all 0.3s ease;
}

.search-container input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.search-container input::placeholder {
  color: rgba(255,255,255,0.6);
}

.search-container i {
  position: absolute;
  left: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

/* Page Header (for subpages) */
.page-header {
  height: 40vh;
  min-height: 300px;
  background: var(--navy-light);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  margin-top: 0;
  color: var(--white);
}



.page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-header-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  animation: fadeIn 1s ease;
  margin-top: 50px; /* offset navbar */
}

.page-header h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.page-header p {
  font-size: 18px;
  color: #E2E8F0;
  font-weight: 400;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: var(--navy-blue);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  margin-top: 0;
}



.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  color: var(--white);
  animation: fadeIn 1.5s ease;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 20px;
  margin-bottom: 40px;
  color: #E2E8F0;
  font-weight: 400;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #B48B22 100%);
  color: var(--navy-blue);
  padding: 16px 40px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(212, 175, 55, 0.4);
}

/* Tracking Tool Section */
.track-section {
  padding: 80px 20px;
  background-color: var(--gray-light);
  position: relative;
  z-index: 20;
  margin-top: -80px;
}

.track-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-top: 5px solid var(--gold);
}

.track-container h2 {
  text-align: center;
  color: var(--navy-blue);
  font-size: 32px;
  margin-bottom: 10px;
}

.track-container > p {
  text-align: center;
  color: var(--gray-medium);
  margin-bottom: 40px;
}

.track-form {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.input-wrapper {
  flex: 1;
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-medium);
  font-size: 20px;
}

.track-input {
  width: 100%;
  padding: 18px 20px 18px 55px;
  font-size: 16px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  background: var(--gray-light);
}

.track-input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.btn-track {
  background: var(--navy-blue);
  color: var(--white);
  border: none;
  padding: 0 40px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 250px;
}

.btn-track:hover {
  background: var(--navy-lighter);
}

.btn-track:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.loader {
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top: 3px solid var(--white);
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-msg {
  display: none;
  background: #FEE2E2;
  color: var(--error);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid #FCA5A5;
}

.result-card {
  display: none;
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 30px;
  margin-top: 20px;
  animation: slideUp 0.5s ease forwards;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #E5E7EB;
}

.status-badge {
  background: var(--success);
  color: var(--white);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.flight-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.route-point {
  text-align: center;
  flex: 1;
}

.route-code {
  font-size: 40px;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--navy-blue);
}

.route-city {
  font-size: 14px;
  color: var(--gray-medium);
  font-weight: 600;
}

.route-divider {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 20px;
}

.route-divider::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gray-medium) 0%, var(--gray-medium) 50%, transparent 50%, transparent 100%);
  background-size: 10px 2px;
  z-index: 1;
}

.route-divider i {
  background: var(--white);
  padding: 0 10px;
  color: var(--gold);
  font-size: 24px;
  z-index: 2;
  transform: rotate(90deg);
}

.flight-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--gray-light);
  padding: 20px;
  border-radius: 12px;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 12px;
  color: var(--gray-medium);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 5px;
}

.detail-value {
  font-size: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-blue);
}

/* Live Flight Status */
.live-flights {
  padding: 80px 40px;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  color: var(--navy-blue);
  margin-bottom: 15px;
}

.section-header p {
  color: var(--gray-medium);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.live-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.sample-flights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sample-flight-card {
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--navy-blue);
}

.sample-flight-card:nth-child(2) { border-left-color: var(--gold); }
.sample-flight-card:nth-child(3) { border-left-color: var(--success); }
.sample-flight-card:nth-child(4) { border-left-color: #3B82F6; }

.sample-flight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.s-flight-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-family: var(--font-heading);
  font-weight: 700;
}

.s-flight-airline {
  color: var(--navy-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.s-flight-status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(10, 25, 47, 0.1);
  color: var(--navy-blue);
}

.status-in-air { background: #DBEAFE; color: #1E40AF; }
.status-on-time { background: #FEF3C7; color: #92400E; }
.status-landed { background: #D1FAE5; color: #065F46; }
.status-delayed { background: #FEE2E2; color: #991B1B; }

.s-flight-route {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-lighter);
  margin-bottom: 10px;
}

.s-flight-route i { color: var(--gold); }

.s-flight-time {
  font-size: 14px;
  color: var(--gray-medium);
}

/* Map Animation */
.map-container {
  position: relative;
  width: 100%;
  height: 400px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 500"><path fill="%23E2E8F0" d="M150,150 Q200,100 300,120 T500,100 T700,150 T850,200 Q900,250 850,300 T600,350 T400,300 T150,200 Z"/></svg>') center/contain no-repeat;
  border-radius: 20px;
  overflow: hidden;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.animated-plane {
  position: absolute;
  top: 40%;
  left: -10%;
  font-size: 24px;
  color: var(--navy-blue);
  filter: drop-shadow(0 5px 5px rgba(0,0,0,0.2));
  animation: flyAcross 15s linear infinite;
  z-index: 5;
}

.animated-plane::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  width: 100px;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(10, 25, 47, 0.3));
  transform: translateY(-50%);
}

@keyframes flyAcross {
  0% { left: -10%; transform: translateY(50px) rotate(15deg); }
  25% { left: 20%; transform: translateY(0px) rotate(5deg); }
  50% { left: 50%; transform: translateY(30px) rotate(10deg); }
  75% { left: 80%; transform: translateY(-20px) rotate(0deg); }
  100% { left: 110%; transform: translateY(10px) rotate(15deg); }
}

/* Featured Airlines & Airports */
.featured-section {
  padding: 80px 40px;
  background: var(--navy-blue);
  color: var(--white);
  text-align: center;
}

.featured-section h2 { margin-bottom: 20px; font-size: 32px; }
.featured-section > p { color: var(--gray-medium); margin-bottom: 50px; font-size: 18px; }

.airline-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  opacity: 0.8;
}

.airline-logo-item {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.airline-logo-item:hover {
  color: var(--gold);
  transform: scale(1.05);
}

/* Base Grids */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}

.airports-section {
  padding: 80px 40px;
  background: var(--gray-light);
}

.airport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.airport-card {
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.airport-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.airport-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 40%, rgba(10, 25, 47, 0.9) 100%);
}

.airport-card:hover img {
  transform: scale(1.1);
}

.airport-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 10;
  color: var(--white);
}

.airport-info h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

.airport-info p {
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
}

/* How It Works */
.how-it-works {
  padding: 80px 40px;
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.step-item {
  text-align: center;
  padding: 30px;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px auto;
  transition: all 0.3s ease;
}

.step-item:hover .step-icon {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.step-item h3 {
  color: var(--navy-blue);
  margin-bottom: 15px;
  font-size: 20px;
}

.step-item p { color: var(--gray-medium); }

/* Testimonials */
.testimonials {
  padding: 80px 40px;
  background: var(--gray-light);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.testi-card {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  position: relative;
}

.testi-card i.fa-quote-left {
  position: absolute;
  top: 30px;
  left: 30px;
  font-size: 40px;
  color: rgba(212, 175, 55, 0.1);
}

.testi-content {
  font-size: 18px;
  font-style: italic;
  color: var(--navy-lighter);
  margin-bottom: 20px;
  position: relative;
  z-index: 10;
  line-height: 1.8;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testi-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--navy-blue);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
}

.testi-info h4 { color: var(--navy-blue); margin-bottom: 2px; }
.testi-info p { font-size: 12px; color: var(--gray-medium); text-transform: uppercase; font-weight: 600; }

/* Contact Specific */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--navy-blue);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-family: var(--font-body);
  transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(10, 25, 47, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 20px;
  flex-shrink: 0;
}

/* Footer */
.footer {
  background: var(--navy-light);
  color: var(--white);
  padding: 60px 40px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 20px; }
.footer-brand p { color: var(--gray-medium); margin-bottom: 20px; max-width: 300px; }

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--gold);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  color: var(--gray-medium);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  color: var(--gray-medium);
  font-size: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Responsive */
@media (max-width: 992px) {
  .live-layout, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 42px; }
  .page-header h1 { font-size: 36px; }
}

@media (max-width: 768px) {
  .navbar { padding: 15px 20px; }
  .search-container { display: none; }
  .track-form { flex-direction: column; }
  .flight-details-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid, .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .map-container { height: 250px; }
  
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: var(--navy-blue);
    flex-direction: column;
    padding: 20px 0;
    gap: 20px;
    display: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  }
  .nav-links.active {
    display: flex;
  }
}


/* Carousel Background */
.bg-slider {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
}
.bg-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: bgFade 16s infinite linear;
}
.bg-slider::after {
  content: '';
  position: absolute;
  top:0; left:0; width:100%; height:100%;
  background: rgba(10, 25, 47, 0.65);
  z-index: 1;
}
.bg-slide:nth-child(1) { animation-delay: 0s; }
.bg-slide:nth-child(2) { animation-delay: 4s; }
.bg-slide:nth-child(3) { animation-delay: 8s; }
.bg-slide:nth-child(4) { animation-delay: 12s; }

@keyframes bgFade {
  0% { opacity: 0; transform: scale(1); }
  10% { opacity: 1; transform: scale(1.02); }
  25% { opacity: 1; transform: scale(1.05); }
  35% { opacity: 0; transform: scale(1.07); }
  100% { opacity: 0; transform: scale(1.07); }
}

/* Removed duplicate mobile menu query, now unified above bg slider. */

/* Modal & Premium Ticket Styles */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 25, 47, 0.85); backdrop-filter: blur(8px);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease; padding: 20px;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.ticket-modal {
  background: var(--gray-light); width: 100%; max-width: 850px; max-height: 90vh;
  border-radius: 20px; overflow-y: auto; position: relative;
  transform: translateY(30px) scale(0.95); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}
.modal-overlay.active .ticket-modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 20px; right: 20px; font-size: 20px; color: var(--white);
  cursor: pointer; z-index: 100; background: rgba(0,0,0,0.2); width: 36px; height: 36px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.modal-close:hover { background: var(--error); transform: rotate(90deg); }

/* Ticket Inner */
.ticket-header {
  background: var(--navy-blue); color: var(--white); padding: 25px 35px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 4px solid var(--gold);
}
.th-logo { font-family: var(--font-heading); font-size: 22px; font-weight: 800; display:flex; gap:10px; align-items:center; }
.th-logo i { color: var(--gold); transform: rotate(-45deg); }
.ticket-wrapper { padding: 35px; background: var(--white); }

/* Passenger Info */
.passenger-section { background: var(--gray-light); border: 1px solid #E5E7EB; border-radius: 12px; padding: 20px; }
.p-row { display: flex; gap: 20px; }
.p-col { flex: 1; }
.p-label { display: block; font-size: 11px; text-transform: uppercase; color: var(--gray-medium); font-weight: 700; margin-bottom: 4px; }
.p-value { display: block; font-size: 16px; font-family: var(--font-heading); color: var(--navy-blue); font-weight: 800; }

/* Flight Legs */
.leg-section { border: 1px solid #E5E7EB; border-radius: 12px; padding: 25px; background: var(--white); margin-bottom: 20px; position:relative; overflow:hidden;}
.leg-section::before { content:''; position:absolute; top:0; left:0; width:6px; height:100%; background:var(--gold); }
.leg-title { font-size: 18px; color: var(--navy-blue); margin-bottom: 20px; display:flex; justify-content:space-between; align-items:center; border-bottom: 1px solid #eee; padding-bottom:15px; }
.leg-fl { background: rgba(212, 175, 55, 0.1); color: var(--gold); padding: 4px 12px; border-radius: 20px; font-size: 14px; }
.leg-grid { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.lg-time { flex: 1; }
.lg-time:last-child { text-align: right; }
.lg-icon { flex: 1; text-align: center; position: relative; }
.lg-icon::before { content:''; position:absolute; top:50%; left:-10%; width:40%; height:2px; background: #eee; }
.lg-icon::after { content:''; position:absolute; top:50%; right:-10%; width:40%; height:2px; background: #eee; }
.lg-icon i { font-size: 30px; color: var(--gold); background:#fff; padding:0 10px; position:relative; z-index:2; transform: rotate(90deg); }
.leg-meta { display: flex; gap: 30px; background: var(--gray-light); padding: 12px 20px; border-radius: 8px; font-size: 14px; color: var(--navy-blue); }
.leg-meta i { color: var(--gold); width: 20px; }

/* Layover Box */
.layover-box { background: rgba(10, 25, 47, 0.03); border: 1px dashed var(--gray-medium); border-radius: 12px; padding: 15px 25px; margin-bottom: 20px; text-align: center; }

/* Summary */
.journey-summary { background: var(--navy-blue); color: var(--white); padding: 30px; border-radius: 12px; margin-top: 30px; }
.journey-summary h4 { color: var(--gold); margin-bottom: 20px; font-size: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.js-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.js-label { font-size: 11px; text-transform: uppercase; color: rgba(255,255,255,0.6); font-weight: 600; }
.js-val { font-size: 16px; font-family: var(--font-heading); font-weight: 700; color: var(--white); margin-top:5px; display:inline-block; }

@media (max-width: 768px) {
  .p-row { flex-direction: column; gap: 15px; }
  .p-row[style] { margin-top: 15px !important; }
  .ticket-wrapper { padding: 20px; }
  .js-grid { grid-template-columns: 1fr 1fr; }
  .leg-grid { display: grid; grid-template-columns: 1fr; gap: 15px; text-align: center; }
  .lg-icon { transform: rotate(90deg); margin: 15px 0; }
  .lg-time:last-child { text-align: center; }
  .leg-meta { flex-direction: column; gap: 10px; }
  .leg-title { flex-direction: column; gap: 10px; text-align: center; }
}
