*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dust-grey: #DDD5D0;
  --silver: #CFC0BD;
  --ash-grey: #B8B8AA;
  --grey-olive: #7F9183;
  --granite: #586F6B;

  --bg: #F5F0ED;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F9F6F4;
  --border: var(--silver);
  --border-hover: var(--grey-olive);
  --text-primary: #3A3A3A;
  /* Luminance of --text-primary R/G/B (58/255); pair with filter: invert(1) brightness(...) on black icons */
  --text-primary-luma: 0.22745098039215686;
  --text-secondary: var(--granite);
  --text-muted: var(--ash-grey);
  --accent: var(--grey-olive);
  --accent-hover: var(--granite);
  --accent-light: rgba(127, 145, 131, 0.12);

  --modal-bg: #FFFFFF;
  --input-bg: #F9F6F4;
  --input-border: var(--silver);
  --input-focus: rgba(127, 145, 131, 0.4);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 6px rgba(88, 111, 107, 0.07);
  --shadow-md: 0 6px 24px rgba(88, 111, 107, 0.1);
  --shadow-lg: 0 12px 48px rgba(88, 111, 107, 0.13);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  /* Prevent iOS Safari from bumping font sizes and breaking rem-based layouts */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.7;
  overflow-x: hidden;
  overflow-x: clip;
}

a { color: var(--accent); text-decoration: none; transition: color 0.25s var(--transition-smooth); }
a:hover { color: var(--accent-hover); }

/* ── Shared Nav Bar ──────────────── */

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(221, 213, 208, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.top-bar.scrolled {
  box-shadow: var(--shadow-sm);
}

.top-bar .logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--granite);
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar .logo:hover { opacity: 0.7; color: var(--granite); }

.logo-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.top-bar .nav-links {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.top-bar .nav-links a,
.top-bar .nav-links button {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--transition-smooth);
  background: none;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
}

.top-bar .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.3s var(--transition-smooth), left 0.3s var(--transition-smooth);
}

.top-bar .nav-links a:hover::after {
  width: 60%;
  left: 20%;
}

.top-bar .nav-links a:hover,
.top-bar .nav-links button:hover {
  background: var(--accent-light);
  color: var(--accent-hover);
}

.btn-login {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
}

.btn-login:hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--dust-grey);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.user-avatar:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.user-avatar-text {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--dust-grey);
  transition: border-color 0.2s, transform 0.2s;
}

.user-avatar-text:hover {
  border-color: var(--accent-hover);
  transform: scale(1.05);
}

.user-menu {
  position: relative;
  display: inline-block;
}

.user-menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--dust-grey);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 200;
  overflow: hidden;
  animation: dropdown-in 0.2s var(--transition-smooth);
}

@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-menu-dropdown.open { display: block; }

.user-menu-dropdown a {
  display: block;
  padding: 0.7rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all 0.15s;
}

.user-menu-dropdown a:hover {
  background: var(--accent-light);
  color: var(--accent-hover);
}

/* ── Page Wrapper ────────────────── */

.page-wrapper {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
}

.page-wrapper.top-aligned {
  align-items: flex-start;
  padding-top: 3rem;
}

.container {
  width: 100%;
  max-width: 780px;
}

.container-wide {
  width: 100%;
  max-width: 900px;
}

.container-full {
  width: 100%;
  max-width: 1300px;
  padding: 0 2.5rem;
}

/* ── Profile ─────────────────────── */

.profile-section {
  text-align: center;
  margin-bottom: 3rem;
}

.avatar {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grey-olive), var(--granite));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 5px var(--dust-grey), var(--shadow-md);
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s ease;
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 5px var(--silver), var(--shadow-lg);
}

.avatar-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-initials {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 4px;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--granite);
  margin-bottom: 0.4rem;
}

.profile-bio {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.profile-tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ── About Me Section (Homepage) ─── */

.about-preview {
  background: var(--bg-card);
  border: 1px solid var(--dust-grey);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.about-preview:hover {
  box-shadow: var(--shadow-md);
}

.about-preview p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.about-preview .about-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Link Cards ──────────────────── */

.links-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--dust-grey);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: left;
  transition: all 0.3s var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--accent-light);
  transition: width 0.35s var(--transition-smooth);
  z-index: 0;
}

.link-card:hover::before {
  width: 100%;
}

.link-card > * { position: relative; z-index: 1; }

.link-card:hover,
.link-card:focus-visible {
  border-color: var(--grey-olive);
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-md);
}

