:root {
    --bmt-primary: #349C5F;
    --bmt-secondary: #111827;
    --bmt-bg: #f9fafb;
}

.bmt-profile-wrapper {
    --bmt-green: #349c5f;
    --bmt-green-dark: #2a8a50;
    --bmt-green-light: #e8f5ed;
    --bmt-green-hover: #3db06b;
    --bmt-text-dark: #222325;
    --bmt-text-secondary: #62646a;
    --bmt-text-light: #95979d;
    --bmt-border: #e4e5e7;
    --bmt-bg: #f5f5f5;
    --bmt-white: #ffffff;
    --bmt-star: #ffbe5b;
    --bmt-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --bmt-shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.12);
    --bmt-radius: 8px;
    --bmt-radius-lg: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
    color: var(--bmt-text-dark);
}

.bmt-profile-wrapper * {
    box-sizing: border-box;
}

.bmt-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--bmt-text-secondary);
    margin-bottom: 24px;
}

.bmt-breadcrumb a {
    color: var(--bmt-text-secondary);
    text-decoration: none;
}

.bmt-breadcrumb a:hover {
    color: var(--bmt-green);
}

.bmt-profile-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

.bmt-profile-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bmt-card {
    background: var(--bmt-white);
    border-radius: var(--bmt-radius-lg);
    border: 1px solid var(--bmt-border);
    overflow: hidden;
}

.bmt-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--bmt-border);
}

.bmt-card-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--bmt-text-dark);
}

.bmt-card-body {
    padding: 24px;
}

.bmt-profile-header {
    display: flex;
    gap: 24px;
    padding: 24px;
}

.bmt-profile-avatar {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
}

.bmt-profile-avatar img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: none !important;
    box-shadow: none !important;
    display: block;
}

.bmt-profile-online {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: var(--bmt-green);
    border: 3px solid var(--bmt-white);
    border-radius: 50%;
}

.bmt-profile-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--bmt-text-dark);
    margin-bottom: 4px;
}

.bmt-profile-title {
    font-size: 16px;
    color: var(--bmt-text-secondary);
    margin-bottom: 12px;
}

.bmt-profile-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.bmt-profile-stars {
    display: flex;
    gap: 2px;
    color: var(--bmt-star);
    font-size: 18px;
}

.bmt-profile-rating-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--bmt-text-dark);
}

.bmt-profile-rating-count {
    font-size: 14px;
    color: var(--bmt-text-light);
}

.bmt-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.bmt-profile-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--bmt-text-secondary);
}

.bmt-profile-meta-item svg {
    color: var(--bmt-text-light);
}

.bmt-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 24px 24px;
}

.bmt-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bmt-bg);
    border: 1px solid var(--bmt-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--bmt-text-secondary);
}

.bmt-tag-primary {
    background: var(--bmt-green-light);
    border-color: transparent;
    color: var(--bmt-green);
}

.bmt-about-text {
    font-size: 15px;
    color: var(--bmt-text-secondary);
    line-height: 1.8;
}

.bmt-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 24px;
    background: var(--bmt-bg);
    border-top: 1px solid var(--bmt-border);
}

.bmt-stat-item {
    text-align: center;
}

.bmt-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--bmt-text-dark);
}

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

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

.bmt-reviews-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bmt-reviews-big-rating {
    font-size: 48px;
    font-weight: 700;
    color: var(--bmt-text-dark);
    line-height: 1;
}

.bmt-reviews-breakdown {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bmt-reviews-stars {
    display: flex;
    gap: 2px;
    color: var(--bmt-star);
    font-size: 16px;
}

.bmt-reviews-count {
    font-size: 14px;
    color: var(--bmt-text-light);
}

.bmt-reviews-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--bmt-border);
}

.bmt-review-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bmt-review-bar-label {
    font-size: 13px;
    color: var(--bmt-text-secondary);
    width: 60px;
}

.bmt-review-bar-track {
    flex: 1;
    height: 8px;
    background: var(--bmt-bg);
    border-radius: 4px;
    overflow: hidden;
}

.bmt-review-bar-fill {
    height: 100%;
    background: var(--bmt-star);
    border-radius: 4px;
}

.bmt-review-bar-count {
    font-size: 13px;
    color: var(--bmt-text-light);
    width: 30px;
    text-align: right;
}

.bmt-review-list {
    display: flex;
    flex-direction: column;
}

.bmt-review-item {
    padding: 24px;
    border-bottom: 1px solid var(--bmt-border);
}

.bmt-review-item:last-child {
    border-bottom: none;
}

.bmt-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.bmt-review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bmt-review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.bmt-review-user-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--bmt-text-dark);
}

.bmt-review-user-info p {
    font-size: 13px;
    color: var(--bmt-text-light);
}

.bmt-review-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bmt-review-rating .stars {
    color: var(--bmt-star);
    font-size: 14px;
}

.bmt-review-rating .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--bmt-text-dark);
}

.bmt-review-text {
    font-size: 14px;
    color: var(--bmt-text-secondary);
    line-height: 1.7;
}

.bmt-review-date {
    font-size: 13px;
    color: var(--bmt-text-light);
    margin-top: 12px;
}

.bmt-profile-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bmt-booking-card {
    background: var(--bmt-white);
    border-radius: var(--bmt-radius-lg);
    border: 1px solid var(--bmt-border);
    overflow: hidden;
}

.bmt-booking-price {
    padding: 24px;
    border-bottom: 1px solid var(--bmt-border);
}

.bmt-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.bmt-price-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--bmt-text-dark);
}

.bmt-price-unit {
    font-size: 16px;
    color: var(--bmt-text-light);
}

.bmt-price-note {
    font-size: 13px;
    color: var(--bmt-text-light);
    margin-top: 4px;
}

.bmt-calendar {
    padding: 20px;
}

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

.bmt-calendar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--bmt-text-dark);
}

.bmt-calendar-nav {
    display: flex;
    gap: 8px;
}

.bmt-calendar-nav button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bmt-bg);
    border: 1px solid var(--bmt-border);
    border-radius: 6px;
    cursor: pointer;
    color: var(--bmt-text-secondary);
    transition: all 0.2s;
}

.bmt-calendar-nav button svg {
    width: 16px;
    height: 16px;
    display: block;
    stroke: currentColor !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.bmt-calendar-nav button span {
    font-size: 18px;
    line-height: 1;
    display: block;
}

.bmt-calendar-nav button:hover {
    background: var(--bmt-green-light);
    border-color: var(--bmt-green);
    color: var(--bmt-green);
}

.bmt-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.bmt-calendar-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--bmt-text-light);
    padding: 8px 0;
}

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

.bmt-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    background: var(--bmt-white);
    color: var(--bmt-text-dark);
}

.bmt-calendar-day:hover:not(.disabled):not(.empty) {
    border-color: var(--bmt-green);
    background: var(--bmt-green-light);
}

.bmt-calendar-day.empty {
    visibility: hidden;
}

.bmt-calendar-day.disabled {
    color: #9ca3af;
    cursor: not-allowed;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.bmt-calendar-day.available {
    background: var(--bmt-green-light);
    color: var(--bmt-green-dark);
    font-weight: 600;
}

.bmt-calendar-day.available:hover {
    background: var(--bmt-green);
    color: var(--bmt-white);
    border-color: var(--bmt-green);
}

.bmt-calendar-day.available:hover:not(.selected) {
    color: #0f5132;
    background: #d1fae5;
    box-shadow: 0 4px 10px rgba(52, 156, 95, 0.25);
    font-weight: 600;
}

.bmt-calendar-day.selected {
    background: var(--bmt-green);
    color: var(--bmt-white);
    border-color: var(--bmt-green);
    font-weight: 600;
}

/* Calendar Day Tooltip */
.bmt-calendar-day {
    position: relative;
}

.bmt-day-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
    pointer-events: none;
    margin-bottom: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.bmt-day-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
}

.bmt-calendar-day:hover .bmt-day-tooltip {
    opacity: 1;
    visibility: visible;
}

.bmt-calendar-day.fully-booked .bmt-day-tooltip {
    background: #dc2626;
}

.bmt-calendar-day.fully-booked .bmt-day-tooltip::after {
    border-top-color: #dc2626;
}

.bmt-calendar-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--bmt-border);
}

.bmt-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--bmt-text-secondary);
}

.bmt-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.bmt-legend-dot.available {
    background: var(--bmt-green-light);
    border: 1px solid var(--bmt-green);
}

.bmt-legend-dot.booked {
    background: #fee2e2;
    border: 1px solid #f87171;
}

.bmt-legend-dot.unavailable {
    background: var(--bmt-bg);
    border: 1px solid var(--bmt-border);
}

.bmt-time-slots {
    padding: 20px;
    border-top: 1px solid var(--bmt-border);
    display: none;
}

.bmt-time-slots.active {
    display: block;
}

.bmt-time-slots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.bmt-time-slots-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--bmt-text-dark);
}

.bmt-time-slots-date {
    font-size: 13px;
    color: var(--bmt-green);
    font-weight: 500;
}

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

.bmt-time-slot {
    padding: 12px 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--bmt-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bmt-white);
    color: var(--bmt-text-dark);
}

.bmt-time-slot:hover {
    border-color: var(--bmt-green);
    background: #d1fae5;
    color: #0f5132;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(52, 156, 95, 0.2);
}

.bmt-time-slot.selected {
    background: var(--bmt-green);
    border-color: var(--bmt-green);
    color: var(--bmt-white);
}

.bmt-time-slot.booked {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
    cursor: not-allowed;
    opacity: 0.7;
    text-decoration: line-through;
    position: relative;
}

.bmt-time-slot.booked:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
    box-shadow: none;
    font-weight: 500;
}

.bmt-time-slot.booked::after {
    content: 'Booked';
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.03em;
    margin-top: 2px;
    opacity: 0.8;
}

.bmt-calendar-day.fully-booked {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.bmt-calendar-day.fully-booked:hover {
    background: #fee2e2;
}

.bmt-session-type {
    padding: 20px;
    border-top: 1px solid var(--bmt-border);
    display: none;
}

.bmt-session-type.active {
    display: block;
}

.bmt-session-type-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--bmt-text-dark);
    margin-bottom: 12px;
}

.bmt-duration-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bmt-duration-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid var(--bmt-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.bmt-duration-option.selected {
    border-color: var(--bmt-green);
    background: var(--bmt-green-light);
}

.bmt-duration-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bmt-duration-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--bmt-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bmt-duration-option.selected .bmt-duration-radio {
    border-color: var(--bmt-green);
}

.bmt-duration-option.selected .bmt-duration-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--bmt-green);
    border-radius: 50%;
}

.bmt-duration-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--bmt-text-dark);
}

.bmt-duration-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--bmt-text-dark);
}

.bmt-book-section {
    padding: 20px;
    border-top: 1px solid var(--bmt-border);
}

.bmt-btn-book {
    width: 100%;
    padding: 16px;
    background: var(--bmt-green);
    border: none;
    border-radius: var(--bmt-radius);
    font-size: 16px;
    font-weight: 600;
    color: var(--bmt-white);
    cursor: pointer;
    transition: all 0.2s;
}

