:root {
  color-scheme: light;
  --background: #f1f4f2;
  --surface: #ffffff;
  --surface-soft: #f7f9f8;
  --foreground: #242725;
  --muted: #6c746f;
  --primary: #315e45;
  --primary-hover: #264d38;
  --primary-soft: #e5f0e8;
  --secondary: #eef0ef;
  --border: #dde2df;
  --destructive: #b6403a;
  --destructive-soft: #fbe9e8;
  --warning: #9b6a16;
  --radius-sm: 0.75rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow-sm: 0 0.25rem 1rem rgba(31, 48, 38, 0.06);
  --shadow: 0 1rem 3.5rem rgba(31, 48, 38, 0.12);
  --font-sans: "Plus Jakarta Sans", sans-serif;
  --font-accent: "Merriweather", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at 15% 5%,
      rgba(49, 94, 69, 0.09),
      transparent 28rem
    ),
    var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
}

body.has-overlay {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

img {
  max-width: 100%;
}

svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 2;
}

:focus-visible {
  outline: 0.1875rem solid rgba(49, 94, 69, 0.28);
  outline-offset: 0.1875rem;
}

.demo-ribbon {
  display: flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: #203a2c;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
}

.ribbon-detail {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  text-transform: none;
}

.status-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #72cf91;
  box-shadow: 0 0 0 0.25rem rgba(114, 207, 145, 0.12);
}

.app-shell {
  width: min(100%, 88rem);
  min-height: calc(100vh - 2.25rem);
  margin-inline: auto;
  overflow: clip;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  min-height: 5rem;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 0.0625rem solid rgba(221, 226, 223, 0.88);
  padding-inline: clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(1rem);
  grid-template-columns: 1fr auto 1fr;
}

.logo-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
}

.logo-link img {
  display: block;
  width: 7.25rem;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999rem;
  padding: 0.3rem;
  background: var(--surface-soft);
}

