/* ============================================================
   Aeronex Airlines — Design System
   팔레트: 미드나이트 네이비 + 골드 (프리미엄 항공사 아이덴티티)
   Signature: 탑승권을 모티프로 한 "flight path" 애니메이션과
              티켓 스텁(반원 절취선) 카드 디자인
   ============================================================ */

/* Pretendard 폰트는 index.html <head>의 <link> 태그로 로드합니다. */

:root {
  /* Color */
  --bg: #ffffff;
  --bg-elev: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --gold: #0f2d63;
  --gold-soft: #16408a;
  --gold-dim: #0a1f47;
  --ink: #0f1729;
  --ink-dim: #4b5566;
  --ink-faint: #94a0b8;
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.22);
  --success: #59d99a;
  --danger: #f4736b;
  --sky: #4f7cff;

  /* Type */
  --font-display: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Roboto Mono", Consolas, monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}
h1, h2, h3, h4, p, ul, figure {
  margin: 0;
}
ul {
  list-style: none;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* 배경 앰비언트 글로우 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 500px at 15% -5%, rgba(11, 42, 107, 0.10), transparent 55%),
    radial-gradient(ellipse 700px 500px at 100% 15%, rgba(15, 45, 99, 0.08), transparent 50%),
    radial-gradient(ellipse 600px 400px at 50% 100%, rgba(11, 42, 107, 0.06), transparent 55%);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}