.bmt-btn-book:hover {
    background: var(--bmt-green-dark);
}

.bmt-btn-book:disabled {
    background: var(--bmt-border);
    cursor: not-allowed;
}

.bmt-booking-summary {
    margin-top: 16px;
    padding: 16px;
    background: var(--bmt-bg);
    border-radius: var(--bmt-radius);
    display: none;
}

.bmt-booking-summary.active {
    display: block;
}

.bmt-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.bmt-summary-row:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid var(--bmt-border);
    font-weight: 600;
}

.bmt-summary-label {
    color: var(--bmt-text-secondary);
}

.bmt-summary-value {
    color: var(--bmt-text-dark);
}

.bmt-contact-card {
    padding: 20px;
}

.bmt-btn-contact {
    width: 100%;
    padding: 14px;
    background: var(--bmt-white);
    border: 1px solid var(--bmt-border);
    border-radius: var(--bmt-radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--bmt-text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.bmt-btn-contact:hover {
    border-color: var(--bmt-green);
    color: var(--bmt-green);
    background: transparent !important;
    box-shadow: none !important;
}

.bmt-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.bmt-modal.is-open {
    display: flex;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
}

.bmt-modal-overlay {
    display: none;
}

.bmt-modal-dialog {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 520px;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    z-index: 2;
    overflow: hidden;
}

.bmt-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.bmt-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.bmt-modal-close {
    background: #fef2f2;
    border: 1px solid #fecaca;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    color: #b91c1c;
}

.bmt-modal-close:hover,
.bmt-modal-close:focus,
.bmt-modal-close:active {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
    box-shadow: none;
    outline: none;
}

.bmt-modal-body {
    padding: 20px;
    display: grid;
    gap: 16px;
}

.bmt-modal-body .bmt-btn-book {
    background: var(--bmt-green);
    color: #fff;
}

.bmt-modal-body .bmt-btn-book:hover {
    background: var(--bmt-green-dark);
    color: #fff;
}

.bmt-modal-submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    background: #fff !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    text-shadow: none !important;
    filter: none !important;
    border: none !important;
    width: auto;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-indent: 0 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-family: inherit !important;
    line-height: 1.2 !important;
    border: 1px solid var(--bmt-green) !important;
    box-shadow: none !important;
    margin-top: 8px !important;
}

.bmt-modal-submit:hover {
    background: var(--bmt-green-dark) !important;
    color: #fff !important;
}

.bmt-modal-label {
    display: grid;
    gap: 8px;
    font-size: 14px;
    color: #374151;
}

.bmt-modal-label textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    resize: vertical;
}

/* Chat UI */
.bmt-chat-container {
    display: flex;
    height: 650px;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
    border: 1px solid #e5e7eb;
}

.bmt-chat-sidebar {
    width: 340px;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    background: #fafbfc;
}

.bmt-chat-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.bmt-chat-sidebar-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
}

.bmt-chat-search {
    position: relative;
}

.bmt-chat-search input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    font-size: 14px;
    color: #111827;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bmt-chat-search input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.bmt-chat-search input::placeholder {
    color: #9ca3af;
}

.bmt-chat-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
}

.bmt-conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.bmt-conversations-list::-webkit-scrollbar {
    width: 4px;
}

.bmt-conversations-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.bmt-conversation-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    margin: 2px 8px;
    border-radius: 12px;
}

.bmt-conversation-item:hover {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.bmt-conversation-item.active {
    background: #ecfdf5;
    border-left-color: #16a34a;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.1);
}

.bmt-conversation-avatar {
    position: relative;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
}

.bmt-conversation-avatar img,
.bmt-conversation-initials {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #111827;
    font-weight: 700;
}

.bmt-conversation-avatar .online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #31a24c;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.bmt-conversation-info {
    flex: 1;
    min-width: 0;
}

.bmt-conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.bmt-conversation-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.bmt-conversation-time {
    font-size: 12px;
    color: #8a8d91;
}

.bmt-conversation-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bmt-conversation-last-msg {
    font-size: 13px;
    color: #65676b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.bmt-conversation-unread {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.3);
}

.bmt-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.bmt-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bmt-chat-header-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bmt-chat-header-avatar {
    position: relative;
    width: 48px;
    height: 48px;
}

.bmt-chat-header-avatar img,
.bmt-chat-header-avatar span {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    font-weight: 700;
    color: #1e40af;
    font-size: 16px;
}

.bmt-chat-header-avatar .online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: #31a24c;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.bmt-chat-header-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.bmt-chat-header-info p {
    font-size: 12px;
    color: #31a24c;
}

.bmt-chat-header-actions {
    display: flex;
    gap: 8px;
}

.bmt-chat-header-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f0f2f5;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.bmt-chat-header-btn:hover {
    background: #e8f5ed;
    color: #349c5f;
}

.bmt-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bmt-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.bmt-chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}

.bmt-chat-thread {
    display: none;
}

.bmt-chat-thread.active {
    display: block;
}

.bmt-message-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 12px;
}

.bmt-message-group.sent {
    align-items: flex-end;
}

.bmt-message-group.received {
    align-items: flex-start;
}

.bmt-message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.bmt-message.sent {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff;
    border-bottom-right-radius: 6px;
}

.bmt-message.received {
    background: #ffffff;
    color: #1f2937;
    border-bottom-left-radius: 6px;
    border: 1px solid #e5e7eb;
}

.bmt-message-time {
    font-size: 11px;
    margin-top: 6px;
    display: block;
}

.bmt-message.sent .bmt-message-time {
    text-align: right;
    color: rgba(255, 255, 255, 0.8);
}

.bmt-message.received .bmt-message-time {
    color: #9ca3af;
}

.bmt-date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.bmt-date-separator span {
    background: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.bmt-chat-input-container {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.bmt-chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: #f8fafc;
    border-radius: 24px;
    padding: 8px 8px 8px 20px;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bmt-chat-input-wrapper:focus-within {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.bmt-chat-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #111827;
    outline: none;
    resize: none;
    max-height: 120px;
    line-height: 1.5;
    padding: 8px 0;
}

.bmt-chat-input::placeholder {
    color: #9ca3af;
}

.bmt-chat-input-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bmt-input-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.bmt-input-btn:hover {
    background: #e5e7eb;
}

.bmt-send-btn {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.3);
}

.bmt-send-btn:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    transform: scale(1.05);
}

.bmt-send-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.bmt-mobile-back {
    display: none;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f0f2f5;
    color: #6b7280;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .bmt-chat-container {
        height: 100vh;
        border-radius: 0;
    }

    .bmt-chat-sidebar {
        width: 260px;
    }

    .bmt-message {
        max-width: 75%;
    }
}

@media (max-width: 640px) {
    .bmt-chat-container {
        position: relative;
        height: 100vh;
    }

    .bmt-chat-sidebar {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 10;
        transition: transform 0.3s ease;
    }

    .bmt-chat-sidebar.hidden {
        transform: translateX(-100%);
    }

    .bmt-mobile-back {
        display: flex;
    }

    .bmt-message {
        max-width: 85%;
    }

    .bmt-chat-header {
        padding: 12px 16px;
    }

    .bmt-chat-messages {
        padding: 16px;
    }

    .bmt-chat-input-container {
        padding: 12px 16px;
    }

    .bmt-conversation-last-msg {
        max-width: 150px;
    }
}

/* Messages UI */
.bmt-messages-list {
    display: grid;
    gap: 16px;
}

.bmt-message-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.bmt-message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.bmt-message-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bmt-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #349C5F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.bmt-message-meta h4 {
    margin: 0;
    font-size: 15px;
    color: #0f172a;
}

.bmt-message-meta span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.bmt-message-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: #ecfdf3;
    color: #16a34a;
    font-weight: 600;
}

.bmt-message-body {
    font-size: 14px;
    color: #111827;
    line-height: 1.6;
    padding: 8px 0 4px;
}

.bmt-message-reply {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    color: #111827;
}

.bmt-message-reply-label {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 6px;
}

.bmt-message-reply-text {
    font-size: 14px;
    color: #0f172a;
}

.bmt-message-reply-date {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

.bmt-message-reply-pending {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.bmt-message-reply-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.bmt-message-reply-form textarea {
    min-height: 90px;
}

@media (max-width: 1024px) {
    .bmt-profile-layout {
        grid-template-columns: 1fr;
    }

    .bmt-profile-sidebar {
        position: static;
    }
}

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

    .bmt-profile-meta {
        justify-content: center;
    }

    .bmt-profile-tags {
        justify-content: center;
    }

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

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

@media (max-width: 480px) {
    .bmt-profile-avatar img {
        width: 120px;
        height: 120px;
    }

    .bmt-profile-name {
        font-size: 24px;
    }

    .bmt-reviews-big-rating {
        font-size: 36px;
    }
}

.bmt-teachers-wrapper {
    --bmt-green: #349c5f;
    --bmt-green-dark: #2a8a50;
    --bmt-green-light: #e8f5ed;
    --bmt-green-hover: #3db06b;
    --bmt-text-dark: #222325;
    --bmt-text-secondary: #62646a;
    --bmt-text-light: #95979d;
    --bmt-border: #e4e5e7;
    --bmt-bg: #fafafa;
    --bmt-white: #ffffff;
    --bmt-star: #ffbe5b;
    --bmt-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --bmt-shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.12);
    --bmt-radius: 8px;
    --bmt-radius-lg: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 16px;
    color: var(--bmt-text-dark);
}

.bmt-teachers-wrapper * {
    box-sizing: border-box;
}

.bmt-subjects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bmt-subject-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bmt-subject-pill input {
    width: 16px;
    height: 16px;
    accent-color: #22c55e;
}

.bmt-subject-pill:hover {
    border-color: #22c55e;
    background: #f0fdf4;
}
.bmt-teachers-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

.bmt-teachers-sidebar {
    position: sticky;
    top: 24px;
}

/* ── Filter Card ── */
.bmt-filter-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: var(--bmt-white);
    border: 1px solid var(--bmt-border);
    border-radius: var(--bmt-radius-lg);
    box-shadow: var(--bmt-shadow);
    overflow: hidden;
}

.bmt-filter-card h4 {
    margin: 0;
    padding: 18px 20px 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--bmt-text-dark);
    border-bottom: 1px solid var(--bmt-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bmt-filter-card h4 svg {
    color: var(--bmt-green);
}

.bmt-filter-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px;
}

