/* ============================================================
   MindBridge Nigeria — Phase 2 CSS
   Dashboard, Therapist System, Admin, Public Listing
   Append to style.css or include as separate file
============================================================ */

/* ============================================================
   DASHBOARD LAYOUT
============================================================ */
.dash-layout {
    display: flex;
    min-height: 100vh;
    padding-top: var(--nav-height);
    background: var(--surface);
}

/* ---- SIDEBAR ---- */
.dash-sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--white);
    border-right: 1px solid var(--border);
    height: calc(100vh - var(--nav-height));
    position: sticky;
    top: var(--nav-height);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 32px;
    scrollbar-width: thin;
}
.sidebar-logo {
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-role-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-faint);
}
.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}
.sidebar-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}
.sidebar-avatar img,
.sidebar-avatar span {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal);
    color: white;
    font-weight: 700;
    font-size: 1rem;
}
.sidebar-verified {
    position: absolute;
    bottom: -2px; right: -2px;
    width: 18px; height: 18px;
    background: var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    font-size: 0.65rem;
    color: white;
}
.sidebar-profile-info strong { display: block; font-size: 0.88rem; color: var(--ink); }

.sidebar-nav { padding: 12px 0; flex: 1; }
.sidebar-nav-group { margin-bottom: 8px; }
.nav-group-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-faint);
    padding: 8px 20px 4px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-mid);
    transition: all var(--transition);
    border-left: 3px solid transparent;
    position: relative;
}
.sidebar-link:hover {
    color: var(--teal);
    background: var(--teal-pale);
    border-left-color: var(--teal-light);
}
.sidebar-link.active {
    color: var(--teal);
    background: var(--teal-pale);
    border-left-color: var(--teal);
    font-weight: 600;
}
.sidebar-link-danger { color: var(--danger) !important; }
.sidebar-link-danger:hover { background: var(--danger-bg) !important; border-left-color: var(--danger) !important; }
.nav-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--teal);
    color: white;
}
.nav-badge-danger  { background: var(--danger); }
.nav-badge-warning { background: var(--warning); }

