/* Flight Ticket System - Premium UI */

:root {
  --primary: #0f172a;
  --primary-600: #1e293b;
  --primary-500: #334155;
  /* Brand / Accent */
  --accent: #009;
  --accent-2: #ff6423;
  --accent-3: #06b6d4;
  --accent-hover: #000077;
  --accent-light: #dbeafe;
  --accent-glow: rgba(0, 0, 153, 0.18);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 110%);
  --gradient-primary: linear-gradient(135deg, #0b1224 0%, #122a46 55%, #1d4ed8 115%);
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --gold: #f59e0b;
  --warning: #f59e0b;
  --info: #06b6d4;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.1), 0 4px 16px rgba(0,0,0,.06);
  --transition: all .2s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14.5px;
  color: var(--gray-800);
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(37,99,235,.12) 0%, transparent 65%),
    radial-gradient(900px 500px at 90% 10%, rgba(124,58,237,.10) 0%, transparent 60%),
    radial-gradient(900px 700px at 60% 100%, rgba(6,182,212,.10) 0%, transparent 55%),
    var(--gray-100);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.dashboard-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0,0,153,.08), transparent),
    radial-gradient(900px 400px at 100% 0%, rgba(255,100,35,.06), transparent 55%),
    var(--gray-100);
}

/* Global links (dashboard/table actions, etc.) */
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* Focus ring (keyboard accessibility) */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* ─── Login (split hero + form) ─── */
.login-page {
  min-height: 100vh;
  margin: 0;
  background: var(--gray-100);
  overflow-x: hidden;
}

.login-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(360px, 0.95fr);
}

.login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(28px, 5vw, 64px);
  color: #fff;
  overflow: hidden;
  background: var(--gradient-primary);
}

.login-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 15% 20%, rgba(0, 0, 153, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 85% 75%, rgba(255, 100, 35, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 60% 10%, rgba(6, 182, 212, 0.22) 0%, transparent 50%);
  pointer-events: none;
}

.login-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.login-hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.login-hero-logo {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  background: var(--gradient-accent);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 153, 0.35);
  flex-shrink: 0;
}
.login-hero-brand strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.login-hero-brand span {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.03em;
}

.login-hero-title {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.login-hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, #fff 0%, #ffd4c2 55%, #ff6423 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-hero-lead {
  margin: 0 0 28px;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 440px;
}

.login-hero-features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-hero-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.login-feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  flex-shrink: 0;
}

.login-hero-support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.login-hero-support-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  width: 100%;
}
.login-hero-support a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.login-hero-support a:hover { color: #fff; text-decoration: underline; }

.login-ticket-mock {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  bottom: clamp(32px, 6vh, 72px);
  z-index: 1;
  pointer-events: none;
}
.login-ticket-mock-card {
  width: min(280px, 34vw);
  background: rgba(255, 255, 255, 0.97);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  color: var(--gray-800);
  transform: rotate(-4deg);
}
.login-ticket-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #000099, #1e40af);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}
.login-ticket-mock-pnr {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.04em;
}
.login-ticket-mock-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 18px 16px 14px;
  text-align: center;
}
.login-ticket-mock-route strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.login-ticket-mock-route small {
  display: block;
  font-size: 0.68rem;
  color: var(--gray-500);
  margin-top: 2px;
}
.login-ticket-mock-plane {
  font-size: 1.1rem;
  opacity: 0.7;
}
.login-ticket-mock-foot {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-100);
}
.login-ticket-mock-badge {
  position: absolute;
  top: -12px;
  right: -8px;
  padding: 8px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(255, 100, 35, 0.4);
  transform: rotate(6deg);
}

.login-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 0, 153, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 100, 35, 0.05), transparent),
    #f8fafc;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 28px;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(15, 23, 42, 0.04);
}

.login-card-head { margin-bottom: 28px; }
.login-card-head h1 {
  margin: 0 0 6px;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gray-900);
}
.login-card-head p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--gray-500);
}

.login-form { padding: 0; }
.login-alert { margin-bottom: 20px; }