.bmt-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bmt-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--bmt-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bmt-filter-input {
    width: 100%;
    height: 40px;
    padding: 9px 12px;
    border: 1px solid var(--bmt-border);
    border-radius: 8px;
    background: var(--bmt-bg);
    font-size: 13.5px;
    font-family: inherit;
    color: var(--bmt-text-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bmt-filter-input:focus {
    outline: none;
    border-color: var(--bmt-green);
    box-shadow: 0 0 0 3px rgba(52, 156, 95, 0.12);
    background: var(--bmt-white);
}

.bmt-filter-input::placeholder {
    color: var(--bmt-text-light);
}

.bmt-filter-rate-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.bmt-filter-rate-row .bmt-filter-input {
    min-width: 0;
}

.bmt-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0 20px 18px;
}

.bmt-filter-btn {
    flex: 1;
    height: 40px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    background: var(--bmt-green);
    color: var(--bmt-white);
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.bmt-filter-btn:hover {
    background: var(--bmt-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 156, 95, 0.25);
}

.bmt-filter-btn:active {
    transform: translateY(0);
}

.bmt-filter-btn svg {
    width: 16px;
    height: 16px;
}

.bmt-filter-reset {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--bmt-border);
    border-radius: 8px;
    color: var(--bmt-text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    background: var(--bmt-white);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bmt-filter-reset:hover {
    border-color: #d1d5db;
    background: var(--bmt-bg);
    color: var(--bmt-text-dark);
}

/* Mobile filter toggle */
.bmt-filter-toggle-btn {
    display: none;
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--bmt-border);
    border-radius: 8px;
    background: var(--bmt-white);
    color: var(--bmt-text-dark);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--bmt-shadow);
    margin-bottom: 16px;
    transition: background 0.2s ease;
}

.bmt-filter-toggle-btn:hover {
    background: var(--bmt-bg);
}

.bmt-filter-toggle-btn svg {
    width: 18px;
    height: 18px;
}

/* ── Toolbar ── */
.bmt-teachers-content .bmt-teachers-toolbar {
    margin-bottom: 20px;
}

.bmt-teachers-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--bmt-border);
}

.bmt-teachers-count {
    font-size: 14px;
    color: var(--bmt-text-secondary);
}

.bmt-teachers-count strong {
    color: var(--bmt-text-dark);
    font-weight: 700;
}

.bmt-teachers-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bmt-live-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.bmt-live-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bmt-text-light);
    pointer-events: none;
    width: 15px;
    height: 15px;
}

.bmt-live-search-input {
    padding: 9px 34px 9px 14px;
    border: 1px solid var(--bmt-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--bmt-text-dark);
    background: var(--bmt-white);
    outline: none;
    width: 200px;
    transition: border-color 0.2s, width 0.2s;
}

.bmt-live-search-input:focus {
    border-color: var(--bmt-green);
    width: 220px;
}

.bmt-live-search-input::placeholder {
    color: var(--bmt-text-light);
}

.bmt-live-search-clear {
    position: absolute;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: none;
    background: var(--bmt-border);
    color: var(--bmt-text-secondary);
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.bmt-live-search-clear:hover {
    background: var(--bmt-text-light);
    color: var(--bmt-white);
}

.bmt-teachers-no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--bmt-white);
    border-radius: var(--bmt-radius-lg);
    border: 1px solid var(--bmt-border);
}

.bmt-teachers-no-results h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--bmt-text-dark);
    margin: 8px 0 4px;
}

.bmt-teachers-no-results p {
    font-size: 14px;
    color: var(--bmt-text-secondary);
    margin: 0;
}

.bmt-teachers-view-toggle {
    display: flex;
    background: var(--bmt-bg);
    border: 1px solid var(--bmt-border);
    border-radius: 8px;
    padding: 3px;
}

.bmt-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    border: none;
    background: transparent;
    color: var(--bmt-text-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.bmt-view-btn svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.bmt-view-btn span {
    font-size: 18px;
    line-height: 1;
}

.bmt-view-btn svg * {
    vector-effect: non-scaling-stroke;
}

.bmt-view-btn {
    outline: none;
}

.bmt-view-btn:hover {
    color: var(--bmt-text-dark);
    background: var(--bmt-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.bmt-view-btn:focus,
.bmt-view-btn:focus-visible,
.bmt-view-btn:active {
    outline: none;
    box-shadow: none;
}

.bmt-view-btn.active {
    background: var(--bmt-white);
    color: var(--bmt-green);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.bmt-teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.bmt-teachers-grid.list-view {
    grid-template-columns: minmax(0, 880px);
    justify-content: center;
    gap: 16px;
}

.bmt-teacher-card {
    background: var(--bmt-white);
    border-radius: 14px;
    border: 1px solid var(--bmt-border);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bmt-teacher-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.bmt-teacher-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.bmt-teacher-card-header {
    position: relative;
    padding: 20px 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.bmt-teacher-avatar-outer {
    position: relative;
    width: 76px;
    height: 76px;
    margin-bottom: 12px;
}

.bmt-teacher-avatar-wrapper {
    position: relative;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

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

.bmt-teacher-online-badge {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 13px;
    height: 13px;
    background: var(--bmt-green);
    border: 2.5px solid var(--bmt-white);
    border-radius: 50%;
    z-index: 2;
}

.bmt-teacher-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bmt-text-dark);
    margin: 0 0 2px;
    line-height: 1.3;
}

.bmt-teacher-card:hover .bmt-teacher-name {
    color: var(--bmt-green);
}

.bmt-teacher-gig-subject {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--bmt-green);
    margin: 0 0 8px;
}

.bmt-teacher-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.bmt-rating-star {
    color: var(--bmt-star);
    font-size: 13px;
}

.bmt-rating-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--bmt-text-dark);
}

.bmt-rating-count {
    font-size: 12px;
    color: var(--bmt-text-light);
}

.bmt-rating-new {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--bmt-green);
    background: var(--bmt-green-light);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.bmt-teacher-bio {
    font-size: 0.8rem;
    color: var(--bmt-text-secondary);
    line-height: 1.45;
    margin: 0;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bmt-teacher-card-body {
    padding: 0 16px 14px;
    flex: 1;
}

.bmt-teacher-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
}

.bmt-teacher-tag {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--bmt-text-secondary);
    background: var(--bmt-bg);
    padding: 4px 10px;
    border-radius: 5px;
    border: 1px solid var(--bmt-border);
    transition: all 0.2s;
}

.bmt-teacher-tag.bmt-tag-active {
    background: var(--bmt-green);
    color: #fff;
    border-color: var(--bmt-green);
}

.bmt-teacher-tag.bmt-tag-more {
    background: var(--bmt-green-light);
    color: var(--bmt-green);
    border-color: transparent;
}

.bmt-teacher-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fafbfc;
    border-top: 1px solid var(--bmt-border);
    gap: 8px;
    margin-top: auto;
}

.bmt-teacher-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.bmt-teacher-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--bmt-text-light);
    white-space: nowrap;
}

.bmt-teacher-stat svg {
    color: var(--bmt-green);
    flex-shrink: 0;
}

.bmt-teacher-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.bmt-price-label {
    font-size: 0.6rem;
    color: var(--bmt-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 3px;
}

.bmt-price-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bmt-text-dark);
    white-space: nowrap;
}

.bmt-price-value .woocommerce-Price-amount,
.bmt-price-value .woocommerce-Price-currencySymbol {
    white-space: nowrap;
}

.bmt-price-unit {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--bmt-text-light);
}

.bmt-teachers-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bmt-white);
    border-radius: var(--bmt-radius-lg);
    border: 1px solid var(--bmt-border);
}

.bmt-empty-icon {
    color: var(--bmt-text-light);
    margin-bottom: 16px;
}

.bmt-teachers-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--bmt-text-dark);
    margin: 0 0 8px;
}

.bmt-teachers-empty p {
    font-size: 14px;
    color: var(--bmt-text-secondary);
    margin: 0;
}

/* ============================================================
   LIST VIEW
   Container: max-width 880, centered.
   Card layout: header + body on left | footer on right.
   Inside header: avatar absolutely positioned and vertically
   centered, text content flows in normal block layout with
   left padding to clear the avatar. This is deterministic
   regardless of parent grid stretching or item count.
   ============================================================ */
.bmt-teachers-grid.list-view {
    grid-template-columns: minmax(0, 880px);
    justify-content: center;
    gap: 16px;
}

.bmt-teachers-grid.list-view .bmt-teacher-card {
    display: block;
}

.bmt-teachers-grid.list-view .bmt-teacher-card-link {
    display: grid;
    grid-template-columns: 1fr 170px;
    grid-template-areas:
        "header footer"
        "body   footer";
    width: 100%;
    align-items: stretch;
}

/* HEADER — absolute positioned avatar on the left */
.bmt-teachers-grid.list-view .bmt-teacher-card-header {
    grid-area: header;
    display: block;
    position: relative;
    padding: 18px 20px 10px 114px; /* left = 20 + 76 avatar + 18 gap */
    text-align: left;
    align-items: stretch;
    min-height: 112px;
    box-sizing: border-box;
}

.bmt-teachers-grid.list-view .bmt-teacher-avatar-outer {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 76px;
    height: 76px;
    margin: 0;
    float: none;
}

.bmt-teachers-grid.list-view .bmt-teacher-avatar-wrapper {
    width: 76px;
    height: 76px;
}

/* Text content flows in normal block flow with proper margins */
.bmt-teachers-grid.list-view .bmt-teacher-name,
.bmt-teachers-grid.list-view .bmt-teacher-gig-subject,
.bmt-teachers-grid.list-view .bmt-teacher-rating,
.bmt-teachers-grid.list-view .bmt-rating-new,
.bmt-teachers-grid.list-view .bmt-teacher-bio {
    text-align: left;
    margin: 0;
}

.bmt-teachers-grid.list-view .bmt-teacher-name {
    font-size: 17px;
    line-height: 1.3;
    margin: 0 0 2px 0;
}

.bmt-teachers-grid.list-view .bmt-teacher-gig-subject {
    margin: 0 0 6px 0;
    font-size: 13px;
}

.bmt-teachers-grid.list-view .bmt-teacher-rating {
    display: flex;
    justify-content: flex-start;
    margin: 0 0 6px 0;
}

.bmt-teachers-grid.list-view .bmt-rating-new {
    display: inline-block;
    width: auto;
    margin: 0 0 6px 0;
}

