/* ════════════════════════════════════════════════════════
   EthiopBytes — global.css
   Load AFTER Bootstrap. Overrides tokens + custom components.
════════════════════════════════════════════════════════ */

/* ─── BOOTSTRAP + BRAND TOKENS ─────────────────────── */
:root {
    --bs-primary: #4f46e5;
    --bs-primary-rgb: 79, 70, 229;
    --bs-link-color: #4f46e5;
    --bs-link-hover-color: #3730a3;
    --bs-border-radius: 12px;
    --bs-border-radius-lg: 20px;
    --bs-border-radius-sm: 8px;

    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --green: #10b981;
    --red: #ef4444;

    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #f1f5f9;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-2: #475569;
    --text-3: #94a3b8;

    --radius: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg:
        0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);

    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* ─── BASE ───────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Inter", sans-serif;
    color: var(--text);
}
img {
    max-width: 100%;
}
a {
    color: inherit;
}

/* ─── SECTION HELPERS ────────────────────────────────── */
.eb-section {
    padding: 96px 0;
}
.eb-section-alt {
    background: var(--surface-2);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-badge {
    display: inline-block;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 17px;
    color: var(--text-2);
    max-width: 560px;
    margin: 0 auto;
}

/* ─── CUSTOM BUTTONS ─────────────────────────────────── */
.btn-eb-primary,
.btn-eb-outline,
.btn-eb-accent,
.btn-eb-white {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    border: 2px solid transparent;
}
.btn-eb-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-eb-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}
.btn-eb-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-eb-outline:hover {
    background: var(--primary);
    color: #fff;
}
.btn-eb-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-eb-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}
.btn-eb-white {
    background: #fff;
    color: var(--primary);
    border-color: rgba(255, 255, 255, 0.3);
}
.btn-eb-white:hover {
    background: var(--surface-3);
    color: var(--primary);
}
.btn-lg.btn-eb-primary,
.btn-lg.btn-eb-outline,
.btn-lg.btn-eb-accent,
.btn-lg.btn-eb-white {
    padding: 14px 30px;
    font-size: 16px;
}

/* ─── STAR / AVATAR PRESETS ──────────────────────────── */
.star {
    color: var(--accent);
    font-size: 13px;
}

.av-1 {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.av-2 {
    background: linear-gradient(135deg, #10b981, #059669);
}
.av-3 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
.av-4 {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}
.av-5 {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}
.av-6 {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
}

/* ─── DARK PATTERN OVERLAY ───────────────────────────── */
.dark-pattern::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* ─── NAVBAR ─────────────────────────────────────────── */
.eb-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition-slow);
    min-height: 72px;
}
.eb-navbar.scrolled {
    box-shadow: var(--shadow);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
}
.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}
.logo-text span {
    color: var(--primary);
}

.eb-navbar .nav-link {
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition);
}
.eb-navbar .nav-link:hover,
.eb-navbar .nav-link.active {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.08);
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile nav padding */
@media (max-width: 991px) {
    .eb-navbar .navbar-collapse {
        padding: 16px 0 12px;
        border-top: 1px solid var(--border);
        margin-top: 8px;
    }
}

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
    background: #0f172a;
    color: #cbd5e1;
}
.footer-main {
    padding: 72px 0 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 16px;
}
.footer-logo .logo-text {
    color: #fff;
    font-size: 22px;
}
.footer-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.75;
    margin-bottom: 24px;
    max-width: 280px;
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 15px;
    transition: var(--transition);
    text-decoration: none;
}
.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    text-decoration: none;
    font-size: 14px;
    color: #64748b;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
}
.footer-copyright {
    font-size: 13px;
    color: #475569;
}
.footer-legal a {
    font-size: 13px;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-legal a:hover {
    color: var(--primary-light);
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
    .eb-section {
        padding: 64px 0;
    }
}
@media (max-width: 480px) {
    .btn-lg.btn-eb-primary,
    .btn-lg.btn-eb-outline,
    .btn-lg.btn-eb-accent,
    .btn-lg.btn-eb-white {
        padding: 12px 22px;
        font-size: 15px;
    }
}

/* ════════════════════════════════════════════════════════
   AUTH PAGES  (login / register)
════════════════════════════════════════════════════════ */

/* ─── Page Wrapper ────────────────────────────────────── */
body.auth-page {
    background: var(--surface-2);
    min-height: 100vh;
}

.auth-page-wrapper {
    position: relative;
    min-height: 100vh;
}

/* Soft gradient background blob */
.auth-bg-gradient {
    position: fixed;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(79, 70, 229, 0.12) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}
.auth-page-wrapper > .container {
    position: relative;
    z-index: 1;
}

/* ─── Logo block ──────────────────────────────────────── */
.auth-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.auth-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.auth-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}
.auth-logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}
.auth-logo-text span {
    color: var(--primary);
}
.auth-tagline {
    font-size: 13px;
    color: var(--text-3);
    margin: 0;
}

