/* -*- coding: utf-8 -*- */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  --bg-main: #030712;
  --bg-page: #090d16;
  --bg-panel: rgba(17, 24, 39, 0.75);
  --bg-soft: rgba(31, 41, 55, 0.6);
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.08);
  --ktx: #3b82f6;
  --srt: #a855f7;
  --active: var(--ktx);
  --danger: #ef4444;
  --success: #10b981;
  --glow-ktx: rgba(59, 130, 246, 0.4);
  --glow-srt: rgba(168, 85, 247, 0.4);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --font-sans:
    "Pretendard Variable",
    Pretendard,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    "Segoe UI",
    sans-serif;
  font-family: var(--font-sans);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  letter-spacing: 0 !important;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, var(--bg-page) 60%);
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  word-break: keep-all;
}

body.is-srt {
  --active: var(--srt);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  min-width: 0;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

p,
h1,
h2,
h3,
h4,
span,
strong,
a,
button,
label,
li,
small {
  word-break: keep-all;
  overflow-wrap: normal;
}

code,
[data-referral-code],
[data-my-referral-code],
.bank-receipt strong {
  word-break: break-word;
  overflow-wrap: anywhere;
}

#console-page {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

/* Header Design */
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, var(--active) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: #ffffff url("assets/jarijaba-app-icon-192.png") center / cover no-repeat;
  box-shadow: 0 0 16px color-mix(in srgb, var(--active) 42%, transparent);
  position: relative;
}

.brand-mark::after {
  content: "";
  display: none;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-label-short {
  display: none;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav a.is-active {
  color: #ffffff;
  background: var(--active);
  box-shadow: 0 0 15px var(--active);
}

.login-button {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13.5px;
  color: #1e1b4b;
  background: #fee500;
  box-shadow: 0 4px 14px rgba(254, 229, 0, 0.3);
  transition: all 0.2s;
}

.login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(254, 229, 0, 0.5);
}

/* App Layout & Core Content */
.booking-shell {
  position: relative;
  padding: 40px 24px 80px;
}

.page-section {
  min-height: calc(100vh - 72px);
  animation: fadeInUp 0.4s ease-out;
}

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

.booking-ambient {
  position: absolute;
  inset: 0 0 auto;
  height: 480px;
  background:
    linear-gradient(180deg, rgba(9, 13, 22, 0.2), var(--bg-page)),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.booking-layout {
  position: relative;
  width: min(1200px, 100%);
  min-width: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.booking-app,
.result-panel,
.journey-card,
.route-summary,
.setup-card,
.admin-panel,
.metric-grid article,
.reservation-modal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.booking-app,
.result-panel {
  min-width: 0;
  padding: 30px;
}

.booking-app {
  position: relative;
  overflow: visible;
  max-width: 100%;
}

.booking-app:focus-within,
.result-panel:focus-within {
  z-index: 80;
}

.app-title {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--active);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.app-title h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-title p,
.section-head p,
.empty-results p,
.setup-card label,
.site-footer {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14.5px;
}

/* Journey Form Elements */
.journey-form {
  display: grid;
  gap: 20px;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.provider-tabs,
.scope-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 10px;
}

.provider-tabs button,
.scope-tabs button,
.seat-action,
.counter button,
.swap-button {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 800;
  transition: all 0.2s;
}

.provider-tabs button {
  min-height: 54px;
  font-size: 16px;
}

.provider-tabs button:hover,
.scope-tabs button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.provider-tabs button.is-active,
.scope-tabs button.is-active {
  color: #ffffff;
  border-color: var(--active);
  background: var(--active);
  box-shadow: 0 0 20px var(--active);
}

.journey-card {
  min-width: 0;
  max-width: 100%;
  padding: 20px;
  overflow: visible;
}

.station-card {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.station-card:focus-within {
  z-index: 1000;
}

label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--bg-soft);
  font-weight: 700;
  transition: all 0.2s;
}

input,
textarea {
  padding: 0 16px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--active);
  outline: none;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
  background: rgba(31, 41, 55, 0.8);
}

select {
  padding: 0 42px 0 16px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 21px) 25px / 6px 6px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 15px) 25px / 6px 6px no-repeat,
    var(--bg-soft);
}

.station-card input {
  min-height: 58px;
  font-size: 22px;
  text-align: center;
  font-weight: 900;
}

.station-field {
  position: relative;
  z-index: 1;
}

.station-autocomplete {
  position: relative;
  z-index: 1;
}

.station-autocomplete:focus-within {
  z-index: 1000;
}

.station-dropdown {
  position: absolute;
  z-index: 1001;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 272px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 10px;
  background: rgba(8, 13, 24, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(18px);
}

.station-dropdown li {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #dbeafe;
  font-size: 15px;
  font-weight: 850;
  text-align: center;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
  cursor: pointer;
}

.station-dropdown li:hover,
.station-dropdown li.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.92), rgba(168, 85, 247, 0.72));
}

.monitor-policy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.monitor-policy.compact {
  margin: 0 0 12px;
}

.monitor-policy span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: rgba(15, 23, 42, 0.42);
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 850;
}

#landing-page .monitor-policy span,
.empty-results .monitor-policy span {
  background: #eff6ff;
  border-color: #dbeafe;
  color: #1d4ed8;
}

#landing-page .station-dropdown {
  border-color: #dbeafe;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

#landing-page .station-dropdown li {
  color: #1e293b;
}

#landing-page .station-dropdown li:hover,
#landing-page .station-dropdown li.is-active {
  color: #ffffff;
  background: #2563eb;
}

.station-card label:last-child {
  text-align: right;
}
.station-card label:last-child input {
  text-align: center;
}