.login-field { margin-bottom: 20px; }
.login-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.login-input-icon {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  color: var(--gray-400);
  pointer-events: none;
  z-index: 1;
}
.login-input-wrap input {
  width: 100%;
  padding: 13px 44px 13px 44px;
  min-height: 50px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.login-input-wrap input:hover {
  border-color: var(--gray-300);
  background: #fff;
}
.login-input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.login-input-wrap:has(input:focus) .login-input-icon {
  color: var(--accent);
}

.login-pw-toggle {
  position: absolute;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--gray-400);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.login-pw-toggle:hover {
  color: var(--accent);
  background: var(--accent-light);
}
.login-pw-icon[hidden] { display: none; }

.login-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  gap: 10px;
}
.login-submit svg {
  transition: transform 0.25s ease;
}
.login-submit:hover svg {
  transform: translateX(3px);
}
.login-submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.login-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-400);
}
.login-secure-note svg {
  flex-shrink: 0;
  color: var(--success);
}

.login-footer-text {
  margin: 28px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-400);
}

@media (max-width: 960px) {
  .login-split { grid-template-columns: 1fr; }
  .login-hero {
    min-height: auto;
    padding: 36px 24px 120px;
  }
  .login-ticket-mock {
    right: 20px;
    bottom: 24px;
    opacity: 0.92;
  }
  .login-ticket-mock-card {
    width: 220px;
    transform: rotate(-3deg);
  }
  .login-main { padding: 32px 20px 40px; }
  .login-card {
    margin-top: -72px;
    position: relative;
    z-index: 3;
    max-width: 440px;
  }
}

@media (max-width: 480px) {
  .login-hero { padding: 28px 18px 110px; }
  .login-hero-title { font-size: 1.55rem; }
  .login-hero-features { gap: 10px; }
  .login-ticket-mock { display: none; }
  .login-card {
    margin-top: -48px;
    padding: 28px 22px 22px;
    border-radius: 18px;
  }
  .login-card-head h1 { font-size: 1.45rem; }
}

/* ─── Selection & Placeholder ─── */
::selection { background: var(--accent-light); color: var(--accent-hover); }
::placeholder { color: var(--gray-400); font-weight: 400; }
input::placeholder { color: var(--gray-400); }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ─── Form Elements ─── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.form-group label .label-hint {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.72;
  font-size: 0.72rem;
}
.form-group .input-iata {
  max-width: 7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

input[readonly] {
  background: var(--gray-50);
  color: var(--gray-700);
  cursor: default;
  border-style: dashed;
}
.auto-fill-row .form-group label { color: var(--gray-400); }

.form-hint { display: block; margin-top: 4px; font-size: .78rem; color: var(--gray-400); }

.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: .9rem; font-weight: 500; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; font-size: .88rem; line-height: 1.55; }
.alert-info code { background: rgba(255,255,255,.7); padding: 2px 6px; border-radius: 4px; font-size: .82rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: -.01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-hover) 110%);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(59, 130, 246, .3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, .4);
}
.btn-block { width: 100%; margin-top: 8px; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.btn-secondary {
  background: var(--gray-600);
  color: var(--white);
}
.btn-secondary:hover { background: var(--gray-700); }
.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  padding: 7px 14px;
  font-size: .85rem;
  font-weight: 500;
  font-family: var(--font);
  margin-top: 6px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}
.btn-outline-sm:hover { background: var(--gray-50); border-color: var(--accent); color: var(--accent); }

.form-group-btn label { visibility: hidden; }
.form-group-btn .btn { width: 100%; }

.total-input { font-weight: 800; font-size: 1.15rem; color: var(--accent); }

/* ─── Passengers ─── */
.passenger-row {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.passenger-row select {
  width: 90px;
  flex-shrink: 0;
  padding: 10px 10px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: var(--font);
  background: var(--white);
}
.passenger-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
}
.passenger-row select.passenger-type { width: 80px; flex-shrink: 0; font-size: .85rem; }
.passenger-row input.passenger-dob { flex: 0 1 160px; font-size: .9rem; }
.btn-remove-pax {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: none;
  background: #fee2e2;
  color: #dc2626;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}
.btn-remove-pax:hover { background: #fca5a5; color: #991b1b; }
.add-pax-btns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.add-pax-btns .btn-outline-sm { margin-top: 0; }
.passenger-row input:focus,
.passenger-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* ═══════════════════════════════════════════
   App shell (unified with homepage)
   ═══════════════════════════════════════════ */
.app-shell { background: #f8fafc; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.app-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.app-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.app-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
}
.app-back:hover { background: var(--gray-100); color: var(--accent); }
.app-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.app-logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  border-radius: 10px;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 153, 0.2);
}
.app-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.app-logo-text strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}
.app-logo-text small {
  font-size: 0.72rem;
  color: var(--gray-500);
  font-weight: 500;
}
.app-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.app-nav-link {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-500);
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition);
}
.app-nav-link:hover { color: var(--accent); background: var(--accent-light); }
.app-nav-link.is-active {
  color: var(--white);
  background: var(--gradient-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 153, 0.2);
}
.app-nav-link--muted { opacity: 0.85; }
.app-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.app-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: var(--gray-100);
  border-radius: 999px;
  border: 1px solid var(--gray-200);
}
.app-user-avatar {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
}
.app-user-name { font-size: 0.85rem; font-weight: 600; color: var(--gray-700); }
.app-btn-logout {
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  transition: var(--transition);
}
.app-btn-logout:hover {
  color: var(--accent-2);
  border-color: rgba(255, 100, 35, 0.35);
  background: #fff7ed;
}
.app-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.app-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
}