/* ─── Card ────────────────────────────────────────────── */
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow);
}
.auth-card-header {
    margin-bottom: 28px;
}
.auth-card-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}
.auth-card-subtitle {
    font-size: 14px;
    color: var(--text-2);
    margin: 0;
}

/* ─── Form controls ───────────────────────────────────── */
.auth-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    display: block;
}
.auth-label-optional {
    font-weight: 400;
    color: var(--text-3);
}

.input-group-eb {
    position: relative;
}
.input-eb-icon {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    font-size: 14px;
    pointer-events: none;
    z-index: 5;
}
.form-control-eb {
    padding-inline-start: 40px !important;
    border-radius: var(--radius) !important;
    border: 1.5px solid var(--border) !important;
    font-size: 14px !important;
    height: 44px;
    color: var(--text) !important;
    background: var(--surface) !important;
    transition:
        border-color 0.2s,
        box-shadow 0.2s !important;
}
.form-control-eb:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
    outline: none;
}
.form-control-eb.is-invalid {
    border-color: var(--red) !important;
}
.form-control-eb.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}
.invalid-feedback {
    font-size: 12px !important;
    color: var(--red) !important;
}

/* ─── Remember me ─────────────────────────────────────── */
.auth-check .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.auth-check .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    border-color: var(--primary);
}
.auth-check-label {
    font-size: 13px;
    color: var(--text-2);
    cursor: pointer;
}

/* ─── Submit button ───────────────────────────────────── */
.btn-auth-submit {
    height: 46px;
    font-size: 15px !important;
    justify-content: center;
}

/* ─── Links ───────────────────────────────────────────── */
.auth-link-sm {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-link-sm:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
.auth-terms {
    font-size: 12px;
    color: var(--text-3);
    text-align: center;
    margin: 0;
}
.auth-back-link {
    font-size: 13px;
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.2s;
}
.auth-back-link:hover {
    color: var(--primary);
}

/* ─── Divider ─────────────────────────────────────────── */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}
.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}
.auth-divider span {
    position: relative;
    background: var(--surface);
    padding: 0 12px;
    font-size: 12px;
    color: var(--text-3);
    font-weight: 500;
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: var(--radius);
    }
    .auth-card-title {
        font-size: 20px;
    }
}

/* ════════════════════════════════════════════════════════
   STUDENT DASHBOARD
════════════════════════════════════════════════════════ */

/* Welcome banner */
.dashboard-welcome {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    color: #fff;
}
.dashboard-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
}
.dashboard-greeting {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 800;
    margin: 0;
    color: #fff;
}
.dashboard-greeting span {
    opacity: 0.9;
}
.dashboard-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Stat cards */
.dashboard-stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}
.dashboard-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.dashboard-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}
.dashboard-stat-label {
    font-size: 13px;
    color: var(--text-2);
    margin-top: 2px;
}