.swap-button {
  width: 44px;
  height: 44px;
  align-self: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 20px;
  display: inline-grid;
  place-items: center;
}

.swap-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  transform: rotate(180deg);
}

.date-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.icon-input {
  position: relative;
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.icon-input > span {
  position: absolute;
  z-index: 1;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}

.icon-input input,
.icon-input select {
  display: block;
  min-width: 0;
  max-width: 100%;
  padding-left: 44px;
  line-height: 1.2;
}

.date-card .icon-input input,
.date-card .icon-input select {
  height: 56px;
  min-height: 56px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 56px;
}

input[type="date"] {
  min-inline-size: 0;
  -webkit-appearance: none;
  appearance: none;
  text-align: center;
}

input[type="date"]::-webkit-date-and-time-value {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  line-height: 1;
  text-align: center;
}

input[type="date"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  line-height: 1;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  margin-left: 0;
}

.option-card {
  display: grid;
  gap: 14px;
}

.option-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 800;
}

.option-card span {
  color: var(--muted);
  font-size: 13px;
}

.scope-tabs button {
  min-height: 44px;
  color: var(--muted);
  background: var(--bg-soft);
  font-size: 13.5px;
}

.scope-tabs.compact {
  gap: 8px;
}

.passenger-card {
  display: grid;
  gap: 14px;
}

.card-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.card-headline span {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.card-headline strong {
  max-width: 100%;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--active);
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 12px;
  font-weight: 800;
  white-space: normal;
}

.referral-headline {
  align-items: flex-start;
}

.referral-code-badge {
  display: grid !important;
  justify-items: end;
  gap: 2px;
  max-width: 100%;
  min-height: 0 !important;
  padding: 8px 11px !important;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.15);
  text-align: right;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
}

.referral-code-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.56);
  background: rgba(59, 130, 246, 0.22);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.referral-code-badge:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.45);
  outline-offset: 3px;
}

.referral-code-badge span {
  color: rgba(191, 219, 254, 0.92);
  font-size: 10.5px;
  font-weight: 900;
}

.referral-code-badge b {
  color: #60a5fa;
  font-size: 13px;
  font-weight: 950;
}

body.is-srt .card-headline strong {
  color: var(--srt);
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.25);
}

body.is-srt .referral-code-badge {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.25);
}

body.is-srt .referral-code-badge:hover {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(192, 132, 252, 0.56);
  box-shadow: 0 10px 24px rgba(168, 85, 247, 0.18);
}

.passenger-row {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 800;
}

.counter {
  width: 128px;
  height: 42px;
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(31, 41, 55, 0.4);
  border: 1px solid var(--line);
}

.counter button {
  width: 38px;
  height: 38px;
  border: 0;
  color: var(--active);
  background: transparent;
  font-size: 16px;
}

.counter button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.counter strong {
  text-align: center;
  font-size: 16px;
}

.details-toggle {
  min-height: 40px;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  transition: color 0.2s;
}

.details-toggle:hover {
  color: var(--ink);
}

.details-toggle span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s;
}

.details-toggle[aria-expanded="true"] span {
  transform: rotate(180deg);
}

.passenger-details {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  color: #ffffff;
  background: var(--active);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
  font-size: 17px;
  font-weight: 900;
  border-radius: 8px;
  transition: all 0.2s;
}

body.is-srt .search-button {
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
}

.search-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px var(--active);
}

/* Route Summary Board */
.route-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 108px;
  margin-bottom: 24px;
  padding: 20px 28px;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.4), rgba(17, 24, 39, 0.4));
}

.route-summary > strong {
  min-width: 0;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  white-space: nowrap;
}

.route-summary > strong:last-child {
  text-align: right;
}

