:root {
  --bg-top: #eee3ff;
  --bg-bottom: #fffdfd;
  --ink: #24143d;
  --muted: #706487;
  --line: rgba(111, 79, 164, 0.14);
  --card: rgba(255, 255, 255, 0.82);
  --card-strong: rgba(255, 255, 255, 0.94);
  --accent: #ff5db1;
  --accent-strong: #ff2d96;
  --accent-soft: rgba(255, 93, 177, 0.12);
  --lavender: #cba8ff;
  --blueberry: #8ba3ff;
  --shadow: 0 28px 80px rgba(93, 63, 150, 0.14);
  --shadow-soft: 0 16px 40px rgba(84, 50, 144, 0.1);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 93, 177, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(139, 163, 255, 0.22), transparent 22%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 62%);
}

body,
input,
button {
  font: inherit;
}

a,
button {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.wordmark-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.panel-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 14px 0;
}

.header-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 28px rgba(60, 35, 114, 0.08);
  backdrop-filter: blur(20px);
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.search-pill input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-icon {
  color: var(--muted);
}

.header-auth,
.account-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-link,
.ghost-link {
  color: var(--ink);
  text-decoration: none;
}

.signup-chip,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  box-shadow: 0 18px 34px rgba(255, 45, 150, 0.22);
  font-weight: 700;
}

.cta-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.account-trigger {
  width: 48px;
  height: 48px;
  padding: 0;
}

.account-initials,
.creator-avatar-fallback,
.profile-avatar-fallback {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lavender), #ffe2f2);
  color: var(--accent-strong);
  font-weight: 700;
}

.account-initials {
  width: 48px;
  height: 48px;
}

.account-wrap {
  position: relative;
}

.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  min-width: 180px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card-strong);
  box-shadow: var(--shadow-soft);
}

.account-menu-item {
  padding: 12px 14px;
  border-radius: 14px;
  text-align: left;
  color: var(--ink);
}

.account-menu-item:hover {
  background: var(--accent-soft);
}

.home-shell,
.public-shell,
.auth-page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 14px 44px;
}

.hero-band {
  padding: 34px 6px 12px;
}

.hero-title,
.profile-name,
.booking-name,
.auth-title,
.panel-head h2,
.section-title {
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  max-width: 11ch;
}

.hero-copy,
.profile-bio,
.booking-bio,
.auth-copy,
.muted-note {
  color: var(--muted);
}

.hero-copy {
  margin: 14px 0 0;
  font-size: 1.1rem;
}

.feed-section,
.bookings-section {
  margin-top: 24px;
}

.section-headline {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.creator-feed {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 82vw);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
}

.creator-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  scroll-snap-align: start;
}

.creator-card:hover,
.option-card:hover,
.day-cell.available:hover,
.time-chip:hover,
.provider-button:hover,
.cta-button:hover,
.creator-card:focus-visible {
  transform: translateY(-2px);
}

.creator-card.placeholder {
  opacity: 0.72;
}

.creator-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.creator-avatar,
.creator-avatar-fallback {
  width: 74px;
  height: 74px;
}

.creator-avatar {
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(76, 44, 123, 0.16);
}

.creator-name {
  margin: 0;
  font-size: 1.15rem;
}

.creator-price {
  margin: 6px 0 0;
  color: var(--muted);
}

.bookings-list {
  display: grid;
  gap: 12px;
}