.app-welcome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(0, 0, 153, 0.06), rgba(255, 100, 35, 0.06));
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}
.app-welcome-title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}
.app-welcome-sub { margin: 0; font-size: 0.9rem; color: var(--gray-500); }
.app-welcome-cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: var(--transition);
}
.app-welcome-cta:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}
.app-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inbox-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.inbox-title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}
.inbox-sub { margin: 0; font-size: 0.9rem; color: var(--gray-500); }

.sales-main { max-width: 1200px; }
.sales-main .recent-panel { padding: 0; overflow: hidden; }
.sales-main .recent-panel .recent-table-wrap { margin: 0; }

/* ═══════════════════════════════════════════
   Dashboard Layout
   ═══════════════════════════════════════════ */
/* ─── Header (legacy) ─── */
.dashboard-header {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 0 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(59,130,246,.3);
  position: relative;
  overflow: hidden;
}
.brand-icon::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 45%);
  transform: rotate(12deg);
}
.brand-text h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.brand-tagline {
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}
.nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}
.nav-item.is-active {
  color: #fff;
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.nav-item:active { transform: translateY(0); }
.nav-icon { font-size: .9rem; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  background: rgba(255,255,255,.08);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.1);
}
.user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 70%, #fb7185 130%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--white);
}
.user-name { font-size: .85rem; color: rgba(255,255,255,.85); font-weight: 500; }
.btn-logout {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.12);
  padding: 7px 16px;
  font-size: .82rem;
  border-radius: 8px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}
.btn-logout:hover {
  background: rgba(255,100,35,.16);
  color: rgba(255,255,255,.92);
  border-color: rgba(255,100,35,.35);
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
}
.back-btn:hover { background: rgba(255,255,255,.2); }

/* ─── Main ─── */
.dashboard-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px;
}
.edit-main { max-width: 720px; }
.edit-main .panel { margin-bottom: 24px; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

/* ─── Panels ─── */
.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: box-shadow .3s ease;
}
.panel:hover { box-shadow: var(--shadow-lg); }
.panel h2 {
  margin: 0;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-200);
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.panel h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-accent);
}

.preview-panel {
  align-self: start;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 108px);
  display: flex;
  flex-direction: column;
}
.preview-panel .panel h2,
.preview-panel-head { flex-shrink: 0; }
.preview-panel .live-preview {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* ─── Form ─── */
.ticket-form { padding: 22px; }
.form-section {
  margin-bottom: 22px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gray-100);
}
.form-section:last-of-type { border-bottom: none; margin-bottom: 0; }
.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
}
.form-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: .72rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 6px;
}