.link-card:active {
  transform: translateY(0) scale(1);
}

.link-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 14px;
  color: var(--accent);
  transition: transform 0.3s var(--transition-smooth), background 0.3s ease;
}

.link-card:hover .link-icon {
  transform: scale(1.1) rotate(-3deg);
  background: rgba(127, 145, 131, 0.2);
}

.link-icon-img {
  display: block;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  /* Black line art → match .link-title: invert to white, then scale to --text-primary luminance */
  filter: invert(1) brightness(var(--text-primary-luma));
}

.link-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.link-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.link-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.link-subtitle {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 3px;
}

.link-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  white-space: nowrap;
  transition: all 0.2s;
}

.link-card:hover .link-price {
  background: var(--accent);
  color: #fff;
}

.link-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.3s var(--transition-smooth), color 0.3s ease;
}

.link-card:hover .link-arrow {
  transform: translateX(5px);
  color: var(--accent);
}

/* ── Section Divider ─────────────── */

.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

/* ── Social Bar ──────────────────── */

.social-bar {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.social-link {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--dust-grey);
  color: var(--text-secondary);
  transition: all 0.3s var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-md);
}

/* ── Footer ──────────────────────── */

.footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 1.5rem 0;
}

/* ── Sections / Service Pages ────── */

.page-hero {
  text-align: center;
  padding: 4rem 2rem 2.5rem;
  background: linear-gradient(180deg, var(--dust-grey) 0%, var(--bg) 100%);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--granite);
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-hero .price-tag {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}

.page-hero .price-tag small {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Pricing / service cards */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--dust-grey);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s var(--transition-smooth);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--grey-olive);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(88,111,107,0.12);
}

.service-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--dust-grey);
}

.service-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body .tier-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--granite);
  margin-bottom: 0.25rem;
}

.service-card-body .tier-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  flex: 1;
}

.service-card-body .tier-anchor {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 0.1rem;
}

.service-card-body .tier-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.pricing-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-style: italic;
}

.section {
  padding: 2.5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--granite);
  margin-bottom: 1.15rem;
}

.section p {
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
  line-height: 1.8;
  font-size: 1rem;
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Slots / Calendar ─────────────── */

.slots-section {
  padding: 2.5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.slots-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--granite);
  margin-bottom: 1.15rem;
}

/* Calendar */
.calendar {
  background: var(--bg-card);
  border: 1px solid var(--dust-grey);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  max-width: 420px;
}

.calendar-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.calendar-header .calendar-nav {
  flex-shrink: 0;
}

.calendar-header-selects {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0 0.25rem;
}

.calendar-select {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg);
  border: 1px solid var(--dust-grey);
  border-radius: var(--radius-sm);
  padding: 0.4rem 1.85rem 0.4rem 0.55rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5L5 7l3-3.5' fill='none' stroke='%237F9183' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 0.65rem;
  transition: border-color 0.2s var(--transition-smooth), box-shadow 0.2s;
  max-width: 100%;
}

.calendar-select:hover {
  border-color: var(--ash-grey);
}

.calendar-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--input-focus);
}

.calendar-select-month {
  flex: 1 1 auto;
  min-width: 0;
}

.calendar-select-year {
  flex: 0 0 auto;
  min-width: 4.5rem;
  text-align: center;
  text-align-last: center;
}

/* Used when a calendar still shows a single title (legacy / fallback) */
.calendar-month {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--granite);
}

.calendar-nav {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dust-grey);
  border-radius: 50%;
  background: none;
  font-size: 1.2rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--transition-smooth);
  font-family: var(--font-body);
}

.calendar-nav:hover:not(:disabled) {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.calendar-nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day-label {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.3rem 0;
  letter-spacing: 0.5px;
}

.calendar-day {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s var(--transition-smooth);
  padding: 0;
}

.calendar-day.empty {
  cursor: default;
}

.calendar-day.past {
  color: var(--dust-grey);
  cursor: not-allowed;
}

.calendar-day.today {
  font-weight: 700;
  color: var(--accent);
}

.calendar-day:not(.empty):not(.past):hover {
  background: var(--accent-light);
  color: var(--accent);
}

.calendar-day.selected {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* Time slots wrapper with animated reveal */
.time-slots-wrapper {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s var(--transition-smooth), max-height 0.5s var(--transition-smooth);
}

.time-slots-wrapper.visible {
  opacity: 1;
  max-height: 3200px;
  overflow: visible;
}

.time-slots-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.6rem;
}

.time-btn {
  padding: 0.75rem;
  border: 1px solid var(--dust-grey);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s var(--transition-smooth);
  text-align: center;
}

.time-btn:hover:not(.unavailable) {
  border-color: var(--grey-olive);
  background: var(--accent-light);
  transform: translateY(-1px);
}

.time-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.time-btn.unavailable {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--dust-grey);
  text-decoration: line-through;
  color: var(--text-muted);
}