/* ---------- 스크롤 리빌 유틸 (GSAP ScrollTrigger 훅) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 60%, var(--gold-dim));
  color: #ffffff;
  box-shadow: 0 8px 24px -8px rgba(11, 42, 107, 0.55);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(11, 42, 107, 0.7);
}
.btn-ghost {
  background: rgba(11, 42, 107, 0.04);
  border-color: var(--border-strong);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(11, 42, 107, 0.08);
  border-color: var(--gold);
}
.btn-danger {
  background: rgba(244, 115, 107, 0.12);
  border-color: rgba(244, 115, 107, 0.4);
  color: #ffb3ae;
}
.btn-danger:hover {
  background: rgba(244, 115, 107, 0.22);
}
.btn-sm {
  padding: 9px 16px;
  font-size: 0.82rem;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}
.btn .spinner {
  display: none;
}
.btn.is-loading .spinner {
  display: inline-block;
}
.btn.is-loading .btn-label {
  opacity: 0.6;
}

/* ---------- 네비게이션 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 48px);
  transition: padding 0.4s var(--ease-out), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.navbar.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.nav-logo .mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-logo .word {
  background: linear-gradient(120deg, var(--gold-soft), var(--gold) 40%, var(--gold-soft) 80%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
}
@keyframes shine {
  to {
    background-position: 220% center;
  }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(11, 42, 107, 0.04);
  cursor: pointer;
  font-size: 0.82rem;
  transition: border-color 0.25s, transform 0.25s;
}
.lang-switch:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}
.lang-switch svg {
  width: 15px;
  height: 15px;
  animation: spin-slow 14s linear infinite;
}
@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(11, 42, 107, 0.06);
  cursor: pointer;
}
.user-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}
.user-chip .mileage {
  font-family: var(--font-mono);
  color: var(--gold-soft);
  font-size: 0.8rem;
}

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 20px 80px;
  overflow: hidden;
}
.hero-cloud {
  position: absolute;
  opacity: 0.05;
  filter: blur(0.5px);
  animation: drift linear infinite;
}
@keyframes drift {
  from {
    transform: translateX(-15vw);
  }
  to {
    transform: translateX(115vw);
  }
}
.hero-badge {
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.01em;
  max-width: 15ch;
}
.hero h1 .row {
  display: block;
  overflow: hidden;
  padding-bottom: 4px;
}
.hero h1 .row span {
  display: inline-block;
  transform: translateY(115%);
  will-change: transform;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  margin-top: 22px;
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 46ch;
}
.hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* flight path signature 애니메이션 */
.flight-path-wrap {
  width: min(760px, 92vw);
  margin-top: 64px;
}
.flight-path-wrap svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.flight-path-line {
  fill: none;
  stroke: url(#pathGradient);
  stroke-width: 1.4;
  stroke-dasharray: 3 7;
  animation: dash-move 1.6s linear infinite;
}
@keyframes dash-move {
  to {
    stroke-dashoffset: -20;
  }
}
.flight-path-plane {
  offset-path: path("M12,64 Q380,-6 748,64");
  offset-rotate: auto;
  animation: fly 5.5s var(--ease-in-out) infinite;
  transform-origin: center;
}
@keyframes fly {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  94% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}
.flight-path-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% {
    r: 4;
    opacity: 1;
  }
  50% {
    r: 6;
    opacity: 0.5;
  }
}
.flight-path-city {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  fill: var(--ink-dim);
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
}
.scroll-cue .bar {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--gold), transparent);
  animation: scroll-bar 1.8s ease-in-out infinite;
}
@keyframes scroll-bar {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  50.1% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ---------- 섹션 공통 ---------- */
.section {
  padding: 120px 0;
  position: relative;
}
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-head p {
  margin-top: 14px;
  color: var(--ink-dim);
  font-size: 1.02rem;
}

/* ---------- 검색 패널 ---------- */
.search-panel {
  background: linear-gradient(165deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}
.field input, .field select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field input:focus, .field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(11, 42, 107, 0.14);
}
.field input::placeholder {
  color: var(--ink-faint);
}

/* ---------- 항공편 카드 (탑승권 모티프) ---------- */
.flight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 42px;
}
.flight-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.flight-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 48px -20px rgba(11, 42, 107, 0.22);
}
/* 티켓 절취선 반원 노치 */
.flight-card::before, .flight-card::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--bg);
  border-radius: 50%;
  top: 108px;
}
.flight-card::before { left: -10px; }
.flight-card::after { right: -10px; }
.flight-card .tear {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 118px;
  border-top: 1.5px dashed var(--border-strong);
}
.fc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.fc-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.fc-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(89, 217, 154, 0.14);
  color: var(--success);
  letter-spacing: 0.06em;
}
.fc-badge.low { background: rgba(244, 115, 107, 0.14); color: var(--danger); }
.fc-route {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.fc-code {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
}
.fc-route-mid {
  flex: 1;
  position: relative;
  height: 14px;
}
.fc-route-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 5px, transparent 5px 10px);
}
.fc-route-plane {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  color: var(--gold);
  animation: taxi 3.4s ease-in-out infinite;
}
@keyframes taxi {
  0%, 100% { left: 8%; }
  50% { left: 88%; }
}
.fc-city {
  margin-top: 34px;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-dim);
}
.fc-meta {
  margin-top: 22px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fc-meta .time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-dim);
}
.fc-meta .price {
  text-align: right;
}
.fc-meta .price b {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--gold-soft);
}
.fc-meta .price span {
  display: block;
  font-size: 0.68rem;
  color: var(--ink-faint);
}
.fc-meta .price.pass-badge b {
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.fc-seat-pick {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-strong);
}
.fc-seat-pick label {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.fc-seat-selects {
  display: flex;
  gap: 8px;
}
.fc-seat-selects select {
  flex: 1;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.fc-seat-selects select:disabled {
  opacity: 0.5;
}
.fc-mileage-pay {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--ink-dim);
  cursor: pointer;
}
.fc-mileage-pay input[type="checkbox"] {
  accent-color: var(--gold);
  width: 15px;
  height: 15px;
}
.flight-card .btn {
  width: 100%;
  margin-top: 18px;
}
.flight-card.one-time {
  border-color: var(--border-strong);
}
.ot-tag {
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--gold);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* ---------- 통계 카운터 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.stat-card {
  text-align: center;
  padding: 30px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(11, 42, 107, 0.03);
}
.stat-card .num {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--gold-soft);
}
.stat-card .label {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--ink-dim);
}