.nav-link {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999rem;
  padding: 0.55rem 0.95rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

.github-button,
.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.github-button,
.primary-button {
  border: 0.0625rem solid var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.github-button:hover,
.primary-button:hover {
  background: var(--primary-hover);
  box-shadow: 0 0.65rem 1.5rem rgba(49, 94, 69, 0.18);
  transform: translateY(-0.0625rem);
}

.secondary-button {
  border: 0.0625rem solid var(--border);
  background: var(--surface);
  color: var(--foreground);
}

.secondary-button:hover {
  background: var(--secondary);
}

.danger-button {
  border: 0.0625rem solid var(--destructive-soft);
  background: var(--destructive-soft);
  color: var(--destructive);
}

.icon-button {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border: 0.0625rem solid var(--border);
  border-radius: 50%;
  padding: 0;
  place-items: center;
  background: var(--surface);
  cursor: pointer;
  transition: 160ms ease;
}

.icon-button:hover {
  border-color: #c8d3cc;
  background: var(--primary-soft);
  color: var(--primary);
}

.menu-button,
.bottom-nav {
  display: none;
}

.app-view {
  display: none;
}

.app-view.is-active {
  display: block;
  animation: view-in 260ms ease both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-container {
  width: min(100% - 3rem, 76rem);
  margin-inline: auto;
}

.home-content,
.page-content {
  padding-block: clamp(2rem, 5vw, 4rem) 5rem;
}

.welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.35rem;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.welcome-row h1,
.page-heading h1 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.welcome-copy {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.avatar {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  place-items: center;
  border: 0.1875rem solid var(--surface);
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 0.0625rem var(--border);
  font-size: 0.82rem;
  font-weight: 800;
}

.search-form {
  display: grid;
  min-height: 3.5rem;
  align-items: center;
  border: 0.0625rem solid var(--border);
  border-radius: 999rem;
  padding: 0.35rem 0.35rem 0.35rem 1.1rem;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  grid-template-columns: auto 1fr auto;
}

.search-form > svg {
  color: var(--muted);
}

.search-form input {
  min-width: 0;
  border: 0;
  padding: 0 0.8rem;
  background: transparent;
  color: var(--foreground);
  font-size: 0.9rem;
  outline: 0;
}

.search-form input::placeholder {
  color: #989e9a;
}

.search-form button,
.chat-form button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
}

.category-scroller {
  display: flex;
  gap: 0.55rem;
  margin: 1rem 0 1.75rem;
  overflow-x: auto;
  padding: 0.1rem 0.1rem 0.55rem;
  scrollbar-width: none;
}

.category-scroller::-webkit-scrollbar,
.popular-scroller::-webkit-scrollbar {
  display: none;
}

.category-chip {
  display: inline-flex;
  min-height: 2.5rem;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  border: 0.0625rem solid var(--border);
  border-radius: 999rem;
  padding: 0.55rem 0.9rem;
  background: var(--surface);
  font-size: 0.77rem;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.category-chip:hover,
.category-chip.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.category-chip svg {
  width: 0.95rem;
  height: 0.95rem;
}

.promo-banner {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(16rem, 28vw, 21rem);
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  background: #1f2923;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.promo-banner img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transition: transform 400ms ease;
}

.promo-banner::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(13, 18, 15, 0.92) 0%,
    rgba(13, 18, 15, 0.62) 42%,
    rgba(13, 18, 15, 0.05) 75%
  );
  content: "";
}

.promo-copy {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: clamp(1.5rem, 5vw, 4rem);
  display: flex;
  width: min(29rem, 48%);
  align-items: flex-start;
  color: #ffffff;
  text-align: left;
  transform: translateY(-50%);
  flex-direction: column;
}

.promo-kicker {
  margin-bottom: 0.75rem;
  color: #bcd9c5;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.promo-copy strong {
  max-width: 26rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.promo-description {
  max-width: 22rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  line-height: 1.6;
}

.promo-action {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.35rem;
  border-radius: 999rem;
  padding: 0.65rem 1rem;
  background: #ffffff;
  color: #1d2b23;
  font-size: 0.7rem;
  font-weight: 800;
}

.promo-action svg {
  width: 0.95rem;
  height: 0.95rem;
}

.promo-banner:hover img {
  transform: scale(1.012);
}

.content-section {
  margin-top: clamp(2.25rem, 5vw, 4rem);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  letter-spacing: -0.025em;
}

.text-button {
  border: 0;
  padding: 0.4rem;
  background: transparent;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.results-counter,
.count-badge {
  display: inline-flex;
  min-width: 1.75rem;
  min-height: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999rem;
  padding-inline: 0.55rem;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
}

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

.barbershop-card,
.popular-card {
  position: relative;
  min-height: 15.5rem;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: #303832;
  color: #ffffff;
  cursor: pointer;
  isolation: isolate;
  text-align: left;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.barbershop-card:hover,
.popular-card:hover {
  box-shadow: 0 1.25rem 2.5rem rgba(31, 48, 38, 0.18);
  transform: translateY(-0.25rem);
}

.barbershop-card::after,
.popular-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 18, 14, 0.92),
    rgba(12, 18, 14, 0.02) 72%
  );
  content: "";
}

.barbershop-card img,
.popular-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.barbershop-card:hover img,
.popular-card:hover img {
  transform: scale(1.045);
}

.card-rating {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.2);
  border-radius: 999rem;
  padding: 0.35rem 0.55rem;
  background: rgba(20, 27, 23, 0.66);
  font-size: 0.68rem;
  font-weight: 800;
  backdrop-filter: blur(0.5rem);
}

.card-rating svg {
  width: 0.8rem;
  height: 0.8rem;
  fill: #f4ca64;
  color: #f4ca64;
}

.favorite-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  place-items: center;
  background: rgba(20, 27, 23, 0.66);
  color: #ffffff;
  backdrop-filter: blur(0.5rem);
}

.favorite-button svg {
  width: 0.95rem;
  height: 0.95rem;
}

.favorite-button.is-favorite svg {
  fill: #ffffff;
}

.card-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1rem;
}

.card-content h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.card-content p {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
}

.card-content p svg {
  width: 0.75rem;
  height: 0.75rem;
}

