:root {
  --primary-blue: #0064e5;
  --bg-white: #fdfffe;
  --light-blue: #e6f1ff;
  --card-radius: 18px;
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.06);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-white);
  color: #1b2230;
  min-height: 100vh;
}

.tw-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--primary-blue);
  letter-spacing: 0.04em;
}

.tw-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-blue), #29b6f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 22px rgba(0, 100, 229, 0.35);
  position: relative;
  overflow: hidden;
}

.tw-logo-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 0, rgba(255, 255, 255, 0.55), transparent 55%);
  mix-blend-mode: screen;
}

.tw-logo-icon i {
  position: relative;
  transform: translateX(1px) rotate(-8deg);
}

.tw-logo-text-main {
  font-size: 1.05rem;
}

.tw-logo-text-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #6b7a90;
  letter-spacing: 0.16em;
  margin-top: -4px;
}

.nav-glass {
  background: rgba(253, 255, 254, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.btn-primary-soft {
  background: var(--primary-blue);
  color: #fff;
  border-radius: 999px;
  padding: 0.6rem 1.6rem;
  border: none;
  box-shadow: 0 12px 22px rgba(0, 100, 229, 0.35);
  transition: all 0.2s ease;
}

.btn-primary-soft:hover {
  transform: translateY(-1px) translateZ(0);
  box-shadow: 0 16px 30px rgba(0, 100, 229, 0.45);
  background: #0053c0;
  color: #fff;
}

.btn-outline-soft {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #1f2933;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1.4rem;
  transition: all 0.18s ease;
}

.btn-outline-soft:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
  background-color: #f8fbff;
}

.card-air {
  border-radius: var(--card-radius);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(145deg, #ffffff, #f3f7ff);
}

.card-air-light {
  border-radius: var(--card-radius);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.badge-pill {
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
}

.hero-bg {
  background: radial-gradient(circle at top left, #e6f1ff 0, transparent 55%),
    radial-gradient(circle at bottom right, #d0ebff 0, transparent 50%);
}

.step-pill {
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: #eef4ff;
  color: #334155;
}

.step-pill.active {
  background-color: var(--primary-blue);
  color: #fff;
}

.step-pill.completed {
  background-color: #22c55e;
  color: #fff;
}

.input-air {
  border-radius: 0.9rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.92rem;
  transition: all 0.16s ease;
  background-color: rgba(255, 255, 255, 0.95);
}

.input-air:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 100, 229, 0.18);
  outline: none;
}

.input-air.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  z-index: 1030;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sidebar-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-panel {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  max-width: 80vw;
  background: #ffffff;
  box-shadow: 12px 0 32px rgba(15, 23, 42, 0.1);
  transform: translateX(-100%);
  transition: transform 0.22s ease-out;
  z-index: 1040;
  padding: 1.25rem 1.1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-panel.show {
  transform: translateX(0);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.9rem;
  color: #1f2933;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.sidebar-link:hover {
  background-color: #e6f1ff;
  color: var(--primary-blue);
  transform: translateX(2px);
}

.sidebar-link.active {
  background: linear-gradient(135deg, var(--primary-blue), #2f88ff);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 100, 229, 0.35);
}

.sidebar-link i {
  width: 1.2rem;
  text-align: center;
}

.login-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0.75rem;
  background: radial-gradient(circle at top, rgba(0, 100, 229, 0.22) 0, transparent 58%),
    radial-gradient(circle at bottom, rgba(79, 209, 197, 0.1) 0, transparent 58%);
}

.login-card {
  max-width: 960px;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
  background: linear-gradient(135deg, #ffffff, #f3f7ff);
}

.login-hero {
  background: radial-gradient(circle at top left, #0064e5 0, #003b8e 45%, #001735 100%);
  color: #e2ecff;
  position: relative;
  overflow: hidden;
}

.login-aircraft-orbit {
  position: absolute;
  inset: 8% -40% auto auto;
  opacity: 0.18;
  pointer-events: none;
}

.login-aircraft-orbit .orbit-circle {
  border-radius: 999px;
  border: 1px dashed rgba(226, 232, 255, 0.55);
}

.login-aircraft-orbit .plane-icon {
  position: absolute;
  top: 12%;
  right: 8%;
  transform: rotate(-18deg);
  color: #e5f0ff;
}

.login-switch button {
  border-radius: 999px;
  border: none;
  padding: 0.35rem 0.85rem;
  font-size: 0.86rem;
  background: transparent;
  color: #64748b;
}

.login-switch button.active {
  background: #0f172a;
  color: #e2ecff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.55);
}

.form-toggle {
  display: none;
  animation: fadeInUp 0.22s ease-out;
}

.form-toggle.active {
  display: block;
}

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

.badge-airline {
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.18rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.9);
  color: #1f2933;
}

.step-card-selectable {
  cursor: pointer;
  border-radius: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  transition: all 0.14s ease;
  background: rgba(255, 255, 255, 0.9);
}

.step-card-selectable:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.step-card-selectable.active {
  border-color: var(--primary-blue);
  background: linear-gradient(135deg, #e6f1ff, #ffffff);
  box-shadow: 0 14px 30px rgba(0, 100, 229, 0.22);
}

.seat-chip {
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  border: 1px dashed rgba(148, 163, 184, 0.75);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.seat-chip:hover {
  border-style: solid;
  border-color: var(--primary-blue);
  background: #e6f1ff;
  transform: translateY(-1px);
}

.seat-chip.active {
  border-style: solid;
  background: linear-gradient(135deg, var(--primary-blue), #2f88ff);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 100, 229, 0.4);
}

.receipt-card {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.15);
  background: linear-gradient(135deg, #ffffff, #f3f7ff);
  position: relative;
  overflow: hidden;
}

.receipt-card::before {
  content: "";
  position: absolute;
  inset: -50% -20% auto auto;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.16) 0, transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.divider-dashed {
  border-top: 1px dashed rgba(148, 163, 184, 0.75);
}

.tag-pill {
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  font-size: 0.72rem;
  background: #e6f1ff;
  color: #1f2933;
}

@media (min-width: 992px) {
  .hero-grid {
    min-height: calc(100vh - 70px);
  }
}

@media (max-width: 767.98px) {
  .login-card {
    border-radius: 18px;
  }
  .login-hero {
    min-height: 140px;
  }
}