:root {
  --black: #0d141a;
  --charcoal: #1d1e20;
  --slate: #36344d;
  --grey: #727586;
  --line: #dadce0;
  --light: #f2f3f6;
  --violet: #673de6;
  --deep-violet: #2f1c6a;
  --soft-violet: #ebe4ff;
  --green: #008a45;
  --blue: #2457a6;
  --red: #e8292f;
  --amber: #b45f00;
  --page: #ffffff;
  --shadow: 0 14px 40px rgba(13, 20, 26, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--charcoal);
  background: #f7f7fb;
  font-family: Lato, "Helvetica Neue", Arial, sans-serif;
}

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

button {
  cursor: pointer;
}

.public-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.banner {
  background: var(--page);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(13, 20, 26, 0.04);
}

.banner-inner,
.booking-layout,
.admin-layout,
.login-card {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.banner-inner {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-rule {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: 4px;
}

.brand-rule span:nth-child(1) { background: #e8292f; }
.brand-rule span:nth-child(2) { background: #ff8a00; }
.brand-rule span:nth-child(3) { background: #ffd200; }
.brand-rule span:nth-child(4) { background: #008a45; }
.brand-rule span:nth-child(5) { background: #2457a6; }
.brand-rule span:nth-child(6) { background: #6d3fa6; }

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-logo {
  width: clamp(132px, 18vw, 214px);
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

h1,
h2,
h3,
.brand strong {
  font-family: Prompt, "Aptos Display", "Helvetica Neue", Arial, sans-serif;
}

.brand strong {
  display: block;
  color: var(--deep-violet);
  font-size: clamp(20px, 3vw, 32px);
  line-height: 1.1;
}

.brand span {
  display: block;
  margin-top: 4px;
  color: var(--grey);
  font-size: clamp(15px, 2vw, 20px);
}

.muted,
.small {
  color: var(--grey);
}

.small {
  font-size: 13px;
}

.booking-layout {
  padding: 42px 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 26px;
}

.steps,
.panel,
.admin-sidebar,
.stat,
.row-card {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(13, 20, 26, 0.06);
}

.steps {
  padding: 20px;
  height: fit-content;
  border-top: 5px solid var(--violet);
}

.step-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  color: var(--grey);
  border-radius: 8px;
}

.step-dot {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--light);
  color: var(--slate);
  font-weight: 800;
  font-size: 13px;
  flex: 0 0 auto;
}

.step-item.active {
  color: var(--deep-violet);
  background: var(--soft-violet);
}

.step-item.active .step-dot {
  color: white;
  background: var(--violet);
}

.panel {
  padding: clamp(22px, 4vw, 34px);
  border-top: 5px solid var(--soft-violet);
}

.panel + .panel {
  margin-top: 18px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--black);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 4px;
  color: var(--black);
  font-size: 24px;
}

h3 {
  margin-bottom: 12px;
  color: var(--deep-violet);
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--violet);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

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

.choice {
  min-height: 136px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 16px;
  text-align: left;
}

.choice.active,
.choice:hover {
  border-color: var(--violet);
  background: #fbf9ff;
  box-shadow: 0 12px 28px rgba(103, 61, 230, 0.1);
}

.choice strong {
  display: block;
  margin-bottom: 6px;
  color: var(--black);
}

.date-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--charcoal);
  padding: 11px 12px;
  font-weight: 400;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}

.slot {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--deep-violet);
  font-weight: 800;
}

.slot.active,
.slot:hover {
  border-color: var(--violet);
  background: var(--soft-violet);
}

.actions,
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.actions {
  justify-content: flex-end;
  margin-top: 22px;
}

.primary,
.secondary,
.danger,
.text-button {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  font-weight: 800;
}

.compact {
  min-height: 32px;
  padding-inline: 10px;
  margin-top: 8px;
}

.primary {
  background: var(--violet);
  color: white;
}

.primary:hover {
  background: var(--deep-violet);
}

.secondary {
  background: white;
  border-color: var(--line);
  color: var(--deep-violet);
}

.secondary:hover {
  border-color: var(--violet);
  background: var(--soft-violet);
}

.danger {
  background: #fff5f5;
  border-color: #f4c2c2;
  color: var(--red);
}

.text-button {
  background: transparent;
  color: var(--violet);
  padding-inline: 8px;
}

.message {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--light);
}

.message.success {
  border-color: #bfe5d1;
  background: #f1fbf6;
  color: var(--green);
}

.message.warn {
  border-color: #f3d29d;
  background: #fff8ea;
  color: var(--amber);
}

.message.error {
  border-color: #f4c2c2;
  background: #fff5f5;
  color: var(--red);
}

.review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.review-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.review-list span {
  display: block;
  color: var(--grey);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.admin-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 22px;
  padding: 28px 0;
}

.admin-sidebar {
  padding: 18px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.admin-nav {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.admin-nav button,
.admin-nav a {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 11px 12px;
  background: transparent;
  color: var(--slate);
  text-align: left;
  text-decoration: none;
  font-weight: 800;
}

.admin-nav .active,
.admin-nav button:hover,
.admin-nav a:hover {
  background: var(--soft-violet);
  color: var(--deep-violet);
}

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

.stat {
  padding: 16px;
}

.stat strong {
  display: block;
  color: var(--black);
  font-size: 28px;
}

.table-wrap {
  overflow-x: auto;
}

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

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

th {
  color: var(--grey);
  font-size: 12px;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--light);
  color: var(--slate);
  font-size: 12px;
  font-weight: 800;
}

.pill.sent,
.pill.confirmed,
.pill.completed {
  background: #e8f7ef;
  color: var(--green);
}

.pill.failed,
.pill.cancelled {
  background: #fff0f0;
  color: var(--red);
}

.pill.pending,
.pill.not_sent {
  background: #fff8ea;
  color: var(--amber);
}

.schedule-table {
  display: grid;
  gap: 12px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

.schedule-day {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 160px;
  align-items: end;
  gap: 12px;
}

.schedule-day > strong {
  color: var(--black);
  font-size: 18px;
}

.schedule-windows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.schedule-window {
  display: grid;
  grid-template-columns: 110px minmax(120px, 1fr) minmax(120px, 1fr);
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfbfd;
  min-width: 0;
}

.schedule-window > strong {
  grid-column: 1 / -1;
  color: var(--deep-violet);
  align-self: center;
}

.schedule-window label {
  min-width: 0;
}

.schedule-window input,
.schedule-window select,
.schedule-day select {
  min-width: 0;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  max-width: 430px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.hidden {
  display: none !important;
}

@media (max-width: 880px) {
  .booking-layout,
  .admin-layout,
  .date-grid,
  .grid.two,
  .grid.three,
  .service-grid,
  .stats,
  .review-list {
    grid-template-columns: 1fr;
  }

  .steps,
  .admin-sidebar {
    position: static;
  }

  .banner-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .schedule-row,
  .schedule-windows {
    grid-template-columns: 1fr;
  }

  .schedule-window {
    grid-template-columns: 1fr;
  }
}
