/* ============================================================
   THERA — Therapist Profile & Booking Page
   ============================================================ */

body.therapist-page {
  background: var(--neutral-50);
}

/* ═══════════════════════════════════════
   LAYOUT
═══════════════════════════════════════ */
.therapist-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  align-items: start;
}

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

  .booking-col {
    order: -1;
  }
}

@media (max-width: 480px) {
  .therapist-layout {
    padding: 1rem;
    gap: 1rem;
  }
}


/* ═══════════════════════════════════════
   PROFILE SECTIONS
═══════════════════════════════════════ */
.therapist-profile-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-section {
  background: #fff;
  border: 1.5px solid var(--neutral-100);
  border-radius: 20px;
  padding: 1.75rem;
  animation: fadeSlideUp 0.5s var(--ease-out-quart) both;
}

.profile-section:nth-child(1) {
  animation-delay: 0.0s;
}

.profile-section:nth-child(2) {
  animation-delay: 0.08s;
}

.profile-section:nth-child(3) {
  animation-delay: 0.14s;
}

.profile-section:nth-child(4) {
  animation-delay: 0.20s;
}

.profile-section-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 1rem;
}


/* ── Hero Card ── */
.profile-hero {
  background: #fff;
  border: 1.5px solid var(--neutral-100);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  animation: fadeSlideUp 0.5s var(--ease-out-quart) both;
}

@media (max-width: 480px) {
  .profile-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Avatar */
.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: rgba(100, 60, 30, 0.85);
  border: 3px solid var(--teal-100);
}

.online-dot {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 16px;
  height: 16px;
  background: var(--success-green);
  border: 2.5px solid #fff;
  border-radius: 50%;
}

/* Profile info */
.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.profile-name {
  font-family: 'Fraunces', serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--neutral-900);
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--teal-700);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  flex-shrink: 0;
  white-space: nowrap;
}

.verified-badge i {
  color: var(--teal-500);
}

.profile-title {
  font-size: 0.9rem;
  color: var(--neutral-500);
  margin-bottom: 12px;
}

.profile-meta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--neutral-600, var(--neutral-500));
  font-weight: 500;
}

.profile-meta-item i {
  color: var(--teal-400);
}

.profile-meta-item i.star {
  color: #f0a844;
}

.review-count {
  color: var(--neutral-400, var(--neutral-300));
  font-weight: 400;
  margin-left: -2px;
}


/* ── Spec Tags ── */
.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-tag {
  background: var(--teal-50);
  border: 1.5px solid var(--teal-100);
  color: var(--teal-700);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-spring);
  cursor: default;
}

.spec-tag:hover {
  background: var(--teal-100);
  border-color: var(--teal-300);
  transform: translateY(-1px);
}


/* ── About ── */
.about-text p {
  font-size: 0.9rem;
  color: var(--neutral-600, var(--neutral-500));
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}


/* ── Privacy ── */
.privacy-guarantee {
  background: var(--teal-50);
  border: 1.5px solid var(--teal-100);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  animation: fadeSlideUp 0.5s 0.18s var(--ease-out-quart) both;
}

.privacy-icon {
  width: 44px;
  height: 44px;
  background: var(--teal-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.privacy-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--teal-700);
  margin-bottom: 4px;
}

.privacy-desc {
  font-size: 0.83rem;
  color: var(--teal-600);
  line-height: 1.55;
}


/* ── Reviews ── */
.reviews-section {
  animation-delay: 0.24s;
}

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

.view-all-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-500);
  cursor: pointer;
  transition: color 0.2s, gap 0.2s var(--ease-spring);
}

.view-all-btn:hover {
  color: var(--teal-700);
  gap: 8px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.review-card {
  background: var(--neutral-50);
  border: 1.5px solid var(--neutral-100);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-spring);
}

.review-card:hover {
  border-color: var(--teal-200, var(--teal-300));
  box-shadow: 0 4px 14px rgba(61, 175, 200, 0.1);
  transform: translateY(-2px);
}

.review-stars {
  display: flex;
  gap: 3px;
  color: #f0a844;
  font-size: 0.85rem;
  margin-bottom: 9px;
}