/* ---------- 마일리지 소개 섹션 ---------- */
.mileage-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.tier-card {
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 34px;
  position: relative;
  overflow: hidden;
}
.tier-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(11, 42, 107, 0.08) 50%, transparent 70%);
  background-size: 200% 200%;
  animation: sheen 5s linear infinite;
  pointer-events: none;
}
@keyframes sheen {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.tier-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  margin-bottom: 10px;
}
.tier-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(11, 42, 107, 0.06);
  overflow: hidden;
}
.tier-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-soft));
  width: 0%;
  transition: width 1.4s var(--ease-out);
}
.mileage-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mileage-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-dim);
  font-size: 0.92rem;
}
.mileage-list li svg {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 3px;
}

/* ---------- 마이페이지 패널 ---------- */
.mypage {
  display: none;
}
.mypage.is-open {
  display: block;
}
.mypage-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.mypage-header img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}
.mypage-header .mileage-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--gold-soft);
}
.resv-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.resv-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--surface);
  transition: border-color 0.3s;
}
.resv-item:hover {
  border-color: var(--border-strong);
}
.resv-status {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.resv-status.confirmed { background: rgba(15, 45, 99, 0.12); color: #16408a; }
.resv-status.checked_in { background: rgba(89, 217, 154, 0.15); color: var(--success); }
.resv-status.cancelled { background: rgba(244, 115, 107, 0.15); color: var(--danger); }
.resv-actions {
  display: flex;
  gap: 8px;
}

/* ---------- 모달 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  width: min(520px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s var(--ease-out);
}
.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-head h3 {
  font-size: 1.3rem;
  font-weight: 700;
}
.modal-close {
  cursor: pointer;
  color: var(--ink-faint);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover {
  background: rgba(11, 42, 107, 0.06);
  color: var(--ink);
}
.meal-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  margin-bottom: 10px;
}
.meal-option:hover {
  border-color: var(--border-strong);
}
.meal-option.is-selected {
  border-color: var(--gold);
  background: rgba(11, 42, 107, 0.08);
}
.meal-option .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.25s var(--ease-out);
  flex-shrink: 0;
}
.meal-option.is-selected .check {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.1);
}
.meal-option .check svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}
.meal-option.is-selected .check svg {
  opacity: 1;
}
.meal-option .meta {
  flex: 1;
}
.meal-option .meta .name {
  font-weight: 600;
  font-size: 0.94rem;
}
.meal-option .meta .desc {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 2px;
}

/* ---------- 토스트 ---------- */
.toast-stack {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.88rem;
  min-width: 240px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.6);
  animation: toast-in 0.4s var(--ease-out);
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.error { border-color: rgba(244, 115, 107, 0.5); }
.toast.success { border-color: rgba(89, 217, 154, 0.5); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---------- 로더 ---------- */
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: currentColor;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.skeleton {
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- 푸터 ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 30px;
  margin-top: 60px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 36px;
}
.footer-cols {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--ink-dim);
  font-size: 0.88rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--gold-soft);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* ---------- 반응형 ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .mileage-showcase { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .search-panel { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .fc-code { font-size: 1.25rem; }
}

/* ---------- 접근성: 모션 최소화 선호 시 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .flight-path-plane { offset-path: none; }
}

/* 키보드 포커스 표시 */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================================
   추가 컴포넌트 (2026-07 업데이트: 다국어/관리자 링크/공지사항/
   좌석 등급 탭/마일리지 등급 사다리/회원가입 폼/약관 모달)
   ============================================================ */

/* ---------- Discord / 관리자 링크 버튼 (네비게이션) ---------- */
.discord-btn, .admin-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(11, 42, 107, 0.04);
  font-size: 0.8rem;
  color: var(--ink-dim);
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
  white-space: nowrap;
}
.discord-btn:hover, .admin-link:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  transform: translateY(-1px);
}
.admin-link {
  border-color: var(--border-strong);
  background: rgba(11, 42, 107, 0.08);
  color: var(--gold-soft);
}

/* ---------- 언어 드롭다운 ---------- */
.lang-menu-wrap {
  position: relative;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 6px;
  min-width: 140px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 250;
}
.lang-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lang-option {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--ink-dim);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-option:hover {
  background: rgba(11, 42, 107, 0.1);
  color: var(--ink);
}

/* ---------- 로그아웃 아이콘 버튼 ---------- */
.logout-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(11, 42, 107, 0.04);
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.logout-icon-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* ---------- 히어로 슬로건 ---------- */
.hero-slogan {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
}

/* ---------- 좌석 등급 탭 ---------- */
.class-tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: fit-content;
  margin: 0 auto 34px;
  flex-wrap: wrap;
  justify-content: center;
}
.class-tab {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--ink-dim);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  white-space: nowrap;
}
.class-tab.is-active {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #ffffff;
  font-weight: 700;
}
.fc-class-tag {
  margin-top: 10px;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ---------- 공지사항 ---------- */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.notice-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.25s;
}
.notice-item:hover {
  border-color: var(--border-strong);
}
.notice-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.notice-pin {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(11, 42, 107, 0.16);
  color: var(--gold-soft);
  letter-spacing: 0.05em;
}
.notice-title {
  font-weight: 700;
  flex: 1;
}
.notice-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
}
.notice-body {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 0.88rem;
  color: var(--ink-dim);
  line-height: 1.7;
}
.notice-item.is-open .notice-body {
  display: block;
}

