:root {
  --bg: #070708;
  --bg-header: #0a0a0c;
  --panel: #141416;
  --panel2: #1c1c20;
  --line: #2a261c;
  --line-strong: #3f3520;
  --text: #f4efe6;
  --muted: #a89f90;
  --gold: #c9a45c;
  --gold-bright: #e0c07a;
  --gold-ink: #1a1408;
  --neon: #c13ae8;
  --neon-dim: #7a2aa0;
  --mine: #3dd68c;
  --cream: #e8e0d4;
  --available: var(--gold);
  --reserved: var(--neon);
  --listed: #ff2d4a;
  --danger-bg: #3a161c;
  --danger-text: #ffc4c8;
  --tap: 48px;
  --font-display: "Playfair Display", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body { min-height: 100dvh; }

body.app {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  background:
    linear-gradient(180deg, #141018 0%, #0b0a0e 100%);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow:
    0 12px 28px #00000055,
    inset 0 -1px 0 color-mix(in srgb, var(--gold) 38%, transparent);
}

body.app .topbar {
  position: relative;
  flex-shrink: 0;
  top: auto;
}

.topbar-logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--neon) 16%, #120c14);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 0 16px color-mix(in srgb, var(--neon) 28%, transparent);
}

.topbar-copy {
  min-width: 0;
}

.topbar-name,
.topbar-greet {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.15;
}

.topbar-name span {
  color: var(--gold);
  font-weight: 600;
  font-style: italic;
}

.topbar-greet {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.topbar-me {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #16141a;
  border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
  font-size: 18px;
  line-height: 1;
}

.brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--neon);
  text-shadow: 0 0 18px color-mix(in srgb, var(--neon) 45%, transparent);
}

.brand span {
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-shadow: none;
}

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

.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.center span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.ghost, .back {
  border: 0;
  background: transparent;
  color: var(--gold);
  padding: 10px;
  font-weight: 700;
  min-height: var(--tap);
  min-width: var(--tap);
}

.back { font-size: 32px; line-height: 1; }

.page {
  padding: 22px 16px calc(90px + env(safe-area-inset-bottom));
  max-width: 620px;
  margin: auto;
}

body.app .page {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 28px;
}

h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 22px;
  color: var(--neon);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 0 18px color-mix(in srgb, var(--neon) 42%, transparent);
}

h1::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: var(--neon);
  box-shadow: 0 0 10px color-mix(in srgb, var(--neon) 55%, transparent);
}

.page-sub {
  margin: -8px 0 20px;
  text-align: center;
}

.event-date-line {
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-shadow: 0 0 14px color-mix(in srgb, var(--gold) 42%, transparent);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 20px;
}

.card-list { display: grid; gap: 12px; }

.card-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}

.card {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  min-height: 76px;
}

.booking-group.recent .card {
  border-color: color-mix(in srgb, var(--neon) 40%, var(--line));
}

.booking-group.past .card {
  border-color: color-mix(in srgb, var(--gold) 40%, var(--line));
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.card-body strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
}

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

.card-body small { font-size: 12px; }

.card-go {
  font-size: 28px;
  color: var(--gold);
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}

.card-media { flex-shrink: 0; }

.event-date {
  width: 52px;
  min-height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  background: #0b0b0d;
  color: var(--accent, var(--gold));
  border: 2px solid var(--accent, var(--gold));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent, var(--gold)) 28%, transparent);
  line-height: 1.05;
}

.event-date b {
  font-size: 18px;
  font-weight: 800;
}

.event-date span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: inherit;
}

.event-date.is-today {
  color: var(--neon);
  border-color: var(--neon);
}

.date-label { position: relative; }

.date-field {
  width: 100%;
  text-align: left;
  background: #0b0b0d;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 13px;
  min-height: var(--tap);
  font-weight: 700;
}

.date-field:focus,
.date-field[aria-expanded="true"] {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent);
}

.cal-pop {
  margin-top: 8px;
  background: var(--panel2);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 14px 12px 12px;
  box-shadow: 0 12px 32px #00000088;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-head strong {
  color: var(--gold);
  font-size: 15px;
  text-transform: capitalize;
}

.cal-nav {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--panel);
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
}