.review-text {
  font-size: 0.85rem;
  color: var(--neutral-700);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 10px;
}

.review-author {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-600);
}


/* ═══════════════════════════════════════
   BOOKING WIDGET
═══════════════════════════════════════ */
.booking-col {
  position: sticky;
  top: 80px;
  animation: fadeSlideUp 0.5s 0.1s var(--ease-out-quart) both;
}

.booking-widget {
  background: #fff;
  border: 1.5px solid var(--neutral-100);
  border-radius: 22px;
  padding: 1.75rem;
  box-shadow: 0 12px 40px rgba(30, 80, 100, 0.1);
}

.booking-widget-header {
  margin-bottom: 1.5rem;
}

.booking-title {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 6px;
}

.booking-avail {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.83rem;
  color: var(--neutral-500);
  font-weight: 500;
}

.avail-dot {
  width: 8px;
  height: 8px;
  background: var(--success-green);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Booking group */
.booking-group {
  margin-bottom: 1.4rem;
}

.booking-group-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--neutral-500);
  margin-bottom: 10px;
}

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

.booking-group-header .booking-group-label {
  margin-bottom: 0;
}

/* Session type toggle */
.session-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stt-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  border-radius: 14px;
  background: var(--neutral-50);
  border: 2px solid var(--neutral-100);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-spring), box-shadow 0.2s;
}

.stt-btn i {
  font-size: 1.3rem;
  color: var(--neutral-400, var(--neutral-300));
  margin-bottom: 2px;
  transition: color 0.2s;
}

.stt-btn span:not(.stt-sub) {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--neutral-700);
  transition: color 0.2s;
}

.stt-sub {
  font-size: 0.73rem;
  color: var(--neutral-400, var(--neutral-300));
  font-weight: 400;
  transition: color 0.2s;
}

.stt-btn:hover {
  border-color: var(--teal-300);
  background: var(--teal-50);
  transform: translateY(-1px);
}

.stt-btn.active {
  border-color: var(--teal-500);
  background: var(--teal-50);
  box-shadow: 0 0 0 3px rgba(61, 175, 200, 0.15);
}

.stt-btn.active i {
  color: var(--teal-500);
}

.stt-btn.active span:not(.stt-sub) {
  color: var(--teal-700);
}

.stt-btn.active .stt-sub {
  color: var(--teal-500);
}

/* Month nav */
.month-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.month-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--neutral-50);
  border: 1.5px solid var(--neutral-100);
  color: var(--neutral-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.month-nav-btn:hover {
  background: var(--teal-50);
  color: var(--teal-500);
  border-color: var(--teal-100);
}

.month-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--neutral-700);
  white-space: nowrap;
}

/* Date strip */
.date-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.date-strip::-webkit-scrollbar {
  display: none;
}

.date-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--neutral-50);
  border: 2px solid var(--neutral-100);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-spring);
}

.date-chip:hover {
  border-color: var(--teal-300);
  background: var(--teal-50);
  transform: translateY(-1px);
}

.date-chip.active {
  border-color: var(--teal-500);
  background: linear-gradient(135deg, var(--teal-500), var(--sky-400));
}

.date-chip.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.date-day {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neutral-400, var(--neutral-300));
  transition: color 0.2s;
}

.date-num {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--neutral-700);
  line-height: 1;
  transition: color 0.2s;
}

.date-chip.active .date-day {
  color: rgba(255, 255, 255, 0.75);
}

.date-chip.active .date-num {
  color: #fff;
}

/* Time grid */
.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.time-slot {
  padding: 10px 6px;
  border-radius: 11px;
  background: var(--neutral-50);
  border: 1.5px solid var(--neutral-100);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--neutral-700);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-spring), box-shadow 0.2s;
}

.time-slot:hover {
  border-color: var(--teal-300);
  background: var(--teal-50);
  color: var(--teal-700);
  transform: translateY(-1px);
}

.time-slot.active {
  border-color: var(--teal-500);
  background: linear-gradient(135deg, var(--teal-500), var(--sky-400));
  color: #fff;
  box-shadow: 0 4px 14px rgba(61, 175, 200, 0.32);
}