.booking-card-muted {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.site-footer {
  padding: 0 14px 34px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.public-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.profile-card,
.booking-panel,
.auth-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.profile-card {
  width: min(100%, 560px);
  border-radius: var(--radius-xl);
  padding: 42px 24px;
  background: var(--card);
  text-align: center;
}

.profile-avatar {
  width: 160px;
  height: 160px;
  border-radius: 999px;
  object-fit: cover;
  margin: 0 auto 24px;
  display: block;
  box-shadow: 0 20px 40px rgba(76, 44, 123, 0.18);
}

.profile-avatar-fallback {
  width: 160px;
  height: 160px;
  margin: 0 auto 24px;
  font-size: 3rem;
}

.profile-name {
  font-size: clamp(2.3rem, 7vw, 4.4rem);
}

.profile-bio {
  margin: 14px auto 26px;
  max-width: 28rem;
  font-size: 1.05rem;
}

.booking-shell {
  width: min(100%, 1140px);
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 20px;
}

.booking-panel {
  border-radius: var(--radius-xl);
  padding: 24px;
  background: var(--card);
}

.creator-stack,
.panel-head,
.times-wrap,
.auth-form,
.auth-provider-stack {
  display: grid;
  gap: 12px;
}

.booking-name {
  font-size: clamp(2.2rem, 4vw, 3.7rem);
}

.call-options,
.calendar-grid,
.time-slots {
  display: grid;
  gap: 12px;
}

.call-options {
  margin-top: 20px;
}

.option-card {
  text-align: left;
  padding: 20px;
  border-radius: 24px;
  background: white;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(111, 79, 164, 0.08);
}

.option-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.option-label,
.option-price {
  display: block;
}

.option-label {
  font-size: 1.1rem;
  font-weight: 700;
}

.option-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.option-price {
  margin-top: 14px;
  font-size: 1.3rem;
}

.month-nav {
  display: flex;
  gap: 10px;
}

.ghost-chip,
.time-chip,
.provider-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.ghost-chip {
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.calendar-placeholder {
  min-height: 320px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.weekday-row,
.calendar-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday-row {
  display: grid;
  gap: 8px;
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.day-cell {
  min-height: 58px;
  border-radius: 18px;
  background: white;
  color: var(--ink);
}

.day-cell.available {
  box-shadow: inset 0 0 0 1px rgba(255, 93, 177, 0.2);
}

.day-cell.selected {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.day-cell.disabled,
.day-cell.idle,
.day-cell.outside {
  color: #b9b2c8;
}

.day-cell.disabled,
.day-cell.idle {
  cursor: default;
}

.time-slots {
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
}

.time-chip {
  min-height: 50px;
  border-radius: 999px;
}

.time-chip.selected {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.checkout-bar {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.total-pill {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.auth-page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.auth-ambient {
  position: absolute;
  inset: 6% 8% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 93, 177, 0.2), transparent 68%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  width: min(100%, 480px);
  padding: 30px 24px;
  border-radius: 32px;
  background: var(--card-strong);
}

.auth-title {
  font-size: clamp(2rem, 6vw, 3.3rem);
  margin-top: 8px;
}

.auth-copy {
  margin: 10px 0 0;
}

.auth-message,
.auth-success {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 20px;
}

.auth-message.is-error {
  background: rgba(255, 89, 126, 0.12);
  color: #8d284f;
}

.auth-message.is-success,
.auth-success {
  background: rgba(73, 199, 157, 0.12);
  color: #1b6b55;
}

.auth-form {
  margin-top: 18px;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.auth-button {
  width: 100%;
  margin-top: 4px;
}

.auth-divider {
  display: grid;
  place-items: center;
  margin: 18px 0;
  color: var(--muted);
}

.auth-divider span {
  padding: 0 10px;
  background: var(--card-strong);
}

.provider-button {
  min-height: 54px;
  border-radius: 18px;
}

.provider-apple {
  background: #fff8fc;
}

.auth-switch {
  margin-bottom: 0;
  color: var(--muted);
}

.dashboard-page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 14px 48px;
}

.dashboard-shell {
  display: grid;
  gap: 18px;
}

.dashboard-topbar,
.dashboard-metrics,
.dashboard-card-head,
.call-option-admin-row,
.admin-row-actions,
.detail-row,
.table-actions,
.dashboard-pagination {
  display: flex;
  align-items: center;
}

.dashboard-topbar,
.dashboard-card,
.metric-card,
.detail-panel {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.dashboard-topbar {
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 28px;
}

.dashboard-topbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-title {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -0.05em;
}

.dashboard-metrics {
  gap: 14px;
  flex-wrap: wrap;
}

.metric-card,
.dashboard-card {
  border-radius: 28px;
}

.metric-card {
  flex: 1 1 220px;
  padding: 20px;
  display: grid;
  gap: 8px;
}

.metric-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.metric-value {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.05em;
}

.dashboard-card {
  padding: 22px 18px;
}

.dashboard-card-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.dashboard-table {
  display: grid;
  gap: 10px;
}

.dashboard-table-header,
.dashboard-table-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.4fr) minmax(140px, 1fr) minmax(170px, 1.1fr) minmax(120px, 0.8fr) minmax(110px, 0.7fr) minmax(220px, 1.2fr);
  gap: 12px;
  align-items: center;
}

.dashboard-table-header {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0 8px;
}

.dashboard-table-row {
  padding: 14px 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(111, 79, 164, 0.08);
}

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

.table-cell {
  min-width: 0;
  word-break: break-word;
}

.table-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.table-action {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.table-action.is-danger {
  color: #a7355e;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  text-transform: capitalize;
}

.status-confirmed {
  background: rgba(73, 199, 157, 0.14);
  color: #1f755b;
}

.status-pending_payment {
  background: rgba(255, 188, 80, 0.18);
  color: #8f6411;
}

.status-cancelled,
.status-no_show {
  background: rgba(255, 89, 126, 0.12);
  color: #972d57;
}

.detail-panel {
  margin-top: -4px;
  margin-bottom: 8px;
  padding: 16px;
  border-radius: 24px;
}

.detail-row {
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(111, 79, 164, 0.08);
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-label {
  color: var(--muted);
}

.detail-value {
  text-align: right;
  word-break: break-word;
}

.dashboard-pagination {
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.pagination-chip {
  width: 46px;
  height: 46px;
}

.pagination-label {
  color: var(--muted);
}

.dashboard-add-button {
  font-size: 1.4rem;
}

.call-options-admin-list {
  display: grid;
  gap: 12px;
}

.call-option-admin-row {
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(111, 79, 164, 0.08);
}

.call-option-admin-row.is-new {
  box-shadow: inset 0 0 0 2px rgba(255, 93, 177, 0.12);
}

.admin-input,
.dashboard-textarea {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.admin-input {
  flex: 1 1 180px;
}

.dashboard-textarea {
  width: 100%;
  min-height: 180px;
  padding: 14px;
  resize: vertical;
}

.toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.admin-row-actions {
  gap: 8px;
  margin-left: auto;
}

.note-modal {
  width: min(100% - 24px, 560px);
  padding: 0;
  border: 0;
  background: transparent;
}

.note-modal::backdrop {
  background: rgba(36, 20, 61, 0.22);
  backdrop-filter: blur(8px);
}

.note-modal-card {
  width: 100%;
}

@media (min-width: 960px) {
  .creator-feed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: unset;
    grid-auto-columns: unset;
    overflow: visible;
  }
}

@media (max-width: 860px) {
  .header-shell {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand auth"
      "search search";
    border-radius: 28px;
  }

  .wordmark-link {
    grid-area: brand;
  }

  .search-pill {
    grid-area: search;
  }

  .header-auth,
  .account-wrap {
    justify-self: end;
  }

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

  .profile-card,
  .booking-panel,
  .auth-card {
    padding: 24px 18px;
  }

  .dashboard-topbar,
  .dashboard-card,
  .metric-card {
    border-radius: 24px;
  }

  .dashboard-table-header,
  .dashboard-table-row {
    grid-template-columns: 1fr;
  }

  .dashboard-table-header {
    display: none;
  }

  .dashboard-table-row {
    gap: 8px;
  }

  .table-actions,
  .admin-row-actions,
  .dashboard-pagination,
  .detail-row,
  .dashboard-card-head,
  .dashboard-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-value {
    text-align: left;
  }

  .admin-row-actions {
    margin-left: 0;
  }

  .profile-avatar,
  .profile-avatar-fallback {
    width: 144px;
    height: 144px;
  }
}