/* ---- MAIN CONTENT ---- */
.dash-main {
    flex: 1;
    padding: 32px 40px;
    min-width: 0;
    overflow-x: hidden;
}
.dash-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.dash-page-title { font-size: 1.8rem; margin-bottom: 4px; }
.dash-page-sub { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }
.topbar-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---- BANNERS ---- */
.banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}
.banner i { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.banner > div { flex: 1; }
.banner > div strong { display: block; margin-bottom: 4px; }
.banner > div p { margin: 0; font-size: 0.9rem; }
.banner-info    { background: var(--teal-pale); color: var(--teal-dark); border: 1px solid var(--teal-light); }
.banner-warning { background: var(--warning-bg); color: #92400e; border: 1px solid #fde68a; }
.banner-danger  { background: var(--danger-bg); color: #991b1b; border: 1px solid #fca5a5; }

.completion-bar {
    height: 6px;
    background: var(--border);
    border-radius: var(--radius-full);
    margin-top: 10px;
    overflow: hidden;
}
.completion-bar-sm {
    height: 4px;
    width: 200px;
    background: var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    align-self: center;
}
.completion-fill {
    height: 100%;
    background: var(--teal);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

/* ---- STAT CARDS ---- */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card-dash {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
}
.stat-card-dash:hover { box-shadow: var(--shadow-sm); border-color: var(--teal-light); }
.stat-card-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.stat-teal  { background: var(--teal-pale); color: var(--teal); }
.stat-green { background: var(--success-bg); color: var(--success); }
.stat-gold  { background: var(--gold-light); color: var(--gold); }
.stat-terra { background: var(--terra-light); color: var(--terracotta); }
.stat-card-info span { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 4px; }
.stat-card-info strong { font-size: 1.4rem; color: var(--ink); font-family: var(--font-display); }

/* ---- DASH CARDS ---- */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.dash-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.dash-card-wide { grid-column: 1 / -1; }
.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.dash-card-header h3 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
}
.dash-card-header h3 i { color: var(--teal); }

/* ---- SESSION LIST ---- */
.session-list { }
.session-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.session-row:last-child { border-bottom: none; }
.session-row:hover { background: var(--surface); }
.session-row-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}
.session-row-avatar img { width: 100%; height: 100%; object-fit: cover; }
.session-row-avatar span {
    width: 40px; height: 40px;
    background: var(--teal);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.session-row-info { flex: 1; }
.session-row-info strong { display: block; font-size: 0.92rem; color: var(--ink); }
.session-row-info span { font-size: 0.82rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.session-row-actions { display: flex; align-items: center; gap: 8px; }

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
}
.tag-video { background: var(--teal-pale); color: var(--teal-dark); }
.tag-chat  { background: var(--terra-light); color: var(--terracotta); }
.tag-call  { background: var(--gold-light); color: #92400e; }

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
}
.status-pending    { background: var(--warning-bg); color: var(--warning); }
.status-confirmed  { background: var(--teal-pale); color: var(--teal-dark); }
.status-completed  { background: var(--success-bg); color: var(--success); }
.status-cancelled  { background: #f3f4f6; color: var(--ink-soft); }
.status-in_progress { background: var(--gold-light); color: #92400e; }
.status-no_show    { background: var(--danger-bg); color: var(--danger); }
.status-verified   { background: var(--success-bg); color: var(--success); }
.status-rejected   { background: var(--danger-bg); color: var(--danger); }
.status-under_review { background: var(--gold-light); color: #92400e; }
.status-account-active    { background: var(--success-bg); color: var(--success); }
.status-account-inactive  { background: #f3f4f6; color: var(--ink-soft); }
.status-account-suspended { background: var(--danger-bg); color: var(--danger); }

/* ---- REVIEWS ---- */
.reviews-list { padding: 8px 24px; }
.review-mini { padding: 14px 0; border-bottom: 1px solid var(--border); }
.review-mini:last-child { border-bottom: none; }
.review-mini-top { display: flex; justify-content: space-between; margin-bottom: 6px; }
.review-stars { color: var(--gold); font-size: 0.95rem; }
.review-date  { font-size: 0.78rem; color: var(--ink-faint); }
.review-text  { font-size: 0.88rem; color: var(--ink-mid); font-style: italic; margin-bottom: 6px; }
.review-author { font-size: 0.8rem; color: var(--ink-faint); }

/* ---- MESSAGES ---- */
.messages-teaser { padding: 24px; }
.unread-badge-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: var(--teal-pale);
    border-radius: var(--radius-lg);
    text-align: center;
}
.unread-badge-large i { font-size: 2rem; color: var(--teal); }
.unread-badge-large strong { font-size: 1rem; color: var(--teal-dark); }

/* ---- EMPTY STATE ---- */
.empty-state {
    padding: 48px 24px;
    text-align: center;
    color: var(--ink-soft);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 12px; display: block; color: var(--ink-faint); }
.empty-state p { font-size: 0.9rem; }
.empty-state.small { padding: 24px; }

/* ---- EARNINGS SUMMARY ---- */
.earnings-summary-bar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.earnings-summary-item { display: flex; align-items: center; gap: 14px; }
.earnings-summary-item i { font-size: 1.4rem; color: var(--teal); }
.earnings-summary-item span { font-size: 0.8rem; color: var(--ink-soft); display: block; }
.earnings-summary-item strong { font-size: 1.2rem; color: var(--ink); display: block; }
.earnings-summary-bar .btn { margin-left: auto; }

/* ============================================================
   PROFILE EDITOR
============================================================ */
.profile-tabs {
    display: flex;
    gap: 4px;
    background: var(--surface);
    border-radius: var(--radius-full);
    padding: 4px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.profile-tab {
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all var(--transition);
    white-space: nowrap;
}
.profile-tab.active { background: var(--white); color: var(--teal); box-shadow: var(--shadow-sm); }
.profile-tab:hover:not(.active) { color: var(--ink); }

.profile-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
}
.profile-form { max-width: 680px; }
.section-intro { margin-bottom: 28px; }
.section-intro h3 { margin-bottom: 6px; }
.section-intro p { color: var(--ink-soft); margin: 0; }

.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-mid);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    resize: vertical;
    transition: all var(--transition);
    outline: none;
    background: var(--white);
}
.form-textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,123,116,0.12); }

.char-count { display: block; text-align: right; font-size: 0.78rem; color: var(--ink-faint); margin-top: 4px; }

.text-muted { color: var(--ink-soft); font-size: 0.85rem; }

/* Avatar section */
.profile-avatar-section { margin-bottom: 32px; }
.profile-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
}
.profile-avatar-wrap img,
.avatar-placeholder-lg {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--teal-light);
}
.avatar-placeholder-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-display);
}
.avatar-change-btn {
    position: absolute;
    bottom: 0; right: 0;
    width: 32px; height: 32px;
    background: var(--teal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid white;
    transition: background var(--transition);
}
.avatar-change-btn:hover { background: var(--teal-dark); }
.avatar-hint { font-size: 0.8rem; color: var(--ink-faint); }

/* Spec selector */
.spec-selector { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.spec-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1.5px solid var(--border-mid);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
}
.spec-checkbox input { display: none; }
.spec-check-icon { display: none; font-size: 0.85rem; }
.spec-checkbox.checked {
    background: var(--teal);
    border-color: var(--teal);
    color: white;
}
.spec-checkbox.checked .spec-check-icon { display: inline; }
.spec-checkbox:hover:not(.checked) { border-color: var(--teal); color: var(--teal); }

/* Fee Cards */
.fee-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; }
.fee-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
}
.fee-card:hover { border-color: var(--teal); }
.fee-card-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
}
.icon-teal  { background: var(--teal-pale); color: var(--teal); }
.icon-terra { background: var(--terra-light); color: var(--terracotta); }
.icon-gold  { background: var(--gold-light); color: var(--gold); }
.fee-card-body h4 { margin-bottom: 4px; font-size: 1rem; }
.fee-card-body p  { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0; }
.fee-payout { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }
.fee-payout strong { color: var(--success); }