.route-summary div {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.route-summary span {
  color: var(--active);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.route-summary small {
  color: var(--muted);
  font-size: 12px;
}

.route-summary i {
  color: rgba(255, 255, 255, 0.3);
  font-style: normal;
  font-size: 26px;
}

.result-head,
.section-head.split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.result-head h2,
.section-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

[data-login-state] {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 99px;
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-size: 11.5px;
  font-weight: 800;
}

body.is-logged-in [data-login-state] {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.empty-results {
  min-height: 200px;
  display: grid;
  place-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 30px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(255, 255, 255, 0.01);
}

.empty-results strong {
  display: block;
  font-size: 18px;
  color: var(--ink);
}

.train-results {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.train-card {
  display: grid;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(31, 41, 55, 0.25);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: all 0.2s;
}

.train-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(31, 41, 55, 0.35);
}

.train-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.train-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.train-duration {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.time-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.time-line strong {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.time-line strong:last-child {
  text-align: right;
}

.time-line span {
  color: rgba(255, 255, 255, 0.2);
  font-size: 22px;
}

.seat-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.seat-actions.single {
  grid-template-columns: 1fr;
}

.seat-choice {
  min-height: 106px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.44);
}

.seat-choice.is-open {
  border-color: rgba(16, 185, 129, 0.22);
  background: rgba(15, 23, 42, 0.44);
}

.seat-choice.is-standby {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(120, 53, 15, 0.12);
}

.seat-choice-info {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
}

.seat-choice-info strong {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 900;
}

.seat-status-badge {
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.seat-status-badge.is-waiting {
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.12);
}

.seat-status-badge.is-open {
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.12);
}

.seat-status-badge.is-standby {
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.13);
}

.seat-action {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.24);
  font-size: 13.5px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.seat-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 30px rgba(59, 130, 246, 0.32);
}

.seat-action:active {
  transform: translateY(0);
}

body.is-srt .seat-action {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  box-shadow: 0 12px 24px rgba(168, 85, 247, 0.25);
}

body.is-srt .seat-action:hover {
  box-shadow: 0 16px 30px rgba(168, 85, 247, 0.34);
}

/* Timeline & Live Deck Dashboard */
.live-desk {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  margin-top: 24px;
}

.live-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 13, 22, 0.95), rgba(9, 13, 22, 0.75)),
    radial-gradient(circle at 10% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Success desk, Account desk, Point desk, Admin boards */
.success-section,
.account-section,
.admin-section {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 60px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head.split > p {
  max-width: 480px;
  margin: 6px 0 0;
}

.metric-grid,
.account-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.account-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.metric-grid article {
  min-height: 120px;
  padding: 22px;
  background: rgba(31, 41, 55, 0.2);
}

.metric-grid article > span {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  font-weight: 900;
}

.metric-success-value {
  display: inline-flex !important;
  align-items: baseline;
  gap: 3px;
  color: var(--ink);
  line-height: 1.15;
}

.metric-success-value [data-metric-success-rate] {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.metric-success-value [data-metric-success-unit] {
  color: inherit;
  font-size: 0.78em;
  font-weight: 900;
}

.metric-success-value.is-pending {
  font-size: 18px;
  color: var(--muted);
}

.reservation-board {
  margin: 24px 0;
}

.reservation-list {
  display: grid;
  gap: 10px;
}

.reservation-list > p {
  margin: 0;
  padding: 28px 0;
  color: var(--muted);
  text-align: center;
}

.request-history-table {
  width: 100%;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.32);
}

.request-history-head,
.request-history-row {
  display: grid;
  grid-template-columns: 0.7fr 1fr 0.8fr 0.8fr 1.25fr 0.9fr 0.9fr 1.15fr 1.05fr 0.65fr;
  gap: 10px;
  align-items: center;
}

.request-history-head {
  min-height: 46px;
  padding: 0 16px;
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.09);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 12px;
  font-weight: 900;
}

.request-history-row {
  min-height: 76px;
  padding: 14px 16px;
  color: var(--ink);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  transition: background-color 0.2s, transform 0.2s;
}

.request-history-row:last-child {
  border-bottom: 0;
}

.request-history-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.request-history-row > span,
.request-history-row > strong {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: rgba(226, 232, 240, 0.9);
  font-size: 12.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.request-history-row > strong {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 900;
}

.request-history-row small {
  color: rgba(148, 163, 184, 0.9);
  font-size: 11.5px;
  line-height: 1.35;
}

.request-history-status {
  align-content: center;
}

.request-status-pill {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.14);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.request-status-pill.reserved {
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.28);
}

.request-status-pill.waitlisted {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.13);
  border-color: rgba(245, 158, 11, 0.28);
}

.request-status-pill.expired,
.request-status-pill.cancelled {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.22);
}

.request-status-pill.failed {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.13);
  border-color: rgba(239, 68, 68, 0.24);
}

.request-status-spinner {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 2px solid rgba(191, 219, 254, 0.3);
  border-top-color: #60a5fa;
  animation: status-spin 0.82s linear infinite;
}

.request-status-icon {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.request-stop-button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  color: #fee2e2;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.28);
  font-size: 12px;
  font-weight: 900;
}

.request-stop-button:hover:not(:disabled) {
  color: #ffffff;
  background: rgba(239, 68, 68, 0.28);
  border-color: rgba(248, 113, 113, 0.46);
}

.request-stop-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.request-action-muted {
  color: rgba(148, 163, 184, 0.86);
  font-size: 12px;
  font-weight: 800;
}

@keyframes status-spin {
  to {
    transform: rotate(360deg);
  }
}

.reservation-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.7fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.reservation-row div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.reservation-row strong,
.reservation-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.reservation-row strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.reservation-row span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.request-status {
  justify-items: end;
  text-align: right;
}

.request-status strong {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 12px;
}

.request-status.reserved strong {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.25);
}

.request-status.waitlisted strong {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.25);
}

.request-status.failed strong,
.request-status.expired strong,
.request-status.cancelled strong {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.25);
}

/* Forms & Admin Dashboard Panels */
.setup-card,
.admin-panel {
  padding: 24px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.setup-form {
  display: grid;
  gap: 16px;
}

.point-grid {
  width: min(980px, 100%);
  grid-template-columns: minmax(360px, 480px) minmax(300px, 360px);
  justify-content: center;
  gap: 0;
  align-items: stretch;
  margin: 0 auto;
}

.referral-spotlight-card {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbeafe;
  --active: #2563eb;
  width: 100%;
  min-height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  align-content: start;
  margin: 0;
  padding: 28px;
  color: #0f172a;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 54%, #eff6ff 100%);
  border: 1px solid rgba(191, 219, 254, 0.82);
  border-left: 0;
  border-radius: 0 18px 18px 0;
  box-shadow: 18px 18px 48px rgba(15, 23, 42, 0.10);
}

.referral-spotlight-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.referral-spotlight-copy .eyebrow {
  color: #2563eb;
}

.referral-spotlight-copy h3 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
  font-weight: 950;
}

.referral-spotlight-copy p:not(.eyebrow) {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 750;
}

.referral-spotlight-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.referral-code-box {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.referral-code-box > span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.referral-code-box > strong {
  min-width: 0;
  color: #2563eb;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.1;
  font-weight: 1000;
}

.referral-code-box > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.referral-code-box .ghost-button {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.referral-code-box .submit-button {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.referral-spotlight-card.is-referral-focus {
  animation: referral-focus 1.45s ease;
}

@keyframes referral-focus {
  0%, 100% {
    box-shadow: none;
  }
  30%, 70% {
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.18), 0 22px 48px rgba(37, 99, 235, 0.16);
  }
}

.pending-topup-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -6px 0 22px;
  padding: 18px 20px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.92));
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.pending-topup-banner[hidden] {
  display: none;
}

