@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700;800&display=swap");
:root,
.eth {
  /* ── CORE BRAND ── */
  --eth-midnight: #270015;
  --eth-midnight-light: #3A0A25;
  --eth-midnight-lighter: #4D1535;
  --eth-gold: #C4921B;
  --eth-gold-hover: #D4A22B;
  --eth-gold-light: rgba(196, 146, 27, 0.12);
  --eth-gold-dark: #A07815;
  --eth-pearl: #FCFBF5;
  --eth-white: #FFFFFF;

  /* ── EXTENDED WARM PALETTE ── */
  --eth-sand: #F1E2C6;
  --eth-sand-dark: #C6B7A0;
  --eth-warm-gold: #DB9336;
  --eth-copper: #72534E;
  --eth-peach: #FDE7D6;
  --eth-desert: #92643C;

  /* ── TEXT ── */
  --eth-text: #270015;
  --eth-text-secondary: #4D1535;
  --eth-text-muted: #72534E;
  --eth-text-on-dark: #FFFFFF;
  --eth-text-on-dark-muted: rgba(255, 255, 255, 0.6);
  --eth-text-gold: #C4921B;

  /* ── BORDERS ── */
  --eth-border: rgba(39, 0, 21, 0.12);
  --eth-border-dark: rgba(255, 255, 255, 0.12);
  --eth-border-gold: rgba(196, 146, 27, 0.3);

  /* ── TYPOGRAPHY ── */
  /* Etihad Altis approximated with DM Sans (humanistic sans) */
  --eth-font: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --eth-text-xs: 400 0.75rem/1.5 var(--eth-font);
  --eth-text-sm: 400 0.875rem/1.6 var(--eth-font);
  --eth-text-base: 400 1rem/1.6 var(--eth-font);
  --eth-text-md: 500 1.125rem/1.5 var(--eth-font);
  --eth-text-lg: 600 1.25rem/1.3 var(--eth-font);
  --eth-text-xl: 700 1.5rem/1.2 var(--eth-font);
  --eth-text-2xl: 700 1.875rem/1.15 var(--eth-font);
  --eth-text-3xl: 700 2.25rem/1.1 var(--eth-font);
  --eth-text-4xl: 800 3rem/1.05 var(--eth-font);
  --eth-text-5xl: 800 4rem/1.0 var(--eth-font);
  --eth-label: 500 0.6875rem/1.2 var(--eth-font);
  --eth-overline: 600 0.6875rem/1.2 var(--eth-font);

  /* ── SPACING ── */
  --eth-space-1: 4px;
  --eth-space-2: 8px;
  --eth-space-3: 12px;
  --eth-space-4: 16px;
  --eth-space-6: 24px;
  --eth-space-8: 32px;
  --eth-space-10: 40px;
  --eth-space-12: 48px;
  --eth-space-16: 64px;
  --eth-space-20: 80px;

  /* ── RADIUS ── */
  --eth-radius-sm: 6px;
  --eth-radius-md: 12px;
  --eth-radius-lg: 16px;
  --eth-radius-xl: 24px;
  --eth-radius-full: 9999px;

  /* ── SHADOWS ── */
  --eth-shadow-sm: 0 1px 4px rgba(39, 0, 21, 0.08);
  --eth-shadow-md: 0 4px 16px rgba(39, 0, 21, 0.1);
  --eth-shadow-lg: 0 8px 32px rgba(39, 0, 21, 0.14);
  --eth-shadow-gold: 0 4px 20px rgba(196, 146, 27, 0.2);

  /* ── MOTION ── */
  --eth-duration-fast: 150ms;
  --eth-duration-normal: 250ms;
  --eth-duration-slow: 500ms;
  --eth-easing: cubic-bezier(0.25, 0, 0, 1);
  --eth-focus-ring: 2px solid var(--eth-gold);
  --eth-focus-offset: 2px;
}

/* ══════════════════════════════════════════════
   BUTTON
   ══════════════════════════════════════════════ */
