/* HypnotherapistFinder - Clean, calm design */
:root {
    --bg: #0f0f12;
    --surface: #1a1a20;
    --surface2: #24242c;
    --text: #e8e6e3;
    --text-muted: #9a9690;
    --accent: #7c9cbf;
    --accent-hover: #9bb5d4;
    --certified: #6b9b6b;
    --star: #e4b84a;
    --radius: 12px;
    --font-sans: 'Outfit', system-ui, sans-serif;
    --font-serif: 'Literata', Georgia, serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 2rem 0 3rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--surface2);
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.site-header nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.site-header nav a:hover {
    color: var(--accent);
    background: var(--surface2);
}

/* Hero / Search section */
.hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.hero p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
}

/* Search form */
.search-card {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 2rem;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input[type="text"],
.form-group select {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--surface2);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}

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

.form-group.checkbox {
    flex-direction: row;
    align-items: center;
}

.form-group.checkbox input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--accent);
}

.form-group.checkbox label {
    margin: 0;
}

.btn {
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

a.btn {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Results */
.results-header {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.therapist-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.therapist-card {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.therapist-card-photo {
    flex-shrink: 0;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--surface2);
}

.therapist-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    display: block;
    vertical-align: middle;
}

.therapist-card-inner {
    flex: 1;
    min-width: 0;
}

.therapist-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.therapist-card h2 a {
    color: var(--text);
    text-decoration: none;
}

.therapist-card h2 a:hover {
    color: var(--accent);
}

.location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
}

.badge-type {
    background: var(--surface2);
    color: var(--text-muted);
}

.badge-certified {
    background: rgba(107, 155, 107, 0.25);
    color: var(--certified);
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--star);
    font-size: 0.9rem;
    white-space: nowrap;
}

.rating-num {
    color: var(--text-muted);
    font-weight: 500;
}

/* Profile page */
.profile-header {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.profile-header-top {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.avg-rating-top {
    flex-shrink: 0;
}

.therapist-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
    border: 1px solid var(--surface2);
}

.profile-header-info {
    flex: 1;
    min-width: 0;
}

.profile-header h1 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    margin: 0 0 0.75rem;
}

.profile-location {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-bio {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--surface2);
}

.profile-bio h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text-muted);
}

.profile-bio p {
    margin: 0;
    color: var(--text);
    max-width: 65ch;
}

/* Reviews section */
.reviews-section {
    margin-top: 2rem;
}

.reviews-section h2 {
    font-size: 1.2rem;
    margin: 0 0 1rem;
}

.review-form-card {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-form-card h3 {
    font-size: 1rem;
    margin: 0 0 1rem;
    color: var(--text-muted);
}

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

.review-form .form-group:last-of-type {
    margin-bottom: 0.75rem;
}

.review-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.review-form input[type="text"],
.review-form select,
.review-form textarea {
    width: 100%;
    max-width: 400px;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--surface2);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}

.review-form textarea {
    resize: vertical;
    min-height: 70px;
}

.review-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.review-item-content {
    flex: 1;
    min-width: 0;
}

.review-item-delete {
    flex-shrink: 0;
}

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

.review-author {
    font-weight: 600;
    color: var(--text);
}

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

.review-rating {
    color: var(--star);
    font-size: 0.9rem;
}

.review-comment {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.avg-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.avg-rating .stars {
    color: var(--star);
}

.avg-rating .count {
    color: var(--text-muted);
}

/* Back link */
.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--accent);
}

/* No results */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

/* Auth pages (login, signup, forgot password) */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 2rem;
}

.auth-card h1 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin: 0 0 0.25rem;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form .form-group {
    margin: 0;
}

.btn-block {
    width: 100%;
    margin-top: 0.25rem;
}

.auth-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.auth-error {
    background: rgba(180, 80, 80, 0.2);
    color: #e8a0a0;
}

.auth-success {
    background: rgba(107, 155, 107, 0.2);
    color: #a8d4a8;
}

.auth-success a,
.auth-error a,
.reset-link {
    color: var(--accent);
}