.pending-topup-banner strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 15px;
}

.pending-topup-banner span {
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.pending-topup-banner button {
  flex: 0 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
}

.point-card {
  --ink: #0f172a;
  --muted: #667085;
  --line: #e5e7eb;
  gap: 20px;
  height: 100%;
  padding: 28px;
  color: var(--ink);
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  border-radius: 18px 0 0 18px;
  box-shadow: -18px 18px 48px rgba(15, 23, 42, 0.12);
}

.point-wallet-card {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #edf1f7;
}

.point-wallet-card > div,
.point-wallet-card b {
  min-width: 0;
}

.point-wallet-card span {
  display: block;
  margin-bottom: 6px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 800;
}

.point-wallet-card strong {
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.point-wallet-card b {
  color: #2563eb;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 950;
  line-height: 1.18;
  text-align: right;
  white-space: normal;
}

.topup-form {
  gap: 14px;
}

.topup-label {
  display: grid;
  gap: 8px;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.topup-label.compact {
  margin-top: 14px;
  color: #667085;
  font-size: 13px;
}

.topup-label input {
  min-height: 54px;
  width: 100%;
  padding: 0 16px;
  color: #111827;
  background: #f9fafb;
  border: 1px solid #edf1f7;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 850;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.topup-label input::placeholder {
  color: #c0c6d1;
}

.topup-label input:focus {
  background: #ffffff;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.topup-helper {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 12px;
  line-height: 1.55;
}

.topup-helper strong {
  flex: 0 0 auto;
}

.topup-divider {
  height: 1px;
  margin: 18px 0 8px;
  background: #edf1f7;
}

.topup-amount-section {
  display: grid;
  gap: 12px;
}

.topup-amount-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.topup-amount-head strong {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.topup-amount-head span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 850;
}

.admin-auth-panel {
  margin-bottom: 20px;
  border-color: rgba(59, 130, 246, 0.26);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(168, 85, 247, 0.10)),
    rgba(17, 24, 39, 0.55);
}

.admin-token-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.admin-token-actions {
  display: flex;
  gap: 10px;
}

.ghost-button {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-weight: 800;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.10);
}

.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kakao-connect-button {
  min-height: 50px;
  border-radius: 8px;
  color: #1f2937;
  background: #fee500;
  box-shadow: 0 8px 20px rgba(254, 229, 0, 0.2);
  font-weight: 900;
  transition: transform 0.2s, box-shadow 0.2s;
}

.kakao-connect-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(254, 229, 0, 0.34);
}

.submit-button {
  min-height: 50px;
  border-radius: 8px;
  font-weight: 800;
  color: #ffffff;
  background: var(--active);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.2);
  transition: all 0.2s;
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--active);
}

.submit-button:disabled {
  cursor: not-allowed;
  color: #ffffff;
  background: #c9ced7;
  box-shadow: none;
  transform: none;
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.amount-chip {
  position: relative;
  width: 100%;
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: 4px;
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #111827;
  font-weight: 900;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.amount-chip:hover {
  border-color: #60a5fa;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.amount-chip em {
  position: absolute;
  top: -13px;
  left: 50%;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #ffffff;
  background: #3b82f6;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
  transform: translateX(-50%);
}

.amount-chip span {
  color: #2563eb;
  font-size: 20px;
}

.amount-chip strong {
  color: #3b82f6;
  font-size: 12px;
}

.amount-chip small {
  color: #2563eb;
  font-size: 12px;
  line-height: 1.45;
}

.topup-submit {
  margin-top: 8px;
  font-size: 15px;
}

.topup-submit.is-ready {
  background: #3b82f6 !important;
  background-image: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.28) !important;
}

.topup-submit.is-waiting {
  background: #c9ced7 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.deposit-confirmation {
  margin-top: 20px;
  padding: 26px 24px;
  border-top: 4px solid #3b82f6;
  border-radius: 8px;
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
}

.deposit-confirmation[hidden] {
  display: none;
}

.deposit-confirmation-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #2563eb;
  background: #dbeafe;
  font-weight: 900;
  font-size: 22px;
}

.deposit-confirmation h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: #111827;
}

.deposit-confirmation p {
  margin: 0 0 18px;
  color: #667085;
  line-height: 1.7;
  font-size: 14px;
}

.bank-receipt {
  display: grid;
  gap: 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.bank-receipt div {
  min-height: 46px;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

.bank-receipt div:last-child {
  border-bottom: 0;
}

.bank-receipt span {
  color: #98a2b3;
  font-size: 13px;
}

.bank-receipt strong {
  text-align: right;
  color: #111827;
  font-size: 15px;
}

.bank-receipt button {
  padding: 5px 8px;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 900;
  font-size: 11px;
}

.bank-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.deposit-warning {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  color: #ef4444;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.deposit-warning strong {
  display: block;
  margin-bottom: 4px;
}

.deposit-warning p {
  margin: 0;
  color: #ef4444;
  font-size: 12px;
}

.deposit-feed {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.point-card .deposit-feed {
  color: #667085;
}

.shortcut-guide-card {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.08);
}

.shortcut-guide-card strong {
  color: var(--ink);
  font-size: 13px;
}

.shortcut-guide-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.6;
}

.shortcut-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
  font-size: 12px;
  font-weight: 800;
}

.resilience-copy {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
}

.resilience-copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.resilience-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.6;
}

.table-list {
  display: grid;
  gap: 8px;
}

.table-list p {
  color: rgba(255,255,255,0.25);
  text-align: center;
  padding: 30px 0;
  font-size: 14px;
}

.table-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  font-size: 13px;
}

