#selectionModal.hidden {
  display: none !important;
}

* {
  box-sizing: border-box
}

:root {
  --bg: #000000;
  --card: #fffaf3;
  --ink: #1f1d1a;
  --muted: #000000;
  --gold: #c69a63;
  --dark: #141312;
  --line: #e7d8c3;
  --shadow: 0 18px 45px rgba(31, 29, 26, .12);
  --soft-black: #1a1917;
  --beige-soft: #c8b896;
  --beige: #c69a63;
  --white: #ffffff;
  --red: #c0392b;
  --red-dark: #922b21;
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gold);
  background: radial-gradient(circle at top left, #000000, var(--bg) 42%, #000000)
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px clamp(18px, 5vw, 70px);
  background: var(--card);
  backdrop-filter: blur(14px);
  border-bottom: 0px solid var(--line)
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  text-decoration: none
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: white;
  background: var(--dark);
  border: 3px solid var(--gold);
  font-weight: 800
}

.brand span {
  display: block;
  color: var(--gold);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase
}

nav {
  display: flex;
  gap: 18px
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 28px;
  padding: clamp(42px, 8vw, 100px) clamp(18px, 5vw, 70px);
  align-items: center
}

.hero-copy h1 {
  margin: 0;
  max-width: 900px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: .95;
  letter-spacing: -.06em
}

.hero-copy p {
  max-width: 620px;
  color: var(--gold);
  font-size: 1.12rem
}

.eyebrow {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none
}

.primary {
  color: var(--dark);
  background: var(--gold);
  font-size: medium;
}

.ghost {
  color: var(--gold);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--gold)
}

.full {
  width: 100%
}

.hero-card,
.cart-card,
.contact-card,
.menu-item,
.notice {
  background: rgba(255, 250, 243, .9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 28px
}

.hero-card {
  padding: 20px;
  transform: rotate(0deg);
  color: var(--dark);
}

.hero-logo {
  width: 115px;
  height: auto;
  display: block;
  margin-bottom: -40px;
  margin-top: 0px;
}

.hero-card h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  color: var(--dark);
}

.hero-card ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
  color: var(--dark);
}

.notice {
  margin: 0 clamp(18px, 5vw, 70px);
  padding: 18px 22px;
  color: var(--muted)
}

.section {
  padding: 70px clamp(18px, 5vw, 70px)
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -.04em
}

.section-heading p {
  color: var(--gold)
}

.compact {
  margin-bottom: 12px
}

.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 22px
}

.category-tabs button {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer
}

.category-tabs button.active {
  background: var(--dark);
  color: white;
  border-color: var(--dark)
}
.tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-top: 32px
}

.tabs button {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer
}

.bottom-tabs button.active {
  background: var(--dark);
  color: white;
  border-color: var(--dark)
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px
}

.menu-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px
}

.menu-item h3 {
  margin: 0;
  font-size: 1.05rem
}

.menu-item p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: .95rem
}

.menu-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px
}

.price {
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 900
}

.add-btn {
  border: 0;
  background: var(--gold);
  color: white;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer
}

.order-section {
  display: grid;
  place-items: center
}

.cart-card {
  width: min(760px, 100%);
  padding: 28px
}

.cart-items {
  display: grid;
  gap: 10px;
  min-height: 52px
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line)
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px
}

.qty-controls button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: var(--dark);
  color: white;
  font-weight: 900
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  padding-top: 16px;
  border-top: 2px solid var(--dark);
  font-size: 1.25rem
}

.order-form {
  display: grid;
  gap: 14px
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: white;
  font: inherit
}

textarea {
  min-height: 90px
}

.status {
  margin: 0;
  color: var(--muted);
  font-weight: 800
}

.contact {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  align-items: center
}

.contact-card {
  display: grid;
  gap: 8px;
  padding: 24px
}

footer {
  padding: 28px;
  color: var(--gold);
  text-align: center;
  border-top: 1px solid var(--gold)
}

@media(max-width:900px) {

  .hero,
  .contact {
    grid-template-columns: 1fr
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  nav {
    display: none
  }
}

@media(max-width:620px) {
  .menu-grid {
    grid-template-columns: 1fr
  }

  .cart-row {
    grid-template-columns: 1fr
  }

  .logo {
    width: 20px;
    height: auto
  }
}

#selectionModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: grid;
  place-items: center;
  z-index: 9999;
  padding: 20px;
}