/* Verification status box */
.verification-status-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    border: 1px solid;
}
.verification-status-box i { font-size: 1.5rem; flex-shrink: 0; }
.verification-status-box strong { display: block; margin-bottom: 4px; }
.verification-status-box p { font-size: 0.88rem; margin: 0; }
.status-pending      { background: var(--warning-bg); color: #92400e; border-color: #fde68a; }
.status-under_review { background: var(--gold-light); color: #92400e; border-color: #fde68a; }
.status-verified     { background: var(--success-bg); color: #166534; border-color: #86efac; }
.status-rejected     { background: var(--danger-bg); color: #991b1b; border-color: #fca5a5; }

/* File upload */
.file-upload-area {
    border: 2px dashed var(--border-mid);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--ink-soft);
}
.file-upload-area:hover, .file-upload-area.dragover { border-color: var(--teal); background: var(--teal-pale); color: var(--teal); }
.file-upload-area i { font-size: 2rem; display: block; margin-bottom: 8px; }
.file-upload-area p { font-size: 0.9rem; margin: 0; }
.file-input-hidden { display: none; }
.existing-file { display: flex; align-items: center; gap: 12px; justify-content: center; }
.existing-file i { color: var(--teal); font-size: 1.4rem; }
.file-name-preview { margin-top: 8px; font-size: 0.85rem; color: var(--teal); }

/* ============================================================
   SCHEDULE
============================================================ */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 0;
}
.big-toggle { position: relative; cursor: pointer; }
.big-toggle input { display: none; }
.big-toggle-track {
    display: block;
    width: 56px;
    height: 28px;
    background: var(--border-mid);
    border-radius: var(--radius-full);
    transition: background 0.3s;
    position: relative;
}
.big-toggle input:checked + .big-toggle-track { background: var(--teal); }
.big-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: left 0.3s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.big-toggle input:checked + .big-toggle-track .big-toggle-thumb { left: 31px; }

.slot-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}
.slot-row:last-child { border-bottom: none; }
.slot-day      { flex: 2; min-width: 0; margin-bottom: 0; }
.slot-time     { flex: 1; min-width: 0; margin-bottom: 0; }
.slot-duration { flex: 1; min-width: 0; margin-bottom: 0; }
.slot-remove {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
    border: 1.5px solid var(--danger-bg);
    transition: all var(--transition);
    flex-shrink: 0;
    margin-bottom: 0;
    align-self: flex-end;
}
.slot-remove:hover { background: var(--danger-bg); }
.schedule-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 24px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--ink-soft);
}
.schedule-info i { color: var(--teal); flex-shrink: 0; margin-top: 2px; }