.popular-scroller {
  display: grid;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.1rem 0.1rem 1rem;
  grid-auto-columns: minmax(17rem, 24rem);
  grid-auto-flow: column;
  scrollbar-width: none;
}

.popular-card {
  min-height: 12.5rem;
}

.empty-state,
.booking-empty {
  border: 0.0625rem dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 1.25rem;
  background: var(--surface-soft);
  text-align: center;
}

.empty-state.is-hidden,
.is-hidden {
  display: none !important;
}

.empty-icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}

.empty-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.empty-state h3,
.booking-empty h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.empty-state p,
.booking-empty p {
  max-width: 28rem;
  margin: 0 auto 1.25rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.page-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.booking-list {
  display: grid;
  gap: 0.8rem;
}

.booking-card {
  display: grid;
  overflow: hidden;
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  grid-template-columns: 1fr auto;
}

.booking-card-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
}

.booking-card-main img {
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 auto;
  border-radius: 0.8rem;
  object-fit: cover;
}

.booking-card-info {
  min-width: 0;
}

.booking-status {
  display: inline-flex;
  width: fit-content;
  border-radius: 999rem;
  margin-bottom: 0.45rem;
  padding: 0.25rem 0.5rem;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.booking-status.finished {
  background: var(--secondary);
  color: var(--muted);
}

.booking-status.cancelled {
  background: var(--destructive-soft);
  color: var(--destructive);
}

.booking-card-info h3 {
  overflow: hidden;
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-card-info p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-date {
  display: grid;
  min-width: 6.25rem;
  align-content: center;
  align-self: stretch;
  justify-items: center;
  border-left: 0.0625rem solid var(--border);
  padding: 0.8rem;
  background: var(--surface-soft);
}

.booking-date span {
  color: var(--muted);
  font-size: 0.64rem;
  text-transform: capitalize;
}

.booking-date strong {
  font-size: 1.5rem;
  line-height: 1.15;
}

.booking-date small {
  font-size: 0.68rem;
}

.booking-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

.booking-wrapper {
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.booking-wrapper .booking-card {
  border: 0;
  box-shadow: none;
}

.booking-actions button {
  min-height: 2.15rem;
  border: 0.0625rem solid var(--border);
  border-radius: 999rem;
  padding: 0.35rem 0.75rem;
  background: var(--surface);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.booking-actions .cancel-booking {
  border-color: var(--destructive-soft);
  color: var(--destructive);
}

.chat-view.is-active {
  display: block;
}

.chat-layout {
  display: grid;
  width: min(100%, 52rem);
  min-height: calc(100vh - 7.25rem);
  margin-inline: auto;
  grid-template-rows: auto auto 1fr auto auto;
}

.chat-header {
  display: grid;
  align-items: center;
  gap: 1rem;
  border-bottom: 0.0625rem solid var(--border);
  padding: 1rem 1.25rem;
  grid-template-columns: auto 1fr auto;
  text-align: center;
}

.chat-header h1 {
  margin: 0;
  font-family: var(--font-accent);
  font-size: 1.2rem;
  font-weight: 400;
}

.chat-header span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.65rem;
}

.chat-header .status-dot {
  width: 0.4rem;
  height: 0.4rem;
}

.chat-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 1.25rem 0;
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.72rem;
}

.chat-status svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--primary);
}

.message-list {
  display: flex;
  min-height: 25rem;
  max-height: 38rem;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  padding: 1.5rem 1.25rem;
}

.message {
  display: flex;
  max-width: 88%;
  align-items: flex-start;
  gap: 0.55rem;
}

.message.user {
  align-self: flex-end;
}

.bot-avatar {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border: 0.0625rem solid #cfe0d4;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}

.bot-avatar svg {
  width: 0.9rem;
  height: 0.9rem;
}

.message-bubble {
  border-radius: 0.25rem 1rem 1rem 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--surface-soft);
  color: var(--foreground);
  font-size: 0.78rem;
  line-height: 1.65;
}