.no-slots-msg {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 2.5rem;
}

/* ── Buttons ─────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--transition-smooth);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--dust-grey);
}

.btn-secondary:hover {
  border-color: var(--grey-olive);
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-danger {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}

.btn-danger:hover {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

.btn-full { width: 100%; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Modal ────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(88, 111, 107, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--modal-bg);
  border: 1px solid var(--dust-grey);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s var(--transition-smooth);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--accent-light);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--granite);
  margin-bottom: 0.35rem;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

/* ── Forms ────────────────────────── */

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group .optional {
  text-transform: none;
  font-weight: 400;
  opacity: 0.6;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--input-focus);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23586F6B' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.15rem center;
  padding-right: 2.75rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

/* ── Checkbox / Terms ────────────── */

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.agree-all-group {
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--dust-grey);
}

/* Inquiry chat options */
.inquiry-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0;
  justify-content: center;
}

.inquiry-opt-btn {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.inquiry-opt-btn:hover {
  background: var(--accent);
  color: #fff;
}

.chat-bubble.system {
  align-self: center;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  max-width: 85%;
  text-align: center;
  margin: 0.35rem auto;
}

/* Inquiry threads on services page */
.inquiry-threads {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.inquiry-thread-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--dust-grey);
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.inquiry-thread-card:hover {
  border-color: var(--grey-olive);
  transform: translateY(-2px);
}

.inquiry-thread-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--granite);
  margin: 0 0 0.15rem;
}

.inquiry-thread-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Profile page */
.profile-setup-banner {
  max-width: 600px;
  margin: 0 auto 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  border: 1px solid rgba(127, 145, 131, 0.35);
  color: var(--text-primary);
}

.profile-setup-banner h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
  color: var(--accent-hover);
}

.profile-setup-banner p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.profile-setup-banner + .profile-form {
  margin-top: 0;
}

.profile-form--below-banner {
  padding-top: 0;
}

.profile-form {
  max-width: 600px;
  margin: 0 auto;
}

/* DOB — month / day / year dropdowns */
.profile-dob-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 420px;
  margin-top: 0.35rem;
  align-items: stretch;
}

.profile-dob-select {
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23586F6B' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  min-width: 0;
}

.profile-dob-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--input-focus);
}

.profile-dob-select--month {
  flex: 1.35 1 7.5rem;
}

.profile-dob-select--day {
  flex: 0.9 1 4.25rem;
  max-width: 5.75rem;
}

.profile-dob-select--year {
  flex: 1 1 5.25rem;
  min-width: 5.25rem;
}

.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--dust-grey);
  box-sizing: border-box;
}

/* Match nav `.user-avatar-text`: solid accent, white letters (scaled for 80px) */
.profile-avatar-large-text {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-sizing: border-box;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--dust-grey);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
  .profile-avatar-section { flex-direction: column; text-align: center; }
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--granite);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--dust-grey);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.input-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.avatar-upload-label {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.avatar-upload-label:hover {
  background: var(--granite);
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  cursor: pointer;
}

/* ── Terms / Policies Page ─────── */

.terms-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.terms-content h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--granite);
  margin-bottom: 1.75rem;
}

.terms-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--granite);
  margin: 2rem 0 0.85rem;
}

.terms-content p,
.terms-content li {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 0.85rem;
  font-size: 1rem;
}

.terms-content ul,
.terms-content ol {
  padding-left: 1.5rem;
}

/* ── About Page ──────────────────── */

.about-hero {
  text-align: center;
  padding: 4rem 2rem 3rem;
  background: linear-gradient(180deg, var(--dust-grey) 0%, var(--bg) 100%);
}

.about-hero .avatar {
  width: 140px;
  height: 140px;
  margin-bottom: 1.5rem;
}

.about-hero .avatar-initials {
  font-size: 3rem;
}

.about-hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--granite);
  margin-bottom: 0.5rem;
}

.about-hero .tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 1px;
}

.about-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.about-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--granite);
  margin-bottom: 1rem;
}

