/* ========================================
DASHBOARD — reuses the TutorConnect design
tokens defined in styles.css (colors, fonts).
This file only adds layout/components specific
to the authenticated student panel.
======================================== */

body.dashboard-body {
    background: var(--bg-light);
    min-height: 100vh;
}

.dashboard-shell {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
}

.dashboard-sidebar-version {
    margin: auto 0 0;
    padding: 16px 24px 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
}

.dashboard-sidebar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    padding: 0 24px 24px;
    text-decoration: none;
    font-size: 22px;
}

.dashboard-nav {
    list-style: none;
}

.dashboard-nav li a,
.dashboard-nav li button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    background: none;
    border: none;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.dashboard-nav li a:hover,
.dashboard-nav li button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.dashboard-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Container-fluid: full-bleed content region, applied to every dashboard
   page via the shared layout.html. An internal app should use available
   screen space, not cap line-length the way marketing copy does. */
.dashboard-main {
    flex: 1;
    width: 100%;
    padding: 32px 40px;
}

.dashboard-main--bare {
    padding: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
}

.dashboard-footer {
    padding: 16px 40px;
    text-align: center;
    background: var(--white);
    border-top: 1px solid #eee;
}

.dashboard-footer p {
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 500;
}

/* ========================================
TOPBAR — search + profile avatar dropdown
======================================== */

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 40px;
    background: var(--white);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

/* CSS-only sidebar toggle (checkbox hack) — same technique already used
   for .avatar-dropdown (:focus-within) and .duration-option inputs
   (position:absolute; opacity:0;) elsewhere in this file: no JS, works
   even if JS fails to load. The checkbox and .sidebar-backdrop are both
   direct children of .dashboard-shell, siblings of .dashboard-sidebar,
   so `~` can toggle both from one :checked state. The hamburger <label>
   lives inside the topbar (visually where it belongs) but still toggles
   the same checkbox via for/id — labels don't need to be DOM-adjacent
   to their control. */
.sidebar-toggle-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hamburger-btn {
    display: none;
    font-size: 22px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 4px 8px;
    flex-shrink: 0;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 199;
    cursor: pointer;
}

.dashboard-search {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-light);
    border-radius: 30px;
    padding: 4px 6px 4px 18px;
}

.dashboard-search input {
    flex: 1;
    border: none;
    background: none;
    padding: 8px 0;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

.dashboard-search input:focus {
    outline: none;
}

.dashboard-search button {
    border: none;
    background: var(--primary-color);
    color: var(--white);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
}

.icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 17px;
    flex-shrink: 0;
}

.icon-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.avatar-menu {
    position: relative;
    flex-shrink: 0;
}

.avatar-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.avatar-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.avatar-circle--photo {
    object-fit: cover;
    background: none;
}

.avatar-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 160px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    z-index: 10;
}

.avatar-menu:focus-within .avatar-dropdown {
    display: block;
}

.avatar-dropdown a,
.avatar-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--text-dark);
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.avatar-dropdown a:hover,
.avatar-dropdown button:hover {
    background: var(--bg-light);
}

.dashboard-main h1 {
    color: var(--primary-color);
    margin-bottom: 24px;
}

.dashboard-main section {
    margin-bottom: 32px;
}

.dashboard-main section h2 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.dashboard-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-top: 3px solid var(--secondary-color);
}

.stat-icon {
    font-size: 22px;
}

.stat-value {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 13px;
}

.dashboard-list {
    list-style: none;
}

.dashboard-list li {
    background: var(--white);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.messages {
    list-style: none;
    margin-bottom: 24px;
}

.messages li {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 500;
}

.messages li.success {
    background: rgba(76, 175, 80, 0.12);
    color: var(--success);
}

.messages li.error {
    background: rgba(244, 67, 54, 0.12);
    color: var(--error);
}

.messages li.warning {
    background: rgba(255, 111, 0, 0.12);
    color: var(--secondary-color);
}

.course-start-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 16px;
    background: rgba(255, 111, 0, 0.12);
    border-left: 4px solid var(--secondary-color);
}