.message.user .message-bubble {
  border-radius: 1rem 0.25rem 1rem 1rem;
  background: var(--primary);
  color: #ffffff;
}

.typing-dots {
  display: flex;
  gap: 0.25rem;
  padding-block: 0.3rem;
}

.typing-dots span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #8a958e;
  animation: typing 900ms infinite alternate;
}

.typing-dots span:nth-child(2) {
  animation-delay: 180ms;
}

.typing-dots span:nth-child(3) {
  animation-delay: 360ms;
}

@keyframes typing {
  to {
    opacity: 0.3;
    transform: translateY(-0.18rem);
  }
}

.chat-suggestions {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 1.25rem 0.75rem;
  scrollbar-width: none;
}

.chat-suggestions button {
  flex: 0 0 auto;
  border: 0.0625rem solid var(--border);
  border-radius: 999rem;
  padding: 0.55rem 0.75rem;
  background: var(--surface);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.chat-form {
  display: grid;
  align-items: center;
  gap: 0.5rem;
  border-top: 0.0625rem solid var(--border);
  padding: 1rem 1.25rem;
  background: var(--surface-soft);
  grid-template-columns: 1fr auto;
}

.chat-form input {
  min-width: 0;
  min-height: 2.9rem;
  border: 0.0625rem solid var(--border);
  border-radius: 999rem;
  padding: 0.65rem 1rem;
  background: var(--surface);
  color: var(--foreground);
  outline: 0;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 0.0625rem solid var(--border);
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  background: #f5f7f5;
}

.app-footer strong,
.app-footer span {
  display: block;
}

.app-footer strong {
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
}

.app-footer span {
  color: var(--muted);
  font-size: 0.7rem;
}

.app-footer a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
}

.app-footer a svg {
  width: 0.85rem;
  height: 0.85rem;
}

.overlay {
  position: fixed;
  z-index: 60;
  inset: 0;
  visibility: hidden;
  background: rgba(14, 20, 16, 0.52);
  opacity: 0;
  backdrop-filter: blur(0.2rem);
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.side-sheet,
.mobile-menu {
  position: fixed;
  z-index: 70;
  top: 0;
  right: 0;
  width: min(31rem, 100%);
  height: 100dvh;
  overflow-y: auto;
  background: var(--surface);
  box-shadow: -1rem 0 4rem rgba(15, 22, 18, 0.2);
  transform: translateX(105%);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.side-sheet.is-open,
.mobile-menu.is-open {
  transform: translateX(0);
}

.sheet-hero {
  position: relative;
  min-height: 17rem;
  overflow: hidden;
  background: #27342c;
}

.sheet-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 22, 18, 0.75), transparent 70%);
  content: "";
}

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

.sheet-close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(20, 27, 23, 0.72);
  color: #ffffff;
  backdrop-filter: blur(0.5rem);
}

.sheet-favorite {
  right: 1rem;
  left: auto;
}

.sheet-favorite.is-favorite svg {
  fill: currentColor;
}

.sheet-hero-info {
  position: absolute;
  z-index: 2;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  color: #ffffff;
}

.sheet-hero-info h2 {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
}

.sheet-hero-info p {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
}

.sheet-body {
  padding: 1.5rem 1.25rem 2rem;
}

.shop-meta {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}

.meta-item {
  display: grid;
  justify-items: center;
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.4rem;
  background: var(--surface-soft);
  text-align: center;
}

.meta-item svg {
  margin-bottom: 0.3rem;
  color: var(--primary);
}

.meta-item strong {
  font-size: 0.72rem;
}

.meta-item span {
  color: var(--muted);
  font-size: 0.6rem;
}

.sheet-section {
  border-top: 0.0625rem solid var(--border);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}

.sheet-section h3 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.sheet-section > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.service-list {
  display: grid;
  gap: 0.7rem;
}

.service-card {
  display: grid;
  align-items: center;
  gap: 0.75rem;
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem;
  background: var(--surface);
  grid-template-columns: 4rem 1fr auto;
}