.bmt-teachers-grid.list-view .bmt-teacher-bio {
    font-size: 13px;
    color: var(--bmt-text-muted, #6b7280);
    margin: 2px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* BODY — tags, aligned under the text column */
.bmt-teachers-grid.list-view .bmt-teacher-card-body {
    grid-area: body;
    display: block;
    padding: 0 20px 16px 114px; /* match header text indent */
}

.bmt-teachers-grid.list-view .bmt-teacher-tags {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
}

/* FOOTER — right rail with vertical separator */
.bmt-teachers-grid.list-view .bmt-teacher-card-footer {
    grid-area: footer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 18px 20px;
    border-top: none;
    border-left: 1px solid var(--bmt-border);
    background: var(--bmt-white);
    gap: 8px;
}

.bmt-teachers-grid.list-view .bmt-teacher-stats {
    justify-content: center;
}

.bmt-teachers-grid.list-view .bmt-teacher-price {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.bmt-teachers-grid.list-view .bmt-price-value {
    font-size: 20px;
}

/* Mobile (≤640px): stack to single column, smaller avatar */
@media (max-width: 640px) {
    .bmt-teachers-grid.list-view {
        grid-template-columns: 1fr;
    }

    .bmt-teachers-grid.list-view .bmt-teacher-card-link {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "body"
            "footer";
    }

    .bmt-teachers-grid.list-view .bmt-teacher-card-header {
        padding: 14px 14px 8px 88px; /* 14 + 60 avatar + 14 gap */
        min-height: 88px;
    }

    .bmt-teachers-grid.list-view .bmt-teacher-avatar-outer {
        left: 14px;
        width: 60px;
        height: 60px;
    }

    .bmt-teachers-grid.list-view .bmt-teacher-avatar-wrapper {
        width: 60px;
        height: 60px;
    }

    .bmt-teachers-grid.list-view .bmt-teacher-card-body {
        padding: 0 14px 12px 88px;
    }

    .bmt-teachers-grid.list-view .bmt-teacher-card-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 14px;
        border-left: none;
        border-top: 1px solid var(--bmt-border);
        gap: 12px;
    }

    .bmt-teachers-grid.list-view .bmt-teacher-price {
        flex-direction: row;
        align-items: baseline;
        gap: 6px;
    }

    .bmt-teachers-grid.list-view .bmt-price-value {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .bmt-teachers-wrapper {
        padding: 16px 12px;
    }

    .bmt-teachers-layout {
        grid-template-columns: 1fr;
    }

    .bmt-teachers-sidebar {
        position: static;
    }

    .bmt-filter-toggle-btn {
        display: flex;
    }

    .bmt-filter-card {
        display: none;
    }

    .bmt-filter-card.is-open {
        display: flex;
        margin-bottom: 8px;
    }

    .bmt-teachers-toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .bmt-teachers-toolbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .bmt-live-search-input {
        width: 220px;
    }

    .bmt-live-search-input:focus {
        width: 240px;
    }

    .bmt-teachers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    /* Keep footer horizontal on tablet grid cards */
    .bmt-teacher-card-footer {
        flex-wrap: nowrap;
    }
}

@media (max-width: 480px) {
    .bmt-teachers-grid {
        grid-template-columns: 1fr;
    }

    .bmt-teacher-avatar-outer,
    .bmt-teacher-avatar-wrapper {
        width: 68px;
        height: 68px;
    }

    /* Single column = enough space for horizontal footer */
    .bmt-teacher-card-footer {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
}

.bmt-td-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bmt-bg);
    color: var(--bmt-secondary);
    line-height: 1.6;
}

.bmt-td-container {
    display: flex;
    gap: 24px;
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.bmt-td-sidebar {
    flex: 0 0 260px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 24px;
    overflow: hidden;
}

.bmt-td-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.bmt-td-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bmt-td-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bmt-primary), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
}

.bmt-td-user-details h4 {
    font-size: 15px;
    font-weight: 600;
}

.bmt-td-user-details p {
    font-size: 13px;
    color: #6b7280;
}

.bmt-td-nav {
    padding: 8px;
}

.bmt-td-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 4px;
    border-radius: 10px;
    color: var(--bmt-secondary);
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.bmt-td-nav-item:hover {
    background: #f9fafb;
}

.bmt-td-nav-item.is-active {
    background: linear-gradient(135deg, rgba(43, 89, 255, 0.1), rgba(124, 58, 237, 0.1));
    color: var(--bmt-primary);
}

.bmt-td-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.bmt-td-nav-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 12px 0;
}

.bmt-td-main {
    flex: 1;
    min-width: 0;
}

.bmt-td-section {
    display: none;
}

.bmt-td-section.is-active {
    display: block;
}

.bmt-td-page-header {
    background: #fff;
    padding: 24px 28px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.bmt-td-page-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.bmt-td-page-header p {
    color: #6b7280;
    font-size: 14px;
}

.bmt-td-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.bmt-td-stat-card {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
}

.bmt-td-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.bmt-td-stat-icon.is-orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.bmt-td-stat-icon.is-green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.bmt-td-stat-icon.is-purple {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.bmt-td-stat-icon.is-cyan {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.bmt-td-stat-details h3 {
    font-size: 28px;
    font-weight: 700;
}

.bmt-td-stat-details p {
    font-size: 14px;
    color: #6b7280;
}

.bmt-td-card {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.bmt-td-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.bmt-td-card-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
}

.bmt-td-table-container {
    overflow-x: auto;
}

.bmt-td-table {
    width: 100%;
    border-collapse: collapse;
}

.bmt-td-table th {
    text-align: left;
    padding: 12px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
}

.bmt-td-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.bmt-td-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.bmt-td-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.bmt-td-status.approved {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.bmt-td-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.bmt-td-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.bmt-td-btn-primary {
    background: var(--bmt-primary);
    color: #fff;
}

.bmt-td-btn-secondary {
    background: #f9fafb;
    color: #111827;
}

.bmt-td-btn-success {
    background: #22c55e;
    color: #fff;
}

.bmt-td-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.bmt-td-form-group {
    margin-bottom: 20px;
}

.bmt-td-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.bmt-td-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
}

.bmt-td-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.bmt-td-availability-grid {
    display: grid;
    gap: 16px;
}

.bmt-td-availability-row {
    display: grid;
    grid-template-columns: 140px 1fr 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
}

.bmt-td-day-name {
    font-weight: 600;
}

.bmt-td-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.bmt-td-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.bmt-td-withdraw-summary {
    background: linear-gradient(135deg, var(--bmt-primary), #7c3aed);
    color: #fff;
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.bmt-td-withdraw-summary .bmt-td-amount {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.bmt-td-withdraw-actions {
    display: flex;
    gap: 12px;
}

@media (max-width: 1024px) {
    .bmt-td-container {
        flex-direction: column;
    }

    .bmt-td-sidebar {
        width: 100%;
        position: static;
    }

    .bmt-td-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .bmt-td-stats-grid {
        grid-template-columns: 1fr;
    }

    .bmt-td-availability-row {
        grid-template-columns: 1fr;
    }
}

.bmt-alert {
    padding: 12px 16px;
    background: #f3f4f6;
    border-radius: 8px;
    margin-bottom: 16px;
}

.bmt-alert-error {
    background: #fee2e2;
}

.bmt-alert-success {
    background: #dcfce7;
}

.bmt-form label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

.bmt-form input,
.bmt-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-top: 6px;
    background: #fff;
}

.bmt-button {
    background: var(--bmt-primary);
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.bmt-button-small {
    padding: 6px 12px;
    font-size: 14px;
}

.bmt-teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.bmt-teacher-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.bmt-teacher-link {
    text-decoration: none;
    color: var(--bmt-secondary);
}

.bmt-teacher-avatar img {
    border-radius: 50%;
}

.bmt-teacher-profile {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bmt-teacher-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.bmt-booking-box {
    background: var(--bmt-bg);
    border-radius: 12px;
    padding: 20px;
}

.bmt-dashboard {
    display: grid;
    gap: 24px;
}

.bmt-dashboard-shell {
    display: flex !important;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
    flex-wrap: nowrap;
}

.bmt-dashboard-sidebar {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
    height: fit-content;
    flex: 0 0 240px;
    max-width: 260px;
}

.bmt-dashboard-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 16px;
}

.bmt-dashboard-menu {
    display: grid;
    gap: 6px;
}

.bmt-dashboard-menu a {
    text-decoration: none;
    color: var(--bmt-secondary);
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

.bmt-dashboard-menu a.is-active,
.bmt-dashboard-menu a:hover {
    background: #f6f7fb;
}

.bmt-dashboard-content {
    display: grid;
    gap: 24px;
    flex: 1 1 auto;
    min-width: 0;
}

.bmt-dashboard-shell > * {
    min-width: 0;
}

.bmt-dashboard-header {
    padding: 18px 20px;
}

.bmt-dashboard-header-inner h3 {
    margin: 0;
}

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

.bmt-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    gap: 14px;
}

.bmt-stat-card h4 {
    margin: 0;
    font-size: 22px;
}

.bmt-stat-card p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.bmt-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 700;
    border: 1px solid currentColor;
    font-size: 18px;
}

.bmt-stat-icon.is-orange {
    color: #f97316;
    background: rgba(249, 115, 22, 0.08);
}

.bmt-stat-icon.is-green {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
}

.bmt-stat-icon.is-purple {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.08);
}

.bmt-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: capitalize;
}

.bmt-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.bmt-status-accepted {
    background: #dcfce7;
    color: #166534;
}

.bmt-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.bmt-dashboard-header {
    padding: 24px;
}

.bmt-dashboard-header-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.bmt-dashboard-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bmt-dashboard-avatar img {
    border-radius: 50%;
}

.bmt-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.bmt-stat-card {
    background: var(--bmt-bg);
    border-radius: 10px;
    padding: 12px 14px;
    min-width: 140px;
}

.bmt-stat-card strong {
    display: block;
    font-size: 22px;
    margin-top: 4px;
}

.bmt-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 24px;
}

.bmt-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: capitalize;
}

.bmt-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.bmt-status-accepted {
    background: #dcfce7;
    color: #166534;
}

.bmt-table {
    width: 100%;
    border-collapse: collapse;
}

.bmt-table th,
.bmt-table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.bmt-availability-grid {
    display: grid;
    gap: 12px;
}

.bmt-availability-row {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    gap: 12px;
    align-items: center;
}

.bmt-muted {
    color: #6b7280;
}

.bmt-account-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.bmt-account-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--bmt-bg);
    color: var(--bmt-secondary);
    text-decoration: none;
}

@media (max-width: 640px) {
    .bmt-teacher-header {
        flex-direction: column;
    }

    .bmt-availability-row {
        grid-template-columns: 1fr;
    }

    .bmt-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .bmt-dashboard-shell {
        flex-direction: column;
    }
}


/* ============================================================
   Dashboard Styles (Student & Teacher)
   ============================================================ */

/* ============================================================
   BMT Dashboard Design System
   Professional, responsive dashboard for teachers & students
   ============================================================ */

/* ── Design Tokens ── */
:root {
    --bmt-primary: #16a34a;
    --bmt-primary-hover: #15803d;
    --bmt-primary-light: #f0fdf4;
    --bmt-primary-lighter: #dcfce7;
    --bmt-primary-rgb: 22, 163, 74;
    --bmt-secondary: #111827;
    --bmt-success: #16a34a;
    --bmt-success-light: #f0fdf4;
    --bmt-warning: #f59e0b;
    --bmt-warning-light: #fefce8;
    --bmt-danger: #ef4444;
    --bmt-danger-light: #fef2f2;
    --bmt-info: #3b82f6;
    --bmt-info-light: #eff6ff;
    --bmt-purple: #7c3aed;
    --bmt-purple-light: #f5f3ff;
    --bmt-cyan: #06b6d4;
    --bmt-cyan-light: #ecfeff;
    --bmt-text: #111827;
    --bmt-text-secondary: #4b5563;
    --bmt-text-muted: #9ca3af;
    --bmt-text-light: #d1d5db;
    --bmt-bg: #f8fafc;
    --bmt-bg-card: #ffffff;
    --bmt-bg-hover: #f1f5f9;
    --bmt-bg-active: #f0fdf4;
    --bmt-border: #e5e7eb;
    --bmt-border-light: #f3f4f6;
    --bmt-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --bmt-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --bmt-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --bmt-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --bmt-radius: 10px;
    --bmt-radius-lg: 14px;
    --bmt-radius-sm: 6px;
    --bmt-radius-full: 9999px;
    --bmt-sidebar-w: 260px;
    --bmt-transition: 0.2s ease;
    --bmt-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Aliases used in templates */
.bmt-student-dashboard, .bmt-teacher-dashboard {
    --primary: var(--bmt-primary);
    --success: var(--bmt-success);
    --warning: var(--bmt-warning);
    --text-muted: var(--bmt-text-muted);
    --bg-light: var(--bmt-bg);
}

/* ── Reset & Base ── */
.bmt-student-dashboard,
.bmt-teacher-dashboard {
    font-family: var(--bmt-font);
    color: var(--bmt-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    /* Full viewport overlay - bypasses all WordPress container constraints */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0 !important;
    padding: 0 !important;
}

.bmt-student-dashboard *,
.bmt-teacher-dashboard *,
.bmt-student-dashboard *::before,
.bmt-teacher-dashboard *::before,
.bmt-student-dashboard *::after,
.bmt-teacher-dashboard *::after {
    box-sizing: border-box;
}

/* ── Dashboard Layout ── */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--bmt-bg);
    position: relative;
    gap: 24px;
}