/* Placeholder section */
.dashboard-placeholder {
    background: var(--surface);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 56px 32px;
    text-align: center;
}
.dashboard-placeholder-icon {
    width: 72px;
    height: 72px;
    background: rgba(79, 70, 229, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 28px;
    margin: 0 auto 24px;
}
.dashboard-placeholder-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.dashboard-placeholder-text {
    font-size: 15px;
    color: var(--text-2);
    max-width: 400px;
    margin: 0 auto 28px;
}

/* ─── Navbar student avatar chip ──────────────────────── */
.nav-student-avatar {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════
   STUDENT PANEL LAYOUT  (sidebar + topbar)
════════════════════════════════════════════════════════ */

/* ─── Variables (panel-specific) ─────────────────────── */
:root {
    --sp-sidebar-w: 260px;
    --sp-topbar-h: 64px;
    --sp-sidebar-bg: #0f172a;
    --sp-sidebar-border: rgba(255, 255, 255, 0.06);
    --sp-nav-hover: rgba(255, 255, 255, 0.06);
    --sp-nav-active-bg: rgba(79, 70, 229, 0.18);
    --sp-nav-active-clr: #818cf8;
    --sp-text-muted: #64748b;
}

/* ─── Layout skeleton ────────────────────────────────── */
body.sp-body {
    background: var(--surface-2);
    font-family: "Inter", sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

/* Sidebar */
.sp-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sp-sidebar-w);
    background: var(--sp-sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform 0.28s ease;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}
.sp-sidebar::-webkit-scrollbar {
    width: 4px;
}
.sp-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

/* Main area pushed right of sidebar on desktop */
.sp-main {
    margin-left: var(--sp-sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.28s ease;
}

/* ─── Sidebar Header ─────────────────────────────────── */
.sp-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: var(--sp-topbar-h);
    border-bottom: 1px solid var(--sp-sidebar-border);
    flex-shrink: 0;
}
.sp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.sp-logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
    overflow: hidden;
}
.sp-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sp-logo-text {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
}
.sp-logo-text span {
    color: var(--primary-light);
}

.sp-sidebar-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    padding: 4px 8px;
    cursor: pointer;
    transition: color 0.2s;
}
.sp-sidebar-close:hover {
    color: #fff;
}

/* ─── Student Info ───────────────────────────────────── */
.sp-student-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--sp-sidebar-border);
    flex-shrink: 0;
}
.sp-student-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}
.sp-student-name {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}
.sp-student-role {
    font-size: 11px;
    color: var(--sp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ─── Navigation ─────────────────────────────────────── */
.sp-nav {
    flex: 1;
    padding: 16px 12px;
}
.sp-nav-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--sp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0 8px;
    margin-bottom: 6px;
}
.sp-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sp-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    transition:
        background 0.18s,
        color 0.18s;
    cursor: pointer;
    position: relative;
}
.sp-nav-link:hover:not(.disabled) {
    background: var(--sp-nav-hover);
    color: #e2e8f0;
}
.sp-nav-link.active {
    background: var(--sp-nav-active-bg);
    color: var(--sp-nav-active-clr);
    font-weight: 600;
}
.sp-nav-link.active .sp-nav-icon {
    color: var(--sp-nav-active-clr);
}
.sp-nav-link.disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}
.sp-nav-icon {
    width: 20px;
    text-align: center;
    font-size: 15px;
    color: #64748b;
    flex-shrink: 0;
    transition: color 0.18s;
}
.sp-nav-link:hover:not(.disabled) .sp-nav-icon {
    color: #94a3b8;
}

/* "Soon" badge */
.sp-nav-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    color: #64748b;
    letter-spacing: 0.3px;
}

/* ─── Sidebar Footer ─────────────────────────────────── */
.sp-sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--sp-sidebar-border);
    flex-shrink: 0;
}
.sp-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    cursor: pointer;
    transition:
        background 0.18s,
        color 0.18s;
    text-align: left;
}
.sp-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}
.sp-logout-btn .sp-nav-icon {
    color: inherit;
}

/* ─── Overlay (mobile) ───────────────────────────────── */
.sp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1039;
    transition: opacity 0.28s;
}
.sp-overlay.is-visible {
    display: block;
}

/* ─── Top Bar ────────────────────────────────────────── */
.sp-topbar {
    height: var(--sp-topbar-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1020;
    flex-shrink: 0;
}
.sp-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.sp-page-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.sp-hamburger {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-2);
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.18s;
}
.sp-hamburger:hover {
    background: var(--surface-3);
}