/* Week Preview */
.week-preview { display: grid; grid-template-columns: repeat(7,1fr); gap: 8px; padding: 24px; }
.week-day { text-align: center; }
.week-day-name { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 8px; }
.week-day-off { font-size: 0.78rem; color: var(--ink-faint); padding: 8px 4px; background: var(--surface); border-radius: var(--radius); }
.week-day-slot {
    font-size: 0.72rem;
    background: var(--teal-pale);
    color: var(--teal-dark);
    border-radius: var(--radius);
    padding: 6px 4px;
    margin-bottom: 4px;
    line-height: 1.3;
}
.week-day-slot small { display: block; color: var(--teal); font-weight: 600; }

/* ============================================================
   ADMIN PAGES
============================================================ */
.filter-tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-soft);
    border: 1.5px solid var(--border);
    background: var(--white);
    transition: all var(--transition);
}
.filter-tab:hover { border-color: var(--teal); color: var(--teal); }
.filter-tab.active { background: var(--teal); border-color: var(--teal); color: white; }
.filter-count {
    background: rgba(255,255,255,0.3);
    padding: 1px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}
.filter-tab:not(.active) .filter-count { background: var(--surface); color: var(--ink-mid); }

.search-bar { display: flex; gap: 12px; margin-bottom: 20px; }

.admin-list { display: flex; flex-direction: column; gap: 16px; }
.admin-list-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.admin-list-card:hover { box-shadow: var(--shadow); }
.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    gap: 16px;
}
.admin-card-identity { display: flex; align-items: center; gap: 16px; }
.admin-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.admin-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-avatar span {
    width: 52px; height: 52px;
    background: var(--teal);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.admin-card-identity strong { display: block; color: var(--ink); }
.admin-card-identity span  { display: block; font-size: 0.82rem; color: var(--ink-soft); }
.admin-card-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-card-details {
    padding: 0 24px 20px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}
.detail-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px; }
.detail-item { }
.detail-label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 2px; }
.detail-bio { margin-bottom: 12px; }
.detail-bio p { font-size: 0.88rem; color: var(--ink-mid); margin-top: 4px; }
.detail-doc { }
.admin-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    flex-wrap: wrap;
}

/* ---- Modal ---- */
.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 36px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    position: relative;
}
.modal h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1.2rem; }
.modal p { color: var(--ink-soft); margin-bottom: 0; }
.modal-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* Result count / pagination */
.result-count { font-size: 0.85rem; color: var(--ink-soft); text-align: center; margin-top: 16px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.page-btn {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border-mid);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-mid);
    background: var(--white);
    transition: all var(--transition);
}
.page-btn:hover { border-color: var(--teal); color: var(--teal); }
.page-btn.active { background: var(--teal); border-color: var(--teal); color: white; }

/* ============================================================
   PUBLIC THERAPIST LISTING PAGE
============================================================ */
.therapists-page { padding-top: var(--nav-height); }
.therapists-header {
    background: linear-gradient(160deg, var(--teal-dark), var(--teal));
    padding: 60px 0 40px;
    color: white;
    text-align: center;
}
.therapists-header h1 { color: white; margin-bottom: 12px; }
.therapists-header p  { color: rgba(255,255,255,0.8); margin-bottom: 28px; }
.therapist-search-bar {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}
.therapist-search-bar .input-wrap input {
    background: rgba(255,255,255,0.95);
    border-color: transparent;
}

