﻿:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-low: #f4f3f1;
  --surface-soft: #efeeeb;
  --text: #1a1c1a;
  --muted: #434654;
  --primary: #0f51d1;
  --primary-deep: #003ba3;
  --primary-soft: #d7e3fb;
  --success: #10b981;
  --danger: #ba1a1a;
  --danger-soft: #ffdad6;
  --border-soft: rgba(195, 198, 215, 0.35);
  --shadow-soft: 0 20px 40px rgba(26, 28, 26, 0.05);
  --shadow-card: 0 10px 30px rgba(15, 81, 209, 0.08);
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 26px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", "Sora", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 8%, rgba(188, 209, 255, 0.55) 0%, rgba(188, 209, 255, 0) 34%),
    radial-gradient(circle at 92% 88%, rgba(234, 216, 255, 0.52) 0%, rgba(234, 216, 255, 0) 31%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 42%),
    var(--bg);
}

h1,
h2,
h3,
h4,
strong {
  font-family: "Plus Jakarta Sans", "Sora", "Segoe UI", sans-serif;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 18px;
  background: rgba(250, 249, 246, 0.82);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--border-soft);
  box-shadow: 20px 0 40px rgba(26, 28, 26, 0.03);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 12;
}

.brand {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(15, 81, 209, 0.08), rgba(255, 255, 255, 0.75));
  border: 1px solid rgba(15, 81, 209, 0.14);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.02em;
}

.nav-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.nav-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #5a5f6e;
  padding: 13px 14px;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-btn:hover {
  background: rgba(215, 227, 251, 0.58);
  color: var(--primary-deep);
  transform: translateX(1px);
}

.nav-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  box-shadow: var(--shadow-card);
}

.main {
  position: relative;
  padding: 94px 30px 30px;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 280px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  background: rgba(250, 249, 246, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  z-index: 10;
}

.topbar-title {
  font-size: 0.92rem;
  color: #606576;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  border: none;
  background: var(--surface-low);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
}

.page {
  display: none;
  animation: pageFade 0.26s ease;
}

.page.active {
  display: block;
}

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

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

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

.card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

label {
  display: grid;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface-low);
  padding: 11px 12px;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  background: #fff;
  border-color: rgba(15, 81, 209, 0.38);
  box-shadow: 0 0 0 4px rgba(15, 81, 209, 0.13);
}

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

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

button {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

button.primary {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
  box-shadow: 0 10px 20px rgba(15, 81, 209, 0.24);
}

button.secondary {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

button.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.small-text {
  color: var(--muted);
  font-size: 0.88rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 800;
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.invitation-list,
.event-list {
  display: grid;
  gap: 12px;
}

.invitation-item,
.event-item,
.rule-item {
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 20px rgba(26, 28, 26, 0.04);
}

.rule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 12px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.legend-dot.free {
  background: #f8f8f8;
}

.legend-dot.available {
  background: #d6f4e5;
  border-color: #b8e9d0;
}

.legend-dot.busy {
  background: #ffd7d3;
  border-color: #f4b5ae;
}

.legend-dot.selected {
  background: #0f51d1;
  border-color: #0f51d1;
}

.week-grid {
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #ffffff, #f8f8f8);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.week-grid-head,
.week-grid-row {
  display: grid;
  gap: 8px;
  align-items: center;
}

.grid-time-label,
.grid-day-label,
.slot-cell {
  border-radius: 11px;
}

.grid-time-label {
  font-size: 0.75rem;
  color: #696f80;
  font-weight: 700;
  text-align: center;
  padding: 8px;
  background: #f5f4f2;
  border: 1px solid rgba(195, 198, 215, 0.35);
}

.grid-day-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  padding: 10px 8px;
  color: #53596b;
  background: #ffffff;
  border: 1px solid rgba(195, 198, 215, 0.35);
}

.grid-day-label.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  border-color: transparent;
}

.slot-cell {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #757a8b;
  background: #fbfbfa;
  border: 1px solid rgba(195, 198, 215, 0.35);
  user-select: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.slot-cell:hover {
  border-color: rgba(15, 81, 209, 0.4);
  transform: translateY(-1px);
}

.slot-cell.available {
  color: #0f6c46;
  background: #eafaf2;
  border-color: #cdeedb;
}

.slot-cell.busy {
  color: #a03d33;
  background: #ffe9e6;
  border-color: #f3c5bf;
  cursor: not-allowed;
}

.slot-cell.busy.clickable {
  cursor: pointer;
}

.slot-cell.busy.clickable:hover {
  border-color: rgba(160, 61, 51, 0.45);
  background: #ffdcd8;
}

.slot-cell.selected {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  border-color: transparent;
}

.slots-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot-chip {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #fff;
  padding: 7px 10px;
  font-size: 0.78rem;
}

.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: none;
  place-items: center;
  background: rgba(26, 28, 26, 0.3);
  backdrop-filter: blur(5px);
  padding: 18px;
}

.modal-wrap.open {
  display: grid;
}

.modal {
  width: min(940px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--border-soft);
  padding: 24px;
  box-shadow: 0 28px 50px rgba(26, 28, 26, 0.18);
}

/* Invitation builder gets extra horizontal room on desktop */
#createModalWrap .modal {
  width: min(1320px, 96vw);
}

#createModalWrap #invitationSlotGrid {
  padding: 10px;
}

