:root {
  --primary: #184e53;
  --primary-deep: #10373b;
  --accent: #d3a65e;
  --surface: #fffdf7;
  --surface-strong: #ffffff;
  --surface-muted: #edf3f1;
  --border: rgba(24, 78, 83, 0.14);
  --text: #153339;
  --muted: rgba(21, 51, 57, 0.72);
  --danger: #a84242;
  --success: #205c43;
  --shadow: 0 22px 55px rgba(16, 55, 59, 0.12);
  --radius: 24px;
  --radius-small: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(211, 166, 94, 0.24), transparent 32%),
    radial-gradient(circle at bottom right, rgba(24, 78, 83, 0.12), transparent 28%),
    linear-gradient(180deg, #f6f1e8 0%, #fbfaf7 48%, #f1f5f3 100%);
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(16, 55, 59, 0.97), rgba(24, 78, 83, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
  color: #f7f4ed;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(211, 166, 94, 0.16);
  filter: blur(10px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 24px;
  align-items: end;
}

.eyebrow,
.overline {
  margin: 0 0 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(247, 244, 237, 0.76);
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-family: "Instrument Serif", "Georgia", serif;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 18px 0 0;
  max-width: 58ch;
  color: rgba(247, 244, 237, 0.82);
  line-height: 1.6;
}

.hero-note {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

.admin-grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.stack {
  display: grid;
  gap: 18px;
}

.status-banner {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(24, 78, 83, 0.1);
  background: var(--surface-muted);
  color: var(--text);
}

.status-banner[data-tone="error"] {
  background: rgba(168, 66, 66, 0.1);
  border-color: rgba(168, 66, 66, 0.18);
  color: var(--danger);
}

.status-banner[data-tone="success"] {
  background: rgba(32, 92, 67, 0.1);
  border-color: rgba(32, 92, 67, 0.18);
  color: var(--success);
}

.label,
.field-label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.field-label small {
  font-weight: 500;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="time"],
select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(24, 78, 83, 0.18);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

input:focus,
select:focus {
  outline: 2px solid rgba(24, 78, 83, 0.18);
  border-color: rgba(24, 78, 83, 0.35);
}

.checkbox-row,
.switch-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.5;
}

.switch-row {
  align-items: center;
  font-weight: 700;
}

.checkbox-row input,
.switch-row input {
  margin-top: 4px;
}

.button-row,
.download-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.download-button,
.slot-button,
.chip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.button:hover,
.download-button:hover,
.slot-button:hover,
.chip-button:hover {
  transform: translateY(-1px);
}

.button,
.download-button.primary {
  background: var(--primary);
  color: #fff;
}

.button:disabled,
.slot-button:disabled,
.chip-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.button.ghost,
.download-button.secondary,
.chip-button,
.slot-button {
  background: rgba(24, 78, 83, 0.05);
  border-color: rgba(24, 78, 83, 0.12);
  color: var(--primary);
}

.button.subtle {
  background: rgba(168, 66, 66, 0.08);
  color: var(--danger);
}

.button.compact,
.download-button.compact {
  min-height: 40px;
  padding: 0 14px;
}

.button.linkish,
.download-button.ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

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

.week-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.week-range {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.chip-button {
  align-items: flex-start;
  flex-direction: column;
  padding: 14px 16px;
  text-align: left;
}

.chip-button strong {
  font-size: 0.88rem;
}

.slot-button.is-active,
.chip-button.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.helper-text {
  font-size: 0.92rem;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.detail-grid strong {
  display: block;
  margin-top: 6px;
  line-height: 1.4;
}

.detail-span {
  grid-column: 1 / -1;
}

.detail-label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(24, 78, 83, 0.1);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.status-pill.done {
  background: rgba(32, 92, 67, 0.12);
  color: var(--success);
}

.empty-state,
.muted {
  color: var(--muted);
}

.empty-state.compact {
  margin-top: 6px;
}

.download-note {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(24, 78, 83, 0.05);
}

.list-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.day-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.day-card-header,
.booking-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.range-stack,
.bookings-stack {
  display: grid;
  gap: 14px;
}

.range-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border-radius: 18px;
  background: rgba(24, 78, 83, 0.05);
}

.booking-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-strong);
}

.status-select {
  display: grid;
  gap: 8px;
  min-width: 150px;
  font-size: 0.88rem;
  color: var(--muted);
}

.lock-panel {
  max-width: 420px;
  margin: 64px auto 0;
}

@media (max-width: 920px) {
  .hero-grid,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-span {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
    padding-bottom: 28px;
  }

  .hero,
  .card {
    padding: 22px;
    border-radius: 24px;
  }

  .range-row,
  .booking-card-header,
  .day-card-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .week-nav {
    align-items: stretch;
  }
}