.eth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: var(--eth-text-base);
  font-weight: 600;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: var(--eth-radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--eth-duration-normal) var(--eth-easing);
  white-space: nowrap;
}
.eth-btn:active { transform: translateY(1px); }
.eth-btn:focus-visible { outline: var(--eth-focus-ring); outline-offset: var(--eth-focus-offset); }
.eth-btn--gold {
  background: var(--eth-gold);
  color: var(--eth-midnight);
}
.eth-btn--gold:hover { background: var(--eth-gold-hover); box-shadow: var(--eth-shadow-gold); }
.eth-btn--midnight {
  background: var(--eth-midnight);
  color: var(--eth-text-on-dark);
}
.eth-btn--midnight:hover { background: var(--eth-midnight-light); }
.eth-btn--white {
  background: var(--eth-white);
  color: var(--eth-midnight);
}
.eth-btn--white:hover { background: var(--eth-pearl); }
.eth-btn--ghost {
  background: transparent;
  color: var(--eth-text-on-dark);
  border-color: rgba(255, 255, 255, 0.3);
}
.eth-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); }
.eth-btn--ghost-dark {
  background: transparent;
  color: var(--eth-midnight);
  border-color: var(--eth-border);
}
.eth-btn--ghost-dark:hover { border-color: var(--eth-midnight); }
.eth-btn--sm { padding: 10px 20px; font-size: 0.875rem; }
.eth-btn--lg { padding: 18px 36px; font-size: 1.125rem; }
.eth-btn--block { width: 100%; }
.eth-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ══════════════════════════════════════════════
   CARD
   ══════════════════════════════════════════════ */
.eth-card {
  background: var(--eth-white);
  border-radius: var(--eth-radius-lg);
  overflow: hidden;
  transition: box-shadow var(--eth-duration-normal) var(--eth-easing);
}
.eth-card:hover { box-shadow: var(--eth-shadow-lg); }
.eth-card--dark { background: var(--eth-midnight); color: var(--eth-text-on-dark); }
.eth-card--pearl { background: var(--eth-pearl); }
.eth-card--gold { background: var(--eth-gold); color: var(--eth-midnight); }
.eth-card--raised { box-shadow: var(--eth-shadow-md); }
.eth-card__media { width: 100%; overflow: hidden; position: relative; }
.eth-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eth-card__body { padding: 24px; }
.eth-card__pretitle {
  font: var(--eth-overline);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--eth-gold);
  margin-bottom: 8px;
  display: block;
}
.eth-card--dark .eth-card__pretitle { color: var(--eth-gold); }
.eth-card__title {
  font: var(--eth-text-xl);
  margin: 0 0 8px;
  color: var(--eth-midnight);
}
.eth-card--dark .eth-card__title { color: var(--eth-text-on-dark); }
.eth-card__description {
  font: var(--eth-text-sm);
  color: var(--eth-text-muted);
  margin: 0;
}
.eth-card--dark .eth-card__description { color: var(--eth-text-on-dark-muted); }
.eth-card__action {
  font: var(--eth-text-base);
  font-weight: 600;
  color: var(--eth-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}
.eth-card__action:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════
   INPUT
   ══════════════════════════════════════════════ */
.eth-input {
  font: var(--eth-text-base);
  padding: 14px 16px;
  background: var(--eth-white);
  border: 1.5px solid var(--eth-border);
  border-radius: var(--eth-radius-md);
  color: var(--eth-text);
  transition: border-color var(--eth-duration-normal) var(--eth-easing);
  width: 100%;
  box-sizing: border-box;
}
.eth-input::placeholder { color: var(--eth-text-muted); }
.eth-input:focus { outline: none; border-color: var(--eth-gold); box-shadow: 0 0 0 3px var(--eth-gold-light); }
.eth-input--dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--eth-border-dark);
  color: var(--eth-text-on-dark);
}
.eth-input--dark::placeholder { color: rgba(255, 255, 255, 0.35); }
.eth-input--dark:focus { border-color: var(--eth-gold); }
.eth-input--pearl {
  background: var(--eth-pearl);
  border-color: transparent;
}
.eth-input--pearl:focus { border-color: var(--eth-gold); }
.eth-input-label {
  font: var(--eth-label);
  color: var(--eth-text-muted);
  display: block;
  margin-bottom: 6px;
}
.eth-input-label--dark { color: var(--eth-text-on-dark-muted); }