.inline-error {
  color: var(--danger);
  font-size: 0.88rem;
}

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

.login-shell {
  width: min(1080px, 100%);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border-soft);
  border-radius: 30px;
  box-shadow: 0 30px 50px rgba(26, 28, 26, 0.1);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.login-panel,
.login-form-card {
  padding: 34px;
}

.login-panel {
  background: linear-gradient(155deg, rgba(15, 81, 209, 0.08), rgba(255, 255, 255, 0.3));
  border-right: 1px solid var(--border-soft);
  display: grid;
  gap: 14px;
  align-content: start;
}

.login-title {
  margin: 2px 0;
  font-size: 2.3rem;
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.login-form-card {
  display: grid;
  align-content: center;
  gap: 10px;
}

.login-footer {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.text-link {
  border: none;
  background: transparent;
  color: var(--primary-deep);
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.invite-layout {
  min-height: 100vh;
  padding: 110px 18px 40px;
}

.invite-shell {
  max-width: 1000px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.87);
  border: 1px solid var(--border-soft);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  padding: 24px;
}

.view-toggle {
  display: inline-flex;
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 4px;
}

.view-toggle button {
  border-radius: 999px;
  background: transparent;
  color: #5b6070;
  padding: 8px 12px;
}

.view-toggle button.active {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: 0 5px 14px rgba(26, 28, 26, 0.09);
}

.slot-option {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 11px 12px;
  text-align: left;
  cursor: pointer;
}

.slot-option.active {
  border-color: rgba(15, 81, 209, 0.3);
  background: rgba(15, 81, 209, 0.1);
  color: var(--primary-deep);
}

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

.slot-day-card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.slot-day-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #5a6070;
}

.slot-time-btn {
  width: 100%;
  border-radius: var(--radius-xs);
  background: #f8f8f7;
  border: 1px solid var(--border-soft);
  color: #454b5a;
  text-align: left;
  padding: 8px 10px;
}

.slot-time-btn.active {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
  border-color: transparent;
}

@media (max-width: 1160px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
  }

  .topbar {
    left: 0;
    position: sticky;
  }

  .main {
    padding-top: 24px;
  }
}

@media (max-width: 900px) {
  .grid.two {
    grid-template-columns: 1fr;
  }

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

  .login-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
  }
}

/* Public booking premium calendar */
.booking-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
  gap: 16px;
}

.booking-main-panel,
.booking-side-panel {
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.booking-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.booking-period-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: #555c6d;
  margin-bottom: 6px;
}

.booking-month-grid {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}

.booking-month-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--border-soft);
  background: #f8f7f6;
}

.booking-month-head span {
  padding: 10px 8px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: #6a7081;
  letter-spacing: 0.02em;
}