.table-row strong {
  color: var(--ink);
}

.table-row button {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  background: var(--danger);
  color: #ffffff;
  font-weight: 800;
}

.admin-panel.wide {
  grid-column: span 3;
}

.my-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.profile-card {
  min-height: 280px;
}

.profile-kpi {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.viral-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.viral-progress {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(59, 130, 246, 0.20);
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.08);
}

.viral-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.viral-progress-head strong {
  color: var(--active);
  white-space: nowrap;
}

.viral-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}

.viral-progress-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #8b5cf6);
  transition: width 220ms ease;
}

.viral-progress p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.viral-actions .ghost-button,
.viral-actions .submit-button {
  min-height: 44px;
  padding: 0 12px;
  font-size: 13px;
}

.push-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.push-actions .submit-button,
.push-actions .ghost-button {
  min-height: 44px;
  padding: 0 12px;
  font-size: 13px;
}

.push-guide {
  margin: 12px 0 0;
  padding: 12px 14px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.6;
}

.device-push-guide {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.device-push-current {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(124, 58, 237, 0.10));
}

.device-push-current strong {
  color: #dbeafe;
  font-size: 13px;
  font-weight: 950;
}

.device-push-current span {
  color: rgba(226, 232, 240, 0.78);
  font-size: 12.5px;
  line-height: 1.55;
  font-weight: 700;
}

.device-push-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.device-push-card {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.device-push-card strong {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 950;
}

.device-push-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.device-push-steps {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.device-push-steps li::marker {
  color: #60a5fa;
  font-weight: 900;
}

.operator-canary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 14px;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
}

.operator-canary div:first-child {
  display: grid;
  gap: 4px;
}

.operator-canary strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.operator-canary span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.operator-canary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.operator-canary-actions .ghost-button {
  min-height: 36px;
  padding: 0 11px;
  font-size: 12px;
}

.viral-rules {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.viral-rules li {
  position: relative;
  padding-left: 16px;
}

.viral-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ktx), var(--srt));
}

.profile-kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-kpi strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

/* Modals & Backdrop */
.modal-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reservation-modal {
  position: fixed;
  z-index: 50;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 32px));
  margin: 0;
  padding: 30px;
  display: grid;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: translate(-50%, -45%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.modal-icon {
  font-size: 32px;
  color: var(--active);
  text-shadow: 0 0 15px var(--active);
}

.reservation-modal h2 {
  font-size: 22px;
  font-weight: 900;
}

.modal-train {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  border: 1px solid var(--line);
}

.modal-note {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.point-warning {
  padding: 12px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  font-size: 12px;
}

.point-warning strong {
  display: block;
  margin-bottom: 2px;
}

.point-warning.is-postpaid {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.24);
}

.modal-passengers {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.payment-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  font-weight: 800;
}

.reservation-alert-check {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.10);
}

.reservation-alert-check strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.reservation-alert-check span {
  grid-column: 1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.reservation-alert-check button {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 36px;
  padding: 0 12px;
  color: #ffffff;
  background: rgba(59, 130, 246, 0.95);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}

.modal-push-guide {
  display: grid;
  gap: 7px;
  margin-top: -8px;
  padding: 12px 14px;
  color: rgba(226, 232, 240, 0.78);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.modal-submit {
  min-height: 48px;
  color: #ffffff;
  background: var(--active);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  font-size: 15px;
  font-weight: 900;
}

.modal-cancel {
  min-height: 44px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  font-size: 14px;
}

.modal-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.critical-alert {
  position: fixed;
  z-index: 130;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(12px);
}

.critical-alert[hidden] {
  display: none;
}

.critical-alert-card {
  width: min(460px, 100%);
  padding: 30px;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid rgba(191, 219, 254, 0.75);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.38);
  animation: criticalAlertIn 0.22s ease-out;
}

.critical-alert-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 14px;
  font-size: 24px;
  font-weight: 1000;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}

.critical-alert-card .eyebrow {
  margin-bottom: 8px;
  color: #2563eb;
}

.critical-alert-card h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 27px;
  line-height: 1.22;
  font-weight: 950;
}

.critical-alert-card p {
  margin: 0;
  color: #334155;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 750;
}

.critical-alert-card strong {
  display: block;
  margin-top: 16px;
  padding: 12px 14px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.postpaid-payment-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #f8fbff;
}

.postpaid-payment-box[hidden] {
  display: none;
}

.postpaid-payment-title {
  margin: 0 0 12px !important;
  color: #0f172a !important;
  font-size: 15px !important;
  font-weight: 950 !important;
}

.postpaid-receipt {
  display: grid;
  border-top: 1px solid #dbeafe;
  border-bottom: 1px solid #dbeafe;
}

.postpaid-receipt div {
  min-height: 42px;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #dbeafe;
}

.postpaid-receipt div:last-child {
  border-bottom: 0;
}

.postpaid-receipt span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.postpaid-receipt strong {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #0f172a;
  background: transparent;
  border: 0;
  text-align: right;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.postpaid-receipt button {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  color: #2563eb;
  background: #dbeafe;
  font-size: 11px;
  font-weight: 900;
}

.critical-alert-card .postpaid-warning {
  margin-top: 12px;
  padding: 11px 12px;
  color: #dc2626;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 850;
}

.critical-alert-actions {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 10px;
  margin-top: 22px;
}

.critical-alert-actions button {
  min-height: 48px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
}

.critical-alert-actions button:first-child {
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.critical-alert-actions button:last-child {
  color: #475569;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
}

@keyframes criticalAlertIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(10px);
}

.auth-modal {
  position: fixed;
  z-index: 90;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 32px));
  margin: 0;
  padding: 34px;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.auth-modal::backdrop {
  background: transparent;
}