.auth-footer {
    margin: 1.25rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-page {
    max-width: 900px;
}

.dashboard-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.dashboard-card {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.dashboard-card h2 {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    color: var(--text-muted);
}

.dashboard-card h3 {
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
    color: var(--text-muted);
}

.profile-display {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.dashboard-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid var(--surface2);
}

.dashboard-photo-placeholder {
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.profile-display-info {
    min-width: 0;
}

.profile-name {
    font-weight: 600;
    margin: 0 0 0.25rem;
}

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

.profile-role {
    font-size: 0.85rem;
    color: var(--accent);
    margin: 0 0 0.25rem;
}

.profile-location-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 0.35rem;
}

.profile-display-info .badge {
    margin-right: 0.35rem;
}

.profile-bio-display {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--surface2);
}

.profile-bio-display p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dashboard-profile-link {
    margin: 1rem 0 0;
    font-size: 0.9rem;
}

.dashboard-profile-link a {
    color: var(--accent);
    text-decoration: none;
}

.dashboard-profile-link a:hover {
    text-decoration: underline;
}

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

.dashboard-form .form-group:last-of-type {
    margin-bottom: 0;
}

.dashboard-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.dashboard-form input[type="text"],
.dashboard-form input[type="url"],
.dashboard-form select,
.dashboard-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--surface2);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}

.dashboard-form textarea {
    resize: vertical;
    min-height: 80px;
}

.dashboard-form .btn-primary {
    margin-top: 0.75rem;
}

.dashboard-form .form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.dashboard-form input[type="file"] {
    padding: 0.4rem 0;
}

.dashboard-hr {
    border: none;
    border-top: 1px solid var(--surface2);
    margin: 1.5rem 0 1rem;
}

.dashboard-section-title {
    margin-bottom: 0.75rem !important;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input {
    flex-shrink: 0;
    accent-color: var(--accent);
}

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

/* Footer */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--surface2);
    padding: 1.25rem 0;
    margin-top: auto;
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .search-form {
        grid-template-columns: 1fr;
    }
    .therapist-card {
        flex-direction: row;
        align-items: center;
    }
    .therapist-thumb {
        width: 56px;
        height: 56px;
    }
    .profile-header-row {
        flex-direction: column;
    }
    .profile-header-top {
        flex-direction: column;
        gap: 1.25rem;
    }
    .therapist-photo {
        width: 120px;
        height: 120px;
    }
}

/* Admin */
.admin-header .logo {
    font-size: 1.1rem;
}

.admin-content {
    padding: 1.5rem 0 2rem;
}

.admin-content .container {
    max-width: 100%;
}

.admin-page-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin: 0 0 1.25rem;
}

.admin-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    min-width: 120px;
    text-align: center;
}

.admin-stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
}

.admin-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

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

.admin-card {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    min-width: 0;
    overflow: hidden;
}

.admin-card h2 {
    font-size: 1rem;
    margin: 0 0 1rem;
    color: var(--text-muted);
}

/* Admin edit user page */
.admin-edit-user {
    max-width: 720px;
}

.admin-edit-user-header {
    margin-bottom: 1.5rem;
}

.admin-edit-user-header .admin-back-link {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.admin-edit-user-header .admin-page-title {
    margin-bottom: 0.5rem;
}

.admin-edit-user-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.admin-edit-user-name {
    font-weight: 600;
    color: var(--text);
}

.admin-edit-user-id {
    font-size: 0.85rem;
    opacity: 0.85;
}

.admin-edit-user-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.admin-edit-section {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.admin-edit-section:last-of-type {
    margin-bottom: 0;
}

.admin-edit-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--surface2);
}

.admin-edit-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-edit-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .admin-edit-fields-row {
        grid-template-columns: 1fr;
    }
}

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

.admin-edit-section .form-group:last-child {
    margin-bottom: 0;
}

.admin-edit-section input[type="text"],
.admin-edit-section input[type="email"],
.admin-edit-section input[type="url"],
.admin-edit-section input[type="password"],
.admin-edit-section select,
.admin-edit-section textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--surface2);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}

.admin-edit-section input:focus,
.admin-edit-section select:focus,
.admin-edit-section textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.admin-edit-section textarea {
    resize: vertical;
    min-height: 80px;
}

.admin-edit-section .checkbox-group {
    margin-top: 0.35rem;
}

.admin-edit-photo-block {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.admin-edit-photo-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.admin-edit-photo-current {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-edit-photo-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--surface2);
}

.admin-edit-delete-photo {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.admin-edit-photo-none {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.admin-edit-photo-upload input[type="file"] {
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.admin-edit-photo-upload .form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.checkbox-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem 1rem;
}

.admin-edit-form-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--surface2);
}

.admin-edit-form-actions .btn-primary {
    margin: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--surface2);
}

.admin-table th {
    color: var(--text-muted);
    font-weight: 600;
}

.admin-sortable {
    white-space: nowrap;
}

.admin-sort-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
}