/* Flight & route */
.flight-search-card {
  padding: 18px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
}
.flight-search-lead {
  margin: 0 0 14px;
  font-size: .84rem;
  color: var(--gray-500);
  line-height: 1.5;
}
.flight-search-row { margin-bottom: 14px; }
.input-flight-no { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.input-pnr { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.route-picker {
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
}
.route-iata-box label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.route-iata-input {
  width: 100%;
  text-align: center;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  padding: 12px 10px !important;
  border-radius: 12px !important;
  border: 2px solid var(--gray-200) !important;
  background: #fff;
}
.route-iata-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--accent-glow) !important;
}
.route-iata-hint {
  display: block;
  margin-top: 5px;
  font-size: .72rem;
  color: var(--gray-400);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.route-swap-btn {
  align-self: center;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: #fff;
  color: var(--gray-600);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.route-swap-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.route-picker-mid {
  position: relative;
  align-self: center;
  width: 56px;
  margin-bottom: 22px;
  text-align: center;
}
.route-picker-line {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--gray-200), var(--accent), var(--gray-200));
  border-radius: 2px;
}
.route-picker-plane {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: .95rem;
  background: #f8fafc;
  padding: 0 4px;
}
.flight-search-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.btn-fetch-flight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  justify-content: center;
}
.btn-fetch-icon { font-size: 1rem; line-height: 1; }
.btn-fetch-flight.is-loading .btn-fetch-icon {
  display: inline-block;
  animation: fetch-spin 0.8s linear infinite;
}
@keyframes fetch-spin { to { transform: rotate(360deg); } }
.flight-fetch-status {
  margin: 0;
  flex: 1;
  min-width: 180px;
  font-size: .82rem;
  color: var(--gray-500);
  line-height: 1.45;
}
.flight-fetch-status.is-loading { color: var(--accent); font-weight: 600; }
.flight-fetch-status.is-success { color: #059669; font-weight: 600; }
.flight-fetch-status.is-error { color: #dc2626; font-weight: 600; }

.flight-details-card {
  margin-bottom: 16px;
  padding: 16px;
  background: #fff;
  border: 1px dashed var(--gray-200);
  border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.flight-details-card.is-loaded {
  border-style: solid;
  border-color: rgba(59, 130, 246, .25);
  box-shadow: 0 4px 20px rgba(59, 130, 246, .08);
}
.flight-details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.flight-details-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
}
.flight-details-pill {
  padding: 4px 10px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-500);
  background: var(--gray-100);
  border-radius: 999px;
}
.flight-details-pill.is-ready {
  color: #059669;
  background: #ecfdf5;
}
.flight-details-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-100);
}
.flight-details-end { text-align: center; }
.flight-details-code {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: .05em;
}
.flight-details-city {
  display: block;
  font-size: .78rem;
  color: var(--gray-500);
  margin-top: 2px;
}
.flight-details-time {
  display: block;
  margin-top: 6px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent);
}
.flight-details-mid { text-align: center; min-width: 72px; }
.flight-details-duration {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.flight-details-line {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--gray-200), var(--accent), var(--gray-200));
  border-radius: 2px;
}
.flight-details-fields .form-group--compact { margin-bottom: 0; }
.flight-meta-block {
  padding-top: 4px;
  border-top: 1px solid var(--gray-100);
}
.form-row { margin-bottom: 14px; }
.form-row.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.three-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.form-actions {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.section-label {
  display: block;
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: 10px;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.checkbox-group { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
}
.checkbox-label:hover { color: var(--gray-800); }
.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  border-radius: 4px;
}

.download-link-wrap {
  padding: 14px 16px;
  background: var(--accent-light);
  border-radius: var(--radius);
  font-size: .9rem;
  border: 1px solid rgba(59,130,246,.15);
}
.download-link-wrap a { color: var(--accent); font-weight: 600; }

/* ─── Live Preview ─── */
.preview-panel-head {
  padding: 16px 20px 0;
  border-bottom: 1px solid var(--gray-100);
}
.preview-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.preview-panel-title h2 {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 1rem;
}
.preview-panel-title h2::before { display: none; }
.preview-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
}
.preview-live-pulse {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  animation: preview-pulse 1.8s ease-in-out infinite;
}
@keyframes preview-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.85); }
}
.preview-tabs {
  display: flex;
  gap: 6px;
  padding-bottom: 12px;
}
.preview-tab {
  flex: 1;
  padding: 8px 10px;
  font-size: .78rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--gray-500);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.preview-tab:hover { color: var(--gray-800); border-color: var(--gray-300); }
.preview-tab.is-active {
  color: var(--accent);
  background: var(--accent-light);
  border-color: rgba(59, 130, 246, .35);
}
.preview-tab.is-disabled { opacity: .45; pointer-events: none; }

.live-preview {
  padding: 16px;
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
}
.preview-pane { display: none; }
.preview-pane.is-active { display: block; }

