:root {
  --navy-950: #030b18;
  --navy-900: #07172f;
  --navy-800: #0b274d;
  --blue-700: #0755ad;
  --blue-500: #1683ef;
  --blue-100: #e8f3ff;
  --gold-500: #ffb800;
  --gold-300: #ffd75a;
  --cream: #f7f5ee;
  --white: #ffffff;
  --ink: #0a1626;
  --muted: #667085;
  --line: #dce3ec;
  --success: #107c5b;
  --danger: #c23b3b;
  --sidebar-width: 248px;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(7, 23, 47, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, Avenir, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
.sr-only { width: 1px; height: 1px; position: absolute; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 28px 18px 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 25% 6%, rgba(22, 131, 239, 0.28), transparent 25%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto;
  color: var(--navy-950); background: var(--gold-500); border-radius: 12px 4px 12px 4px;
  font-weight: 1000; font-size: 26px; font-style: italic; transform: skew(-5deg);
  box-shadow: inset -4px -4px 0 rgba(255,255,255,.2);
}
.brand-mark.large { width: 60px; height: 60px; margin-bottom: 22px; font-size: 36px; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { letter-spacing: .1em; font-size: 18px; }
.brand-copy small { margin-top: 6px; color: #9cb3cd; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.side-nav { margin-top: 76px; }
.nav-label { margin: 0 12px 12px; color: #6f86a1; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.nav-item {
  width: 100%; display: flex; align-items: center; gap: 13px; padding: 13px;
  color: #b8c7d9; border: 0; border-radius: 13px; background: transparent; text-align: left;
}
.nav-item + .nav-item { margin-top: 6px; }
.nav-item.active { color: var(--white); background: rgba(255,255,255,.1); box-shadow: inset 3px 0 var(--gold-500); }
.nav-item.muted { opacity: .45; }
.nav-number, .nav-icon { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #35506f; border-radius: 9px; font-size: 11px; font-weight: 900; }
.nav-item.active .nav-number { color: var(--navy-900); background: var(--gold-500); border-color: var(--gold-500); }
.nav-item span:last-child { display: grid; gap: 3px; }
.nav-item strong { font-size: 13px; }
.nav-item small { color: #7f95ae; font-size: 10px; }
.sidebar-bottom { margin-top: auto; }
.admin-link { border-top: 1px solid rgba(255,255,255,.1); border-radius: 0; padding-top: 19px; }
.sidebar-note { margin: 25px 13px 0; color: #526985; font-size: 10px; line-height: 1.6; letter-spacing: .1em; text-transform: uppercase; }
.mobile-header { display: none; }
.main-content { min-height: 100vh; margin-left: var(--sidebar-width); }
.view { min-height: 100vh; }

.announcement-bar {
  min-height: 58px; display: flex; align-items: center; gap: 20px; padding: 9px 4.5vw;
  color: var(--navy-900); background: var(--gold-500);
}
.announcement-tag { padding: 6px 9px; color: var(--white); background: var(--navy-900); border-radius: 5px; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.announcement-copy { display: flex; flex: 1; align-items: baseline; gap: 12px; font-size: 13px; }
.announcement-copy strong { font-size: 14px; }
.announcement-bar > button { border: 0; border-bottom: 1px solid currentColor; color: inherit; background: none; font-size: 11px; font-weight: 800; text-transform: uppercase; }

.booking-hero {
  min-height: 330px; display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 55px 5vw 105px; color: var(--white); overflow: hidden; position: relative;
  background:
    linear-gradient(115deg, rgba(3,11,24,.94) 0%, rgba(7,39,82,.94) 60%, rgba(5,85,173,.88) 100%),
    repeating-linear-gradient(90deg, transparent 0 100px, rgba(255,255,255,.05) 100px 102px);
}
.booking-hero::after {
  content: "Z"; position: absolute; right: 10%; top: -110px; color: rgba(255,255,255,.035);
  font-size: 470px; line-height: 1; font-weight: 1000; font-style: italic; transform: skew(-7deg);
}
.hero-copy { max-width: 730px; position: relative; z-index: 1; }
.eyebrow, .section-kicker { display: block; color: var(--blue-700); font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.booking-hero .eyebrow { color: var(--gold-300); }
.hero-copy h1 { margin: 14px 0 16px; font-size: clamp(44px, 6vw, 82px); line-height: .91; letter-spacing: -.065em; }
.hero-copy h1 em { color: var(--gold-500); font-style: normal; }
.hero-copy p { max-width: 610px; margin: 0; color: #bfd0e4; font-size: 15px; line-height: 1.65; }
.hero-stamp {
  width: 150px; height: 150px; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 26px 13px 15px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; transform: rotate(7deg); text-align: center;
}
.hero-stamp > span { grid-column: 1/-1; margin-bottom: -8px; color: var(--gold-300); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.hero-stamp strong { display: grid; font-size: 30px; line-height: .8; }
.hero-stamp strong span { margin-top: 6px; color: #91a9c2; font-size: 8px; letter-spacing: .12em; }
.hero-stamp i { color: #91a9c2; font-size: 10px; font-style: normal; }

.booking-layout {
  max-width: 1380px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px;
  margin: -64px auto 0; padding: 0 3.5vw; position: relative; z-index: 2;
}
.schedule-card, .booking-tray, .admin-panel, .management-card {
  border: 1px solid rgba(7,23,47,.08); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.schedule-card { padding: 32px; }
.schedule-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.schedule-heading h2, .tray-header h2, .panel-heading h2, .management-card h2 { margin: 7px 0 0; color: var(--navy-900); font-size: 24px; letter-spacing: -.035em; }
.date-picker-label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.date-picker-label input { min-width: 150px; padding: 10px 12px; color: var(--navy-900); border: 1px solid var(--line); border-radius: 9px; background: #fafcff; font-weight: 700; }
.week-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 30px 0 16px; text-align: center; }
.week-controls div { min-width: 145px; display: grid; gap: 3px; }
.week-controls strong { color: var(--navy-900); font-size: 13px; }
.week-controls span { color: var(--muted); font-size: 10px; }
.arrow-button { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; color: var(--navy-900); background: var(--white); }
.arrow-button:hover:not(:disabled) { color: var(--white); background: var(--navy-900); }
.arrow-button:disabled { opacity: .3; }
.date-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.date-button {
  min-height: 79px; display: grid; place-items: center; align-content: center; gap: 3px; padding: 8px 4px;
  color: var(--navy-800); border: 1px solid var(--line); border-radius: 11px; background: #f9fbfd;
}
.date-button:hover { border-color: var(--blue-500); }
.date-button.active { color: var(--white); border-color: var(--blue-700); background: linear-gradient(145deg, var(--blue-700), var(--navy-800)); box-shadow: 0 8px 18px rgba(7,85,173,.2); }
.date-button.today:not(.active) { border-color: var(--gold-500); }
.date-button small { font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.date-button strong { font-size: 23px; line-height: 1; }
.date-button span { font-size: 9px; }
.date-button .date-selection-dot { width: 5px; height: 5px; position: absolute; margin: -61px 0 0 46px; background: var(--gold-500); border-radius: 50%; }
.slot-toolbar { display: flex; justify-content: space-between; align-items: flex-end; margin: 30px 0 15px; }
.slot-toolbar h3 { margin: 0 0 4px; color: var(--navy-900); font-size: 16px; }
.slot-toolbar p { margin: 0; color: var(--muted); font-size: 10px; }
.status-help { display: flex; align-items: center; gap: 7px; border: 0; color: var(--muted); background: none; font-size: 10px; font-weight: 700; }
.status-help span { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 9px; }
.slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot-button {
  min-height: 72px; display: flex; justify-content: space-between; align-items: center; padding: 13px 15px;
  color: var(--navy-900); border: 1.5px solid #cbd7e6; border-radius: 11px; background: var(--white); text-align: left;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.slot-button:hover:not(:disabled) { border-color: var(--blue-500); transform: translateY(-2px); }
.slot-button.selected { color: var(--white); border-color: var(--blue-700); background: var(--blue-700); box-shadow: 0 8px 18px rgba(7,85,173,.18); }
.slot-button.pending { border-color: #e7b21c; background: #fff8df; }
.slot-button.booked { border-color: #8ccbb8; background: #ecfaf5; }
.slot-button.closed { color: #98a2b3; border-color: #e4e7ec; background: #f4f5f7; }
.slot-button strong { font-size: 14px; }
.slot-button span { display: grid; gap: 3px; }
.slot-button small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.slot-button.selected small { color: #b9dafb; }
.slot-button em { color: var(--blue-700); font-size: 9px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.slot-button.selected em { color: var(--gold-300); }
.slot-button.booked em { color: var(--success); }
.slot-button.closed em { color: #98a2b3; }
.slot-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 19px; color: var(--muted); font-size: 9px; }
.slot-legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--white); border: 1px solid #b8c5d5; }
.legend-dot.selected { background: var(--blue-700); border-color: var(--blue-700); }
.legend-dot.pending { background: #ffe99e; border-color: #e7b21c; }
.legend-dot.booked { background: #bde7da; border-color: var(--success); }
.legend-dot.closed { background: #d5d9df; border-color: #b7bdc7; }

.booking-tray { align-self: start; position: sticky; top: 20px; padding: 25px; }
.tray-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.selection-count { width: 31px; height: 31px; display: grid; place-items: center; color: var(--white); background: var(--navy-900); border-radius: 50%; font-size: 12px; font-weight: 900; }
.empty-tray { padding: 35px 7px 24px; text-align: center; }
.mini-court { width: 86px; height: 56px; position: relative; margin: 0 auto 21px; border: 2px solid #aec2d9; background: var(--blue-100); }
.mini-court::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px solid #aec2d9; }
.mini-court::after { content: ""; position: absolute; inset: 50% 0 auto; border-top: 2px solid #aec2d9; }
.mini-court span { position: absolute; inset: 38% -6px auto; z-index: 1; border-top: 3px solid var(--navy-800); transform: rotate(-2deg); }
.empty-tray strong { color: var(--navy-900); font-size: 13px; }
.empty-tray p, .tray-total > p { color: var(--muted); font-size: 10px; line-height: 1.5; }
.tray-items { max-height: 245px; overflow: auto; }
.tray-item { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid #edf0f4; }
.tray-date { display: grid; place-items: center; padding: 6px 3px; color: var(--white); background: var(--navy-800); border-radius: 7px; line-height: 1; }
.tray-date small { color: var(--gold-300); font-size: 7px; font-weight: 900; text-transform: uppercase; }
.tray-date strong { margin-top: 3px; font-size: 14px; }
.tray-item-copy { display: grid; gap: 3px; }
.tray-item-copy strong { color: var(--navy-900); font-size: 11px; }
.tray-item-copy span { color: var(--muted); font-size: 9px; }
.tray-remove { width: 24px; height: 24px; border: 0; color: #98a2b3; background: transparent; border-radius: 50%; font-size: 17px; }
.tray-remove:hover { color: var(--danger); background: #fff0f0; }
.tray-total { padding-top: 18px; }
.tray-total > div { display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--muted); font-size: 10px; }
.tray-total strong { color: var(--navy-900); }
.tray-total small { color: #98a2b3; }
.tray-total .grand-total { margin: 16px 0; padding-top: 15px; border-top: 1px solid var(--line); align-items: baseline; color: var(--navy-900); font-weight: 800; }
.grand-total strong { color: var(--blue-700); font-size: 22px; }
.primary-button, .secondary-button {
  min-height: 45px; padding: 0 18px; border-radius: 9px; font-size: 11px; font-weight: 900; letter-spacing: .02em;
}
.primary-button { color: var(--white); border: 1px solid var(--navy-900); background: var(--navy-900); box-shadow: 0 8px 18px rgba(7,23,47,.16); }
.primary-button:hover { background: var(--blue-700); border-color: var(--blue-700); }
.primary-button span { float: right; }
.secondary-button { color: var(--navy-900); border: 1px solid var(--line); background: var(--white); }
.booking-tray .primary-button { width: 100%; text-align: left; }

.quote-block { max-width: 1050px; position: relative; margin: 78px auto; padding: 25px 5vw 35px; text-align: center; }
.quote-mark { color: var(--gold-500); font-family: Georgia, serif; font-size: 72px; line-height: .3; }
.quote-block blockquote { margin: 16px auto 13px; color: var(--navy-900); font-family: Georgia, serif; font-size: clamp(24px, 3.5vw, 43px); font-style: italic; line-height: 1.2; letter-spacing: -.035em; }
.quote-block p { color: var(--blue-700); font-size: 9px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.court-line { width: 100px; height: 16px; display: block; margin: 30px auto 0; border: 1px solid #b7c5d5; border-top: 0; }

.gallery-section { padding: 72px 5vw 90px; background: var(--navy-900); color: var(--white); }
.gallery-heading { max-width: 1250px; display: flex; align-items: end; justify-content: space-between; gap: 50px; margin: 0 auto 35px; }
.gallery-heading .section-kicker { color: var(--gold-500); }
.gallery-heading h2 { margin: 12px 0 0; font-size: clamp(29px, 4vw, 48px); line-height: 1.05; letter-spacing: -.05em; }
.gallery-heading p { max-width: 430px; margin: 0; color: #9fb1c6; font-size: 12px; line-height: 1.7; }
.gallery-grid { max-width: 1250px; min-height: 460px; display: grid; grid-template: 1fr 1fr / 1.65fr 1fr; gap: 13px; margin: auto; }
.gallery-placeholder { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 27px; overflow: hidden; background: linear-gradient(145deg, #0b3567, #061a35); }
.gallery-placeholder::before { content: ""; position: absolute; inset: 15%; border: 1px solid rgba(255,255,255,.08); transform: rotate(-7deg); }
.gallery-placeholder::after { content: "+"; position: absolute; left: 50%; top: 44%; color: rgba(255,255,255,.16); font-size: 55px; transform: translate(-50%, -50%); }
.gallery-main { grid-row: 1 / 3; }
.gallery-placeholder.gold { background: linear-gradient(145deg, #a86b00, #392601); }
.gallery-placeholder span { position: absolute; right: 25px; top: 22px; color: rgba(255,255,255,.35); font-size: 10px; font-weight: 800; }
.gallery-placeholder strong, .gallery-placeholder small { position: relative; z-index: 1; }
.gallery-placeholder strong { font-size: 18px; }
.gallery-placeholder small { margin-top: 5px; color: #aab9ca; font-size: 10px; }
.gallery-photo { min-height: 220px; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 27px; overflow: hidden; }
.gallery-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.gallery-photo::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(3,11,24,.85)); }
.gallery-photo span, .gallery-photo strong { position: relative; z-index: 1; }
.gallery-photo span { align-self: flex-end; margin-bottom: auto; font-size: 10px; font-weight: 900; }
.gallery-photo strong { font-size: 18px; }
footer { display: flex; justify-content: space-between; align-items: center; padding: 25px 5vw; color: #7d91a9; background: var(--navy-950); font-size: 10px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.footer-brand .brand-mark { width: 28px; height: 28px; border-radius: 7px 3px; font-size: 17px; }

/* Admin */
.admin-view { padding: 44px 4vw 80px; background: #f3f6fa; }
.admin-header { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; max-width: 1450px; margin: auto; }
.admin-header h1 { margin: 8px 0 7px; color: var(--navy-900); font-size: clamp(29px, 4vw, 44px); letter-spacing: -.05em; }
.admin-header p { margin: 0; color: var(--muted); font-size: 12px; }
.admin-header-actions { display: flex; gap: 8px; }
.admin-stats { max-width: 1450px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 34px auto 25px; }
.admin-stats article { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.stat-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; font-size: 12px; font-weight: 1000; }
.stat-icon.yellow { color: #795400; background: #fff1b8; }
.stat-icon.blue { color: var(--blue-700); background: var(--blue-100); }
.stat-icon.navy { color: var(--white); background: var(--navy-900); }
.admin-stats div { display: grid; gap: 4px; }
.admin-stats small { color: var(--muted); font-size: 9px; }
.admin-stats strong { color: var(--navy-900); font-size: 16px; }
.admin-tabs { max-width: 1450px; display: flex; gap: 5px; margin: auto; padding: 5px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.admin-tabs button { padding: 10px 17px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 800; }
.admin-tabs button.active { color: var(--white); background: var(--navy-900); }
.admin-panel { max-width: 1450px; margin: 15px auto 0; padding: 25px; box-shadow: none; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.calendar-panel-heading { gap: 18px; }
.admin-search { min-width: 290px; display: flex; margin-left: auto; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--white); }
.admin-search input { min-width: 0; flex: 1; padding: 0 12px; border: 0; outline: 0; font-size: 10px; }
.admin-search button { min-height: 36px; padding: 0 13px; border: 0; color: var(--white); background: var(--navy-900); font-size: 9px; font-weight: 900; }
.week-pill { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.week-pill button { width: 34px; height: 34px; border: 0; background: #f7f9fb; }
.week-pill strong { min-width: 90px; text-align: center; font-size: 10px; }
.admin-calendar-wrap { overflow-x: auto; }
.admin-calendar { min-width: 940px; display: grid; grid-template-columns: 70px repeat(7, 1fr); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.calendar-cell { min-height: 61px; padding: 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.calendar-cell:nth-child(8n) { border-right: 0; }
.calendar-head { min-height: 58px; display: grid; place-items: center; align-content: center; gap: 3px; color: var(--muted); background: #f7f9fc; text-align: center; }
.calendar-head.today { color: var(--navy-900); background: #fff8df; }
.calendar-head strong { font-size: 12px; }
.calendar-head span { font-size: 9px; }
.time-cell { display: grid; place-items: start center; padding-top: 10px; color: var(--muted); background: #f7f9fc; font-size: 9px; font-weight: 700; }
.admin-slot { width: 100%; height: 100%; min-height: 45px; display: grid; place-items: center; align-content: center; gap: 3px; padding: 4px; border: 0; border-radius: 6px; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.admin-slot.open { color: var(--blue-700); background: #edf6ff; }
.admin-slot.pending { color: #775400; background: #fff0a8; box-shadow: inset 3px 0 var(--gold-500); }
.admin-slot.booked { color: var(--success); background: #dff5ed; }
.admin-slot.closed { color: #8b94a1; background: #eef0f3; }
.admin-slot.search-match { outline: 3px solid var(--blue-500); outline-offset: -2px; animation: search-pulse 1.3s ease-in-out infinite alternate; }
.admin-slot span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; text-transform: none; }
@keyframes search-pulse { to { outline-color: var(--gold-500); } }
.content-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.management-card { padding: 27px; box-shadow: none; }
.management-card p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.management-card.full-card { grid-column: 1/-1; }
.card-actions { display: flex; gap: 7px; margin-top: 20px; }
.card-actions button, .upload-button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--navy-900); background: var(--white); font-size: 10px; font-weight: 800; }
.upload-button { margin-top: 12px; color: var(--white); border-color: var(--navy-900); background: var(--navy-900); }
.gallery-upload-form { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr auto; gap: 8px; align-items: end; margin-top: 17px; }
.gallery-upload-form input { min-width: 0; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: 10px; }
.gallery-upload-form .upload-button { min-height: 42px; margin: 0; white-space: nowrap; }
.admin-gallery-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.admin-gallery-item { position: relative; min-height: 145px; overflow: hidden; border-radius: 10px; background: var(--navy-900); }
.admin-gallery-item img { width: 100%; height: 110px; display: block; object-fit: cover; }
.admin-gallery-item div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px; color: var(--white); font-size: 9px; }
.admin-gallery-item button { border: 0; color: #ffb7b7; background: transparent; font-size: 9px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.settings-grid > label, .setting-field { display: grid; gap: 7px; color: var(--navy-900); font-size: 10px; font-weight: 800; }
.settings-grid input, .settings-grid select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.input-prefix, .input-suffix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.input-prefix input, .input-suffix input { border: 0; border-radius: 0; }
.input-prefix b, .input-suffix b { padding: 0 12px; color: var(--muted); font-size: 9px; }
.save-settings { margin-top: 25px; }

/* Modals */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(2,9,20,.78); backdrop-filter: blur(5px); }
.modal { width: min(100%, 560px); max-height: calc(100vh - 40px); position: relative; padding: 35px; overflow-y: auto; border-radius: 19px; background: var(--white); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.modal-close { width: 34px; height: 34px; position: absolute; right: 19px; top: 18px; border: 0; border-radius: 50%; color: var(--muted); background: #f1f4f7; font-size: 21px; }
.modal-progress { display: flex; gap: 5px; margin: 0 55px 29px 0; }
.modal-progress span { height: 3px; flex: 1; background: #e2e7ed; }
.modal-progress span.active { background: var(--blue-700); }
.checkout-step h2, .login-modal h2, .slot-modal h2 { margin: 8px 0 9px; color: var(--navy-900); font-size: 30px; letter-spacing: -.045em; }
.modal-intro { margin: 0 0 24px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.modal-booking-list { margin-bottom: 20px; padding: 13px 17px; border-radius: 10px; background: #f5f8fb; }
.modal-booking-list div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #e5eaf0; font-size: 10px; }
.modal-booking-list div:last-child { border-bottom: 0; }
.modal-booking-list span { color: var(--muted); }
.field-label { display: block; margin: 14px 0 6px; color: var(--navy-900); font-size: 10px; font-weight: 900; }
.text-input { width: 100%; min-height: 48px; padding: 0 14px; color: var(--navy-900); border: 1px solid #cad4e0; border-radius: 9px; background: var(--white); outline: 0; }
.text-input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(22,131,239,.1); }
.text-area { min-height: 120px; padding-block: 12px; resize: vertical; }
.dark-input { color: var(--white); background: var(--navy-900); }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.privacy-note { margin: 9px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.agreement-box { display: grid; grid-template-columns: auto 1fr; gap: 11px; margin: 17px 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfd; }
.agreement-box input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--blue-700); }
.agreement-box span { display: grid; gap: 5px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.agreement-box strong { color: var(--navy-900); font-size: 10px; }
.form-error { min-height: 15px; margin: 5px 0; color: var(--danger); font-size: 9px; }
.full-button { width: 100%; }
.qr-panel { display: grid; grid-template-columns: 145px 1fr; gap: 22px; align-items: center; margin-top: 17px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #f7faff; }
.qr-placeholder { display: grid; place-items: center; padding: 9px; border: 1px dashed #9eb0c5; background: var(--white); }
.qr-grid { width: 105px; height: 105px; background: repeating-conic-gradient(var(--navy-900) 0 25%, var(--white) 0 50%) 0 / 14px 14px; border: 7px solid var(--white); box-shadow: 0 0 0 1px var(--line); }
.qr-placeholder > strong { margin-top: 7px; color: var(--navy-900); font-size: 9px; }
.qr-panel > div:last-child { display: grid; gap: 7px; }
.qr-panel span { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.qr-panel > div > strong { color: var(--blue-700); font-size: 24px; }
.qr-panel p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.modal-buttons { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.success-step { padding-top: 10px; text-align: center; }
.success-check { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 22px; color: var(--white); background: var(--success); border-radius: 50%; font-size: 29px; box-shadow: 0 0 0 8px #e3f6ef; }
.success-step > p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.attempt-id { display: grid; gap: 6px; margin: 22px 0; padding: 16px; color: var(--white); background: var(--navy-900); border-radius: 10px; }
.attempt-id span { color: var(--gold-300); font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.attempt-id strong { font-size: 23px; letter-spacing: .1em; }
.fine-print { margin-bottom: 22px; font-size: 9px !important; }
.login-modal { width: min(100%, 430px); }
.login-modal > p { color: var(--muted); font-size: 10px; line-height: 1.55; }
.slot-current-status { display: flex; justify-content: space-between; margin-bottom: 17px; padding: 12px; border-radius: 8px; background: #f3f6f9; font-size: 10px; }
.slot-current-status span { color: var(--muted); }
.booking-details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.booking-detail { min-width: 0; display: grid; gap: 4px; }
.booking-detail.wide { grid-column: 1/-1; }
.booking-detail span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.booking-detail strong, .booking-detail a { overflow-wrap: anywhere; color: var(--navy-900); font-size: 10px; line-height: 1.45; }
.booking-detail a { color: var(--blue-700); }
.slot-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.slot-actions button { flex: 1; min-width: 100px; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; color: var(--navy-900); background: var(--white); font-size: 10px; font-weight: 900; }
.slot-actions button.confirm { color: var(--white); border-color: var(--success); background: var(--success); }
.slot-actions button.danger { color: var(--danger); border-color: #f0bcbc; background: #fff6f6; }
.toast { min-width: 240px; position: fixed; z-index: 200; left: 50%; bottom: 25px; padding: 13px 18px; color: var(--white); background: var(--navy-900); border-radius: 9px; box-shadow: var(--shadow); font-size: 10px; text-align: center; transform: translate(-50%, 120px); opacity: 0; transition: .25s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1050px) {
  :root { --sidebar-width: 205px; }
  .booking-layout { grid-template-columns: 1fr; }
  .booking-tray { position: static; }
  .tray-items { max-height: none; }
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
  .settings-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .sidebar { display: none; }
  .mobile-header { height: 67px; position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; color: var(--white); background: var(--navy-950); }
  .mobile-header .brand-mark { width: 35px; height: 35px; font-size: 21px; }
  .mobile-header .brand-copy strong { font-size: 14px; }
  .mobile-header .brand-copy small { font-size: 8px; }
  .mobile-admin { padding: 8px 12px; color: var(--gold-300); border: 1px solid #34465d; border-radius: 7px; background: transparent; font-size: 9px; font-weight: 900; text-transform: uppercase; }
  .main-content { margin-left: 0; }
  .announcement-bar { min-height: 70px; gap: 10px; padding: 10px 16px; }
  .announcement-copy { display: grid; gap: 3px; }
  .announcement-copy strong { font-size: 11px; }
  .announcement-copy span { font-size: 9px; }
  .announcement-bar > button { display: none; }
  .booking-hero { min-height: 300px; padding: 45px 20px 95px; }
  .hero-copy h1 { font-size: 49px; }
  .hero-copy p { font-size: 12px; }
  .hero-stamp { display: none; }
  .booking-layout { margin-top: -55px; padding: 0 12px; }
  .schedule-card { padding: 22px 14px; }
  .schedule-heading { align-items: start; }
  .schedule-heading h2 { font-size: 21px; }
  .date-picker-label { width: 42px; overflow: hidden; color: transparent; gap: 0; }
  .date-picker-label input { width: 42px; min-width: 42px; height: 42px; padding: 5px; color: transparent; }
  .week-controls { margin-top: 23px; }
  .date-strip { grid-template-columns: repeat(7, 64px); margin-inline: -14px; padding: 0 14px 9px; overflow-x: auto; }
  .date-button { min-height: 70px; }
  .date-button strong { font-size: 20px; }
  .slots-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .slot-button { min-height: 66px; padding: 10px; }
  .slot-legend { gap: 9px; }
  .booking-tray { padding: 22px; }
  .quote-block { margin: 55px auto; }
  .gallery-section { padding: 55px 17px 65px; }
  .gallery-heading { display: block; }
  .gallery-heading p { margin-top: 18px; }
  .gallery-grid { min-height: 620px; grid-template: 1.5fr 1fr 1fr / 1fr; }
  .gallery-main { grid-row: auto; }
  footer { display: grid; gap: 15px; }
  .admin-view { padding: 27px 13px 60px; }
  .admin-header { display: block; }
  .admin-header-actions { margin-top: 20px; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-tabs { overflow-x: auto; }
  .admin-tabs button { white-space: nowrap; }
  .admin-panel { padding: 15px; }
  .panel-heading { align-items: flex-start; }
  .calendar-panel-heading { flex-wrap: wrap; }
  .admin-search { width: 100%; min-width: 0; order: 3; }
  .content-columns, .settings-grid { grid-template-columns: 1fr; }
  .management-card.full-card { grid-column: auto; }
  .gallery-upload-form, .admin-gallery-list { grid-template-columns: 1fr; }
  .admin-gallery-item { min-height: 190px; }
  .admin-gallery-item img { height: 155px; }
  .modal { padding: 29px 20px; }
  .qr-panel { grid-template-columns: 118px 1fr; gap: 13px; padding: 13px; }
  .qr-grid { width: 90px; height: 90px; }
}

@media (max-width: 390px) {
  .hero-copy h1 { font-size: 43px; }
  .slots-grid { grid-template-columns: 1fr; }
  .slot-button { min-height: 58px; }
  .schedule-heading .section-kicker { max-width: 180px; }
  .qr-panel { grid-template-columns: 1fr; text-align: center; }
  .modal-buttons { grid-template-columns: 1fr; }
  .contact-fields, .booking-details { grid-template-columns: 1fr; }
  .booking-detail.wide { grid-column: auto; }
}