.cal-week,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-week {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cal-day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  font-weight: 700;
  min-height: 38px;
}

.cal-day.out { color: #5c564c; }

.cal-day.today {
  box-shadow: inset 0 0 0 1px var(--gold);
  color: var(--gold);
}

.cal-day.selected {
  background: var(--neon);
  color: #fff;
  box-shadow: 0 0 12px color-mix(in srgb, var(--neon) 45%, transparent);
}

.cal-day:active { transform: scale(0.96); }

.bottom-link {
  display: block;
  text-align: center;
  margin-top: 24px;
  color: var(--gold);
  font-weight: 700;
  min-height: var(--tap);
  padding-top: 12px;
}

.login-body {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 18%, color-mix(in srgb, var(--neon) 16%, transparent), transparent 42%),
    radial-gradient(ellipse at 80% 90%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 36%),
    var(--bg);
}

.login-card {
  width: min(100%, 420px);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 30px 22px;
  box-shadow: 0 0 40px color-mix(in srgb, var(--neon) 12%, transparent);
}

.eyebrow {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.22em;
  margin: 6px 0 30px;
}

.login-card form, .reserve-form { display: grid; gap: 14px; }

label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

input, textarea, select {
  width: 100%;
  background: #0b0b0d;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 13px;
  outline: none;
  min-height: var(--tap);
  font-size: 16px;
}

textarea { min-height: 84px; resize: vertical; }

input:disabled {
  color: var(--muted);
  opacity: 0.8;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent);
}

.primary {
  border: 0;
  border-radius: 14px;
  padding: 15px;
  min-height: 52px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 800;
}

.primary:disabled { opacity: 0.6; }

.list-save-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 15px;
  min-height: 52px;
  background: var(--neon);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 16px color-mix(in srgb, var(--neon) 35%, transparent);
}

.demo { font-size: 11px; color: var(--muted); text-align: center; }

.error {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--danger-bg);
  color: var(--danger-text);
  font-size: 12px;
  margin-bottom: 12px;
}

.hidden { display: none !important; }

.map-page .legend,
.map-page .floor-tabs,
.map-page .floor-maps {
  padding-left: 0;
  padding-right: 0;
}

.map-page .table-list {
  padding: 0;
  max-width: none;
}

.floor-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 16px 12px;
}

.floor-tab {
  min-height: var(--tap);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
}

.floor-tab.active {
  color: var(--gold-ink);
  background: var(--gold);
  border-color: var(--gold);
}

.floor-maps { padding: 0 16px 16px; }

.floor-map {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.floor-map img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 4px 16px 14px;
  font-size: 11px;
  color: var(--cream);
}

.legend span {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: var(--state);
  box-shadow: 0 0 8px color-mix(in srgb, var(--state) 70%, transparent);
}

.available { --state: var(--available); }
.reserved { --state: var(--reserved); }
.mine { --state: var(--mine); }
.listed { --state: var(--listed); }

.table-list {
  padding: 0 14px calc(96px + env(safe-area-inset-bottom));
  display: grid;
  gap: 22px;
  max-width: 720px;
  margin: auto;
}

body.app .table-list {
  padding-bottom: 8px;
}

.table-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.table-section h2 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-section h2 small {
  color: var(--muted);
  letter-spacing: 0;
  font-size: 11px;
  text-transform: none;
  font-weight: 700;
}

.table-section.prive {
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 18%, transparent);
}

.table-section.premium {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--neon) 16%, transparent);
}

.table-section.omaggio {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 18%, transparent);
}

.omaggio-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 76px;
  padding: 14px 16px;
  border: 2px solid var(--gold);
  border-radius: 18px;
  background: color-mix(in srgb, var(--gold) 16%, #0c0c0e);
  color: var(--cream);
  box-shadow: 0 0 14px color-mix(in srgb, var(--gold) 28%, transparent);
  text-align: left;
}

.omaggio-card .list-icon {
  position: static;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--gold-ink);
  flex-shrink: 0;
}

.omaggio-card .list-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.omaggio-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.omaggio-card-text strong {
  color: var(--gold-bright);
  font-size: 16px;
}

.omaggio-card-text small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.omaggio-card.has-list {
  border-color: var(--neon);
  box-shadow: 0 0 14px color-mix(in srgb, var(--neon) 28%, transparent);
}