.eticket-preview {
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, .08);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  padding: 16px 16px 18px;
}
.pv-head { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.pv-pnr-block { display: flex; align-items: center; gap: 8px; text-align: right; }
.pv-logo-box {
  width: 72px; height: 52px; border-radius: 4px; overflow: hidden;
  background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border: 1px solid #e5e7eb;
}
.pv-logo-box img, .pv-logo-box .et-logo { width: 100%; height: 100%; object-fit: contain; background: #fff; filter: none; }
.pv-logo-box .et-logo-fallback { font-size: 1.4rem; color: #0b3d91; }
.pv-logo-box--sm { width: 56px; height: 42px; }
.pv-pnr-label { display: block; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6b7280; }
.pv-pnr-value { display: block; font-size: 1.35rem; font-weight: 800; color: var(--pv-brand, #111); letter-spacing: .02em; line-height: 1.1; }
.pv-box { border: 1px solid var(--pv-brand, #111); margin-bottom: 12px; background: #fff; }
.pv-bar {
  background: var(--pv-brand, #111); color: var(--pv-on, #fff); padding: 7px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: .82rem; font-weight: 700;
}
.pv-bar-note { font-size: .62rem; font-weight: 400; font-style: italic; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52%; }
.pv-itin { padding: 12px 10px 14px; }
.pv-al { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pv-al-name { font-size: .92rem; font-weight: 700; color: var(--pv-brand, #111); }
.pv-al-flight { font-size: .88rem; font-weight: 700; color: #111; margin-left: 6px; }
.pv-grid { display: grid; grid-template-columns: 1.15fr 1.15fr .9fr; gap: 10px; }
.pv-place { font-size: .95rem; font-weight: 800; color: #111; line-height: 1.2; }
.pv-city { font-size: .75rem; color: #4b5563; margin: 2px 0 6px; }
.pv-when { font-size: .78rem; font-weight: 600; color: #111; }
.pv-side { text-align: right; font-size: .78rem; color: #111; line-height: 1.6; padding-left: 10px; border-left: 1px solid #d1d5db; }
.pv-side-row { display: block; }
.pv-pax-table { width: 100%; border-collapse: collapse; font-size: .75rem; }
.pv-pax-table th, .pv-pax-table td { border: 1px solid #d1d5db; padding: 7px 8px; text-align: left; vertical-align: top; }
.pv-pax-table th { background: var(--pv-soft, #eceff1); }
.pv-pax-table .et-pax-empty { display: table-cell; background: transparent; padding: 10px 8px; font-style: italic; color: var(--gray-400); }
.pv-barcode-wrap { margin-top: 6px; text-align: left; padding: 0; display: block; }
.pv-barcode { height: 24px; max-width: 140px; width: auto; display: block; }
.pv-barcode-caption { display: block; margin-top: 2px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; color: #111; }
.pv-ticket .et-slogan { display: none; }
.pv-ticket .et-refund-badge { margin: 6px 0 0; padding: 3px 6px; font-size: .65rem; }

.et-banner {
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.et-banner-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.et-logo { height: 40px; width: auto; max-width: 120px; object-fit: contain; filter: brightness(0) invert(1); }
.et-logo-fallback { font-size: 1.75rem; opacity: .95; flex-shrink: 0; }
.et-logo-fallback.hidden { display: none; }
.et-airline-block { min-width: 0; }
.et-airline { display: block; font-size: 1rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.et-slogan { display: block; font-size: .72rem; font-style: italic; opacity: .88; margin-top: 2px; }
.et-flight {
  flex-shrink: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 6px 12px;
  background: rgba(255, 255, 255, .15);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .25);
}
.et-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 20px 18px 16px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--gray-100);
}
.et-route-end { text-align: center; }
.et-route-end--arr { text-align: center; }
.et-code {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: .04em;
  line-height: 1.1;
}
.et-city {
  display: block;
  font-size: .75rem;
  color: var(--gray-500);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.et-time {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 6px;
}
.et-route-mid { text-align: center; padding: 0 8px; min-width: 88px; }
.et-duration {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.et-route-line {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, var(--gray-200), var(--accent), var(--gray-200));
  margin: 0 4px 6px;
  border-radius: 2px;
}
.et-plane {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: .9rem;
  background: #fff;
  padding: 0 4px;
}
.et-class {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gray-600);
}
.et-meta-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.et-meta-item {
  padding: 10px 12px;
  background: #fff;
  text-align: center;
}
.et-meta-label {
  display: block;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gray-400);
  margin-bottom: 3px;
}
.et-meta-val {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--gray-800);
}
.et-pnr { color: var(--accent); letter-spacing: .04em; }
.et-status { color: #29870b; }
.et-refund-badge {
  display: block;
  margin: 10px 18px 0;
  padding: 6px 12px;
  font-size: .75rem;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
}
.et-refund-badge--yes { background: #d1fae5; color: #065f46; }
.et-refund-badge--no { background: #fee2e2; color: #991b1b; }
.et-section {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
}
.et-section--inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.et-section-label {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-400);
  margin-bottom: 8px;
}
.et-section--inline .et-section-label { margin-bottom: 0; }
.et-pax-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.et-pax-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: var(--gray-50);
  border-radius: 8px;
  font-size: .88rem;
}
.et-pax-name { font-weight: 600; color: var(--gray-800); }
.et-pax-type {
  font-size: .72rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.et-pax-empty { color: var(--gray-400); font-style: italic; justify-content: flex-start; background: transparent; padding: 0; }
.et-baggage-val { font-size: .88rem; font-weight: 600; color: var(--gray-700); }
.et-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--gray-50);
}
.et-qr-wrap { text-align: center; }
.et-qr-label {
  display: block;
  font-size: .62rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 4px;
}
.et-ticket-no {
  font-size: .78rem;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: .05em;
  text-align: right;
}
.qrcode-preview { display: inline-block; padding: 6px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; }
.qrcode-preview canvas, .qrcode-preview img { display: block; width: 88px; height: 88px; }

.preview-pane-hint {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: .78rem;
  color: var(--gray-500);
  background: #fff;
  border: 1px dashed var(--gray-200);
  border-radius: 8px;
  line-height: 1.5;
}

/* ─── Agency & Invoice Preview ─── */
.agency-preview, .invoice-preview {
  max-width: 100%;
  margin: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  opacity: .55;
  transition: opacity .2s;
}
.agency-preview.is-enabled, .invoice-preview.is-enabled { opacity: 1; }
.inv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--gray-50);
  font-size: .9rem;
  font-weight: 700;
  border-bottom: 1px solid var(--gray-200);
}
.inv-table { padding: 12px 16px; }
.inv-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: .9rem;
  border-bottom: 1px solid var(--gray-100);
}
.inv-row:last-child { border-bottom: none; }
.inv-row.total {
  font-weight: 700;
  font-size: 1rem;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 2px solid var(--accent);
  color: var(--accent);
}

/* ─── Sales History Table ─── */
.recent-panel { }
.recent-panel .recent-table-wrap { overflow-x: auto; }
.recent-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.recent-table th,
.recent-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}
.recent-table th {
  background:
    linear-gradient(0deg, rgba(248,250,252,.9), rgba(248,250,252,.9)),
    radial-gradient(600px 120px at 10% 50%, rgba(37,99,235,.20), transparent 60%),
    radial-gradient(600px 120px at 90% 50%, rgba(124,58,237,.18), transparent 60%);
  font-weight: 600;
  color: var(--gray-500);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.recent-table code {
  font-size: .82em;
  background: var(--accent-light);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.recent-table .empty {
  color: var(--gray-400);
  font-style: italic;
  text-align: center;
  padding: 32px;
}
.recent-table tbody tr { transition: var(--transition); }
.recent-table tbody tr:hover { background: var(--gray-50); }

.ticket-actions { white-space: nowrap; }
.ticket-actions .btn-link {
  display: inline-flex;
  align-items: center;
  font-size: .78rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  margin-right: 4px;
  padding: 5px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  transition: var(--transition);
  background: rgba(255,255,255,.75);
}
.ticket-actions .btn-link:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}
.ticket-actions .btn-link-wa {
  color: #25d366;
  border-color: #c8f7d8;
}
.ticket-actions .btn-link-wa:hover {
  background: #e8fdf0;
  border-color: #25d366;
}

/* ─── Admin Manage (am-*) ─── */
.am-main { max-width: 1320px; padding-top: 20px; }

.am-top {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 16px 24px;
  margin-bottom: 20px;
  padding: 24px 28px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}
.am-top-intro { grid-column: 1; grid-row: 1; }
.am-page-title {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--gray-900);
}
.am-page-sub { margin: 0; font-size: .9rem; color: var(--gray-500); line-height: 1.5; }
.am-chips {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.am-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-100);
  border-radius: 999px;
  border: 1px solid var(--gray-200);
}
.am-chip strong { color: var(--gray-900); font-weight: 800; }
.am-chip--ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.am-chip--warn { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.am-chip--live { background: #eff6ff; color: var(--accent); border-color: #bfdbfe; }
.am-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
}
.am-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: .88rem;
  font-weight: 600;
  font-family: var(--font);
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.am-btn--ghost {
  background: var(--white);
  color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.am-btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-1px);
}
.am-btn--primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0,0,153,.25);
}
.am-btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,153,.35);
}
.am-btn--primary:disabled { opacity: .5; cursor: not-allowed; }

.am-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  max-width: 360px;
  padding: 14px 18px;
  font-size: .9rem;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  animation: am-toast-in .35s ease;
}
.am-toast--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.am-toast--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
@keyframes am-toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.am-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.am-tab {
  padding: 10px 20px;
  font-size: .88rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--gray-500);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.am-tab:hover { color: var(--gray-800); background: var(--gray-50); }
.am-tab.is-active {
  color: var(--white);
  background: var(--gradient-accent);
  box-shadow: 0 2px 8px rgba(0,0,153,.2);
}

.am-layout { display: flex; flex-direction: column; gap: 20px; }
.am-panel { display: none; }
.am-panel.is-active { display: block; }

.am-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.am-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #fafbfc, #f4f6f9);
  border-bottom: 1px solid var(--gray-200);
}
.am-card-head-left { display: flex; align-items: center; gap: 10px; }
.am-dot { width: 10px; height: 10px; border-radius: 50%; }
.am-dot--r { background: #f87171; }
.am-dot--y { background: #fbbf24; }
.am-dot--g { background: #34d399; }
.am-card-label { font-size: .85rem; font-weight: 600; color: var(--gray-600); }
.am-pill {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 999px;
}
.am-pill--green { background: #d1fae5; color: #047857; }

.am-editor-frame {
  position: relative;
  height: min(72vh, 700px);
  min-height: 400px;
  background: #e8eaed;
}
.am-editor-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.am-editor-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #f8fafc;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: opacity .3s ease;
}
.am-editor-loader.is-hidden { opacity: 0; pointer-events: none; }
.am-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: am-spin .7s linear infinite;
}
@keyframes am-spin { to { transform: rotate(360deg); } }

.am-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}
.am-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}
.am-search {
  width: 100%;
  padding: 9px 12px 9px 38px;
  font-size: .88rem;
  font-family: var(--font);
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  transition: var(--transition);
}
.am-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.am-table-scroll {
  max-height: min(50vh, 520px);
  overflow: auto;
}
.am-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
}
.am-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 14px;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  background: #f8fafc;
  border-bottom: 2px solid var(--accent);
  white-space: nowrap;
}
.am-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
}
.am-table tbody tr:hover td { background: #f0f7ff; }
.am-table tbody tr:nth-child(even) td { background: #fafbfc; }
.am-table tbody tr:nth-child(even):hover td { background: #f0f7ff; }
.am-table td[data-col="PNR"] { font-weight: 700; color: var(--gray-900); }
.am-table td[data-col="DATE"] { font-weight: 600; color: var(--accent); white-space: nowrap; }
.am-table td[data-col="BY FARE"] { font-weight: 700; color: var(--gray-900); }
.am-table-foot {
  margin: 0;
  padding: 10px 18px 14px;
  font-size: .78rem;
  color: var(--gray-400);
  border-top: 1px solid var(--gray-100);
}

.am-empty {
  padding: 56px 24px;
  text-align: center;
}
.am-empty-icon { font-size: 2.75rem; margin-bottom: 12px; opacity: .5; }
.am-empty h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--gray-800); }
.am-empty p { margin: 0 auto; max-width: 400px; font-size: .9rem; color: var(--gray-500); line-height: 1.6; }
.am-empty-hint { margin-top: 12px !important; font-size: .82rem !important; }
.am-empty-hint code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .8rem;
}

@media (min-width: 1100px) {
  .am-layout:not(:has(.am-tabs)) {
    display: grid;
    grid-template-columns: 1fr;
  }
  .am-page:not(:has(.am-tabs)) .am-panel { display: block; }
  .am-page:not(:has(.am-tabs)) .am-card--editor { margin-bottom: 0; }
}

@media (max-width: 900px) {
  .am-top {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .am-actions {
    grid-column: 1;
    grid-row: 3;
    justify-content: stretch;
  }
  .am-actions .am-btn { flex: 1; justify-content: center; }
  .am-chips { grid-row: 2; }
  .am-search-wrap { max-width: none; width: 100%; }
  .am-toast { left: 16px; right: 16px; max-width: none; }
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */
@media (max-width: 1000px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
}

@media (max-width: 600px) {
  .form-row.two-cols,
  .form-row.three-cols { grid-template-columns: 1fr; }
  .route-picker {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .route-iata-box:first-child { grid-column: 1; }
  .route-swap-btn {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-bottom: 0;
    margin-top: 22px;
  }
  .route-picker-mid {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin: 4px 0 8px;
  }
  .route-iata-box:last-child { grid-column: 1 / -1; grid-row: 3; }
  .flight-details-route { grid-template-columns: 1fr; }
  .flight-details-mid { order: -1; }
  .btn-fetch-flight { width: 100%; }
}

@media (max-width: 768px) {
  /* App nav + shell: see assets/mobile.css */
  .app-welcome { flex-direction: column; align-items: stretch; text-align: center; }

  .dashboard-header { padding: 0 14px; }
  .header-inner { height: 56px; gap: 8px; }
  .header-nav { display: none; }
  .brand-tagline { display: none; }
  .brand-text h1 { font-size: .95rem; }
  .brand-icon { width: 32px; height: 32px; font-size: 1rem; }
  .user-badge { display: none; }
  .btn-logout { font-size: .78rem; padding: 6px 12px; }
  .dashboard-page .dashboard-main { padding: 14px; }
  .dashboard-page .dashboard-grid { gap: 16px; margin-bottom: 16px; }
  .dashboard-page .panel h2 { padding: 14px 16px; font-size: .95rem; }
  .dashboard-page .ticket-form { padding: 14px; }
  .dashboard-page .form-group label { font-size: .75rem; }
  .dashboard-page .form-group input,
  .dashboard-page .form-group select { padding: 9px 12px; font-size: .9rem; }
  .passenger-row { flex-wrap: wrap; }
  .passenger-row select { width: 80px; }
  .passenger-row select.passenger-type { width: 75px; }
  .passenger-row input { flex: 1 1 100%; }
  .passenger-row input.passenger-dob { flex: 1 1 100%; }
  .form-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .form-actions .btn-primary { width: 100%; }
  .eticket-preview, .invoice-preview, .agency-preview { max-width: 100%; }
  .live-preview { padding: 14px; }
  .preview-panel { max-height: none; }
  .pv-grid { grid-template-columns: 1fr; }
  .pv-side { text-align: left; border-left: none; padding-left: 0; border-top: 1px solid #e5e7eb; padding-top: 8px; }
  .pv-bar-note { display: none; }
  .et-route { grid-template-columns: 1fr; gap: 14px; }
  .et-route-mid { order: -1; }
  .et-meta-bar { grid-template-columns: 1fr; }
  .et-footer { flex-direction: column; text-align: center; }
  .et-ticket-no { text-align: center; }
  .recent-table th, .recent-table td { padding: 10px 12px; font-size: .82rem; }

  /* Better tap targets + spacing on mobile (dashboard only) */
  .dashboard-page .btn { min-height: 44px; }
  .dashboard-page .btn-remove-pax { width: 40px; height: 40px; border-radius: 10px; }

  /* Make passenger rows feel like small cards */
  .dashboard-page .passenger-row {
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: rgba(255,255,255,.75);
  }
  .dashboard-page .passenger-row select,
  .dashboard-page .passenger-row input {
    min-height: 44px;
  }
  .dashboard-page .add-pax-btns { gap: 10px; }
  .dashboard-page .add-pax-btns .btn-outline-sm { flex: 1; justify-content: center; min-height: 44px; }

  /* Forms: reduce visual density */
  .dashboard-page .form-row { margin-bottom: 12px; }
  .dashboard-page .form-group { margin-bottom: 12px; }
}

@media (max-width: 480px) {
  .dashboard-main { padding: 8px; }
  .ticket-form { padding: 12px; }
  .form-row.two-cols, .form-row.three-cols { grid-template-columns: 1fr; gap: 10px; }
  .form-group-btn label { display: none; }
  .form-group-btn { margin-bottom: 0; }
  .passenger-row select { width: 70px; font-size: .85rem; }
  .passenger-row select.passenger-type { width: 68px; font-size: .8rem; }
  .et-banner { padding: 12px 14px; }
  .et-airline { font-size: .88rem; }
  .et-slogan { display: none; }
  .et-code { font-size: 1.35rem; }
  .preview-tabs { flex-wrap: wrap; }
  .panel h2 { padding: 12px 14px; font-size: .9rem; }
  .checkbox-group { flex-direction: column; gap: 10px; }
  .btn { padding: 10px 16px; font-size: .9rem; }
}
