/* SPOMOTIVE commercial UI system — consumer booking + operations console */
:root {
  --ink: #171a1d;
  --navy: #101820;
  --navy-2: #1b2731;
  --paper: #ffffff;
  --base: #f4f6f7;
  --line: #e2e7ea;
  --muted: #5f6b76;
  --yellow: #ffd633;
  --yellow-deep: #d4a800;
  --mint: #e4f5ee;
  --cyan: #e4f4f9;
  --cyan-ink: #146d88;
  --green: #087f5b;
  --coral: #c94338;
  --surface-subtle: #f7f9fa;
  --shadow: 0 18px 48px rgba(16, 24, 32, .10);
  --shadow-sm: 0 1px 2px rgba(16, 24, 32, .05), 0 8px 24px rgba(16, 24, 32, .04);
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; background: var(--base); }
body {
  min-width: 0;
  color: var(--ink);
  background: var(--base);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, strong { letter-spacing: -.032em; }
button, input, select, textarea { letter-spacing: -.012em; }
button:not(.slot):not(.ops-event) { min-height: 44px; }
button:disabled { opacity: .55; }
:focus-visible { outline: 3px solid rgba(20, 109, 136, .28); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #111820;
  border-radius: 8px;
  background: var(--yellow);
  font-weight: 900;
  transform: translateY(-160%);
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(1320px, calc(100% - 32px)); margin: 0 auto 56px; }
.topbar {
  top: 10px;
  min-height: 100px;
  margin-top: 10px;
  padding: 13px 24px 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: linear-gradient(135deg, #0e151c 0%, #121c25 100%);
  box-shadow: 0 14px 36px rgba(13, 21, 28, .16);
}
.topline { min-height: 34px; }
.brand { gap: 16px; min-width: 250px; }
.brand img { width: 110px; height: 44px; }
.product-label { color: #8f9da7; font-size: 11px; letter-spacing: .1em; }
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.utility { gap: 7px; color: #aeb9c1; font-size: 12px; }
.utility > span { color: #52616c; }
.utility a,
.utility button { min-height: 32px !important; padding: 6px 8px; border-radius: 7px; }
.utility a:hover,
.utility button:hover { color: #fff; background: rgba(255,255,255,.07); }
.utility strong { color: var(--yellow); }
.navline { margin-top: 7px; }
.main-nav { gap: 4px; }
.main-nav button,
.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px !important;
  padding: 8px 13px;
  border: 0;
  border-radius: 9px;
  color: #b9c4ca;
  background: transparent;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}
.main-nav button:hover,
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.main-nav button.active { color: #141c22; background: var(--yellow); box-shadow: 0 5px 16px rgba(255,214,51,.18); }
.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.055);
}
.language-switch button {
  min-height: 30px !important;
  padding: 5px 9px;
  border: 0;
  border-radius: 7px;
  color: #9facb5;
  background: transparent;
  font-size: 10px;
  font-weight: 900;
}
.language-switch button:hover { color: #fff; }
.language-switch button.active { color: #141c22; background: var(--yellow); }
.status-pill { padding: 7px 11px; font-size: 11px; }
main { padding-top: 16px; }

.hero {
  min-height: 220px;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .55fr);
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, #0f171e 0%, #17232c 100%);
  box-shadow: var(--shadow-sm);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 260px;
  height: 260px;
  left: -120px;
  bottom: -190px;
  border-radius: 50%;
  background: rgba(255,214,51,.22);
  filter: blur(12px);
}
.hero::after { display: none; }
.hero-copy { padding: 28px 34px; }
.eyebrow { padding: 6px 10px; border-color: rgba(255,214,51,.36); font-size: 10px; letter-spacing: .1em; }
.hero h1 { margin: 14px 0 9px; font-size: clamp(31px, 3.4vw, 44px); line-height: 1.08; }
.hero p { max-width: 660px; color: #c4cdd3; font-size: 14px; line-height: 1.65; }
.hero-points { margin-top: 16px; }
.hero-points span { padding: 6px 9px; color: #c7d1d6; border: 1px solid rgba(255,255,255,.06); border-radius: 7px; background: rgba(255,255,255,.055); font-size: 11px; }
.hero-image { min-height: 220px; background-position: center 48%; }
.lesson-hero .hero-image { background-position: center 42%; filter: saturate(.86) contrast(1.04); }

.booking-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.booking-steps.rental { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.booking-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 14px;
  color: #8a949c;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.72);
}
.booking-steps li > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  color: #74808a;
  border: 1px solid #d8dfe2;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}
.booking-steps li strong { font-size: 13px; }
.booking-steps li.done { color: #496159; background: #f4faf7; }
.booking-steps li.done > span { color: #fff; border-color: var(--green); background: var(--green); }
.booking-steps li.current { color: #171a1d; border-color: #e2c14a; background: #fffdf3; box-shadow: inset 0 0 0 1px rgba(255,214,51,.3); }
.booking-steps li.current > span { color: #171a1d; border-color: var(--yellow); background: var(--yellow); }

.section { margin-top: 16px; }
.panel,
.console-card,
.settings-card,
.admin-card,
.ops-panel,
.admin-table-wrap { border-color: var(--line); box-shadow: var(--shadow-sm); }
.panel { overflow: hidden; border-radius: 18px; }
.panel-head { padding: 24px 24px 0; }
.panel-head h2 { margin-top: 3px; font-size: 23px; }
.panel-head p { margin-top: 6px; font-size: 13px; }
.panel-body { padding: 22px 24px 24px; }
.step-kicker { color: #7b6108; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.field { gap: 7px; }
.field label,
.label { color: #4f5a63; font-size: 12px; }
input,
select,
textarea { min-height: 48px; border-color: #d5dde1; border-radius: 10px; padding: 11px 13px; background: #fff; }
input:hover,
select:hover,
textarea:hover { border-color: #aeb9bf; }
input:focus,
select:focus,
textarea:focus { border-color: var(--cyan-ink); box-shadow: 0 0 0 4px rgba(20,109,136,.1); }

.court-product-grid { gap: 12px; }
.court-product {
  grid-template-columns: 124px minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 160px;
  padding: 12px 18px 12px 12px;
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 1px rgba(16,24,32,.02);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.court-product:hover { border-color: #aab5bb; box-shadow: 0 12px 30px rgba(16,24,32,.08); transform: translateY(-1px); }
.court-product.active { border: 2px solid #18232c; background: #fff; box-shadow: 0 12px 28px rgba(16,24,32,.09); }
.court-product-visual {
  position: relative;
  align-self: stretch;
  min-height: 132px;
  overflow: hidden;
  border-radius: 12px;
  background-color: #17212a;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.court-alpha .court-product-visual {
  background-image: linear-gradient(rgba(13,21,28,.04), rgba(13,21,28,.42)), url("./court-alpha.jpg");
  background-position: center 42%;
}
.court-private .court-product-visual {
  background-image: linear-gradient(rgba(13,21,28,.02), rgba(13,21,28,.38)), url("./court-private.jpg");
  background-position: center;
}
.court-product-visual > span { position: absolute; left: 10px; bottom: 9px; color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.court-product-copy { min-width: 0; text-align: left; }
.court-product .instant { padding: 5px 8px; color: #12664c; background: #e8f6ef; }
.selected-mark { display: none; margin-left: 6px; color: #1b2730; font-size: 10px; font-weight: 900; }
.court-product.active .selected-mark { display: inline-flex; }
.court-product h3 { margin: 9px 0 4px; font-size: 21px; }
.court-product p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: #66727b; font-size: 12px; line-height: 1.52; }
.court-product p strong { color: #303b43; }
.court-product-price strong { font-size: 20px; }
.court-product-price span { font-size: 10px; }
.booking-caution { display: flex; gap: 10px; margin-top: 14px; padding: 13px 15px; border: 1px solid #f0dda0; border-left: 4px solid var(--yellow-deep); border-radius: 10px; background: #fffaf0; }
.booking-caution b { flex: 0 0 auto; }
.booking-caution span { color: #6f5b1d; }
.booking-step-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e8edef;
}
.booking-step-actions > div { margin-right: auto; }
.booking-step-actions span,
.selected-court-strip span { display: block; color: #748089; font-size: 10px; font-weight: 900; }
.booking-step-actions strong,
.selected-court-strip strong { display: block; margin-top: 4px; color: #1b252d; font-size: 17px; }
.booking-step-actions .primary { width: auto; min-width: 150px; }
.selected-court-strip {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #dce4e7;
  border-radius: 13px;
  background: #f8faf9;
}
.selected-court-strip strong { margin-top: 0; }

.select-row { align-items: end; margin-bottom: 14px; }
.date-field { min-width: 210px; }
.rental-week-picker { margin-bottom: 16px; padding: 14px; border: 1px solid #dce4e7; border-radius: 13px; background: #f8faf9; }
.rental-week-toolbar { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; align-items: center; gap: 10px; }
.rental-week-toolbar > strong { overflow: hidden; color: #26323a; text-align: center; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.week-nav-button { display: grid; width: 42px; min-height: 42px !important; place-items: center; padding: 0; border: 1px solid #ced8dc; border-radius: 9px; color: #26323a; background: #fff; font-size: 18px; font-weight: 900; }
.week-nav-button:hover:not(:disabled) { border-color: #819299; background: #f2f6f6; }
.week-nav-button:disabled { color: #aeb7bc; background: #eef1f2; }
.court-switcher button { min-width: 176px; min-height: 52px !important; padding: 10px 13px; border-radius: 11px; }
.court-switcher button.active { box-shadow: 0 7px 18px rgba(16,24,32,.12); }
.availability-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin-bottom: 10px;
  padding: 10px 13px;
  color: #7a4d45;
  border: 1px solid #f0d7d3;
  border-radius: 11px;
  background: #fff8f7;
}
.availability-status.available { color: #17664f; border-color: #cfe8df; background: #f1faf6; }
.availability-status > span { padding: 5px 7px; border-radius: 6px; background: rgba(255,255,255,.72); font-size: 10px; font-weight: 900; }
.availability-status strong { font-size: 13px; }
.availability-status small { margin-left: auto; color: #69757e; font-size: 11px; }
.schedule-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; }
.schedule-layout > *,
.timeline-column { min-width: 0; }
.weekly-timeline-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  scrollbar-color: #aab5ba #eef2f3;
  scrollbar-width: thin;
}
.weekly-timeline-grid { min-width: 1542px; }
.weekly-timeline-head,
.weekly-day-row { display: grid; grid-template-columns: 150px repeat(24, 58px); }
.weekly-timeline-head {
  position: sticky;
  z-index: 8;
  top: 0;
  color: #66737c;
  border-bottom: 1px solid #dce3e5;
  background: #f6f8f9;
  font-size: 11px;
  font-weight: 850;
}
.weekly-timeline-head > div { display: grid; height: 42px; place-items: center; border-right: 1px solid #e6eaeb; }
.weekly-timeline-head > div:first-child { position: sticky; z-index: 10; left: 0; justify-items: start; padding-left: 14px; background: #f6f8f9; box-shadow: 8px 0 16px rgba(16,24,32,.05); }
.weekly-day-row { min-height: 64px; border-bottom: 1px solid #e6eaeb; }
.weekly-day-row:last-child { border-bottom: 0; }
.weekly-day-row.selected-date { box-shadow: inset 4px 0 0 var(--yellow-deep); }
.weekly-day-row.has-selection .weekly-date-cell { background: #fffaf0; }
.weekly-day-row.has-selection .weekly-date-cell span { color: #6b5408; }
.weekly-date-cell {
  position: sticky;
  z-index: 6;
  left: 0;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  align-content: center;
  align-items: center;
  gap: 2px 8px;
  padding: 9px 13px;
  border-right: 1px solid #e0e6e8;
  background: #fff;
  box-shadow: 8px 0 16px rgba(16,24,32,.05);
}
.weekly-date-cell strong { grid-row: 1 / span 2; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: #26323a; background: #eef2f3; font-size: 12px; }
.weekly-date-cell span { color: #1c2730; font-size: 13px; font-weight: 900; }
.weekly-date-cell small { color: #8b6b00; font-size: 9px; font-weight: 900; }
.weekly-day-row.today .weekly-date-cell { background: #fffdf3; }
.weekly-day-row.today .weekly-date-cell strong { color: #171d22; background: var(--yellow); }
.weekly-day-row.past .weekly-date-cell { color: #9ba5aa; background: #f4f6f6; }
.weekly-day-row.past .weekly-date-cell strong,
.weekly-day-row.past .weekly-date-cell span { color: #9ba5aa; }
.weekly-day-row .slot { min-height: 64px; }
.slot { display: flex; min-height: 74px; align-items: center; justify-content: center; padding: 4px; border-right-color: #edf1f2; }
.slot-time { display: none; }
.slot-price { font-size: 9px; font-weight: 900; }
.slot.closed { color: #9ca6ac; background: #f2f4f5; }
.slot.open { color: #155f78; background: #e3f4f9; }
.slot.open:hover { background: #caecf6; }
.slot.blocked { background: #53616c; }
.slot.selected { color: #141c22; background: var(--yellow); box-shadow: inset 0 0 0 2px #bd9410; }
.legend { color: #65727b; font-size: 11px; }

.summary-card {
  top: 120px;
  padding: 20px;
  color: var(--ink);
  border: 1px solid #dbe2e5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16,24,32,.11);
}
.summary-heading { margin: -20px -20px 12px; padding: 18px 20px 16px; color: #fff; border-radius: 15px 15px 0 0; background: linear-gradient(135deg, #111a21, #1e2b35); }
.summary-heading > span { color: var(--yellow); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.summary-card h3 { margin: 4px 0; font-size: 20px; }
.summary-heading p { margin: 0; color: #b8c4ca; }
.summary-line { border-top-color: #edf0f1; font-size: 12px; }
.summary-line span { color: #67737c; }
.summary-line strong { color: #202a31; }
.summary-line.total { align-items: center; margin: 7px -8px 14px; padding: 13px 10px; border: 0; border-radius: 10px; background: #fff8d9; }
.summary-line.total span { color: #66530c; font-weight: 900; }
.summary-line.total strong { color: #171a1d; font-size: 22px; }
.summary-empty-selection { margin: 4px 0 12px; padding: 13px; color: #69757d; border: 1px dashed #d4dde0; border-radius: 10px; background: #f8fafb; font-size: 11px; line-height: 1.55; }
.rental-selection-list { display: grid; gap: 7px; margin: 4px 0 12px; }
.summary-selection-list { max-height: 236px; overflow-y: auto; padding-right: 3px; scrollbar-width: thin; }
.rental-selection-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 10px 11px; border: 1px solid #e1e7e9; border-radius: 10px; background: #f8fafb; }
.summary-selection-list .rental-selection-item { grid-template-columns: minmax(0,1fr) auto 28px; }
.rental-selection-item strong,
.rental-selection-item small { display: block; }
.rental-selection-item strong { color: #222c33; font-size: 12px; }
.rental-selection-item small { margin-top: 3px; color: #6c7880; font-size: 10px; }
.rental-selection-item > span { color: #28343b; font-size: 11px; font-weight: 900; white-space: nowrap; }
.selection-remove { display: grid; width: 28px; min-height: 28px !important; place-items: center; padding: 0; color: #6b747b; border: 1px solid #d5dde0; border-radius: 8px; background: #fff; font-size: 16px; font-weight: 900; }
.selection-remove:hover { color: #9b3e35; border-color: #e4b8b2; background: #fff5f4; }
.clear-selection-button { width: 100%; min-height: 34px !important; margin: -4px 0 12px; padding: 6px 9px; color: #59656d; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; font-size: 10px; font-weight: 800; }
.clear-selection-button:hover { color: #9b3e35; }
.summary-card form { display: grid; gap: 13px; padding-top: 15px; border-top: 1px solid #edf0f1; }
.summary-card .field { margin-top: 0; }
.summary-card label,
.summary-card .label { color: #4f5a63; font-size: 11px; }
.summary-card input,
.summary-card select,
.summary-card textarea { color: var(--ink); background: #fff; }
.addon-list { gap: 8px; }
.addon-row { padding: 10px; color: var(--ink); border-color: #e0e6e8; border-radius: 9px; background: #f8fafb; }
.addon-row strong { color: #27323a; }
.addon-row small { color: #69757d; font-size: 10px; }
.quantity-stepper span { color: #253039; }
.mini-button { min-width: 38px; min-height: 38px !important; border-radius: 9px; }
.summary-card .mini-button { color: #1d2931; border-color: #d6dee1; background: #fff; }
.summary-card .mini-button:hover { background: #f2f5f6; }
.rental-consent-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  color: #735c14;
  border: 1px solid #eadca6;
  border-radius: 10px;
  background: #fffaf0;
}
.rental-consent-status > span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #b1890d;
  font-size: 12px;
  font-weight: 900;
}
.rental-consent-status strong,
.rental-consent-status small { display: block; }
.rental-consent-status strong { color: #4f4217; font-size: 12px; }
.rental-consent-status small { margin-top: 3px; color: #7b6a32; font-size: 10px; line-height: 1.45; }
.rental-consent-status.accepted { color: #17664f; border-color: #cde7dd; background: #f0faf6; }
.rental-consent-status.accepted > span { background: var(--green); }
.rental-consent-status.accepted strong { color: #155942; }
.rental-consent-status.accepted small { color: #4f7568; }
.party-row { grid-template-columns: minmax(0, 1fr) 94px 38px; gap: 7px; }
.primary,
.secondary,
.ghost { min-height: 46px; border-radius: 10px; }
.primary { background: var(--yellow); box-shadow: 0 7px 18px rgba(255,214,51,.18); }
.primary:hover { background: #ffe066; }
.secondary { background: #17222b; }
.secondary:hover { background: #25343f; }
.ghost { border-color: #d3dce0; }
.booking-policy { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.booking-policy summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; padding: 15px 18px; cursor: pointer; list-style: none; }
.booking-policy summary::-webkit-details-marker { display: none; }
.booking-policy summary::after { content: "+"; display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #f1f4f5; font-size: 18px; }
.booking-policy[open] summary::after { content: "−"; }
.booking-policy summary span { font-weight: 900; }
.booking-policy summary strong { margin-left: auto; color: #6a757d; font-size: 11px; }
.booking-policy .policy-grid { margin: 0; padding: 0 18px 18px; }
.policy-item { border: 1px solid #e7ecee; border-radius: 10px; background: #f8faf9; }
.mobile-booking-bar { display: none; }

.lesson-date-row { display: flex; align-items: end; gap: 14px; margin: 0 0 14px; padding: 14px; border: 1px solid #e2e8ea; border-radius: 12px; background: #f8fafb; }
.lesson-date-row .field { min-width: 220px; }
.lesson-date-row > span { padding-bottom: 13px; color: #69757d; font-size: 11px; }
.lesson-schedule-panel .filter-tabs { margin-top: 0; }
.occurrence { grid-template-columns: 92px minmax(0,1fr) auto; min-height: 84px; padding: 15px 16px; border-radius: 13px; transition: border-color .15s ease, box-shadow .15s ease; }
.occurrence:hover { border-color: #b7c2c7; box-shadow: 0 10px 24px rgba(16,24,32,.06); }
.occurrence-time { display: flex; flex-direction: column; justify-content: center; padding-right: 14px; border-right: 1px solid #e5eaec; }
.occurrence-time > span { font-size: 17px; font-weight: 900; }
.occurrence-time small { margin-top: 4px; color: #75818a; font-size: 10px; }
.occurrence-main strong { font-size: 15px; }
.occurrence-main span { margin-top: 5px; font-size: 11px; }
.occurrence-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.occurrence-actions .secondary { min-width: 78px; }
.lesson-grid { gap: 12px; }
.lesson-card { min-height: 174px; border-radius: 14px; box-shadow: var(--shadow-sm); }
.lesson-card::after { opacity: .52; }
.product-grid { gap: 12px; }
.product-card { min-height: 174px; border-radius: 12px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.product-card:hover { border-color: #aeb9bf; box-shadow: 0 10px 22px rgba(16,24,32,.06); transform: translateY(-1px); }
.empty { border-color: #d7dfe2; border-radius: 12px; background: #fafbfb; }
.footnote { color: #5e6a73; }

/* Operations console */
body.admin-mode { background: #eef1f3; }
body.admin-mode .shell { width: 100%; margin: 0; }
body.admin-mode .topbar {
  top: 0;
  min-height: 84px;
  margin: 0;
  padding: 9px 24px 8px;
  border: 0;
  border-radius: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
body.admin-mode .brand img { width: 100px; height: 38px; }
body.admin-mode .navline { margin-top: 3px; }
body.admin-mode .main-nav button,
body.admin-mode .main-nav a { min-height: 34px !important; padding: 6px 11px; font-size: 12px; }
body.admin-mode .status-pill { padding: 5px 9px; }
.admin-workspace {
  grid-template-columns: 244px minmax(0,1fr);
  min-height: calc(100vh - 84px);
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #f2f4f5;
  box-shadow: none;
}
.admin-sidebar {
  position: sticky;
  top: 84px;
  height: calc(100vh - 84px);
  min-height: 0;
  padding: 18px 14px;
  background: #111920;
}
.admin-sidebar-head { padding: 4px 10px 17px; }
.admin-sidebar-head span { color: #7f909b; }
.admin-menu { gap: 4px; }
.admin-menu button { min-height: 44px !important; gap: 11px; padding: 9px 11px; border-radius: 9px; color: #aebbc3; font-size: 12px; }
.admin-menu button::before { display: none; }
.admin-menu button .ui-icon { width: 18px; height: 18px; flex: 0 0 auto; opacity: .82; }
.admin-menu button.active { color: #171d22; background: var(--yellow); box-shadow: 0 7px 18px rgba(255,214,51,.12); }
.admin-menu button.active .ui-icon { opacity: 1; }
.admin-sidebar-foot { color: #82919a; }
.admin-main { min-width: 0; }
.admin-commandbar {
  position: sticky;
  top: 84px;
  min-height: 64px;
  padding: 10px 22px;
  border-bottom-color: #dbe1e4;
  background: rgba(255,255,255,.97);
  box-shadow: 0 5px 18px rgba(16,24,32,.035);
}
.location-control { min-width: 230px; }
.location-control select,
.command-search input,
.command-date { min-height: 42px; }
.command-search { max-width: 520px; }
.quick-button { min-height: 42px !important; border-radius: 9px; }
.admin-content { min-width: 0; padding: 24px 26px 38px; }
.admin-page-title { margin-bottom: 16px; }
.admin-page-title h1 { font-size: 25px; }
.admin-page-title p { color: #5f6c75; font-size: 12px; }
.commercial-kpi-grid { gap: 12px; margin-bottom: 16px; }
.commercial-kpi { min-height: 108px; padding: 16px; border-top: 3px solid #dfe5e7; border-radius: 12px; box-shadow: var(--shadow-sm); }
.commercial-kpi::after { display: none; }
.commercial-kpi.attention { border-top-color: var(--yellow-deep); background: #fffdf6; }
.commercial-kpi span { color: #5f6c75; font-size: 11px; }
.commercial-kpi strong { font-size: 25px; }
.commercial-kpi small { color: #66737c; font-size: 10px; }
.console-card,
.settings-card,
.admin-card,
.ops-panel,
.admin-table-wrap { border-radius: 13px; background: #fff; }
.console-card-head { padding: 16px 18px 13px; }
.console-card-head p,
.settings-card > p,
.admin-card > p { color: #5f6d76; font-size: 11px; }
.action-item { min-height: 58px; border-radius: 10px; }
.action-item span { color: #5f6d76; font-size: 10px; }
.action-item button,
.table-actions button { min-height: 36px !important; font-size: 10px; }
.admin-table th { color: #59666f; font-size: 10px; }
.admin-table td { font-size: 12px; }
.table-sub { color: #65717a; font-size: 10px; }
.status-chip { font-size: 10px; }
.ops-toolbar { padding: 16px 18px 12px; }
.ops-toolbar h3 { font-size: 18px; }
.ops-summary span { color: #46545d; }
.ops-scroll { width: auto; max-width: calc(100% - 36px); height: min(610px, calc(100vh - 300px)); max-height: none; min-height: 420px; }
.ops-board { position: relative; }
.ops-time-axis,
.ops-court-track { height: 936px; }
.ops-court-track { background: repeating-linear-gradient(to bottom, #fff 0, #fff 38px, #edf1f2 39px); }
.ops-time-label { color: #5d6a73; font-size: 10px; }
.ops-now-line { position: absolute; z-index: 6; right: 0; left: 64px; height: 2px; background: #df4d3f; pointer-events: none; }
.ops-now-line::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #df4d3f; }
.ops-now-line span { position: absolute; right: 7px; top: -20px; padding: 3px 6px; color: #fff; border-radius: 5px; background: #df4d3f; font-size: 9px; font-weight: 900; }
.ops-event { min-height: 28px; border-radius: 8px; }
.operator-drawer { width: min(640px, 100%); padding: 24px; }
.drawer-section { border-radius: 12px; }
.drawer-actions { position: sticky; bottom: -22px; z-index: 4; margin: 16px -22px -22px; padding: 12px 22px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #dce3e6; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.modal { border-radius: 16px; }
.rental-terms-modal { width: min(720px, 100%); }
.terms-booking-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
  margin: 18px 0;
}
.terms-booking-summary > div { padding: 12px; border: 1px solid #e1e7e9; border-radius: 10px; background: #f7f9fa; }
.terms-booking-summary span,
.terms-booking-summary strong { display: block; }
.terms-booking-summary span { color: #76818a; font-size: 10px; font-weight: 900; }
.terms-booking-summary strong { margin-top: 4px; color: #1f2930; font-size: 13px; }
.terms-selection-list { max-height: 190px; overflow-y: auto; margin-bottom: 14px; padding: 10px; border: 1px solid #e2e8ea; border-radius: 12px; background: #f8fafb; scrollbar-width: thin; }
.terms-selection-list .rental-selection-item { background: #fff; }
.rental-terms-list { display: grid; gap: 8px; }
.rental-terms-list section { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 10px; padding: 12px; border: 1px solid #e4e9eb; border-radius: 10px; background: #fff; }
.rental-terms-list section > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: #665008; background: #fff0ae; font-size: 10px; font-weight: 900; }
.rental-terms-list h3 { margin: 0; color: #202a31; font-size: 14px; }
.rental-terms-list p { margin: 4px 0 0; color: #5f6b73; font-size: 12px; line-height: 1.58; }
.terms-agreement { margin-top: 14px; padding: 13px 14px; color: #203029; border: 1px solid #cce4d9; border-radius: 10px; background: #f0faf5; font-size: 12px; font-weight: 900; }
.toast { bottom: 28px; border-radius: 10px; }

@media (max-width: 1080px) {
  .court-product { grid-template-columns: 100px minmax(0,1fr); }
  .court-product-price { grid-column: 2; text-align: left; }
  .schedule-layout { grid-template-columns: minmax(0,1fr) 330px; }
  .commercial-kpi-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .console-grid { grid-template-columns: minmax(0,1fr); }
  .console-grid > * { min-width: 0; }
}

@media (max-width: 860px) {
  body { overflow-x: hidden; }
  .shell { width: min(100% - 16px, 1320px); margin-bottom: 30px; }
  .topbar { top: 6px; min-height: 104px; margin-top: 6px; padding: 11px 12px 10px; border-radius: 15px; }
  .topline { align-items: center; }
  .brand { min-width: 0; gap: 7px; }
  .brand img { width: 86px; height: 36px; }
  .product-label { display: none; }
  .header-tools { gap: 5px; }
  .utility { min-width: 0; gap: 3px; font-size: 10px; }
  .utility > span,
  .utility a { display: none; }
  .utility strong { max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .utility strong ~ button:not([data-action="open-dependents"]) { display: none; }
  .utility a,
  .utility button { min-height: 34px !important; padding: 5px 7px; }
  .navline { margin-top: 8px; }
  .language-switch { padding: 2px; }
  .language-switch button { min-height: 32px !important; padding: 4px 7px; font-size: 9px; }
  .main-nav { width: 100%; gap: 3px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav button,
  .main-nav a { flex: 1 1 0; min-width: 0; min-height: 40px !important; padding: 7px 4px; font-size: 10px; white-space: nowrap; }
  .status-pill { display: none; }
  main { padding-top: 10px; }

  .hero { min-height: 184px; grid-template-columns: 1fr; border-radius: 16px; }
  .hero-copy { padding: 22px 20px; }
  .hero h1 { margin-top: 12px; font-size: 31px; }
  .hero p { font-size: 12px; line-height: 1.6; }
  .hero-points { margin-top: 13px; }
  .hero-points span { font-size: 9px; }
  .hero-image { display: none; }
  .booking-steps { gap: 5px; margin-top: 8px; }
  .booking-steps li { min-height: 50px; gap: 6px; padding: 8px; border-radius: 10px; }
  .booking-steps li > span { width: 24px; height: 24px; font-size: 10px; }
  .booking-steps li strong { font-size: 10px; line-height: 1.25; }

  .panel { border-radius: 14px; }
  .panel-head { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px 16px 0; }
  .panel-head > .field { width: 100%; min-width: 0 !important; }
  .panel-head h2 { font-size: 21px; }
  .panel-body { padding: 18px 16px 20px; }
  .court-product-grid { grid-template-columns: 1fr; }
  .court-product { grid-template-columns: 88px minmax(0,1fr); gap: 12px; min-height: 146px; padding: 10px; }
  .court-product-visual { min-height: 122px; }
  .court-product h3 { font-size: 18px; }
  .court-product p { -webkit-line-clamp: 2; font-size: 11px; }
  .court-product-price { grid-column: 2; }
  .court-product-price strong { display: inline; margin-right: 6px; font-size: 17px; }
  .booking-caution { align-items: flex-start; flex-direction: column; gap: 4px; font-size: 11px; }
  .booking-step-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .booking-step-actions .primary { width: 100%; }
  .select-row { align-items: stretch; flex-direction: column; }
  .select-row .field,
  .date-field { width: 100%; min-width: 0; }
  .selected-court-strip,
  .rental-week-picker { padding: 10px 8px; }
  .rental-week-toolbar { grid-template-columns: 38px minmax(0,1fr) 38px; gap: 7px; margin-bottom: 9px; }
  .rental-week-toolbar > strong { font-size: 12px; }
  .week-nav-button { width: 38px; min-height: 38px !important; }
  .court-switcher { display: grid; grid-template-columns: 1fr 1fr; }
  .court-switcher button { min-width: 0; }
  .schedule-layout,
  .console-grid { grid-template-columns: minmax(0,1fr); }
  .schedule-layout > *,
  .console-grid > *,
  .timeline-column,
  .admin-main,
  .admin-content { min-width: 0; }
  .availability-status { align-items: flex-start; flex-wrap: wrap; }
  .availability-status small { width: 100%; margin-left: 0; }
  .weekly-timeline-wrap { overflow-x: auto; border: 1px solid var(--line); }
  .weekly-timeline-grid { min-width: 1256px; }
  .weekly-timeline-head,
  .weekly-day-row { display: grid; grid-template-columns: 104px repeat(24, 48px); }
  .weekly-timeline-head { display: grid; }
  .weekly-timeline-head > div { height: 38px; }
  .weekly-timeline-head > div:first-child { padding-left: 9px; }
  .weekly-day-row { min-height: 56px; padding: 0; border-radius: 0; }
  .weekly-date-cell { position: sticky; grid-template-columns: 25px minmax(0,1fr); gap: 1px 5px; padding: 7px 8px; border: 0; border-right: 1px solid #e0e6e8; background: #fff; box-shadow: 6px 0 12px rgba(16,24,32,.05); }
  .weekly-date-cell strong { width: 24px; height: 24px; border-radius: 6px; font-size: 10px; }
  .weekly-date-cell span { font-size: 11px; }
  .weekly-date-cell small { font-size: 8px; }
  .weekly-day-row .slot { min-width: 0; min-height: 56px; flex-direction: column; gap: 2px; padding: 4px 2px; border: 0; border-right: 1px solid #e0e6e8; border-radius: 0; }
  .weekly-day-row .slot-time { display: none; }
  .weekly-day-row .slot-price { font-size: 8px; }
  .slot { min-width: 0; min-height: 62px; flex-direction: column; gap: 3px; padding: 8px 4px; border: 1px solid #e0e6e8; border-radius: 9px; }
  .slot-time { display: block; font-size: 12px; font-weight: 900; }
  .slot-price { font-size: 9px; }
  .legend { gap: 8px; font-size: 10px; }
  .summary-card { position: static; width: 100%; padding: 18px; }
  .summary-heading { margin: -18px -18px 12px; }
  .party-row { grid-template-columns: minmax(0,1fr) 88px 38px; }
  .booking-policy summary { align-items: flex-start; flex-wrap: wrap; }
  .booking-policy summary strong { order: 3; width: calc(100% - 40px); margin-left: 0; }
  .booking-policy .policy-grid { grid-template-columns: 1fr 1fr; }
  .terms-booking-summary { grid-template-columns: 1fr; }
  .rental-terms-modal { padding: 18px 15px; }
  .booking-page { padding-bottom: 88px; }
  .mobile-booking-bar {
    position: fixed;
    z-index: 45;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(0,1fr) 132px;
    gap: 12px;
    align-items: center;
    padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
    border-top: 1px solid #dce3e6;
    background: rgba(255,255,255,.97);
    box-shadow: 0 -12px 30px rgba(16,24,32,.10);
    backdrop-filter: blur(16px);
  }
  .mobile-booking-bar span { display: block; overflow: hidden; color: #66737c; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
  .mobile-booking-bar strong { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .mobile-booking-bar button { display: flex; min-height: 48px !important; align-items: center; justify-content: center; overflow: hidden; border: 0; border-radius: 10px; color: #171d22; background: var(--yellow); font-size: 12px; font-weight: 900; white-space: nowrap; }

  .lesson-date-row { align-items: stretch; flex-direction: column; }
  .lesson-date-row .field { min-width: 0; }
  .lesson-date-row > span { padding: 0; }
  .lesson-grid,
  .product-grid { grid-template-columns: 1fr; }
  .occurrence { grid-template-columns: 72px minmax(0,1fr); gap: 12px; }
  .occurrence-time { padding-right: 10px; }
  .occurrence-actions { grid-column: 2; justify-content: flex-start; }
  .my-card { grid-template-columns: 72px minmax(0,1fr); }
  .my-actions { grid-column: 2; flex-wrap: wrap; justify-content: flex-start; }

  body.admin-mode .topbar { min-height: 104px; padding: 10px 12px; }
  body.admin-mode .brand img { width: 84px; height: 34px; }
  body.admin-mode .main-nav button,
  body.admin-mode .main-nav a { flex: 0 0 auto; min-width: 66px; min-height: 36px !important; padding: 6px 7px; font-size: 10px; }
  .admin-workspace { grid-template-columns: minmax(0,1fr); min-height: calc(100vh - 104px); }
  .admin-sidebar { position: static; width: 100%; height: auto; min-height: 0; padding: 8px; }
  .admin-sidebar-head,
  .admin-sidebar-foot { display: none; }
  .admin-menu { display: flex; gap: 5px; margin: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .admin-menu::-webkit-scrollbar { display: none; }
  .admin-menu button { flex: 0 0 72px; min-height: 58px !important; flex-direction: column; justify-content: center; gap: 4px; padding: 7px 5px; font-size: 10px; }
  .admin-menu button .ui-icon { width: 17px; height: 17px; }
  .admin-commandbar { position: static; flex-wrap: wrap; padding: 10px; }
  .location-control { flex: 0 0 100%; min-width: 0; }
  .location-control select { min-width: 0; }
  .command-search { order: 3; max-width: none; flex-basis: 100%; }
  .command-date { flex: 1; width: auto; min-width: 135px; }
  .admin-content { padding: 18px 10px 28px; }
  .admin-page-title { align-items: flex-start; }
  .admin-page-title h1 { font-size: 23px; }
  .live-badge { white-space: nowrap; }
  .commercial-kpi-grid { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x proximity; }
  .commercial-kpi { min-width: 154px; flex: 0 0 154px; min-height: 102px; scroll-snap-align: start; }
  .commercial-kpi strong { font-size: 22px; }
  .console-grid,
  .settings-grid,
  .customer-card-grid { grid-template-columns: minmax(0,1fr); }
  .ops-panel,
  .ops-scroll { width: 100%; max-width: 100%; }
  .ops-toolbar { align-items: stretch; flex-direction: column; }
  .ops-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .ops-controls .field { min-width: 0; }
  .ops-summary { flex-wrap: nowrap; overflow-x: auto; }
  .ops-summary span { flex: 0 0 auto; }
  .ops-scroll { height: 560px; min-height: 420px; margin: 12px 0 0; border-right: 0; border-left: 0; border-radius: 0; }
  .ops-board { min-width: max(660px, calc(64px + var(--court-count) * 280px)); }
  .admin-table-wrap { width: 100%; max-width: 100%; }
  .drawer-actions { grid-template-columns: 1fr 1fr; }
  .operator-drawer { padding: 18px 14px; }
  .drawer-actions { bottom: -18px; margin: 14px -14px -18px; padding-right: 14px; padding-left: 14px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .booking-steps li { flex-direction: column; justify-content: center; text-align: center; }
  .court-switcher { grid-template-columns: 1fr; }
  .court-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .court-product { grid-template-columns: 76px minmax(0,1fr); }
  .mobile-booking-bar { grid-template-columns: minmax(0,1fr) 116px; }
  .booking-policy .policy-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Open Play header parity — sourced from the production commercial UI layer. */
:root {
  --openplay-ui-navy: #101922;
  --openplay-ui-yellow: #ffd21e;
  --openplay-page-width: 1280px;
  --openplay-page-gutter: clamp(16px, 3vw, 36px);
}

.shell {
  width: 100%;
  margin: 0 0 56px;
}

.shell > main {
  width: min(calc(100% - (var(--openplay-page-gutter) * 2)), var(--openplay-page-width));
  max-width: var(--openplay-page-width);
  margin-inline: auto;
}

body.admin-mode .shell > main {
  width: 100%;
  max-width: none;
}

.topbar,
body.admin-mode .topbar {
  position: sticky;
  top: 10px;
  z-index: 60;
  width: min(calc(100% - (var(--openplay-page-gutter) * 2)), var(--openplay-page-width));
  max-width: var(--openplay-page-width);
  min-height: 112px;
  margin: 0 auto;
  padding: 12px 24px 13px;
  display: grid;
  grid-template-columns: minmax(140px, auto) minmax(0, 1fr) auto;
  grid-template-areas:
    "brand spacer utility"
    "nav nav nav";
  align-items: center;
  gap: 8px 20px;
  overflow: visible;
  color: #f8fafb;
  border: 1px solid rgba(255, 210, 30, .18);
  border-radius: 8px;
  background: rgba(16, 25, 34, .98);
  box-shadow: 0 16px 34px rgba(10, 16, 22, .16);
  backdrop-filter: blur(16px);
  box-sizing: border-box;
  font-family: Inter, Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  letter-spacing: 0;
}

.topbar button,
.topbar a {
  letter-spacing: 0;
}

.topbar [hidden] {
  display: none !important;
}

.topbar .top-brand,
body.admin-mode .topbar .top-brand {
  grid-area: brand;
  width: 130px;
  min-width: 0;
  min-height: 42px !important;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center start;
  justify-self: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.topbar .top-brand-logo,
body.admin-mode .topbar .top-brand-logo {
  width: 126px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.product-label,
.topbar .status-pill {
  display: none !important;
}

.topbar .header-utility {
  grid-area: utility;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
}

.topbar .header-utility > *,
.topbar .utility > * {
  position: relative;
}

.topbar .header-utility > * + *::before,
.topbar .utility > * + *::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 12px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .16);
}

.topbar .utility {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  color: inherit;
  font-size: inherit;
}

.topbar .header-utility .top-link,
.topbar .header-utility .lang-switch button,
.topbar .utility .top-link {
  min-height: 30px !important;
  height: auto;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center;
  flex: 0 0 auto;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none;
  color: rgba(236, 241, 244, .7) !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.topbar .header-utility .top-link:hover,
.topbar .header-utility .lang-switch button:hover,
.topbar .header-utility .lang-switch button.active,
.topbar .utility .top-link:hover {
  color: var(--openplay-ui-yellow) !important;
  background: transparent !important;
  box-shadow: none;
}

.topbar .header-utility .lang-switch.compact {
  min-height: 0;
  height: auto;
  padding: 0;
  display: flex;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.topbar .language-switch button:first-child::after {
  content: "/";
  margin-left: 9px;
  color: rgba(235, 242, 246, .28);
  font-weight: 700;
}

.topbar .top-primary-nav {
  grid-area: nav;
  width: 100%;
  min-width: 0;
  padding: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.topbar .top-primary-nav::-webkit-scrollbar {
  display: none;
}

.topbar .top-primary-nav > button,
.topbar .top-primary-nav > a,
body.admin-mode .topbar .top-primary-nav > button,
body.admin-mode .topbar .top-primary-nav > a {
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  min-height: 34px !important;
  height: auto;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(236, 241, 244, .7) !important;
  font-size: 14px !important;
  font-weight: 830 !important;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.topbar .top-primary-nav > button:hover,
.topbar .top-primary-nav > button.active,
.topbar .top-primary-nav > a:hover,
body.admin-mode .topbar .top-primary-nav > button:hover,
body.admin-mode .topbar .top-primary-nav > button.active,
body.admin-mode .topbar .top-primary-nav > a:hover {
  color: var(--openplay-ui-yellow) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.admin-mode .admin-workspace {
  min-height: calc(100vh - 122px);
  margin-top: 10px;
}

body.admin-mode .admin-sidebar {
  top: 122px;
  height: calc(100vh - 122px);
}

@media (max-width: 1080px) {
  :root { --openplay-page-gutter: 16px; }

  .topbar,
  body.admin-mode .topbar {
    top: 0;
    width: 100%;
    max-width: none;
    border-width: 0 0 1px;
    border-radius: 0;
  }

  .topbar .top-primary-nav { gap: 22px; }

  body.admin-mode .admin-workspace {
    min-height: calc(100vh - 112px);
    margin-top: 0;
  }

  body.admin-mode .admin-sidebar {
    top: 112px;
    height: calc(100vh - 112px);
  }
}

@media (max-width: 760px) {
  :root { --openplay-page-gutter: 10px; }

  .topbar,
  body.admin-mode .topbar {
    position: relative;
    top: auto;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-areas:
      "brand utility"
      "nav nav";
    min-height: 104px;
    gap: 8px 12px;
    padding: 10px 12px 9px;
    overflow: hidden;
  }

  .topbar .top-brand,
  body.admin-mode .topbar .top-brand {
    width: 108px;
    min-height: 36px !important;
    height: 36px;
  }

  .topbar .top-brand-logo,
  body.admin-mode .topbar .top-brand-logo {
    width: 104px;
    height: 34px;
  }

  .topbar .header-utility {
    width: 100%;
    justify-self: stretch;
    justify-content: flex-end;
    overflow: visible;
    scrollbar-width: none;
  }

  .topbar .header-utility::-webkit-scrollbar { display: none; }

  .topbar .header-utility .top-link,
  .topbar .header-utility .lang-switch button,
  .topbar .utility .top-link {
    min-height: 28px !important;
    padding: 0 5px !important;
    font-size: 10px !important;
  }

  .topbar .top-primary-nav {
    width: 100%;
    gap: 20px;
    padding: 2px 2px 3px;
    scroll-snap-type: inline proximity;
  }

  .topbar .top-primary-nav > button,
  .topbar .top-primary-nav > a,
  body.admin-mode .topbar .top-primary-nav > button,
  body.admin-mode .topbar .top-primary-nav > a {
    scroll-snap-align: start;
    font-size: 14px !important;
  }

  body.admin-mode .admin-workspace {
    min-height: calc(100vh - 104px);
    margin-top: 0;
  }

  body.admin-mode .admin-sidebar {
    top: auto;
    height: auto;
  }
}

@media (max-width: 420px) {
  .topbar,
  body.admin-mode .topbar {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "utility"
      "nav";
    gap: 3px;
    padding-inline: 8px;
  }

  .topbar .top-brand,
  .topbar .top-brand-logo,
  body.admin-mode .topbar .top-brand,
  body.admin-mode .topbar .top-brand-logo {
    width: 70px;
  }

  .topbar .top-brand,
  body.admin-mode .topbar .top-brand {
    min-width: 0;
    min-height: 30px !important;
    height: 30px;
  }

  .topbar .header-utility {
    width: 100%;
    gap: 0;
    min-width: 0;
    justify-content: flex-end;
    white-space: nowrap;
  }

  .topbar .header-utility .top-link,
  .topbar .header-utility .lang-switch button,
  .topbar .utility .top-link {
    min-height: 26px !important;
    padding-inline: 3px !important;
    font-size: 9px !important;
  }

  .topbar .header-utility > * + *::before,
  .topbar .utility > * + *::before {
    height: 8px;
  }

  .topbar .language-switch button:first-child::after {
    margin-left: 5px;
  }

  .topbar .top-primary-nav { gap: 17px; }

  .topbar .top-primary-nav > button,
  .topbar .top-primary-nav > a,
  body.admin-mode .topbar .top-primary-nav > button,
  body.admin-mode .topbar .top-primary-nav > a {
    font-size: 13.5px !important;
  }
}

/* Payment completion */
.payment-success-page {
  display: grid;
  min-height: calc(100vh - 150px);
  padding: clamp(22px, 5vw, 64px) 0;
  place-items: start center;
}

.payment-success-card {
  width: min(920px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 24px 64px rgba(16, 24, 32, .12);
}

.payment-success-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 28px 36px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #101820 0%, #1b2a35 100%);
}

.payment-success-hero::after {
  position: absolute;
  right: -80px;
  bottom: -140px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 210, 30, .16);
  content: "";
}

.payment-success-mark {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  place-items: center;
  color: #17212a;
  border-radius: 50%;
  background: var(--openplay-ui-yellow, var(--yellow));
  box-shadow: 0 0 0 9px rgba(255, 210, 30, .10);
  font-size: 31px;
  font-weight: 950;
}

.payment-success-hero > span {
  position: relative;
  z-index: 1;
  color: var(--openplay-ui-yellow, var(--yellow));
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .16em;
}

.payment-success-hero h1 {
  position: relative;
  z-index: 1;
  margin: 10px 0 8px;
  font-size: clamp(29px, 4vw, 40px);
  line-height: 1.14;
}

.payment-success-hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #c5d0d6;
  font-size: 14px;
  line-height: 1.6;
}

.payment-success-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 1fr);
  gap: 0;
  margin: 0 28px;
  border-bottom: 1px solid var(--line);
}

.payment-success-meta > div {
  min-width: 0;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
}

.payment-success-meta > div:first-child { padding-left: 0; }
.payment-success-meta > div:nth-child(2) { padding-right: 0; border-right: 0; }
.payment-success-meta.is-single { grid-template-columns: 1fr; }
.payment-success-meta.is-single > div:first-child { padding-right: 0; border-right: 0; }
.payment-success-meta span,
.payment-success-meta strong { display: block; }
.payment-success-meta span { color: #77838b; font-size: 10px; font-weight: 900; }
.payment-success-meta strong { margin-top: 6px; overflow-wrap: anywhere; color: #1b252c; font-size: 13px; }
.payment-success-meta .payment-success-total {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 20px;
  border-right: 0;
}
.payment-success-meta .payment-success-total span { font-size: 12px; }
.payment-success-meta .payment-success-total strong { margin-top: 0; color: #111a21; font-size: 26px; }

.payment-success-bookings { padding: 26px 28px 0; }
.payment-success-section-head > span { color: #8a6b00; font-size: 9px; font-weight: 950; letter-spacing: .14em; }
.payment-success-section-head h2 { margin: 5px 0 4px; font-size: 22px; }
.payment-success-section-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.payment-success-list { display: grid; gap: 9px; margin-top: 16px; }

.payment-success-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e0e6e8;
  border-radius: 13px;
  background: #fbfcfc;
}

.payment-success-date {
  display: grid;
  min-height: 58px;
  padding: 8px;
  place-items: center;
  align-content: center;
  border-radius: 10px;
  color: #f4f7f8;
  background: var(--navy);
}
.payment-success-date span { color: #aebbc2; font-size: 9px; font-weight: 900; }
.payment-success-date strong { margin-top: 2px; font-size: 16px; }
.payment-success-item-main { min-width: 0; }
.payment-success-item-main > strong { display: block; color: #182128; font-size: 15px; }
.payment-success-item-main p { margin: 4px 0 0; color: #59666f; font-size: 12px; line-height: 1.45; }
.payment-success-item-main > span { display: inline-block; margin-top: 5px; color: #829098; font-size: 10px; font-weight: 850; }
.payment-success-item-side { display: grid; min-width: 110px; justify-items: end; gap: 8px; }
.payment-success-item-side > strong { color: #17212a; font-size: 15px; }
.payment-success-empty { margin-top: 16px; padding: 24px; text-align: center; border: 1px dashed #cfd9dc; border-radius: 12px; background: #f8faf9; }
.payment-success-empty strong { font-size: 14px; }
.payment-success-empty p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

.payment-success-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 28px 0;
  padding: 13px 14px;
  color: #44535c;
  border-radius: 11px;
  background: #f1f5f4;
}
.payment-success-notice > span { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: #667781; font-size: 11px; font-weight: 900; }
.payment-success-notice p { margin: 1px 0 0; font-size: 11px; line-height: 1.55; }
.payment-success-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; padding: 20px 28px 28px; }
.payment-success-actions .primary { min-height: 50px; }
.payment-success-actions .ghost { min-height: 50px; }

@media (max-width: 700px) {
  .payment-success-page { min-height: auto; padding: 14px 0 28px; }
  .payment-success-card { border-radius: 16px; }
  .payment-success-hero { padding: 32px 18px 28px; }
  .payment-success-mark { width: 58px; height: 58px; font-size: 27px; }
  .payment-success-meta { grid-template-columns: 1fr; margin: 0 16px; }
  .payment-success-meta > div { padding: 16px 0; border-right: 0; }
  .payment-success-meta > div:first-child { grid-column: auto; padding-left: 0; border-right: 0; }
  .payment-success-meta > div + div:not(.payment-success-total) { border-top: 1px solid var(--line); }
  .payment-success-meta .payment-success-total { padding: 14px 0 18px; }
  .payment-success-bookings { padding: 22px 16px 0; }
  .payment-success-item { grid-template-columns: 54px minmax(0, 1fr); gap: 11px; padding: 11px; }
  .payment-success-date { min-height: 54px; }
  .payment-success-item-side { grid-column: 2; grid-template-columns: auto auto; justify-content: space-between; justify-items: start; width: 100%; min-width: 0; }
  .payment-success-notice { margin: 16px 16px 0; }
  .payment-success-actions { grid-template-columns: 1fr; padding: 16px; }
  .payment-success-actions .primary { grid-row: 1; }
  .payment-success-actions .ghost { grid-row: 2; }
}
