* { box-sizing: border-box; }

:root {
  --bg: #0b0b0c;
  --panel: #141416;
  --panel-2: #1b1b1f;
  --text: #f5f7fa;
  --muted: #a9b0bb;
  --line: rgba(255,255,255,0.08);
  --gold: #f4d35e;
  --success: #27ae60;
  --danger: #e74c3c;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #090909 0%, #101012 100%);
  color: var(--text);
}

.hero, .layout {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding: 40px 0 22px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-size: 12px;
  margin: 0 0 10px;
}

h1, h2, h3 { margin: 0; }

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  margin-bottom: 12px;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero__meta {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.hero__meta span, #priceBadge {
  background: rgba(255,255,255,0.06);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.layout {
  display: grid;
  gap: 24px;
  padding-bottom: 42px;
}

.card {
  background: rgba(20,20,22,0.95);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  backdrop-filter: blur(10px);
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.section-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.day-column {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  min-height: 420px;
  overflow: hidden;
}

.day-column.today {
  outline: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(244, 211, 94, 0.08);
}

.day-header {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}

.day-header strong {
  display: block;
  font-size: 16px;
}

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

.day-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.slot {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: left;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.slot:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.16);
}

.slot small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.slot--booked {
  background: rgba(231,76,60,0.13);
  border-color: rgba(231,76,60,0.4);
  cursor: not-allowed;
  opacity: 0.85;
}

.slot--available {
  background: rgba(39,174,96,0.13);
  border-color: rgba(39,174,96,0.28);
}

.empty-note {
  color: var(--muted);
  font-size: 14px;
  padding: 8px;
}

.week-nav, .admin-auth, .manage-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-btn, .secondary-btn, .primary-btn, .danger-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  border-radius: 14px;
  padding: 12px 16px;
}

.icon-btn, .secondary-btn {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid var(--line);
}

.primary-btn {
  background: #ffffff;
  color: #080808;
  font-weight: 700;
}

.danger-btn {
  background: var(--danger);
  color: white;
  font-weight: 700;
}

.calendar-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.legend {
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}

.legend--today { background: var(--gold); }
.legend--available { background: rgba(39,174,96,0.8); }
.legend--booked { background: rgba(231,76,60,0.8); }

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

input {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.66);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 30;
}

.modal__box {
  width: min(560px, 100%);
  background: #121214;
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 24px;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  color: white;
  border: 0;
  font-size: 30px;
  cursor: pointer;
}

.price-box, .result-box {
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #fff;
  color: #111;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
  z-index: 50;
}

.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .calendar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
  .calendar-grid { grid-template-columns: 1fr; }
}