/* Add visual separation between sidebar and content */
.sidebar {
    width: var(--bmt-sidebar-w);
    min-width: var(--bmt-sidebar-w);
    max-width: var(--bmt-sidebar-w);
    background: var(--bmt-bg-card);
    border-right: 1px solid var(--bmt-border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--bmt-border); border-radius: 4px; }

.sidebar-header {
    padding: 22px 18px 16px;
    border-bottom: 1px solid var(--bmt-border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--bmt-radius-full);
    background: linear-gradient(135deg, var(--bmt-primary), #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    overflow: hidden;
}

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

.user-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--bmt-text);
    line-height: 1.3;
    margin: 0;
}

.user-details p {
    font-size: 12px;
    color: var(--bmt-text-muted);
    margin: 1px 0 0;
}

.sidebar-credits {
    margin-top: 14px;
    padding: 10px 14px;
    background: var(--bmt-bg);
    border: 1px solid var(--bmt-border);
    border-radius: var(--bmt-radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-credits-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--bmt-text-secondary);
}

.sidebar-credits-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--bmt-text);
}

/* ── Navigation ── */
.nav-menu {
    padding: 10px 10px 24px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 14px;
    border-radius: var(--bmt-radius);
    color: var(--bmt-text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all var(--bmt-transition);
    cursor: pointer;
    margin-bottom: 1px;
}

.nav-item:hover {
    background: var(--bmt-bg-hover);
    color: var(--bmt-text);
}

.nav-item.active {
    background: var(--bmt-bg-active);
    color: var(--bmt-primary);
    font-weight: 600;
}

.nav-item .icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.65;
}

.nav-item.active .icon { opacity: 1; }

.nav-item .icon svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.8;
}

.nav-item .badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--bmt-radius-full);
    background: var(--bmt-danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-divider {
    height: 1px;
    background: var(--bmt-border);
    margin: 8px 14px;
}

/* ── Mobile Sticky Header ── */
.bmt-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--bmt-bg-card);
    border-bottom: 1px solid var(--bmt-border);
    z-index: 99;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.bmt-mobile-logo {
    display: flex;
    align-items: center;
}

.bmt-mobile-logo img {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.bmt-mobile-logo span {
    font-size: 18px;
    font-weight: 700;
    color: var(--bmt-primary);
}

/* ── Hamburger ── */
.bmt-hamburger {
    display: none;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 40px;
    height: 40px;
    border-radius: var(--bmt-radius);
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

.bmt-hamburger:hover {
    background: rgba(0,0,0,0.05);
}

.bmt-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--bmt-text);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.bmt-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bmt-hamburger.active span:nth-child(2) { opacity: 0; }
.bmt-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Sidebar Close Button ── */
.sidebar-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.bmt-sidebar-close {
    display: none;
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.bmt-sidebar-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.bmt-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 98;
    backdrop-filter: blur(2px);
}

.bmt-sidebar-overlay.active { display: block; }

/* ── Main Content ── */
.main-content {
    flex: 1;
    padding: 32px;
    padding-right: 32px;
    padding-bottom: 60px;
    min-width: 0;
    background: var(--bmt-bg);
}

.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.main-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.content-section {
    display: none;
    animation: bmtFadeIn 0.25s ease;
}

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

/* ── Constrain form-heavy dashboard sections for professional width ── */
.dashboard-container #profile .card,
.dashboard-container #profile .profile-header,
.dashboard-container #settings .card,
.dashboard-container #booking-settings .card,
.dashboard-container #availability .card,
.dashboard-container #withdraw .card,
.dashboard-container #withdraw .withdraw-balance-card,
.dashboard-container #withdraw .withdraw-stats,
.dashboard-container #announcements .card,
.dashboard-container #credits .card {
    max-width: 720px;
}

@keyframes bmtFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================
   Loading Screen
   ================================================ */
@keyframes bmtSpin {
    to { transform: rotate(360deg); }
}

@keyframes bmtPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.bmt-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bmt-loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.bmt-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--bmt-green, #16a34a);
    border-radius: 50%;
    animation: bmtSpin 0.8s linear infinite;
    margin-bottom: 16px;
}

.bmt-loading-text {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    animation: bmtPulse 1.5s ease-in-out infinite;
}

.bmt-loading-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.bmt-loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Dashboard initially hidden until loaded */
.bmt-teacher-dashboard.loading,
.bmt-student-dashboard.loading,
.bmt-teacher-profile-page.loading {
    opacity: 0;
    visibility: hidden;
}

.bmt-teacher-dashboard.loaded,
.bmt-student-dashboard.loaded,
.bmt-teacher-profile-page.loaded {
    opacity: 1;
    visibility: visible;
    animation: bmtFadeIn 0.3s ease;
}

/* Skeleton loading placeholders */
.bmt-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: bmtSkeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes bmtSkeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.bmt-skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    width: 100%;
}

.bmt-skeleton-text.short {
    width: 60%;
}

.bmt-skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.bmt-skeleton-card {
    height: 120px;
    border-radius: 12px;
}

/* ── Page Header ── */
.page-header { margin-bottom: 26px; }

.page-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--bmt-text);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}

.page-header p {
    font-size: 14px;
    color: var(--bmt-text-muted);
    margin: 5px 0 0;
}

/* ── Stats Grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

.stat-card {
    background: var(--bmt-bg-card);
    border: 1px solid var(--bmt-border);
    border-radius: var(--bmt-radius-lg);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--bmt-shadow-sm);
    transition: box-shadow var(--bmt-transition), transform var(--bmt-transition);
}

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

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--bmt-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg { width: 22px; height: 22px; }

.stat-icon.green { background: var(--bmt-success-light); color: var(--bmt-success); }
.stat-icon.orange { background: var(--bmt-warning-light); color: var(--bmt-warning); }
.stat-icon.purple { background: var(--bmt-purple-light); color: var(--bmt-purple); }
.stat-icon.blue { background: var(--bmt-info-light); color: var(--bmt-info); }
.stat-icon.cyan { background: var(--bmt-cyan-light); color: var(--bmt-cyan); }

.stat-details h3 {
    font-size: 21px;
    font-weight: 800;
    color: var(--bmt-text);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
}

.stat-details p {
    font-size: 12.5px;
    color: var(--bmt-text-muted);
    margin: 3px 0 0;
    font-weight: 500;
}

/* ── Cards ── */
.card {
    background: var(--bmt-bg-card);
    border: 1px solid var(--bmt-border);
    border-radius: var(--bmt-radius-lg);
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: var(--bmt-shadow-sm);
}

.card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--bmt-text);
    margin: 0 0 4px;
}

.card-subtitle {
    font-size: 13px;
    color: var(--bmt-text-muted);
    margin: 0 0 18px;
}

.card-warning { border-left: 4px solid var(--bmt-warning); }

/* ── Tables ── */
.table-container {
    overflow-x: auto;
    margin-top: 14px;
    border-radius: var(--bmt-radius);
    border: 1px solid var(--bmt-border);
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.table-container thead th {
    padding: 11px 14px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--bmt-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--bmt-bg);
    border-bottom: 1px solid var(--bmt-border);
    white-space: nowrap;
}

.table-container tbody td {
    padding: 11px 14px;
    color: var(--bmt-text-secondary);
    border-bottom: 1px solid var(--bmt-border-light);
    vertical-align: middle;
}

.table-container tbody tr:last-child td { border-bottom: none; }
.table-container tbody tr:hover { background: var(--bmt-bg); }

/* ── Status Badges ── */
.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: var(--bmt-radius-full);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.status.pending { background: var(--bmt-warning-light); color: #92400e; }
.status.pending .status-dot { background: var(--bmt-warning); }
.status.confirmed, .status.approved, .status.accepted { background: var(--bmt-success-light); color: #166534; }
.status.confirmed .status-dot, .status.approved .status-dot, .status.accepted .status-dot { background: var(--bmt-success); }
.status.completed { background: var(--bmt-info-light); color: #1e40af; }
.status.completed .status-dot { background: var(--bmt-info); }
.status.cancelled, .status.rejected { background: var(--bmt-danger-light); color: #991b1b; }
.status.cancelled .status-dot, .status.rejected .status-dot { background: var(--bmt-danger); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--bmt-radius);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--bmt-transition);
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.4;
}

.btn svg { width: 16px; height: 16px; }

.btn-primary { background: var(--bmt-primary); color: #fff !important; }
.btn-primary:hover { background: var(--bmt-primary-hover); color: #fff !important; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(var(--bmt-primary-rgb), 0.25); }
a.btn-primary, a.btn-primary:hover, a.btn-primary:focus, a.btn-primary:visited, a.btn-primary:active { color: #fff !important; text-decoration: none !important; }
.bmt-student-dashboard a.btn-primary:hover,
.bmt-teacher-dashboard a.btn-primary:hover,
.bmt-student-dashboard .btn-primary:hover,
.bmt-teacher-dashboard .btn-primary:hover { color: #fff !important; }

.btn-secondary { background: var(--bmt-bg); color: var(--bmt-text-secondary); border: 1px solid var(--bmt-border); }
.btn-secondary:hover { background: var(--bmt-bg-hover); border-color: #d1d5db; }

.btn-success { background: var(--bmt-success); color: #fff; }
.btn-success:hover { background: #15803d; }

.btn-danger { background: var(--bmt-danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }

.btn-sm { padding: 6px 13px; font-size: 12.5px; border-radius: var(--bmt-radius-sm); }

/* Keep teacher dashboard action buttons visually consistent */
.bmt-teacher-dashboard .btn.btn-sm,
.bmt-teacher-dashboard .bmt-reason-action-btn.btn.btn-sm {
    min-height: 32px;
    line-height: 1.2;
    padding-top: 6px;
    padding-bottom: 6px;
}

/* ── Forms ── */
.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--bmt-text);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 9px 13px;
    border: 1px solid var(--bmt-border);
    border-radius: var(--bmt-radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--bmt-text);
    background: var(--bmt-bg-card);
    transition: border-color var(--bmt-transition), box-shadow var(--bmt-transition);
    line-height: 1.5;
}

.form-input:focus {
    outline: none;
    border-color: var(--bmt-primary);
    box-shadow: 0 0 0 3px rgba(52, 156, 95, 0.1);
}

/* Override browser autofill blue background for form inputs */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
    box-shadow: 0 0 0 30px #fff inset !important;
    -webkit-text-fill-color: #333 !important;
}

.form-input::placeholder { color: var(--bmt-text-light); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-input[type="file"] { padding: 8px; font-size: 13px; }

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

/* ── Profile ── */
.profile-header {
    display: flex;
    align-items: center;
    gap: 22px;
}

.profile-avatar-large {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bmt-primary), #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 26px;
    flex-shrink: 0;
    letter-spacing: 1px;
    overflow: hidden;
}

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

.profile-info h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 8px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--bmt-text-secondary);
}

.profile-meta-item svg {
    width: 15px;
    height: 15px;
    color: var(--bmt-text-muted);
    flex-shrink: 0;
}

/* ── Teacher / Student Cards ── */
.teacher-card {
    display: flex;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--bmt-border);
    border-radius: var(--bmt-radius-lg);
    background: var(--bmt-bg-card);
    transition: box-shadow var(--bmt-transition);
}

.teacher-card:hover { box-shadow: var(--bmt-shadow-md); }

.teacher-avatar {
    width: 52px;
    height: 52px;
    border-radius: var(--bmt-radius-full);
    background: linear-gradient(135deg, var(--bmt-primary), #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    flex-shrink: 0;
}

.teacher-info { flex: 1; min-width: 0; }
.teacher-info h4 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }

.teacher-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 6px; }

.teacher-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--bmt-text-muted);
}

.teacher-meta-item svg { width: 14px; height: 14px; }

.teacher-subjects { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.subject-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bmt-bg);
    border: 1px solid var(--bmt-border);
    border-radius: var(--bmt-radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--bmt-text-secondary);
}

