* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Segoe UI",
    sans-serif;

  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.95),
      transparent 42%
    ),
    #f7f4f6;

  color: #231f21;

  padding-bottom:
    env(safe-area-inset-bottom);
}

button {
  font: inherit;
}

button:active {
  transform: scale(0.985);
}

.app {
  width: 100%;
  max-width: 560px;

  margin: 0 auto;

  padding:
    calc(18px + env(safe-area-inset-top))
    16px
    calc(36px + env(safe-area-inset-bottom));
}


/* =========================================================
   HEADER
========================================================= */

.header {
  display: flex;
  align-items: center;

  gap: 13px;

  margin-bottom: 28px;
}

.logo-button {
  flex: 0 0 auto;

  padding: 0;

  border: none;
  background: transparent;

  cursor: pointer;
}

.logo {
  width: 56px;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 19px;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f0eaee
    );

  box-shadow:
    0 10px 30px
    rgba(40, 30, 35, 0.08);

  color: #2b2528;

  font-size: 25px;

  transform: rotate(-5deg);
}

.logo span {
  transform: rotate(5deg);
}

.header-text {
  min-width: 0;
}

.eyebrow {
  margin-bottom: 3px;

  color: #a1959c;

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 0.16em;
}

.header h1 {
  margin: 0;

  font-size: 25px;
  line-height: 1.08;

  letter-spacing: -0.03em;
}

.header p {
  margin: 7px 0 0;

  color: #91868d;

  font-size: 13px;
  line-height: 1.4;
}


/* =========================================================
   COMMON
========================================================= */

.hidden {
  display: none !important;
}

.screen {
  width: 100%;
}

.subsection {
  margin-bottom: 26px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 13px;
}

.section-kicker {
  margin-bottom: 4px;

  color: #aaa0a6;

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 0.16em;
}

h2 {
  margin: 0;

  font-size: 19px;
  line-height: 1.15;

  letter-spacing: -0.025em;
}


/* =========================================================
   HOME
========================================================= */

.welcome-block {
  padding: 3px 3px 18px;
}

.welcome-title {
  font-size: 18px;
  font-weight: 650;

  letter-spacing: -0.02em;
}

.welcome-text {
  max-width: 390px;

  margin-top: 7px;

  color: #91868d;

  font-size: 13px;
  line-height: 1.55;
}

.menu-grid {
  display: flex;
  flex-direction: column;

  gap: 10px;
}