#selectionModal.hidden {
  display: none !important;
}

#selectionModal .modal-card {
  width: min(600px, 94vw);
  max-height: 85vh;
  overflow-y: auto;
  background: #fffaf3;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

#selectionModal h2 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

#selectionModal .modal-choices {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

#selectionModal .choice-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #e7d8c3;
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  font-weight: 700;
}

#selectionModal .choice-option:hover {
  background: #f7efe3;
}

#selectionModal .choice-option input {
  width: 18px;
  height: 18px;
}

#selectionModal .modal-actions {
  display: flex;
  gap: 12px;
}

#selectionModal .modal-actions button {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  font-weight: 900;
  cursor: pointer;
}

#cancelSelection {
  background: #e7d8c3;
  color: #1f1d1a;
}

#confirmSelection {
  background: #141312;
  color: white;
}
#checkoutModal.hidden,
#deliveryFields.hidden {
  display: none !important;
}

.checkout-options {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}

.checkout-options label {
  flex: 1;
  padding: 14px;
  border: 1px solid #e7d8c3;
  border-radius: 16px;
  background: white;
  cursor: pointer;
}
#checkoutModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: grid;
  place-items: center;
  z-index: 9999;
  padding: 20px;
}

#checkoutModal.hidden {
  display: none !important;
}

#checkoutModal .modal-card {
  width: min(560px, 94vw);
  max-height: 85vh;
  overflow-y: auto;
  background: #fffaf3;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

#checkoutModal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

#checkoutModal .modal-actions button {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  font-weight: 900;
  cursor: pointer;
}

#cancelCheckout {
  background: #e7d8c3;
  color: #1f1d1a;
}

#confirmCheckout {
  background: #141312;
  color: white;
} 
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #141312;
  color: white;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 700;
  z-index: 99999;

  opacity: 0;
  transform: translateY(10px);

  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.hide {
  opacity: 0;
  transform: translateY(10px);
}
#floatingCart {
  position: fixed;
  bottom: 24px;
  left: 24px;

  width: 64px;
  height: 64px;

  border: none;
  border-radius: 50%;

  background: #141312;
  color: white;

  font-size: 1.6rem;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 30px rgba(0,0,0,.25);

  z-index: 9999;
}

#cartCount {
  position: absolute;
  top: -4px;
  right: -4px;

  min-width: 24px;
  height: 24px;

  padding: 0 6px;

  border-radius: 999px;

  background: #c69a63;
  color: white;

  font-size: 0.8rem;
  font-weight: 900;

  display: flex;
  align-items: center;
  justify-content: center;
}
.payment-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.payment-btn {
  flex: 1;
  width:100%;
  min-width: 140px;
  border: 0;
  border-radius: 18px;
  padding: 16px 20px;
  background: #141312;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    background 0.2s ease;
}

.payment-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.payment-btn:active {
  transform: scale(0.98);
}
.payment-btn {
  display: flex;
  justify-content: center;
  align-items: center;
}
.payment-btn * {
  pointer-events: none;
}
#paymentQR {
  display: none;
  width: 320px;
  max-width: 90vw;
  border-radius: 20px;
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.logo-text {
  line-height: 0.5;
  color: var(--dark);
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}

.modal.hidden,
.payment-info.hidden {
  display: none;
}