.omaggio-add { margin-bottom: 16px; }
.omaggio-list { margin-top: 4px; }

.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 10px;
}

.table-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--state);
  background: color-mix(in srgb, var(--state) 16%, #0c0c0e);
  color: var(--cream);
  border-radius: 50%;
  aspect-ratio: 1;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  font-weight: 800;
  box-shadow: 0 0 14px color-mix(in srgb, var(--state) 28%, transparent);
  position: relative;
}

.table-btn:active { transform: scale(0.97); }

.table-btn .num {
  font-size: 20px;
  line-height: 1;
  color: var(--gold-bright);
}

.table-btn .who {
  font-size: 9px;
  font-weight: 600;
  color: var(--cream);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-btn.available .num { color: var(--gold); }
.table-btn.reserved .num { color: var(--neon); }
.table-btn.mine {
  --state: var(--mine);
}
.table-btn.mine .num { color: var(--mine); }

.table-btn.has-list {
  box-shadow:
    0 0 14px color-mix(in srgb, var(--state) 28%, transparent),
    0 0 0 2px var(--listed),
    0 0 16px color-mix(in srgb, var(--listed) 50%, transparent);
}

.list-icon {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--listed);
  color: #fff;
  box-shadow: 0 0 12px color-mix(in srgb, var(--listed) 80%, transparent);
  z-index: 2;
}

.list-icon svg {
  display: block;
  width: 13px;
  height: 13px;
  stroke: #fff;
  fill: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guest-list-read {
  width: 100%;
  margin-top: 16px;
  text-align: left;
}

.guest-list-read span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #e23d4a;
  margin-bottom: 8px;
}

.guest-list-read ol {
  margin: 0;
  padding-left: 20px;
  color: var(--cream);
  font-size: 14px;
  line-height: 1.5;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: #00000099;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}

.sheet-backdrop.open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--panel);
  border-top: 1px solid var(--line-strong);
  border-radius: 24px 24px 0 0;
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom));
  max-height: 88dvh;
  overflow: auto;
  transform: translateY(105%);
  transition: 0.25s;
}

.sheet.open { transform: none; }

.handle {
  width: 42px;
  height: 4px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--gold) 40%, #444);
  margin: 0 auto 12px;
}

.close {
  position: absolute;
  right: 14px;
  top: 12px;
  border: 0;
  background: var(--panel2);
  color: var(--cream);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 24px;
}

.sheet h2 { margin: 6px 0 18px; color: var(--gold); }
.sheet .ghost-btn { margin-top: 12px; }

.list-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 0 0 16px;
  border: 1px solid var(--neon);
  border-radius: 14px;
  color: var(--neon);
  font-weight: 800;
  background: color-mix(in srgb, var(--neon) 14%, var(--panel));
  box-shadow: 0 0 16px color-mix(in srgb, var(--neon) 22%, transparent);
}

.list-cta.hidden { display: none !important; }

.list-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  padding: 16px 18px;
  min-height: 80px;
  border-radius: 18px;
  border: 1px solid var(--neon);
  background: color-mix(in srgb, var(--neon) 18%, var(--panel));
  box-shadow: 0 0 24px color-mix(in srgb, var(--neon) 32%, transparent);
  color: var(--neon);
}

.list-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--neon);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 14px color-mix(in srgb, var(--neon) 55%, transparent);
}

.list-banner-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.list-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.list-banner-text strong {
  font-size: 17px;
  color: #fff;
}

.list-banner-text small {
  color: color-mix(in srgb, var(--neon) 75%, #fff);
  font-size: 12px;
  font-weight: 700;
}

.list-banner .card-go { color: var(--neon); }

.name-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.name-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}

.name-toggle-form { display: flex; min-width: 0; }

.name-toggle {
  width: 100%;
  min-height: 76px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  font-weight: 800;
}

.name-toggle span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.name-item.out .name-toggle {
  border: 1px solid var(--gold);
  color: var(--gold);
}

.name-item.in .name-toggle {
  border: 1px solid var(--neon);
  color: var(--neon);
  box-shadow: 0 0 16px color-mix(in srgb, var(--neon) 28%, transparent);
}