.therapists-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    padding: 40px 24px;
    align-items: start;
}

/* Sidebar filters */
.therapist-filters {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: calc(var(--nav-height) + 20px);
}
.filter-section { margin-bottom: 24px; }
.filter-section h4 { font-size: 0.85rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 12px; }
.filter-spec-list { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.filter-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--ink-mid);
}
.filter-radio input { display: none; }
.filter-radio:hover { background: var(--surface); color: var(--teal); }
.filter-radio.checked { background: var(--teal-pale); color: var(--teal); font-weight: 600; }
.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border-mid);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--ink);
    outline: none;
    transition: all var(--transition);
}
.filter-select:focus { border-color: var(--teal); }

/* Therapist Grid */
.therapist-results { min-width: 0; }
.results-meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px; }

.therapist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Therapist Card */
.therapist-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.therapist-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }

.tc-header { display: flex; gap: 14px; align-items: flex-start; }
.tc-avatar { position: relative; flex-shrink: 0; }
.tc-avatar img, .tc-avatar-placeholder {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
}
.tc-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--teal-light), var(--terra-light));
    color: var(--teal-dark);
    font-weight: 700;
    font-size: 1.3rem;
    font-family: var(--font-display);
}
.verified-badge {
    position: absolute;
    bottom: -2px; right: -2px;
    width: 20px; height: 20px;
    background: var(--teal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    border: 2px solid white;
}
.tc-identity { flex: 1; min-width: 0; }
.tc-identity h3 { font-size: 1rem; margin-bottom: 4px; }
.tc-tagline { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 6px; line-height: 1.4; }
.tc-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tc-rating { font-size: 0.82rem; color: var(--ink-soft); display: flex; align-items: center; gap: 3px; }
.tc-rating i { color: var(--gold); }
.tc-rating small { color: var(--ink-faint); }
.tc-new-badge { font-size: 0.72rem; font-weight: 700; background: var(--teal-pale); color: var(--teal); padding: 2px 8px; border-radius: var(--radius-full); }
.tc-exp { font-size: 0.78rem; color: var(--ink-faint); }

.tc-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-spec-tag { font-size: 0.75rem; padding: 3px 10px; background: var(--surface); border-radius: var(--radius-full); color: var(--ink-mid); border: 1px solid var(--border); }
.tc-spec-more { font-size: 0.75rem; padding: 3px 10px; color: var(--ink-faint); }

.tc-session-types { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-type { display: flex; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--ink-soft); background: var(--surface); padding: 3px 10px; border-radius: var(--radius-full); }
.tc-type i { color: var(--teal); }

.tc-languages { font-size: 0.8rem; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.tc-languages i { color: var(--teal); }

.tc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.tc-price { font-size: 0.85rem; color: var(--ink-soft); }
.tc-price strong { font-size: 1.1rem; color: var(--ink); font-family: var(--font-display); }
.tc-price span { font-size: 0.78rem; }

/* ============================================================
   RESPONSIVE — PHASE 2
============================================================ */
@media (max-width: 1100px) {
    .stat-cards { grid-template-columns: repeat(2,1fr); }
    .detail-grid { grid-template-columns: repeat(2,1fr); }
    .fee-cards   { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .dash-sidebar { display: none; }
    .dash-main { padding: 24px 20px; }
    .therapists-layout { grid-template-columns: 1fr; }
    .therapist-filters { position: static; }
    .week-preview { grid-template-columns: repeat(4,1fr); }
    .dash-grid { grid-template-columns: 1fr; }
    .dash-card-wide { grid-column: auto; }
}
@media (max-width: 640px) {
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .profile-tabs { flex-direction: column; border-radius: var(--radius-lg); }
    .profile-tab { justify-content: flex-start; border-radius: var(--radius); }
    .profile-section { padding: 20px; }
    .slot-row { flex-wrap: wrap; }
}