.menu-card {
  width: 100%;

  display: grid;

  grid-template-columns:
    48px 1fr auto;

  align-items: center;

  gap: 13px;

  padding: 15px;

  border:
    1px solid
    rgba(45, 38, 42, 0.05);

  border-radius: 20px;

  background:
    rgba(255, 255, 255, 0.95);

  color: #231f21;

  text-align: left;

  cursor: pointer;

  box-shadow:
    0 7px 24px
    rgba(37, 28, 33, 0.055);

  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.menu-card-main {
  background:
    rgba(255, 255, 255, 0.95);

  color: #231f21;

  box-shadow:
    0 7px 24px
    rgba(37, 28, 33, 0.055);
}

.menu-card-icon {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 15px;

  background: #f4eff2;

  font-size: 21px;
}

.menu-card-main .menu-card-icon {
  background: #f4eff2;
}

.menu-card-content {
  min-width: 0;
}

.menu-card-title {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
}

.menu-card-description {
  margin-top: 5px;

  color: #91868d;

  font-size: 12px;
  line-height: 1.4;
}

.menu-card-main .menu-card-description {
  color: #91868d;
}

.menu-card-arrow {
  font-size: 20px;
  opacity: 0.65;
}


/* =========================================================
   TOP BACK
========================================================= */

.top-back-button {
  width: 100%;

  margin-bottom: 20px;

  padding: 12px 14px;

  border: none;
  border-radius: 14px;

  background: #eee8ec;

  color: #50474c;

  font-size: 14px;
  font-weight: 600;

  text-align: left;

  cursor: pointer;

  transition:
    transform 0.16s ease,
    background 0.16s ease;
}


/* =========================================================
   SERVICES
========================================================= */

.services {
  display: flex;
  flex-direction: column;

  gap: 10px;
}

.service {
  position: relative;

  width: 100%;

  padding: 17px;

  border:
    1px solid
    rgba(45, 38, 42, 0.05);

  border-radius: 20px;

  background:
    rgba(255, 255, 255, 0.96);

  color: #241f22;

  text-align: left;

  cursor: pointer;

  box-shadow:
    0 7px 24px
    rgba(37, 28, 33, 0.055);

  transition:
    transform 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.service.active {
  border-color: #282326;

  background: #282326;

  color: white;

  box-shadow:
    0 10px 28px
    rgba(40, 35, 38, 0.15);
}

.service-name {
  font-size: 16px;
  font-weight: 650;

  line-height: 1.25;
}

.service-info {
  display: flex;
  align-items: center;

  gap: 8px;

  margin-top: 8px;

  color: #958b91;

  font-size: 13px;
}

.service.active .service-info {
  color:
    rgba(255, 255, 255, 0.66);
}


/* =========================================================
   DATES
========================================================= */

.dates {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 9px;
}

.date-button {
  min-height: 68px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 2px;

  padding: 10px 7px;

  border:
    1px solid
    rgba(45, 38, 42, 0.05);

  border-radius: 17px;

  background:
    rgba(255, 255, 255, 0.95);

  color: #302b2e;

  cursor: pointer;

  box-shadow:
    0 5px 18px
    rgba(37, 28, 33, 0.045);

  transition:
    transform 0.16s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.date-button span {
  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.08em;
}

.date-button strong {
  font-size: 20px;

  line-height: 1;
}

.date-button.active {
  border-color: #282326;

  background: #282326;

  color: white;
}


/* =========================================================
   TIMES
========================================================= */

.times {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 9px;
}

.time-button {
  min-height: 48px;

  padding: 10px 8px;

  border:
    1px solid
    rgba(45, 38, 42, 0.05);

  border-radius: 15px;

  background:
    rgba(255, 255, 255, 0.95);

  color: #302b2e;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  box-shadow:
    0 4px 15px
    rgba(37, 28, 33, 0.04);

  transition:
    transform 0.16s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.time-button.active {
  border-color: #282326;

  background: #282326;

  color: white;
}


/* =========================================================
   NAVIGATION
========================================================= */

.navigation-button {
  width: 100%;

  margin-top: 10px;

  padding: 12px 14px;

  border: none;
  border-radius: 14px;

  background: #eee8ec;

  color: #50474c;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
}


/* =========================================================
   SUMMARY
========================================================= */

.summary {
  padding: 18px;

  border:
    1px solid
    rgba(45, 38, 42, 0.05);

  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(251, 248, 250, 0.98)
    );

  box-shadow:
    0 8px 26px
    rgba(37, 28, 33, 0.055);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  min-height: 42px;

  padding: 8px 0;

  border-bottom:
    1px solid #eee9ec;

  font-size: 14px;
}

.summary-row:last-child {
  border-bottom: none;

  padding-bottom: 2px;
}

.summary-label {
  color: #988d94;
}

.summary-value {
  max-width: 62%;

  font-weight: 600;

  text-align: right;

  word-break: break-word;
}


/* =========================================================
   CONFIRM BUTTON
========================================================= */

.confirm-button {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 12px;

  padding: 16px 18px;

  border: none;
  border-radius: 18px;

  background: #282326;

  color: white;

  font-size: 15px;
  font-weight: 650;

  cursor: pointer;

  box-shadow:
    0 10px 28px
    rgba(40, 35, 38, 0.16);

  transition:
    transform 0.16s ease,
    opacity 0.18s ease;
}

.confirm-button:active {
  transform: scale(0.985);
}

.confirm-button:disabled {
  background: #ddd7da;

  color: #9b9196;

  opacity: 1;

  box-shadow: none;

  cursor: default;
}

.button-arrow {
  font-size: 20px;

  opacity: 0.8;
}


/* =========================================================
   BOOKINGS
========================================================= */

.my-bookings {
  display: flex;
  flex-direction: column;

  gap: 10px;
}

.booking-card {
  width: 100%;

  padding: 17px;

  border:
    1px solid
    rgba(45, 38, 42, 0.05);

  border-radius: 20px;

  background:
    rgba(255, 255, 255, 0.96);

  box-shadow:
    0 7px 23px
    rgba(37, 28, 33, 0.055);
}

.booking-card-name {
  margin-bottom: 11px;

  font-size: 16px;
  font-weight: 650;
}

.booking-card-row {
  display: flex;

  justify-content: space-between;

  gap: 12px;

  margin-top: 8px;

  color: #554c51;

  font-size: 13px;
}

.booking-card-label {
  color: #968b91;
}

.booking-actions {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 8px;

  margin-top: 14px;
}

.booking-action {
  min-height: 42px;

  border: none;
  border-radius: 13px;

  cursor: pointer;

  font-size: 13px;
  font-weight: 600;

  transition:
    transform 0.16s ease,
    opacity 0.16s ease;
}

.booking-reschedule {
  background: #282326;

  color: white;
}

.booking-cancel {
  background: #eee8ec;

  color: #453d41;
}

.refresh-button {
  padding: 6px 0;

  border: none;

  background: transparent;

  color: #877c83;

  font-size: 12px;

  cursor: pointer;
}


/* =========================================================
   INFO
========================================================= */

.info-card {
  padding: 5px 18px;

  border:
    1px solid
    rgba(45, 38, 42, 0.05);

  border-radius: 22px;

  background:
    rgba(255, 255, 255, 0.96);

  box-shadow:
    0 8px 26px
    rgba(37, 28, 33, 0.055);
}

.info-item {
  display: grid;

  grid-template-columns:
    42px 1fr;

  gap: 13px;

  padding: 16px 0;

  border-bottom:
    1px solid #eee9ec;
}

.info-item:last-child {
  border-bottom: none;
}

.info-icon {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;

  background: #f2edef;

  font-size: 18px;
}

.info-title {
  font-size: 14px;
  font-weight: 650;
}

.info-text {
  margin-top: 5px;

  color: #8e838a;

  font-size: 12px;
  line-height: 1.55;
}


/* =========================================================
   LOADING
========================================================= */

.loading,
.empty {
  width: 100%;

  padding: 17px;

  border:
    1px solid
    rgba(45, 38, 42, 0.04);

  border-radius: 18px;

  background:
    rgba(255, 255, 255, 0.9);

  color: #958a91;

  font-size: 13px;

  text-align: center;
}


/* =========================================================
   FOOTER
========================================================= */

.footer-note {
  padding: 20px 0 4px;

  color: #aaa0a6;

  font-size: 10px;

  letter-spacing: 0.05em;

  text-align: center;
}


/* =========================================================
   STEP ANIMATION
========================================================= */

.booking-step {
  opacity: 1;

  transform: translateY(0);

  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.booking-step.step-hidden {
  opacity: 0;

  transform: translateY(-14px);

  pointer-events: none;
}

.booking-step.step-enter {
  animation:
    bookingStepEnter
    0.36s
    cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bookingStepEnter {
  from {
    opacity: 0;

    transform:
      translateY(14px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }
}


/* =========================================================
   SUCCESS SCREEN
========================================================= */

#successScreen {
  position: fixed;

  inset: 0;

  z-index: 1000;

  overflow-y: auto;

  min-height: 100vh;

  padding:
    calc(24px + env(safe-area-inset-top))
    18px
    calc(28px + env(safe-area-inset-bottom));

  background:
    radial-gradient(
      circle at top center,
      rgba(255, 255, 255, 0.98),
      transparent 55%
    ),
    #f7f4f6;

  opacity: 0;

  transform:
    translateY(18px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

#successScreen.success-visible {
  opacity: 1;

  transform:
    translateY(0);
}

.success-card {
  width: 100%;

  max-width: 430px;

  min-height:
    calc(
      100vh -
      52px -
      env(safe-area-inset-top) -
      env(safe-area-inset-bottom)
    );

  margin: 0 auto;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;
}

.success-heart {
  width: 76px;
  height: 76px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin-bottom: 20px;

  border-radius: 25px;

  background:
    linear-gradient(
      145deg,
      #2c282a,
      #111
    );

  color: white;

  font-size: 34px;

  line-height: 1;

  box-shadow:
    0 16px 38px
    rgba(30, 25, 28, 0.18);

  transform:
    rotate(-5deg);

  animation:
    successHeartIn
    0.55s
    cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes successHeartIn {
  from {
    opacity: 0;

    transform:
      scale(0.7)
      rotate(-12deg);
  }

  to {
    opacity: 1;

    transform:
      scale(1)
      rotate(-5deg);
  }
}

.success-small {
  margin-bottom: 8px;

  color: #a0969c;

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 0.18em;
}

.success-card h2 {
  margin: 0;

  font-size: 29px;

  line-height: 1.1;

  font-weight: 700;

  letter-spacing: -0.035em;
}

.success-main-text {
  margin: 10px 0 24px;

  color: #91868d;

  font-size: 14px;

  line-height: 1.5;
}

.success-details {
  width: 100%;

  max-width: 360px;

  padding: 7px 16px;

  border:
    1px solid
    rgba(45, 38, 42, 0.05);

  border-radius: 20px;

  background:
    rgba(255, 255, 255, 0.96);

  box-shadow:
    0 8px 24px
    rgba(37, 28, 33, 0.05);
}

.success-detail {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 14px;

  padding: 12px 0;

  border-bottom:
    1px solid #eee9ec;

  font-size: 13px;
}

.success-detail:last-child {
  border-bottom: none;
}

.success-detail span {
  color: #988d94;
}

.success-detail strong {
  max-width: 65%;

  color: #302a2d;

  text-align: right;

  word-break: break-word;
}

.success-button {
  max-width: 360px;

  margin-top: 18px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 360px) {
  .app {
    padding-left: 13px;
    padding-right: 13px;
  }

  .header h1 {
    font-size: 22px;
  }

  .logo {
    width: 50px;
    height: 50px;
  }

  .menu-card {
    grid-template-columns:
      44px 1fr auto;

    padding: 14px;
  }

  .menu-card-icon {
    width: 44px;
    height: 44px;
  }

  .dates,
  .times {
    gap: 7px;
  }
}