/* Course/Class Card */
.course-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--bmt-border);
    border-radius: var(--bmt-radius);
    background: var(--bmt-bg-card);
    align-items: center;
}

.course-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--bmt-radius);
    background: var(--bmt-primary-light);
    color: var(--bmt-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.course-icon svg { width: 20px; height: 20px; }
.course-info { flex: 1; min-width: 0; }
.course-info h4 { font-size: 14px; font-weight: 600; margin: 0 0 3px; }
.course-info p { font-size: 13px; color: var(--bmt-text-muted); margin: 0 0 8px; }

.progress-bar { height: 5px; background: var(--bmt-border); border-radius: var(--bmt-radius-full); overflow: hidden; }
.progress-fill { height: 100%; background: var(--bmt-primary); border-radius: var(--bmt-radius-full); }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 44px 20px; }

.empty-state-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--bmt-radius-full);
    background: var(--bmt-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--bmt-text-muted);
}

.empty-state-icon svg { width: 26px; height: 26px; }
.empty-state h4 { font-size: 15px; font-weight: 600; margin: 0 0 5px; }
.empty-state p { font-size: 13px; color: var(--bmt-text-muted); margin: 0; }

/* ── Availability ── */
.availability-grid { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

.availability-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid var(--bmt-border);
    border-radius: var(--bmt-radius);
    background: var(--bmt-bg);
    transition: all var(--bmt-transition);
}

.availability-row.enabled {
    background: var(--bmt-bg-card);
    border-color: var(--bmt-primary);
    box-shadow: 0 0 0 1px rgba(var(--bmt-primary-rgb), 0.1);
}

.day-name { width: 96px; font-size: 13.5px; font-weight: 600; color: var(--bmt-text); flex-shrink: 0; }
.availability-row .form-input { max-width: 130px; padding: 7px 10px; font-size: 13px; }

.enable-toggle { margin-left: auto; flex-shrink: 0; }

.toggle-switch {
    width: 42px;
    height: 23px;
    border-radius: 12px;
    background: var(--bmt-border);
    position: relative;
    cursor: pointer;
    transition: background var(--bmt-transition);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform var(--bmt-transition);
}

.toggle-switch.active { background: var(--bmt-primary); }
.toggle-switch.active::after { transform: translateX(19px); }

.availability-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.avail-day-card {
    padding: 12px 14px;
    background: var(--bmt-success-light);
    border-radius: var(--bmt-radius);
    border-left: 3px solid var(--bmt-success);
}

.avail-day-card .avail-day-name { font-weight: 600; text-transform: capitalize; font-size: 13.5px; margin-bottom: 3px; }
.avail-day-card .avail-day-time { font-size: 12.5px; color: var(--bmt-text-secondary); }

/* ── Settings Grid ── */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.setting-card {
    padding: 16px;
    border: 1px solid var(--bmt-border);
    border-radius: var(--bmt-radius);
    background: var(--bmt-bg-card);
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--bmt-text);
    margin-bottom: 8px;
}

.setting-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bmt-primary);
}

.setting-icon svg { width: 17px; height: 17px; }
.setting-card .form-input { margin-bottom: 6px; }
.setting-description { font-size: 12px; color: var(--bmt-text-muted); line-height: 1.4; }

/* Input with unit suffix */
.bmt-input-unit {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}
.bmt-input-unit .form-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
    -moz-appearance: textfield;
}
.bmt-input-unit .form-input::-webkit-inner-spin-button { opacity: 1; }
.bmt-unit-label {
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 42px;
    background: var(--bmt-bg);
    border: 1px solid var(--bmt-border);
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--bmt-text-muted);
    white-space: nowrap;
    user-select: none;
}

.checkbox-setting { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }

/* ── Booking Preview ── */
.booking-preview {
    border: 1px solid var(--bmt-border);
    border-radius: var(--bmt-radius);
    padding: 18px;
    background: var(--bmt-bg);
    margin-top: 14px;
}

.preview-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
}

.preview-title svg { width: 17px; height: 17px; color: var(--bmt-primary); }

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

.preview-item {
    padding: 10px 12px;
    background: var(--bmt-bg-card);
    border-radius: var(--bmt-radius-sm);
    border: 1px solid var(--bmt-border);
}

.preview-item-label { font-size: 12px; color: var(--bmt-text-muted); margin-bottom: 3px; }
.preview-item-value { font-size: 15px; font-weight: 700; color: var(--bmt-text); }

/* ── Student Card ── */
.student-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-bottom: 1px solid var(--bmt-border-light);
}

.student-card:last-child { border-bottom: none; }

.student-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--bmt-radius-full);
    background: linear-gradient(135deg, var(--bmt-primary), #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.student-info { flex: 1; }
.student-info h4 { font-size: 14px; font-weight: 600; margin: 0 0 2px; }
.student-info p { font-size: 13px; color: var(--bmt-text-muted); margin: 0; }

/* ── Subjects Grid ── */
.bmt-subjects-grid { display: flex; flex-wrap: wrap; gap: 7px; }

.bmt-subject-pill { display: inline-flex; cursor: pointer; }
.bmt-subject-pill input { display: none; }

.bmt-subject-pill span {
    padding: 5px 13px;
    border: 1px solid var(--bmt-border);
    border-radius: var(--bmt-radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--bmt-text-secondary);
    transition: all var(--bmt-transition);
    background: var(--bmt-bg-card);
}

.bmt-subject-pill input:checked + span {
    background: var(--bmt-primary-light);
    border-color: var(--bmt-primary);
    color: var(--bmt-primary);
    font-weight: 600;
}

/* ── Withdraw ── */
.withdraw-balance-card {
    background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
    border-radius: var(--bmt-radius-lg);
    padding: 26px;
    margin-bottom: 18px;
    color: #fff;
}

.withdraw-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.withdraw-balance-label { font-size: 13px; font-weight: 500; opacity: 0.85; margin-bottom: 4px; }
.withdraw-balance-amount { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }

.withdraw-request-form { display: flex; gap: 10px; align-items: center; }

.withdraw-request-form .form-input {
    width: 150px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}

.withdraw-request-form .form-input::placeholder { color: rgba(255,255,255,0.6); }
.withdraw-request-form .form-input:focus { border-color: rgba(255,255,255,0.6); box-shadow: 0 0 0 3px rgba(255,255,255,0.15); }

.withdraw-request-form .btn-primary {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
}

.withdraw-request-form .btn-primary:hover { background: rgba(255,255,255,0.3); }

.withdraw-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.withdraw-stat-item {
    background: var(--bmt-bg-card);
    border: 1px solid var(--bmt-border);
    border-radius: var(--bmt-radius);
    padding: 16px;
    text-align: center;
}

.withdraw-stat-item .stat-label { font-size: 12.5px; color: var(--bmt-text-muted); margin-bottom: 5px; }
.withdraw-stat-item .stat-value { font-size: 19px; font-weight: 700; color: var(--bmt-text); }

/* ── Activity Items ── */
.activity-item {
    display: flex;
    gap: 14px;
    padding: 13px 14px;
    background: var(--bmt-bg);
    border-radius: var(--bmt-radius);
    margin-bottom: 8px;
}

.activity-item:last-child { margin-bottom: 0; }

.activity-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--bmt-radius-full);
    background: var(--bmt-primary-light);
    color: var(--bmt-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon svg { width: 17px; height: 17px; }
.activity-text { flex: 1; }
.activity-text h4 { font-size: 13.5px; font-weight: 600; margin: 0 0 2px; }
.activity-text p { font-size: 12.5px; color: var(--bmt-text-muted); margin: 0; }

/* ── Announcements ── */
.announcement-item {
    padding: 18px;
    border-radius: var(--bmt-radius);
    border-left: 4px solid var(--bmt-primary);
    background: var(--bmt-bg);
    margin-bottom: 12px;
}

.announcement-item:last-child { margin-bottom: 0; }
.announcement-item.type-success { border-left-color: var(--bmt-success); }
.announcement-item.type-warning { border-left-color: var(--bmt-warning); }

.announcement-head { display: flex; gap: 14px; align-items: flex-start; }

.announcement-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--bmt-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.announcement-icon svg { width: 20px; height: 20px; }
.announcement-body { flex: 1; }
.announcement-body h4 { font-size: 14.5px; font-weight: 600; margin: 0 0 5px; }
.announcement-body p { font-size: 13.5px; color: var(--bmt-text-secondary); margin: 0 0 6px; line-height: 1.5; }
.announcement-date { font-size: 12.5px; color: var(--bmt-text-muted); }

/* ── Notification Options ── */
.notification-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bmt-bg);
    border-radius: var(--bmt-radius);
    cursor: pointer;
    margin-bottom: 7px;
    transition: background var(--bmt-transition);
}

.notification-option:hover { background: var(--bmt-bg-hover); }

.notification-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--bmt-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.notification-option span { font-size: 13.5px; color: var(--bmt-text-secondary); }

/* ── Misc ── */
.bmt-muted { color: var(--bmt-text-muted); font-size: 13px; }

.profile-tasks-card { border-left: 4px solid var(--bmt-warning); margin-bottom: 22px; }