.booking-month-body {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.day-cell {
  min-height: 84px;
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: #fff;
  text-align: left;
  padding: 8px;
  border-radius: 0;
  display: grid;
  align-content: space-between;
  gap: 4px;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.day-cell:nth-child(7n) {
  border-right: none;
}

.day-number {
  font-size: 0.86rem;
  font-weight: 800;
  color: #1f2430;
}

.day-meta {
  font-size: 0.7rem;
  color: #6f7687;
  font-weight: 700;
}

.day-cell:hover:not(:disabled) {
  background: #f4f8ff;
}

.day-cell.status-available {
  background: #fcfffd;
}

.day-cell.status-available .day-meta {
  color: #12734d;
}

.day-cell.status-past {
  background: #fbf8f8;
}

.day-cell.status-past .day-meta,
.day-cell.status-past .day-number {
  color: #9b7482;
}

.day-cell.status-unavailable {
  background: #f8f8f8;
}

.day-cell.status-unavailable .day-meta,
.day-cell.status-unavailable .day-number {
  color: #9ca2b1;
}

.day-cell.outside {
  opacity: 0.48;
}

.day-cell.is-selected {
  box-shadow: inset 0 0 0 2px rgba(15, 81, 209, 0.45);
  background: #eef4ff;
}

.booking-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  gap: 10px;
  overflow: auto;
  padding-bottom: 2px;
}

.week-day-card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: #fff;
  min-height: 210px;
  display: grid;
  grid-template-rows: auto 1fr;
}

.week-day-card.active {
  border-color: rgba(15, 81, 209, 0.35);
  box-shadow: 0 8px 18px rgba(15, 81, 209, 0.12);
}

.week-day-head {
  padding: 10px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.77rem;
  font-weight: 800;
  color: #5e6576;
}

.week-slots {
  padding: 10px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.week-slot-btn {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #f8fafc;
  color: #495062;
  text-align: left;
  padding: 8px;
}

.week-slot-btn:hover:not(:disabled) {
  border-color: rgba(15, 81, 209, 0.35);
  background: #eef4ff;
}

.week-slot-btn.active {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
  border-color: transparent;
}

.week-slot-btn.past {
  background: #f5f2f2;
  color: #9e7f8b;
  cursor: not-allowed;
}

.week-empty {
  font-size: 0.76rem;
  color: #8a90a1;
  font-weight: 700;
}

.slot-list-premium {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

.slot-option.past {
  background: #f5f2f2;
  color: #9e7f8b;
  cursor: not-allowed;
}

.booking-side-panel h3 {
  margin-top: 0;
}

@media (max-width: 980px) {
  .booking-shell {
    grid-template-columns: 1fr;
  }

  .booking-week-grid {
    grid-template-columns: 1fr;
    max-height: 420px;
  }

  .booking-month-head,
  .booking-month-body {
    grid-template-columns: repeat(7, minmax(95px, 1fr));
    min-width: 680px;
  }

  .booking-month-grid {
    overflow: auto;
  }

  .day-cell {
    min-height: 76px;
  }
}

@media (max-width: 640px) {
  .invite-layout {
    padding-top: 90px;
  }

  .invite-shell {
    padding: 14px;
    border-radius: 22px;
  }

  .booking-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .booking-toolbar .btn-row {
    width: 100%;
  }

  .booking-toolbar .btn-row button {
    flex: 1;
    justify-content: center;
  }

  .slot-list-premium {
    max-height: none;
  }
}


/* Stitch-like public booking 1:1 */
.stitch-like-wrap {
  padding-top: 18px;
}

.stitch-like-shell {
  max-width: 760px;
  border-radius: 28px;
  padding: 0;
  overflow: hidden;
  background: #f4f4f4;
}

.stitch-card-block {
  background: #f7f7f7;
  padding: 24px 26px;
  border-bottom: 1px solid #ececec;
}

.stitch-hero {
  display: grid;
  gap: 10px;
}

.stitch-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #dce7ff;
  color: #2955b7;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 6px 10px;
}

.stitch-title {
  margin: 0;
  font-size: 2.75rem;
  line-height: 1.03;
  letter-spacing: -0.045em;
  color: #15161a;
}

.stitch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #626775;
  font-size: 0.88rem;
  font-weight: 700;
}

.stitch-meta-symbol {
  font-size: 16px;
  line-height: 1;
  vertical-align: -3px;
  margin-right: 5px;
}

.stitch-description {
  margin: 6px 0 0;
  color: #575c69;
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 90%;
}

.stitch-slots h2,
.stitch-form h2 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.025em;
}

.stitch-slots-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

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

.stitch-slot-day {
  display: grid;
  gap: 9px;
}

.stitch-slot-day-title {
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  color: #8a8f9d;
  font-weight: 800;
}

.stitch-slot-btn {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #2f3443;
  font-weight: 800;
  padding: 12px 12px;
}

.stitch-slot-btn:hover:not(:disabled) {
  border-color: #b9cdfd;
  box-shadow: 0 6px 16px rgba(29, 89, 216, 0.12);
}

.stitch-slot-btn.active {
  border-color: transparent;
  background: #0f4fc7;
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 79, 199, 0.36);
}