.about-body p {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.about-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.about-socials a {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--dust-grey);
  color: var(--text-secondary);
  transition: all 0.3s var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.about-socials a svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.about-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--shadow-md);
}

.about-cta {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border-top: 1px solid var(--dust-grey);
  border-bottom: 1px solid var(--dust-grey);
}

.about-cta h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--granite);
  margin-bottom: 0.75rem;
}

.about-cta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ── Chat ────────────────────────── */

.chat-container {
  max-width: 780px;
  margin: 0 auto;
  height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.chat-role-banner {
  padding: 0.5rem 1.75rem;
  background: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  border-bottom: 1px solid var(--dust-grey);
}

.chat-header {
  padding: 1.15rem 1.75rem;
  border-bottom: 1px solid var(--dust-grey);
  background: #fff;
}

.chat-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--granite);
}

.chat-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chat-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: min(92%, 520px);
}

.chat-msg-row.mine {
  align-self: flex-end;
}

.chat-msg-row.theirs {
  align-self: flex-start;
}

.chat-msg-row .chat-bubble {
  max-width: min(72ch, calc(100% - 44px));
  flex: 1;
  min-width: 0;
}

.chat-msg-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--dust-grey);
  box-sizing: border-box;
  background: var(--accent);
}

.chat-msg-avatar .chat-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-msg-avatar .chat-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}

.chat-msg-avatar--clickable {
  cursor: pointer;
}

.chat-msg-avatar--clickable:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(127, 145, 131, 0.25);
}

.chat-msg-avatar--clickable:focus {
  outline: none;
}

.chat-msg-avatar--clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Chat avatar → profile summary (modal) */
.chat-profile-peek-overlay {
  position: fixed;
  inset: 0;
  background: rgba(88, 111, 107, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.chat-profile-peek-overlay.active {
  opacity: 1;
  visibility: visible;
}

.chat-profile-peek {
  width: 100%;
  max-width: 420px;
  background: var(--modal-bg);
  border: 1px solid var(--dust-grey);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s var(--transition-smooth);
}

.chat-profile-peek-overlay.active .chat-profile-peek {
  transform: translateY(0) scale(1);
}

.chat-profile-peek-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.chat-profile-peek-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
}

.chat-profile-peek-inner {
  text-align: center;
}

.chat-profile-peek-loading {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.chat-profile-peek-error {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #b91c1c;
}

.chat-profile-peek-avatar-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--dust-grey);
  background: var(--accent);
}