.sp-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sp-topbar-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.sp-topbar-link:hover {
    background: var(--surface-3);
    color: var(--primary);
    border-color: var(--primary);
}
.sp-topbar-avatar {
    display: flex;
    align-items: center;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}
.sp-topbar-avatar:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}
.sp-topbar-avatar-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ─── Page Content ───────────────────────────────────── */
.sp-content {
    flex: 1;
    padding: 32px;
}

/* ─── Responsive — mobile (<992px) ──────────────────── */
@media (max-width: 991.98px) {
    .sp-sidebar {
        transform: translateX(-100%);
    }
    .sp-sidebar.is-open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    }
    .sp-main {
        margin-left: 0;
    }
    .sp-content {
        padding: 20px 16px;
    }
}

/* ─── Panel stat cards (reuse existing dashboard cards) ─ */
/* Already defined under STUDENT DASHBOARD section above */

/* ─── SP Stat Cards ──────────────────────────────────── */
.sp-stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.sp-stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.sp-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.sp-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}
.sp-stat-label {
    font-size: 13px;
    color: var(--text-2);
    margin-top: 3px;
}

/* ─── Welcome Banner ─────────────────────────────────── */
.sp-welcome-banner {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        #6366f1 60%,
        #8b5cf6 100%
    );
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}
.sp-welcome-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.sp-welcome-content {
    position: relative;
    z-index: 1;
}
.sp-welcome-title {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}
.sp-welcome-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    max-width: 420px;
}
.sp-welcome-illustration {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
@media (max-width: 576px) {
    .sp-welcome-banner {
        padding: 28px 24px;
    }
}

/* ─── Empty State Card ───────────────────────────────── */
.sp-empty-card {
    background: var(--surface);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 56px 32px;
    text-align: center;
}
.sp-empty-icon {
    width: 72px;
    height: 72px;
    background: rgba(79, 70, 229, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 28px;
    margin: 0 auto 24px;
}
.sp-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.sp-empty-text {
    font-size: 14px;
    color: var(--text-2);
    max-width: 360px;
    margin: 0 auto 24px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Course Viewer (cv-)
───────────────────────────────────────────────────────────────────────────── */

/* Layout */
.cv-layout {
    min-height: calc(100vh - var(--sp-topbar-h));
}

.cv-main {
    padding-top: 0;
}

/* 16:9 YouTube embed wrapper */
.cv-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.cv-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Transparent overlay that blocks the top-bar (title, share, watch-later,
   watch-on-youtube buttons) while leaving the bottom controls untouched */
.cv-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 18%;
    z-index: 2;
    background: transparent;
}

/* No-video placeholder */
.cv-no-video {
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    color: var(--text-2, #64748b);
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */

.cv-sidebar-col {
    border-left: 1px solid var(--border);
}

.cv-sidebar {
    position: sticky;
    top: var(--sp-topbar-h);
    max-height: calc(100vh - var(--sp-topbar-h));
    overflow-y: auto;
    background: #fff;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

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

.cv-sidebar-header {
    padding: 1.25rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

/* Progress bar section */
.cv-progress-bar-wrap {
    border-bottom: 1px solid var(--border);
}

/* ── Chapters ─────────────────────────────────────────────────────────────── */

.cv-chapters {
    padding-bottom: 2rem;
}

.cv-chapter-block {
    border-bottom: 1px solid var(--border);
}

.cv-chapter-title {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: var(--surface-2);
}

.cv-chapter-icon {
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Lesson rows ──────────────────────────────────────────────────────────── */

.cv-lesson-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--surface-2);
    text-align: left;
    cursor: pointer;
    transition:
        background 0.15s,
        color 0.15s;
}

.cv-lesson-row:last-child {
    border-bottom: 0;
}

.cv-lesson-row:hover {
    background: var(--surface-2);
}

/* Active lesson */
.cv-lesson-row.cv-lesson-active {
    background: rgba(79, 70, 229, 0.07);
    border-left: 3px solid var(--primary);
}

/* Completed lesson */
.cv-lesson-row.cv-lesson-done {
    opacity: 0.85;
}

.cv-lesson-icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.cv-lesson-info {
    flex: 1;
    min-width: 0;
}

.cv-lesson-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cv-lesson-row.cv-lesson-active .cv-lesson-title {
    color: var(--primary);
    font-weight: 600;
}

.cv-lesson-row.cv-lesson-done .cv-lesson-title {
    color: var(--text-2, #64748b);
}

.cv-lesson-meta {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* ── Completion banner ────────────────────────────────────────────────────── */

.cv-complete-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--green) 0%, #059669 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 991.98px) {
    .cv-sidebar-col {
        border-left: 0;
        border-top: 1px solid var(--border);
        margin-top: 1.5rem;
    }

    .cv-sidebar {
        position: static;
        max-height: none;
    }

    .cv-main {
        padding-right: 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COURSES PAGE  (cp- prefix)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hero bar */
.cp-hero {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    padding: 2.5rem 0 2rem;
}

/* Filter panel card */
.cp-filter-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: sticky;
    top: calc(var(--sp-topbar-h, 64px) + 1rem);
}

.cp-filter-section {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.cp-filter-section:last-child {
    border-bottom: 0;
}

.cp-filter-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
}

/* Level pills */
.cp-level-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition:
        border-color 0.15s,
        background 0.15s,
        color 0.15s;
}

.cp-level-pill:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.cp-level-pill-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Category list */
.cp-category-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 220px;
    overflow-y: auto;
}

.cp-cat-item {
    display: flex;
    align-items: center;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text);
    transition: background 0.12s;
    user-select: none;
}

.cp-cat-item:hover {
    background: var(--surface-2);
}

.cp-cat-active {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    font-weight: 600;
}

/* Price options */
.cp-price-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--text);
    user-select: none;
}

.cp-price-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    transition:
        border-color 0.15s,
        background 0.15s;
}