.service-card img {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

.service-info {
  min-width: 0;
}

.service-info h4 {
  margin: 0 0 0.18rem;
  font-size: 0.8rem;
}

.service-info p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.62rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.service-info strong {
  color: var(--primary);
  font-size: 0.72rem;
}

.service-card button {
  min-height: 2.1rem;
  border: 0.0625rem solid var(--border);
  border-radius: 999rem;
  padding: 0.35rem 0.65rem;
  background: var(--surface);
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
}

.service-card button:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.reservation-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 0.0625rem solid var(--border);
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(0.75rem);
}

.reservation-header h2 {
  margin: 0;
  font-size: 1rem;
}

.reservation-content {
  padding: 1.25rem;
}

.reservation-service {
  display: grid;
  align-items: center;
  gap: 0.8rem;
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem;
  background: var(--surface-soft);
  grid-template-columns: 3.75rem 1fr;
}

.reservation-service img {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

.reservation-service h3,
.reservation-service p {
  margin: 0;
}

.reservation-service h3 {
  font-size: 0.82rem;
}

.reservation-service p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.65rem;
}

.reservation-service strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--primary);
  font-size: 0.72rem;
}

.booking-step {
  margin-top: 1.5rem;
}

.booking-step-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.step-number {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
}

.booking-step h3 {
  margin: 0;
  font-size: 0.82rem;
}

.date-scroller {
  display: grid;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.1rem 0.1rem 0.55rem;
  grid-auto-columns: 3.7rem;
  grid-auto-flow: column;
  scrollbar-width: none;
}

.date-option {
  display: grid;
  min-height: 4.6rem;
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius-sm);
  place-items: center;
  background: var(--surface);
  cursor: pointer;
}

.date-option span,
.date-option small {
  color: var(--muted);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.date-option strong {
  font-size: 1rem;
}

.date-option.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.date-option.is-active span,
.date-option.is-active small {
  color: rgba(255, 255, 255, 0.72);
}

.time-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(4, 1fr);
}

.time-option {
  min-height: 2.45rem;
  border: 0.0625rem solid var(--border);
  border-radius: 999rem;
  background: var(--surface);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.time-option:hover,
.time-option.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.reservation-summary {
  display: grid;
  gap: 0.65rem;
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius);
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--surface-soft);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.7rem;
}

.summary-row span {
  color: var(--muted);
}

.summary-row strong {
  text-align: right;
}

.summary-row.total {
  border-top: 0.0625rem solid var(--border);
  padding-top: 0.65rem;
  font-size: 0.8rem;
}

.confirmation-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 1rem 0;
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  background: #fff7e6;
  color: var(--warning);
  font-size: 0.65rem;
  line-height: 1.55;
}

.confirmation-note svg {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
  margin-top: 0.08rem;
}

.reservation-submit {
  width: 100%;
}

.mobile-menu {
  width: min(22rem, 88%);
  padding: 1.25rem;
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.0625rem solid var(--border);
  padding-bottom: 1rem;
}

.menu-header h2 {
  margin: 0;
  font-size: 1rem;
}

.demo-profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 0.0625rem solid var(--border);
  padding-block: 1.25rem;
}

.demo-profile strong,
.demo-profile span {
  display: block;
}

.demo-profile strong {
  font-size: 0.8rem;
}

.demo-profile span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.65rem;
}

.menu-links {
  display: grid;
  gap: 0.3rem;
  padding-top: 1rem;
}

