.wplc-class-meta {
    background: #f7f7f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 16px 0;
}

.wplc-class-meta p { margin: 6px 0; }

.wplc-btn {
    display: inline-block;
    padding: 12px 22px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.wplc-btn:hover { opacity: 0.9; color: #fff; }

.wplc-notice {
    padding: 12px 16px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    color: #7a5c00;
    margin: 16px 0;
}

.wplc-zoom-hint {
    font-size: 12px;
    color: #888;
    margin: -8px 0 16px;
}

.wplc-jitsi-embed {
    width: 100%;
    min-height: 600px;
    margin: 16px 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    transition: min-height 0.3s ease, margin 0.3s ease;
}

/* Collapsed until a class is actually started/joined and the iframe populates it. */
.wplc-jitsi-embed:empty {
    min-height: 0;
    margin: 0;
}

.wplc-jitsi-embed iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

.wplc-embed-fallback-link {
    font-size: 12px;
    color: #888;
    margin: -8px 0 16px;
}

.wplc-class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.wplc-class-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
    background: #fff;
}

.wplc-class-card img { width: 100%; border-radius: 6px; margin-bottom: 10px; }
.wplc-class-card h3 { margin: 0 0 6px; font-size: 16px; }
.wplc-card-teacher, .wplc-card-time { font-size: 13px; color: #666; margin: 2px 0; }
.wplc-card-price { font-size: 13px; font-weight: 700; color: #1a1a2e; margin: 4px 0; }
.wplc-class-card .wplc-btn { margin-top: 10px; width: 100%; }

.wplc-recording { margin: 20px 0; }

/* ------------------------------------------------------------------ *
 * Live class booking wizard — single page, step by step
 * ------------------------------------------------------------------ */

.wplc-booking-wizard {
    max-width: 640px;
    margin: 20px 0;
}

.wplc-wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    position: relative;
}

.wplc-wizard-progress::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.wplc-wizard-step-dot {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.wplc-wizard-step-dot span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #999;
}

.wplc-wizard-step-dot label {
    font-size: 11px;
    color: #999;
    text-align: center;
}

.wplc-wizard-step-dot.is-active span {
    border-color: #1a1a2e;
    background: #1a1a2e;
    color: #fff;
}

.wplc-wizard-step-dot.is-active label { color: #1a1a2e; font-weight: 600; }

.wplc-wizard-step-dot.is-done span {
    border-color: #2e7d32;
    background: #2e7d32;
    color: #fff;
}

.wplc-wizard-step { display: none; }
.wplc-wizard-step.is-active { display: block; animation: wplcFadeIn 0.25s ease; }

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

.wplc-wizard-step h3 {
    margin: 0 0 16px;
    font-size: 18px;
}

.wplc-wizard-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.wplc-wizard-option {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #1a1a2e !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wplc-wizard-option:hover {
    border-color: #1a1a2e;
    background: #f7f7fb;
    color: #1a1a2e !important;
}

.wplc-wizard-back {
    background: none;
    border: none;
    color: #666 !important;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 8px;
}

.wplc-wizard-class-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #fff;
    color: #333 !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wplc-wizard-class-card .wplc-btn {
    margin-top: 8px;
    align-self: flex-start;
    padding: 8px 18px;
}

.wplc-wizard-summary {
    background: #f7f7f8;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.wplc-wizard-summary p { margin: 4px 0; }
.wplc-wizard-loading { color: #888; }

.wplc-badge {
    display: inline-block;
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin: 2px 4px 2px 0;
}

.wplc-badge-level {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.wplc-badge-subject {
    background: #ffb648;
    color: #4a2e00;
    border-color: #ffb648;
    font-weight: 700;
}

/* ------------------------------------------------------------------ *
 * Teacher-photo carousel — horizontal scroll, photo as hero image,
 * class details overlaid on the left in a readable gradient panel.
 * ------------------------------------------------------------------ */

.wplc-carousel-scroll {
    padding: 8px 4px 20px;
}

.wplc-carousel-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
}

.wplc-teacher-card {
    cursor: pointer;
    position: relative;
    display: block;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.wplc-teacher-card-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-color: #e0e0e0;
}

.wplc-teacher-card-body {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px 16px;
    background: linear-gradient(to top, rgba(10, 10, 20, 0.9) 0%, rgba(10, 10, 20, 0.6) 40%, rgba(10, 10, 20, 0.15) 75%, transparent 100%);
    color: #fff !important;
}

.wplc-teacher-card-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #fff !important;
    line-height: 1.3;
}

.wplc-teacher-card-body .wplc-card-curriculums { margin: 0 0 8px; }

.wplc-teacher-card-meta {
    margin: 0 0 4px;
    font-size: 12px;
    color: #d8d8e0 !important;
}

.wplc-teacher-card-price {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #fff !important;
}

.wplc-teacher-card-teacher-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wplc-teacher-card-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #ccc;
    border: 2px solid #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.wplc-teacher-card-teacher {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff !important;
}

.wplc-teacher-card-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
}

.wplc-mini-star {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

.wplc-mini-star.is-filled {
    color: #ffb648;
}

.wplc-teacher-card-rating-count {
    font-size: 11px;
    color: #d8d8e0 !important;
    margin-left: 3px;
}

.wplc-teacher-card-full {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: #b32d2e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}

@media (max-width: 640px) {
    .wplc-carousel-track { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ *
 * Booking modal — opened from a teacher carousel card
 * ------------------------------------------------------------------ */

body.wplc-modal-open { overflow: hidden; }

.wplc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.6);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wplc-modal-overlay.is-active {
    display: flex;
}

.wplc-modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.wplc-lesson-modal {
    max-width: 640px;
}

.wplc-pricing-edit-page .wplc-duration-row input {
    width: 200px;
}

.wplc-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #333;
}

.wplc-modal-content { padding-bottom: 20px; }

.wplc-modal-photo {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center top;
    border-radius: 16px 16px 0 0;
    background-color: #e0e0e0;
}

.wplc-modal-content h3 {
    margin: 16px 20px 4px;
    font-size: 19px;
}

.wplc-modal-teacher {
    margin: 0 20px 2px;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.wplc-modal-time {
    margin: 0 20px 10px;
    font-size: 13px;
    color: #888;
}

.wplc-modal-price {
    margin: 0 20px 16px;
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
}

.wplc-modal-content .wplc-btn {
    margin: 0 20px;
    width: calc(100% - 40px);
}

.wplc-modal-content .wplc-notice {
    margin: 0 20px 12px;
}

.wplc-modal-viewlink {
    margin: 14px 20px 0;
    font-size: 13px;
    text-align: center;
}

.wplc-modal-screen { display: none; }
.wplc-modal-screen.is-active { display: block; animation: wplcFadeIn 0.25s ease; }
.wplc-modal-screen .wplc-wizard-summary { margin: 0 20px 16px; }
.wplc-modal-screen .wplc-wizard-back { margin: 8px 20px 0; }

.wplc-zoom-prompt-icon {
    font-size: 40px;
    text-align: center;
    margin: 24px 0 8px;
}

.wplc-zoom-prompt-icon + h3 {
    text-align: center;
}

.wplc-zoom-prompt-text {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 0 20px 18px;
}

.wplc-zoom-prompt-open {
    display: block;
    margin: 0 20px 8px;
}

.wplc-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 16px 0 24px;
}

.wplc-filter-form select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.wplc-filter-clear {
    font-size: 13px;
    color: #666;
    text-decoration: underline;
}

/* ------------------------------------------------------------------ *
 * Dark gradient card wrapper shared by scheduling + application forms
 * ------------------------------------------------------------------ */

.wplc-schedule-form {
    max-width: 720px;
    margin: 24px 0;
    padding: 32px 36px;
    border-radius: 16px;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 55%, #0f3460 100%);
    color: #f1f1f6;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.wplc-schedule-form > p,
.wplc-schedule-form > div {
    margin-bottom: 18px;
}

.wplc-schedule-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #e8e8f0;
    font-size: 14px;
}

.wplc-schedule-form input[type="text"],
.wplc-schedule-form input[type="email"],
.wplc-schedule-form input[type="password"],
.wplc-schedule-form input[type="number"],
.wplc-schedule-form input[type="datetime-local"],
.wplc-schedule-form input[type="file"],
.wplc-schedule-form select,
.wplc-schedule-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #f5f5f9;
    font-size: 14px;
    box-sizing: border-box;
}

.wplc-schedule-form input::placeholder,
.wplc-schedule-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.wplc-schedule-form input:focus,
.wplc-schedule-form select:focus,
.wplc-schedule-form textarea:focus {
    outline: none;
    border-color: #4dabf7;
    background: rgba(255, 255, 255, 0.1);
}

.wplc-schedule-form select option {
    color: #1a1a2e;
}

.wplc-schedule-form input[type="file"] {
    padding: 8px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.wplc-schedule-form textarea {
    resize: vertical;
    min-height: 90px;
}

.wplc-schedule-form h4 {
    margin: 28px 0 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 0.3px;
}

.wplc-schedule-form .description {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    font-weight: 400;
    display: block;
    margin-top: 4px;
}

.wplc-schedule-form .wplc-btn {
    background: linear-gradient(135deg, #4dabf7, #3b82f6);
    padding: 13px 28px;
    font-size: 15px;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

.wplc-schedule-form .wplc-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(59, 130, 246, 0.45);
}

/* Curriculum → level cascading fieldsets */

.wplc-curriculum-levels {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wplc-curriculum-group {
    border: 1px solid #e0e0e6;
    border-radius: 10px;
    padding: 12px 16px 14px;
    background: #f7f7fa;
}

.wplc-curriculum-group legend {
    padding: 0 6px;
    width: auto;
    font-size: 14px;
}

.wplc-curriculum-group legend label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 700;
    color: #1a1a2e !important;
}

.wplc-curriculum-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4dabf7;
}

.wplc-level-options {
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 4px;
}

.wplc-level-options label {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 3px 4px !important;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #e0e0e6;
    border-radius: 999px;
    font-weight: 400 !important;
    font-size: 13px;
    color: #333 !important;
}

/* Subject checkboxes */

.wplc-subject-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wplc-subject-options label {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e0e0e6;
    border-radius: 999px;
    font-weight: 400 !important;
    font-size: 13px;
    color: #333 !important;
}

.wplc-schedule-form input[type="checkbox"] {
    accent-color: #4dabf7;
}

/* ------------------------------------------------------------------ *
 * Status badges, notices, misc
 * ------------------------------------------------------------------ */

.wplc-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.wplc-status-pending  { background: #fff8e1; color: #7a5c00; }
.wplc-status-approved { background: #e8f5e9; color: #1b5e20; }
.wplc-status-rejected { background: #fdecea; color: #611a15; }

.wplc-application-form h4 {
    margin-top: 20px;
}

.wplc-notice.wplc-notice-error {
    background: #fdecea;
    border-color: #f5c6cb;
    color: #611a15;
}

/* ------------------------------------------------------------------ *
 * Teacher Dashboard
 * ------------------------------------------------------------------ */

/* ============================================================ *
 * Learner Dashboard — green → orange brand palette
 * ============================================================ */

.wplc-dashboard {
    --wplc-grad: linear-gradient(135deg, #2e7d32, #f57c00);
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin: 20px 0;
}

/* ---- Sidebar nav ---- */
.wplc-dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.wplc-nav-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    border: none;
    border-left: 4px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #33373d;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.wplc-nav-btn + .wplc-nav-btn { border-top: 1px solid #f0f1f3; }
.wplc-nav-btn:hover { background: #f6f8f4; color: #2e7d32; }

.wplc-nav-btn.is-active {
    background: linear-gradient(90deg, rgba(46,125,50,.09), rgba(245,124,0,.06));
    border-left-color: #f57c00;
    color: #2e7d32;
}

/* ---- Panels ---- */
.wplc-dashboard-panels { flex: 1; min-width: 0; }

.wplc-panel { display: none; }
.wplc-panel.is-active { display: block; }

.wplc-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid transparent;
    border-image: var(--wplc-grad) 1;
}

.wplc-panel-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    background: var(--wplc-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wplc-panel-close {
    display: none;
    border: none;
    background: none;
    color: #2e7d32;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 10px;
}

/* ---- Lesson rows ---- */
.wplc-my-class-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid #e8eaee;
    border-left: 4px solid transparent;
    border-image: none;
    border-radius: 14px;
    border-left-color: #2e7d32;
    margin-bottom: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: box-shadow .15s, border-left-color .15s;
}

.wplc-my-class-row:hover {
    box-shadow: 0 6px 20px rgba(46,125,50,.12);
    border-left-color: #f57c00;
}

.wplc-my-class-row.wplc-is-past {
    opacity: .6;
    border-left-color: #ccc;
}

.wplc-my-class-meta { font-size: 13px; color: #6b7076; margin-top: 5px; line-height: 1.8; }

.wplc-my-class-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.wplc-my-class-actions a {
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    color: #2e7d32;
    padding: 6px 14px;
    border: 2px solid #2e7d32;
    border-radius: 8px;
    transition: background .15s, color .15s;
}

.wplc-my-class-actions a:hover {
    background: linear-gradient(135deg, #2e7d32, #f57c00);
    border-color: transparent;
    color: #fff;
}

.wplc-profile-form {
    max-width: 480px;
}

.wplc-profile-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.wplc-profile-form input,
.wplc-profile-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    margin-bottom: 14px;
}

.wplc-profile-form h4 {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

/* Payment history table */
.wplc-payment-table {
    width: 100%;
    border-collapse: collapse;
}
.wplc-payment-table th, .wplc-payment-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}
.wplc-payment-table th { color: #666; font-weight: 600; }

/* Chat */
.wplc-chat-wrap {
    display: flex;
    gap: 16px;
    height: 420px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}
.wplc-chat-contacts {
    width: 180px;
    flex-shrink: 0;
    background: #f7f7f8;
    overflow-y: auto;
    border-right: 1px solid #e0e0e0;
}
.wplc-chat-contact {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}
.wplc-chat-contact:hover { background: #eee; }
.wplc-chat-contact.is-active { background: #1a1a2e; color: #fff; }

.wplc-chat-thread {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wplc-chat-placeholder { color: #999; text-align: center; margin-top: 40px; }

.wplc-chat-bubble {
    max-width: 70%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
}
.wplc-chat-mine {
    align-self: flex-end;
    background: #1a1a2e;
    color: #fff;
}
.wplc-chat-theirs {
    align-self: flex-start;
    background: #f0f0f0;
    color: #222;
}
.wplc-chat-time { font-size: 10px; opacity: 0.6; margin-top: 4px; }

.wplc-chat-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.wplc-chat-form input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Star rating */
.wplc-star-rating {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    display: inline-block;
}
.wplc-star { padding: 0 2px; }
.wplc-star.is-filled { color: #ffb648; }

@media (max-width: 480px) {
    .wplc-chat-wrap { flex-direction: column; height: auto; }
    .wplc-chat-contacts { width: 100%; max-height: 120px; border-right: none; border-bottom: 1px solid #e0e0e0; }
    .wplc-chat-thread { height: 300px; }
}

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

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

.wplc-profile-photo-field label {
    margin-bottom: 0;
}

/* Mobile: nav becomes the main page, panels become full-screen
   slide-in overlays — green→orange sticky header. */
@media (max-width: 768px) {
    .wplc-dashboard {
        flex-direction: column;
        gap: 0;
    }

    .wplc-dashboard-nav {
        width: 100%;
        position: static;
        border-radius: 14px;
        box-shadow: 0 4px 18px rgba(0,0,0,.08);
        overflow: hidden;
        margin-bottom: 16px;
    }

    .wplc-nav-btn {
        padding: 15px 18px;
        border-left: 4px solid transparent;
        border-radius: 0;
    }

    .wplc-nav-btn.is-active {
        background: transparent;
        color: #2e7d32;
        border-left-color: #f57c00;
    }

    .wplc-panel {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #f9faf8;
        z-index: 999999;
        overflow-y: auto;
        padding: 0 0 40px;
        box-sizing: border-box;
        transform: translateX(100%);
        transition: transform 0.32s ease;
    }

    .wplc-panel.is-active {
        transform: translateX(0);
    }

    .wplc-panel-close {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .wplc-panel-header {
        position: sticky;
        top: 0;
        background: linear-gradient(135deg, #2e7d32, #f57c00);
        margin: 0;
        padding: 14px 18px;
        border-bottom: none;
        z-index: 2;
    }

    .wplc-panel-header h2,
    .wplc-panel-close {
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        background: none !important;
    }

    .wplc-panel > .wplc-my-classes,
    .wplc-panel > .wplc-requested-list {
        padding: 18px;
    }
}

/* ------------------------------------------------------------------ *
 * Public Teacher Profile page
 * ------------------------------------------------------------------ */

.wplc-tp-page {
    background: #eaf1f7;
    padding: 28px;
    border-radius: 18px;
    max-width: 900px;
    margin: 20px auto;
}

.wplc-tp-header {
    display: flex;
    gap: 28px;
    align-items: center;
    background: linear-gradient(135deg, #2e7d32 0%, #f57c00 100%);
    color: #fff;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(20, 60, 30, 0.25);
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.wplc-tp-photo-wrap {
    position: relative;
    flex-shrink: 0;
}

.wplc-tp-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    display: block;
}

.wplc-tp-trust-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #fff;
    color: #2e7d32;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.wplc-tp-trust-badge .wplc-tp-icon svg { width: 20px; height: 20px; }

.wplc-tp-header-info { flex: 1; min-width: 220px; }

.wplc-tp-header-info h1 {
    margin: 0 0 8px;
    font-size: 27px;
    color: #fff !important;
}

.wplc-tp-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 16px;
}

.wplc-tp-rating-text {
    margin-left: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9) !important;
}

.wplc-tp-stats {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}

.wplc-tp-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wplc-tp-stat .wplc-tp-icon svg { width: 26px; height: 26px; color: #fff; }

.wplc-tp-stat strong {
    display: block;
    font-size: 16px;
    color: #fff !important;
}

.wplc-tp-stat span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85) !important;
}

.wplc-tp-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px 26px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(20, 40, 60, 0.08);
    border: 1px solid #e3ecf3;
}

.wplc-tp-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    margin: 0 0 14px;
    color: #1a1a2e;
}

.wplc-tp-section h2 .wplc-tp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2e7d32, #f57c00);
    color: #fff;
    padding: 8px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.wplc-tp-section h2 .wplc-tp-icon svg { width: 100%; height: 100%; }

.wplc-tp-section p { margin: 0; line-height: 1.6; color: #333; }

.wplc-tp-video {
    width: 100%;
    max-height: 420px;
    border-radius: 12px;
    background: #000;
    display: block;
}

.wplc-tp-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wplc-tp-pill {
    background: linear-gradient(135deg, #e8f5e9, #fff8e1);
    color: #235c27;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #cfe8d1;
}

.wplc-tp-pill-alt {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #8a5a1e;
    border-color: #ffd699;
}

.wplc-tp-scope-row {
    margin-bottom: 14px;
}

.wplc-tp-scope-row:last-child { margin-bottom: 0; }

.wplc-tp-scope-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 6px;
}

.wplc-tp-pill-subject {
    background: linear-gradient(135deg, #2e7d32, #f57c00);
    color: #fff;
    border-color: transparent;
}

.wplc-tp-map iframe {
    width: 100%;
    height: 280px;
    border: 0;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.wplc-tp-review {
    border-top: 1px solid #eee;
    padding: 16px 0;
}

.wplc-tp-review:first-child { border-top: none; padding-top: 0; }

.wplc-tp-review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.wplc-tp-review-stars .wplc-mini-star { font-size: 13px; }
.wplc-tp-review-stars .wplc-mini-star.is-filled { color: #f57c00; }
.wplc-tp-review-stars .wplc-mini-star:not(.is-filled) { color: #ddd; }

.wplc-tp-review-date {
    margin-left: auto;
    color: #999;
    font-size: 12px;
}

.wplc-tp-review p { color: #555; font-size: 14px; }

.wplc-tp-muted { color: #999; }

@media (max-width: 640px) {
    .wplc-tp-page { padding: 16px; margin: 10px auto; }
    .wplc-tp-header { flex-direction: column; text-align: center; padding: 24px; }
    .wplc-tp-stats { justify-content: center; }
    .wplc-tp-section { padding: 18px; }
}

/* ------------------------------------------------------------------ *
 * Generic multi-step form (Edit Profile, and reusable elsewhere)
 * ------------------------------------------------------------------ */

.wplc-step-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.wplc-step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eee;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    border: 2px solid #e0e0e0;
}

.wplc-step-dot.is-active {
    background: #1a1a2e;
    border-color: #1a1a2e;
    color: #fff;
}

.wplc-step-dot.is-done {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
}

.wplc-form-step { display: none; }
.wplc-form-step.is-active { display: block; animation: wplcFadeIn 0.25s ease; }

.wplc-form-step h4 {
    margin-top: 0;
    margin-bottom: 6px;
}

.wplc-steps-form .wplc-step-back {
    margin-right: 12px;
}

/* ------------------------------------------------------------------ *
 * Teachers grid — portrait cards with student-avatar cluster overlay
 * ------------------------------------------------------------------ */

.wplc-teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.wplc-teacher-grid-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 22px rgba(20, 40, 60, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wplc-teacher-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(20, 40, 60, 0.18);
}

.wplc-teacher-grid-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background-size: cover;
    background-position: center top;
    background-color: #e0e0e0;
}

.wplc-teacher-grid-avatars {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
}

.wplc-teacher-grid-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #ccc;
    border: 2.5px solid #fff;
    margin-left: -10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.wplc-teacher-grid-avatar:first-child { margin-left: 0; }

.wplc-teacher-grid-avatar-more {
    background: #1a1a2e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.wplc-teacher-grid-msg-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2e7d32, #f57c00);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    border: 2.5px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.wplc-teacher-grid-msg-badge .wplc-tp-icon svg {
    width: 15px;
    height: 15px;
    color: #fff;
}

.wplc-teacher-grid-body {
    padding: 12px 14px 14px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.wplc-teacher-grid-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wplc-teacher-grid-subjects {
    font-size: 11px;
    color: #888;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 45%;
}

/* ------------------------------------------------------------------ *
 * Availability — edit form step + public profile schedule table
 * ------------------------------------------------------------------ */

.wplc-availability-days {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wplc-availability-day {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 12px;
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    flex-wrap: wrap;
}

.wplc-availability-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    min-width: 110px;
}

.wplc-availability-times {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.wplc-availability-times input[type="time"] {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
}

.wplc-tp-availability {
    width: 100%;
    border-collapse: collapse;
}

.wplc-tp-availability tr {
    border-bottom: 1px solid #eee;
}

.wplc-tp-availability tr:last-child { border-bottom: none; }

.wplc-tp-availability td {
    padding: 10px 4px;
    font-size: 14px;
}

.wplc-tp-day-name {
    font-weight: 700;
    color: #1a1a2e;
    width: 130px;
}

.wplc-tp-day-on .wplc-tp-day-time {
    color: #2e7d32;
    font-weight: 600;
}

.wplc-tp-day-off .wplc-tp-day-time {
    color: #aaa;
}

/* ------------------------------------------------------------------ *
 * Request a Lesson — teacher profile button + modal extras
 * ------------------------------------------------------------------ */

.wplc-tp-request-btn-wrap {
    margin-top: 16px;
}

.wplc-request-lesson-btn {
    background: #fff !important;
    color: #1a1a2e !important;
    font-weight: 700;
}

.wplc-lesson-modal .wplc-modal-content {
    padding: 24px 20px;
}

.wplc-lesson-modal h3 {
    margin: 0 0 14px;
}

.wplc-lesson-availability-hint {
    font-size: 13px;
    color: #666;
    background: #f7f7fa;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 14px;
}

.wplc-lesson-modal input[type="date"],
.wplc-lesson-modal input[type="time"] {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.wplc-lesson-package-option {
    border: 1px solid #e0e0e6;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.wplc-lesson-package-meta {
    font-size: 12px;
    color: #888;
    margin: 4px 0 10px;
}

.wplc-lesson-package-description {
    font-size: 13px;
    color: #555;
    margin: 0 0 10px;
}

.wplc-lesson-package-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.wplc-lesson-package-durations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wplc-lesson-package-durations .wplc-btn {
    padding: 8px 14px;
    font-size: 13px;
}

/* ------------------------------------------------------------------ *
 * Lesson Pricing dashboard panel
 * ------------------------------------------------------------------ */

.wplc-pricing-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.wplc-pricing-card {
    border: 1px solid #e0e0e6;
    border-radius: 10px;
    padding: 20px 22px;
    background: #fff;
}

.wplc-pricing-card-title {
    margin: 0 0 16px;
    font-size: 15px;
    color: #a0522d;
    font-weight: 600;
}

.wplc-pricing-card-icon-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 14px;
}

.wplc-pricing-icon-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #1a1a2e !important;
    text-decoration: none !important;
}

.wplc-pricing-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #8bc34a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-style: normal;
}

.wplc-pricing-card-meta {
    font-size: 13px;
    color: #666;
    margin: 4px 0 10px;
}

.wplc-pricing-card-description {
    font-size: 13px;
    color: #555;
    margin: 0 0 10px;
}

.wplc-pricing-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.wplc-pricing-card-durations {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wplc-post-class-btn {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    text-decoration: none !important;
}

.wplc-pricing-edit-page {
    max-width: 640px;
}

.wplc-duration-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.wplc-duration-row input {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    width: 45%;
}

.wplc-remove-duration-row {
    background: none;
    border: none;
    color: #b32d2e;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

/* ------------------------------------------------------------------ *
 * Create/Edit Class page — Apprentus-style section layout
 * ------------------------------------------------------------------ */

.wplc-pricing-edit-page {
    max-width: 800px;
}

.wplc-apprentus-form-header {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.wplc-apprentus-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.wplc-apprentus-label {
    flex: 0 0 90px;
    font-size: 15px;
    font-weight: 700;
    color: #6b8e4e;
    padding-top: 22px;
}

.wplc-apprentus-section {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #e8e8ee;
    border-radius: 10px;
    padding: 22px 26px;
    box-shadow: 0 2px 10px rgba(20, 40, 60, 0.05);
}

.wplc-apprentus-field {
    margin: 0 0 20px;
}

.wplc-apprentus-field:last-child { margin-bottom: 0; }

.wplc-apprentus-description {
    min-height: 180px;
    width: 100% !important;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    padding: 12px 14px;
}

.wplc-apprentus-field > label:first-child {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.wplc-apprentus-inline-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.wplc-apprentus-age-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 22px;
}

.wplc-apprentus-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    font-size: 14px;
    white-space: nowrap;
}

.wplc-apprentus-check input {
    accent-color: #8bc34a;
    width: 16px;
    height: 16px;
}

.wplc-apprentus-time-fields {
    display: flex;
    gap: 4%;
}

.wplc-duration-row-label,
.wplc-duration-row-currency {
    font-size: 13px;
    color: #888;
}

.wplc-apprentus-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 30px;
}

.wplc-apprentus-save-btn {
    background: #8bc34a;
}

.wplc-apprentus-cancel-btn {
    color: #666 !important;
    text-decoration: none !important;
    font-weight: 600;
}

@media (max-width: 600px) {
    .wplc-apprentus-row {
        flex-direction: column;
        gap: 8px;
    }
    .wplc-apprentus-label {
        padding-top: 0;
    }
    .wplc-apprentus-age-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------------ *
 * Public "Classes" listing on the teacher profile page
 * ------------------------------------------------------------------ */

.wplc-public-class-card {
    border: 1px solid #e8e8ee;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 14px;
}

.wplc-public-class-card:last-child { margin-bottom: 0; }

.wplc-public-class-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
}

.wplc-public-class-meta {
    margin: 0 0 8px;
    font-size: 12px;
    color: #888;
}

.wplc-public-class-description {
    margin: 0 0 10px;
    font-size: 13px;
    color: #555;
}

.wplc-public-class-durations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.wplc-public-class-durations .wplc-btn {
    padding: 8px 14px;
    font-size: 13px;
}

/* ------------------------------------------------------------------ *
 * v4.7.4 — brand-gradient design pass (green #2e7d32 → orange #f57c00)
 * Carousel card upgrades + single class page layout. These mirror the
 * inline critical blocks printed with the markup (RUCSS protection);
 * keep both in sync when editing.
 * ------------------------------------------------------------------ */

.wplc-teacher-card { transition: transform .2s ease, box-shadow .2s ease; }
.wplc-teacher-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 14px rgba(46, 125, 50, .35), 0 14px 34px rgba(245, 124, 0, .28);
}
.wplc-teacher-card-photo { transition: transform .35s ease; }
.wplc-teacher-card:hover .wplc-teacher-card-photo { transform: scale(1.06); }
.wplc-teacher-card-price {
    display: inline-block;
    align-self: flex-start;
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(135deg, #2e7d32, #f57c00);
    padding: 4px 14px;
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}
.wplc-teacher-card-avatar { box-shadow: 0 0 0 2px #f57c00, 0 3px 8px rgba(0, 0, 0, .35); }

/* ---- Single class page ---- */
.wplc-single { --wplc-grad: linear-gradient(135deg, #2e7d32, #f57c00); }
.wplc-single-hero {
    position: relative; height: 260px; border-radius: 18px; overflow: hidden;
    background-size: cover; background-position: center; margin: 0 0 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
}
.wplc-single-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(46, 125, 50, .55), rgba(245, 124, 0, .45));
}
.wplc-single-hero-badges { position: absolute; left: 16px; bottom: 14px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.wplc-single-grid { display: flex; gap: 20px; align-items: stretch; flex-wrap: wrap; margin: 0 0 22px; }
.wplc-meta-tiles { flex: 1 1 320px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.wplc-meta-tile {
    background: #fff; border: 1px solid #e8eaee; border-radius: 14px; padding: 14px 16px;
    position: relative; overflow: hidden; box-shadow: 0 3px 12px rgba(0, 0, 0, .05);
}
.wplc-meta-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--wplc-grad); }
.wplc-meta-tile-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #8a8f98; margin: 0 0 4px; }
.wplc-meta-tile-value { font-size: 15px; font-weight: 700; color: #2b2f36; margin: 0; line-height: 1.35; }
.wplc-meta-tile-value a { color: #2e7d32; text-decoration: none; }
.wplc-single-teacher {
    flex: 0 1 250px; background: #fff; border: 1px solid #e8eaee; border-radius: 16px;
    padding: 20px; text-align: center; box-shadow: 0 3px 12px rgba(0, 0, 0, .05); align-self: flex-start;
}
.wplc-single-teacher-avatar {
    width: 76px; height: 76px; border-radius: 50%; background-size: cover; background-position: center;
    margin: 0 auto 10px; box-shadow: 0 0 0 3px #2e7d32, 0 6px 16px rgba(0, 0, 0, .15);
}
.wplc-single-teacher-name { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.wplc-single-teacher-name a { color: #2b2f36; text-decoration: none; }
.wplc-single-teacher .wplc-mini-star { color: #d8d8dc; font-size: 14px; }
.wplc-single-teacher .wplc-mini-star.is-filled { color: #f57c00; }
.wplc-single-teacher-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: #2e7d32; text-decoration: none; }
.wplc-single .wplc-btn {
    display: inline-block; background: var(--wplc-grad); color: #fff !important; border: 0; border-radius: 12px;
    padding: 13px 28px; font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none;
    box-shadow: 0 6px 18px rgba(46, 125, 50, .35); transition: transform .15s ease, box-shadow .15s ease;
}
.wplc-single .wplc-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(245, 124, 0, .4); }
.wplc-single .wplc-notice {
    background: #f0f7f1; border: 1px solid #bfdcc3; border-left: 4px solid #2e7d32;
    border-radius: 10px; padding: 12px 16px; color: #245c28;
}
.wplc-single .wplc-notice-error { background: #fdf2ec; border-color: #f5cbaa; border-left-color: #f57c00; color: #8a4a08; }
@media (max-width: 640px) {
    .wplc-single-hero { height: 180px; }
    .wplc-single-teacher { flex-basis: 100%; }
}

/* v4.8.1 — per-card Request a Lesson button + modal pricing details */
.wplc-request-lesson-card {
    display: block;
    width: 100%;
    margin-top: 12px;
    text-align: center;
}
.wplc-lesson-pricing-heading {
    margin: 16px 0 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #6b7076 !important;
}
/* All text inside the lesson-request modal must be dark regardless of
   theme button/card overrides. */
#wplc-lesson-modal-content,
#wplc-lesson-modal-content p,
#wplc-lesson-modal-content h3,
#wplc-lesson-modal-content h4,
#wplc-lesson-modal-content label,
#wplc-lesson-modal-content .wplc-lesson-availability-hint,
#wplc-lesson-modal-content .wplc-lesson-package-meta,
#wplc-lesson-modal-content .wplc-lesson-package-description,
.wplc-wizard-summary p,
.wplc-wizard-summary strong {
    color: #2b2f36 !important;
}

/* v4.9.0 — per-day time rows in the pricing form + wider title field */
.wplc-apprentus-form input[name="title"] {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    font-size: 15px;
}
.wplc-day-time-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed #e5e7ea;
}
.wplc-day-time-row:last-of-type { border-bottom: 0; }
.wplc-day-time-check { min-width: 110px; font-weight: 600; }
.wplc-day-time-inputs { display: inline-flex; gap: 14px; align-items: center; }
.wplc-day-time-inputs label { font-size: 13px; color: #555; display: inline-flex; align-items: center; gap: 6px; }
.wplc-day-time-inputs input[type="time"] { padding: 6px 8px; }

/* v4.9.1 — day/time picker buttons in the Request-a-Lesson modal */
.wplc-day-pick-group { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 18px; }
.wplc-day-pick {
    display: flex; align-items: center; gap: 12px;
    width: 100%; text-align: left; cursor: pointer;
    padding: 12px 16px; border: 2px solid #e3e5e8; border-radius: 12px;
    background: #fff !important; color: #2b2f36 !important;
    font-size: 14px; transition: border-color .15s, background .15s;
}
.wplc-day-pick:hover { border-color: #b7d8bb; background: #f6faf6 !important; }
.wplc-day-pick.is-active { border-color: #2e7d32; background: #f0f7f1 !important; }
.wplc-day-pick-radio {
    width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%;
    border: 2px solid #b6bbc1; position: relative; background: transparent !important;
}
.wplc-day-pick.is-active .wplc-day-pick-radio { border-color: #2e7d32; }
.wplc-day-pick.is-active .wplc-day-pick-radio::after {
    content: ""; position: absolute; inset: 3px; border-radius: 50%;
    background: linear-gradient(135deg, #2e7d32, #f57c00) !important;
}
.wplc-day-pick-name { font-weight: 700; color: #2b2f36 !important; }
.wplc-day-pick-window { margin-left: auto; color: #6b7076 !important; font-size: 13px; }

.wplc-time-pick-group { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.wplc-time-pick {
    cursor: pointer; padding: 9px 16px; border: 2px solid #e3e5e8; border-radius: 999px;
    background: #fff !important; color: #2b2f36 !important;
    font-size: 14px; font-weight: 600; transition: border-color .15s, background .15s, color .15s;
}
.wplc-time-pick:hover { border-color: #f0c48a; color: #2b2f36 !important; }
.wplc-time-pick.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #2e7d32, #f57c00) !important;
    color: #fff !important;
}
.wplc-time-pick-group .description { margin: 4px 0; color: #8a8f98 !important; }

/* v4.10.0 — My Requested Lessons panel */
.wplc-requested-list .wplc-my-class-meta .wplc-badge { margin-right: 6px; }
.wplc-badge-live {
    background: #b32d2e;
    border-color: #b32d2e;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* ================================================================
 * v4.14.0 — Messaging UI (WhatsApp-style, green→orange gradient)
 * ================================================================ */

.wplc-chat-layout {
    display: flex;
    height: 560px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
    background: #fff;
}

/* ---- Sidebar ---- */
.wplc-chat-sidebar {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #f0f1f3;
    background: #fafbf9;
}

.wplc-chat-sidebar-head {
    padding: 16px 18px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #2e7d32, #f57c00);
}

.wplc-chat-contact-list {
    flex: 1;
    overflow-y: auto;
}

.wplc-chat-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border: none;
    border-bottom: 1px solid #f0f1f3;
    background: transparent;
    cursor: pointer;
    transition: background .15s;
    color: #2b2f36 !important;
}

.wplc-chat-contact:hover { background: #f3f7f3; }
.wplc-chat-contact.is-active {
    background: linear-gradient(90deg, rgba(46,125,50,.1), rgba(245,124,0,.06));
    border-left: 3px solid #f57c00;
}

/* ---- Avatar ---- */
.wplc-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2e7d32, #f57c00);
    color: #fff !important;
    font-size: 16px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wplc-chat-contact-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wplc-chat-contact-name {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #2b2f36 !important;
}

.wplc-chat-contact-preview {
    font-size: 12px;
    color: #8a8f98 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wplc-chat-contact-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.wplc-chat-contact-time {
    font-size: 11px;
    color: #b0b5bc !important;
}

/* ---- Thread main area ---- */
.wplc-chat-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #f0f4ef;
}

.wplc-chat-main-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #b0b5bc;
    gap: 10px;
}

.wplc-chat-main-empty-icon { font-size: 48px; }
.wplc-chat-main-empty p { font-size: 15px; margin: 0; color: #b0b5bc !important; }

.wplc-chat-thread-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ---- Thread header ---- */
.wplc-chat-thread-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #2e7d32, #f57c00);
    flex-shrink: 0;
}

.wplc-chat-avatar-head {
    width: 36px;
    height: 36px;
    font-size: 14px;
    background: rgba(255,255,255,.25) !important;
}

.wplc-chat-thread-name {
    font-weight: 800;
    font-size: 15px;
    color: #fff !important;
}

/* ---- Messages ---- */
.wplc-chat-thread {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wplc-chat-date-sep {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    color: #9ca3af;
    font-size: 12px;
}
.wplc-chat-date-sep::before,
.wplc-chat-date-sep::after { content: ""; flex: 1; height: 1px; background: #e5e7ea; }

.wplc-chat-bubble {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 75%;
}

.wplc-chat-bubble.wplc-chat-mine {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.wplc-chat-bubble.wplc-chat-theirs { align-self: flex-start; }

.wplc-chat-bubble-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2e7d32, #f57c00);
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wplc-chat-bubble-inner {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wplc-chat-body {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

.wplc-chat-mine .wplc-chat-body {
    background: linear-gradient(135deg, #2e7d32, #f57c00);
    color: #fff !important;
    border-bottom-right-radius: 4px;
}

.wplc-chat-theirs .wplc-chat-body {
    background: #fff;
    color: #2b2f36 !important;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.wplc-chat-time {
    font-size: 11px;
    color: #9ca3af !important;
    padding: 0 4px;
}

.wplc-chat-mine .wplc-chat-time { text-align: right; }

/* ---- Compose bar ---- */
.wplc-chat-compose {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border-top: 1px solid #f0f1f3;
    flex-shrink: 0;
}

#wplc-chat-input {
    flex: 1;
    border: 1.5px solid #e3e5e8;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 14px;
    resize: none;
    outline: none;
    line-height: 1.5;
    max-height: 120px;
    overflow-y: auto;
    transition: border-color .15s;
    font-family: inherit;
    color: #2b2f36 !important;
    background: #fafbf9;
}

#wplc-chat-input:focus { border-color: #2e7d32; }

.wplc-chat-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #2e7d32, #f57c00);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 3px 10px rgba(46,125,50,.35);
}

.wplc-chat-send:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(245,124,0,.45);
}

.wplc-chat-send:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.wplc-chat-empty-state {
    color: #8a8f98;
    font-size: 14px;
    padding: 20px 0;
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
    .wplc-chat-layout { flex-direction: column; height: auto; border-radius: 14px; }
    .wplc-chat-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #f0f1f3; max-height: 200px; }
    .wplc-chat-main { height: 400px; }
}