.time-slot.booked {
  background: var(--neutral-100);
  color: var(--neutral-300);
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: line-through;
}

/* Fee */
.fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  margin-bottom: 1rem;
  border-top: 1px solid var(--neutral-100);
  border-bottom: 1px solid var(--neutral-100);
}

.fee-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--neutral-400, var(--neutral-300));
  margin-bottom: 4px;
}

.fee-amount-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.fee-amount {
  font-family: 'Fraunces', serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--neutral-900);
  letter-spacing: -0.5px;
}

.fee-per {
  font-size: 0.78rem;
  color: var(--neutral-400, var(--neutral-300));
}

.fee-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.fee-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #e8f8f0;
  color: #2c9e5e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
}

/* Confirm button */
.btn-confirm {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-500), var(--sky-400));
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 22px rgba(61, 175, 200, 0.38);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s, opacity 0.2s;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.btn-confirm::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-confirm:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(61, 175, 200, 0.48);
}

.btn-confirm:hover::after {
  opacity: 1;
}

.btn-confirm:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-confirm:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-confirm.loading .btn-label {
  opacity: 0.6;
}

.btn-confirm.loading .btn-spinner {
  display: inline-flex !important;
}

.booking-terms {
  text-align: center;
  font-size: 0.77rem;
  color: var(--neutral-400, var(--neutral-300));
  line-height: 1.55;
}

.booking-terms a {
  color: var(--teal-500);
  text-decoration: none;
}

.booking-terms a:hover {
  text-decoration: underline;
}


/* ═══════════════════════════════════════
   BOOKING CONFIRM MODAL
═══════════════════════════════════════ */
.booking-confirm-card {
  max-width: 420px;
  text-align: center;
}

.bc-success-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--teal-500), var(--sky-400));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin: 0 auto 1.2rem;
  box-shadow: 0 8px 28px rgba(61, 175, 200, 0.4);
  animation: successPop 0.6s var(--ease-spring) both;
}

@keyframes successPop {
  from {
    transform: scale(0) rotate(-30deg);
    opacity: 0;
  }

  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

.bc-title {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 6px;
}

.bc-sub {
  font-size: 0.9rem;
  color: var(--neutral-500);
  margin-bottom: 1.5rem;
}

.bc-detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--neutral-50);
  border-radius: 11px;
  margin-bottom: 8px;
  text-align: left;
}

.bc-detail-row i {
  color: var(--teal-500);
  font-size: 1rem;
  flex-shrink: 0;
}

.bc-detail-row span {
  font-size: 0.88rem;
  color: var(--neutral-700);
  font-weight: 500;
}

.bc-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 1.25rem;
}

.bc-confirm {
  margin-bottom: 0;
}

.bc-close-btn {
  background: none;
  border: 1.5px solid var(--neutral-100);
  border-radius: 12px;
  padding: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--neutral-500);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.bc-close-btn:hover {
  border-color: var(--neutral-300);
  color: var(--neutral-700);
  background: var(--neutral-50);
}


/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.therapist-footer {
  background: var(--neutral-900);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tf-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tf-tagline {
  font-size: 0.82rem;
  color: var(--neutral-500);
}

.tf-links {
  display: flex;
  gap: 20px;
  margin-top: 4px;
}

.tf-links a {
  font-size: 0.82rem;
  color: var(--neutral-500);
  text-decoration: none;
  transition: color 0.2s;
}

.tf-links a:hover {
  color: var(--teal-300);
}


/* ============================================================
   THERA — Therapist Shared Styles
   ============================================================ */

/* Mini nav */
.mini-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 56px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 252, 254, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--neutral-100);
}

.mini-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--teal-700);
  text-decoration: none;
}

.mini-nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--teal-500);
  text-decoration: none;
  transition: color 0.2s;
}

.mini-nav-link:hover {
  color: var(--teal-700);
  text-decoration: underline;
}

/* Apply page layout */
.therapist-apply-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 56px;
}

@media (max-width: 768px) {
  .therapist-apply-page {
    grid-template-columns: 1fr;
  }

  .therapist-left {
    display: none;
  }
}

.therapist-left {
  padding-top: 2rem;
}