.admin-sort-link:hover {
    color: var(--accent);
}

.admin-table .admin-cell-comment {
    max-width: 200px;
}

.admin-therapist-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
}

.admin-therapist-link:hover {
    text-decoration: underline;
}

.admin-therapist-link .admin-thumb {
    flex-shrink: 0;
}

.admin-user-photo {
    width: 44px;
    padding: 0.35rem !important;
}

.admin-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    border: 1px solid var(--surface2);
}

.admin-thumb-placeholder {
    background: var(--surface2);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 40px;
}

.admin-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

.admin-link:hover {
    text-decoration: underline;
}

.admin-toolbar {
    margin-bottom: 1rem;
}

.admin-filter select {
    padding: 0.4rem 0.6rem;
    background: var(--surface2);
    border: 1px solid var(--surface2);
    border-radius: 6px;
    color: var(--text);
    font-family: inherit;
}

.badge-admin {
    background: rgba(180, 100, 80, 0.3);
    color: #e8b090;
}

.badge-moderator {
    background: rgba(140, 120, 180, 0.3);
    color: #c0b0e0;
}

.admin-inline-form {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-role-select {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    background: var(--bg);
    border: 1px solid var(--surface2);
    border-radius: 6px;
    color: var(--text);
}

.btn-small {
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
}

.btn-danger {
    background: rgba(180, 80, 80, 0.6);
    color: #fff;
}

.btn-danger:hover {
    background: rgba(200, 90, 90, 0.8);
}

/* ========== Mobile-friendly (all pages) ========== */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .logo {
        font-size: 1.15rem;
    }

    .site-header nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        justify-content: flex-end;
    }

    .site-header nav a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 0.75rem;
    }

    .main-content {
        padding: 1.25rem 0 2rem;
    }

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

    .hero {
        margin-bottom: 1.5rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .search-card {
        padding: 1.25rem;
    }

    .form-group input[type="text"],
    .form-group select,
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group input[type="file"],
    .dashboard-form input[type="text"],
    .dashboard-form input[type="url"],
    .dashboard-form select,
    .dashboard-form textarea {
        min-height: 44px;
    }

    .btn,
    .btn-primary,
    .btn-small {
        min-height: 44px;
        padding: 0.6rem 1rem;
    }

    .btn-small {
        min-height: 38px;
        padding: 0.4rem 0.75rem;
    }

    .profile-header {
        padding: 1.25rem;
    }

    .profile-header h1 {
        font-size: 1.4rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .auth-card h1 {
        font-size: 1.35rem;
    }

    .auth-page {
        min-height: calc(100vh - 100px);
        padding: 1rem 0;
    }

    .dashboard-title {
        font-size: 1.35rem;
    }

    .dashboard-card {
        padding: 1.25rem;
    }

    .back-link {
        display: inline-block;
        padding: 0.5rem 0;
        margin-bottom: 0.5rem;
    }

    .review-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .review-item-delete {
        align-self: flex-end;
    }

    .admin-header .logo {
        font-size: 1rem;
    }

    .admin-content {
        padding: 1rem 0 1.5rem;
    }

    .admin-page-title {
        font-size: 1.2rem;
    }

    .admin-stat-card {
        min-width: 0;
        flex: 1 1 100px;
    }

    .admin-card {
        padding: 1rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }

    .search-form {
        grid-template-columns: 1fr;
    }
    .therapist-card {
        flex-direction: row;
        align-items: center;
        padding: 1rem;
    }
    .therapist-thumb {
        width: 56px;
        height: 56px;
    }
    .profile-header-row {
        flex-direction: column;
    }
    .profile-header-top {
        flex-direction: column;
        gap: 1.25rem;
    }
    .therapist-photo {
        width: 120px;
        height: 120px;
    }

    .therapist-card h2 {
        font-size: 1.05rem;
    }

    .results-header,
    .results-footer {
        font-size: 0.9rem;
    }

    .review-form input[type="text"],
    .review-form select,
    .review-form textarea {
        max-width: none;
    }
}

/* Admin table horizontal scroll on small screens */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.25rem;
    max-width: 100%;
}

.admin-card .table-scroll {
    margin: 0;
}

.admin-table {
    min-width: 600px;
}

@media (max-width: 480px) {
    .site-header .container {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .site-header nav a {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }

    .no-results {
        padding: 2rem 0.75rem;
    }

    .admin-inline-form {
        flex-wrap: wrap;
    }

    .admin-role-select {
        min-width: 0;
    }
}