/* ---------- 마일리지 등급 사다리 ---------- */
.tier-ladder {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tier-pip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--ink-faint);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.tier-pip.is-reached {
  border-color: var(--gold);
  color: var(--gold-soft);
  background: rgba(11, 42, 107, 0.1);
}

/* ---------- 예약 카드 - 좌석 등급 배지 ---------- */
.resv-class {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 45, 99, 0.12);
  color: #16408a;
  letter-spacing: 0.04em;
}

/* ---------- 마이페이지 헤더 로그아웃 여백 보정 ---------- */
.mypage-header {
  position: relative;
}

/* ---------- 회원가입/폼 그리드 (모달 공용) ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 4px;
}
.f-field label {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-dim);
  margin-bottom: 6px;
}
.f-field input, .f-field select, .f-field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.f-field input:focus, .f-field select:focus, .f-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(11, 42, 107, 0.14);
}
.f-field input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- 푸터 슬로건/크레딧 ---------- */
.footer-slogan {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}
.footer-credit {
  color: var(--ink-faint);
}
.footer-top .nav-logo {
  align-items: center;
}

/* ---------- 약관 모달 ---------- */
.legal-modal {
  width: min(640px, 100%);
}
.legal-body {
  max-height: 56vh;
  overflow-y: auto;
  font-size: 0.86rem;
  color: var(--ink-dim);
  line-height: 1.75;
  padding-right: 6px;
}
.legal-body h4 {
  color: var(--ink);
  font-size: 0.92rem;
  margin-top: 18px;
  margin-bottom: 6px;
}
.legal-body h4:first-child {
  margin-top: 0;
}
.legal-body p {
  margin-bottom: 10px;
}
.legal-body ul, .legal-body ol {
  margin: 0 0 10px 0;
  padding-left: 20px;
}
.legal-body li {
  margin-bottom: 4px;
}
.legal-body strong {
  color: var(--ink);
}
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 14px;
  font-size: 0.82rem;
}
.legal-body th, .legal-body td {
  border: 1px solid var(--border);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}
.legal-body th {
  color: var(--ink);
  background: var(--surface-2);
  white-space: nowrap;
}
.legal-body .legal-note {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 4px;
}
.legal-body .legal-updated {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

/* ---------- 회원가입 모달: 닫기 버튼 없음(필수 입력) ---------- */
#signupModal .modal-head {
  margin-bottom: 8px;
}