.profile-tasks-list { margin: 12px 0 0; padding: 0; list-style: none; }

.profile-tasks-list li {
    padding: 7px 0 7px 22px;
    position: relative;
    font-size: 13.5px;
    color: var(--bmt-text-secondary);
    line-height: 1.5;
}

.profile-tasks-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bmt-warning);
}

/* ── Chat ── */
.bmt-chat-container {
    display: flex;
    border: 1px solid var(--bmt-border);
    border-radius: var(--bmt-radius-lg);
    overflow: hidden;
    height: 540px;
    background: var(--bmt-bg-card);
}

.bmt-chat-sidebar {
    width: 200px;
    border-right: 1px solid var(--bmt-border);
    display: flex;
    flex-direction: column;
    background: var(--bmt-bg-card);
    flex-shrink: 0;
}

.bmt-chat-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid var(--bmt-border);
}

.bmt-chat-sidebar-header h2 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }

.bmt-chat-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bmt-bg);
    border: 1px solid var(--bmt-border);
    border-radius: var(--bmt-radius);
    padding: 7px 11px;
}

.bmt-chat-search-icon { color: var(--bmt-text-muted); display: flex; align-items: center; }
.bmt-chat-search-icon svg { width: 15px; height: 15px; }

.bmt-chat-search input {
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--bmt-text);
    outline: none;
    width: 100%;
    font-family: inherit;
}

.bmt-conversations-list { flex: 1; overflow-y: auto; }

.bmt-conversation-item {
    display: flex;
    gap: 11px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background var(--bmt-transition);
    border-bottom: 1px solid var(--bmt-border-light);
}

.bmt-conversation-item:hover { background: var(--bmt-bg-hover); }
.bmt-conversation-item.active { background: var(--bmt-bg-active); }

.bmt-conversation-avatar {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--bmt-radius-full);
    background: linear-gradient(135deg, var(--bmt-primary), #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bmt-conversation-avatar img { width: 40px; height: 40px; border-radius: var(--bmt-radius-full); object-fit: cover; }
.bmt-conversation-initials { color: #fff; font-weight: 600; font-size: 13px; }

.online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--bmt-bg-card);
}

.bmt-conversation-info { flex: 1; min-width: 0; }
.bmt-conversation-header { display: flex; justify-content: space-between; margin-bottom: 3px; }
.bmt-conversation-name { font-size: 13.5px; font-weight: 600; color: var(--bmt-text); }
.bmt-conversation-time { font-size: 11.5px; color: var(--bmt-text-muted); }
.bmt-conversation-preview { display: flex; justify-content: space-between; align-items: center; }

.bmt-conversation-last-msg {
    font-size: 12.5px;
    color: var(--bmt-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.bmt-conversation-unread {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--bmt-radius-full);
    background: var(--bmt-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 8px;
}

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

.bmt-chat-header { padding: 12px 18px; border-bottom: 1px solid var(--bmt-border); }
.bmt-chat-header-user { display: flex; align-items: center; gap: 11px; }

.bmt-mobile-back {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--bmt-text);
    padding: 0;
    line-height: 1;
}

.bmt-chat-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--bmt-radius-full);
    background: linear-gradient(135deg, var(--bmt-primary), #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.bmt-chat-header-avatar img { width: 36px; height: 36px; border-radius: var(--bmt-radius-full); object-fit: cover; }
.bmt-chat-header-avatar span { color: #fff; font-weight: 600; font-size: 12px; }

.bmt-chat-header-info h3 { font-size: 14px; font-weight: 600; margin: 0; }
.bmt-chat-header-info p { font-size: 12px; color: var(--bmt-text-muted); margin: 0; }

.bmt-chat-messages { flex: 1; overflow-y: auto; padding: 18px; background: var(--bmt-bg); }

.bmt-chat-thread { display: none; }
.bmt-chat-thread.active { display: block; }

.bmt-date-separator { text-align: center; margin: 14px 0; }

.bmt-date-separator span {
    background: var(--bmt-bg);
    padding: 3px 12px;
    font-size: 11.5px;
    color: var(--bmt-text-muted);
    border-radius: var(--bmt-radius-full);
    border: 1px solid var(--bmt-border);
}

.bmt-message-group { display: flex; margin-bottom: 6px; }
.bmt-message-group.sent { justify-content: flex-end; }
.bmt-message-group.received { justify-content: flex-start; }

.bmt-message {
    max-width: 70%;
    padding: 9px 13px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    word-break: break-word;
}

.bmt-message.sent { background: var(--bmt-primary); color: #fff; border-bottom-right-radius: 4px; }
.bmt-message.received { background: var(--bmt-bg-card); color: var(--bmt-text); border: 1px solid var(--bmt-border); border-bottom-left-radius: 4px; }
.bmt-message-time { font-size: 11px; margin-top: 3px; opacity: 0.6; }

.bmt-chat-input-container { padding: 12px 18px; border-top: 1px solid var(--bmt-border); }
.bmt-chat-input-wrapper { display: flex; align-items: flex-end; gap: 8px; }

.bmt-chat-input {
    flex: 1;
    padding: 9px 13px;
    border: 1px solid var(--bmt-border);
    border-radius: var(--bmt-radius);
    font-size: 13.5px;
    font-family: inherit;
    color: var(--bmt-text);
    background: var(--bmt-bg);
    resize: none;
    min-height: 40px;
    max-height: 110px;
    outline: none;
    transition: border-color var(--bmt-transition);
}

.bmt-chat-input:focus { border-color: var(--bmt-primary); }

.bmt-chat-input-actions { display: flex; gap: 6px; }

.bmt-input-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--bmt-radius);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: all var(--bmt-transition);
}

.bmt-send-btn { background: var(--bmt-primary); color: #fff; }
.bmt-send-btn:hover:not(:disabled) { background: var(--bmt-primary-hover); }
.bmt-send-btn:disabled { opacity: 0.4; cursor: default; }

/* ── Alert ── */
.bmt-alert {
    padding: 12px 16px;
    border-radius: var(--bmt-radius);
    margin-bottom: 18px;
    font-size: 14px;
}

.bmt-alert-success { background: var(--bmt-success-light); color: #166534; border: 1px solid #bbf7d0; }
.bmt-alert-error { background: var(--bmt-danger-light); color: #991b1b; border: 1px solid #fecaca; }

/* ── Profile page specifics ── */
.profile-photo-upload {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-photo-upload img,
.profile-photo-upload .profile-avatar-large {
    width: 72px;
    height: 72px;
    border-radius: 16px;
}

/* ── Responsive ── */
@media (max-width: 1366px) {
    :root { --bmt-sidebar-w: 230px; }
    .dashboard-container { gap: 20px; }
    .sidebar-header { padding: 18px 14px 14px; }
    .nav-menu { padding: 8px 8px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .nav-item { padding: 8px 12px; font-size: 13px; gap: 10px; }
    .main-content { padding: 26px; }
}

@media (max-width: 1280px) {
    :root { --bmt-sidebar-w: 210px; }
    .dashboard-container { gap: 16px; }
    .sidebar-header { padding: 14px 12px 12px; }
    .user-avatar { width: 36px; height: 36px; font-size: 13px; }
    .user-details h4 { font-size: 13px; }
    .user-role { font-size: 10px; }
    .nav-menu { padding: 6px 6px 16px; }
    .nav-item { padding: 7px 10px; font-size: 12px; gap: 8px; }
    .nav-item svg { width: 17px; height: 17px; }
    .credits-badge { padding: 10px 12px; margin: 0 10px 8px; }
    .credits-badge span:last-child { font-size: 15px; }
    .main-content { padding: 20px; padding-right: 24px; }
    .page-header { margin-bottom: 20px; }
    .page-header h2 { font-size: 18px; }
    .page-header p { font-size: 13px; }
    .stats-grid { gap: 12px; }
    .stat-card { padding: 14px; gap: 10px; }
    .stat-icon { width: 40px; height: 40px; }
    .stat-icon svg { width: 20px; height: 20px; }
    .stat-details h3 { font-size: 18px; }
    .stat-details p { font-size: 11px; }
    .card { padding: 16px; }
    .card-header h3 { font-size: 14px; }
    .section-title { font-size: 16px; margin-bottom: 14px; }
}

@media (max-width: 1024px) {
    .dashboard-container { gap: 0; }
    .sidebar { 
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 101;
        transform: translateX(-100%);
        height: 100vh;
        width: 280px;
        min-width: 280px;
        max-width: 280px;
    }
    .sidebar.open { transform: translateX(0); box-shadow: var(--bmt-shadow-lg); }
    .bmt-mobile-header { display: flex; }
    .bmt-hamburger { display: flex; }
    .bmt-sidebar-close { display: flex; }
    .sidebar-header { position: relative; padding-right: 50px; }
    .main-content { padding: 22px 18px; padding-top: 72px; padding-bottom: 120px; }
    .page-header { padding-left: 0; }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
    }
    .sidebar.open .sidebar-header {
        padding: 24px 20px 20px;
    }
    .sidebar.open .user-avatar {
        width: 52px;
        height: 52px;
        font-size: 17px;
    }
    .sidebar.open .user-details h4 {
        font-size: 16px;
    }
    .sidebar.open .user-details p {
        font-size: 13px;
    }
    .sidebar.open .sidebar-credits {
        margin-top: 16px;
        padding: 14px 16px;
    }
    .sidebar.open .sidebar-credits strong,
    .sidebar.open .sidebar-credits span {
        font-size: 15px;
    }
    .sidebar.open .bmt-sidebar-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
        top: 24px;
        right: 20px;
        transform: none;
    }
    .sidebar.open .nav-item {
        padding: 12px 20px;
        font-size: 15px;
        gap: 14px;
    }
    .sidebar.open .nav-item .icon svg {
        width: 20px;
        height: 20px;
    }
    .sidebar.open .nav-menu {
        padding: 10px 12px 30px;
    }
    .sidebar.open .nav-divider {
        margin: 10px 20px;
    }
    .main-content { padding: 14px 12px; padding-top: 68px; padding-bottom: 120px; }
    .page-header h2 { font-size: 19px; }
    .page-header p { font-size: 13px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 14px; gap: 10px; }
    .stat-icon { width: 40px; height: 40px; }
    .stat-icon svg { width: 20px; height: 20px; }
    .stat-details h3 { font-size: 18px; }
    .card { padding: 16px; }
    .grid-2 { grid-template-columns: 1fr; }
    .profile-header { flex-direction: column; text-align: center; gap: 14px; }
    .profile-meta { justify-content: center; }
    .teacher-card { flex-direction: column; text-align: center; align-items: center; }
    .teacher-subjects, .teacher-meta { justify-content: center; }
    .withdraw-balance-row { flex-direction: column; text-align: center; }
    .withdraw-request-form { flex-direction: column; width: 100%; }
    .withdraw-request-form .form-input { width: 100%; }
    .withdraw-stats { grid-template-columns: 1fr; }
    .availability-row { flex-wrap: wrap; gap: 8px; }
    .day-name { width: 100%; }
    .availability-row .form-input { max-width: none; flex: 1; }
    .settings-grid { grid-template-columns: 1fr; }
    .course-card { flex-direction: column; text-align: center; align-items: center; }
    .bmt-chat-container { height: 460px; }
    .bmt-chat-sidebar { width: 100%; position: absolute; inset: 0; z-index: 2; }
    .bmt-chat-sidebar.hidden { display: none; }
    .bmt-mobile-back { display: block; }
    .bmt-message { max-width: 85%; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .main-content { padding: 10px 8px; padding-top: 64px; padding-bottom: 120px; }
    .bmt-mobile-header { height: 52px; padding: 0 12px; }
    .bmt-mobile-logo img { height: 28px; }
    .page-header h2 { font-size: 17px; }
    .page-header p { font-size: 12px; }
    .table-container thead th, .table-container tbody td { padding: 9px 10px; font-size: 12.5px; }
    .bmt-chat-container { height: 380px; }
}

@media print {
    .sidebar, .bmt-hamburger, .bmt-sidebar-overlay, .btn { display: none !important; }
    .main-content { margin-left: 0 !important; padding: 0 !important; }
}

/* Search form */
.bmt-search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
}

.bmt-search-form .form-input { flex: 1; }

.announcements-list {
    display: grid;
    gap: 14px;
}


/* ============================================================
   Login & Register Styles
   ============================================================ */

.bmt-login-container {
    width: 100%;
    max-width: 600px;
    margin: 60px auto;
    padding: 0 20px;
}

.bmt-login-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 40px 35px;
}

.bmt-login-header {
    text-align: center;
    margin-bottom: 35px;
}

.bmt-login-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e8f5ee 0%, #c8ecd5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #349C5F;
}

.bmt-login-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.bmt-login-header p {
    color: #737373;
    font-size: 15px;
}

.bmt-login-group {
    margin-bottom: 20px;
}

.bmt-login-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.bmt-login-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    transition: all 0.2s;
    font-family: inherit;
    background: #fff;
}

.bmt-login-control:focus {
    outline: none;
    border-color: #349C5F;
    box-shadow: 0 0 0 3px rgba(52, 156, 95, 0.1);
    background: #fff;
}

/* Override browser autofill blue background */
.bmt-login-control:-webkit-autofill,
.bmt-login-control:-webkit-autofill:hover,
.bmt-login-control:-webkit-autofill:focus,
.bmt-login-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
    box-shadow: 0 0 0 30px #fff inset !important;
    -webkit-text-fill-color: #333 !important;
}