.auth-modal:not([open]) {
  display: none;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #64748b;
  background: #f8fafc;
  font-size: 22px;
  line-height: 1;
}

.auth-close:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.auth-mark {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.auth-eyebrow {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.auth-modal h2 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.28;
  font-weight: 900;
}

.auth-copy,
.auth-footnote {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  outline: none;
}

.auth-form input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.auth-submit {
  min-height: 50px;
  margin-top: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.75;
}

/* Toast Message */
.toast {
  position: fixed;
  z-index: 100;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  width: min(520px, calc(100vw - 32px));
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.is-success {
  border-color: rgba(16, 185, 129, 0.34);
  background: rgba(6, 78, 59, 0.96);
  box-shadow: 0 18px 36px rgba(16, 185, 129, 0.22);
}

.toast.is-warning {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(120, 53, 15, 0.96);
}

/* Footer Section */
.site-footer {
  text-align: center;
  padding: 60px 24px;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.4);
}

.site-footer p {
  margin: 0 0 8px;
  font-size: 13.5px;
}

.site-footer a {
  margin: 0 6px;
  color: var(--muted);
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--ink);
}

/* Reservation Progress Timeline Styles */
.timeline-card {
  background: #090d16 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6) !important;
}

.agent-timeline-list::-webkit-scrollbar {
  width: 4px;
}
.agent-timeline-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}
.agent-timeline-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.2s, background-color 0.2s;
}

.timeline-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.timeline-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.agent-name {
  font-size: 13.5px;
  font-weight: 800;
}

.agent-name.korail {
  color: #60a5fa;
}

.agent-name.srt {
  color: #c084fc;
}

.agent-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.agent-status-badge.running {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  animation: pulse-glow 2s infinite;
}

.agent-status-badge.exited {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.agent-status-badge.reserved {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

.agent-status-badge.expired,
.agent-status-badge.completed {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

.agent-status-badge.candidate {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.agent-status-badge.failed {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.timeline-item-body {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--muted);
}

.timeline-events {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.82);
}

.timeline-item.reserved {
  border-color: rgba(16, 185, 129, 0.32);
}

.timeline-item.expired,
.timeline-item.completed {
  opacity: 0.82;
}

.timeline-time {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.25);
  text-align: right;
  margin-top: 1px;
}

@keyframes pulse-glow {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

/* Mobile Media Queries */
@media (max-width: 960px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 14px;
    padding: 14px 16px 12px;
  }

  .brand {
    min-width: 0;
    font-size: 20px;
  }

  .brand span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .login-button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
  }

  .site-nav {
    grid-column: span 2;
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 4px 0 0;
    overflow: visible;
    justify-content: stretch;
  }

  .site-nav a {
    min-width: 0;
    min-height: 42px;
    padding: 0 8px;
    border-radius: 11px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .nav-label-full {
    display: none;
  }

  .nav-label-short {
    display: inline;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .account-grid,
  .admin-grid,
  .my-info-grid {
    grid-template-columns: 1fr;
  }

  .point-grid {
    width: min(100%, 480px);
    gap: 18px;
  }

  .point-card {
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  }

  .referral-spotlight-card {
    border-left: 1px solid rgba(191, 219, 254, 0.82);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
  }

  .pending-topup-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .pending-topup-banner button {
    width: 100%;
  }

  .referral-spotlight-card {
    grid-template-columns: 1fr;
  }

  .station-card {
    grid-template-columns: 1fr;
  }

  .station-card label:last-child {
    text-align: left;
  }

  .swap-button {
    justify-self: center;
    transform: rotate(90deg);
  }

  .swap-button:hover {
    transform: rotate(270deg);
  }

  .admin-panel.wide {
    grid-column: span 1;
  }

  .admin-token-form {
    grid-template-columns: 1fr;
  }

  .admin-token-actions {
    flex-wrap: wrap;
  }

  .request-history-table {
    overflow: visible;
    border: 0;
    background: transparent;
    gap: 10px;
  }

  .request-history-head {
    display: none;
  }

  .request-history-row {
    grid-template-columns: 1fr;
    gap: 9px;
    min-height: 0;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.42);
  }

  .request-history-row > span,
  .request-history-row > strong {
    grid-template-columns: 92px 1fr;
    align-items: start;
  }

  .request-history-row > span::before,
  .request-history-row > strong::before {
    content: attr(data-label);
    color: rgba(148, 163, 184, 0.92);
    font-size: 11.5px;
    font-weight: 900;
  }

  .request-history-status {
    align-items: start;
  }

  .request-history-status small {
    grid-column: 2;
  }

  .reservation-row {
    grid-template-columns: 1fr;
  }

  .request-status {
    justify-items: start;
    text-align: left;
  }

  .route-summary {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 10px;
  }

  .route-summary > strong,
  .route-summary > strong:last-child {
    text-align: center;
    white-space: normal;
  }

  .result-head,
  .section-head.split {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .success-section,
  .account-section,
  .admin-section {
    width: min(100% - 28px, 1200px);
    padding: 34px 0 52px;
  }

  .section-head h2,
  .result-head h2 {
    font-size: clamp(24px, 8vw, 32px);
    line-height: 1.2;
  }

  .section-head.split > p,
  .app-title p {
    font-size: 13.5px;
    line-height: 1.65;
  }

  .referral-spotlight-card {
    padding: 18px;
    border-radius: 16px;
  }

  .referral-code-box > div {
    grid-template-columns: 1fr;
  }

  .referral-code-box .ghost-button,
  .referral-code-box .submit-button {
    min-height: 46px;
  }

  .viral-progress-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .viral-actions {
    grid-template-columns: 1fr;
  }

  .push-actions {
    grid-template-columns: 1fr;
  }

  .device-push-grid {
    grid-template-columns: 1fr;
  }

  .operator-canary {
    align-items: stretch;
    flex-direction: column;
  }

  .operator-canary-actions {
    justify-content: stretch;
  }

  .operator-canary-actions .ghost-button {
    flex: 1;
  }

  .reservation-alert-check,
  .critical-alert-actions {
    grid-template-columns: 1fr;
  }

  .reservation-alert-check span,
  .reservation-alert-check button {
    grid-column: 1;
    grid-row: auto;
  }

  .booking-shell {
    padding: 22px max(10px, env(safe-area-inset-left)) 56px max(10px, env(safe-area-inset-right));
  }

  .booking-app,
  .result-panel,
  .setup-card,
  .admin-panel {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    overflow: hidden;
  }

  .metric-grid,
  .form-row.two {
    grid-template-columns: 1fr;
  }

  .date-card {
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: hidden;
  }

  .date-card .icon-input {
    width: 100%;
  }

  .date-card input,
  .date-card select {
    height: 56px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 56px;
    font-size: 16px;
    line-height: 56px;
  }

  .provider-tabs {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
  }

  .scope-tabs {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .scope-tabs button {
    min-height: 58px;
    padding: 0 14px;
    font-size: 15px;
    line-height: 1.25;
    white-space: normal;
  }

  .station-card input {
    font-size: clamp(20px, 7vw, 28px);
  }

  .point-wallet-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .point-wallet-card b {
    text-align: left;
    font-size: clamp(24px, 8vw, 34px);
  }

  .topup-amount-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .bank-receipt div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }

  .bank-receipt strong {
    text-align: left;
  }

  .bank-actions {
    grid-template-columns: 1fr;
  }

  .route-summary {
    min-height: 0;
    padding: 18px;
  }

  .route-summary > strong {
    font-size: clamp(28px, 12vw, 42px);
    line-height: 1.12;
  }

  .train-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .time-line {
    gap: 8px;
  }

  .time-line strong {
    font-size: clamp(30px, 12vw, 44px);
  }

  .seat-actions {
    grid-template-columns: 1fr;
  }

  .seat-choice {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .seat-action {
    width: 100%;
  }

  .passenger-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .counter {
    width: 100%;
  }

  .card-headline {
    align-items: flex-start;
    flex-direction: column;
  }

  .referral-code-badge {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-inline: 12px;
  }

  .site-nav {
    gap: 6px;
  }

  .site-nav a {
    min-height: 40px;
    font-size: 12px;
    padding: 0 6px;
  }

  .login-button {
    padding: 0 14px;
    font-size: 13px;
  }

  .booking-shell {
    padding-inline: max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right));
  }

  .booking-app,
  .result-panel,
  .setup-card,
  .admin-panel {
    padding: 16px;
  }

  .journey-card {
    padding: 16px;
  }

  .date-card input,
  .date-card select {
    height: 54px;
    min-height: 54px;
    line-height: 54px;
  }

  .date-card input[type="date"] {
    padding-right: 12px;
    text-align: center;
  }

  .icon-input > span {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
  }

  .icon-input input,
  .icon-input select {
    padding-left: 42px;
  }

  .scope-tabs {
    grid-template-columns: 1fr;
  }

  .time-line {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .time-line strong,
  .time-line strong:last-child {
    text-align: center;
  }

  .time-line span {
    transform: rotate(90deg);
  }
}

/* ----------------------------------------------------
   자리잡아 White Luxury Landing Page Styles
   ---------------------------------------------------- */
#landing-page {
  background: #ffffff;
  color: #334155;
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  display: block;
}

#landing-page a {
  color: inherit;
  text-decoration: none;
}

/* Landing Header */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #f1f5f9;
}

