/* ============================================================
   Aeronex Airlines — 관리자 대시보드 스타일
   (고객 사이트와 동일한 브랜드 팔레트, 애니메이션은 절제)
   ============================================================ */

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

:root {
  --bg: #070a13;
  --bg-elev: #0c1120;
  --surface: #121a2e;
  --surface-2: #1a2440;
  --gold: #d4af37;
  --gold-soft: #f0d878;
  --ink: #f5f3ec;
  --ink-dim: #a3abc4;
  --ink-faint: #5b6382;
  --border: rgba(212, 175, 55, 0.14);
  --border-strong: rgba(212, 175, 55, 0.32);
  --success: #59d99a;
  --danger: #f4736b;
  --sky: #4f7cff;
  --font-display: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius: 14px;
  --sidebar-w: 240px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  min-height: 100vh;
}
h1, h2, h3, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
button, input, select, textarea { font-family: inherit; color: inherit; }
::placeholder { color: var(--ink-faint); }

/* ---------- 인증 화면 (설정/로그인) ---------- */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.auth-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 700px 500px at 50% 0%, rgba(212, 175, 55, 0.12), transparent 60%);
  pointer-events: none;
}
.auth-card {
  width: min(380px, 100%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 40px 34px;
  position: relative;
  z-index: 1;
  animation: card-in 0.5s var(--ease-out);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.auth-logo .word {
  background: linear-gradient(120deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-sub {
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  margin-bottom: 28px;
}
.auth-field {
  margin-bottom: 16px;
}
.auth-field label {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-dim);
  margin-bottom: 7px;
  letter-spacing: 0.03em;
}
.auth-field input {
  width: 100%;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.auth-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}
.auth-error {
  color: var(--danger);
  font-size: 0.82rem;
  margin-bottom: 14px;
  min-height: 1.2em;
}
.auth-hint {
  margin-top: 18px;
  font-size: 0.76rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* ---------- 레이아웃 ---------- */
.admin-shell {
  display: none;
  min-height: 100vh;
}
.admin-shell.is-open {
  display: flex;
}
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  padding: 26px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px 26px;
  font-weight: 800;
  font-size: 1.05rem;
}
.sidebar-logo .word {
  background: linear-gradient(120deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sidebar-logo small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ink-faint);
  font-weight: 400;
  letter-spacing: 0.1em;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-dim);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 3px;
}
.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}
.nav-item.is-active {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-soft);
}
.nav-item.is-active svg {
  opacity: 1;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.main {
  flex: 1;
  min-width: 0;
  padding: 34px 40px 60px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 14px;
}
.topbar h1 {
  font-size: 1.5rem;
  font-weight: 800;
}
.topbar .sub {
  color: var(--ink-faint);
  font-size: 0.84rem;
  margin-top: 4px;
}

.page { display: none; }
.page.is-active { display: block; animation: fade-in 0.35s var(--ease-out); }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 카드 / 통계 ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.kpi-card .label {
  font-size: 0.76rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}
.kpi-card .value {
  margin-top: 8px;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gold-soft);
  font-family: var(--font-mono);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.panel-head h3 {
  font-size: 1rem;
  font-weight: 700;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filters input, .filters select {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
  outline: none;
}
.filters input:focus, .filters select:focus {
  border-color: var(--gold);
}

/* ---------- 탭 ---------- */
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 20px;
}
.tab {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--ink-dim);
  transition: background 0.25s, color 0.25s;
}
.tab.is-active {
  background: var(--gold);
  color: #14100a;
  font-weight: 600;
}

/* ---------- 테이블 ---------- */
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
thead th {
  text-align: left;
  padding: 12px 22px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-weight: 500;
}
tbody td {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-dim);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr {
  transition: background 0.15s;
}
tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
td.strong { color: var(--ink); font-weight: 600; }
td.mono { font-family: var(--font-mono); font-size: 0.82rem; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}
.badge.scheduled, .badge.confirmed { background: rgba(79, 124, 255, 0.15); color: #93aeff; }
.badge.boarding { background: rgba(212, 175, 55, 0.16); color: var(--gold-soft); }
.badge.departed, .badge.checked_in, .badge.arrived { background: rgba(89, 217, 154, 0.15); color: var(--success); }
.badge.cancelled { background: rgba(244, 115, 107, 0.15); color: var(--danger); }

.row-actions {
  display: flex;
  gap: 6px;
}
.icon-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-soft); }
.icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); background: rgba(244,115,107,0.08); }
.icon-btn svg { width: 15px; height: 15px; }

