/* ==========================================
   Tutor Marketplace — Main Stylesheet
   ========================================== */
:root {
    --tm-primary:    #ff7aac;
    --tm-primary-dark: #e55555;
    --tm-secondary:  #4a90d9;
    --tm-text:       #1a1a2e;
    --tm-text-muted: #666;
    --tm-border:     #e8e8e8;
    --tm-bg:         #f8f9fa;
    --tm-white:      #ffffff;
    --tm-success:    #28a745;
    --tm-warning:    #ffc107;
    --tm-radius:     12px;
    --tm-shadow:     0 2px 12px rgba(0,0,0,0.08);
    --tm-shadow-hover: 0 8px 24px rgba(0,0,0,0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.tm-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Figtree', 'Inter', 'Noto Sans', sans-serif;
    color: var(--tm-text);
}

/* ---- Buttons ---- */
.tm-btn-primary {
    background: var(--tm-primary);
    color: #000;
    border: none;
    padding: 7px 24px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    display: inline-block;
}
.tm-btn-full {
    border: 1px solid black;
}
.tm-btn-primary {
    border: 2px solid #000;
}
.tm-btn-primary:hover { background: #f8a2c3; transform: translateY(-1px); }
.tm-btn-primary:disabled { background: #ccc; cursor: not-allowed; transform: none; }
.tm-book-trial-btn { background: #ff7aac; }
.tm-book-trial-btn:hover { background: #ff7aac; filter: brightness(0.92); transform: translateY(-1px); }
.tm-btn-secondary {
    background: var(--tm-white);
    color: #000;
    border: 2px solid #14145226;
    padding: 7px 22px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.tm-btn-secondary:hover { background: #4747850f; color: #000; }
.tm-btn-full { width: 100%; text-align: center; }
.tm-btn-sm { padding: 6px 14px; font-size: 13px; }

/* ---- Hero ---- */
.tm-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 60px 40px;
    border-radius: var(--tm-radius);
    margin-bottom: 30px;
    text-align: center;
}
.tm-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.tm-hero p  { font-size: 18px; opacity: 0.85; margin-bottom: 28px; }
.tm-hero-search {
    display: flex;
    gap: 12px;
    max-width: 560px;
    margin: 0 auto;
}
.tm-hero-search input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 30px;
    border: none;
    font-size: 15px;
    outline: none;
}

/* ---- Filters ---- */
.tm-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px;
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow);
    margin-bottom: 24px;
    align-items: flex-end;
}
.tm-filter-group { display: flex; flex-direction: column; gap: 6px; }
.tm-filter-group label { font-size: 12px; font-weight: 600; color: var(--tm-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.tm-filter-group select,
.tm-filter-group input[type="number"] {
    padding: 8px 14px;
    border: 1.5px solid var(--tm-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--tm-text);
    background: var(--tm-white);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}
.tm-filter-group select:hover, .tm-filter-group input[type="number"]:hover {
    border: 1.5px solid #000;
}
.tm-filter-group select:focus,
.tm-filter-group input[type="number"]:focus { border-color: var(--tm-primary); }
.tm-price-range { display: flex; align-items: center; gap: 8px; }
.tm-price-range input { width: 90px; }
.tm-filter-checkbox { justify-content: flex-end; }
.tm-filter-checkbox label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }

/* ---- Results Header ---- */
.tm-results-header {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--tm-text-muted);
}

/* ---- Tutor Grid ---- */
.tm-tutor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

/* ---- Tutor Card ---- */
.tm-tutor-card {
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    padding: 22px;
    box-shadow: var(--tm-shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
	border:2px solid #dcdce5;
}
.tm-tutor-card:hover { box-shadow: var(--tm-shadow-hover); transform: translateY(-3px); }

.tm-tutor-card-header { display: flex; gap: 16px; align-items: flex-start; }
.tm-tutor-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tm-tutor-card-info { flex: 1; }
.tm-tutor-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.tm-tutor-tagline { font-size: 13px; color: var(--tm-text-muted); margin-bottom: 6px; }

.tm-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.tm-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tm-badge-super    { background: #fff3cd; color: #856404; }
.tm-badge-professional { background: #d1ecf1; color: #0c5460; }
.tm-badge-style    { background: #f0f4ff; color: var(--tm-secondary); }

.tm-tutor-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--tm-text-muted);
}
.tm-rating { color: var(--tm-warning); font-weight: 700; }

.tm-tutor-bio {
    font-size: 13px;
    color: var(--tm-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tm-tutor-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--tm-border);
}
.tm-tutor-price { font-size: 18px; font-weight: 800; color: var(--tm-text); }
.tm-tutor-price small { font-size: 12px; font-weight: 400; color: var(--tm-text-muted); }
.tm-tutor-actions { display: flex; gap: 8px; }

/* ---- Skeleton ---- */
.tm-skeleton { animation: tm-pulse 1.5s infinite; }
.tm-skeleton-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--tm-border); margin-bottom: 12px;
}
.tm-skeleton-line {
    height: 14px; background: var(--tm-border); border-radius: 4px; margin-bottom: 8px;
}
.tm-skeleton-short { width: 60%; }
@keyframes tm-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ---- Pagination ---- */
.tm-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
}
.tm-page-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--tm-border);
    background: var(--tm-white);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.tm-page-btn.active { background: var(--tm-primary); color: #fff; border-color: var(--tm-primary); }
.tm-page-btn:hover:not(.active) { border-color: var(--tm-primary); color: var(--tm-primary); }

/* ---- Modal ---- */
.tm-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.tm-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.tm-modal-content {
    position: relative;
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    padding: 32px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.tm-modal-small { max-width: 380px; }
.tm-modal-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; font-size: 20px; cursor: pointer; color: var(--tm-text-muted);
}
.tm-modal-content h2 { margin-bottom: 4px; font-size: 20px; }
.tm-modal-subtitle { color: var(--tm-text-muted); font-size: 14px; margin-bottom: 20px; }

/* ---- Duration Tabs ---- */
.tm-duration-tabs {
    display: flex;
    gap: 0;
    border: 1.5px solid var(--tm-border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.tm-duration-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: var(--tm-white);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--tm-text-muted);
    transition: all 0.2s;
}
.tm-duration-btn.active { background: var(--tm-primary); color: #fff; }

/* ---- Calendar ---- */
.tm-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.tm-calendar-header button {
    background: none; border: 1.5px solid var(--tm-border);
    border-radius: 8px; width: 34px; height: 34px;
    cursor: pointer; font-size: 18px;
    transition: border-color 0.2s;
}
.tm-calendar-header button:hover { border-color: var(--tm-primary); color: var(--tm-primary); }
.tm-calendar-header span { font-weight: 700; font-size: 15px; }

.tm-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 20px;
}
.tm-calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1.5px solid transparent;
}
.tm-calendar-day span:first-child { font-size: 11px; color: var(--tm-text-muted); font-weight: 600; }
.tm-calendar-day span:last-child { font-size: 16px; font-weight: 700; margin-top: 4px; }
.tm-calendar-day:hover { background: #fff3f3; border-color: var(--tm-primary); }
.tm-calendar-day.active { background: var(--tm-primary); color: #fff; border-color: var(--tm-primary); }
.tm-calendar-day.active span:first-child { color: rgba(255,255,255,0.8); }
.tm-calendar-day.today { border-color: var(--tm-primary); }
.tm-calendar-day.disabled { opacity: 0.4; pointer-events: none; }

/* ---- Time Slots ---- */
.tm-time-slots { margin-bottom: 20px; }
.tm-time-slots-section h4 { font-size: 13px; color: var(--tm-text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.tm-slots-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tm-slot-btn {
    padding: 8px 16px;
    border: 1.5px solid var(--tm-border);
    border-radius: 8px;
    background: var(--tm-white);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.tm-slot-btn:hover { border-color: var(--tm-primary); color: var(--tm-primary); }
.tm-slot-btn.active { background: var(--tm-primary); color: #fff; border-color: var(--tm-primary); }
.tm-select-date-hint { color: var(--tm-text-muted); font-size: 14px; text-align: center; padding: 20px 0; }

/* ---- Booking Summary ---- */
.tm-booking-summary {
    background: var(--tm-bg);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.8;
}

/* ---- Profile Page ---- */
.tm-profile-page { padding: 40px 20px; }
.tm-profile-layout { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
.tm-profile-header { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 28px; }
.tm-profile-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.tm-profile-header h1 { font-size: 26px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.tm-profile-tagline { color: var(--tm-text-muted); font-size: 15px; }
.tm-profile-country { color: var(--tm-text-muted); font-size: 14px; margin-top: 4px; }

.tm-profile-stats {
    display: flex; gap: 28px;
    padding: 20px 0;
    border-top: 1px solid var(--tm-border);
    border-bottom: 1px solid var(--tm-border);
    margin-bottom: 28px;
}
.tm-stat { display: flex; flex-direction: column; }
.tm-stat strong { font-size: 22px; font-weight: 800; }
.tm-stat span { font-size: 12px; color: var(--tm-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.tm-profile-section { margin-bottom: 24px; }
.tm-profile-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.tm-profile-section p { font-size: 14px; color: var(--tm-text-muted); line-height: 1.7; }

.tm-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-tag {
    background: #f0f4ff;
    color: var(--tm-secondary);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.tm-booking-card {
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    padding: 28px;
    box-shadow: var(--tm-shadow);
    position: sticky;
    top: 20px;
}
.tm-booking-price { margin-bottom: 20px; }
.tm-booking-price strong { font-size: 26px; font-weight: 800; }
.tm-trial-price { display: block; font-size: 16px; color: var(--tm-text-muted); margin-top: 4px; font-weight:600; }

/* ---- Dashboard ---- */
.tm-dashboard { padding: 40px 20px; }
.tm-dashboard h2 { font-size: 28px; font-weight: 800; margin-bottom: 24px; }
.tm-dashboard-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--tm-border); margin-bottom: 28px; }
.tm-tab-btn {
    padding: 10px 20px; border: none; background: none;
    font-size: 14px; font-weight: 600; cursor: pointer;
    color: var(--tm-text-muted); border-bottom: 2px solid transparent;
    margin-bottom: -2px; transition: all 0.2s;
}
.tm-tab-btn.active { color: var(--tm-primary); border-bottom-color: var(--tm-primary); }
.tm-tab-panel { display: none; }
.tm-tab-panel.active { display: block; }

/* ---- Table ---- */
.tm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tm-table th, .tm-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--tm-border); }
.tm-table th { font-weight: 700; color: var(--tm-text-muted); font-size: 12px; text-transform: uppercase; }

.tm-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}
.tm-status-pending   { background: #fff3cd; color: #856404; }
.tm-status-confirmed { background: #d4edda; color: #155724; }
.tm-status-cancelled { background: #f8d7da; color: #721c24; }
.tm-status-completed { background: #cce5ff; color: #004085; }

/* ---- Form ---- */
.tm-form { max-width: 600px; }
.tm-form-centered { margin: 0 auto; }
.tm-form-group { margin-bottom: 18px; }
.tm-form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--tm-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.tm-form-group input,
.tm-form-group select,
.tm-form-group textarea {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--tm-border);
    border-radius: 8px; font-size: 15px;
    outline: none; transition: border-color 0.2s;
}
.tm-form-group input:focus,
.tm-form-group select:focus,
.tm-form-group textarea:focus { border-color: var(--tm-primary); }
.tm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tm-form-msg { font-size: 13px; color: var(--tm-success); margin-left: 12px; }
.tm-form-msg.error { color: #dc3545; }

/* ---- Chat ---- */
.tm-chat-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    height: 600px;
    border: 1.5px solid var(--tm-border);
    border-radius: var(--tm-radius);
    overflow: hidden;
}
.tm-chat-sidebar {
    border-right: 1.5px solid var(--tm-border);
    display: flex;
    flex-direction: column;
}
.tm-chat-sidebar h3 {
    padding: 18px 20px;
    font-size: 16px;
    border-bottom: 1px solid var(--tm-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.tm-conversations-list { flex: 1; overflow-y: auto; }
.tm-conversation-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--tm-border);
    transition: background 0.15s;
    align-items: center;
}
.tm-conversation-item:hover { background: var(--tm-bg); }
.tm-conversation-item.active { background: #fff3f3; }
.tm-conv-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tm-conv-info { flex: 1; min-width: 0; }
.tm-conv-name { font-size: 14px; font-weight: 700; }
.tm-conv-time { font-size: 11px; color: var(--tm-text-muted); }
.tm-unread-badge {
    background: var(--tm-primary);
    color: #fff;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    min-width: 20px;
    text-align: center;
}

.tm-chat-main { display: flex; flex-direction: column; }
.tm-chat-header {
    display: flex; gap: 12px; align-items: center;
    padding: 14px 20px; border-bottom: 1px solid var(--tm-border);
}
.tm-chat-header img { width: 40px; height: 40px; border-radius: 50%; }
.tm-chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.tm-message { max-width: 70%; }
.tm-message.mine { align-self: flex-end; }
.tm-message-bubble {
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}
.tm-message .tm-message-bubble { background: var(--tm-bg); }
.tm-message.mine .tm-message-bubble { background: var(--tm-primary); color: #fff; }
.tm-message-time { font-size: 11px; color: var(--tm-text-muted); margin-top: 4px; text-align: right; }

.tm-chat-form {
    display: flex; gap: 10px; padding: 14px 20px;
    border-top: 1px solid var(--tm-border);
}
.tm-chat-form input {
    flex: 1; padding: 10px 16px;
    border: 1.5px solid var(--tm-border);
    border-radius: 24px; font-size: 14px; outline: none;
    transition: border-color 0.2s;
}
.tm-chat-form input:focus { border-color: var(--tm-primary); }
.tm-chat-empty { display: flex; align-items: center; justify-content: center; flex: 1; color: var(--tm-text-muted); }

/* ---- Availability Grid ---- */
.tm-availability-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-bottom: 20px; }
.tm-avail-day h4 { font-size: 12px; font-weight: 700; margin-bottom: 8px; color: var(--tm-text-muted); text-transform: uppercase; }
.tm-avail-slot {
    background: var(--tm-bg);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.tm-avail-slot select { font-size: 12px; padding: 2px; border: 1px solid var(--tm-border); border-radius: 4px; }
.tm-avail-slot .tm-remove-slot { background: none; border: none; color: #dc3545; cursor: pointer; margin-left: auto; }
.tm-add-slot {
    font-size: 12px; color: var(--tm-primary); background: none;
    border: 1.5px dashed var(--tm-primary); border-radius: 6px;
    padding: 5px 10px; cursor: pointer; width: 100%;
    transition: background 0.2s;
}
.tm-add-slot:hover { background: #fff3f3; }

/* ---- Earnings ---- */
.tm-earnings-cards { display: flex; gap: 20px; }
.tm-earnings-card {
    flex: 1; background: var(--tm-white); border: 1.5px solid var(--tm-border);
    border-radius: var(--tm-radius); padding: 24px; text-align: center;
}
.tm-earnings-card strong { display: block; font-size: 32px; font-weight: 800; color: var(--tm-text); }
.tm-earnings-card span { font-size: 13px; color: var(--tm-text-muted); margin-top: 4px; display: block; }
.tm-earnings-highlight { border-color: var(--tm-success); }
.tm-earnings-highlight strong { color: var(--tm-success); }

/* ---- Become Tutor ---- */
.tm-become-tutor { padding: 60px 20px; }
.tm-become-hero { text-align: center; margin-bottom: 48px; }
.tm-become-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.tm-become-hero p { font-size: 18px; color: var(--tm-text-muted); }
.tm-become-steps { display: flex; justify-content: center; gap: 40px; margin-bottom: 48px; }
.tm-step { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tm-step span {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--tm-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800;
}
.tm-step p { font-size: 14px; font-weight: 600; text-align: center; }

/* ---- Lesson Cards ---- */
.tm-lessons-list { display: flex; flex-direction: column; gap: 16px; }
.tm-lesson-card {
    display: flex; gap: 16px; align-items: center;
    background: var(--tm-white); border-radius: var(--tm-radius);
    padding: 18px 24px; box-shadow: var(--tm-shadow);
}
.tm-lesson-card img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.tm-lesson-info { flex: 1; }
.tm-lesson-info h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.tm-lesson-info p { font-size: 13px; color: var(--tm-text-muted); margin-bottom: 6px; }
.tm-lesson-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.tm-lesson-price { font-size: 18px; font-weight: 800; }

/* ---- Quick Stats ---- */
.tm-quick-stats {
    display: flex; gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.tm-qs-card {
    flex: 1; min-width: 120px;
    background: var(--tm-white);
    border-radius: var(--tm-radius);
    padding: 18px 20px;
    box-shadow: var(--tm-shadow);
    text-align: center;
    border-top: 3px solid var(--tm-border);
}
.tm-qs-card strong { display: block; font-size: 26px; font-weight: 800; color: var(--tm-text); }
.tm-qs-card span   { font-size: 12px; color: var(--tm-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.tm-qs-green { border-top-color: var(--tm-success); }
.tm-qs-green strong { color: var(--tm-success); }

/* ---- Payment Settings ---- */
.tm-payment-info-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 14px;
}
.tm-payout-history { margin-top: 32px; }
.tm-payout-history h3 { margin-bottom: 14px; font-size: 16px; }

/* ---- Video Class ---- */
.tm-modal-video {
    max-width: 1120px !important;
    width: 96% !important;
    padding: 24px !important;
}
.tm-modal-video h3 { margin-bottom: 14px; font-size: 18px; }
.tm-video-class-wrapper { padding: 20px 0; }
.tm-video-class-info {
    background: var(--tm-bg);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 16px;
}
.tm-video-class-info h3 { font-size: 16px; margin-bottom: 4px; }
.tm-video-class-info p  { font-size: 13px; color: var(--tm-text-muted); }
.tm-video-countdown {
    font-size: 12px;
    color: var(--tm-text-muted);
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--tm-border);
}

/* ---- UPI App Buttons ---- */
.tm-upi-app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    min-width: 90px;
    transition: transform 0.15s, opacity 0.15s;
}
.tm-upi-app-btn:hover { transform: translateY(-2px); opacity: 0.9; }

/* ---- Empty States ---- */
.tm-empty, .tm-loading { color: var(--tm-text-muted); font-size: 14px; padding: 20px 0; }
.tm-empty-state { text-align: center; padding: 60px 20px; }
.tm-empty-state p { font-size: 16px; color: var(--tm-text-muted); margin-bottom: 20px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .tm-hero { padding: 36px 20px; }
    .tm-hero h1 { font-size: 24px; }
    .tm-hero-search { flex-direction: column; }
    .tm-tutor-grid { grid-template-columns: 1fr; }
    .tm-profile-layout { grid-template-columns: 1fr; }
    .tm-chat-layout { grid-template-columns: 1fr; height: auto; }
    .tm-chat-sidebar { display: none; }
    .tm-availability-grid { grid-template-columns: repeat(2, 1fr); }
    .tm-filters-bar { gap: 10px; }
    .tm-form-row { grid-template-columns: 1fr; }
}

.tm-card-clickable { cursor: pointer; }
.tm-card-clickable:hover { box-shadow: var(--tm-shadow-hover); transform: translateY(-3px); }
.tm-card-clickable .tm-heart,
.tm-card-clickable button,
.tm-card-clickable a { cursor: pointer; }
.tm-card-photo-link { display: block; }

/* ==============================
   3-COLUMN TUTOR CARD (v2)
============================== */
.tm-tutor-grid { grid-template-columns: 1fr; gap: 18px; }

.tm-card-3col {
    display: grid;
    grid-template-columns: 160px 1fr 280px;
    gap: 24px;
    align-items: stretch;
    padding: 22px;
}
.tm-card-col { min-width: 0; }

/* Column 1 — photo */
.tm-card-photo { display: flex; align-items: flex-start; justify-content: center; }
.tm-card-photo .tm-tutor-avatar {
    width: 140px; height: 140px; border-radius: 14px; object-fit: cover;
}

/* Column 2 — main info */
.tm-card-main { display: flex; flex-direction: column; 
}
.tm-card-main .tm-tutor-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.3px;
    font-family: 'Platform', 'Figtree', 'Inter', 'Noto Sans', sans-serif !important;
}
.tm-tutor-cat { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tm-cat-badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; display: inline-block; }
.tm-cat-super { background: #fff4e5; color: #b76e00; border: 1px solid #ffd699; }
.tm-cat-pro   { background: #eef4ff; color: #2b5fb3; border: 1px solid #c9dcff; }
.tm-tutor-region { font-size: 14px; color: var(--tm-text-muted); }
.tm-subj-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
.tm-subj-tag {
    background: var(--tm-primary); color: #fff; font-size: 12px; font-weight: 600;
    padding: 3px 11px; border-radius: 20px;
}
.tm-style-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-style-tag {
    background: #f0f0f3; color: #444; font-size: 12px; font-weight: 500;
    padding: 3px 10px; border-radius: 20px;
}
.tm-card-main .tm-tutor-bio {
    font-size: 16px; color: #000; line-height: 24px; margin: 4px 0 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	font-weight:600;
}
.tm-btn-link {
    color: #000; font-weight: 600; font-size: 16px; text-decoration: underline !important;
    margin-top: auto; align-self: flex-start;
    transition: color .18s, transform .18s;
}
.tm-btn-link:hover { color: #ff7aac; text-decoration: underline; transform: translateX(2px); }

/* Column 3 — side panel */
.tm-card-side {
    display: flex; flex-direction: column; gap: 12px;
     padding-left: 22px;
}
.tm-side-top { display: flex; align-items: center; justify-content: space-between; }
.tm-card-side .tm-tutor-price { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; margin-bottom:0; }
.tm-heart {
    background: none; border: none; cursor: pointer; font-size: 24px; line-height: 1;
    color: #d9d9d9; transition: transform .15s, color .15s; padding: 0;
}
.tm-heart:hover { transform: scale(1.15); color: var(--tm-primary); }
.tm-heart.tm-heart-on { color: var(--tm-primary); }
.tm-side-timing { font-size: 13px; color: var(--tm-text-muted); }
.tm-side-stats { display: flex; gap: 10px; justify-content: space-between; margin: 4px 0; }
.tm-side-stat { display: flex; flex-direction: column; text-align: center; flex: 1; }
.tm-side-stat strong {
    font-size: 20px;
    color: #000;
    white-space: nowrap;
    font-weight: 700;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.tm-side-stat strong span.tm-star-one {
    font-size: 21px;
    color: #000;
}
.tm-side-stat span {
    font-size: 14px;
    color: #4d4c5c;
    font-weight: 400;
	letter-spacing: 0.7px;
}
.tm-card-side .tm-btn-full { margin-top: 0; }

/* Availability filter (two selects) */
.tm-avail-filter { display: flex; gap: 6px; }
.tm-avail-filter select { flex: 1; min-width: 0; }

/* Checkbox pill grid (dashboard subjects/styles) */
.tm-checkbox-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tm-checkbox-pill {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    background: #f4f4f6; border: 1px solid var(--tm-border); border-radius: 20px;
    padding: 6px 13px; font-size: 14px; user-select: none;
}
.tm-checkbox-pill input { accent-color: var(--tm-primary); }
.tm-checkbox-pill:has(input:checked) {
    background: #fff0f0; border-color: var(--tm-primary); color: var(--tm-primary-dark); font-weight: 600;
}

/* Responsive — stack the 3 columns on small screens */
@media (max-width: 860px) {
    .tm-card-3col { grid-template-columns: 1fr; gap: 16px; }
    .tm-card-photo { justify-content: flex-start; }
    .tm-card-photo .tm-tutor-avatar { width: 96px; height: 96px; }
    .tm-card-side { border-left: none; border-top: 1px solid var(--tm-border); padding-left: 0; padding-top: 16px; }
}

/* ==============================
   STUDENT DASHBOARD (v2)
============================== */
.tm-student-dash { max-width: 1280px; }

/* Header */
.tm-dash-header {
    display: flex; align-items: center; gap: 18px;
    background: linear-gradient(135deg, var(--tm-primary) 0%, var(--tm-primary-dark) 100%);
    color: #fff; padding: 26px 28px; border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow); margin-bottom: 22px;
}
.tm-dash-avatar {
    width: 70px; height: 70px; border-radius: 50%; object-fit: cover;
    border: 3px solid rgba(255,255,255,0.6); flex-shrink: 0;
}
.tm-dash-hello { font-size: 24px; font-weight: 800; margin: 0 0 4px; color: #fff; }
.tm-dash-sub { font-size: 14px; margin: 0; opacity: 0.92; }
.tm-dash-find {
    margin-left: auto; background: #fff !important; color: var(--tm-primary-dark) !important;
    white-space: nowrap; font-weight: 700;
}
.tm-dash-find:hover { background: #fff0f0 !important; transform: translateY(-1px); }

/* Stats */
.tm-stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px;
}
.tm-stat-card {
    background: #fff; border: 1px solid var(--tm-border); border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow); padding: 18px; text-align: center;
    transition: transform .15s, box-shadow .15s;
}
.tm-stat-card:hover { transform: translateY(-3px); box-shadow: var(--tm-shadow-hover); }
.tm-stat-icon { font-size: 26px; margin-bottom: 6px; }
.tm-stat-num { font-size: 26px; font-weight: 800; color: var(--tm-text); line-height: 1.1; }
.tm-stat-label { font-size: 13px; color: var(--tm-text-muted); margin-top: 2px; }

/* Sections */
.tm-dash-section { margin-bottom: 30px; }
.tm-section-title {
    font-size: 18px; font-weight: 800; margin: 0 0 14px;
    padding-bottom: 8px; border-bottom: 2px solid var(--tm-border);
}
.tm-section-empty {
    background: #fafafa; border: 1px dashed var(--tm-border); border-radius: var(--tm-radius);
    padding: 20px; text-align: center; color: var(--tm-text-muted); font-size: 14px;
}
.tm-section-empty a { color: var(--tm-primary); font-weight: 700; text-decoration: none; }

/* Lesson cards (refined) */
.tm-lesson-card {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px solid var(--tm-border); border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow); padding: 16px 18px;
    transition: transform .15s, box-shadow .15s; border-left: 4px solid var(--tm-primary);
}
.tm-lesson-card:hover { transform: translateY(-2px); box-shadow: var(--tm-shadow-hover); }
.tm-lesson-avatar { width: 58px !important; height: 58px !important; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tm-lesson-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--tm-text-muted); margin: 4px 0 8px; }
.tm-lessons-past .tm-lesson-card { border-left-color: #c9c9c9; opacity: 0.92; }
.tm-pending-note { color: #856404; font-size: 12px; font-weight: 600; }
.tm-status-completed { background: #e2e3ff; color: #383d8a; }
.tm-status-cancelled { background: #f8d7da; color: #842029; }

/* Empty state */
.tm-empty-state { text-align: center; padding: 50px 20px; }
.tm-empty-icon { font-size: 48px; margin-bottom: 10px; }
.tm-empty-state h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.tm-empty-state p { color: var(--tm-text-muted); margin-bottom: 16px; }

@media (max-width: 720px) {
    .tm-stats-row { grid-template-columns: repeat(2, 1fr); }
    .tm-dash-header { flex-wrap: wrap; text-align: center; justify-content: center; }
    .tm-dash-find { margin-left: 0; width: 100%; }
    .tm-lesson-card { flex-wrap: wrap; }
    .tm-lesson-actions { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ==================================================
   DASHBOARD REDESIGN (student + tutor) — v2 polish
================================================== */

/* Shared gradient header */
.tm-dash-header {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(120deg, #ff7aac 0%, #ff8e72 55%, #ffa94d 100%);
    color: #fff;
    padding: 26px 30px;
    border-radius: 18px;
    margin-bottom: 22px;
    box-shadow: 0 10px 30px rgba(255,107,107,0.28);
    flex-wrap: wrap;
}
.tm-dash-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    object-fit: cover; border: 3px solid rgba(255,255,255,0.7);
    flex-shrink: 0;
}
.tm-dash-hello { margin: 0; font-size: 24px; font-weight: 800; color: #fff; line-height: 1.2; }
.tm-dash-sub { margin: 4px 0 0; font-size: 14px; color: rgba(255,255,255,0.92); }
.tm-dash-header > div { flex: 1; min-width: 180px; }
.tm-dash-find {
    background: #fff !important;
    color: var(--tm-primary-dark) !important;
    border: none !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    white-space: nowrap;
}
.tm-dash-find:hover { transform: translateY(-2px); }

/* Premium stat cards */
.tm-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.tm-stat-card {
    background: var(--tm-white);
    border: 1px solid var(--tm-border);
    border-radius: 16px;
    padding: 20px 18px;
    text-align: center;
    box-shadow: var(--tm-shadow);
    transition: transform .18s, box-shadow .18s;
    position: relative;
    overflow: hidden;
}
.tm-stat-card:hover { transform: translateY(-4px); box-shadow: var(--tm-shadow-hover); }
.tm-stat-icon { font-size: 26px; margin-bottom: 6px; }
.tm-stat-num { font-size: 28px; font-weight: 800; color: var(--tm-text); line-height: 1; }
.tm-stat-label { font-size: 13px; color: var(--tm-text-muted); margin-top: 6px; font-weight: 500; }
.tm-stat-accent {
    background: linear-gradient(135deg, #fff 60%, #fff4ec 100%);
    border-color: #ffd9c2;
}
.tm-stat-accent .tm-stat-num { color: var(--tm-primary-dark); }

/* Dashboard tabs — pill style */
.tm-dashboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--tm-white);
    padding: 8px;
    border-radius: 14px;
    box-shadow: var(--tm-shadow);
    margin-bottom: 22px;
}
.tm-dashboard-tabs .tm-tab-btn {
    border: none;
    background: transparent;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tm-text-muted);
    cursor: pointer;
    transition: all .15s;
}
.tm-dashboard-tabs .tm-tab-btn:hover { background: var(--tm-bg); color: var(--tm-text); }
.tm-dashboard-tabs .tm-tab-btn.active {
    background: var(--tm-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255,107,107,0.32);
}

/* Tab panels as cards */
.tm-tab-panel.active {
    background: var(--tm-white);
    border: 1px solid var(--tm-border);
    border-radius: 16px;
    padding: 26px;
    box-shadow: var(--tm-shadow);
}
.tm-tab-panel h3 { margin-top: 0; }

/* Dashboard sections */
.tm-dash-section { margin-bottom: 30px; }
.tm-section-title {
    font-size: 18px; font-weight: 800; margin: 0 0 14px;
    display: flex; align-items: center; gap: 8px;
}
.tm-section-title::before {
    content: ''; width: 4px; height: 20px;
    background: var(--tm-primary); border-radius: 4px;
}
.tm-section-empty {
    background: var(--tm-white); border: 1px dashed var(--tm-border);
    border-radius: 14px; padding: 22px; text-align: center; color: var(--tm-text-muted);
}
.tm-section-empty a { color: var(--tm-primary); font-weight: 600; text-decoration: none; }

/* Lesson cards */
.tm-lessons-list { display: flex; flex-direction: column; gap: 12px; }
.tm-lesson-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--tm-white); border: 1px solid var(--tm-border);
    border-radius: 14px; padding: 16px 18px;
    box-shadow: var(--tm-shadow); transition: transform .15s, box-shadow .15s;
}
.tm-lesson-card:hover { transform: translateY(-2px); box-shadow: var(--tm-shadow-hover); }
.tm-lesson-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tm-lesson-info { flex: 1; min-width: 0; }
.tm-lesson-info h4 { margin: 0 0 5px; font-size: 16px; font-weight: 700; }
.tm-lesson-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--tm-text-muted); margin-bottom: 6px; }
.tm-lesson-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.tm-lesson-price { font-size: 18px; font-weight: 800; color: var(--tm-text); }
.tm-lessons-past .tm-lesson-card { opacity: 0.82; }

/* Status pills */
.tm-status {
    display: inline-block; font-size: 12px; font-weight: 700;
    padding: 3px 11px; border-radius: 20px; text-transform: capitalize;
}
.tm-status-confirmed { background: #e6f7ec; color: #1d8a4e; }
.tm-status-pending   { background: #fff5e0; color: #b8860b; }
.tm-status-completed { background: #eef2f7; color: #5a6b7f; }
.tm-status-cancelled { background: #fde8e8; color: #c0392b; }
.tm-pending-note { font-size: 13px; color: #b8860b; }
.tm-video-countdown { font-size: 13px; color: var(--tm-text-muted); }

/* Empty state */
.tm-empty-state {
    background: var(--tm-white); border: 1px solid var(--tm-border);
    border-radius: 18px; padding: 50px 30px; text-align: center;
    box-shadow: var(--tm-shadow);
}
.tm-empty-icon { font-size: 52px; margin-bottom: 10px; }
.tm-empty-state h3 { margin: 0 0 6px; font-size: 20px; }
.tm-empty-state p { color: var(--tm-text-muted); margin: 0 0 18px; }

/* Responsive */
@media (max-width: 720px) {
    .tm-stats-row { grid-template-columns: repeat(2, 1fr); }
    .tm-dash-header { padding: 20px; text-align: center; justify-content: center; }
    .tm-dash-find { width: 100%; }
    .tm-lesson-card { flex-wrap: wrap; }
    .tm-lesson-actions { align-items: flex-start; width: 100%; flex-direction: row; flex-wrap: wrap; }
}

/* ==================================================
   STUDENT DASHBOARD — top nav + settings
================================================== */
.tm-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--tm-white);
    border: 1px solid var(--tm-border);
    border-radius: 16px;
    padding: 10px 16px;
    margin-bottom: 22px;
    box-shadow: var(--tm-shadow);
    flex-wrap: nowrap;
}
.tm-topbar > .tm-discover-btn { flex: 0 0 auto; }
.tm-topbar > .tm-topnav { flex: 1 1 auto; }
.tm-topbar > .tm-topbar-user { flex: 0 0 auto; margin-left: auto; }
.tm-discover-btn {
    background: var(--tm-primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255,107,107,0.3);
    transition: transform .15s, box-shadow .15s;
}
.tm-discover-btn:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 6px 18px rgba(255,107,107,0.42); }
.tm-topnav {
    display: flex;
    gap: 6px;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
}
.tm-topbar-user { flex-shrink: 0; }
.tm-topnav-btn {
    border: none;
    background: transparent;
    color: var(--tm-text-muted);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
}
.tm-topnav-btn:hover { background: var(--tm-bg); color: var(--tm-text); transform: translateY(-1px); }
.tm-topnav-btn.active {
    background: var(--tm-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255,107,107,0.3);
    transform: translateY(-1px);
}
.tm-topbar-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--tm-border);
}

/* student dashboard: tab panels are plain (not boxed like tutor) */
.tm-student-dash .tm-tab-panel { display: none; background: none; border: none; padding: 0; box-shadow: none; }
.tm-student-dash .tm-tab-panel.active { display: block; }

/* Settings layout */
.tm-settings-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 22px;
    align-items: start;
}
.tm-settings-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--tm-white);
    border: 1px solid var(--tm-border);
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--tm-shadow);
    position: sticky;
    top: 20px;
}
.tm-settings-link {
    position: relative;
    text-align: left;
    border: none;
    background: transparent;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tm-text-muted);
    cursor: pointer;
    transition: all .2s ease;
    overflow: hidden;
}
.tm-settings-link::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px; height: 60%;
    background: var(--tm-primary);
    border-radius: 3px;
    transition: transform .2s ease;
}
.tm-settings-link:hover { background: var(--tm-bg); color: var(--tm-text); padding-left: 20px; }
.tm-settings-link.active {
    background: #fff0f0;
    color: var(--tm-primary-dark);
    padding-left: 20px;
}
.tm-settings-link.active::before { transform: translateY(-50%) scaleY(1); }
.tm-settings-danger { color: #c0392b; margin-top: 8px; border-top: 1px solid var(--tm-border); border-radius: 0 0 10px 10px; padding-top: 14px; }
.tm-settings-danger:hover { background: #fde8e8; color: #c0392b; }
.tm-settings-danger::before { background: #c0392b; }

.tm-settings-content {
    background: var(--tm-white);
    border: 1px solid var(--tm-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--tm-shadow);
    min-height: 340px;
}
.tm-settings-sec { display: none; }
.tm-settings-sec.active {
    display: block;
    animation: tmSettingsIn .35s cubic-bezier(.16,.84,.44,1);
}
@keyframes tmSettingsIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tm-settings-sec h3 {
    margin-top: 0;
    font-size: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--tm-bg);
    margin-bottom: 20px;
}
.tm-settings-note { font-size: 13px; color: var(--tm-text-muted); margin-bottom: 16px; }
.tm-settings-form { max-width: 480px; }

/* Animate fields in, staggered */
.tm-settings-sec.active .tm-form-group,
.tm-settings-sec.active .tm-form-row,
.tm-settings-sec.active .tm-avatar-row,
.tm-settings-sec.active .tm-toggle-row,
.tm-settings-sec.active > button,
.tm-settings-sec.active .tm-table,
.tm-settings-sec.active .tm-danger-box {
    animation: tmFieldIn .4s ease both;
}
.tm-settings-sec.active > *:nth-child(2) { animation-delay: .04s; }
.tm-settings-sec.active > *:nth-child(3) { animation-delay: .08s; }
.tm-settings-sec.active > *:nth-child(4) { animation-delay: .12s; }
.tm-settings-sec.active > *:nth-child(5) { animation-delay: .16s; }
.tm-settings-sec.active form > *:nth-child(2) { animation-delay: .04s; }
.tm-settings-sec.active form > *:nth-child(3) { animation-delay: .08s; }
.tm-settings-sec.active form > *:nth-child(4) { animation-delay: .12s; }
.tm-settings-sec.active form > *:nth-child(5) { animation-delay: .16s; }
.tm-settings-sec.active form > *:nth-child(6) { animation-delay: .20s; }
.tm-settings-sec.active form > *:nth-child(7) { animation-delay: .24s; }
@keyframes tmFieldIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Inputs — smooth focus animation */
.tm-settings-form input,
.tm-settings-form select {
    transition: border-color .2s, box-shadow .2s, transform .1s;
}
.tm-settings-form input:focus,
.tm-settings-form select:focus {
    border-color: var(--tm-primary);
    box-shadow: 0 0 0 3px rgba(255,107,107,0.14);
    outline: none;
}
.tm-settings-form button[type="submit"] {
    transition: transform .15s, box-shadow .15s;
}
.tm-settings-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255,107,107,0.32);
}

.tm-avatar-row { display: flex; align-items: center; gap: 16px; }
.tm-set-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--tm-bg); transition: transform .2s; }
.tm-avatar-row:hover .tm-set-avatar { transform: scale(1.05); }

.tm-toggle-row {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 0; font-size: 14px; cursor: pointer;
    border-bottom: 1px solid var(--tm-border);
    transition: padding-left .15s;
}
.tm-toggle-row:hover { padding-left: 4px; }
.tm-toggle-row:last-of-type { border-bottom: none; }
.tm-toggle-row input { width: 18px; height: 18px; accent-color: var(--tm-primary); }

.tm-danger-box {
    background: #fff7f7; border: 1px solid #f3c2c2;
    border-radius: 12px; padding: 20px;
}
.tm-danger-box p { margin: 0 0 10px; font-size: 14px; }
.tm-danger-box p:last-child { margin-bottom: 0; }

/* Messages tab inside dashboard */
.tm-chat-sidebar-full { width: 300px; }

@media (max-width: 820px) {
    .tm-settings-layout { grid-template-columns: 1fr; }
    .tm-settings-nav { flex-direction: row; flex-wrap: wrap; position: static; }
    .tm-settings-nav .tm-settings-link { flex: 1 1 auto; text-align: center; }
    .tm-settings-danger { border-top: none; }
}

@media (max-width: 680px) {
    .tm-topbar { flex-wrap: wrap; }
    .tm-topnav { order: 3; width: 100%; justify-content: space-between; }
    .tm-topnav-btn { flex: 1; text-align: center; padding: 9px 8px; font-size: 13px; }
}

/* Inline dashboard chat reply form */
.tm-message-form {
    display: flex; gap: 10px; padding: 14px 20px;
    border-top: 1px solid var(--tm-border);
}
.tm-message-form input {
    flex: 1; padding: 10px 16px;
    border: 1.5px solid var(--tm-border);
    border-radius: 24px; font-size: 14px; outline: none;
    transition: border-color 0.2s;
}
.tm-message-form input:focus { border-color: var(--tm-primary); }
.tm-message-form button { border-radius: 24px; padding: 10px 22px; }
.tm-chat-messages .tm-loading { color: var(--tm-text-muted); font-size: 13px; padding: 10px; }

/* Chat header avatar (inline dashboard chat) */
.tm-chat-header-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--tm-bg); }
.tm-chat-header-avatar[src=""], .tm-chat-header-avatar:not([src]) { visibility: hidden; }

/* ==================================================
   TUTOR PROFILE PAGE v2
================================================== */
.tm-profile-page-v2 { max-width: 1280px; margin: 0 auto; padding: 24px 16px; }
.tm-profile-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 56px;
    align-items: start;
}
.tm-profile-main { min-width: 0; }

/* Video */
.tm-pv-video {
    position: relative; width: 100%; padding-bottom: 56.25%;
    border-radius: 16px; overflow: hidden; margin-bottom: 24px;
    box-shadow: var(--tm-shadow);
}
.tm-pv-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* Identity */
.tm-pv-identity { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.tm-pv-avatar {
    width: 104px; height: 104px; border-radius: 10px; object-fit: cover;
    border: 1px solid var(--tm-border); box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: transform .25s;
}
.tm-pv-avatar:hover { transform: scale(1.04); }
.tm-pv-name { font-size: 48px; font-weight: 800; margin: 0 0 4px; color: #111; }
.tm-pv-country { font-size: 15px; color: var(--tm-text-muted); margin-bottom: 0; }

/* Sections */
.tm-pv-section { padding: 22px 0; border-bottom: 1px solid var(--tm-border); }
.tm-pv-heading {
    font-size: 20px; font-weight: 700; margin: 0 0 14px;
    position: relative; padding-left: 14px;
}
.tm-pv-section .tm-pv-heading {
    font-family: 'Figtree', sans-serif !important;
}
.tm-pv-heading::before {
    content: ''; position: absolute; left: 0; top: 3px; bottom: 3px;
    width: 5px; border-radius: 4px;
    background: linear-gradient(180deg, var(--tm-primary), #ffa94d);
}
h3.tm-pv-heading.tm-pv-h-highlights {
    font-size: 16px;
    font-weight: 600;
}
h3.tm-pv-heading.tm-pv-h-teaches {
    font-size: 16px;
    font-weight: 600;
}
h3.tm-pv-heading.tm-pv-h-speak,h3.tm-pv-heading.tm-pv-h-similar {
    font-size: 24px;
	font-family: 'Platform', 'Platform-fallback', 'Platform-fallback-android', 'Noto Sans',        'NotoSans-fallback', 'NotoSans-fallback-android', sans-serif !important;
    letter-spacing: 1px;
}
h3.tm-pv-heading.tm-pv-h-about {
    font-size: 32px;
    font-family: 'Platform', 'Platform-fallback', 'Platform-fallback-android', 'Noto Sans',        'NotoSans-fallback', 'NotoSans-fallback-android', sans-serif !important;
    letter-spacing: 1px;
}
h3.tm-pv-heading.tm-pv-h-resume,h3.tm-pv-heading.tm-pv-h-rating,h3.tm-pv-heading.tm-pv-h-specialties {
    font-size: 32px;
	  font-family: 'Platform', 'Platform-fallback', 'Platform-fallback-android', 'Noto Sans',        'NotoSans-fallback', 'NotoSans-fallback-android', sans-serif !important;
    letter-spacing: 1px;
}
h3.tm-pv-heading.tm-pv-h-reviews {
    font-size: 32px;
	font-family: 'Platform', 'Platform-fallback', 'Platform-fallback-android', 'Noto Sans',        'NotoSans-fallback', 'NotoSans-fallback-android', sans-serif !important;
    letter-spacing: 1px;
}

/* About me clamp */
.tm-about-clamp {
    line-height: 1.6; color: #444;
    display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
    overflow: hidden;
	font-size:16px;
}
.tm-about-clamp.tm-about-open { -webkit-line-clamp: unset; }
.tm-link-btn {
    background: none; border: none; color: #000; font-weight: 700;
    cursor: pointer; padding: 8px 0 0; font-size: 14px;
    transition: color .18s, transform .18s;
}
.tm-link-btn:hover { color: #ff7aac; text-decoration: underline; transform: translateX(2px); }

/* Subject tags */
.tm-subj-tag {
    background: var(--tm-primary); color: #fff; font-size: 13px; font-weight: 600;
    padding: 5px 14px; border-radius: 20px; display: inline-block; margin: 0 6px 6px 0;
    transition: transform .15s, box-shadow .15s;
}
.tm-subj-tag:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,107,107,0.3); }

/* Lesson rating grid */
.tm-rating-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tm-rating-cell {
    background: linear-gradient(135deg, #fff 60%, #fff6f0 100%);
    border: 1px solid var(--tm-border); border-radius: 14px;
    padding: 18px 10px; text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.tm-rating-cell:hover { transform: translateY(-4px); box-shadow: var(--tm-shadow-hover); }
.tm-rating-num { display: block; font-size: 24px; font-weight: 800; color: var(--tm-primary-dark); }
.tm-rating-lbl { font-size: 12px; color: var(--tm-text-muted); }

/* Reviews grid */
.tm-reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tm-review-card {
    background: #fff; border: 1px solid var(--tm-border); border-radius: 14px;
    padding: 18px; box-shadow: var(--tm-shadow); transition: transform .2s, box-shadow .2s;
}
.tm-review-card:hover { transform: translateY(-3px); box-shadow: var(--tm-shadow-hover); }
.tm-review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tm-review-head img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.tm-review-stars { color: #ffb400; font-size: 14px; }
.tm-review-text { font-size: 14px; color: #444; line-height: 1.5; margin: 0 0 8px; }
.tm-review-date { font-size: 12px; color: #aaa; }

/* Resume tabs */
.tm-resume-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tm-resume-tab {
    border: 1px solid var(--tm-border); background: #fff; cursor: pointer;
    padding: 9px 16px; border-radius: 22px; font-size: 14px; font-weight: 600;
    color: var(--tm-text-muted); transition: all .18s;
}
.tm-resume-tab:hover { border-color: var(--tm-primary); color: var(--tm-primary-dark); }
.tm-resume-tab.active {
    background: var(--tm-primary); color: #fff; border-color: var(--tm-primary);
    box-shadow: 0 4px 12px rgba(255,107,107,0.3);
}
.tm-resume-panel { display: none; animation: tmFade .3s; }
.tm-resume-panel.active { display: block; }
.tm-resume-list { margin: 0; padding-left: 20px; }
.tm-resume-list li { padding: 5px 0; color: #444; }
@keyframes tmFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* FAQ accordion */
.tm-faq-item { border: 1px solid var(--tm-border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.tm-faq-q {
    width: 100%; text-align: left; background: #fff; border: none; cursor: pointer;
    padding: 16px 18px; font-size: 15px; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    transition: background .15s;
}
.tm-faq-q:hover { background: var(--tm-bg); }
.tm-faq-icon { font-size: 20px; color: var(--tm-primary); flex-shrink: 0; }
.tm-faq-a {
    max-height: 0; overflow: hidden; padding: 0 18px;
    transition: max-height .3s ease, padding .3s ease; color: #000; font-size: 14px; line-height: 1.6;
}
.tm-faq-item.open .tm-faq-a { max-height: 400px; padding: 0 18px 16px; }

/* Recommendation slider */
.tm-rec-slider { position: relative; }
.tm-rec-track {
    display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth;
    padding: 4px; scrollbar-width: none;
}
.tm-rec-track::-webkit-scrollbar { display: none; }
.tm-rec-card {
    flex: 0 0 230px; background: #fff; border: 1px solid var(--tm-border);
    border-radius: 14px; padding: 18px; text-decoration: none; color: var(--tm-text);
    display: flex; flex-direction: column; gap: 5px; align-items: flex-start;
    transition: transform .2s, box-shadow .2s;
}
.tm-rec-card:hover { transform: translateY(-4px); box-shadow: var(--tm-shadow-hover); }
.tm-rec-card img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin-bottom: 4px; }
.tm-rec-card strong { font-size: 16px; }
.tm-rec-country { font-size: 13px; color: var(--tm-text-muted); }
.tm-rec-tagline { font-size: 13px; color: #777; }
.tm-rec-price { font-size: 14px; font-weight: 700; color: var(--tm-primary-dark); margin-top: 4px; }
.tm-rec-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--tm-border);
    background: #fff; cursor: pointer; font-size: 20px; box-shadow: var(--tm-shadow);
    transition: transform .15s;
}
.tm-rec-arrow:hover { transform: translateY(-50%) scale(1.1); color: var(--tm-primary); }
.tm-rec-prev { left: -16px; }
.tm-rec-next { right: -16px; }

/* Right column — sticky booking card */
.tm-profile-side { position: sticky; top: 20px; }
.tm-booking-card-v2 {
    background: #fff; border: 1px solid var(--tm-border); border-radius: 18px;
    padding: 22px; box-shadow: 0 8px 28px rgba(0,0,0,0.10);
}
.tm-bc-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--tm-border);
}
.tm-bc-stat { text-align: center; }
.tm-bc-stat strong { display: block; font-size: 24px; color: var(--tm-text); white-space: nowrap; }
.tm-bc-stat span { font-size: 14px; color: var(--tm-text-muted); }

.tm-bc-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.tm-bc-actions .tm-heart,
.tm-share-btn {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--tm-border);
    background: #fff; cursor: pointer; font-size: 18px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: transform .15s, color .15s, border-color .15s;
}
.tm-bc-actions .tm-heart { color: #d9d9d9; }
.tm-bc-actions .tm-heart:hover { transform: scale(1.12); color: var(--tm-primary); border-color: var(--tm-primary); }
.tm-bc-actions .tm-heart.tm-heart-on { color: var(--tm-primary); border-color: var(--tm-primary); }
.tm-share-btn:hover { transform: scale(1.12); color: var(--tm-secondary); border-color: var(--tm-secondary); }

.tm-muted { color: var(--tm-text-muted); font-size: 14px; }

/* Responsive */
@media (max-width: 900px) {
    .tm-profile-grid { grid-template-columns: 1fr; }
    .tm-profile-side { position: static; }
    .tm-reviews-grid { grid-template-columns: 1fr; }
    .tm-rating-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Profile v2 — attractive badges + language tags ===== */
.tm-profile-page-v2 .tm-pv-badges {
    display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
    margin: 0 0 4px;
}
.tm-profile-page-v2 .tm-cat-badge {
    font-size: 13px; font-weight: 700; padding: 8px 18px; border-radius: 30px;
    display: inline-flex; align-items: center; gap: 6px; border: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10); transition: transform .18s, box-shadow .18s;
}
.tm-profile-page-v2 .tm-cat-super,
.tm-profile-page-v2 .tm-cat-pro {
    background: linear-gradient(
        90deg,
        #FEDBE9 0%,
        #F1DDEF 35%,
        #DDE0F8 70%,
        #CDE2FF 100%
    );
    color: #000;
}
.tm-profile-page-v2 .tm-cat-badge:hover {
    transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* I speak — attractive language chips */
.tm-profile-page-v2 .tm-pv-section .tm-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tm-profile-page-v2 .tm-tag {
    background: #fff; border: 1.5px solid #e3e3ea; color: #333;
    font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 30px;
    display: inline-flex; align-items: center; gap: 7px;
    transition: all .18s; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.tm-profile-page-v2 .tm-tag::before { content: '🗣'; font-size: 13px; }
.tm-profile-page-v2 .tm-tag:hover {
    border-color: var(--tm-primary); color: var(--tm-primary-dark);
    transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255,107,107,0.22);
}

/* Book trial / Send message — gap between them */
.tm-booking-card-v2 #tm-proceed-payment { margin-bottom: 14px; }
.tm-booking-card-v2 .tm-send-message-btn { margin-top: 0; }

/* ==================================================
   CHAT — attractive redesign (overrides)
================================================== */
.tm-chat-layout {
    border: 1px solid #ececf1; border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07); background: #fff; height: 620px;
}
.tm-chat-sidebar { background: #fcfcfd; border-right: 1px solid #eee; }
.tm-chat-sidebar h3 {
    padding: 20px; font-size: 17px; font-weight: 800;
    border-bottom: 1px solid #eee; background: #fff;
}
.tm-conversation-item {
    padding: 13px 16px; border-bottom: 1px solid #f2f2f5; border-left: 3px solid transparent;
}
.tm-conversation-item:hover { background: #f7f8fb; }
.tm-conversation-item.active {
    background: linear-gradient(90deg, #fff2ee 0%, #fff 100%);
    border-left-color: var(--tm-primary);
}
.tm-conv-avatar { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.tm-conv-name { font-size: 14px; font-weight: 700; color: #1a1a2e; }

.tm-chat-main { background: #fff; }
.tm-chat-header {
    padding: 16px 22px;
    background: linear-gradient(120deg, #ff7aac 0%, #ff8e72 60%, #ffa94d 100%);
    border-bottom: none; color: #fff;
}
.tm-chat-header strong, .tm-chat-header #tm-chat-peer-name { color: #fff; font-size: 16px; font-weight: 800; }
.tm-chat-header img, .tm-chat-header-avatar {
    width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
    border: 2px solid rgba(255,255,255,0.7);
}

.tm-chat-messages {
    padding: 22px; gap: 14px;
    background: radial-gradient(circle at 12px 12px, rgba(0,0,0,0.018) 1.5px, transparent 1.5px);
    background-size: 24px 24px; background-color: #fafafc;
}
.tm-message { max-width: 72%; }
.tm-message-bubble {
    padding: 11px 16px; border-radius: 18px; font-size: 14px; line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); position: relative; word-wrap: break-word;
}
.tm-message .tm-message-bubble {
    background: #fff; border: 1px solid #ececf1; color: #222; border-bottom-left-radius: 5px;
}
.tm-message.mine .tm-message-bubble {
    background: #ff7aac; color: #fff; border: none; border-bottom-right-radius: 5px;
}
.tm-message-time { font-size: 11px; color: #aaa; margin-top: 4px; }
.tm-message.mine .tm-message-time { text-align: right; }

.tm-chat-form, .tm-message-form {
    display: flex; gap: 12px; padding: 16px 18px;
    border-top: 1px solid #eee; background: #fff; align-items: center;
}
.tm-chat-form input, .tm-message-form input {
    flex: 1; padding: 13px 20px; border: 1.5px solid #e6e6ee; border-radius: 30px;
    font-size: 14px; outline: none; background: #f7f8fb; transition: all .2s;
}
.tm-chat-form input:focus, .tm-message-form input:focus {
    border-color: var(--tm-primary); background: #fff; box-shadow: 0 0 0 4px rgba(255,107,107,0.12);
}
.tm-chat-form button, .tm-message-form button {
    border: none; cursor: pointer;
    background: #ff7aac; color: #fff;
    font-weight: 700; font-size: 14px; padding: 12px 26px; border-radius: 30px;
    box-shadow: 0 4px 14px rgba(255,107,107,0.35); transition: transform .15s, box-shadow .15s;
}
.tm-chat-form button:hover, .tm-message-form button:hover {
    transform: translateY(-2px); box-shadow: 0 7px 20px rgba(255,107,107,0.45);
}
.tm-chat-form button:active, .tm-message-form button:active { transform: translateY(0); }

.tm-chat-empty { color: #999; font-size: 15px; text-align: center; padding: 40px; }
.tm-chat-empty a { color: var(--tm-primary); font-weight: 700; text-decoration: none; }

.tm-cd-pill {
    display: inline-block; background: #fff4e5; color: #b76e00;
    font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 20px;
}

/* ===== Review modal + reviewed note ===== */
.tm-review-modal-content { max-width: 460px; width: 92%; }
.tm-review-rate-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid var(--tm-border);
}
.tm-review-rate-label { font-size: 14px; font-weight: 600; color: #333; }
.tm-star-input { display: inline-flex; gap: 2px; }
.tm-star-input .tm-star {
    background: none; border: none; cursor: pointer; font-size: 24px;
    color: #ddd; padding: 0 1px; transition: transform .1s, color .1s;
}
.tm-star-input .tm-star:hover { transform: scale(1.15); }
.tm-star-input .tm-star.on { color: #ffb400; }
#tm-review-msg { display: block; margin-top: 10px; font-size: 14px; color: var(--tm-success); }
#tm-review-msg.error { color: #c0392b; }
.tm-leave-review-btn { margin-top: 6px; }
.tm-reviewed-note {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 600; color: var(--tm-success);
    background: #e6f7ec; padding: 6px 12px; border-radius: 20px;
}

/* ==================================================
   LOGIN / REGISTER PAGE
================================================== */
.tm-auth-wrap {
    max-width: 460px; margin: 40px auto; padding: 0 16px;
}
.tm-auth-card {
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 16px 44px rgba(0,0,0,0.12); border: 1px solid #eee;
}
/* Role tabs */
.tm-auth-roletabs { display: flex; }
.tm-auth-role {
    flex: 1; padding: 18px 10px; border: none; cursor: pointer;
    font-size: 16px; font-weight: 700; color: #888; background: #f4f5f8;
    transition: all .2s;
}
.tm-auth-role.active {
    background: #fff; color: var(--tm-primary-dark);
    box-shadow: inset 0 -3px 0 var(--tm-primary);
}
.tm-auth-role:hover { color: var(--tm-primary-dark); }

.tm-auth-body { padding: 28px 28px 32px; }

/* Mode switch */
.tm-auth-modeswitch {
    display: flex; gap: 6px; background: #f4f5f8; border-radius: 30px;
    padding: 5px; margin-bottom: 22px;
}
.tm-auth-mode {
    flex: 1; padding: 10px; border: none; cursor: pointer; border-radius: 24px;
    font-size: 14px; font-weight: 700; color: #777; background: transparent; transition: all .18s;
}
.tm-auth-mode.active {
    background: #fff; color: var(--tm-primary-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tm-auth-title { font-size: 21px; font-weight: 800; margin: 0 0 18px; color: #111; }
.tm-auth-title .tm-role-word { color: var(--tm-primary); text-transform: capitalize; }

.tm-auth-form .tm-form-group { margin-bottom: 16px; }
.tm-auth-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #444; }
.tm-auth-form input[type="text"],
.tm-auth-form input[type="email"],
.tm-auth-form input[type="password"] {
    width: 100%; padding: 13px 16px; border: 1.5px solid #e6e6ee;
    border-radius: 12px; font-size: 15px; outline: none; background: #f9f9fc;
    transition: all .2s; box-sizing: border-box;
}
.tm-auth-form input:focus {
    border-color: var(--tm-primary); background: #fff;
    box-shadow: 0 0 0 4px rgba(255,107,107,0.12);
}
.tm-auth-remember, .tm-auth-terms {
    display: flex; align-items: center; gap: 8px; font-size: 13px;
    font-weight: 500 !important; color: #666; margin: 0 0 18px;
}
.tm-auth-remember input, .tm-auth-terms input { width: auto; }
.tm-auth-form .tm-btn-full { padding: 14px; font-size: 15px; border-radius: 12px; }
.tm-auth-msg { min-height: 18px; margin: 12px 0 0; font-size: 14px; color: var(--tm-success); text-align: center; }
.tm-auth-msg.error { color: #c0392b; }
.tm-auth-alt { text-align: center; font-size: 14px; color: #777; margin: 16px 0 0; }
.tm-auth-alt a { color: var(--tm-primary); font-weight: 700; text-decoration: none; }
.tm-auth-alt a:hover { text-decoration: underline; }
.tm-auth-already { max-width: 460px; margin: 60px auto; text-align: center; font-size: 16px; }
.tm-auth-already a { color: var(--tm-primary); font-weight: 700; text-decoration: none; }

/* ==================================================
   LOGIN / REGISTER PAGE v2 (2 columns)
================================================== */
.tm-auth2 { max-width: 1080px; margin: 0 auto; padding: 30px 16px 60px; }
.tm-auth2-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 34px;
    align-items: start;
}
.tm-auth2-col {
    background: #fff; border: 1px solid #ececf1; border-radius: 20px;
    padding: 34px 30px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.07);
    animation: tmA2In .5s ease both;
}
.tm-auth2-register { animation-delay: .08s; }
@keyframes tmA2In { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.tm-auth2-h { font-size: 24px; font-weight: 800; color: #111; margin: 0 0 22px; }
.tm-auth2-sub { font-size: 18px; font-weight: 700; color: #111; margin: 0 0 6px; }

.tm-auth2-form { animation: tmFade .3s ease both; }
.tm-a2-group { margin-bottom: 16px; }
.tm-a2-group label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 6px; }
.tm-a2-group input,
.tm-a2-pass input {
    width: 100%; padding: 13px 15px; font-size: 14px;
    border: 1.5px solid #e6e6ee; border-radius: 12px; outline: none;
    background: #f8f9fc; transition: border-color .18s, box-shadow .18s, background .18s;
    box-sizing: border-box;
}
.tm-a2-group input:focus,
.tm-a2-pass input:focus {
    border-color: var(--tm-primary); background: #fff;
    box-shadow: 0 0 0 4px rgba(255,107,107,0.12);
}
.tm-a2-pass { position: relative; }
.tm-a2-pass input { padding-right: 44px; }
.tm-a2-eye {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; font-size: 16px; opacity: .55;
    padding: 6px; line-height: 1;
}
.tm-a2-eye:hover { opacity: 1; }

.tm-a2-row-between {
    display: flex; align-items: center; justify-content: space-between;
    margin: 4px 0 18px; flex-wrap: wrap; gap: 8px;
}
.tm-a2-check { font-size: 13px; color: #555; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.tm-a2-terms { margin: 6px 0 16px; }

.tm-a2-btn {
    width: 100%; padding: 14px; border: none; border-radius: 12px;
    font-size: 15px; font-weight: 700; color: #fff; cursor: pointer;
    transition: transform .15s, box-shadow .15s, opacity .15s;
}
.tm-a2-btn-primary { background: linear-gradient(120deg, #4a90d9, #6f63e6); box-shadow: 0 6px 18px rgba(79,99,230,0.32); }
.tm-a2-btn-accent  { background: #ff7aac; box-shadow: 0 6px 18px rgba(255,107,107,0.34); }
.tm-a2-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.18); }
.tm-a2-btn:active { transform: translateY(0); }

.tm-a2-link {
    background: none; border: none; color: var(--tm-primary); cursor: pointer;
    font-size: 13px; font-weight: 600; padding: 0;
}
.tm-a2-link:hover { text-decoration: underline; }
.tm-a2-back { display: inline-block; margin-top: 12px; color: #888; }
.tm-a2-hint { font-size: 13px; color: #888; margin: 0 0 14px; }
.tm-a2-switch { margin-top: 16px; text-align: center; }

/* Role tabs (Student / Tutor) */
.tm-auth2-roletabs {
    display: flex; gap: 10px; margin-bottom: 10px;
    background: #f2f3f7; padding: 6px; border-radius: 14px;
}
.tm-auth2-roletabs .tm-auth-role {
    flex: 1; border: none; background: transparent; cursor: pointer;
    padding: 11px; border-radius: 10px; font-size: 14px; font-weight: 700; color: #667;
    transition: all .2s;
}
.tm-auth2-roletabs .tm-auth-role:hover { color: var(--tm-primary-dark); }
.tm-auth2-roletabs .tm-auth-role.active {
    background: #fff; color: #111;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.tm-a2-roletip { font-size: 13px; color: #666; margin: 0 0 18px; }
.tm-a2-roletip strong { color: var(--tm-primary-dark); text-transform: capitalize; }

.tm-a2-msg { margin-top: 12px; font-size: 14px; min-height: 18px; color: var(--tm-success); }
.tm-a2-msg.error { color: #c0392b; }

@media (max-width: 820px) {
    .tm-auth2-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ==================================================
   DASHBOARD — 2-column layout (vertical tabs + content)
================================================== */
.tm-dash-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}

/* Left column: vertical tab list */
.tm-dash-body .tm-dashboard-tabs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: none;
    margin-bottom: 0;
    position: sticky;
    top: 20px;
    background: #fff;
    border: 1px solid var(--tm-border);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
.tm-dash-body .tm-tab-btn {
    text-align: left;
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    border-bottom: none;
    margin-bottom: 0;
    color: var(--tm-text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .18s;
}
.tm-dash-body .tm-tab-btn:hover {
    background: var(--tm-bg);
    color: var(--tm-primary-dark);
    transform: translateX(2px);
}
.tm-dash-body .tm-tab-btn.active {
    background: #ff7aac;
    color: #fff;
    border-bottom: none;
    box-shadow: 0 4px 14px rgba(255,107,107,0.35);
}

/* Right column: active panel content */
.tm-dash-body .tm-tab-content {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--tm-border);
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

/* Responsive: stack on small screens */
@media (max-width: 820px) {
    .tm-dash-body { grid-template-columns: 1fr; }
    .tm-dash-body .tm-dashboard-tabs {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .tm-dash-body .tm-tab-btn { white-space: nowrap; }
}

/* Student dashboard: Home link styled as a tab, topbar spacing in 2-col */
.tm-dash-body .tm-tab-link { text-decoration: none; }
.tm-student-dash .tm-topbar { margin-bottom: 24px; }

/* ==================================================
   STUDENT DASHBOARD — revert to horizontal top tabs
   (tutor dashboard keeps the vertical sidebar tabs above)
================================================== */
.tm-student-dash .tm-dash-body {
    display: block;
}
.tm-student-dash .tm-dash-body .tm-dashboard-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    position: static;
    background: none;
    border: none;
    border-bottom: 2px solid var(--tm-border);
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 28px;
}
.tm-student-dash .tm-dash-body .tm-tab-btn {
    text-align: center;
    padding: 12px 18px;
    border-radius: 10px 10px 0 0;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    color: var(--tm-text-muted);
    font-weight: 600;
    background: none;
    transform: none;
}
.tm-student-dash .tm-dash-body .tm-tab-btn:hover {
    background: var(--tm-bg);
    color: var(--tm-primary-dark);
    transform: none;
}
.tm-student-dash .tm-dash-body .tm-tab-btn.active {
    background: none;
    color: var(--tm-primary);
    border-bottom-color: var(--tm-primary);
    box-shadow: none;
}
.tm-student-dash .tm-dash-body .tm-tab-content {
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
}
@media (max-width: 820px) {
    .tm-student-dash .tm-dash-body .tm-dashboard-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}

/* ==================================================
   MESSAGES TAB — 3 columns (Tutors / Messages / Details)
================================================== */
.tm-msg-3col {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 18px;
    height: 620px;
}
.tm-msg-col {
    border: 1.5px solid var(--tm-border);
    border-radius: var(--tm-radius);
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Column 1: tutors + filter tabs */
.tm-msg-col-tutors { padding: 0; }
.tm-msg-col-tutors h3 {
    padding: 18px 20px 12px;
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tm-msg-filter-tabs {
    display: flex;
    gap: 6px;
    padding: 0 16px 14px;
    border-bottom: 1px solid var(--tm-border);
}
.tm-msg-filter-btn {
    flex: 1;
    padding: 8px 6px;
    border: none;
    background: var(--tm-bg);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--tm-text-muted);
    cursor: pointer;
    transition: all 0.15s;
}
.tm-msg-filter-btn:hover { color: var(--tm-text); }
.tm-msg-filter-btn.active {
    background: var(--tm-primary);
    color: #fff;
}
.tm-msg-col-tutors .tm-conversations-list { flex: 1; overflow-y: auto; }

/* Column 3: tutor details panel */
.tm-msg-col-details { overflow: hidden; padding: 0; }
.tm-details-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--tm-text-muted);
    font-size: 13px;
    padding: 30px 20px;
}
.tm-details-heading {
    flex-shrink: 0;
    padding: 16px 20px;
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tm-text-muted);
    border-bottom: 1px solid var(--tm-border);
    background: #fff;
}
/* Everything between the heading and the sticky footer button scrolls */
.tm-details-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}
.tm-details-profile {
    text-align: center;
    padding: 20px 20px;
    border-bottom: 1px solid var(--tm-border);
}
.tm-details-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.tm-details-name { font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.tm-details-stars { color: #ffb100; font-size: 14px; letter-spacing: 1px; margin-bottom: 6px; }
.tm-details-stars .tm-star-empty { color: var(--tm-border); }
.tm-details-price { font-size: 15px; font-weight: 800; color: var(--tm-primary); margin-bottom: 16px; }
.tm-details-actions { display: flex; gap: 8px; }
.tm-details-actions button {
    flex: 1;
    padding: 9px 6px;
    font-size: 12.5px;
}
.tm-details-actions .tm-archive-btn.is-archived {
    background: var(--tm-primary);
    color: #fff;
    border-color: var(--tm-primary);
}
.tm-details-rows {
    padding: 18px 20px;
}
.tm-details-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.tm-details-row:last-child { margin-bottom: 0; }
.tm-details-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--tm-bg);
    color: var(--tm-text-muted);
    font-weight: 800;
    font-size: 11.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
}
.tm-details-row-body { min-width: 0; }
.tm-details-row-body h5 {
    margin: 0 0 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--tm-text-muted);
    font-weight: 700;
}
.tm-details-row-body p {
    margin: 0;
    font-size: 13.5px;
    color: var(--tm-text);
    line-height: 1.5;
    word-break: break-word;
}

/* Sticky footer: Book Trial Lesson button — always visible, never scrolls */
.tm-details-footer {
    flex-shrink: 0;
    padding: 14px 20px;
    border-top: 1px solid var(--tm-border);
    background: #fff;
}
.tm-details-footer .tm-book-trial-btn { width: 100%; }

@media (max-width: 1080px) {
    .tm-msg-3col { grid-template-columns: 260px 1fr; height: 600px; }
    .tm-msg-col-details { display: none; }
}
@media (max-width: 820px) {
    .tm-msg-3col { grid-template-columns: 1fr; height: auto; }
    .tm-msg-col-tutors { height: 420px; }
    .tm-chat-main { height: 480px; }
}

/* ===== My Bookings table — centered content ===== */
.tm-tutor-dash .tm-table th,
.tm-tutor-dash .tm-table td {
    text-align: center;
    vertical-align: middle;
}
.tm-tutor-dash .tm-table .tm-status,
span.tm-status.tm-status-completed {
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Center the action cell buttons/countdown too */
.tm-tutor-dash .tm-table td .tm-start-class,
.tm-tutor-dash .tm-table td .tm-video-countdown,
.tm-tutor-dash .tm-table td .tm-cd-pill {
    margin: 0 auto;
}

/* ===== Availability — days stacked vertically (one below another) ===== */
.tm-availability-grid {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    grid-template-columns: none !important;
}
.tm-avail-day {
    border: 1px solid var(--tm-border);
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
    transition: box-shadow .18s;
}
.tm-avail-day:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.tm-avail-day h4 {
    font-size: 14px;
    margin: 0 0 10px;
    color: var(--tm-text);
}

/* ==================================================
   FIND TUTOR — 2-column hero
================================================== */
.tm-hero-2col {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
    padding: 40px 0 32px;
}
.tm-hero-left { display: flex; justify-content: center; }
.tm-hero-img {
    width: 100%;
    max-width: 520px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.tm-hero-img-placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: 90px; background: linear-gradient(135deg, #fff2ee, #ffe6d9);
    color: var(--tm-primary);
}
.tm-hero-2col .tm-hero-website {
    display: inline-block;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 10px;
	font-family:'Platform', 'Figtree', 'Inter', 'Noto Sans', sans-serif !important;
}
.tm-hero-heading {
    font-size: 40px; line-height: 1.15; font-weight: 800;
    color: #111; margin: 0 0 16px;
}
.tm-hero-para-wrap { margin-bottom: 22px; }
.tm-hero-para {
    color: #000;
    line-height: 24px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
}
.tm-hero-para.tm-hero-para-open { -webkit-line-clamp: unset; }
.tm-hero-filter { margin-bottom: 20px; }
.tm-hero-filter label {
    display: block; font-size: 13px; font-weight: 700; color: var(--tm-text-muted);
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px;
}
.tm-hero-filter select {
    width: 100%; padding: 13px 16px; font-size: 15px;
    border: 1.5px solid var(--tm-border); border-radius: 12px; background: #fff;
    outline: none; transition: border-color .18s, box-shadow .18s;
}
.tm-hero-filter select:focus {
    border-color: var(--tm-primary); box-shadow: 0 0 0 4px rgba(255,107,107,0.12);
}
.tm-hero-filter select:hover{
	border:1px solid #000;
}
.tm-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.tm-hero-actions .tm-btn-primary,
.tm-hero-actions .tm-btn-secondary { padding: 13px 26px; font-size: 15px; }

@media (max-width: 860px) {
    .tm-hero-2col { grid-template-columns: 1fr; gap: 28px; padding: 24px 0; }
    .tm-hero-heading { font-size: 30px; }
    .tm-hero-left { order: -1; }
}

/* ==================================================
   TUTOR CARD — hover reveal panel (video + buttons)
================================================== */
.tm-tutor-card { position: relative; overflow: visible; transition: box-shadow .2s, transform .2s; }
.tm-tutor-card:hover { box-shadow: 0 14px 40px rgba(0,0,0,0.12);
    border: 2px solid #000;}

/* Hover panel — hidden by default, slides in on hover (desktop only) */
.tm-card-hover {
    position: absolute;
    top: 0;
    left: calc(100% + 16px);
    right: auto;
    width: 322px;
    height: 100%;
    background: #fff;
    border: 2px solid var(--tm-border);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.16);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(12px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 20;
}
.tm-tutor-card:hover .tm-card-hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
 border: 2px solid #dcdce5;
}
.tm-card-video {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}
.tm-card-video iframe { width: 100%; height: 100%; border: none; display: block; }
.tm-card-video-empty { background: var(--tm-bg); }
.tm-card-video-empty img { width: 100%; height: 100%; object-fit: cover; }
.tm-card-hover .tm-hover-btn {
    text-decoration: none; text-align: center; padding: 7px; font-size: 18px;
}

/* Make room so the hover panel doesn't get clipped by the grid */
.tm-tutor-grid { overflow: visible; }

/* Slightly narrower card so the hover panel sits nicely alongside */
@media (min-width: 1100px) {
    .tm-card-3col { grid-template-columns: 150px 1fr 285px; }
    /* leave right margin room for the hover panel */
    .tm-tutor-card { margin-right: 8px; }
}

/* On tablets/phones: no hover panel (touch can't hover); hide it */
@media (max-width: 1099px) {
    .tm-card-hover { display: none !important; }
}

/* ===== Tutor cards: 900px column so hover panel sits beside (not over) ===== */
@media (min-width: 1100px) {
    .tm-tutor-grid { max-width: 900px; margin-left: 0; margin-right: auto; overflow: visible; }
    /* card inner columns tuned for the narrower 900px width */
    .tm-card-3col { grid-template-columns: 140px 1fr 280px; }
    .tm-tutor-card { margin-right: 0; }
}

/* ==================================================
   FILTERS BAR — attractive redesign (overrides)
================================================== */
.tm-filters-bar {
    gap: 16px 18px;
    padding: 22px 24px;
    border-radius: 18px;
    border: 1px solid #f0f0f4;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
    /* Raise the whole bar above content that follows it in the DOM
       (tutor grid / hover panels), since .tm-filter-group below becomes
       its own stacking context (see note) and would otherwise be painted
       underneath later siblings regardless of the dropdown's z-index. */
    position: relative;
    z-index: 5;
}
.tm-filter-group label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    color: #9098a6;
    margin-bottom: 2px;
}

/* The pretty dropdowns + number inputs */
.tm-filter-group select,
.tm-filter-group input[type="number"] {
    padding: 11px 40px 11px 16px;
    border: 1.5px solid #e8e8ef;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tm-text);
    background-color: #fff;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: border-color .22s ease, box-shadow .22s ease, transform .16s ease, background-color .22s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Custom chevron arrow for selects */
.tm-filter-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ff7aac' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
}

/* number inputs don't need the arrow padding */
.tm-filter-group input[type="number"] {
    padding-right: 16px;
}

/* Hover — subtle lift + colored border */
.tm-filter-group select:hover,
.tm-filter-group input[type="number"]:hover {
    border-color: #ffc2b3;
    box-shadow: 0 6px 16px rgba(255,107,107,0.14);
    transform: translateY(-1px);
    background-color: #fffdfc;
}

/* Focus — glowing ring */
.tm-filter-group select:focus,
.tm-filter-group input[type="number"]:focus {
    border-color: var(--tm-primary);
    box-shadow: 0 0 0 4px rgba(255,107,107,0.16);
    transform: translateY(-1px);
}

/* Price range: keep the two inputs tidy and pill-shaped */
.tm-price-range { gap: 10px; }
.tm-price-range input { width: 104px; text-align: center; }
.tm-price-range span { color: #b7bcc7; font-weight: 700; }

/* Availability: two selects side by side with a little breathing room */
.tm-avail-filter { display: flex; gap: 10px; flex-wrap: wrap; }

/* Nice entrance so the bar feels alive on load */
@keyframes tmFilterIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tm-filters-bar .tm-filter-group {
    animation: tmFilterIn .4s ease both;
    /* The animation above (transform/opacity, fill-mode:both) makes this
       element a permanent stacking context. Give it an explicit z-index so
       we can reliably raise ONE group above its sibling groups while its
       dropdown is open (otherwise later siblings always paint on top). */
    position: relative;
    z-index: 1;
}
.tm-filters-bar .tm-filter-group.tm-group-open {
    z-index: 40;
}
.tm-filters-bar .tm-filter-group:nth-child(1) { animation-delay: .02s; }
.tm-filters-bar .tm-filter-group:nth-child(2) { animation-delay: .06s; }
.tm-filters-bar .tm-filter-group:nth-child(3) { animation-delay: .10s; }
.tm-filters-bar .tm-filter-group:nth-child(4) { animation-delay: .14s; }
.tm-filters-bar .tm-filter-group:nth-child(5) { animation-delay: .18s; }
.tm-filters-bar .tm-filter-group:nth-child(6) { animation-delay: .22s; }
.tm-filters-bar .tm-filter-group:nth-child(7) { animation-delay: .26s; }
.tm-filters-bar .tm-filter-group:nth-child(8) { animation-delay: .30s; }

/* Selected option colour in supporting browsers */
.tm-filter-group select option:checked { color: var(--tm-primary); font-weight: 700; }

/* ==================================================
   CUSTOM DROPDOWN (attractive select replacement)
================================================== */
.tm-select { position: relative; display: inline-block; }

/* Hide the native select but keep it accessible/functional */
.tm-select > select {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0 !important; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* The visible trigger button */
.tm-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 150px;
    width: 100%;
    padding: 11px 16px;
    border: 2px solid #e8e8ef;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--tm-text);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: border-color .22s, box-shadow .22s, transform .16s, background-color .22s;
}
.tm-select-trigger:hover {
    border-color: #000;
    box-shadow: 0 6px 16px rgba(255,107,107,0.14);
    transform: translateY(-1px);
    background: #fffdfc;
}
.tm-select.open .tm-select-trigger {
    border-color: var(--tm-primary);
    box-shadow: 0 0 0 4px rgba(255,107,107,0.16);
}
.tm-select-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-select-arrow { color: var(--tm-primary); flex-shrink: 0; transition: transform .25s ease; }
.tm-select.open .tm-select-arrow { transform: rotate(180deg); }

/* The dropdown menu */
.tm-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 100%;
    width: max-content;
    max-width: 320px;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.16);
    padding: 8px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.tm-select.open .tm-select-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Options */
.tm-select-option {
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tm-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color .16s, color .16s, transform .12s, padding-left .16s;
}
.tm-select-option:hover {
    background: linear-gradient(90deg, #fff2ee, #fff);
    color: var(--tm-primary-dark);
    padding-left: 18px;
}
.tm-select-option.selected {
    background: #ff7aac;
    color: #fff;
}
.tm-select-option.selected::after {
    content: '✓';
    margin-left: auto;
    font-weight: 800;
}

/* Scrollbar prettify inside menu */
.tm-select-menu::-webkit-scrollbar { width: 8px; }
.tm-select-menu::-webkit-scrollbar-thumb { background: #eadfe0; border-radius: 8px; }

/* Staggered option entrance when opened */
.tm-select.open .tm-select-option {
    animation: tmOptIn .22s ease both;
}
@keyframes tmOptIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tm-select.open .tm-select-option:nth-child(1) { animation-delay: .02s; }
.tm-select.open .tm-select-option:nth-child(2) { animation-delay: .05s; }
.tm-select.open .tm-select-option:nth-child(3) { animation-delay: .08s; }
.tm-select.open .tm-select-option:nth-child(4) { animation-delay: .11s; }
.tm-select.open .tm-select-option:nth-child(5) { animation-delay: .14s; }
.tm-select.open .tm-select-option:nth-child(6) { animation-delay: .17s; }
.tm-select.open .tm-select-option:nth-child(n+7) { animation-delay: .19s; }

/* Make the hero subject dropdown full width like its old select */
.tm-hero-filter .tm-select { display: block; width: 100%; }
.tm-hero-filter .tm-select-trigger { padding: 13px 16px; }

/* ==================================================
   MULTI-SELECT (checkbox) DROPDOWN — Availability & Teaching Style
================================================== */
.tm-select-option-check { padding: 9px 10px; }
.tm-select-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid #d8d8e0;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .16s, border-color .16s;
}
.tm-select-option-check.selected .tm-select-check {
    background: #ff7aac;
    border-color: transparent;
}
.tm-select-option-check.selected .tm-select-check::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}
/* checkbox-style rows use a light tint instead of the solid pink fill the
   single-select "selected" state uses, and no right-side checkmark (the
   checkbox already shows state) */
.tm-select-option-check.selected {
    background: #fff5f3;
    color: var(--tm-text);
}
.tm-select-option-check.selected::after { content: none; }
.tm-select-opt-text { flex: 1; }

.tm-select-menu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    padding: 8px 6px 2px;
    border-top: 1px solid #f0f0f4;
}
.tm-select-clear-btn,
.tm-select-done-btn {
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
}
.tm-select-clear-btn { color: #9098a6; }
.tm-select-clear-btn:hover { color: #555; background: #f5f5f8; }
.tm-select-done-btn { color: #fff; background: #ff7aac; }
.tm-select-done-btn:hover { opacity: .92; }

/* ==================================================
   FONTS — headings use Platform, body/text uses Figtree
   (font files are loaded by the site; here we just apply them)
================================================== */
.tm-wrapper h1, .tm-wrapper h2, .tm-wrapper h3, .tm-wrapper h4,
.tm-profile-page-v2 h1, .tm-profile-page-v2 h2, .tm-profile-page-v2 h3, .tm-profile-page-v2 h4,
.tm-hero-heading, .tm-hero-website,
.tm-dash-hello, .tm-section-title,
.tm-tutor-name, .tm-details-name,
.tm-chat-col-head h3, .tm-profile-name,
.tm-modal-content h3, .tm-review-modal-content h3 {
    font-family: 'Platform', 'Figtree', 'Inter', 'Noto Sans', sans-serif !important;
}

/* Body text + paragraphs + form controls inside our UI use Figtree */
.tm-wrapper, .tm-profile-page-v2,
.tm-wrapper p, .tm-profile-page-v2 p,
.tm-wrapper button, .tm-wrapper input, .tm-wrapper select, .tm-wrapper textarea, .tm-wrapper label, .tm-wrapper span, .tm-wrapper a, .tm-wrapper div,
.tm-profile-page-v2 button, .tm-profile-page-v2 input, .tm-profile-page-v2 select, .tm-profile-page-v2 textarea, .tm-profile-page-v2 label, .tm-profile-page-v2 span, .tm-profile-page-v2 a {
    font-family: 'Figtree', sans-serif !important;
}

/* Re-assert headings win over the broad body rule above */
.tm-wrapper h1, .tm-wrapper h2, .tm-wrapper h3, .tm-wrapper h4,
.tm-profile-page-v2 h1, .tm-profile-page-v2 h2, .tm-profile-page-v2 h3, .tm-profile-page-v2 h4,
.tm-hero-heading, .tm-hero-website, .tm-dash-hello, .tm-section-title,
.tm-tutor-name, .tm-details-name, .tm-chat-col-head h3, .tm-profile-name,
.tm-modal-content h3, .tm-review-modal-content h3 {
    font-family: 'Platform', 'Figtree', 'Inter', 'Noto Sans', sans-serif !important;
}

/* ==================================================
   Super/Professional badges + style tags — unified
   gradient background with black text (everywhere)
================================================== */
.tm-style-tag,
.tm-badge-super, .tm-badge-professional,
.tm-cat-super, .tm-cat-pro,
.tm-cat-badge,
.tm-profile-page-v2 .tm-cat-super,
.tm-profile-page-v2 .tm-cat-pro,
.tm-profile-page-v2 .tm-cat-badge {
    background: linear-gradient(93deg, #cce2ff, #ffdbe9) !important;
    color: #000 !important;
    border: none !important;
}

/* First + Last name side by side on the register form */
.tm-auth2-form .tm-a2-row { display: flex; gap: 12px; }
.tm-auth2-form .tm-a2-row .tm-a2-group { flex: 1; min-width: 0; }
@media (max-width: 480px) {
    .tm-auth2-form .tm-a2-row { flex-direction: column; gap: 0; }
}

/* Subject heading above the tutor grid */
.tm-subject-heading {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin: 24px 0 8px;
    line-height: 1.2;
	letter-spacing:0.32px;
}
@media (max-width: 600px) {
    .tm-subject-heading { font-size: 24px; }
}

/* ==================================================
   HERO — buttons stacked, second one borderless
================================================== */
.tm-hero-actions {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}
.tm-hero-actions .tm-btn-primary,
.tm-hero-actions .tm-btn-secondary {
    width: 100%;
    padding: 14px 26px;
    font-size: 15px;
}
.tm-hero-actions .tm-btn-secondary {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
.tm-hero-actions .tm-btn-secondary:hover {
    background: rgba(255,122,172,0.08) !important;
}

/* ==================================================
   FILTERS — search field
================================================== */
.tm-search-wrap { position: relative; display: flex; align-items: center; }
.tm-search-ico {
    position: absolute; left: 14px; font-size: 14px; pointer-events: none; opacity: .6;
}
.tm-filter-search input[type="text"] {
    width: 100%;
    min-width: 200px;
    padding: 11px 16px 11px 38px;
    border: 1.5px solid #e8e8ef;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: border-color .22s, box-shadow .22s, transform .16s;
}
.tm-filter-search input[type="text"]:hover {
    border-color: #ffc2d8;
    box-shadow: 0 6px 16px rgba(255,122,172,0.14);
    transform: translateY(-1px);
}
.tm-filter-search input[type="text"]:focus {
    border-color: var(--tm-primary);
    box-shadow: 0 0 0 4px rgba(255,122,172,0.16);
}

/* ==================================================
   TUTOR CARD — cleaner look
================================================== */
/* Remove hover lift + shadow on the card itself */
.tm-tutor-card:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* Sticky hover: the panel shows for the ACTIVE card (set by JS) */
.tm-tutor-card:hover .tm-card-hover { opacity: 0; visibility: hidden; }
.tm-tutor-card.tm-card-active .tm-card-hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
/* Smooth entrance for the hover panel */
.tm-card-hover {
    transition: opacity .35s cubic-bezier(.22,.61,.36,1),
                transform .35s cubic-bezier(.22,.61,.36,1),
                visibility .35s;
    transform: translateX(18px);
}

/* Name + country flag */
.tm-name-flag { font-size: 18px; margin-left: 4px; vertical-align: middle; }

/* Category — icon only, no background, one row */
.tm-tutor-cat { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.tm-cat-plain {
    display: inline-flex; align-items: center; gap: 5px;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    font-size: 14px; font-weight: 600; color: #000;
	line-height:20px;
}
.tm-cat-ico { font-size: 13px; }

/* Subjects + languages — plain text with a small icon */
.tm-subj-text, .tm-lang-text {
    display: flex; align-items: center; gap: 7px;
    font-size: 16px; color: #444; margin-bottom: 3px;
    background: none; border: none; padding: 0;
	    font-weight: 400;
    line-height: 24px;
}
.tm-row-ico { font-size: 13px; opacity: .8; flex-shrink: 0; }

/* Teaching style — single pill, comma separated, with icon */
.tm-style-row { margin: 6px 0 8px; }
.tm-style-row .tm-style-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}
.tm-style-ico { flex-shrink: 0; }

/* Price — duration below the amount */
.tm-price-block { display: flex; flex-direction: column; gap: 2px; }
.tm-tutor-price { font-size: 22px; font-weight: 800; line-height: 1.1; }
.tm-price-per {
    font-size: 16px;
    color: #4d4c5c;
    font-weight: 400;
}

/* Rating — a single star icon */
.tm-star-one { color: #ffb400; }

/* Video play button, bottom-right of the video */
.tm-card-video { position: relative; }
.tm-video-play {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--tm-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    pointer-events: none;
}

/* ==================================================
   STICKY CARD HOVER — border stays on the active card
   even after the cursor leaves, until another card is
   hovered (the .tm-card-active class is set by JS).
================================================== */
.tm-tutor-card {
    transition: border-color .25s ease, box-shadow .2s, transform .2s;
    border-color: #dcdce5;
}
/* The active card keeps the highlight colour (wins over :hover) */
.tm-tutor-card.tm-card-active {
    border-color: #000 !important;
}

/* ==================================================
   PROFILE — identity, highlights, plain text sections
================================================== */
.tm-pv-meta-line {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
    margin-top: 4px; font-size: 15px; color: #555;
}
.tm-pv-flag { font-size: 18px; vertical-align: middle; }
.tm-pv-country { display: inline-flex; align-items: center; gap: 6px; }
.tm-pv-subjline { color: #444; font-weight: 600; }
.tm-pv-tagline { margin: 8px 0 0; color: #555; font-size: 15px; line-height: 1.5; }

/* Highlights — teaching-style blocks in one row, same background */
.tm-pv-highlights { display: flex; flex-wrap: wrap; gap: 10px; }
.tm-pv-highlight {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 14px; border-radius: 7px; font-size: 14px; font-weight: 600;
}

/* Category — plain text, no background */
.tm-pv-cats { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0; }
.tm-pv-cats .tm-cat-plain {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #0450b4;
}

/* Teaches — plain text */
.tm-pv-teaches { margin: 0; font-size: 15px; color: #444; line-height: 1.6; }

/* ==================================================
   BOOKING CARD — sticks in place, content scrolls
================================================== */
.tm-booking-card-v2 {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.tm-booking-card-v2 > * { flex-shrink: 0; }
/* Make the inner content scrollable, not the whole card */
.tm-booking-card-v2 {
    overflow-y: auto;
    scrollbar-width: thin;
}
.tm-booking-card-v2::-webkit-scrollbar { width: 8px; }
.tm-booking-card-v2::-webkit-scrollbar-thumb { background: #e9dfe3; border-radius: 8px; }

/* Price in the booking card */
.tm-bc-price-amount { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.1; }
.tm-bc-price-per { display: block; font-size: 15px; color: var(--tm-text-muted); font-weight: 600; margin-top: 2px; }

/* Like + Share buttons with labels */
.tm-bc-actions {
    display: flex;
    gap: 28px;
    justify-content: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--tm-border);
}
.tm-bc-action {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 6px 10px !important;
    border-radius: 12px;
    width: auto !important;
    height: auto !important;
    transition: background-color .18s, transform .16s, color .18s;
}
.tm-bc-action .tm-bc-ico { font-size: 26px; line-height: 1; color: #9aa0ad; transition: color .18s, transform .18s; }
.tm-bc-action .tm-bc-label { font-size: 13px; font-weight: 700; color: #6b7280; }
.tm-bc-action:hover { background: rgba(255,122,172,0.08) !important; transform: translateY(-2px); }
.tm-bc-action:hover .tm-bc-ico { color: var(--tm-primary); transform: scale(1.08); }
.tm-bc-action:hover .tm-bc-label { color: var(--tm-primary); }

/* Liked (active) state — highlighted */
.tm-bc-action.tm-heart-on .tm-bc-ico { color: var(--tm-primary); }
.tm-bc-action.tm-heart-on .tm-bc-label { color: var(--tm-primary); }
.tm-bc-action.tm-heart-on { background: rgba(255,122,172,0.12) !important; }

/* Tagline now sits below the identity block */
.tm-pv-tagline {
    margin: 16px 0 4px;
    color: #000;
    font-size: 16px;
    line-height: 24px;
}

/* Rating grid — icons above the number */
.tm-rating-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.tm-rating-ico { font-size: 22px; line-height: 1; }

/* Auto-detected timezone (settings) */
.tm-tz-auto {
    padding: 12px 14px;
    border: 1.5px solid var(--tm-border);
    border-radius: 10px;
    background: #fafafc;
}
.tm-tz-name { display: block; font-weight: 700; font-size: 15px; color: var(--tm-text); }
.tm-tz-auto small { display: block; margin-top: 4px; color: var(--tm-text-muted); font-size: 12px; line-height: 1.5; }

/* Note under the booking time slots */
.tm-slot-tz-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--tm-text-muted);
    text-align: center;
}

/* Payment result notices (after returning from Stripe/PayPal) */
.tm-pay-notice {
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 20px;
}
.tm-pay-ok   { background: #e6f7ec; color: #1e7e46; border: 1px solid #b7e4c7; }
.tm-pay-warn { background: #fff4e5; color: #b76e00; border: 1px solid #ffd699; }
.tm-pay-err  { background: #fdecea; color: #b3261e; border: 1px solid #f5c2c0; }

/* ==================================================
   PAYMENT METHOD CHOOSER
================================================== */
.tm-paymethod-content { max-width: 460px; width: 92%; }
.tm-paymethod-content h3 { margin: 0 0 6px; }
.tm-paymethod-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.tm-paymethod-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8ef;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color .18s, box-shadow .18s, transform .16s;
}
.tm-paymethod-btn:hover:not(:disabled) {
    border-color: var(--tm-primary);
    box-shadow: 0 6px 18px rgba(255,122,172,0.16);
    transform: translateY(-1px);
}
.tm-paymethod-btn:disabled { opacity: .6; cursor: default; }
.tm-pm-icon { font-size: 24px; flex-shrink: 0; }
.tm-pm-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.tm-pm-name { font-weight: 700; font-size: 15px; color: var(--tm-text); }
.tm-pm-desc { font-size: 12px; color: var(--tm-text-muted); }
.tm-pm-arrow { color: var(--tm-primary); font-weight: 800; flex-shrink: 0; }