.name-item .booking-delete {
  min-height: 76px;
  height: auto;
}

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

.fancy-select { position: relative; }

.select-field {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  background: #0b0b0d;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 13px;
  min-height: var(--tap);
  font-size: 16px;
  font-weight: 700;
}

.select-field:focus,
.select-field[aria-expanded="true"] {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent);
}

.select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-caret {
  color: var(--gold);
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.select-field[aria-expanded="true"] .select-caret { transform: rotate(180deg); }

.select-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 26;
  min-width: 100%;
  width: max(100%, 220px);
  background: var(--panel2);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 16px 36px #00000099;
}

.select-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--cream);
  font-weight: 700;
  text-align: left;
}

.select-option::before {
  content: "";
  width: 16px;
  flex-shrink: 0;
  font-size: 13px;
  color: #fff;
}

.select-option:active { background: var(--panel); }

.select-option.is-selected {
  background: var(--neon);
  color: #fff;
  box-shadow: 0 0 12px color-mix(in srgb, var(--neon) 40%, transparent);
}

.select-option.is-selected::before { content: "✓"; }

.occupied-info {
  padding: 16px 16px 14px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 14px;
}

.occupied-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.occupied-hero .profile-avatar {
  width: 72px;
  height: 72px;
  margin: 0 0 10px;
  font-size: 36px;
}

.occupied-user {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--cream);
}

.occupied-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin: 0;
}

.occupied-facts dt {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.occupied-facts dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.35;
  word-break: break-word;
}

.occupied-facts .occupied-name,
.occupied-facts .occupied-notes {
  grid-column: 1 / -1;
}

.occupied-facts .occupied-notes dd {
  font-weight: 500;
  color: var(--text);
  white-space: pre-wrap;
}

.booking-delete-form { display: flex; }

.booking-delete {
  height: 100%;
  min-height: 76px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--neon) 40%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--neon) 12%, var(--panel));
  color: var(--neon);
  font-weight: 800;
  font-size: 11px;
}

.booking-group .booking-delete {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  color: var(--accent);
}

.booking-group { margin-bottom: 26px; --accent: var(--gold); }
.booking-group.recent { --accent: var(--neon); }
.booking-group.past { --accent: var(--gold); }

.booking-group h2 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-group h2 small {
  letter-spacing: 0;
  text-transform: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.booking-number {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0b0b0d;
  color: var(--accent, var(--gold));
  border: 2px solid var(--accent, var(--gold));
  font-weight: 800;
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent, var(--gold)) 28%, transparent);
  flex-shrink: 0;
}

.booking-number .list-icon {
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
}

.back-page {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 16px;
  min-height: var(--tap);
  padding-top: 8px;
}

.booking-number-lg {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  font-size: 22px;
}

.pr-avatar {
  width: 46px;
  height: 46px;
  font-size: 18px;
  flex-shrink: 0;
}

.bottombar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--bg-header);
  border-top: 1px solid var(--line);
  padding: 8px 4px 6px;
  padding-bottom: calc(6px + min(10px, env(safe-area-inset-bottom, 0px)));
  box-shadow: 0 -1px 0 color-mix(in srgb, var(--gold) 24%, transparent);
}

body.app .bottombar {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  flex-shrink: 0;
}

.bottombar.super { grid-template-columns: repeat(5, 1fr); }
.bottombar.super .bottombar-item { font-size: 10px; }

.bottombar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 42px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bottombar-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottombar-item.active {
  color: var(--neon);
}

.bottombar-item.active svg {
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--neon) 55%, transparent));
}

.profile-hero {
  text-align: center;
  margin-bottom: 22px;
}

.profile-user {
  margin: 12px 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
  color: var(--gold);
}

.profile-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0b0b0d;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 32px;
  font-weight: 800;
  box-shadow: 0 0 22px color-mix(in srgb, var(--gold) 30%, transparent);
}