.menu-links button,
.menu-links a {
  display: flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.7rem;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.menu-links button:hover,
.menu-links a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.toast {
  position: fixed;
  z-index: 90;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  visibility: hidden;
  max-width: min(24rem, calc(100% - 2.5rem));
  align-items: center;
  gap: 0.65rem;
  border: 0.0625rem solid #cde1d3;
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  background: #f5fbf7;
  color: var(--primary);
  box-shadow: var(--shadow);
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(1rem);
  transition: 220ms ease;
}

.toast.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.toast svg {
  flex: 0 0 auto;
}

@media (max-width: 62rem) {
  .app-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

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

@media (max-width: 43rem) {
  body {
    background: var(--surface);
  }

  .demo-ribbon {
    min-height: 1.9rem;
    font-size: 0.62rem;
  }

  .ribbon-detail {
    display: none;
  }

  .app-shell {
    min-height: calc(100vh - 1.9rem);
    box-shadow: none;
  }

  .app-header {
    min-height: 4.5rem;
    padding-inline: 1rem;
  }

  .logo-link img {
    width: 6rem;
  }

  .github-button span {
    display: none;
  }

  .github-button {
    width: 2.65rem;
    padding: 0;
  }

  .content-container {
    width: 100%;
    padding-inline: 1rem;
  }

  .home-content,
  .page-content {
    padding-block: 1.75rem 6.5rem;
  }

  .welcome-row .avatar {
    display: none;
  }

  .welcome-copy {
    max-width: 18rem;
  }

  .promo-banner {
    height: 20rem;
    border-radius: var(--radius);
  }

  .promo-banner img {
    object-position: center 34%;
  }

  .promo-banner::after {
    background: linear-gradient(
      to top,
      rgba(13, 18, 15, 0.94) 0%,
      rgba(13, 18, 15, 0.5) 58%,
      rgba(13, 18, 15, 0.08) 100%
    );
  }

  .promo-copy {
    top: auto;
    right: 1.35rem;
    bottom: 1.35rem;
    left: 1.35rem;
    width: auto;
    transform: none;
  }

  .promo-kicker,
  .promo-description {
    display: none;
  }

  .promo-copy strong {
    max-width: 15rem;
    font-size: 2rem;
  }

  .promo-action {
    min-height: 2.25rem;
    margin-top: 0.9rem;
    padding-block: 0.5rem;
  }

  .barbershop-grid {
    display: grid;
    overflow-x: auto;
    margin-inline: -1rem;
    padding: 0.1rem 1rem 1rem;
    grid-auto-columns: 82%;
    grid-auto-flow: column;
    grid-template-columns: none;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .barbershop-card {
    min-height: 13.5rem;
    scroll-snap-align: start;
  }

  .popular-scroller {
    margin-inline: -1rem;
    padding-inline: 1rem;
    grid-auto-columns: 78%;
  }

  .popular-card {
    min-height: 11.5rem;
  }

  .back-button {
    display: none;
  }

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

  .chat-layout {
    min-height: calc(100dvh - 6.4rem);
    padding-bottom: 4.75rem;
  }

  .message-list {
    max-height: none;
  }

  .app-footer {
    display: none;
  }

  .bottom-nav {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: 4.7rem;
    border-top: 0.0625rem solid var(--border);
    padding: 0.45rem max(1rem, env(safe-area-inset-right))
      max(0.45rem, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(0.8rem);
    grid-template-columns: repeat(3, 1fr);
  }

  .bottom-nav button {
    display: grid;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 0.35rem;
    place-items: center;
    background: transparent;
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 700;
    cursor: pointer;
  }

  .bottom-nav button svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-bottom: 0.2rem;
  }

  .bottom-nav button.is-active {
    color: var(--primary);
  }

  .side-sheet {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(92dvh, 53rem);
    border-radius: 1.5rem 1.5rem 0 0;
    transform: translateY(105%);
  }

  .side-sheet.is-open {
    transform: translateY(0);
  }

  .sheet-hero {
    min-height: 14rem;
  }

  .service-card {
    grid-template-columns: 3.75rem 1fr auto;
  }

  .service-card img {
    width: 3.75rem;
    height: 3.75rem;
  }

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

  .toast {
    right: 1rem;
    bottom: 5.6rem;
  }
}

@media (max-width: 27rem) {
  .booking-card {
    grid-template-columns: minmax(0, 1fr) 5.25rem;
  }

  .booking-card-main img {
    display: none;
  }

  .booking-date {
    min-width: 5.25rem;
  }

  .shop-meta {
    gap: 0.4rem;
  }

  .service-card {
    grid-template-columns: 3.3rem 1fr;
  }

  .service-card img {
    width: 3.3rem;
    height: 3.3rem;
  }

  .service-card button {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
