.admin-body [hidden] {
  display: none !important;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  justify-content: flex-end;
}

.cookie-banner {
  position: fixed;
  z-index: 40;
  left: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 250, 246, .97);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2,
.cookie-dialog h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}

.cookie-banner p {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
}

.cookie-banner a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--deep);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-dialog {
  width: min(620px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.cookie-dialog::backdrop {
  background: rgba(10, 18, 16, .48);
}

.cookie-dialog form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.cookie-choice {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cookie-choice input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.cookie-choice strong {
  display: block;
  margin-bottom: 3px;
}

.legal-body {
  background: var(--paper);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.legal-main {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.legal-hero {
  margin-bottom: clamp(42px, 6vw, 72px);
}

.legal-hero p {
  max-width: 760px;
  color: var(--muted);
}

.legal-section {
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(22, 32, 30, .06);
}

.legal-section + .legal-section {
  margin-top: 24px;
}

.legal-section h2 {
  margin-top: 28px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.legal-section h2:first-of-type {
  margin-top: 0;
}

.legal-section p {
  color: var(--muted);
}

.legal-section a {
  color: var(--deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cookie-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 24px 0;
}

.cookie-table > div {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(220px, 1.2fr) minmax(150px, .7fr);
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.cookie-table > div:first-child {
  background: var(--soft);
}

.cookie-table > div:last-child {
  border-bottom: 0;
}

.legal-footer {
  margin-top: 0;
}

.booking {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(320px, 560px);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  background: #fff;
}

.booking-copy {
  position: sticky;
  top: 110px;
}

.admin-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--deep);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.booking-info {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.booking-info li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-weight: 700;
}

.booking-info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(215, 173, 95, .14);
}

.booking-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 55px rgba(22, 32, 30, .08);
}

.form-row {
  display: grid;
  gap: 16px;
}

.form-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-form label,
.schedule-form label,
.admin-login form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.booking-form input,
.booking-form select,
.booking-form textarea,
.schedule-form input,
.schedule-form select,
.admin-login input,
.admin-filters select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

select {
  color-scheme: dark;
}

select option,
select optgroup {
  color: #120d08 !important;
  background-color: #fff8e8 !important;
}

.booking-form textarea {
  resize: vertical;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus,
.schedule-form input:focus,
.schedule-form select:focus,
.admin-login input:focus,
.admin-filters select:focus {
  outline: 3px solid rgba(211, 162, 93, .35);
  border-color: var(--gold);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--deep);
  font-weight: 800;
}

.admin-body {
  min-height: 100vh;
  background: var(--soft);
}

.admin-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 42px);
}

.admin-login {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(26px, 6vw, 80px);
  align-items: center;
}

.admin-login h1 {
  color: var(--ink);
}

.admin-login form,
.admin-panel,
.admin-stats article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(22, 32, 30, .08);
}

.admin-login form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.admin-topbar,
.admin-actions,
.admin-filters,
.appointment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-topbar {
  justify-content: space-between;
  margin-bottom: 26px;
}

.admin-brand {
  color: var(--ink);
}

.language-switcher {
  display: inline-grid;
  gap: 5px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.language-switcher select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: .9rem;
  text-transform: none;
}

.site-language {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-language select {
  min-height: 38px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 7px 12px;
  color: inherit;
  background: transparent;
  font: inherit;
}

.site-header.is-scrolled .site-language select,
.site-header.is-open .site-language select {
  background: #fff;
}

.button.secondary.dark {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.admin-stats article {
  padding: 22px;
}

.admin-stats span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.admin-stats strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.admin-calendar-panel {
  margin-bottom: 22px;
}

.admin-reviews-panel {
  margin-top: 22px;
}

.calendar-heading,
.calendar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendar-heading {
  justify-content: space-between;
}

.calendar-actions .button {
  min-height: 38px;
  padding: 8px 13px;
}

.admin-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.calendar-weekday,
.calendar-day {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calendar-weekday:nth-child(7n),
.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-weekday {
  padding: 10px;
  color: var(--muted);
  background: var(--soft);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 132px;
  padding: 10px;
  background: var(--paper);
}

.calendar-day.is-muted {
  opacity: .42;
}

.calendar-day.is-today {
  box-shadow: inset 0 0 0 2px var(--gold);
}

.calendar-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 999px;
  font-weight: 900;
}

.calendar-day.is-today .calendar-date {
  color: var(--paper);
  background: var(--gold);
}

.calendar-events {
  display: grid;
  gap: 6px;
}

.calendar-event {
  display: grid;
  gap: 2px;
  padding: 7px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  background: #fff;
  font-size: .78rem;
  line-height: 1.25;
}

.calendar-event strong {
  font-size: .8rem;
}

.calendar-event span {
  color: var(--muted);
}

.calendar-event.new {
  border-left-color: var(--gold);
}

.calendar-event.confirmed {
  border-left-color: #7ea35b;
}

.calendar-event.cancelled {
  border-left-color: #b76558;
  opacity: .68;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-panel {
  padding: clamp(20px, 3vw, 30px);
}

.admin-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.admin-panel-heading {
  margin-bottom: 20px;
}

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

.schedule-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 110px 110px;
  gap: 10px;
  align-items: center;
}

.check-label {
  grid-template-columns: 18px 1fr;
  align-items: center;
}

.check-label input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.admin-filters {
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-filters select {
  max-width: 220px;
}

.appointments-list {
  display: grid;
  gap: 14px;
}

.appointment-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.appointment-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.appointment-head strong,
.appointment-head span {
  display: block;
}

.appointment-head span {
  color: var(--muted);
}

.status {
  align-self: start;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--ink);
  background: #e9ddd0;
  font-size: .78rem;
  font-weight: 900;
}

.status.confirmed {
  background: #c9e6cf;
}

.status.cancelled {
  background: #ead0cc;
}

.appointment-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.appointment-card dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
}

.appointment-card dt {
  color: var(--muted);
  font-weight: 800;
}

.appointment-card dd {
  margin: 0;
}

.review-admin-card > p {
  margin-bottom: 0;
}

.appointment-actions {
  flex-wrap: wrap;
  margin-top: 16px;
}

.appointment-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.empty-state {
  padding: 20px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--paper);
}

@media (max-width: 920px) {
  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .booking,
  .admin-login,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .booking-copy {
    position: static;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-calendar {
    grid-template-columns: 1fr;
  }

  .calendar-weekday {
    display: none;
  }

  .calendar-day,
  .calendar-day:nth-child(7n) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .footer-links,
  .legal-header,
  .cookie-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-table > div {
    grid-template-columns: 1fr;
  }

  .form-row.two,
  .schedule-row,
  .appointment-card dl div {
    grid-template-columns: 1fr;
  }

  .admin-topbar,
  .admin-actions,
  .admin-filters,
  .calendar-heading,
  .appointment-head {
    align-items: stretch;
    flex-direction: column;
  }
}
