:root {
  --ink: #202124;
  --muted: #697077;
  --line: #dde2e7;
  --paper: #ffffff;
  --mist: #f5f7f9;
  --teal: #116a72;
  --teal-dark: #0d4d53;
  --coral: #d95b43;
  --amber: #c78a1d;
  --green: #257a4f;
  --blue: #2c5aa0;
  --shadow: 0 18px 45px rgba(32, 33, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--mist);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(221, 226, 231, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--ink);
  background: #eef3f5;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  max-height: 820px;
  overflow: hidden;
  background: var(--ink);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.42) 44%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(100vh - 72px);
  max-height: 820px;
  padding: clamp(44px, 7vw, 92px) clamp(18px, 6vw, 72px);
  gap: 28px;
}

.hero-copy {
  max-width: 680px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #ffb59e;
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: 610px;
  margin: 22px 0 0;
  font-size: clamp(17px, 2vw, 21px);
}

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

.primary-btn,
.secondary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
}

.primary-btn {
  color: #fff;
  background: var(--coral);
}

.secondary-btn {
  color: #fff;
  background: var(--teal);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.hero-panel {
  align-self: flex-end;
  width: min(280px, 100%);
  padding: 18px;
  color: #fff;
  background: rgba(17, 106, 114, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel span,
.hero-panel small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.hero-panel strong {
  display: block;
  margin: 4px 0 8px;
  font-size: 24px;
}

.section {
  padding: clamp(42px, 6vw, 74px) clamp(18px, 5vw, 64px);
}

.section-head {
  max-width: 840px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

.intro-band,
.status-section,
.terms-section {
  background: var(--paper);
}

.profile-grid,
.reviews,
.terms-grid,
.metrics,
.catalog-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.profile-grid article,
.reviews article,
.terms-grid p,
.metrics article,
.tool-panel,
.catalog-card {
  margin: 0;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.intro-band .profile-grid article,
.status-section .history-card,
.terms-section .terms-grid p {
  background: #f8fafb;
}

h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

p {
  color: var(--muted);
}

.booking-shell {
  background: #eef3f5;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
}

.side-panel,
.booking-form,
.admin-section {
  background: var(--paper);
}

.side-panel,
.booking-form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(32, 33, 36, 0.06);
}

.field-label {
  display: block;
  margin: 0 0 7px;
  color: #4f575e;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd6dd;
  border-radius: 7px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(17, 106, 114, 0.12);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.slot {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.slot.selected {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.slot.busy,
.slot.blocked {
  color: #808991;
  background: #edf0f2;
  cursor: not-allowed;
  text-decoration: line-through;
}

.slot.blocked {
  background: #f8ebe4;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
}

.dot.available {
  background: var(--green);
}

.dot.busy {
  background: #8a939b;
}

.dot.blocked {
  background: var(--coral);
}

.booking-form {
  display: grid;
  gap: 18px;
}

.form-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: #f7faf9;
  border: 1px solid #d6e3df;
  border-radius: 8px;
}

.summary-bar span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.summary-bar strong {
  font-size: 26px;
}

.status-tools {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.history-card h3,
.history-card p {
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.pending {
  color: #83550a;
  background: #fff1cf;
}

.badge.verified {
  color: #155c39;
  background: #dff4e9;
}

.badge.done {
  color: #244d91;
  background: #e2edff;
}

.badge.canceled {
  color: #8c2c1b;
  background: #ffe4dc;
}

.reviews article strong {
  color: var(--teal);
  font-size: 34px;
}

.reviews article span {
  color: var(--ink);
  font-weight: 800;
}

.admin-section {
  border-top: 1px solid var(--line);
}

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding-bottom: 2px;
}

.tab {
  min-height: 42px;
  padding: 0 14px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.tab.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: #4f575e;
  background: #f6f8fa;
  font-size: 13px;
}

td {
  color: #363b40;
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.icon-action {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.icon-action:hover {
  background: #f3f6f7;
}

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

.tool-panel {
  display: grid;
  gap: 10px;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 7px;
}

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

.catalog-card {
  display: grid;
  gap: 10px;
}

.catalog-card strong {
  font-size: 22px;
}

.catalog-card input {
  max-width: 180px;
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.metrics article span {
  display: block;
  min-height: 38px;
  color: var(--muted);
  font-weight: 700;
}

.metrics article strong {
  display: block;
  font-size: 27px;
}

.report-bars {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  background: #e6ebef;
  border-radius: 999px;
}

.bar-fill {
  height: 100%;
  background: var(--teal);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: 180ms ease;
}

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

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 5vw, 64px);
  color: #d7dee3;
  background: var(--ink);
  font-size: 14px;
}

@media (max-width: 960px) {
  .booking-layout,
  .profile-grid,
  .reviews,
  .terms-grid,
  .metrics,
  .catalog-grid,
  .admin-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-overlay {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .hero-panel {
    align-self: flex-start;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero,
  .hero-overlay {
    min-height: 720px;
  }

  .hero::after {
    background: rgba(0, 0, 0, 0.62);
  }

  .hero h1 {
    font-size: 56px;
  }

  .booking-layout,
  .profile-grid,
  .reviews,
  .terms-grid,
  .metrics,
  .catalog-grid,
  .admin-grid,
  .form-section {
    grid-template-columns: 1fr;
  }

  .status-tools,
  .summary-bar,
  .history-card,
  .mini-item,
  .bar-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .bar-row {
    display: grid;
  }
}