/* ══════════════════════════════════════════════
   SELECT
   ══════════════════════════════════════════════ */
.eth-select {
  font: var(--eth-text-base);
  padding: 14px 40px 14px 16px;
  background: var(--eth-white);
  border: 1.5px solid var(--eth-border);
  border-radius: var(--eth-radius-md);
  color: var(--eth-text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2372534E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color var(--eth-duration-normal) var(--eth-easing);
}
.eth-select:focus { outline: none; border-color: var(--eth-gold); box-shadow: 0 0 0 3px var(--eth-gold-light); }

/* ══════════════════════════════════════════════
   BADGE / CHIP
   ══════════════════════════════════════════════ */
.eth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: var(--eth-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: var(--eth-radius-full);
  background: var(--eth-pearl);
  color: var(--eth-text);
}
.eth-badge--gold {
  background: var(--eth-gold-light);
  color: var(--eth-gold-dark);
}
.eth-badge--dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--eth-text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.eth-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: var(--eth-label);
  padding: 8px 16px;
  border-radius: var(--eth-radius-full);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--eth-text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.eth-chip--active {
  background: var(--eth-gold);
  color: var(--eth-midnight);
  border-color: transparent;
}

/* ══════════════════════════════════════════════
   ALERT
   ══════════════════════════════════════════════ */
.eth-alert {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--eth-radius-md);
  border: 1px solid var(--eth-border);
  background: var(--eth-white);
}
.eth-alert--dark {
  background: var(--eth-midnight-light);
  border-color: var(--eth-border-dark);
}
.eth-alert--gold {
  background: var(--eth-gold-light);
  border-color: var(--eth-border-gold);
}
.eth-alert__icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--eth-gold); }
.eth-alert__title {
  font: var(--eth-text-md);
  font-weight: 700;
  color: var(--eth-text);
  margin: 0 0 4px;
}
.eth-alert--dark .eth-alert__title { color: var(--eth-text-on-dark); }
.eth-alert__body { font: var(--eth-text-sm); color: var(--eth-text-muted); }
.eth-alert--dark .eth-alert__body { color: var(--eth-text-on-dark-muted); }

/* ══════════════════════════════════════════════
   TABS
   ══════════════════════════════════════════════ */
.eth-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.eth-tab {
  font: var(--eth-text-sm);
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--eth-radius-full);
  background: transparent;
  color: var(--eth-text-muted);
  border: 1.5px solid var(--eth-border);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--eth-duration-fast) var(--eth-easing);
}
.eth-tab:hover { border-color: var(--eth-midnight); color: var(--eth-text); }
.eth-tab--active {
  background: var(--eth-midnight);
  color: var(--eth-text-on-dark);
  border-color: var(--eth-midnight);
}
.eth-tab--dark {
  color: var(--eth-text-on-dark-muted);
  border-color: var(--eth-border-dark);
}
.eth-tab--dark:hover { border-color: rgba(255,255,255,0.4); color: var(--eth-text-on-dark); }
.eth-tab--dark.eth-tab--active {
  background: var(--eth-gold);
  color: var(--eth-midnight);
  border-color: var(--eth-gold);
}

/* ══════════════════════════════════════════════
   ACCORDION
   ══════════════════════════════════════════════ */