.chat-profile-peek-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-profile-peek-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.chat-profile-peek-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--granite);
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.chat-profile-peek-legal {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.chat-profile-peek-role {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.chat-profile-peek-role--host {
  background: rgba(127, 145, 131, 0.2);
  color: var(--accent-hover);
}

.chat-profile-peek-role--member {
  background: rgba(55, 65, 81, 0.09);
  color: #4b5563;
}

.chat-profile-peek-meta {
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: minmax(6.75rem, max-content) 1fr;
  gap: 0.5rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  align-items: start;
}

.chat-profile-peek-meta:empty {
  display: none;
}

.chat-profile-peek-meta dt {
  margin: 0;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.35;
  padding-top: 0.15rem;
}

.chat-profile-peek-meta dd {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.45;
}

.chat-profile-peek-dd--wrap {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-profile-peek-dd--mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, Menlo, Monaco, 'Cascadia Code', monospace;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.chat-bubble {
  max-width: 72%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  animation: msg-in 0.3s var(--transition-smooth);
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-bubble.mine {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.theirs {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--dust-grey);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-bubble .sender-name {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 3px;
  opacity: 0.8;
}

.chat-bubble .msg-time {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 5px;
  text-align: right;
}

.chat-input-area {
  padding: 1.15rem 1.75rem;
  border-top: 1px solid var(--dust-grey);
  background: #fff;
  display: flex;
  gap: 0.6rem;
}

.chat-input-area input {
  flex: 1;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--dust-grey);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input-area input:focus {
  border-color: var(--accent);
}

.chat-input-area button {
  padding: 0.8rem 1.4rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-input-area button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ── Reviews ─────────────────────── */

.reviews-grid {
  display: grid;
  gap: 1.15rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--dust-grey);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--transition-smooth);
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.review-author {
  font-weight: 600;
  font-size: 0.95rem;
}

.review-stars {
  color: #f0a500;
  font-size: 1.05rem;
  letter-spacing: 1px;
}

.review-stars-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.review-stars-visual {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  color: #f0a500;
  font-size: 1.05rem;
  line-height: 0;
}

.review-star-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.15em;
  flex-shrink: 0;
}

.review-star-full,
.review-star-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.review-star-empty {
  color: var(--dust-grey);
}

.review-star-half {
  position: relative;
  display: grid;
  place-items: center;
  width: 1em;
  height: 1em;
}

.review-star-half-fill,
.review-star-half-bg {
  grid-area: 1 / 1;
  font-size: inherit;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
}

.review-star-half-bg {
  color: var(--dust-grey);
}

.review-star-half-fill {
  color: #f0a500;
  clip-path: inset(0 50% 0 0);
  z-index: 1;
}

.review-stars-numeric {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.review-admin-reply {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--accent-light);
  border-radius: 8px;
  border: 1px solid rgba(88, 111, 107, 0.18);
}

.review-admin-reply-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #586f6b;
  margin-bottom: 0.35rem;
}

.review-admin-reply p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Half-star picker (write review) — glyphs share one center; clip-path avoids staggered baselines */
.star-picker-nodes {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.12rem;
  flex-wrap: wrap;
  line-height: 0;
}

.star-picker-node {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 1.75rem;
}

.star-picker-glyph-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
}

.star-picker-star-base,
.star-picker-star-fill {
  grid-area: 1 / 1;
  font-size: 1.4rem;
  line-height: 1;
  width: 1em;
  height: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.star-picker-star-base {
  color: var(--dust-grey);
  z-index: 0;
}

.star-picker-star-fill {
  color: #f0a500;
  z-index: 1;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.12s ease;
}

.star-picker-node.fill-empty .star-picker-star-fill {
  clip-path: inset(0 100% 0 0);
}

.star-picker-node.fill-half .star-picker-star-fill {
  clip-path: inset(0 50% 0 0);
}

.star-picker-node.fill-full .star-picker-star-fill {
  clip-path: inset(0 0 0 0);
}

.star-picker-target {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.star-picker-target--left {
  left: 0;
}

.star-picker-target--right {
  right: 0;
}

.star-picker-target:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.review-body {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.review-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* ── Login Modal ─────────────────── */

.login-options {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.95rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--transition-smooth);
  text-decoration: none;
}

.btn-google {
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
}

.btn-google:hover {
  background: #f8f8f8;
  border-color: #bbb;
  color: #333;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ── PayPal Container ────────────── */

.payment-section {
  padding: 1.75rem;
  border: 1px solid var(--dust-grey);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-top: 1.25rem;
}

.payment-section h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--granite);
  margin-bottom: 1.15rem;
}

.payment-section .btn-full {
  margin-top: 0.25rem;
}

/* ── Confirmation ─────────────────── */

.confirmation {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.confirmation-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop-in {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.confirmation h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
  color: var(--granite);
}

.confirmation p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

/* ── Music Sub-options ───────────── */

.music-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin: 1.75rem 0;
}

.music-option-card {
  background: var(--bg-card);
  border: 1px solid var(--dust-grey);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  text-decoration: none;
  color: var(--text-primary);
}

.music-option-card:hover {
  border-color: var(--grey-olive);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

.music-option-card .opt-icon {
  font-size: 2.25rem;
  margin-bottom: 0.6rem;
}

.music-option-card .opt-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.music-option-card .opt-price {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

/* ── Tables (Admin) ──────────────── */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--dust-grey);
}

.data-table th {
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  background: var(--bg);
}

.data-table tr:hover td {
  background: var(--accent-light);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-pending { background: #fef3cd; color: #856404; }
.badge-confirmed { background: #d1ecf1; color: #0c5460; }
.badge-completed { background: #d4edda; color: #155724; }
.badge-cancelled { background: #f8d7da; color: #721c24; }
.badge-refunded { background: #e2e3e5; color: #383d41; }
.badge-unpaid { background: #fff3cd; color: #856404; }
.badge-paid { background: #d4edda; color: #155724; }

/* ── Stat Cards (Admin) ──────────── */

.dashboard-stats-layout {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

@media (min-width: 1024px) {
  .dashboard-stats-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    align-items: stretch;
    justify-items: stretch;
  }

  .dashboard-stats-layout > .dashboard-stats-primary,
  .dashboard-stats-layout > .stats-section--payments {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

.dashboard-stats-primary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--dust-grey);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  min-height: 100%;
}

.dashboard-stats-cluster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  align-content: start;
  align-items: stretch;
  justify-items: stretch;
}

.dashboard-stats-cluster > .stats-section,
.dashboard-stats-cluster .stat-grid--bookings,
.dashboard-stats-cluster .stat-grid--people {
  display: contents;
}

.dashboard-stats-cluster .stats-section-heading,
.dashboard-stats-cluster .stats-section-lead {
  grid-column: 1 / -1;
}

.dashboard-stats-cluster .stat-card--metrics-span-2 {
  grid-column: span 2;
}

.dashboard-stats-primary .stat-card--metric {
  box-sizing: border-box;
  min-height: 5.75rem;
  height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1rem 0.9rem;
}

.dashboard-stats-primary .stat-card--metric .stat-label {
  margin: 0;
  max-width: 100%;
  line-height: 1.2;
}

.dashboard-stats-primary .stat-card--metric .stat-value {
  margin: 0;
  line-height: 1;
}

.stats-section {
  margin: 0;
}

.stats-section-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--granite);
  margin: 0 0 0.2rem;
  letter-spacing: 0.02em;
}

.stats-heading-tag {
  display: inline-block;
  margin-left: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a6a50;
  background: #f5f0e6;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  vertical-align: middle;
}

.stats-section-lead {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 0.9rem;
  line-height: 1.45;
  max-width: 40rem;
}

.stats-section--payments {
  background: var(--bg-card);
  border: 1px solid var(--dust-grey);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.15rem;
  margin-bottom: 0;
}

.stat-grid--bookings {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .stat-grid--bookings {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-grid--people {
  grid-template-columns: repeat(2, 1fr);
}

.finance-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}

@media (min-width: 640px) {
  .finance-metrics {
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    align-items: stretch;
    gap: 0.85rem 1rem;
  }

  .finance-metric--gross {
    grid-column: 1;
    grid-row: 1;
  }

  .finance-metric-connector {
    grid-column: 2;
    grid-row: 1;
  }

  .finance-metric--net {
    grid-column: 3;
    grid-row: 1;
  }

  .finance-refund-cell {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
  }
}

.finance-metric {
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--dust-grey);
  position: relative;
}

.finance-metric--gross {
  background: linear-gradient(165deg, #faf9f6 0%, #f3f6f4 100%);
  border-color: #c5d4cf;
}

.finance-metric--net {
  background: linear-gradient(165deg, #fafaf8 0%, #eef2f0 100%);
  border-color: #b8c9c3;
}

.finance-metric-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5a6b66;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(88, 111, 107, 0.25);
}

.finance-metric-badge--net {
  color: #3d5a54;
  border-color: rgba(61, 90, 84, 0.3);
}

.finance-metric .stat-label {
  margin-right: 4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.finance-metric .stat-hint {
  margin: 0.25rem 0 0;
  max-width: 22rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  font-weight: 500;
}

.finance-metric-connector {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 0.25rem;
  min-width: 5.5rem;
}

@media (min-width: 640px) {
  .finance-metric-connector {
    display: flex;
  }
}

.finance-metric-connector-line {
  flex: 1;
  width: 1px;
  min-height: 1.25rem;
  background: linear-gradient(to bottom, transparent, var(--dust-grey), transparent);
}

.finance-metric-connector-label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  max-width: 4.5rem;
}

.stat-value--finance {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--granite);
  margin-top: 0.5rem;
}

.stat-value--sm {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--granite);
}

.finance-refund-cell {
  min-width: 0;
}

.finance-refund-card {
  height: 100%;
}

.stat-card--subtle {
  padding: 1rem 1.15rem;
  background: #faf9f7;
}

.stat-card--subtle:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.vat-callout {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
  padding: 0.85rem 1rem 0.9rem;
  background: var(--accent-light);
  border-radius: 8px;
  border: 1px solid rgba(88, 111, 107, 0.2);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.vat-callout-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.vat-callout-line {
  margin: 0;
  padding: 0;
  max-width: 42rem;
}

.vat-callout-line strong {
  color: var(--granite);
  font-weight: 600;
}

.vat-callout-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 0.12rem;
}

.dashboard-income-tax {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.dashboard-income-tax--full-width {
  grid-column: 1 / -1;
  margin-top: 0;
  padding: 1.35rem 1.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--dust-grey);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 1023px) {
  .dashboard-income-tax--full-width {
    padding: 1.15rem 1.25rem 1.35rem;
  }
}

.dashboard-income-tax[hidden] {
  display: none !important;
}

.dashboard-income-tax-block {
  background: #faf9f7;
  border: 1px solid #ebe7df;
  border-radius: 10px;
  padding: 1rem 1.15rem;
}

.dashboard-income-tax-block h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #586f6b;
  margin: 0 0 0.6rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #ece8e0;
}

.dashboard-income-tax-lead {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 0.65rem;
}

.dashboard-income-tax-table-wrap {
  overflow-x: auto;
  margin: 0;
}

.dashboard-income-tax-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.dashboard-income-tax-table th,
.dashboard-income-tax-table td {
  text-align: left;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid #ece8e0;
  vertical-align: top;
}

.dashboard-income-tax-table th {
  font-weight: 600;
  color: #586f6b;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-income-tax-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dashboard-income-tax-table tbody tr.muted td {
  color: var(--text-muted);
}

.dashboard-income-tax-kv {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  margin: 0;
}

.dashboard-income-tax-kv div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #ece8e0;
}

.dashboard-income-tax-kv div:last-child {
  border-bottom: none;
}

.dashboard-income-tax-kv dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
}

.dashboard-income-tax-kv dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--granite);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--dust-grey);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card .stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--granite);
  margin-top: 0.3rem;
}