.cp-price-dot-active {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 3px #fff;
}

/* Sort select */
.cp-sort-select {
    border-color: var(--border);
    font-size: 0.85rem;
    border-radius: var(--radius);
}

.cp-sort-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* Active filter chips */
.cp-active-filters {
    background: var(--surface-2);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
}

.cp-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.2rem 0.6rem 0.2rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text);
    font-weight: 500;
}

.cp-chip-remove {
    background: none;
    border: none;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.12s;
}

.cp-chip-remove:hover {
    color: var(--red);
}

/* Empty state */
.cp-empty-state {
    padding: 4rem 2rem;
    background: var(--surface-2);
    border-radius: var(--radius-lg);
}

.cp-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-light);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .cp-hero {
        padding: 1.75rem 0 1.5rem;
    }

    .cp-filter-panel {
        position: static;
        border-radius: 0;
        border: 0;
    }
}

/* ─── COURSE CARD ────────────────────────────────────── */
.course-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1.5px solid var(--border);
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.course-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.course-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}
.course-thumb-2 {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}
.course-thumb-3 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.course-thumb-4 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.course-thumb-5 {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.course-thumb-6 {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.course-level-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
}
.level-beginner {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
}
.level-intermediate {
    background: rgba(245, 158, 11, 0.9);
    color: #fff;
}
.level-advanced {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}

.course-bookmark {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    color: var(--text-2);
    border: none;
}
.course-bookmark:hover {
    background: #fff;
    color: var(--primary);
}

.course-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.course-category {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.course-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}
.course-instructor {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.instructor-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.instructor-name {
    font-size: 13px;
    color: var(--text-2);
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}
.course-rating .score {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.course-rating .reviews {
    font-size: 13px;
    color: var(--text-3);
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-top: auto;
    gap: 8px;
    flex-wrap: wrap;
}
.course-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}
.course-price .old-price {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-3);
    text-decoration: line-through;
    margin-left: 6px;
}
.course-btn {
    padding: 9px 18px;
    font-size: 13px;
}
.course-cert {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--green);
    font-weight: 500;
    padding: 5px 10px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 6px;
    white-space: nowrap;
}

/* ── Price Range Slider (cp-range-*) ──────────────────────────────────────── */
.cp-range-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 60px;
}

.cp-range-label:last-child {
    text-align: right;
}

.cp-range-wrap {
    position: relative;
    height: 24px;
    margin: 4px 0;
}