.course-start-alert p {
    margin: 0;
    font-weight: 500;
    color: var(--secondary-color);
}

.course-start-alert form {
    flex-shrink: 0;
}

.course-timer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 16px;
    max-width: 520px;
    background: rgba(76, 175, 80, 0.12);
}

.course-timer-label {
    font-size: 14px;
    color: var(--success);
    font-weight: 500;
}

.course-timer-value {
    font-size: 22px;
    color: var(--success);
    font-variant-numeric: tabular-nums;
}

.course-timer--overdue {
    background: rgba(255, 111, 0, 0.12);
}

.course-timer--overdue .course-timer-label,
.course-timer--overdue .course-timer-value {
    color: var(--secondary-color);
}

.course-timer--overdue .course-timer-value {
    font-size: 15px;
}

.course-room-status {
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    background: var(--bg-light);
    color: var(--text-light);
}

.course-room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.course-room-tile {
    position: relative;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.course-room-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-room-name {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
}

.course-room-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.course-room-leave {
    background: var(--error);
    color: #fff;
}

.dashboard-form p {
    margin-bottom: 16px;
}

.dashboard-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.dashboard-form input[type="text"],
.dashboard-form input[type="email"],
.dashboard-form input[type="tel"],
.dashboard-form input[type="password"],
.dashboard-form input[type="number"],
.dashboard-form input[type="date"],
.dashboard-form input[type="time"],
.dashboard-form input[type="file"],
.dashboard-form select,
.dashboard-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
}

.dashboard-form input:focus,
.dashboard-form select:focus,
.dashboard-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    background: var(--bg-light);
}

.login-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.login-card .login-logo {
    display: block;
    margin: 0 auto 20px;
}

.login-card h1 {
    color: var(--primary-color);
    margin-bottom: 24px;
    text-align: center;
}

.login-card .forgot-password {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: var(--text-light);
    font-size: 14px;
    text-decoration: none;
}

.login-card .forgot-password:hover {
    color: var(--secondary-color);
}

.signup-links-row {
    text-align: center;
    margin-top: 16px;
    color: var(--text-light);
    font-size: 14px;
}

.signup-links-row a {
    color: var(--text-light);
    text-decoration: none;
}

.signup-links-row a:hover {
    color: var(--secondary-color);
}

.signup-links-separator {
    margin: 0 6px;
    color: #ddd;
}

.login-card .btn-primary {
    width: 100%;
    text-align: center;
}

.signup-card {
    max-width: 640px;
    text-align: left;
}

.signup-card h1 {
    text-align: center;
}

.signup-card h2 {
    font-size: 15px;
    color: var(--primary-color);
    margin: 20px 0 10px;
}

.signup-card h2:first-of-type {
    margin-top: 0;
}

.signup-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    margin: 16px 0;
}

.signup-checkbox-row input[type="checkbox"] {
    width: auto;
}

.field-error {
    color: #c62828;
    font-size: 13px;
    margin: 4px 0 0;
}

.signup-steps-indicator {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.signup-steps-indicator li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    position: relative;
}

.signup-steps-indicator li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: var(--bg-light);
    z-index: 0;
}

.signup-steps-indicator li.completed:not(:last-child)::after {
    background: var(--primary-color);
}

.signup-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-light);
    font-weight: 700;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.signup-steps-indicator li.active .signup-step-number {
    background: var(--primary-color);
    color: var(--white);
}

.signup-steps-indicator li.completed .signup-step-number {
    background: var(--primary-color);
    color: var(--white);
}

.signup-steps-indicator li.active {
    color: var(--primary-color);
    font-weight: 600;
}

.signup-step {
    display: none;
}

.signup-step.active {
    display: block;
}

.signup-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.signup-step-nav .btn {
    width: auto;
}

/* ========================================
DASHBOARD HOME — greeting, hero search,
popular subjects, tutor cards, course list
======================================== */