.bmt-login-control::placeholder {
    color: #999;
}

.bmt-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.bmt-login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.bmt-login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.bmt-login-forgot {
    color: #349C5F;
    text-decoration: none;
    font-weight: 500;
}

.bmt-login-forgot:hover {
    text-decoration: underline;
}

.bmt-login-submit {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #349C5F;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.bmt-login-submit:hover {
    background: #2a7d4b;
}

.bmt-login-submit:active {
    transform: translateY(1px);
}

.bmt-login-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.bmt-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e5e5;
}

.bmt-login-divider span {
    background: #fff;
    padding: 0 15px;
    position: relative;
    color: #999;
    font-size: 13px;
}

.bmt-login-social {
    display: flex;
    gap: 12px;
}

.bmt-login-social-btn {
    flex: 1;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bmt-login-social-btn:hover {
    background: #f7f8fa;
    border-color: #b3b3b3;
}

.bmt-login-signup {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
    font-size: 14px;
    color: #737373;
}

.bmt-login-signup a {
    color: #349C5F;
    text-decoration: none;
    font-weight: 500;
}

.bmt-login-signup a:hover {
    text-decoration: underline;
}

.bmt-login-role-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #f7f8fa;
    padding: 4px;
    border-radius: 6px;
}

.bmt-login-role-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #666 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: none !important;
}

.bmt-login-role-tab.active {
    background: #fff !important;
    color: #1a1a1a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.bmt-login-role-tab:hover {
    background: #e8f5ee;
    color: #1a1a1a;
}

.bmt-login-role-tab:focus {
    outline: none;
}

.bmt-register-container {
    width: 100%;
    max-width: 600px;
    margin: 60px auto;
    padding: 0 20px;
}

.bmt-register-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 40px 35px;
}

.bmt-register-header {
    text-align: center;
    margin-bottom: 35px;
}

.bmt-register-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.bmt-register-header p {
    color: #737373;
    font-size: 15px;
}

.bmt-register-role-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #f7f8fa;
    padding: 4px;
    border-radius: 6px;
}

.bmt-register-role-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #666 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.bmt-register-role-tab.active {
    background: #fff !important;
    color: #1a1a1a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.bmt-register-role-tab:hover {
    background: #e8f5ee;
    color: #1a1a1a;
}

.bmt-register-form .bmt-register-teacher-fields {
    display: none;
}

.bmt-register-form.is-teacher .bmt-register-teacher-fields {
    display: grid;
}

.bmt-register-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
    font-size: 14px;
    color: #737373;
}

.bmt-register-footer a {
    color: #349C5F;
    text-decoration: none;
    font-weight: 500;
}

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

.bmt-register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .bmt-register-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Hide theme header & footer on dashboard pages ── */
.bmt-student-dashboard ~ footer,
.bmt-teacher-dashboard ~ footer,
body:has(.bmt-student-dashboard) header,
body:has(.bmt-teacher-dashboard) header,
body:has(.bmt-student-dashboard) footer,
body:has(.bmt-teacher-dashboard) footer,
body:has(.bmt-student-dashboard) .site-header,
body:has(.bmt-teacher-dashboard) .site-header,
body:has(.bmt-student-dashboard) .site-footer,
body:has(.bmt-teacher-dashboard) .site-footer,
body:has(.bmt-student-dashboard) #masthead,
body:has(.bmt-teacher-dashboard) #masthead,
body:has(.bmt-student-dashboard) #colophon,
body:has(.bmt-teacher-dashboard) #colophon,
body:has(.bmt-student-dashboard) .header,
body:has(.bmt-teacher-dashboard) .header,
body:has(.bmt-student-dashboard) .footer,
body:has(.bmt-teacher-dashboard) .footer,
body:has(.bmt-student-dashboard) .elementor-location-header,
body:has(.bmt-teacher-dashboard) .elementor-location-header,
body:has(.bmt-student-dashboard) .elementor-location-footer,
body:has(.bmt-teacher-dashboard) .elementor-location-footer,
body:has(.bmt-student-dashboard) #site-header,
body:has(.bmt-teacher-dashboard) #site-header,
body:has(.bmt-student-dashboard) #site-footer,
body:has(.bmt-teacher-dashboard) #site-footer,
body:has(.bmt-student-dashboard) .wp-site-blocks > header,
body:has(.bmt-teacher-dashboard) .wp-site-blocks > header,
body:has(.bmt-student-dashboard) .wp-site-blocks > footer,
body:has(.bmt-teacher-dashboard) .wp-site-blocks > footer,
body:has(.bmt-student-dashboard) nav.navbar,
body:has(.bmt-teacher-dashboard) nav.navbar,
body:has(.bmt-student-dashboard) .page-title,
body:has(.bmt-teacher-dashboard) .page-title,
body:has(.bmt-student-dashboard) .entry-title,
body:has(.bmt-teacher-dashboard) .entry-title,
body:has(.bmt-student-dashboard) .breadcrumb,
body:has(.bmt-teacher-dashboard) .breadcrumb,
body:has(.bmt-student-dashboard) .entry-header,
body:has(.bmt-teacher-dashboard) .entry-header {
    display: none !important;
}

body:has(.bmt-student-dashboard) .site-content,
body:has(.bmt-teacher-dashboard) .site-content,
body:has(.bmt-student-dashboard) .entry-content,
body:has(.bmt-teacher-dashboard) .entry-content,
body:has(.bmt-student-dashboard) .site-main,
body:has(.bmt-teacher-dashboard) .site-main,
body:has(.bmt-student-dashboard) main,
body:has(.bmt-teacher-dashboard) main,
body:has(.bmt-student-dashboard) #content,
body:has(.bmt-teacher-dashboard) #content,
body:has(.bmt-student-dashboard) #primary,
body:has(.bmt-teacher-dashboard) #primary,
body:has(.bmt-student-dashboard) .content-area,
body:has(.bmt-teacher-dashboard) .content-area,
body:has(.bmt-student-dashboard) article,
body:has(.bmt-teacher-dashboard) article {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: visible !important;
    float: none !important;
}

/* ── Fallback: JS-added body class for browsers without :has() ── */
body.bmt-dashboard-active header,
body.bmt-dashboard-active footer,
body.bmt-dashboard-active .site-header,
body.bmt-dashboard-active .site-footer,
body.bmt-dashboard-active #masthead,
body.bmt-dashboard-active #colophon,
body.bmt-dashboard-active .header,
body.bmt-dashboard-active .footer,
body.bmt-dashboard-active .elementor-location-header,
body.bmt-dashboard-active .elementor-location-footer,
body.bmt-dashboard-active #site-header,
body.bmt-dashboard-active #site-footer,
body.bmt-dashboard-active .wp-site-blocks > header,
body.bmt-dashboard-active .wp-site-blocks > footer,
body.bmt-dashboard-active nav.navbar,
body.bmt-dashboard-active .page-title,
body.bmt-dashboard-active .entry-title,
body.bmt-dashboard-active .breadcrumb,
body.bmt-dashboard-active .entry-header {
    display: none !important;
}

body.bmt-dashboard-active .site-content,
body.bmt-dashboard-active .entry-content,
body.bmt-dashboard-active .site-main,
body.bmt-dashboard-active main,
body.bmt-dashboard-active #content,
body.bmt-dashboard-active #primary,
body.bmt-dashboard-active .content-area,
body.bmt-dashboard-active article {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: visible !important;
    float: none !important;
}


/* Certificate Link Hover */
.bmt-certificate-link:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    transform: translateY(-1px);
}
/* ── Star Rating Selector ── */
.bmt-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.bmt-star-rating input[type="radio"] {
    display: none;
}

.bmt-star-rating label {
    font-size: 32px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.15s ease;
}

.bmt-star-rating label:hover,
.bmt-star-rating label:hover ~ label,
.bmt-star-rating input[type="radio"]:checked ~ label {
    color: #fbbf24;
}

.bmt-star-rating input[type="radio"]:checked + label {
    color: #fbbf24;
}
/* ── Sidebar Balance Card (Teacher Dashboard) ── */
.bmt-sidebar-balance {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: var(--bmt-radius);
    text-align: center;
}

.bmt-balance-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.bmt-balance-amount {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.bmt-balance-amount .woocommerce-Price-amount {
    color: #fff;
}

/* ── Sidebar Balance/Credits - Simple Style ── */
.bmt-sidebar-balance-simple {
    margin-top: 16px;
    padding: 12px 14px;
    border-top: 1px solid var(--bmt-border);
    text-align: center;
}

.bmt-balance-label-simple {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.bmt-balance-amount-simple {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}

.bmt-balance-amount-simple .woocommerce-Price-amount {
    color: #1f2937;
}