.stat-card .stat-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0.35rem 0 0;
  font-weight: 500;
}

.chart-container .chart-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.35rem 0 1rem;
  font-weight: 500;
}

.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--dust-grey);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.chart-container h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--granite);
  margin-bottom: 1.15rem;
}

/* ── Scroll-reveal Animations ────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Stagger Animations ──────────── */

.link-card {
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 0.55s var(--transition-smooth) forwards;
}

.link-card:nth-child(1) { animation-delay: 0.06s; }
.link-card:nth-child(2) { animation-delay: 0.12s; }
.link-card:nth-child(3) { animation-delay: 0.18s; }
.link-card:nth-child(4) { animation-delay: 0.24s; }
.link-card:nth-child(5) { animation-delay: 0.30s; }
.link-card:nth-child(6) { animation-delay: 0.36s; }
.link-card:nth-child(7) { animation-delay: 0.42s; }
.link-card:nth-child(8) { animation-delay: 0.48s; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

.profile-section {
  opacity: 0;
  animation: fade-up 0.7s var(--transition-smooth) forwards;
}

.about-preview {
  opacity: 0;
  animation: fade-up 0.65s var(--transition-smooth) 0.15s forwards;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ── Responsive ───────────────────── */

/* Tablet / phone: nav stacks, horizontal scroll for many links, content top-aligned */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
  }

  .top-bar .logo {
    align-self: flex-start;
    max-width: 100%;
  }

  .top-bar .nav-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 0.15rem 0 0.35rem;
    margin: 0 -0.15rem;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
  }

  .top-bar .nav-links a,
  .top-bar .nav-links button {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .page-wrapper {
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 0;
    padding: 1.35rem 1rem 2rem;
  }

  .page-wrapper.top-aligned {
    padding-top: 1.35rem;
  }

  .container-full {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section,
  .slots-section {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .terms-content {
    padding: 2rem 1.15rem;
  }

  .about-body {
    padding: 2rem 1.15rem;
  }

  .about-preview {
    padding: 1.5rem 1.15rem;
  }

  .about-hero {
    padding: 2.75rem 1.15rem 2rem;
  }
}

@media (max-width: 639px) {
  .dashboard-stats-cluster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-stats-primary {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  .feature-list { grid-template-columns: 1fr; }
  .music-options { grid-template-columns: 1fr; }
  .dashboard-stats-layout { gap: 1.5rem; margin-bottom: 1.75rem; }
  .stats-section--payments { padding: 1.1rem 1.15rem 1.25rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .about-socials a { width: 44px; height: 44px; }
  .service-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .page-wrapper { padding: 1.75rem 1rem; }
  .profile-name { font-size: 2rem; }
  .modal { padding: 1.75rem; }
  .link-card { padding: 1rem 1.15rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .page-hero { padding: 2.5rem 1.25rem 2rem; }
  .dashboard-stats-cluster {
    grid-template-columns: 1fr;
  }

  .dashboard-stats-cluster .stat-card--metrics-span-2 {
    grid-column: auto;
  }

  .stat-grid { grid-template-columns: 1fr; }
  .top-bar { padding: 0.75rem 1rem; }
  .top-bar .nav-links a,
  .top-bar .nav-links button { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
}

/* ── Utility ─────────────────────── */

/* My Bookings */
.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.booking-card {
  background: var(--bg-card);
  border: 1px solid var(--dust-grey);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s;
}

.booking-card:hover {
  border-color: var(--grey-olive);
}

.booking-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.booking-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--granite);
  margin: 0;
}

.booking-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-confirmed { background: #dcfce7; color: #166534; }
.status-pending { background: #fef9c3; color: #854d0e; }
.status-completed { background: var(--accent-light); color: var(--accent); }
.status-cancelled { background: #fecaca; color: #991b1b; }

.booking-card-date {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.booking-card-pay {
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.booking-price {
  font-weight: 600;
  color: var(--granite);
}

.booking-card-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.booking-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.btn-danger {
  background: transparent;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger:hover {
  background: #fef2f2;
  border-color: #dc2626;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }

/* ── WhatsApp-style Chats ─────────── */

/* Full-height chats: nav is in normal flow (sticky), so do NOT add margin-top — that created a dead strip. */
html:has(body.chats-body) {
  height: 100%;
  overflow: hidden;
}

.chats-body {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
}

.chats-body > .top-bar {
  flex-shrink: 0;
}

.chats-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  background: var(--bg);
}

.chats-sidebar {
  width: 360px;
  min-width: 280px;
  background: #fff;
  border-right: 1px solid var(--silver);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.chats-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--silver);
}

.chats-sidebar-header h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 0;
  line-height: 1.15;
}

.chats-sidebar-header .btn-sm {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  min-width: 2.35rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 600;
}

.chats-sidebar-search {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.chats-sidebar-search input {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--silver);
  border-radius: 20px;
  font-size: 0.85rem;
  outline: none;
  background: var(--bg);
  transition: border-color 0.2s;
}

.chats-sidebar-search input:focus {
  border-color: var(--accent);
}

.chats-thread-list {
  flex: 1;
  overflow-y: auto;
}

.chats-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.thread-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.thread-item:hover { background: var(--bg); }

.thread-item.active {
  background: rgba(127, 145, 131, 0.12);
  border-left: 3px solid var(--accent);
}

.thread-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 50%;
}

.thread-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.thread-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.thread-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.thread-top-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.thread-archive-btn {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.thread-archive-btn:hover {
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.08);
}

.thread-bottom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.thread-preview {
  flex: 1;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-count {
  font-size: 0.7rem;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 0.1rem 0.45rem;
  font-weight: 600;
  flex-shrink: 0;
}

.thread-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.chats-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chats-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chats-placeholder-content {
  text-align: center;
  color: var(--text-muted);
}

.chats-placeholder-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.chats-active {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chats-msg-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--silver);
}

.chats-msg-titles {
  flex: 1;
  min-width: 0;
}

.chats-msg-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.chats-msg-header p {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.chats-msg-header .chats-back-btn {
  margin-top: 0.15rem;
}

.chats-msg-header .btn-danger.btn-sm {
  margin-top: 0.12rem;
  flex-shrink: 0;
  align-self: flex-start;
}

.chats-back-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 0.3rem;
  color: var(--text);
}

.chats-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: stretch;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(221,213,208,0.15) 100%);
}

.chat-bubble {
  max-width: min(72ch, 82%);
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
  position: relative;
}

.chat-bubble.mine {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.theirs {
  align-self: flex-start;
  background: #fff;
  color: var(--text);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.chat-bubble.system {
  align-self: center;
  background: rgba(127, 145, 131, 0.12);
  color: var(--text);
  text-align: center;
  font-size: 0.82rem;
  max-width: 80%;
  border-radius: 10px;
}

.sender-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.chat-bubble.mine .sender-name { color: rgba(255,255,255,0.7); }

.msg-time {
  font-size: 0.65rem;
  opacity: 0.6;
  text-align: right;
  margin-top: 0.15rem;
}

.chats-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border-top: 1px solid var(--silver);
}

.chats-input-area input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1px solid var(--silver);
  border-radius: 24px;
  outline: none;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.chats-input-area input:focus { border-color: var(--accent); }

.chats-input-area button {
  padding: 0.65rem 1.3rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.chats-input-area button:hover { background: var(--granite); }

.inquiry-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.5rem 0;
}

.inquiry-opt-btn {
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: 20px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.inquiry-opt-btn:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 768px) {
  .chats-sidebar {
    width: 100%;
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    height: auto;
  }
  .chats-sidebar.sidebar-hidden { display: none; }
  .chats-back-btn { display: block; }
  .chats-layout { position: relative; }
}

/* ── Scrollbar ────────────────────── */

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--silver); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ash-grey); }