.dashboard-greeting h1 {
    font-size: 26px;
    margin-bottom: 4px;
}

.dashboard-greeting p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.dashboard-greeting .btn {
    display: inline-block;
    margin-bottom: 20px;
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border-radius: 30px;
    padding: 14px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 32px;
}

.hero-search input {
    flex: 1;
    border: none;
    background: none;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
}

.hero-search input:focus {
    outline: none;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.subject-card {
    margin: 0;
}

.subject-card button {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border: none;
    border-radius: 14px;
    padding: 24px 16px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.subject-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 20px;
}

.subject-name {
    font-weight: 600;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* Tutor card grid/component are defined once, later in this file, and
   reused everywhere a tutor is displayed (dashboard home, find-tutor
   results, favorites) — see "TUTOR CARD (shared component)" below. */


/* ========================================
FIND A TUTOR — search + filters dialog + results
======================================== */

.search-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 12px 20px;
}

.search-bar input {
    flex: 1;
    border: none;
    background: none;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
}

.search-bar input:focus {
    outline: none;
}

.filters-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.filters-dialog {
    border: none;
    border-radius: 16px;
    padding: 28px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.filters-dialog::backdrop {
    background: rgba(0, 0, 0, 0.4);
}

.filters-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.filters-dialog-header h2 {
    color: var(--primary-color);
    margin: 0;
}

.filters-dialog-header button {
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-light);
}

.dashboard-form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.filters-dialog select,
.filters-dialog input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    margin-bottom: 20px;
}

.filters-section-label {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.level-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.level-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

.price-range-labels {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.price-range-slider {
    position: relative;
    height: 30px;
    margin-bottom: 20px;
}

.price-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    top: 10px;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    background: none;
}

.price-range-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.price-range-slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.price-range-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: #ddd;
    border-radius: 2px;
}

.filters-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.filters-dialog-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.filters-dialog-actions .btn {
    flex: 1;
    text-align: center;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sort-select-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.sort-select-label select {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    color: var(--primary-color);
    font-weight: 600;
}

/* ========================================
TUTOR CARD (shared component) — used by
dashboard home, find-tutor results, and
favorites. Fixed dimensions everywhere:
280px wide cards in a wrapping grid, not
stretched to fill — same size regardless
of how many cards share the row.
======================================== */

.tutor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 280px);
    justify-content: start;
    gap: 16px;
}

.tutor-card {
    position: relative;
    width: 280px;
    height: 320px;
    background: var(--white);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tutor-card-favorite {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
}

/* Stretched-link pattern: makes the whole card clickable while the heart
   button (z-index: 2 above) stays independently clickable. */
.tutor-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 14px;
}

.heart-btn {
    border: none;
    background: var(--white);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
}

.heart-btn--active {
    color: var(--secondary-color);
}

.tutor-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 40px;
}

.tutor-card-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    font-size: 24px;
}