.profile-avatar.emoji {
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.card.profile-stat {
  display: block;
  min-height: 0;
  text-align: center;
  padding: 16px;
}

.profile-stat .cut-line {
  display: block;
  margin-top: 8px;
  color: var(--neon);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.money-chart {
  margin: 0 0 22px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.money-chart h2 {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.money-chart .muted { margin: 0 0 12px; }

.money-svg {
  display: block;
  width: 100%;
  height: auto;
}

.money-svg .chart-max,
.money-svg .chart-date {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.money-svg .chart-draw { pointer-events: none; }
.money-svg .chart-dot { pointer-events: none; }
.money-svg .chart-hit { fill: transparent; cursor: pointer; }

.chart-tip {
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--gold) 10%, var(--panel2));
  border: 1px solid color-mix(in srgb, var(--gold) 36%, var(--line));
}

.chart-tip-name {
  color: var(--cream);
  font-size: 15px;
  font-weight: 800;
}

.chart-tip-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.chart-tip-row {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.chart-tip-row b { font-weight: 800; }

.chart-tip-delta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.chart-tip-delta.is-on { color: var(--gold); }

.profile-actions {
  display: grid;
  gap: 10px;
}

.profile-actions .settings-link { margin-bottom: 0; }

.ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}

.ranking-row {
  display: grid;
  grid-template-columns: 22px 22px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.ranking-who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ranking-sub {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.ranking-row:first-child { border-top: 0; }

.ranking-pos {
  color: var(--muted);
  font-weight: 800;
  font-size: 11px;
  text-align: center;
}

.ranking-row.top-1 .ranking-pos { color: var(--gold-bright); }
.ranking-row.top-2 .ranking-pos { color: #c8c8d0; }
.ranking-row.top-3 .ranking-pos { color: var(--neon); }

.ranking-avatar {
  font-size: 14px;
  line-height: 1;
  text-align: center;
}

.ranking-name {
  font-weight: 700;
  color: var(--cream);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-meta {
  color: var(--gold);
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
}

.ranking-row.is-me {
  background: color-mix(in srgb, var(--neon) 12%, transparent);
}

.ranking-row.is-me .ranking-name { color: var(--gold-bright); }

.ranking-empty {
  padding: 14px 12px;
  list-style: none;
}

.profile-stat b {
  display: block;
  color: var(--gold);
  font-size: 22px;
  margin-bottom: 4px;
}

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

.ok {
  padding: 10px 12px;
  border-radius: 10px;
  background: #1a2a18;
  color: #c9e8b8;
  font-size: 12px;
  margin-bottom: 12px;
}

.profile-logout { margin-top: 18px; }

.ghost-btn {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  color: var(--gold);
  font-weight: 800;
}

a.ghost-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.settings-page h1 { margin-bottom: 14px; }

.settings-block {
  margin-bottom: 14px;
}

.settings-block h2 {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.settings-block .muted,
.settings-rank .muted {
  margin: 0 0 12px;
  font-size: 12px;
}

.percent-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.percent-input input { flex: 1; }

.percent-input span {
  color: var(--gold);
  font-weight: 800;
  font-size: 18px;
  min-width: 1.2em;
}

.percent-preview {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--neon) 14%, var(--panel2));
  border: 1px solid color-mix(in srgb, var(--neon) 35%, var(--line));
  color: var(--neon);
  font-weight: 800;
  font-size: 14px;
}

.settings-rank h2 {
  margin: 8px 0 4px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.price-tag {
  color: var(--gold);
  font-weight: 800;
  flex-shrink: 0;
}

.inline-link { color: var(--gold); font-weight: 700; }

.public-body {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--neon) 14%, transparent), transparent 42%),
    var(--bg);
}

.public-header {
  padding: calc(18px + env(safe-area-inset-top)) 16px 18px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--gold) 24%, transparent);
}

.public-header .eyebrow { margin-bottom: 0; }

.public-page { padding-bottom: 40px; }

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

.menu-section h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--gold);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
  min-height: var(--tap);
}

.check-row input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  accent-color: var(--neon);
}

.price-row strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}

.price-row .price-tag { color: var(--neon); }

.price-row.special .price-tag {
  text-shadow: 0 0 10px color-mix(in srgb, var(--neon) 55%, transparent);
}

.special-badge {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
  background: var(--neon);
  border-radius: 999px;
  padding: 3px 7px;
}

.price-tag.special { color: var(--neon); }

.price-dots {
  flex: 1;
  border-bottom: 1px dotted var(--line-strong);
  min-width: 16px;
}
