:root {
  --ink: #231816;
  --muted: #6f625f;
  --bg: #fff9f2;
  --panel: #ffffff;
  --brand: #c53a24;
  --green: #2f8f46;
  --yellow: #d6a825;
  --orange: #d96d27;
  --grey: #898989;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 56px);
  background: #fff;
  border-bottom: 1px solid #eaded5;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  font-weight: 900;
  font-size: 22px;
  color: var(--brand);
}
.brand img {
  display: block;
  width: 64px;
  height: 58px;
  object-fit: contain;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
}
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}
.nav-button::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 8px solid #fff5d5;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  transform: rotate(30deg);
}
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}
.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 28px;
  border: 1px solid #eaded5;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.language-switcher a.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.flash {
  margin: 16px clamp(18px, 4vw, 56px) 0;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 700;
}
.flash-error {
  background: #fff1ef;
  border: 1px solid #e5a39a;
  color: #8d2518;
}
.flash-success {
  background: #eefaf1;
  border: 1px solid #9fd4ab;
  color: #1f6b32;
}
.hero {
  min-height: 520px;
  display: grid;
  align-items: center;
  padding: 56px clamp(18px, 6vw, 84px);
  color: #fff;
  background: linear-gradient(rgba(35, 24, 22, .4), rgba(35, 24, 22, .55)), url('https://images.unsplash.com/photo-1513104890138-7c749659a591?auto=format&fit=crop&w=1800&q=80') center/cover;
}
.hero > div { max-width: 620px; }
h1 { font-size: clamp(38px, 7vw, 76px); line-height: 1; margin: 0 0 18px; }
h2, h3 { margin: 0 0 10px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.section { padding: 44px clamp(18px, 5vw, 72px); }
.narrow { max-width: 820px; margin: 0 auto; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.secondary { background: #58413c; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.card, .panel {
  background: var(--panel);
  border: 1px solid #eaded5;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(35, 24, 22, .06);
}
.empty-state {
  background: #fff;
  border: 1px solid #eaded5;
  border-radius: 8px;
  padding: clamp(24px, 5vw, 44px);
  box-shadow: 0 8px 24px rgba(35, 24, 22, .06);
}
.empty-state h1 {
  color: var(--ink);
  font-size: clamp(34px, 6vw, 56px);
}
.empty-state p {
  color: var(--muted);
  max-width: 620px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.link-card:hover, .choice:hover { border-color: var(--brand); }
.pill { display: inline-flex; margin-top: 12px; color: var(--brand); font-weight: 700; }
.spicy-pill {
  color: #c21f14;
}
.booking-history-item .spicy-postfix {
  color: #c21f14;
}
.slots, .admin-slots { display: grid; gap: 12px; }
.slot, .admin-slot {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff;
  border-left: 8px solid var(--green);
}
.slot.partial, .admin-slot.partial { border-left-color: var(--yellow); }
.slot.full, .admin-slot.full { border-left-color: var(--grey); }
.slot.disabled { pointer-events: none; opacity: .65; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #dfd5ce; }
.dots .used { background: var(--orange); }
.choice { display: flex; gap: 12px; cursor: pointer; }
.choice span { display: grid; gap: 8px; }
.pizza-choice {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
}
.pizza-choice > div {
  display: grid;
  gap: 10px;
}
.quantity-field {
  grid-template-columns: 1fr 92px;
  align-items: center;
  color: var(--muted);
}
.quantity-field select {
  width: 92px;
  text-align: center;
}
.selection-summary {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 800;
}
.pizza-spicy-option {
  margin: 2px 0 0;
  color: var(--brand);
}
.booking-history {
  display: grid;
  gap: 24px;
}
.booking-history-group {
  display: grid;
  gap: 14px;
}
.booking-history-group h2 {
  margin-bottom: 8px;
}
.booking-history-slot {
  display: grid;
  gap: 0;
  padding: 12px 14px;
  border: 1px solid #eaded5;
  border-radius: 8px;
  background: #fffaf5;
}
.booking-history-slot h3 {
  margin-bottom: 6px;
  color: var(--muted);
}
.booking-history-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #eaded5;
}
.booking-history-item:last-child {
  border-bottom: 0;
}
.booking-history-item div {
  display: grid;
  gap: 6px;
}
.booking-history-item span,
.booking-history-item small {
  color: var(--muted);
}
label { display: grid; gap: 8px; font-weight: 700; }
.check { display: flex; align-items: center; gap: 8px; margin: 16px 0; }
.check.disabled { color: var(--muted); opacity: .65; }
textarea, input, select {
  min-height: 38px;
  border: 1px solid #d7c8bd;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}
input[readonly] {
  background: #f3eee9;
  color: var(--muted);
}
select:disabled {
  background: #f3eee9;
  color: var(--muted);
  cursor: not-allowed;
}
.profile-form {
  display: grid;
  gap: 16px;
}
.toolbar, .row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.row { justify-content: space-between; }
.admin-heading {
  margin-bottom: 22px;
}
.admin-create {
  display: grid;
  gap: 22px;
  margin-bottom: 34px;
}
.admin-create-grid {
  display: grid;
  grid-template-columns: 220px 150px 150px 150px 120px;
  gap: 18px 24px;
  align-items: end;
  justify-content: start;
}
.admin-create input,
.admin-create select {
  width: 100%;
  min-height: 56px;
  font-size: 24px;
}
.admin-create .button {
  justify-self: start;
  min-width: 150px;
}
.admin-day {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
.admin-day-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.admin-day-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 6px;
}
.admin-day-header p {
  margin: 0;
  color: var(--muted);
}
.summary-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #eaded5;
  border-radius: 8px;
  background: #eaded5;
}
.summary-bar span {
  display: grid;
  gap: 2px;
  min-height: 70px;
  padding: 12px 14px;
  background: #fffaf5;
  color: var(--muted);
  font-size: 13px;
}
.summary-bar strong {
  color: var(--ink);
  font-size: 24px;
}
.admin-slots {
  display: grid;
  gap: 10px;
}
.admin-slot {
  display: grid;
  grid-template-columns: minmax(92px, .6fr) minmax(180px, 1fr) minmax(120px, .75fr) minmax(130px, .75fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff;
  border-left: 8px solid var(--green);
  transition: background .18s ease, border-color .18s ease;
}
.admin-slot.save-success {
  background: #f2fbf4;
  border-color: #8bcf98;
}
.admin-slot.save-error {
  background: #fff1ef;
  border-color: #d86a5b;
}
.slot-time,
.slot-capacity,
.compact-field {
  display: grid;
  gap: 6px;
}
.slot-time span,
.slot-capacity span,
.compact-field {
  color: var(--muted);
  font-size: 13px;
}
.compact-field input {
  width: 92px;
}
.switch-field {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "input text"
    "track text";
  gap: 4px 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.switch-field input {
  grid-area: input;
  position: absolute;
  opacity: 0;
}
.switch-field span {
  grid-area: track;
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #d7c8bd;
  transition: background .18s ease;
}
.switch-field span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(35, 24, 22, .18);
  transition: transform .18s ease;
}
.switch-field input:checked + span {
  background: var(--brand);
}
.switch-field input:checked + span::after {
  transform: translateX(20px);
}
.admin-empty,
.empty-copy {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  padding: 80px 16px;
}
.table-wrap {
  overflow-x: auto;
}
.admin-bookings-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.admin-bookings-table th,
.admin-bookings-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eaded5;
  text-align: left;
  vertical-align: top;
}
.admin-bookings-table th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.admin-bookings-table tbody tr:last-child td {
  border-bottom: 0;
}
.admin-bookings-table td {
  font-weight: 700;
}
.slot-save {
  min-width: 94px;
}
.loading-dot {
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .site-header, .site-nav, .toolbar, .row { align-items: flex-start; flex-direction: column; }
  .site-header { gap: 14px; }
  .brand { min-height: 52px; }
  .brand img { width: 58px; height: 52px; }
  .language-switcher { margin-left: 0; }
  .admin-create-grid,
  .summary-bar,
  .slot, .admin-slot { grid-template-columns: 1fr; }
  .admin-day-header { flex-direction: column; }
}