.landing-header-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.landing-brand-mark {
  width: 28px;
  height: 28px;
  background: #ffffff url("assets/jarijaba-app-icon-192.png") center / cover no-repeat;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.landing-brand-mark::after {
  content: "";
  display: none;
}

.landing-nav {
  display: flex;
  gap: 28px;
}

.landing-nav a {
  font-size: 14.5px;
  font-weight: 700;
  color: #475569;
  transition: color 0.2s;
}

.landing-nav a:hover {
  color: #2563eb;
}

.landing-auth {
  display: flex;
  align-items: center;
  gap: 16px;
}

.landing-login-link {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  border: 0;
  background: none;
}

.landing-login-link:hover {
  color: #2563eb;
}

.landing-start-button {
  background: #2563eb;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  transition: all 0.2s;
}

.landing-start-button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.landing-start-button.is-logout {
  color: #475569;
  background: #ffffff;
  border-color: #dbe3ef;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.landing-start-button.is-logout:hover {
  color: #0f172a;
  background: #f8fafc;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

/* Landing Hero Section */
.landing-hero {
  padding: 80px 20px 100px;
  background: radial-gradient(100% 100% at 50% 0%, #eff6ff 0%, #ffffff 70%);
  text-align: center;
}

.reservation-modal:not([open]) {
  display: none;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 24px;
  border: 1px solid #bae6fd;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: #60a5fa;
  border-radius: 50%;
}

@keyframes pulse-glow-blue {
  0% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.6; }
}

.hero-title {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -1.5px;
  margin: 0 0 24px;
}

.highlight-blue {
  color: #2563eb;
  position: relative;
  display: inline-block;
}

.highlight-blue::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 12px;
  background: rgba(37, 99, 235, 0.12);
  z-index: -1;
  border-radius: 4px;
}

.hero-description {
  font-size: 17px;
  color: #475569;
  line-height: 1.7;
  margin: 0 0 40px;
}

