:root {
  --rose: #eaa6b7;
  --rose-deep: #c7607a;
  --beige: #f3ebe2;
  --ink: #3a3335;
  --muted: #756b6e;
  --line: #eadde0;
  --soft: #fff8f9;
  --shadow: 0 18px 50px rgba(84, 54, 62, 0.12);
}

body {
  background: #fffafb;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.navbar {
  box-shadow: 0 8px 30px rgba(90, 68, 73, 0.05);
}

.nav-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.brand-mark,
.logo-circle {
  align-items: center;
  background: var(--rose);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.brand-mark.large {
  height: 58px;
  width: 58px;
}

.btn-primary {
  --bs-btn-bg: var(--rose-deep);
  --bs-btn-border-color: var(--rose-deep);
  --bs-btn-hover-bg: #ad526a;
  --bs-btn-hover-border-color: #ad526a;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(199, 96, 122, 0.22);
}

.btn-outline-secondary,
.btn-outline-warning,
.btn-outline-danger {
  border-radius: 999px;
}

.social-link {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 0.45rem;
  line-height: 1;
  min-height: 36px;
  padding: 0.45rem 0.8rem;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}

.social-link:hover {
  border-color: #efccd5;
  box-shadow: 0 10px 24px rgba(199, 96, 122, 0.14);
  color: var(--rose-deep);
  transform: translateY(-1px);
}

.social-link > img {
  display: block;
  flex: 0 0 18px;
  height: 18px !important;
  max-height: 18px;
  max-width: 18px;
  object-fit: contain;
  width: 18px !important;
}

.contact-strip {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
}

.contact-strip-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.contact-strip-inner > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.flash-wrap {
  position: relative;
  z-index: 4;
}

.soft-alert {
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

.hero {
  min-height: 620px;
  overflow: hidden;
  position: relative;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(255, 250, 251, 0.98), rgba(255, 250, 251, 0.74), rgba(255, 250, 251, 0.18)),
    url("https://images.unsplash.com/photo-1519415510236-718bdfcd89c8?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  inset: 0;
  position: absolute;
}

.hero-content {
  animation: rise 0.55s ease both;
  padding-bottom: 7rem;
  padding-top: 7rem;
  position: relative;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.92;
  margin: 0;
  max-width: 680px;
}

.lead {
  color: var(--muted);
  font-size: 1.35rem;
  max-width: 560px;
}

.eyebrow {
  color: var(--rose-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12rem;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.specialties,
.mini-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.specialties span,
.mini-services span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 0.55rem 0.85rem;
}

.deposit-note {
  background: #fff3f6;
  border: 1px solid #efccd5;
  border-radius: 18px;
  color: #8b4154;
  font-weight: 700;
  line-height: 1.35;
  margin: 1rem 0;
  padding: 0.9rem 1rem;
}

.section-pad {
  padding: 5rem 0;
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2,
.booking-aside h1,
.calendar-panel h2,
.time-panel h2,
.form-card h1,
.success-card h1,
.admin-header h1 {
  font-weight: 800;
  letter-spacing: 0;
}

.service-card,
.form-card,
.success-card,
.table-card,
.calendar-panel,
.time-panel,
.booking-aside {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 24px 60px rgba(84, 54, 62, 0.16);
  transform: translateY(-4px);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.service-card p {
  color: var(--muted);
}

.service-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.service-meta span {
  color: var(--muted);
}

.service-meta strong {
  color: var(--rose-deep);
  font-size: 1.35rem;
}

.service-admin-table .form-control {
  min-width: 180px;
}

.service-admin-table .service-number-input {
  min-width: 100px;
}

.booking-band {
  background: linear-gradient(180deg, #fffafb, var(--beige));
  min-height: calc(100vh - 66px);
}

.booking-shell {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 0.9fr 1.3fr 0.9fr;
}

.booking-aside,
.calendar-panel,
.time-panel,
.form-card,
.success-card,
.table-card {
  padding: 1.5rem;
}

.calendar-header,
.admin-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.icon-btn {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 1.8rem;
  height: 44px;
  line-height: 1;
  width: 44px;
}

.weekday-row,
.calendar-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(7, minmax(36px, 1fr));
}

.weekday-row {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
  text-align: center;
}

.calendar-day,
.calendar-spacer {
  aspect-ratio: 1;
}

.calendar-day {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  font-weight: 800;
  position: relative;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.calendar-day.available::after {
  background: var(--rose-deep);
  border-radius: 999px;
  bottom: 9px;
  content: "";
  height: 6px;
  left: calc(50% - 3px);
  position: absolute;
  width: 6px;
}

.calendar-day.today {
  border-color: var(--rose-deep);
}

.calendar-day.selected {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
  color: #fff;
}

.calendar-day.selected::after {
  background: #fff;
}

.calendar-day:disabled {
  background: #f5f1f2;
  color: #b6aaad;
  cursor: not-allowed;
}

.calendar-day:not(:disabled):hover {
  transform: translateY(-2px);
}

.admin-calendar-panel {
  overflow: hidden;
}

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

.admin-appointment-panel {
  position: sticky;
  top: 92px;
}

.admin-appointment-panel h2 {
  font-size: 1.35rem;
  font-weight: 800;
}

.admin-calendar-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
}

.admin-calendar-spacer {
  min-height: 148px;
}

.admin-calendar-day {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 148px;
  padding: 0.75rem;
}

.admin-calendar-date {
  color: var(--ink);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.admin-calendar-empty {
  color: #aaa0a3;
  font-size: 0.85rem;
  margin: 0;
}

.admin-appointment {
  background: var(--soft);
  border: 1px solid #efccd5;
  border-radius: 12px;
  color: var(--ink);
  display: grid;
  gap: 0.1rem;
  margin-top: 0.45rem;
  padding: 0.55rem;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.admin-appointment strong {
  color: var(--rose-deep);
  font-size: 0.85rem;
}

.admin-appointment span,
.admin-appointment small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-appointment small {
  color: var(--muted);
}

.admin-appointment.cancelled {
  background: #f5f1f2;
  border-color: #e2d7da;
  opacity: 0.72;
}

.admin-appointment.selected {
  border-color: var(--rose-deep);
  box-shadow: 0 0 0 2px rgba(199, 96, 122, 0.14);
}

.slots-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.slot-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--rose-deep);
  font-weight: 800;
  padding: 0.95rem;
  text-align: center;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease;
}

.slot-card:hover {
  background: var(--soft);
  transform: translateY(-2px);
}

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

.narrow {
  max-width: 820px;
}

.form-control,
.form-select {
  border-color: var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
}

.success-card {
  text-align: center;
}

.success-icon {
  align-items: center;
  background: #d9f1df;
  border-radius: 999px;
  color: #287a3c;
  display: inline-flex;
  font-size: 1.8rem;
  font-weight: 900;
  height: 64px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 64px;
}

.detail-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
  text-align: left;
}

.detail-list div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 1rem;
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
}

.table-card {
  padding: 0.75rem;
}

.status-pill {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.7rem;
}

.status-pill.reserved {
  background: #e7f5ec;
  color: #287a3c;
}

.status-pill.cancelled {
  background: #f5ece7;
  color: #9b5536;
}

.status-pill.deposit-pending {
  background: #fff4d8;
  color: #8b6415;
}

.status-pill.deposit-paid {
  background: #e7f5ec;
  color: #287a3c;
}

.status-pill.deposit-not_required {
  background: #eceff3;
  color: #5b6570;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .navbar .container {
    align-items: flex-start;
    gap: 0.75rem;
    justify-content: space-between;
  }

  .nav-actions {
    width: 100%;
  }

  .booking-shell {
    grid-template-columns: 1fr;
  }

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

  .admin-appointment-panel {
    position: static;
  }

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

@media (max-width: 767px) {
  .nav-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  .social-link.compact {
    flex: 0 0 36px;
    height: 36px;
    min-width: 36px;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  .social-link.compact span {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content,
  .section-pad {
    padding-bottom: 3rem;
    padding-top: 3rem;
  }

  .booking-aside,
  .calendar-panel,
  .time-panel,
  .form-card,
  .success-card {
    border-radius: 18px;
    padding: 1rem;
  }

  .calendar-grid,
  .weekday-row {
    gap: 0.25rem;
  }

  .calendar-day {
    border-radius: 12px;
    font-size: 0.9rem;
  }

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

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