.tutor-card-photo--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.tutor-card-identity {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.tutor-card-identity strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tutor-card-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.verified-badge {
    background: rgba(255, 111, 0, 0.1);
    color: var(--secondary-color);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.tutor-card-rating {
    font-size: 14px;
}

.tutor-card-rating span {
    color: var(--text-light);
}

.tutor-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: center;
}

.tutor-card-stat {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tutor-card-stat span {
    font-size: 12px;
    color: var(--text-light);
}

.tutor-card-subjects {
    flex: 1;
    overflow: hidden;
}

.subject-tag {
    display: inline-block;
    background: rgba(26, 35, 126, 0.08);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 8px;
    margin: 0 6px 6px 0;
}

/* ========================================
TUTOR DETAIL PAGE
======================================== */

.tutor-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tutor-detail-back {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.tutor-detail-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 20px;
}

.tutor-detail-photo {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    font-size: 48px;
}

.tutor-detail-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tutor-detail-name-row h1 {
    margin: 0;
}

.tutor-detail-meta {
    color: var(--text-light);
}

.tutor-detail-divider {
    border: none;
    border-top: 1px solid #eee;
    margin-bottom: 24px;
}

.tutor-detail-bio summary {
    cursor: pointer;
    color: var(--text-dark);
}

.tutor-detail-bio p {
    margin-top: 10px;
    color: var(--text-dark);
    line-height: 1.6;
}

.tutor-detail-more {
    color: var(--primary-color);
    font-weight: 600;
}

.tutor-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tutor-detail-rate {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
}

.availability-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

.availability-day-label {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.availability-day-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 12px;
    font-weight: 700;
}

.availability-day--active .availability-day-dot {
    background: rgba(26, 35, 126, 0.15);
    color: var(--primary-color);
}

.availability-times {
    display: block;
    font-size: 10px;
    color: var(--text-light);
    margin-top: 4px;
    line-height: 1.4;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-item {
    background: var(--white);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.review-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.review-item-header span {
    font-size: 13px;
}

.review-item p {
    color: var(--text-light);
    font-size: 14px;
}

.tutor-detail-cta {
    margin-top: 32px;
}

.tutor-detail-cta .btn {
    width: 100%;
    text-align: center;
    padding: 16px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
BOOKING WIZARD (3 steps)
======================================== */

.booking-steps {
    display: flex;
    align-items: center;
    margin: 20px 0 28px;
}

.booking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.booking-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-light);
    font-weight: 700;
    font-size: 13px;
}

.booking-step--active .booking-step-num {
    background: var(--primary-color);
    color: var(--white);
}

.booking-step-label {
    font-size: 11px;
    color: var(--text-light);
}

.booking-step--active .booking-step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.booking-step-line {
    flex: 1;
    height: 2px;
    background: var(--bg-light);
    margin: 0 8px 20px;
}

.booking-step-line--active {
    background: var(--secondary-color);
}

.booking-subtitle {
    color: var(--text-light);
    margin-bottom: 20px;
}

.booking-form {
    max-width: 480px;
}

.duration-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.duration-option {
    position: relative;
}

.duration-option input {
    position: absolute;
    opacity: 0;
}

.duration-option span {
    display: block;
    padding: 10px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.duration-option input:checked + span {
    border-color: var(--primary-color);
    background: rgba(26, 35, 126, 0.08);
    color: var(--primary-color);
}

.booking-price {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 18px;
    margin: 16px 0;
}

.booking-hint {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 20px;
}

.booking-field-error {
    color: var(--error);
    font-size: 13px;
    margin-top: -12px;
    margin-bottom: 12px;
}

.booking-submit {
    width: 100%;
    text-align: center;
    padding: 14px;
    margin-top: 12px;
}

.location-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.location-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
}

.location-option:has(input:checked) {
    border-color: var(--secondary-color);
    background: rgba(255, 111, 0, 0.06);
}

.booking-summary-card {
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    max-width: 520px;
    overflow: hidden;
    margin-bottom: 20px;
}

.booking-summary-tutor {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.booking-summary-role {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.booking-summary-rows {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-summary-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.booking-summary-label {
    font-size: 13px;
    color: var(--text-light);
}

.booking-summary-price {
    background: var(--bg-light);
    padding: 16px 20px;
}

.booking-summary-price-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.booking-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-summary-total-amount {
    color: var(--secondary-color);
    font-size: 22px;
}

.booking-conditions {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 16px 20px;
    max-width: 520px;
    margin-bottom: 20px;
}

.booking-conditions p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.booking-conditions p:last-child {
    margin-bottom: 0;
}

.booking-edit-link {
    display: block;
    text-align: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    max-width: 520px;
}

button.booking-edit-link {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    width: 100%;
}

/* ========================================
STATUS TABS (My Courses filter — plain
links, not a dropdown)
======================================== */

.status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.status-tab {
    padding: 8px 18px;
    border-radius: 20px;
    background: var(--white);
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.status-tab--active {
    background: var(--primary-color);
    color: var(--white);
}

/* ========================================
COURSE CARD (shared component)
======================================== */

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 280px);
    justify-content: start;
    gap: 16px;
}

.course-card {
    width: 280px;
    background: var(--white);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.course-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.course-card-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.upcoming-badge {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(76, 175, 80, 0.12);
    color: var(--success);
}

.course-card-subject {
    font-size: 16px;
}

.status-badge {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.status-badge--pending {
    background: rgba(255, 111, 0, 0.12);
    color: var(--secondary-color);
}

.status-badge--confirmed {
    background: rgba(26, 35, 126, 0.12);
    color: var(--primary-color);
}

.status-badge--in_progress {
    background: rgba(26, 35, 126, 0.12);
    color: var(--primary-color);
}

.status-badge--completed {
    background: rgba(76, 175, 80, 0.12);
    color: var(--success);
}

.status-badge--cancelled,
.status-badge--no_show {
    background: rgba(244, 67, 54, 0.12);
    color: var(--error);
}

.status-badge--draft {
    background: var(--bg-light);
    color: var(--text-light);
}

/* Transaction.Status modifiers — distinct vocabulary from Course.Status,
   "created" and "successful" are Transaction-only; "cancelled" is shared
   with the Course modifier above. */
.status-badge--created {
    background: rgba(255, 111, 0, 0.12);
    color: var(--secondary-color);
}

.status-badge--successful {
    background: rgba(76, 175, 80, 0.12);
    color: var(--success);
}

.status-badge--failed,
.status-badge--expired {
    background: rgba(244, 67, 54, 0.12);
    color: var(--error);
}

.status-badge--refunded {
    background: rgba(26, 35, 126, 0.12);
    color: var(--primary-color);
}

.course-card-tutor {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.course-card-tutor-photo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    font-size: 11px;
    flex-shrink: 0;
}

.course-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--text-dark);
    flex: 1;
}

.course-card-footer {
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.course-card-amount {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
}

/* ========================================
COURSE DETAIL PAGE
======================================== */

.course-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 20px;
}

.course-detail-header h1 {
    margin: 0;
}

.course-detail-tutor {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    margin-bottom: 20px;
    max-width: 480px;
}

.course-detail-tutor-link {
    display: block;
    font-size: 13px;
    color: var(--primary-color);
    margin-top: 2px;
}

.course-detail-rows {
    background: var(--white);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.course-detail-amount {
    color: var(--secondary-color);
    font-size: 18px;
}

.course-detail-description {
    max-width: 480px;
    color: var(--text-dark);
    line-height: 1.6;
    font-weight: normal;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.course-detail-cta {
    margin: 20px 0;
    max-width: 480px;
}

.course-detail-cta .btn {
    display: block;
    text-align: center;
}

/* ========================================
PAYMENT PENDING PAGE
======================================== */

.payment-pending {
    max-width: 480px;
    background: var(--white);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.payment-pending h1 {
    margin-bottom: 12px;
}

#payment-pending-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========================================
TRANSACTIONS LIST
======================================== */

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 720px;
}

.transaction-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--white);
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.transaction-row-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.transaction-row-title {
    font-weight: 600;
    color: var(--text-dark);
}

.transaction-row-meta {
    font-size: 13px;
    color: var(--text-light);
}

.transaction-row-side {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.transaction-row-amount {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
}

/* ========================================
NOTIFICATIONS LIST
======================================== */

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 720px;
}

.notification-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--white);
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.notification-row--unread {
    border-left: 3px solid var(--secondary-color);
}

.notification-row-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notification-row-title {
    font-weight: 600;
    color: var(--text-dark);
}

.notification-row--unread .notification-row-title {
    color: var(--primary-color);
}

.notification-row-body {
    font-size: 14px;
    color: var(--text-dark);
}

.notification-row-meta {
    font-size: 12px;
    color: var(--text-light);
}

.notification-row-action {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 13px;
}

/* ========================================
RESPONSIVENESS — sidebar becomes a slide-out
drawer (hamburger + backdrop), content reflows
to a single column. Desktop layout above these
breakpoints is completely untouched.
======================================== */

@media (max-width: 900px) {
    .hamburger-btn {
        display: block;
    }

    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        width: 240px;
        height: 100vh;
        z-index: 200;
        transition: left 0.25s ease;
        overflow-y: auto;
    }

    .sidebar-toggle-checkbox:checked ~ .dashboard-sidebar {
        left: 0;
    }

    .sidebar-toggle-checkbox:checked ~ .sidebar-backdrop {
        display: block;
    }

    .dashboard-topbar {
        padding: 12px 16px;
        gap: 10px;
    }

    .dashboard-main {
        padding: 16px;
    }

    .dashboard-footer {
        padding: 12px 16px;
    }

    .dashboard-search {
        max-width: none;
    }

    .login-card {
        padding: 28px 24px;
    }

    .tutor-detail-photo {
        width: 96px;
        height: 96px;
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .dashboard-search {
        display: none;
    }

    .tutor-grid,
    .course-grid {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .tutor-card,
    .course-card {
        width: 100%;
    }

    /* .tutor-card has a fixed 320px height for the desktop fixed-dimension
       grid (repeat(auto-fill, 280px)) — going full-width on mobile without
       freeing the height too would either clip content (long name/many
       subject tags against .tutor-card-subjects's overflow:hidden) or
       leave awkward empty space, since the card is now much wider than
       the 280px the fixed height was tuned for. height:auto lets the
       flex-column content size the card naturally; .course-card was
       already auto-height, only .tutor-card needed this. */
    .tutor-card {
        height: auto;
    }

    /* Page titles: the site-wide h1 (styles.css) has no explicit
       font-size, so it falls back to the browser default (~32px) —
       reasonable for marketing pages, oversized for a phone-width
       dashboard page. Also covers .tutor-detail-name-row h1 and
       .course-detail-header h1 (same specificity as those rules, no
       conflict — neither sets font-size itself). */
    .dashboard-main h1 {
        font-size: 22px;
    }

    /* These pair an h1 with a badge in a non-wrapping flex row — a long
       tutor name or subject next to the verified/status badge would
       otherwise force horizontal overflow on narrow screens. */
    .tutor-detail-name-row,
    .course-detail-header {
        flex-wrap: wrap;
    }

    .level-checkboxes,
    .filters-two-col {
        grid-template-columns: 1fr;
    }

    .transaction-row,
    .notification-row,
    .course-card-top {
        flex-wrap: wrap;
    }

    .booking-steps {
        margin: 16px 0 20px;
    }

    .booking-step-label {
        display: none;
    }

    .filters-dialog {
        padding: 20px;
        max-width: none;
        width: calc(100% - 32px);
    }
}

/* Wallet — balance hero card */
.wallet-balance-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 16px;
    padding: 28px 32px;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(26, 35, 126, 0.25);
    margin-bottom: 32px;
}

.wallet-balance-label {
    display: block;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
}

.wallet-balance-amount {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.1;
}

.wallet-balance-currency {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

/* Wallet — transaction history table */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th {
    text-align: left;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 2px solid var(--bg-light);
}

.dashboard-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--bg-light);
    font-size: 14px;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

.dashboard-table tbody tr:hover {
    background: var(--bg-light);
}

.wallet-history-amount-col {
    text-align: right;
}

.wallet-history-amount {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.wallet-history-amount--credit {
    color: var(--success);
}

.wallet-history-amount--debit {
    color: var(--text-dark);
}

.wallet-history-empty {
    color: var(--text-light);
    padding: 12px 0;
}

@media (max-width: 600px) {
    .wallet-balance-amount {
        font-size: 32px;
    }

    .wallet-balance-card {
        padding: 22px 20px;
    }
}

/* Profile page — separated components */
.profile-section {
    margin-bottom: 24px;
}

.profile-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.profile-photo-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-photo-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-photo-preview--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 28px;
}

.profile-photo-input {
    flex: 1;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.profile-field-full {
    display: block;
    margin-bottom: 16px;
}

.profile-static-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-light);
}

.profile-static-field:last-of-type {
    border-bottom: none;
}

.profile-static-label {
    color: var(--text-light);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-static-value {
    font-weight: 500;
}

.profile-static-note {
    color: var(--text-light);
    font-size: 13px;
    margin-top: 8px;
}

.profile-submit {
    margin-top: 8px;
}

/* Coordonnées — contact verification rows */
.profile-static-field {
    flex-wrap: wrap;
}

.email-verify-block {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 4px 0 14px;
}

.email-verify-inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.email-verify-inline-form input[type="text"] {
    width: 110px;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    letter-spacing: 0.3em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.email-verify-inline-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.email-verify-inline-form input[type="email"],
.email-verify-inline-form input[type="tel"] {
    flex: 1 1 180px;
    min-width: 160px;
    padding: 9px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
}

.email-verify-inline-form input[type="email"]:focus,
.email-verify-inline-form input[type="tel"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.email-verify-inline-form .btn {
    padding: 9px 16px;
    font-size: 13px;
    white-space: nowrap;
}

.contact-change-disclosure {
    flex-basis: 100%;
    margin: 4px 0 14px;
}

.contact-change-disclosure summary {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.contact-change-disclosure summary::-webkit-details-marker {
    display: none;
}

.contact-change-disclosure summary::before {
    content: "▸ ";
    font-size: 11px;
}

.contact-change-disclosure[open] summary::before {
    content: "▾ ";
}

.contact-change-disclosure .email-verify-inline-form {
    margin-top: 10px;
}

@media (max-width: 600px) {
    .profile-photo-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-static-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .email-verify-block {
        flex-direction: column;
        align-items: stretch;
    }

    .email-verify-inline-form input[type="text"] {
        width: auto;
        flex: 1;
    }
}

/* Settings hub */
.settings-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.settings-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.settings-menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.settings-menu-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 35, 126, 0.08);
    border-radius: 12px;
}

.settings-menu-item strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.settings-menu-item p {
    color: var(--text-light);
    font-size: 13px;
    margin: 0;
}

/* Subjects management */
.subject-list {
    list-style: none;
}

.subject-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-bottom: 1px solid var(--bg-light);
}

.subject-list-item:last-child {
    border-bottom: none;
}

.subject-list-info strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 6px;
}

.level-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.level-badge {
    background: rgba(26, 35, 126, 0.08);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.level-checkbox-group {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.level-checkbox-group legend {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0 6px;
}

/* .level-checkbox itself is shared with the student filters dialog
   (find_tutor.html) — that context has no competing label styling, but
   here the label sits inside .dashboard-form, whose ".dashboard-form
   label" rule (block display, bold) has higher specificity than the
   bare .level-checkbox class alone, so this form needs its own
   override rather than fighting it with !important. */
.dashboard-form .level-checkbox {
    display: flex;
    width: auto;
    font-weight: normal;
}

.level-checkbox input[type="checkbox"] {
    width: auto;
}

/* Withdrawal page — centered form, plus the wallet page's CTA to it */
.centered-form-page {
    max-width: 480px;
    margin: 0 auto;
}

.centered-form-page h1 {
    text-align: center;
    margin-bottom: 16px;
}

.withdraw-balance-hint {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 20px;
}

.withdraw-balance-hint strong {
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
}

.withdraw-submit {
    width: 100%;
}

.withdraw-back-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: var(--text-light);
    font-size: 14px;
    text-decoration: none;
}

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

.wallet-withdraw-cta p {
    color: var(--text-light);
    margin-bottom: 12px;
}

/* Tutor course list search bar — reuses .hero-search's pill container,
   but sits above status tabs rather than as a page hero, so it needs a
   smaller bottom margin than the student dashboard's version. */
.course-search-form {
    margin-bottom: 20px;
}

.course-search-submit {
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