.therapist-form-card {
  max-width: 520px;
}

/* Field row */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 500px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* Select */
.field-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237a8a99' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Textarea */
.field-textarea-wrap {
  align-items: flex-start;
}

.field-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: 'DM Sans', sans-serif;
  padding-left: 42px !important;
  line-height: 1.6;
}

/* Hints */
.field-hint {
  display: block;
  font-size: 0.77rem;
  color: var(--neutral-300);
  margin-top: 5px;
}

.field-optional {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--neutral-300);
}

/* Social section label */
.social-section-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0.25rem 0 0.75rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--neutral-100);
}

/* ── Review Card ── */
.review-card {
  background: var(--neutral-50);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.review-section {
  margin-bottom: 1rem;
}

.review-section:last-child {
  margin-bottom: 0;
}

.review-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal-500);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}

.review-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 5px;
}

.review-label {
  font-size: 0.8rem;
  color: var(--neutral-500);
  min-width: 110px;
  flex-shrink: 0;
}

.review-value {
  font-size: 0.85rem;
  color: var(--neutral-900);
  font-weight: 500;
  word-break: break-all;
}

.review-divider {
  height: 1px;
  background: var(--neutral-100);
  margin: 10px 0;
}

.review-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(61, 175, 200, 0.08);
  border: 1px solid rgba(61, 175, 200, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.83rem;
  color: var(--teal-700);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.review-notice i {
  color: var(--teal-500);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Dashboard ── */
.therapist-dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 56px);
  margin-top: 56px;
}

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

  .dashboard-sidebar {
    position: fixed;
    left: -280px;
    top: 56px;
    bottom: 0;
    z-index: 998;
    transition: left 0.3s var(--ease-out-quart);
    width: 260px;
  }

  .dashboard-sidebar.mobile-open {
    left: 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  }
}

.dashboard-sidebar {
  background: #fff;
  border-right: 1px solid var(--neutral-100);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  height: calc(100vh - 56px);
  overflow-y: auto;
  position: sticky;
  top: 56px;
}

.sidebar-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem 1.25rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.sidebar-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 3px solid var(--teal-100);
}

.sidebar-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-300), var(--sky-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.sidebar-name {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--neutral-900);
}

.sidebar-role {
  font-size: 0.8rem;
  color: var(--neutral-500);
  margin-top: 2px;
}

.sidebar-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  margin-top: 8px;
}

.sidebar-status .bi {
  font-size: 0.95em;
  line-height: 1;
  flex-shrink: 0;
}

.sidebar-status.pending {
  background: #fff7e6;
  color: #9a6b10;
}

.sidebar-status.approved {
  background: #e6faf2;
  color: #1a8a58;
}

.sidebar-status.rejected {
  background: #fdeaea;
  color: #a33;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--neutral-500);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}

.sidebar-nav-item i {
  font-size: 1rem;
}

.sidebar-nav-item:hover {
  background: var(--teal-50);
  color: var(--teal-600);
}

.sidebar-nav-item.active {
  background: var(--teal-100);
  color: var(--teal-700);
  font-weight: 600;
}

.sidebar-divider {
  height: 1px;
  background: var(--neutral-100);
  margin: 0.75rem 0;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--error-red);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background 0.2s;
}

.sidebar-logout:hover {
  background: #fdeaea;
}

/* Main content */
.dashboard-main {
  background: var(--neutral-50);
  padding: 2rem;
  overflow-y: auto;
}

.dashboard-section {
  display: none;
  animation: fadeSlideUp 0.4s var(--ease-out-quart) both;
}

.dashboard-section.active {
  display: block;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(14px)
  }

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

.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-title-group {}

.dash-title {
  font-family: 'Fraunces', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--neutral-900);
}

.dash-subtitle {
  font-size: 0.88rem;
  color: var(--neutral-500);
  margin-top: 3px;
}

/* Pending notice */
.pending-overlay {
  background: #fff8e1;
  border: 1px solid #f5d87a;
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.87rem;
  color: #7a5a10;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.pending-overlay i {
  color: #e6a800;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Profile card */
.profile-view-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--neutral-100);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(30, 80, 100, 0.05);
}