.stitch-slot-btn.past,
.slot-time-btn.past {
  background: #efefef;
  color: #a4a8b2;
  border-color: #e6e6e6;
  cursor: not-allowed;
}

.stitch-form form input,
.stitch-form form textarea,
.stitch-form form select {
  background: #ededed;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 13px 14px;
}

.stitch-form form input:focus,
.stitch-form form textarea:focus,
.stitch-form form select:focus {
  background: #fff;
}

.stitch-form form textarea {
  min-height: 94px;
}

.stitch-confirm {
  width: 100%;
  font-size: 1.12rem;
  padding: 15px 20px;
  border-radius: 999px;
  margin-top: 4px;
}

@media (max-width: 820px) {
  .stitch-like-shell {
    max-width: 100%;
    border-radius: 20px;
  }

  .stitch-card-block {
    padding: 18px;
  }

  .stitch-title {
    font-size: 2rem;
  }

  .stitch-description {
    max-width: 100%;
    font-size: 0.94rem;
  }

  .stitch-slot-columns {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stitch-slots-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.stitch-meta-icon { display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; margin-right:6px; border-radius:999px; background:#e9eefc; font-size:11px; line-height:1; vertical-align:middle; }

.stitch-calendar-controls {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.stitch-calendar-controls strong {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

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

.stitch-slot-day {
  display: grid;
  gap: 8px;
}

.stitch-slot-day-title {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #858b99;
  font-weight: 800;
}

.stitch-slot-btn {
  min-height: 44px;
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e6e6e6;
  background: #ffffff;
  color: #2f3443;
  font-size: 1rem;
  font-weight: 800;
  padding: 10px 14px;
}

.stitch-slot-btn.active {
  background: #0f4fc7;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(15, 79, 199, 0.3);
}

.stitch-list-btn {
  min-height: 56px;
  border-radius: 12px;
}

.booking-month-grid {
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.booking-month-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid #ececec;
  background: #f7f7f7;
}

.booking-month-head span {
  text-align: center;
  padding: 8px;
  font-size: 0.72rem;
  color: #7b8190;
  font-weight: 800;
}

.booking-month-body {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.day-cell {
  min-height: 72px;
  padding: 7px;
  border-right: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
  background: #fff;
  border-radius: 0;
  display: grid;
  align-content: space-between;
}

.day-cell:nth-child(7n) {
  border-right: none;
}

.day-number {
  font-size: 0.86rem;
  font-weight: 800;
  color: #2a2f3d;
}

.day-meta {
  font-size: 0.67rem;
  color: #7a8190;
  font-weight: 700;
}

.day-cell.status-available .day-meta {
  color: #156f4b;
}

.day-cell.status-past {
  background: #f5f5f5;
}

.day-cell.status-past .day-number,
.day-cell.status-past .day-meta {
  color: #a2a7b2;
}

.day-cell.status-unavailable {
  background: #f8f8f8;
}

.day-cell.is-selected {
  box-shadow: inset 0 0 0 2px rgba(15, 79, 199, 0.45);
  background: #eef4ff;
}

.day-cell.outside {
  opacity: 0.5;
}

.day-cell.outside.status-available {
  opacity: 1;
}

.meeting-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.meeting-switch button {
  border-radius: 999px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #4d5363;
  padding: 11px 12px;
  font-weight: 800;
}

.meeting-switch button.active {
  border-color: transparent;
  background: #0f4fc7;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 79, 199, 0.26);
}

.meeting-switch button:disabled {
  opacity: 0.45;
}

@media (max-width: 820px) {
  .stitch-slot-columns {
    grid-template-columns: 1fr;
  }

  .booking-month-grid {
    overflow: hidden;
    width: 100%;
  }

  .booking-month-head,
  .booking-month-body {
    min-width: 0;
    width: 100%;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .booking-month-head span {
    padding: 6px 2px;
    font-size: 0.62rem;
  }

  .day-cell {
    min-height: 58px;
    padding: 5px 3px;
  }

  .day-number {
    font-size: 0.72rem;
  }

  .day-meta {
    font-size: 0.56rem;
    line-height: 1.15;
  }

  .meeting-switch {
    grid-template-columns: 1fr;
  }
}

.public-booking-header,
.public-booking-footer {
  width: 100%;
}

.public-booking-body {
  min-height: 100vh;
  overflow-y: auto;
  display: block;
}

.public-booking-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(195, 198, 215, 0.35);
}

.public-booking-header-inner,
.public-booking-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.public-booking-brand {
  color: #003ba3;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.public-booking-support {
  border: 1px solid #d8dbe5;
  border-radius: 999px;
  background: #fff;
  color: #4a5060;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
}

.public-booking-footer {
  border-top: 1px solid rgba(195, 198, 215, 0.25);
  color: #707788;
  font-size: 0.78rem;
}

.stitch-confirm-shell {
  background: #f7f7f7;
  border-radius: 24px;
  display: grid;
  gap: 14px;
}

.stitch-confirm-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stitch-confirm-check {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.stitch-confirm-top h2 {
  margin: 0;
  font-size: 1.95rem;
  letter-spacing: -0.03em;
}

.stitch-confirm-top p {
  margin: 4px 0 0;
  color: #6a7081;
  font-weight: 600;
}

.stitch-confirm-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stitch-confirm-card {
  min-height: 92px;
  border-radius: 16px;
  background: #efefef;
  border: 1px solid #e8e8e8;
  padding: 12px 13px;
  display: grid;
  align-content: center;
  gap: 3px;
}

.stitch-confirm-card.center {
  justify-items: center;
  text-align: center;
}

.stitch-confirm-label {
  color: #8a90a0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.stitch-confirm-card strong {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.stitch-confirm-card span {
  font-size: 0.9rem;
  color: #556070;
  font-weight: 700;
}

.stitch-bell {
  font-size: 1rem;
}

.stitch-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.confirm-btn-black,
.confirm-btn-gray {
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.83rem;
  padding: 10px 16px;
}

.confirm-btn-black {
  background: #17181b;
  color: #fff;
}

.confirm-btn-gray {
  background: #e9e9e9;
  color: #2f3442;
}

.confirm-link-blue,
.confirm-link-red {
  border: none;
  background: transparent;
  padding: 0 6px;
  font-size: 0.86rem;
  font-weight: 800;
}

.confirm-link-blue {
  color: #2558cc;
}

.confirm-link-red {
  color: #d03434;
}

@media (max-width: 820px) {
  .stitch-confirm-cards {
    grid-template-columns: 1fr;
  }
}

/* Non-scrollable public page layout */
.stitch-like-wrap {
  padding: 16px 8px !important;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.stitch-like-shell {
  width: min(760px, 100%);
  overflow: visible;
}

/* Confirmation state only: lock page scroll */
.public-booking-body.confirm-lock {
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.public-booking-body.confirm-lock .stitch-like-wrap {
  height: 100%;
  align-items: center;
  overflow: hidden;
}

.public-booking-body.confirm-lock .stitch-like-shell {
  max-height: calc(100vh - 120px);
  overflow: hidden;
}

@media (max-width: 820px) {
  .public-booking-body.confirm-lock {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    display: block;
  }

  .public-booking-body.confirm-lock .stitch-like-wrap {
    height: auto;
    overflow: visible;
    align-items: flex-start;
  }

  .public-booking-body.confirm-lock .stitch-like-shell {
    max-height: none;
    overflow: visible;
  }
}

/* Landing page */
.landing-body {
  min-height: 100vh;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(250, 249, 246, 0.82);
  border-bottom: 1px solid rgba(195, 198, 215, 0.35);
}

.landing-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-brand {
  font-size: 1.05rem;
  font-weight: 800;
  color: #003ba3;
  letter-spacing: -0.02em;
}

.landing-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 18px 44px;
  display: grid;
  gap: 18px;
}

.landing-hero {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border-soft);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  padding: 38px;
}

.landing-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #2754b9;
  background: #dce7ff;
}

.landing-pill .material-symbols-outlined {
  font-size: 1rem;
}

.landing-hero h1 {
  margin: 14px 0 8px;
  font-size: clamp(2rem, 5.6vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.landing-hero p {
  margin: 0;
  max-width: 760px;
  color: #5a6070;
  line-height: 1.7;
  font-size: 1rem;
}

.landing-hero .btn-row {
  margin-top: 20px;
}

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

.landing-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.landing-card .material-symbols-outlined {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8efff;
  color: #1547ad;
  font-size: 1.15rem;
}

.landing-card h2 {
  margin: 12px 0 6px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.landing-card p {
  margin: 0;
  color: #5c6273;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .landing-cards {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    padding: 24px;
  }
}
