:root {
  --bg: #f6f2eb;
  --bg-soft: linear-gradient(180deg, #fff8f0 0%, #f6f1ea 100%);
  --text: #2a1d14;
  --muted: #6f6056;
  --line: rgba(115, 84, 55, 0.14);
  --accent: #c84b31;
  --green-soft: rgba(45,159,91,0.12);
  --red-soft: rgba(200,75,49,0.12);
  --shadow: 0 18px 40px rgba(91, 58, 25, 0.1);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-soft);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
}
img { max-width: 100%; display: block; }
.site-shell {
  width: min(1120px, calc(100% - 24px));
  margin: 16px auto 40px;
}
.hero-card, .panel-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
}
.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 22px;
}
.brand-wrap {
  max-width: 620px;
}
.brand-logo {
  width: min(100%, 540px);
  height: auto;
}
.hero-copy h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.9rem, 2.4vw, 3rem);
  line-height: 1.04;
}
.hero-copy p { margin: 0 0 12px; color: var(--muted); font-size: 1rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(248,186,59,0.18);
  color: #8a5a0d;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.meta-pill {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 14px;
  font-size: .94rem;
}
.admin-link {
  position: absolute;
  right: 18px;
  top: 18px;
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
}
.content-grid.single-main { display: block; margin-top: 16px; }
.panel-card { padding: 22px; }
.section-head { margin-bottom: 14px; }
.compact-head h2 { margin: 0; font-size: 1.45rem; }
.order-form { display: grid; gap: 18px; }
.step-block {
  margin: 0; padding: 0; border: none; display: grid; gap: 12px;
}
.step-block legend { font-weight: 800; margin-bottom: 4px; padding: 0; font-size: 1rem; }
.two-cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
select, input[type="password"] {
  width: 100%; border-radius: 18px; border: 1px solid var(--line); background: #fff; padding: 15px 16px;
  font-size: 1rem; color: var(--text); outline: none;
}
select:focus, input[type="password"]:focus { border-color: rgba(200,75,49,0.4); box-shadow: 0 0 0 4px rgba(200,75,49,0.12); }
.choice-row { display: flex; flex-wrap: wrap; gap: 12px; }
.circle-choice input, .pill-choice input, .pizza-card input, .time-card input { position: absolute; opacity: 0; pointer-events: none; }
.circle-choice {
  position: relative; display: inline-flex; width: 74px; height: 74px; border-radius: 999px; border: 2px solid rgba(200,75,49,0.25);
  background: #fff; align-items: center; justify-content: center; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.circle-choice span { font-size: 1.1rem; font-weight: 800; }
.circle-choice:has(input:checked) {
  border-color: var(--accent); background: linear-gradient(180deg, rgba(255,244,240,1) 0%, rgba(255,255,255,1) 100%);
  box-shadow: 0 10px 20px rgba(200,75,49,0.15); transform: translateY(-1px);
}
.pill-choice { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.pill-choice span { padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.pill-choice:has(input:checked) span { border-color: rgba(45,159,91,0.35); background: var(--green-soft); color: #146038; }
.pizza-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px;
}
.pizza-card {
  position: relative; display: grid; gap: 8px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  cursor: pointer; min-height: 100%; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pizza-card:hover, .time-card:hover, .circle-choice:hover { transform: translateY(-2px); }
.pizza-card:has(input:checked) {
  border-color: rgba(200,75,49,0.45); box-shadow: 0 14px 28px rgba(200,75,49,0.12); background: linear-gradient(180deg, rgba(255,249,246,1) 0%, rgba(255,255,255,1) 100%);
}
.pizza-art { display: grid; place-items: center; aspect-ratio: 1/1; border-radius: 18px; background: linear-gradient(180deg, #fffaf1 0%, #fff1df 100%); overflow: hidden; }
.pizza-name { font-weight: 800; font-size: 1.02rem; }
.pizza-desc { color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
.modern-slots { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.time-card {
  position: relative; display: grid; gap: 10px; padding: 16px; border-radius: 22px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; min-height: 175px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.time-card:has(input:checked) { border-color: rgba(45,159,91,0.4); box-shadow: 0 14px 28px rgba(45,159,91,0.14); background: linear-gradient(180deg, rgba(243,255,248,1) 0%, rgba(255,255,255,1) 100%); }
.time-card.is-closed { opacity: .65; background: linear-gradient(180deg, rgba(249,247,245,1) 0%, rgba(255,255,255,1) 100%); }
.time-card-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.time-badge { font-size: 1.18rem; font-weight: 900; }
.slot-state { border-radius: 999px; padding: 7px 10px; font-size: .84rem; font-weight: 800; }
.slot-state-open { background: var(--green-soft); color: #146038; }
.slot-state-closed { background: var(--red-soft); color: #8b2f1f; }
.pickup-day, .slot-stop, .countdown, .help-text, .empty-state { color: var(--muted); }
.countdown { font-size: 0.92rem; line-height: 1.35; }
.submit-row { display: grid; gap: 10px; }
.primary-button, .secondary-button, .ghost-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px;
  border-radius: 16px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .18s ease; border: none;
}
.primary-button { background: linear-gradient(180deg, #d35b3f 0%, #b6452f 100%); color: #fff; box-shadow: 0 14px 26px rgba(200,75,49,0.2); }
.secondary-button { background: #fff; color: var(--text); border: 1px solid var(--line); }
.ghost-danger { background: rgba(200,75,49,0.12); color: #8b2f1f; min-height: 40px; padding: 0 14px; }
.button-stack { display: flex; gap: 10px; flex-wrap: wrap; }
.notice { padding: 14px 16px; border-radius: 18px; margin-bottom: 4px; font-weight: 700; }
.notice-success { background: rgba(45,159,91,0.12); color: #146038; border: 1px solid rgba(45,159,91,0.18); }
.notice-error { background: rgba(200,75,49,0.12); color: #8b2f1f; border: 1px solid rgba(200,75,49,0.18); }
.login-shell { width: min(520px, calc(100% - 28px)); margin: 48px auto; }
.login-card { padding: 28px; }
.login-form { display: grid; gap: 14px; margin-top: 16px; }
.admin-shell { margin-top: 22px; }
.admin-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.inline-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.table-wrap { overflow-x: auto; }
.order-table {
  width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden;
}
.order-table th, .order-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
}
.order-table th { background: #fff7ef; }
.order-table tbody tr:last-child td { border-bottom: none; }
@media (max-width: 920px) {
  .pizza-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .modern-slots { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .site-shell { width: min(100%, calc(100% - 16px)); }
  .two-cols, .pizza-grid, .modern-slots, .admin-hero { grid-template-columns: 1fr; display: grid; }
  .panel-card, .hero-card { padding: 18px; border-radius: 22px; }
  .circle-choice { width: 66px; height: 66px; }
  .button-stack { flex-direction: column; }
  .admin-link { position: static; justify-self: start; margin-top: 6px; }
  .brand-wrap { max-width: 100%; }
}
@page { size: A4 portrait; margin: 10mm; }
@media print {
  body { background: #fff; }
  .site-shell { width: 100%; margin: 0; }
  .hero-card, .panel-card { box-shadow: none; border: none; background: #fff; padding: 0; }
  .no-print { display: none !important; }
  .admin-hero { margin-bottom: 8mm; }
  .admin-hero h1 { font-size: 21pt; margin-bottom: 4mm; }
  .admin-hero p, .admin-hero .eyebrow { font-size: 12pt; }
  .printable-table { width: 100%; table-layout: fixed; page-break-inside: avoid; }
  .printable-table th, .printable-table td {
    font-size: 13.5pt; line-height: 1.25; padding: 10px 12px; border-color: #c2c2c2;
  }
  .printable-table th:nth-child(1), .printable-table td:nth-child(1) { width: 22%; }
  .printable-table th:nth-child(2), .printable-table td:nth-child(2) { width: 34%; }
  .printable-table th:nth-child(3), .printable-table td:nth-child(3) { width: 24%; }
  .printable-table th:nth-child(4), .printable-table td:nth-child(4) { width: 20%; }
}