.cp-range-track-bg,
.cp-range-track-fill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    border-radius: 99px;
    pointer-events: none;
}

.cp-range-track-bg {
    left: 0;
    right: 0;
    background: var(--border);
}

.cp-range-track-fill {
    background: var(--primary);
}

.cp-range-input {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.cp-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2.5px solid #fff;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
    pointer-events: all;
    cursor: pointer;
    transition: transform 0.12s;
}

.cp-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.cp-range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2.5px solid #fff;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
    pointer-events: all;
    cursor: pointer;
}

/* Number inputs below slider */
.cp-range-number-wrap {
    flex: 1;
}

.cp-range-number-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 3px;
}

.cp-range-number-input {
    border-color: var(--border);
    border-radius: var(--radius);
    font-size: 0.82rem;
    text-align: center;
}

.cp-range-number-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.cp-range-separator {
    font-size: 1rem;
    color: #94a3b8;
    margin-top: 18px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INSTRUCTORS PAGE  (ip- prefix)
   ═══════════════════════════════════════════════════════════════════════════ */

.ip-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 2.5rem 0 2rem;
}

/* Specialization pill list — wrapping tag-cloud style */
.ip-spec-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-height: 210px;
    overflow-y: auto;
}

.ip-spec-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 99px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition:
        border-color 0.15s,
        background 0.15s,
        color 0.15s;
    line-height: 1.4;
}

.ip-spec-pill:hover {
    border-color: var(--accent);
    color: #92400e;
    background: #fffbeb;
}

.ip-spec-pill-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .ip-hero {
        padding: 1.75rem 0 1.5rem;
    }
}

/* ─── INSTRUCTOR CARD ────────────────────────────────── */
.instructor-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1.5px solid var(--border);
    transition: all 0.25s;
    text-align: center;
}
.instructor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.instructor-banner {
    height: 90px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}
.instructor-banner-2 {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}
.instructor-banner-3 {
    background: linear-gradient(135deg, #10b981, #059669);
}
.instructor-banner-4 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
.instructor-pic-wrap {
    margin: -36px auto 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #fff;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow);
}
.instructor-body {
    padding: 16px 20px 24px;
}
.instructor-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.instructor-role {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 12px;
}
.instructor-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 14px;
}
.instructor-spec {
    font-size: 11px;
    background: var(--surface-3);
    color: var(--text-2);
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 500;
}
.instructor-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.instructor-stat {
    text-align: center;
}
.instructor-stat-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.instructor-stat-label {
    font-size: 11px;
    color: var(--text-3);
}
.instructor-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}
.instructor-social a {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--surface-3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    font-size: 13px;
    transition: all 0.2s;
    text-decoration: none;
}
.instructor-social a:hover {
    background: var(--primary);
    color: #fff;
}

/* ─── REVIEW FORM ─────────────────────────────────────── */
.review-course-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    transition: box-shadow 0.25s;
}
.review-course-card:hover {
    box-shadow: var(--shadow);
}
.review-course-header {
    display: flex;
    align-items: center;
    gap: 16px;
}
.review-course-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface-2);
}
.review-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.review-course-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    font-size: 22px;
}
.review-course-meta {
    flex: 1;
    min-width: 0;
}
.review-course-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.review-course-actions {
    flex-shrink: 0;
}
.review-existing {
    border-top: 1px solid var(--border);
    padding-top: 14px;
}
.review-stars {
    font-size: 18px;
    color: #f59e0b;
    letter-spacing: 2px;
}
.review-body-title {
    font-size: 15px;
    color: var(--text);
}
.review-body-text {
    font-size: 14px;
    line-height: 1.7;
}
.review-form {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

/* ─── Star Rating Input ────────────────────────────────── */
.star-rating-input {
    display: flex;
    align-items: center;
    gap: 2px;
}
.star-btn {
    background: none;
    border: none;
    padding: 0 2px;
    font-size: 32px;
    color: #d1d5db;
    cursor: pointer;
    line-height: 1;
    transition: color 0.12s, transform 0.1s;
}
.star-btn:hover,
.star-btn.active {
    color: #f59e0b;
}
.star-btn:hover {
    transform: scale(1.15);
}