.eth-accordion-item {
  border-bottom: 1px solid var(--eth-border);
  padding: 18px 0;
}
.eth-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font: var(--eth-text-md);
  font-weight: 600;
  color: var(--eth-text);
}
.eth-accordion-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--eth-duration-normal) var(--eth-easing);
  color: var(--eth-gold);
}
.eth-accordion-body {
  font: var(--eth-text-sm);
  color: var(--eth-text-muted);
  padding-top: 12px;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════
   STAT COUNTER
   ══════════════════════════════════════════════ */
.eth-stat {
  text-align: center;
}
.eth-stat__number {
  font: var(--eth-text-5xl);
  color: var(--eth-gold);
}
.eth-stat__label {
  font: var(--eth-text-sm);
  color: var(--eth-text-muted);
  margin-top: 4px;
}

/* ══════════════════════════════════════════════
   STEPPER (flow indicator)
   ══════════════════════════════════════════════ */
.eth-stepper {
  display: flex;
  align-items: center;
  gap: 0;
}
.eth-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font: var(--eth-text-sm);
  font-weight: 500;
  color: var(--eth-text-muted);
}
.eth-step--active { color: var(--eth-gold); font-weight: 700; }
.eth-step--done { color: var(--eth-text); }
.eth-step__circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 0.75rem/1 var(--eth-font);
  border: 2px solid var(--eth-border);
  color: var(--eth-text-muted);
  background: var(--eth-white);
}
.eth-step--active .eth-step__circle {
  background: var(--eth-gold);
  border-color: var(--eth-gold);
  color: var(--eth-midnight);
}
.eth-step--done .eth-step__circle {
  background: var(--eth-midnight);
  border-color: var(--eth-midnight);
  color: var(--eth-text-on-dark);
}
.eth-step__line {
  width: 40px;
  height: 2px;
  background: var(--eth-border);
  margin: 0 8px;
}
.eth-step--done + .eth-step__line,
.eth-step--active ~ .eth-step__line { background: var(--eth-gold); }

/* ══════════════════════════════════════════════
   SEAT MAP
   ══════════════════════════════════════════════ */
.eth-seat {
  width: 32px;
  height: 32px;
  border-radius: 6px 6px 4px 4px;
  border: 1.5px solid var(--eth-border);
  background: var(--eth-white);
  cursor: pointer;
  transition: all var(--eth-duration-fast) var(--eth-easing);
  font: 600 0.6rem/1 var(--eth-font);
  color: var(--eth-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.eth-seat:hover { border-color: var(--eth-gold); }
.eth-seat--selected { background: var(--eth-gold); border-color: var(--eth-gold); color: var(--eth-midnight); }
.eth-seat--business { background: var(--eth-peach); border-color: var(--eth-sand-dark); }
.eth-seat--unavailable { background: var(--eth-pearl); border-color: transparent; color: transparent; cursor: not-allowed; opacity: 0.4; }
.eth-seat--extra-leg { background: #E8F5E9; border-color: #81C784; }

/* ══════════════════════════════════════════════
   FLIGHT RESULT ROW
   ══════════════════════════════════════════════ */
.eth-flight-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: var(--eth-white);
  border: 1.5px solid var(--eth-border);
  border-radius: var(--eth-radius-lg);
  transition: border-color var(--eth-duration-normal) var(--eth-easing);
}
.eth-flight-row:hover { border-color: var(--eth-gold); box-shadow: var(--eth-shadow-md); }
.eth-flight-row--selected { border-color: var(--eth-gold); box-shadow: 0 0 0 3px var(--eth-gold-light); }

/* ══════════════════════════════════════════════
   BOARDING PASS
   ══════════════════════════════════════════════ */
.eth-boarding-pass {
  background: var(--eth-midnight);
  border-radius: var(--eth-radius-xl);
  padding: 32px;
  color: var(--eth-text-on-dark);
  position: relative;
  overflow: hidden;
}
.eth-boarding-pass::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(196,146,27,0.15) 0%, transparent 70%);
}

/* ══════════════════════════════════════════════
   PROGRESS BAR
   ══════════════════════════════════════════════ */
.eth-progress {
  width: 100%;
  height: 4px;
  background: var(--eth-border);
  border-radius: 2px;
  overflow: hidden;
}
.eth-progress__bar {
  height: 100%;
  background: var(--eth-gold);
  border-radius: 2px;
  transition: width var(--eth-duration-slow) var(--eth-easing);
}

/* ══════════════════════════════════════════════
   DIVIDER
   ══════════════════════════════════════════════ */
.eth-divider {
  border: none;
  height: 1px;
  background: var(--eth-border);
  margin: 24px 0;
}
.eth-divider--dark { background: var(--eth-border-dark); }
.eth-divider--gold { background: var(--eth-border-gold); }