.empty-row td {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* ---------- 버튼 / 폼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #14100a;
}
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(212, 175, 55, 0.08); border-color: var(--gold); }
.btn-danger { background: rgba(244, 115, 107, 0.14); color: #ffb3ae; border-color: rgba(244,115,107,0.35);}
.btn-danger:hover { background: rgba(244, 115, 107, 0.24); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; }
.btn-block { width: 100%; justify-content: center; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .full { grid-column: 1 / -1; }
.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: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { border-color: var(--gold); }
.f-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  color: var(--ink-dim);
  cursor: pointer;
}
.f-checkbox input { width: 16px; height: 16px; accent-color: var(--gold); }

/* ---------- 모달 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(3px);
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  overflow-y: auto;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(560px, 100%);
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 28px;
  transform: translateY(-10px);
  transition: transform 0.3s var(--ease-out);
}
.modal-overlay.is-open .modal { transform: translateY(0); }
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-head h3 { font-size: 1.15rem; font-weight: 700; }
.modal-close {
  cursor: pointer;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink-faint);
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.06); color: var(--ink); }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ---------- 요약 그리드 (기내식 확인) ---------- */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.summary-chip {
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.summary-chip .n {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--gold-soft);
  font-weight: 700;
}
.summary-chip .l {
  font-size: 0.76rem;
  color: var(--ink-dim);
  margin-top: 2px;
}

/* ---------- 토스트 ---------- */
.toast-stack {
  position: fixed; bottom: 24px; right: 24px; 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: 13px 18px;
  font-size: 0.85rem;
  min-width: 220px;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.6);
  animation: toast-in 0.3s var(--ease-out);
}
.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(24px); }
  to { opacity: 1; transform: translateX(0); }
}

.spinner {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.25);
  border-top-color: currentColor;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn .spinner { display: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.6; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .sidebar { position: fixed; z-index: 300; transform: translateX(-100%); transition: transform 0.3s var(--ease-out); }
  .sidebar.is-open { transform: translateX(0); }
  .main { padding: 24px 18px 50px; }
  .form-grid { grid-template-columns: 1fr; }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ============================================================
   추가 컴포넌트 (2026-07 업데이트: Discord 전용 인증 / 좌석 등급 /
   공지사항·등급·관리자 계정 관리 / 활동 분석)
   ============================================================ */

.auth-logo .mark, .sidebar-logo .mark {
  border-radius: 6px;
  flex-shrink: 0;
}
.sidebar-logo {
  align-items: center;
}
.sidebar-logo > div {
  display: flex;
  flex-direction: column;
}

/* ---------- 사이드바 내 로그인 사용자 표시 ---------- */
.sidebar-me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px 14px;
  font-size: 0.82rem;
  color: var(--ink-dim);
}
.sidebar-me img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}
.sidebar-me span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 좌석 등급별 설정 (항공편 모달) ---------- */
.class-section-title {
  margin-top: 26px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.class-section-title span {
  display: block;
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--ink-faint);
  margin-top: 4px;
}
.class-config-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.class-config-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.015);
}
.class-config-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-soft);
}
.pass-only-tag {
  margin-left: 6px;
  font-size: 0.64rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-soft);
  vertical-align: middle;
  letter-spacing: 0.02em;
}

/* ---------- 마일리지 등급 설정 행 ---------- */
.tier-edit-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.tier-edit-row:first-child { padding-top: 0; }
.tier-edit-row:last-child { border-bottom: none; }

/* ---------- 관리자 계정 / 회원 관리 배지 ---------- */
.badge.boarding { white-space: nowrap; }

/* ---------- 활동 분석: 막대 차트 ---------- */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 160px;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}
.bar-col .bar {
  width: 100%;
  max-width: 26px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-dim, var(--gold)));
  border-radius: 4px 4px 0 0;
  position: relative;
  min-height: 4px;
  transition: height 0.4s var(--ease-out);
}
.bar-col .bar span {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.66rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.bar-label {
  margin-top: 8px;
  font-size: 0.62rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}

/* ---------- 활동 분석: 등급 분포 ---------- */
.dist-row {
  display: grid;
  grid-template-columns: 140px 1fr 50px;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.82rem;
}
.dist-label { color: var(--ink-dim); }
.dist-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.dist-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim, var(--gold)), var(--gold-soft));
  border-radius: 999px;
}
.dist-count {
  text-align: right;
  font-family: var(--font-mono);
  color: var(--ink-faint);
}