.modal-box {
  position: relative;
  width: min(520px, 100%);
  background: var(--card);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.payment-info {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.payment-info ul {
  padding-left: 20px;
}

@media (max-width: 520px) {
  .payment-options {
    grid-template-columns: 1fr;
  }
}
.menu-item-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  float: right;
  margin-left: 12px;
  margin-bottom: 8px;
}

/* DASHBOARD CSS */

.dashboard-section {
  width: min(1150px, 92%);
  margin: 0 auto;
  padding: 80px 0;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.new-orders-count {
  background: var(--gold);
  color: #000;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  border: 1.5px solid rgba(185, 171, 125, 0.3);
  background: transparent;
  color: var(--beige-soft);
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}

.dashboard-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.orders-list {
  display: grid;
  gap: 20px;
}

.order-card {
  background: var(--soft-black);
  border: 1px solid rgba(185, 171, 125, 0.18);
  border-left: 4px solid rgba(185, 171, 125, 0.3);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.order-card[data-status="new"] { border-left-color: var(--gold); }
.order-card[data-status="preparing"] { border-left-color: #3b82f6; }
.order-card[data-status="ready"] { border-left-color: #22c55e; }
.order-card[data-status="completed"] { border-left-color: #6b7280; }
.order-card[data-status="cancelled"] { border-left-color: var(--red); }

.order-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.order-card h3 {
  margin: 0;
  color: var(--beige-soft);
}

.order-card p,
.order-card li {
  color: var(--beige-soft);
}

.order-status-badge {
  background: rgba(185, 171, 125, 0.2);
  color: var(--gold);
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.order-status-badge[data-status="new"] { background: rgba(198, 154, 99, 0.2); color: var(--gold); }
.order-status-badge[data-status="preparing"] { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.order-status-badge[data-status="ready"] { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.order-status-badge[data-status="completed"] { background: rgba(107, 114, 128, 0.2); color: #9ca3af; }
.order-status-badge[data-status="cancelled"] { background: rgba(192, 57, 43, 0.2); color: #f87171; }

.order-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 18px;
  margin-bottom: 18px;
}

.order-info p {
  margin: 0;
}

.order-info strong {
  color: var(--gold);
}

.order-items {
  display: grid;
  gap: 12px;
  padding-left: 20px;
}

.order-items li {
  line-height: 1.5;
}

.order-selections {
  margin-top: 8px;
  padding-left: 12px;
}

.order-total {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(185, 171, 125, 0.18);
  color: var(--beige);
  font-size: 1.2rem;
}

.order-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.order-buttons button {
  border: 1.5px solid;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  transition: background 0.15s, color 0.15s;
}

.order-buttons button[data-status="preparing"] { border-color: #3b82f6; color: #60a5fa; }
.order-buttons button[data-status="ready"]     { border-color: #22c55e; color: #4ade80; }
.order-buttons button[data-status="completed"] { border-color: #6b7280; color: #9ca3af; }
.order-buttons button[data-status="cancelled"] { border-color: var(--red); color: #f87171; }

.order-buttons button[data-status="preparing"]:hover,
.order-buttons button[data-status="preparing"].active { background: #3b82f6; color: #fff; }

.order-buttons button[data-status="ready"]:hover,
.order-buttons button[data-status="ready"].active { background: #22c55e; color: #000; }

.order-buttons button[data-status="completed"]:hover,
.order-buttons button[data-status="completed"].active { background: #6b7280; color: #fff; }

.order-buttons button[data-status="cancelled"]:hover,
.order-buttons button[data-status="cancelled"].active { background: var(--red); color: #fff; }

/* Dashboard tabs */

.dash-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(185, 171, 125, 0.18);
  padding-bottom: 0;
}

.dash-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--beige-soft);
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.dash-tab:hover {
  color: var(--gold);
}

.dash-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Availability panel */

.avail-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.avail-date-input {
  background: var(--soft-black);
  border: 1px solid rgba(185, 171, 125, 0.3);
  border-radius: 10px;
  color: var(--beige-soft);
  font-size: 1rem;
  padding: 10px 14px;
  cursor: pointer;
  outline: none;
}

.avail-date-input:focus {
  border-color: var(--gold);
}

.avail-day-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.avail-block-btn,
.avail-unblock-btn {
  border: 1.5px solid;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.15s, color 0.15s;
}

.avail-block-btn {
  border-color: var(--red);
  color: #f87171;
}

.avail-block-btn:hover {
  background: var(--red);
  color: #fff;
}

.avail-unblock-btn {
  border-color: #22c55e;
  color: #4ade80;
}

.avail-unblock-btn:hover {
  background: #22c55e;
  color: #000;
}

.slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slot-btn {
  border: 1.5px solid #22c55e;
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.slot-btn:hover {
  background: rgba(34, 197, 94, 0.25);
}

.slot-btn.blocked {
  border-color: var(--red);
  background: rgba(192, 57, 43, 0.15);
  color: #f87171;
}

.slot-btn.blocked:hover {
  background: rgba(192, 57, 43, 0.3);
}

.slot-btn.taken {
  border-color: rgba(198, 154, 99, 0.4);
  background: rgba(198, 154, 99, 0.1);
  color: var(--gold);
  cursor: not-allowed;
  opacity: 0.75;
}

.avail-range-section {
  margin-bottom: 28px;
}

.avail-section-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin: 0 0 14px;
}

.avail-range-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.avail-range-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--beige-soft);
  font-weight: 600;
}

.avail-date-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.avail-divider {
  border: none;
  border-top: 1px solid rgba(185, 171, 125, 0.15);
  margin: 28px 0;
}

.avail-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.legend-item {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid;
}

.legend-item.available { border-color: #22c55e; color: #4ade80; background: rgba(34,197,94,0.1); }
.legend-item.taken     { border-color: rgba(198,154,99,0.4); color: var(--gold); background: rgba(198,154,99,0.1); }
.legend-item.blocked   { border-color: var(--red); color: #f87171; background: rgba(192,57,43,0.15); }

@media (max-width: 650px) {
  .dashboard-section {
    padding: 50px 0;
  }

  .order-card-header,
  .order-total {
    flex-direction: column;
  }

  .order-info {
    grid-template-columns: 1fr;
  }

  .order-buttons {
    flex-direction: column;
  }

  .order-buttons button {
    width: 100%;
  }

  .avail-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .avail-date-input {
    width: 100%;
  }

  .slot-btn {
    flex: 1 1 calc(50% - 5px);
    text-align: center;
  }
}

/* ── Calendar ──────────────────────────────────────────────────────────────── */

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

.cal-month-label {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--beige-soft);
}

.cal-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(185, 171, 125, 0.3);
  background: transparent;
  color: var(--beige-soft);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}

.cal-nav-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.cal-dow {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  padding: 6px 0;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 24px;
}

.cal-day {
  background: var(--soft-black);
  border: 1px solid rgba(185, 171, 125, 0.12);
  border-radius: 10px;
  padding: 8px 6px;
  min-height: 80px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s;
}

.cal-day:hover {
  border-color: rgba(185, 171, 125, 0.5);
}

.cal-day.empty {
  background: transparent;
  border: none;
  cursor: default;
  min-height: 0;
}

.cal-day.past {
  opacity: 0.35;
}

.cal-day.today {
  border-color: var(--gold);
  background: rgba(198, 154, 99, 0.08);
}

.cal-day.blocked-all {
  background: rgba(192, 57, 43, 0.1);
  border-color: rgba(192, 57, 43, 0.3);
}

.cal-day.blocked-partial {
  border-color: rgba(192, 57, 43, 0.25);
}

.cal-day-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--beige-soft);
  line-height: 1;
}

.cal-day.today .cal-day-num {
  color: var(--gold);
}

.cal-order-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(198, 154, 99, 0.18);
  color: var(--gold);
  padding: 2px 5px;
  border-radius: 999px;
  white-space: nowrap;
  width: fit-content;
}

.cal-blocked-label {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(192, 57, 43, 0.15);
  color: #f87171;
  padding: 2px 5px;
  border-radius: 999px;
  white-space: nowrap;
  width: fit-content;
}

/* Day detail panel */

.cal-detail {
  background: var(--soft-black);
  border: 1px solid rgba(185, 171, 125, 0.18);
  border-radius: 16px;
  padding: 20px 24px;
}

.cal-detail-header {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(185, 171, 125, 0.15);
}

.cal-detail-date {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--beige-soft);
}

.cal-detail-section {
  margin-bottom: 18px;
}

.cal-detail-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin: 0 0 10px;
}

.cal-detail-closed {
  color: #f87171;
  font-weight: 600;
  margin: 0 0 16px;
}

.cal-detail-empty {
  color: var(--beige-soft);
  opacity: 0.5;
  font-size: 0.9rem;
}

.cal-detail-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cal-slot-chip {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--red);
  color: #f87171;
  background: rgba(192, 57, 43, 0.1);
}

.cal-detail-orders {
  display: grid;
  gap: 8px;
}

.cal-order-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(185, 171, 125, 0.1);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.cal-order-row:hover {
  border-color: rgba(185, 171, 125, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

@keyframes order-highlight {
  0%   { box-shadow: 0 0 0 3px var(--gold); }
  100% { box-shadow: none; }
}

.order-card.highlight {
  animation: order-highlight 2s ease forwards;
}

.cal-order-time {
  font-weight: 800;
  color: var(--gold);
  font-size: 0.88rem;
  white-space: nowrap;
  min-width: 72px;
}

.cal-order-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.cal-order-info strong {
  color: var(--beige-soft);
  font-size: 0.9rem;
}

.cal-order-info span {
  color: var(--beige-soft);
  font-size: 0.76rem;
  opacity: 0.6;
  text-transform: capitalize;
}

@media (max-width: 650px) {
  .cal-day {
    min-height: 54px;
    padding: 5px 3px;
  }

  .cal-day-num {
    font-size: 0.78rem;
  }

  .cal-order-badge,
  .cal-blocked-label {
    font-size: 0.58rem;
    padding: 2px 3px;
  }

  .cal-order-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .cal-order-time {
    min-width: auto;
  }
}

/* ─── Auth overlay ───────────────────────────────────────────────────────────── */

.auth-overlay {
  position: fixed;
  inset: 0;
  background: var(--black, #0e0d0c);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.auth-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(185, 171, 125, 0.2);
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold, #b9ab7d);
  margin: 0 0 6px;
}

.auth-logo h2 {
  margin: 0;
  font-size: 1.6rem;
}

.auth-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  margin: -12px 0 20px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(185, 171, 125, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--beige-soft, #e8dfc8);
  font-size: 0.95rem;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

.auth-input:focus {
  border-color: var(--gold, #b9ab7d);
}

.auth-error {
  color: #e07070;
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
}

.auth-btn {
  background: var(--gold, #b9ab7d);
  color: #0e0d0c;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.2s;
}

.auth-btn:hover {
  opacity: 0.85;
}

.section-heading {
  position: relative;
}

.header-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 8px;
}

.logout-btn {
  background: transparent;
  border: 1px solid rgba(185, 171, 125, 0.3);
  color: var(--beige-soft, #e8dfc8);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s;
}

.logout-btn:hover {
  border-color: rgba(185, 171, 125, 0.7);
}

/* ─── Modal ──────────────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}

.modal-box {
  background: #1a1916;
  border: 1px solid rgba(185, 171, 125, 0.2);
  border-radius: 16px;
  padding: 32px 30px;
  width: 100%;
  max-width: 380px;
}

.modal-title {
  margin: 0 0 20px;
  font-size: 1.1rem;
  color: var(--beige-soft, #e8dfc8);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.modal-cancel-btn {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(185, 171, 125, 0.3);
  color: var(--beige-soft, #e8dfc8);
  border-radius: 10px;
  padding: 13px;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s;
}

.modal-cancel-btn:hover {
  border-color: rgba(185, 171, 125, 0.6);
}

.auth-success {
  color: #6dbf7e;
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
}

/* ─── Paid button ────────────────────────────────────────────────────────────── */

.order-paid-row {
  padding: 0 0 4px;
}

.paid-btn {
  background: transparent;
  border: 1px solid rgba(185, 171, 125, 0.35);
  color: var(--beige-soft, #e8dfc8);
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.paid-btn:hover {
  border-color: rgba(109, 191, 126, 0.7);
  color: #6dbf7e;
}

.paid-btn.is-paid {
  background: rgba(109, 191, 126, 0.12);
  border-color: rgba(109, 191, 126, 0.5);
  color: #6dbf7e;
  font-weight: 700;
}

.order-delete-row {
  padding: 4px 0 0;
}

.delete-btn {
  background: transparent;
  border: 1px solid rgba(220, 80, 80, 0.35);
  color: rgba(220, 80, 80, 0.7);
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.delete-btn:hover {
  border-color: rgba(220, 80, 80, 0.8);
  background: rgba(220, 80, 80, 0.1);
  color: #dc5050;
}