.hero-description strong {
  color: #0f172a;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-primary {
  background: #2563eb;
  color: #ffffff;
  padding: 16px 36px;
  border-radius: 10px;
  font-size: 16.5px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
  transition: all 0.2s;
}

.hero-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1.5px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.4);
}

.hero-secondary {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 16px 28px;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 800;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}

.hero-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.landing-flow-strip {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 auto 34px;
}

.landing-flow-strip button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.06);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.landing-flow-strip button:hover {
  transform: translateY(-1px);
  border-color: #93c5fd;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.12);
}

.landing-flow-strip span {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f3ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 700;
}

/* Landing Features Section */
.landing-features {
  padding: 100px 20px;
  background: #f8fafc;
  text-align: center;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.section-container {
  max-width: 1020px;
  margin: 0 auto;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
}

.section-title .accent {
  color: #2563eb;
}

.section-subtitle {
  font-size: 16.5px;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  padding: 36px 28px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  text-align: left;
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  background-color: #eff6ff;
  position: relative;
}

.feature-icon::before {
  content: "";
  font-size: 22px;
}

.feature-icon.eye {
  background-color: #eff6ff;
}
.feature-icon.eye::before {
  content: "👥";
}

.feature-icon.shield {
  background-color: #f0fdf4;
}
.feature-icon.shield::before {
  content: "🛡️";
}

.feature-icon.coin {
  background-color: #fefaf0;
}
.feature-icon.coin::before {
  content: "💰";
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
}

.feature-card p {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Landing Success Section */
.landing-success {
  padding: 100px 20px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.success-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  text-align: left;
}

.success-header .section-subtitle {
  margin: 0;
}

.success-rate-badge {
  text-align: right;
}

.success-rate-badge strong {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 2px;
  font-size: 0;
  font-weight: 900;
  color: #2563eb;
  line-height: 1;
}

.success-rate-badge strong [data-landing-success-rate] {
  font-size: 30px;
  line-height: 1;
}

.success-rate-badge strong .success-rate-percent {
  font-size: 32px;
  font-style: normal;
  line-height: 1;
}

.success-rate-badge > span {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.daily-success-card {
  flex: 0 0 320px;
  min-height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  text-align: left;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.daily-success-card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: 0 24px 54px rgba(37, 99, 235, 0.14);
}

.daily-success-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.daily-success-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 14px;
  font-weight: 950;
}

.daily-success-top strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.daily-success-top span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 750;
}

.daily-success-top em {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.daily-success-card p {
  margin: 18px 0;
  color: #334155;
  font-size: 14.5px;
  line-height: 1.65;
  font-weight: 650;
}

.daily-success-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.daily-success-meta span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 850;
}

/* Landing Pricing Section */
.landing-pricing {
  padding: 100px 20px;
  background: #f8fafc;
  text-align: center;
  border-top: 1px solid #f1f5f9;
}

.pricing-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: 28px;
  margin-top: 50px;
  margin-bottom: 30px;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.02);
}

.pricing-card.popular {
  border: 2px solid #2563eb;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}

.pricing-badge {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
}

.pricing-badge.blue {
  background: #2563eb;
  color: #ffffff;
}

.pricing-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}

.pricing-card .desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 32px;
  min-height: 42px;
}

.pricing-card .price {
  font-size: 16px;
  color: #64748b;
  margin-top: auto;
  margin-bottom: 32px;
}

.pricing-card .price strong {
  font-size: 38px;
  font-weight: 900;
  color: #0f172a;
}

.discount-tag {
  display: inline-block;
  background: #fee2e2;
  color: #ef4444;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.highlight-green {
  color: #10b981;
  font-weight: 700;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
}

.pricing-btn {
  width: 100%;
  min-height: 52px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  font-size: 15px;
  font-weight: 800;
  transition: all 0.2s;
}

.pricing-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.pricing-btn.blue {
  background: #2563eb;
  color: #ffffff;
  border: 0;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
}

.pricing-btn.blue:hover {
  background: #1d4ed8;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.price-disclaimer {
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 16px;
}

/* Landing Footer */
.landing-footer {
  background: #ffffff;
  padding: 60px 20px 80px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 13.5px;
  color: #64748b;
}

.footer-container {
  max-width: 1020px;
  margin: 0 auto;
}

.footer-brand {
  font-size: 18px;
  font-weight: 900;
  color: #334155;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-links a {
  font-weight: 700;
  color: #475569;
}

.footer-links a:hover {
  color: #2563eb;
}

.copyright {
  margin: 0;
  line-height: 1.6;
  color: #94a3b8;
}

/* Mobile responsive for landing page */
@media (max-width: 768px) {
  .landing-nav {
    display: none;
  }
  .features-grid,
  .success-slider,
  .pricing-container {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .pricing-container {
    width: 100%;
    max-width: 360px;
  }
  .success-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .success-rate-badge {
    text-align: left;
  }

  .daily-success-card {
    flex-basis: min(82vw, 320px);
  }

  .landing-flow-strip {
    grid-template-columns: 1fr;
  }
}

/* 마키(흐르는 텍스트) 애니메이션 */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 8px 0 18px;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.marquee-container {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 8px 0;
  animation: marquee 54s linear infinite;
  will-change: transform;
}

.marquee-container[data-daily-success-rail] > *:not(.daily-success-card) {
  display: none;
}

.marquee-wrapper:hover .marquee-container,
.marquee-container:hover {
  animation-play-state: paused;
}

body.modal-active {
  overflow: hidden;
}

/* Toss-style 성공 피드 롤러용 컬러 오버라이드 및 서브 스타일 */
.text-toss-500 {
  color: #3182f6 !important;
}
.bg-blue-50 {
  background-color: #e8f3ff !important;
}