/* ---------- 반응형 추가분 ---------- */
@media (max-width: 860px) {
  .nav-right .discord-btn span, .nav-right .admin-link span { display: none; }
}

/* ================= 검색바 리디자인 (가로 바 형태) ================= */
.search-panel {
  display: flex;
  align-items: center;
  grid-template-columns: none;
  border-radius: 999px;
  padding: 10px 10px 10px 28px;
  gap: 0;
}
.search-panel .field {
  flex: 1;
  min-width: 0;
  gap: 4px;
}
.field-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border-strong);
  margin: 4px 20px;
}
.search-panel .field input,
.search-panel .field select {
  background: transparent;
  border: none;
  padding: 2px 0;
  font-weight: 600;
}
.search-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 15px 26px;
  border-radius: 999px;
  margin-top: 0 !important;
}

/* ================= 요금 캘린더 ================= */
.fare-calendar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto 34px;
}
.fc-cal-nav {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.fc-cal-nav:hover {
  background: var(--surface-2);
  border-color: var(--gold);
}
.fc-cal-days {
  flex: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.fc-cal-days::-webkit-scrollbar { display: none; }
.fc-cal-day {
  flex: 1;
  min-width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.fc-cal-day:hover { border-color: var(--gold); }
.fc-cal-day.is-active {
  background: var(--gold);
  border-color: var(--gold);
}
.fc-cal-day.is-active .fc-cal-date, .fc-cal-day.is-active .fc-cal-fare { color: #fff; }
.fc-cal-day.is-empty { opacity: 0.45; cursor: default; }
.fc-cal-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}
.fc-cal-fare {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--gold-soft);
}
.fc-cal-fare.pass {
  font-size: 0.62rem;
}

/* ================= 항공편 결과 리스트 (리스트형) ================= */
.flight-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 42px;
}
.flight-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 26px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.flight-row:hover {
  border-color: var(--border-strong);
  box-shadow: 0 16px 32px -20px rgba(15, 23, 42, 0.18);
  transform: translateY(-2px);
}
.flight-row.one-time { border-color: var(--gold); }
.flight-row .ot-tag {
  position: absolute;
  top: -10px;
  left: 22px;
  background: var(--gold);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
}
.fr-main {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 280px;
}
.fr-flightno {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  min-width: 90px;
}
.fr-classtag {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--gold-soft);
}
.fr-route {
  display: flex;
  align-items: center;
  gap: 14px;
}
.fr-time-block { text-align: center; }
.fr-time {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.fr-code {
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.fr-route-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 90px;
}
.fr-duration {
  font-size: 0.68rem;
  color: var(--ink-faint);
}
.fr-route-line {
  width: 100%;
  height: 1px;
  background: var(--border-strong);
  position: relative;
}
.fr-route-plane {
  width: 14px;
  height: 14px;
  color: var(--gold);
  margin-top: -8px;
}
.fr-date {
  font-size: 0.78rem;
  color: var(--ink-dim);
}
.fr-side {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.fr-fare-block { text-align: right; min-width: 92px; }
.fr-fare {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
}
.fr-fare.pass-badge { font-size: 0.76rem; }
.fr-mileage {
  font-size: 0.68rem;
  color: var(--ink-faint);
}
.fr-seatsleft {
  font-size: 0.68rem;
  color: var(--success);
  margin-top: 2px;
}
.fr-seatsleft.low { color: var(--danger); }
.fr-side .fc-seat-pick {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.fr-side .fc-seat-selects { width: 150px; }
.fr-side .btn { width: auto; margin-top: 0; padding: 12px 22px; }

@media (max-width: 860px) {
  .search-panel { flex-wrap: wrap; border-radius: var(--radius-lg); padding: 20px; }
  .field-divider { display: none; }
  .search-panel .field { flex: 1 1 100%; }
  .search-submit-btn { width: 100%; justify-content: center; }
  .flight-row { flex-direction: column; align-items: stretch; }
  .fr-side { justify-content: space-between; }
}