/* ---------- 활동 분석 그리드 레이아웃 ---------- */
.analytics-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .analytics-grid { grid-template-columns: 1fr; }
  .class-config-grid { grid-template-columns: 1fr; }
}

/* ---------- 히어로 배너 관리: 썸네일 미리보기 ---------- */
.hero-row-thumb {
  width: 84px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2, #1a2338);
  border: 1px solid var(--border);
}
.hero-row-thumb img, .hero-row-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-thumb-preview {
  margin-top: 10px;
  width: 160px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero-thumb-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 좌석 배치도(SeatMap) 에디터 ---------- */
.seat-editor-toolbar {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.seat-editor-toolbar .f-field { margin: 0; }
.seat-editor-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  align-items: start;
}
.seat-editor-grid-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  overflow-x: auto;
}
.seat-editor-hint {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.seat-editor-bulk-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.se-row-num.is-clickable { cursor: pointer; }
.se-row-num.is-clickable:hover { color: var(--gold); }
.seat-editor-grid {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: max-content;
}
.se-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.se-row-num {
  width: 26px;
  flex-shrink: 0;
  text-align: right;
  font-size: 0.68rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  padding-right: 4px;
}
.se-seat {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--ink-dim);
  font-size: 0.6rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.15s;
  user-select: none;
}
.se-seat:hover { transform: scale(1.08); border-color: var(--gold-soft); }
.se-seat.is-selected { outline: 2px solid #fff; outline-offset: 1px; }
.se-aisle-gap { width: 16px; flex-shrink: 0; }
.se-seat.class-economy { background: rgba(212, 175, 55, 0.14); border-color: rgba(212, 175, 55, 0.35); color: var(--ink); }
.se-seat.class-nex_premium { background: rgba(79, 124, 255, 0.18); border-color: rgba(79, 124, 255, 0.45); color: #b7c7ff; }
.se-seat.class-presidential_suite { background: rgba(89, 217, 154, 0.16); border-color: rgba(89, 217, 154, 0.4); color: #9be8c4; }
.se-seat.class-pinnacle_suite { background: rgba(244, 115, 107, 0.16); border-color: rgba(244, 115, 107, 0.4); color: #ffb3ae; }
.se-seat.type-exit_row { box-shadow: inset 0 0 0 2px rgba(240, 216, 120, 0.7); }
.se-seat.type-mileage_only { box-shadow: inset 0 0 0 2px rgba(155, 108, 255, 0.7); }
.se-seat.type-disabled { background: var(--bg); color: var(--ink-faint); border-style: dashed; opacity: 0.5; cursor: not-allowed; }

.seat-editor-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 20px;
}
.seat-editor-selection-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-soft);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.seat-editor-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--ink-dim);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.seat-editor-legend div { display: flex; align-items: center; gap: 8px; }
.seat-legend-swatch {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  display: inline-block;
  flex-shrink: 0;
}
.seat-legend-swatch.economy { background: rgba(212, 175, 55, 0.14); border-color: rgba(212, 175, 55, 0.35); }
.seat-legend-swatch.nex_premium { background: rgba(79, 124, 255, 0.18); border-color: rgba(79, 124, 255, 0.45); }
.seat-legend-swatch.presidential_suite { background: rgba(89, 217, 154, 0.16); border-color: rgba(89, 217, 154, 0.4); }
.seat-legend-swatch.pinnacle_suite { background: rgba(244, 115, 107, 0.16); border-color: rgba(244, 115, 107, 0.4); }
.seat-legend-swatch.exit_row { background: var(--surface-2); box-shadow: inset 0 0 0 2px rgba(240, 216, 120, 0.7); }
.seat-legend-swatch.mileage_only { background: rgba(155, 108, 255, 0.18); border-color: rgba(155, 108, 255, 0.5); }
.seat-legend-swatch.disabled { background: var(--bg); border-style: dashed; opacity: 0.6; }

@media (max-width: 900px) {
  .seat-editor-body { grid-template-columns: 1fr; }
  .seat-editor-side { position: static; }
}