.profile-cover {
  height: 110px;
  background: linear-gradient(135deg, var(--teal-500), var(--sky-400));
}

.profile-body {
  padding: 0 2rem 2rem;
}

.profile-avatar-wrap {
  margin-top: -44px;
  margin-bottom: 0.75rem;
}

.profile-avatar,
.profile-avatar-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.profile-avatar {
  object-fit: cover;
  background: var(--teal-100);
}

.profile-avatar-placeholder {
  background: linear-gradient(135deg, var(--teal-300), var(--sky-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  font-weight: 700;
}

.profile-name {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--neutral-900);
}

.profile-title-text {
  font-size: 0.92rem;
  color: var(--teal-500);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.1rem;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--teal-700);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 99px;
}

.profile-bio {
  font-size: 0.9rem;
  color: var(--neutral-500);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-info-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neutral-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.profile-info-value {
  font-size: 0.9rem;
  color: var(--neutral-900);
  font-weight: 500;
}

.profile-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--neutral-50);
  border: 1px solid var(--neutral-100);
  color: var(--neutral-700);
  font-size: 0.83rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.profile-social-link:hover {
  background: var(--teal-50);
  border-color: var(--teal-300);
  color: var(--teal-700);
}

/* Edit card */
.edit-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--neutral-100);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(30, 80, 100, 0.05);
}

/* ── Schedule ── */
.schedule-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--neutral-100);
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(30, 80, 100, 0.05);
  margin-bottom: 1.5rem;
}

.schedule-legend {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  font-size: 0.83rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--neutral-500);
}

.legend-dot {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  flex-shrink: 0;
}

.legend-dot.available {
  background: var(--teal-500);
}

.legend-dot.unavailable {
  background: var(--neutral-100);
  border: 1px solid var(--neutral-300);
}

.schedule-grid-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 76px repeat(7, 1fr);
  gap: 4px;
  min-width: 560px;
}

.schedule-col-header {
  padding: 8px 4px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--neutral-500);
}

.schedule-col-header.today {
  color: var(--teal-600);
}

.schedule-time-label {
  padding: 0 6px;
  display: flex;
  align-items: center;
  font-size: 0.72rem;
  color: var(--neutral-300);
  white-space: nowrap;
}

.schedule-slot {
  aspect-ratio: 1.6/1;
  border-radius: 8px;
  background: var(--neutral-50);
  border: 1.5px solid var(--neutral-100);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s, transform 0.15s var(--ease-spring);
}

.schedule-slot:hover {
  border-color: var(--teal-300);
  transform: scale(1.04);
}

.schedule-slot.available {
  background: linear-gradient(135deg, var(--teal-500), var(--sky-400));
  border-color: var(--teal-400, var(--teal-500));
}

.schedule-slot.available:hover {
  filter: brightness(1.08);
}

/* Mobile menu btn */
.dash-mobile-menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px solid var(--neutral-100);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--neutral-700);
  cursor: pointer;
}

@media (max-width: 900px) {
  .dash-mobile-menu-btn {
    display: flex;
  }
}

/* Therapist login page */
.therapist-login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 56px;
}

@media (max-width: 768px) {
  .therapist-login-page {
    grid-template-columns: 1fr;
  }

  .therapist-login-left {
    display: none;
  }
}

.therapist-login-left {
  background: linear-gradient(145deg, #e8f6fb 0%, #d0edf5 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

/* Payment queue (therapist dashboard) */
.payment-queue-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.payment-queue-card {
  background: #fff;
  border: 1px solid var(--neutral-100);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.payment-queue-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.payment-queue-meta {
  font-size: 0.85rem;
  color: var(--neutral-500);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.payment-queue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.payment-queue-note {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--neutral-100);
  font-family: inherit;
  font-size: 0.88rem;
  resize: vertical;
}
.btn-payment-confirm {
  padding: 9px 16px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--teal-500), var(--sky-400));
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.btn-payment-reject {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--neutral-100);
  background: var(--neutral-50);
  color: var(--neutral-800);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.btn-payment-proof {
  padding: 9px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--teal-200, var(--neutral-100));
  background: #fff;
  color: var(--teal-600);
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}