/* ============================================================================
   LMS X — course-first design system (HANDOFF §20/§21)
   Shared, site-wide. Loaded on every frontend page from layouts/app.blade.php.
   `cf-` classes power bespoke sections (homepage, pricing); the overrides at the
   bottom re-skin the stock inner-page banner so all 59 pages match the homepage.
   ========================================================================== */

:root{
    --cf-primary:#5b57e0; --cf-primary-d:#4a46c4; --cf-ink:#131635; --cf-muted:#5b6079;
    --cf-line:#e7e7f2; --cf-bg-soft:#f6f6fc; --cf-accent:#8b87ff;
    --cf-grad:linear-gradient(135deg,#4a46c4 0%,#6d4bd6 55%,#8b57e0 100%);
}

/* ---- layout primitives ---- */
.cf-container{max-width:1200px;margin:0 auto;padding:0 20px;}
.cf-section{padding:64px 0;}
.cf-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:32px;flex-wrap:wrap;}
.cf-section-head.cf-center{justify-content:center;text-align:center;}
.cf-section-title{font-size:30px;font-weight:800;color:var(--cf-ink);margin:0 0 6px;}
.cf-section-sub{color:var(--cf-muted);margin:0;font-size:16px;}
.cf-link{color:var(--cf-primary);font-weight:700;white-space:nowrap;text-decoration:none;}
.cf-link:hover{text-decoration:underline;}
.cf-muted{color:var(--cf-muted);}

/* ---- buttons ---- */
.cf-btn{display:inline-block;padding:13px 26px;border-radius:10px;font-weight:700;text-decoration:none;font-size:15px;transition:.15s;border:1px solid transparent;cursor:pointer;}
.cf-btn-primary{background:var(--cf-primary);color:#fff;}
.cf-btn-primary:hover{background:var(--cf-primary-d);color:#fff;}
.cf-btn-outline{background:#fff;color:var(--cf-primary);border-color:var(--cf-primary);}
.cf-btn-outline:hover{background:var(--cf-primary);color:#fff;}
.cf-btn-ghost{background:rgba(255,255,255,.14);color:#fff;border-color:rgba(255,255,255,.4);}
.cf-btn-ghost:hover{background:rgba(255,255,255,.24);color:#fff;}
.cf-btn-light{background:#fff;color:var(--cf-primary);}
.cf-btn-block{display:block;text-align:center;width:100%;}

/* ---- hero (homepage) ---- */
/* The navbar (.menu-section-area) overlays the first section, so heroes need ~150px top clearance —
   same geometry the stock .hero-area/.page-banner-header used (150-230px). */
.cf-hero{background:var(--cf-grad);color:#fff;padding:150px 0 90px;overflow:hidden;}
.cf-hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:40px;align-items:center;}
.cf-eyebrow{display:inline-block;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.28);padding:6px 14px;border-radius:999px;font-size:13px;font-weight:600;letter-spacing:.3px;margin-bottom:18px;}
.cf-hero-title{font-size:46px;line-height:1.12;font-weight:800;margin:0 0 16px;}
/* The stock stylesheet paints EVERY heading with `h1,h2,...{color:var(--heading-color)}` (dark
   navy). A direct rule beats the white these surfaces hand down by inheritance, so headings on the
   gradient chrome rendered dark-on-dark — invisible on dark palettes like Cinematic. Give the
   surface's own color back to its headings; any future dark section is covered too. */
.cf-hero h1,.cf-hero h2,.cf-hero h3,.cf-hero h4,.cf-hero h5,.cf-hero h6,
.cf-page-hero h1,.cf-page-hero h2,.cf-page-hero h3,
.cf-teach-inner h1,.cf-teach-inner h2,.cf-teach-inner h3{color:inherit;}
.cf-accent{color:var(--cf-accent);}
.cf-hero-sub{font-size:18px;line-height:1.6;color:rgba(255,255,255,.9);max-width:560px;margin:0 0 26px;}
.cf-search{display:flex;background:#fff;border-radius:12px;padding:6px;max-width:560px;box-shadow:0 18px 40px rgba(20,10,60,.25);}
.cf-search input{flex:1;border:0;outline:0;padding:13px 16px;font-size:15px;color:var(--cf-ink);background:transparent;}
.cf-search button{background:var(--cf-primary);color:#fff;border:0;border-radius:9px;padding:0 26px;font-weight:700;cursor:pointer;}
.cf-search button:hover{background:var(--cf-primary-d);}
.cf-hero-cta{display:flex;gap:12px;margin:22px 0 30px;flex-wrap:wrap;}
.cf-stats{display:flex;gap:34px;flex-wrap:wrap;}
.cf-stats strong{display:block;font-size:26px;font-weight:800;}
.cf-stats span{font-size:13px;color:rgba(255,255,255,.8);}
.cf-hero-art{position:relative;height:320px;}
.cf-hero-card{position:absolute;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);backdrop-filter:blur(4px);border-radius:14px;padding:18px 22px;font-weight:700;font-size:15px;box-shadow:0 12px 30px rgba(20,10,60,.2);color:#fff;}
.cf-hero-card-1{top:20px;left:10%;transform:rotate(-6deg);}
.cf-hero-card-2{top:130px;right:6%;transform:rotate(5deg);}
.cf-hero-card-3{bottom:14px;left:22%;transform:rotate(-3deg);}

/* ---- course grid (cards come from partials/course.blade.php) ---- */
.cf-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;}
.cf-grid > .card,.cf-grid > div > .card{height:100%;box-shadow:0 6px 22px rgba(20,10,60,.06);border:1px solid var(--cf-line)!important;transition:.15s;}
.cf-grid > .card:hover,.cf-grid > div > .card:hover{transform:translateY(-4px);box-shadow:0 14px 32px rgba(20,10,60,.12);}

/* ---- plans ---- */
.cf-plans-section{background:var(--cf-bg-soft);}
/* auto-fit + centered: a deployment may sell 1 plan or 5 — the grid must not assume 3
   (a single plan used to sit stranded in the left column). */
.cf-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,340px));justify-content:center;gap:22px;align-items:stretch;}
.cf-plan{position:relative;background:#fff;border:1px solid var(--cf-line);border-radius:16px;padding:30px 26px;display:flex;flex-direction:column;}
.cf-plan-featured{border-color:var(--cf-primary);box-shadow:0 16px 40px rgba(91,87,224,.16);}
.cf-plan-badge{position:absolute;top:-12px;left:26px;background:var(--cf-primary);color:#fff;font-size:12px;font-weight:700;padding:5px 12px;border-radius:999px;}
.cf-plan-name{font-size:20px;font-weight:800;color:var(--cf-ink);margin:0 0 10px;}
.cf-plan-price{font-size:34px;font-weight:800;color:var(--cf-ink);margin-bottom:12px;}
.cf-plan-price span{font-size:15px;font-weight:600;color:var(--cf-muted);}
/* Slashed MRP — admin stores monthly/yearly MRP + discounted price; render the strike-through
   whenever a real discount exists ("999 slashed to 499"). */
.cf-price-was{font-size:19px;font-weight:700;color:var(--cf-muted);text-decoration:line-through;margin-right:8px;vertical-align:2px;}
.cf-price-note{display:block;font-size:13px;font-weight:600;color:var(--cf-muted);margin-top:4px;}
.cf-plan-desc{color:var(--cf-muted);font-size:14px;line-height:1.55;margin:0 0 16px;}
.cf-plan-covers{color:var(--cf-ink);font-weight:600;font-size:14px;margin-bottom:16px;}
.cf-plan-list{list-style:none;padding:0;margin:0 0 22px;}
.cf-plan-list li{color:var(--cf-muted);font-size:14px;padding:5px 0 5px 24px;position:relative;}
.cf-plan-list li:before{content:"✓";color:#12b76a;font-weight:800;position:absolute;left:0;}
.cf-check{color:#12b76a;font-weight:800;margin-right:4px;}
.cf-plan .cf-btn{margin-top:auto;}
.cf-plans-foot{text-align:center;margin:26px 0 0;color:var(--cf-muted);}
.cf-plans-foot a{color:var(--cf-primary);font-weight:700;text-decoration:none;}

/* ---- categories ---- */
.cf-cats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
.cf-cat{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid var(--cf-line);border-radius:14px;padding:24px;text-decoration:none;transition:.15s;}
.cf-cat:hover{border-color:var(--cf-primary);transform:translateY(-3px);box-shadow:0 12px 28px rgba(20,10,60,.08);}
.cf-cat-name{font-weight:800;color:var(--cf-ink);font-size:17px;}
.cf-cat-count{color:var(--cf-muted);font-size:14px;}

/* ---- how it works ---- */
.cf-how-section{background:var(--cf-bg-soft);}
.cf-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.cf-step{background:#fff;border:1px solid var(--cf-line);border-radius:14px;padding:28px;}
.cf-step-n{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;background:var(--cf-primary);color:#fff;font-weight:800;font-size:18px;margin-bottom:14px;}
.cf-step h4{font-weight:800;color:var(--cf-ink);margin:0 0 8px;font-size:18px;}
.cf-step p{color:var(--cf-muted);margin:0;font-size:15px;line-height:1.55;}

/* ---- teach strip ---- */
.cf-teach{padding:56px 0;}
.cf-teach-inner{background:linear-gradient(135deg,var(--cf-ink),var(--cf-primary-d));border-radius:20px;padding:44px;display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;color:#fff;}
.cf-teach-inner h2{font-size:28px;font-weight:800;margin:0 0 8px;}
.cf-teach-inner p{margin:0;color:rgba(255,255,255,.85);max-width:560px;}

/* ---- reusable page hero (inner pages: cf-page-header partial) ---- */
.cf-page-hero{background:var(--cf-grad);color:#fff;padding:150px 0 60px;text-align:center;}
.cf-page-hero h1{font-size:34px;font-weight:800;margin:0 0 10px;color:#fff;}
.cf-page-hero p{color:rgba(255,255,255,.88);margin:0 0 12px;font-size:16px;}
.cf-crumb{display:inline-flex;gap:8px;align-items:center;font-size:14px;color:rgba(255,255,255,.85);}
.cf-crumb a{color:rgba(255,255,255,.85);text-decoration:none;}
.cf-crumb a:hover{color:#fff;text-decoration:underline;}
.cf-crumb .sep{opacity:.6;}

/* ---- content page wrapper (policies, plain text pages) ---- */
.cf-content{max-width:900px;margin:0 auto;padding:48px 20px;}
.cf-content-card{background:#fff;border:1px solid var(--cf-line);border-radius:16px;padding:36px 40px;box-shadow:0 6px 22px rgba(20,10,60,.05);}
.cf-content-card h1,.cf-content-card h2,.cf-content-card h3,.cf-content-card h4{color:var(--cf-ink);font-weight:800;}
.cf-content-card p,.cf-content-card li{color:#3a3f5c;line-height:1.7;}

/* ---- responsive ---- */
@media(max-width:992px){
    .cf-hero-grid{grid-template-columns:1fr;}
    .cf-hero-art{display:none;}
    .cf-hero-title{font-size:36px;}
    .cf-grid{grid-template-columns:repeat(2,1fr);}
    .cf-plans,.cf-cats,.cf-steps{grid-template-columns:1fr;}
}
@media(max-width:560px){
    .cf-grid{grid-template-columns:1fr;}
    .cf-search{flex-direction:column;}
    .cf-search button{padding:12px;margin-top:6px;}
    .cf-content-card{padding:24px;}
}

/* ============================================================================
   Global re-skin of the STOCK inner-page banner so every page matches the
   homepage without editing 59 blades. Structure: <header class="page-banner-header
   gradient-bg"> ... <h3 class="page-banner-heading"> ... <ol class="breadcrumb">.
   The homepage no longer uses this class (it has .cf-hero), so this is safe.
   ========================================================================== */
.page-banner-header.gradient-bg{
    background:var(--cf-grad)!important;
    padding:0!important;
    position:relative;
}
/* The overlay carries the stock 200-230px padding; tighten it while keeping navbar clearance. */
.page-banner-header .section-overlay{background:transparent!important;padding:120px 0 40px!important;min-height:0!important;}
/* The footer's own .section-overlay repaints the stock near-opaque navy overlay ON TOP of the
   themed --footer-gradient-bg, so the footer ignored every theme. Let the footer's gradient
   through; the themed --gradient-overlay-bg (cf-theme-tokens) covers any other overlay use. */
.footer-area .section-overlay,
.footer-gradient-bg .section-overlay{background:transparent!important;}
.page-banner-heading{font-weight:800!important;font-size:34px!important;color:#fff!important;}
.page-banner-header .breadcrumb{background:transparent;margin:0;justify-content:center;}
.page-banner-header .breadcrumb-item,
.page-banner-header .breadcrumb-item a{color:rgba(255,255,255,.85)!important;}
.page-banner-header .breadcrumb-item.active{color:#fff!important;}
.page-banner-header .breadcrumb-item+.breadcrumb-item::before{color:rgba(255,255,255,.6);}

/* ---- student panel density (frontend layout pages: My Learning, subscriptions, settings) ---- */
.my-courses-page table th{font-size:12.5px;padding:10px 12px;text-transform:uppercase;letter-spacing:.3px;}
.my-courses-page table td{font-size:13.5px;padding:10px 12px;vertical-align:middle;}
.my-courses-page .badge{font-size:11.5px;padding:4px 10px;border-radius:999px;}
.wishlist-page-area .theme-btn,.my-courses-page .theme-btn{font-size:13.5px;padding:9px 18px;border-radius:8px;}
.student-settings-area .form-control,.student-settings-area .form-select{min-height:38px;padding:7px 12px;font-size:13.5px;border-radius:8px;}
.student-settings-area label{font-size:13px;font-weight:600;}


/* ============================================================================
   Themed navbar (HANDOFF §24). The stock nav is transparent (designed to sit on
   the hero) and its sticky state reads --navbar-bg-color — over white sections
   both go illegible and ignore the palette. Give the nav a permanent themed
   gradient: seamless on the hero (same gradient) and always legible when sticky.
   ========================================================================== */
.menu-section-area{background:var(--cf-grad)!important;}
#mainNav,#mainNav.sticky{background:var(--cf-grad)!important;background-color:transparent;}
#mainNav.sticky{box-shadow:0 6px 18px rgba(0,0,0,.18)!important;}
.menu-section-area .navbar-nav > .nav-item > .nav-link{color:#fff!important;font-weight:600;}
.menu-section-area .navbar-nav > .nav-item > .nav-link:hover{color:var(--cf-accent)!important;}
.menu-section-area .dropdown-menu .dropdown-item,
.menu-section-area .dropdown-menu a{color:var(--cf-ink);}          /* dropdown panels stay white/dark */
.menu-section-area .navbar-toggler{border-color:rgba(255,255,255,.5);}
/* The navbar search is ONE control: the <form> draws the pill (vendor: 126px radius, translucent
   white border). Painting a second 10px box inside it produced two mismatched overlapping shapes.
   The inner group is transparent; the form is the field. */
.menu-section-area .input-group.landing{background:transparent;border:0;border-radius:inherit;}
.menu-section-area form,.header-nav-left-side form{border-radius:10px;}
.menu-section-area form .form-control{background:transparent!important;color:#fff;border:0;box-shadow:none;}
.menu-section-area form .form-control::placeholder{color:rgba(255,255,255,.6);opacity:1;}
.menu-section-area form .input-group-text{background:transparent!important;border:0;}
/* the magnifier ships as a dark SVG — force it white so it reads on every navbar palette */
.menu-section-area form .input-group-text img{filter:brightness(0) invert(1);opacity:.7;}

/* Legacy --theme-color now emitted per-theme by cf-theme-tokens.blade.php (HANDOFF §25). */

/* Impersonation — navbar button (the bottom banner can hide behind dev toolbars). */
.cf-impersonate-nav{background:var(--cf-accent);color:var(--cf-ink)!important;border-radius:9px;padding:8px 16px!important;
    font-weight:800!important;margin-left:8px;white-space:nowrap;}
.cf-impersonate-nav:hover{background:#fff;color:var(--cf-primary-d)!important;}

/* ============================================================================
   Modern preloader (HANDOFF §25d). Stock was an opaque white sheet until the
   full window load — on slow pages it read as a broken site. Translucent blur
   overlay instead: content is visible beneath, a small token-colored ring spins
   around the logo, and layouts carry a fail-safe timeout so it can never hang.
   ========================================================================== */
#preloader{
    background:rgba(255,255,255,.55)!important;
    -webkit-backdrop-filter:blur(10px) saturate(1.2);backdrop-filter:blur(10px) saturate(1.2);
    display:flex;align-items:center;justify-content:center;
}
#preloader_status{position:relative!important;top:auto!important;left:auto!important;margin:0!important;
    width:54px!important;height:54px!important;min-width:0!important;min-height:0!important;padding:0!important;
    transform:none!important;display:flex!important;align-items:center!important;justify-content:center!important;}
#preloader_status img{width:54px!important;height:54px!important;max-width:54px!important;object-fit:contain;border-radius:14px;display:block;}
#preloader_status::before{display:none!important;content:none!important;}
/* Fixed-size ring: stock sheets size #preloader_status to 100% on some layouts, which turned an
   inset-based ring into a viewport-wide ellipse. Hard dimensions are immune to the parent's size. */
#preloader_status::after{content:"";position:absolute;top:50%;left:50%;width:86px;height:86px;
    margin:-43px 0 0 -43px;border-radius:50%;box-sizing:border-box;
    border:3px solid rgba(0,0,0,.06);border-top-color:var(--cf-primary,#5b57e0);
    animation:cf-spin .8s linear infinite;}
@keyframes cf-spin{to{transform:rotate(360deg)}}

/* ============================================================================
   COMPACT DATA TABLES — student panel (HANDOFF §29)
   Same density pass as the admin/instructor panels: student tables (wishlist,
   cart, orders, quiz results, tickets) sit in .table-responsive > .table and
   burned vertical space with big thumbs and roomy padding.
   ========================================================================== */
.table-responsive > .table th{font-size:12px;padding:9px 10px;white-space:nowrap;vertical-align:middle;}
.table-responsive > .table td{font-size:13.5px;padding:8px 10px;vertical-align:middle;line-height:1.4;}
.table-responsive > .table tbody td img{width:auto!important;max-width:64px!important;max-height:36px!important;border-radius:6px;object-fit:cover;}
.table-responsive > .table .btn,.table-responsive > .table .theme-btn{padding:5px 12px;font-size:12.5px;border-radius:6px;}
.table-responsive > .table tbody tr:hover td{background:#f8f8fd;}

/* Exam engine — solution walkthrough on the result screen (HANDOFF §32) */
.cf-exam-explanation{margin-top:10px;padding:12px 14px;border-left:3px solid var(--cf-primary,#5b57e0);
    background:var(--cf-bg-soft,#f6f6fc);border-radius:8px;font-size:14px;line-height:1.55;color:var(--cf-ink,#131635);}
.cf-exam-explanation strong{color:var(--cf-primary,#5b57e0);}

/* ============================================================================
   DARK THEMES (HANDOFF §40)
   A palette opting in with `dark => true` gets `cf-dark` on <body> and the
   surface tokens from cf-theme-tokens. Everything below repaints the CONTENT
   surfaces — the chrome (hero, navbar, banners) already follows --cf-grad.
   Scoped entirely under .cf-dark, so light palettes are untouched.
   ========================================================================== */
body.cf-dark{background:var(--cf-surface,#141414);color:var(--cf-ink);}
/* Native widget rendering: the OPEN <select> popup, scrollbars, checkbox glyphs and date pickers
   are browser-drawn — page CSS cannot recolour them. color-scheme:dark switches the browser's own
   rendering of those widgets to dark: the fix for "invisible dropdown options". */
.cf-dark{color-scheme:dark;}
/* Belt and braces for engines that partially style option lists from CSS. */
.cf-dark option,.cf-dark optgroup{background-color:var(--cf-surface-2,#1c1c20);color:var(--cf-ink,#f5f5f7);}
.cf-dark .bg-page,.cf-dark .page-content,.cf-dark main{background:transparent;}

/* Sections + cards */
.cf-dark .cf-section{background:transparent;}
.cf-dark .cf-plans-section,.cf-dark .cf-how-section{background:var(--cf-bg-soft);}
.cf-dark .cf-plan,.cf-dark .cf-cat,.cf-dark .cf-step,.cf-dark .cf-content-card,
.cf-dark .cf-btn-outline{background:var(--cf-surface-2,#1c1c20);border-color:var(--cf-line);}
.cf-dark .cf-btn-outline{color:#fff;}
/* Buttons inherited --cf-ink (#f5f5f7) in dark mode — 4.4:1 on the brand red, just under
   AA. Pure white lifts it to 4.53:1. */
.cf-dark .cf-btn-primary,.cf-dark .cf-search button{color:#fff;}
.cf-dark .cf-btn-outline:hover{background:var(--cf-primary);border-color:var(--cf-primary);color:#fff;}
.cf-dark .cf-plan-featured{box-shadow:0 16px 40px rgba(0,0,0,.55);}

/* Vendor course cards (.card) — the catalogue grid, plan pages, dashboards */
.cf-dark .card,.cf-dark .course-item,.cf-dark .courses-item{background:var(--cf-surface-2,#1c1c20)!important;border-color:var(--cf-line)!important;}
.cf-dark .card .card-body,.cf-dark .card-footer,.cf-dark .card-header{background:transparent!important;border-color:var(--cf-line)!important;}
.cf-dark .cf-grid > .card,.cf-dark .cf-grid > div > .card{box-shadow:0 8px 26px rgba(0,0,0,.5);}

/* Text — the stock stylesheet hardcodes dark heading/body colours */
.cf-dark h1,.cf-dark h2,.cf-dark h3,.cf-dark h4,.cf-dark h5,.cf-dark h6,
.cf-dark .color-heading,.cf-dark .card-title,.cf-dark .course-title,
.cf-dark .cf-section-title,.cf-dark .cf-plan-name,.cf-dark .cf-plan-price,
.cf-dark .cf-cat-name,.cf-dark .cf-step h4{color:var(--cf-ink);}
.cf-dark p,.cf-dark .font-14,.cf-dark .font-15,.cf-dark .text-muted,
.cf-dark .cf-section-sub,.cf-dark .cf-muted{color:var(--cf-muted)!important;}
/* Form + filter text: the vendor paints labels #52526c, which lands at 2.25:1 on a dark surface —
   the whole course-filter sidebar was unreadable. Same family as the rule above. */
.cf-dark label,.cf-dark .form-check-label,.cf-dark .form-label,.cf-dark legend,
.cf-dark .actions-filter,.cf-dark .filter-title,.cf-dark small,.cf-dark .font-13{color:var(--cf-muted);}
/* Course-detail tabs (Overview/Curriculum/Discussion) and .para-color buttons carry the same
   vendor #52526c — 2.25:1 on dark. Scoped to .nav-tabs so the navbar's white links are untouched. */
.cf-dark .nav-tabs .nav-link,.cf-dark .para-color{color:var(--cf-muted);}
/* Vendor uses a 4-class selector for the course tabs, which outranks the rule above. */
.cf-dark .course-tab-nav-wrap .tab-nav-list.nav-tabs .nav-link{color:var(--cf-muted);}
.cf-dark .course-tab-nav-wrap .tab-nav-list.nav-tabs .nav-link.active{color:var(--cf-ink);}
/* Review summary box + any remaining light panels on the detail page. */
.cf-dark .review-tab-count-box,.cf-dark .course-review-box,
.cf-dark .instructor-box,.cf-dark .related-course-box{background:var(--cf-surface-2,#1c1c20)!important;border-color:var(--cf-line)!important;}
/* Vendor content cards on inner pages (About timeline etc.) still painted #fff. */
.cf-dark .history-content,.cf-dark .instructor-support-item,.cf-dark .team-member-item{background:var(--cf-surface-2,#1c1c20);border-color:var(--cf-line);}
.cf-dark .nav-tabs .nav-link.active{color:var(--cf-ink);}
.cf-dark a{color:inherit;}
.cf-dark .cf-cat:hover,.cf-dark .card:hover{border-color:var(--cf-primary)!important;}
.cf-dark .cookie-consent,.cf-dark .js-cookie-consent{background:var(--cf-surface-2,#1c1c20)!important;color:var(--cf-ink);border-color:var(--cf-line)!important;}

/* Forms + tables on dark */
.cf-dark .form-control,.cf-dark .form-select,.cf-dark select,.cf-dark textarea,.cf-dark input[type=text],
.cf-dark input[type=email],.cf-dark input[type=password],.cf-dark input[type=search],
.cf-dark input[type=number],.cf-dark input[type=tel],.cf-dark input[type=url],.cf-dark input[type=date]{
    background:var(--cf-surface-2,#1c1c20);border-color:var(--cf-line);color:var(--cf-ink);}
.cf-dark .form-control::placeholder{color:var(--cf-muted);}
.cf-dark table,.cf-dark .table{color:var(--cf-ink);}
.cf-dark .table > :not(caption) > * > *{background:transparent;border-color:var(--cf-line);}

/* Keep genuinely-light surfaces readable: the hero search pill stays white on the gradient */
.cf-dark .cf-search{background:#fff;}
/* The broad `.cf-dark input[type=search]` rule below darkens every field — but the hero
   search sits on a deliberately WHITE pill, so it must stay transparent or it renders
   dark-on-dark (1.08:1). Higher specificity + later, so it wins. */
.cf-dark .cf-search input{color:#141414;background:transparent;}
.cf-dark .cf-search input::placeholder{color:#6b6b73;}

/* Vendor/Bootstrap surfaces that are explicitly light. In a dark palette these must follow the
   theme or they punch white holes in the page (course detail panels, dropdowns, accordions).
   Note `.bg-white` is a Bootstrap utility used throughout the vendor views. */
.cf-dark .bg-white{background:var(--cf-surface-2,#1c1c20)!important;}
.cf-dark .dropdown-menu,.cf-dark .dropdown-menu-profile{background:var(--cf-surface-2,#1c1c20);border-color:var(--cf-line);}
.cf-dark .dropdown-item,.cf-dark .dropdown-menu a{color:var(--cf-ink);}
.cf-dark .dropdown-item:hover,.cf-dark .dropdown-item:focus,.cf-dark .dropdown-menu a:hover{background:rgba(255,255,255,.08);color:#fff;}
.cf-dark .dropdown-divider{border-color:var(--cf-line);}
.cf-dark .list-group-item,.cf-dark .accordion-item,.cf-dark .accordion-button,.cf-dark .accordion-body{
    background:var(--cf-surface-2,#1c1c20);color:var(--cf-ink);border-color:var(--cf-line);}
.cf-dark .accordion-button:not(.collapsed){background:var(--cf-surface,#141414);color:var(--cf-ink);}
.cf-dark .nav-tabs{border-color:var(--cf-line);}
.cf-dark .nav-tabs .nav-link{color:var(--cf-muted);background:transparent;border-color:transparent;}
.cf-dark .nav-tabs .nav-link.active{color:var(--cf-ink);background:transparent;border-color:transparent;}
.cf-dark .modal-content,.cf-dark .offcanvas{background:var(--cf-surface-2,#1c1c20);color:var(--cf-ink);}
.cf-dark .alert{border-color:var(--cf-line);}
.cf-dark .course-info-box,.cf-dark .course-single-details-left-content{border:1px solid var(--cf-line);}
/* The vendor marks the active course tab black with !important — unreadable on a dark panel. */
.cf-dark .course-tab-nav-wrap .nav-tabs .nav-item.show .nav-link,
.cf-dark .course-tab-nav-wrap .nav-tabs .nav-link.active{color:var(--cf-ink)!important;}

/* Access tag — shown instead of a price when Admin turns course prices off (a subscription-first
   platform sells the plan, not the course). Colour comes from the active palette. */
.cf-access-tag{display:inline-block;padding:3px 12px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.2px;line-height:1.6;}
.cf-access-paid{background:var(--cf-primary);color:#fff;}
.cf-access-free{background:#1d9d5c;color:#fff;}

/* Course badges — the vendor greens/oranges carry white text at ~2.1:1, unreadable in BOTH light
   and dark mode. Darkened just enough for AA (white on #157a47 = 5.4:1, on #a8500a = 5.2:1);
   the hue is unchanged so the cards still read as "new" green / "best seller" orange. */
.course-tag.badge.bg-green{background-color:#157a47!important;color:#fff!important;}
.course-tag.badge.bg-orange{background-color:#a8500a!important;color:#fff!important;}

/* ---- navbar search on dark palettes ----
   Line ~195 gives the navbar search a WHITE .input-group pill (right for light palettes) and the
   vendor keeps the inner input transparent. The broad `.cf-dark .form-control` rule repainted that
   inner input dark, producing the white-pill-with-a-dark-box look. On a dark navbar the whole
   control should just be dark. */
/* The <form> is the field (see .menu-section-area rules above). Give it the surface + a border
   that matches every other control in the navbar, and drop the vendor's 126px pill so it stops
   reading as a second shape around the box. */
.cf-dark .header-nav-left-side form,
.cf-dark .menu-section-area form{background:var(--cf-surface-2,#1c1c20);border:1px solid var(--cf-line)!important;border-radius:10px;}
.cf-dark .search-bar-suggestion-box{background:var(--cf-surface-2,#1c1c20);border:1px solid var(--cf-line);}
/* Vendor uses an ID selector (#mainNav .navbar-nav .dropdown-menu a) for navbar dropdown links,
   which outranks every class rule — the Categories menu rendered #52526c on the dark panel. */
.cf-dark #mainNav .navbar-nav .dropdown-menu a,
.cf-dark #mainNav .navbar-nav .dropdown-menu .dropdown-item{color:var(--cf-ink);}
.cf-dark #mainNav .navbar-nav .dropdown-menu a:hover{color:var(--cf-accent);}

/* ---- compact course cards ----
   The stock card is tall and airy: oversized title, wide gaps, a rating row even with no reviews.
   Tighten the body so a row reads as a dense, modern catalogue rather than stacked blocks. */
.course-item .card-body{padding:16px 16px 18px;}
.course-item .card-title{font-size:16px;line-height:1.35;margin-bottom:6px;}
.course-item .instructor-name-certificate{margin-bottom:8px;font-size:12.5px;opacity:.85;}
.course-item .course-rating{margin-bottom:8px!important;}
.course-item{border-radius:14px;overflow:hidden;}
/* The vendor pins min-height:221px on BOTH .course-img-wrap and its img. Inside a narrower grid
   column that forces a ~1.2 box, so object-fit:cover cropped the artwork's sides. Release the
   min-heights so a true 16:9 frame can form — the thumbnails are 16:9, so nothing is cut. */
.course-item .course-img-wrap{min-height:0;aspect-ratio:16/9;overflow:hidden;}
.course-item .course-img-wrap img{min-height:0;width:100%;height:100%;object-fit:cover;display:block;}

/* ============================================================================
   DARK PALETTES — full component pass
   The first dark-mode pass covered the cf- sections and the obvious vendor cards, but the stock
   stylesheet hardcodes light colours across dozens of components, so inner pages showed light
   panels, dark-on-dark text and mismatched borders. Everything below is scoped to .cf-dark, so
   light palettes are untouched.
   ==== dark palettes: full component pass ==== */

/* --- typography ------------------------------------------------------------------------- */
.cf-dark .color-heading,.cf-dark .heading-color,.cf-dark .title-color,
.cf-dark .font-16,.cf-dark .font-17,.cf-dark .font-18,.cf-dark .font-20,
.cf-dark .font-22,.cf-dark .font-24,.cf-dark .font-26,.cf-dark .font-30{color:var(--cf-ink);}
.cf-dark .para-color,.cf-dark .color-para,.cf-dark .color-gray,.cf-dark .text-secondary,
.cf-dark .font-12,.cf-dark .sub-title,.cf-dark .section-sub-heading{color:var(--cf-muted);}
.cf-dark .section-heading,.cf-dark .page-title{color:var(--cf-ink);}
.cf-dark hr{border-color:var(--cf-line);opacity:1;}
.cf-dark blockquote{border-color:var(--cf-line);color:var(--cf-muted);}
/* Links inherit body colour by default; brand-coloured ones keep the accent but stay legible. */
.cf-dark a:hover{color:var(--cf-accent);}
.cf-dark .color-hover{color:var(--cf-accent);}

/* --- surfaces / panels ------------------------------------------------------------------ */
.cf-dark .bg-white,.cf-dark .bg-light,.cf-dark .bg-body,.cf-dark .white-bg,
.cf-dark .box-shadow-style,.cf-dark .bg-style,.cf-dark .single-item,
.cf-dark .dashboard-card,.cf-dark .profile-card,.cf-dark .content-box,
.cf-dark .faq-item,.cf-dark .blog-item,.cf-dark .pricing-item,
.cf-dark .course-single-details-left-content,.cf-dark .course-details-sidebar,
.cf-dark .checkout-item,.cf-dark .cart-item{background:var(--cf-surface-2,#1c1c20)!important;border-color:var(--cf-line)!important;}
.cf-dark .section-bg,.cf-dark .bg-gray,.cf-dark .bg-soft{background:var(--cf-bg-soft)!important;}
.cf-dark .border,.cf-dark .border-top,.cf-dark .border-bottom,
.cf-dark .border-start,.cf-dark .border-end,.cf-dark .theme-border{border-color:var(--cf-line)!important;}

/* --- overlays: dropdowns, modals, offcanvas --------------------------------------------- */
.cf-dark .dropdown-menu,.cf-dark .modal-content,.cf-dark .offcanvas,
.cf-dark .search-bar-suggestion-box,.cf-dark .popover,.cf-dark .toast{background:var(--cf-surface-2,#1c1c20);border-color:var(--cf-line);color:var(--cf-ink);}
.cf-dark .dropdown-item{color:var(--cf-ink);}
.cf-dark .dropdown-item:hover,.cf-dark .dropdown-item:focus{background:var(--cf-bg-soft);color:var(--cf-ink);}
.cf-dark .dropdown-divider,.cf-dark .modal-header,.cf-dark .modal-footer{border-color:var(--cf-line);}
.cf-dark .btn-close{filter:invert(1) grayscale(1);opacity:.8;}

/* --- forms ------------------------------------------------------------------------------ */
.cf-dark .form-control:focus,.cf-dark .form-select:focus{background:var(--cf-surface-2,#1c1c20);color:var(--cf-ink);border-color:var(--cf-primary);box-shadow:none;}
.cf-dark .form-control::placeholder{color:var(--cf-muted);opacity:1;}
.cf-dark .form-control,.cf-dark .form-select{border-color:var(--cf-line);}
.cf-dark .form-check-input{background-color:var(--cf-surface-2,#1c1c20);border-color:var(--cf-line);}
.cf-dark .form-check-input:checked{background-color:var(--cf-primary);border-color:var(--cf-primary);}
.cf-dark .input-group-text{background:var(--cf-bg-soft);border-color:var(--cf-line);color:var(--cf-muted);}

/* --- tables ----------------------------------------------------------------------------- */
.cf-dark table,.cf-dark .table{color:var(--cf-ink);border-color:var(--cf-line);}
.cf-dark .table > :not(caption) > * > *{background-color:transparent;color:var(--cf-ink);border-color:var(--cf-line);}
.cf-dark .table thead th{color:var(--cf-ink);border-color:var(--cf-line);}
.cf-dark .table-striped > tbody > tr:nth-of-type(odd) > *{background-color:rgba(255,255,255,.03);color:var(--cf-ink);}
.cf-dark .table-hover > tbody > tr:hover > *{background-color:rgba(255,255,255,.05);color:var(--cf-ink);}

/* --- navigation: breadcrumb, pagination, accordion --------------------------------------- */
.cf-dark .breadcrumb-item,.cf-dark .breadcrumb-item a{color:var(--cf-muted);}
.cf-dark .breadcrumb-item.active{color:var(--cf-ink);}
.cf-dark .page-link{background:var(--cf-surface-2,#1c1c20);border-color:var(--cf-line);color:var(--cf-ink);}
.cf-dark .page-item.active .page-link{background:var(--cf-primary);border-color:var(--cf-primary);color:#fff;}
.cf-dark .page-link:hover{background:var(--cf-bg-soft);color:var(--cf-ink);}
.cf-dark .accordion-item,.cf-dark .accordion-button{background:var(--cf-surface-2,#1c1c20);color:var(--cf-ink);border-color:var(--cf-line);}
.cf-dark .accordion-button:not(.collapsed){background:var(--cf-bg-soft);color:var(--cf-ink);}
/* The vendor replaces Bootstrap's SVG chevron with a Feather ICON FONT, whose glyph already
   follows `color` — inverting it turned every accordion arrow black on dark. Colour, no filter. */
.cf-dark .accordion-button::after{color:var(--cf-ink);filter:none;}
.cf-dark .list-group-item{background:var(--cf-surface-2,#1c1c20);border-color:var(--cf-line);color:var(--cf-ink);}

/* --- feedback --------------------------------------------------------------------------- */
.cf-dark .alert{background:var(--cf-surface-2,#1c1c20);border-color:var(--cf-line);color:var(--cf-ink);}
.cf-dark .nav-tabs{border-color:var(--cf-line);}
/* The vendor already draws the active-tab underline with ::after — adding a border here painted
   a SECOND red line under the tab. Colour only. */
.cf-dark .nav-tabs .nav-link.active{background:transparent;border-color:transparent;}

/* ---- video/preview modal close button ----
   The vendor nests <span class="iconify" data-icon="akar-icons:cross"> inside .btn-close, but
   Bootstrap draws its own X as a background-image — so two crosses stacked, and the dark-mode
   invert filter mangled one of them. Drop Bootstrap's image and present the icon properly. */
.VideoTypeModal .btn-close,.venoBoxTypeModal .btn-close{background-image:none;opacity:1;filter:none;
  width:42px;height:42px;border-radius:50%;background-color:rgba(255,255,255,.14);
  display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.3);}
.VideoTypeModal .btn-close:hover,.venoBoxTypeModal .btn-close:hover{background-color:rgba(255,255,255,.26);}
.VideoTypeModal .btn-close .iconify,.venoBoxTypeModal .btn-close .iconify{color:#fff;font-size:20px;}
.VideoTypeModal .modal-header,.venoBoxTypeModal .modal-header{position:relative;z-index:1056;justify-content:flex-end;padding:14px 18px;}

/* ---- course card: kill the fixed 417px shell ----
   The vendor pins .course-item{min-height:417px} — sized for a card that carried a rating row and
   a price line. With those gone the card kept its full height and .card-body (flex:1 1 auto)
   absorbed the slack, leaving ~190px of dead space under the content. Let the card size to its
   content on every listing (homepage grid, /courses, search, wishlist). */
.course-item{min-height:0;}
.cf-grid > .card,.cf-grid > div > .card{height:100%;}
.course-item .card-body{flex:0 1 auto;}
/* the meta row sits directly under the copy instead of being pushed to a stretched floor */
.course-item .course-item-bottom{margin-top:6px;}

/* ============================================================================
   COMPONENT POLISH — curriculum accordion, course filters, sort control, page hero
   The vendor ships these as near-unstyled blocks (accordion buttons with padding:0, filter panels
   with hairline borders, a 400px empty page banner). They read as "unfinished" next to the cf-
   sections, so they get the same surface/spacing language.
   ==== component polish ==== */

/* --- curriculum accordion --------------------------------------------------------------- */
.curriculum-content .accordion-item{background:var(--cf-surface-2,#fff);border:1px solid var(--cf-line,#e7e7f2)!important;
  border-radius:12px!important;margin-bottom:10px;overflow:hidden;}
.curriculum-content .accordion-header{margin:0;}
.curriculum-content .accordion-button{padding:16px 20px!important;font-size:16px!important;font-weight:600;
  background:transparent!important;box-shadow:none!important;width:100%;}
.curriculum-content .accordion-button:not(.collapsed){background:var(--cf-bg-soft,#f6f6fc)!important;}
.curriculum-content .accordion-button:hover{background:var(--cf-bg-soft,#f6f6fc)!important;}
.curriculum-content .accordion-button::after{margin-left:auto;}
.curriculum-content .accordion-body{padding:6px 20px 16px;}
.curriculum-content .play-list a,.curriculum-content .play-list .play-list-item{padding:10px 12px;border-radius:8px;}
.curriculum-content .play-list a:hover{background:var(--cf-bg-soft,#f6f6fc);}

/* --- course filter sidebar --------------------------------------------------------------- */
.courses-sidebar-area .course-sidebar-accordion-item{background:var(--cf-surface-2,#fff);
  border:1px solid var(--cf-line,#e7e7f2)!important;border-radius:12px!important;margin-bottom:10px;overflow:hidden;}
.courses-sidebar-area .accordion-button{padding:14px 16px!important;font-size:15px!important;font-weight:700;}
.courses-sidebar-area .accordion-body{padding:4px 16px 14px!important;}
.courses-sidebar-area .form-check{margin-bottom:8px;}
.courses-sidebar-area .sidebar-radio-item{padding:0;}
/* the sidebar sat 40px above the first card because .show-all-course-area carries margin-top:40px */
.coursesLeftSidebar .courses-sidebar-area{margin-top:40px;}

/* --- sort control ------------------------------------------------------------------------ */
/* Sort control: the vendor wraps a label + <select> in .filter-box but leaves the box a light
   hairline and the select its own background, so the two read as overlapping rectangles. Make the
   wrapper the control and the select transparent inside it. */
.filter-box{display:inline-flex;align-items:center;gap:6px;background:var(--cf-surface-2,#fff);
  border:1px solid var(--cf-line,#e7e7f2)!important;border-radius:10px!important;padding:0 10px!important;overflow:hidden;}
.filter-box .form-select,.filter-box select{background:transparent!important;border:0!important;box-shadow:none!important;
  font-weight:600;color:inherit;padding:6px 30px 6px 4px!important;}
.cf-dark .filter-box{color:var(--cf-ink);}

/* --- inner page hero: the vendor banner reserved ~400px of empty space ------------------- */
.cf-page-hero{padding:120px 0 44px;}
.page-banner-header.gradient-bg .section-overlay{padding:120px 0 44px;}

/* --- mobile hamburger menu -----------------------------------------------------------------
   The vendor paints the collapsed-menu panel with var(--heading-color) — its navy heading TEXT
   colour doubling as a surface. On a dark theme that navy clashes with every other panel, so
   the panel joins the raised-surface system. Scoped to the vendor's own breakpoint: the same
   div is the desktop navbar container and must stay transparent there. */
@media (max-width: 991.98px){
    .cf-dark .main-menu-collapse{
        background-color:var(--cf-surface-2);
        border:1px solid var(--cf-line);
        border-radius:12px;
    }
}

/* --- mobile course filters -----------------------------------------------------------------
   The vendor binds the #filter toggle inside `if ($(window).width() > 767)`, so on a phone the
   handler never attaches: the sidebar rendered permanently expanded with no way to dismiss it.
   Closed by default here, opened by the button (see course-list.blade). */
@media (max-width: 767px){
    .coursesLeftSidebar{display:none;}
    .coursesLeftSidebar.cf-filter-open{display:block;margin-bottom:22px;}
    .sidebar-filter-btn{border:1px solid var(--cf-line,#e7e7f2);border-radius:10px;padding:8px 14px;}
    .sidebar-filter-btn.cf-active{background:var(--cf-primary);color:#fff;border-color:var(--cf-primary);}
    /* the vendor banner reserves desktop-sized space on phones too */
    .cf-page-hero{padding:100px 0 32px;}
    .page-banner-header.gradient-bg .section-overlay{padding:100px 0 32px;}
    .cf-hero{padding:110px 0 56px;}
    .cf-hero-title{font-size:32px;}
    .cf-hero-art{display:none;}
    .cf-stats{gap:20px;}
    .cf-section{padding:40px 0;}
    .cf-section-title{font-size:24px;}
    /* the navbar search pill is 648px wide in the vendor sheet */
    .header-nav-left-side form,.menu-section-area form{width:100%!important;margin-left:0!important;}
}

/* --- auth pages (login / sign-up / forgot / reset) on dark palettes ---------------------- */
.cf-dark .sign-up-right-content,.cf-dark .sign-up-left-content{background:var(--cf-surface,#141414)!important;color:var(--cf-ink);}
.cf-dark .sign-up-right-content .form-control{background:var(--cf-surface-2,#1c1c20)!important;border-color:var(--cf-line)!important;color:var(--cf-ink);}
.cf-dark .sign-up-left-content h1,.cf-dark .sign-up-left-content h2,.cf-dark .sign-up-left-content p,
.cf-dark .sign-up-left-content .sign-up-left-text{color:var(--cf-ink)!important;}
.cf-dark .sign-up-right-content h1,.cf-dark .sign-up-right-content h2,.cf-dark .sign-up-right-content h3,
.cf-dark .sign-up-right-content h4,.cf-dark .sign-up-right-content label{color:var(--cf-ink);}
/* The auth logo has no size cap anywhere in the vendor CSS — the navbar caps its img at 40px, the
   auth pages cap nothing — so the raw asset renders at natural size (a 606x187px slab here) and
   swamps the panel. Not palette-specific: any deployment whose logo is wider than a favicon hits
   this, so it is capped for every theme, not just .cf-dark. */
.sign-up-top-logo img{max-height:52px;max-width:100%;width:auto;height:auto;}

/* --- two fallouts of the typography pass ------------------------------------------------- */
/* filled vendor buttons: they carry font-size utility classes (.font-14/.font-15), so the muted
   body-copy rule above was repainting BUTTON labels — grey text on the brand red at 1.97:1. */
.cf-dark .theme-btn,.cf-dark .theme-button1,.cf-dark .theme-button3,
.cf-dark .btn-primary,.cf-dark .cf-btn-primary{color:#fff!important;}
/* brand-red TEXT links sit at 3.8:1 on near-black — under AA. Lift them to a tint that still
   reads as the brand (6.8:1). Buttons keep the true brand red; only inline links change. */
.cf-dark a.color-hover,.cf-dark .color-hover > a,.cf-dark a.text-decoration-underline{color:#ff6b73;}
.cf-dark a.color-hover:hover,.cf-dark a.text-decoration-underline:hover{color:#ff9096;}

/* Price range Min/Max (course filter): vendor inputs with their own colours. */
.cf-dark .price-range-field{background:var(--cf-surface-2,#1c1c20)!important;color:var(--cf-ink)!important;
  border:1px solid var(--cf-line)!important;border-radius:8px;}
.cf-dark .range-value-wrap label{color:var(--cf-muted);}

/* "Explore Instructor" CTA (About page): vendor salmon #fc8068 carries white at 2.49:1 in any
   mode. On dark palettes use the brand primary (white on it = AA). */
.cf-dark .course-instructor-support-area .theme-btn{background:var(--cf-primary)!important;
  border-color:var(--cf-primary)!important;color:#fff!important;}

/* Forum sidebar headers ("Top Contributors" etc.): vendor white boxes -> 1.03:1 on dark. */
.cf-dark .forum-link-box-title{background:var(--cf-surface-2,#1c1c20)!important;color:var(--cf-ink)!important;border-color:var(--cf-line)!important;}
.cf-dark .forum-link-box-title a{color:var(--cf-accent);}

/* =====================================================================================
   STUDENT PANEL on dark palettes (HANDOFF §25)

   The signed-in area was never covered by the dark pass: it renders through the frontend
   layout (so it correctly gets .cf-dark) but its own components are painted white by
   style.css and chat/chat.css, which the earlier audits never reached because every one of
   these screens requires a session. Result: white slabs on every student page.

   Each rule below neutralises one vendor light fill. Grouped by the screen it belongs to so
   a future vendor update can be diffed against it.
   ===================================================================================== */

/* Navbar round buttons (cart / wishlist / notifications / language). The vendor paints the
   circle var(--white-color) and the Feather icon inherits colour — on dark that is a near
   white glyph on a white disc, i.e. invisible. The disc joins the surface system instead. */
.cf-dark .menu-round-btn > a{background-color:var(--cf-surface-2)!important;border:1px solid var(--cf-line);color:var(--cf-ink)!important;}
.cf-dark .menu-round-btn > a:hover{background-color:var(--cf-surface)!important;}
.cf-dark .menu-round-btn > a svg{stroke:currentColor;}

/* Inner-page banner used by every signed-in screen. --page-bg is #F8F6F0 (cream), which is
   the wide off-white band behind the course title. */
.cf-dark .blank-page-banner-wrap{background-color:var(--cf-surface)!important;}

/* ---- Course watch (My Learning -> player) ---- */
.cf-dark .course-watch-right-side{background-color:var(--cf-surface-2)!important;border:1px solid var(--cf-line);}
.cf-dark .course-watch-right-side .accordion-body{background-color:var(--cf-surface-2)!important;color:var(--cf-ink);}
.cf-dark .course-watch-right-side .accordion-header .accordion-button:not(.collapsed){background-color:var(--cf-surface)!important;color:var(--cf-ink);}
.cf-dark .course-single-details-right-content .accordion-header{background-color:var(--cf-surface)!important;}
.cf-dark .course-single-details-right-content .curriculum-content .accordion-body{background-color:var(--cf-surface-2)!important;}
.cf-dark .course-watch-notice-board-wrap .row{background-color:var(--cf-surface-2)!important;}
.cf-dark .course-watch-notice-board-wrap .notice-board-box{background-color:var(--cf-surface)!important;color:var(--cf-ink);}

/* ---- Chat (chat/chat.css: #F8F8F8, #f1f0f0, #eaeaea, #fff) ---- */
.cf-dark .chat-box,.cf-dark .chat-user,.cf-dark #select-user h6{background-color:var(--cf-surface-2)!important;color:var(--cf-ink);}
.cf-dark .selected-user,.cf-dark .receiver .message-text{background-color:var(--cf-surface)!important;color:var(--cf-ink);}
.cf-dark .course-list .course-user{background-color:var(--cf-surface)!important;color:var(--cf-ink);}
.cf-dark .course-list li .course-title{background-color:var(--cf-surface-2)!important;color:var(--cf-ink);}
.cf-dark .message-user-item{background-color:var(--cf-surface-2)!important;color:var(--cf-ink);}
.cf-dark .message-user-item.active,.cf-dark .message-user-item:hover{background-color:var(--cf-surface)!important;}
.cf-dark .start-conversation-btn-wrap{background-color:var(--cf-surface-2)!important;}
.cf-dark .start-conversation-btn-wrap button{background-color:var(--cf-surface)!important;color:var(--cf-ink)!important;border:1px solid var(--cf-line);}

/* ---- Profile / settings sidebar ---- */
.cf-dark .student-profile-left-part ul li a:hover,
.cf-dark .student-profile-left-part ul li a.active{background-color:var(--cf-surface-2)!important;color:var(--cf-ink)!important;}

/* ---- Forum tab pills ---- */
.cf-dark .forum-likes-tabs .nav-pills .nav-link.active{background-color:var(--cf-surface-2)!important;color:var(--cf-ink)!important;}

/* Custom scrollbars are drawn white by the vendor, which reads as a bright stripe down every
   scrollable panel on these screens. */
.cf-dark .custom-scrollbar::-webkit-scrollbar-track,
.cf-dark .scroll-bar::-webkit-scrollbar-track,
.cf-dark .course-watch-right-side .custom-scrollbar::-webkit-scrollbar-track{background-color:var(--cf-surface)!important;}
.cf-dark .custom-scrollbar::-webkit-scrollbar-thumb,
.cf-dark .scroll-bar::-webkit-scrollbar-thumb{background-color:var(--cf-line)!important;}

/* Notification dropdown tabs and the chat search field — the last two vendor light fills that
   only appear once signed in. */
.cf-dark .menu-notification-tab-list .nav-link.active,
.cf-dark .menu-notification-tab-list .show > .nav-link{background-color:var(--cf-surface)!important;color:var(--cf-ink)!important;}
.cf-dark .search-message-box.input-group{background-color:var(--cf-surface)!important;border:1px solid var(--cf-line);}
.cf-dark .search-message-box.input-group .form-control{background:transparent!important;color:var(--cf-ink);}
/* Sidebar / mobile-menu active items reuse the same #f6f6f6 chip as the student profile nav. */
.cf-dark .instructor-profile-left-part ul li a.active,
.cf-dark li.menu-has-children.current-menu-item.has-open a.active{background-color:var(--cf-surface-2)!important;color:var(--cf-ink)!important;}

/* =====================================================================================
   REMAINING VENDOR LIGHT FILLS across the whole dark-themed surface (HANDOFF §25)

   Found by sweeping every class used in the 149 templates that render under the frontend
   layout (public + signed-in student) against every light background in the vendor
   stylesheets. These are the ones no earlier rule reached.

   Deliberately NOT converted: .google-login / .facebook-login / .twitter-login (their white
   and brand fills are the providers' own sign-in specs), .status.pending / .status.blocked
   and .merit-list-leatherboard / .instructor-temporary-unavailable (semantic amber/red
   status colours), and .saas-plan-* (that module is off).
   ===================================================================================== */

/* Checkout — the white wrapper behind Order Review / Billing Summary, visible as a light
   frame around those cards. */
.cf-dark .checkout-right-side-box{background-color:var(--cf-surface-2)!important;border:1px solid var(--cf-line);}
.cf-dark .checkout-right-side-box .accordion-button:not(.collapsed),
.cf-dark .checkout-right-side-box .accordion-button{background-color:var(--cf-surface-2)!important;color:var(--cf-ink)!important;}
.cf-dark .billing-address-box{background-color:var(--cf-surface-2)!important;}
.cf-dark .checkout-table{background-color:transparent!important;color:var(--cf-ink);}

/* Course sidebar / filters and FAQ accordions still on --page-bg (#F8F6F0 cream). */
.cf-dark .courses-sidebar-area .accordion-button,
.cf-dark .course-sidebar-accordion-item{background-color:var(--cf-surface-2)!important;color:var(--cf-ink);}
.cf-dark .faq-page-area .accordion-button,.cf-dark .faq-page-area .accordion-body{background-color:var(--cf-surface-2)!important;color:var(--cf-ink);}

/* Support tickets, forum, comments, assignments, leaderboards, affiliate — white cards. */
.cf-dark .support-tickets-page .accordion-button,
.cf-dark .support-tickets-page .accordion-button:not(.collapsed){background-color:var(--cf-surface-2)!important;color:var(--cf-ink)!important;}
.cf-dark .ticket-reply-item.ticket-reply-item-student{background-color:var(--cf-surface-2)!important;}
.cf-dark .comment-content-part .comment-content-part-top{background-color:var(--cf-surface-2)!important;}
.cf-dark .forum-category-single-item-bottom-left-name{background-color:var(--cf-surface-2)!important;color:var(--cf-ink);}
.cf-dark .create-assignment-upload-files{background-color:var(--cf-surface-2)!important;border-color:var(--cf-line);}
.cf-dark .merit-list-leatherboard .leatherboard-item,
.cf-dark .student-own-leatherboard-item{background-color:var(--cf-surface-2)!important;color:var(--cf-ink);}
.cf-dark .affiliate-dashboard-item{background-color:var(--cf-surface-2)!important;color:var(--cf-ink);}
.cf-dark .course-info-box-affiliate-link-copy input{background-color:var(--cf-surface)!important;color:var(--cf-ink);}
.cf-dark .single-feature-item{background-color:var(--cf-surface-2)!important;color:var(--cf-ink);}
.cf-dark .instructor-courses-info-duration-wrap{background-color:var(--cf-surface-2)!important;color:var(--cf-ink);}
.cf-dark .instructor-bottom-item div:nth-child(2){background-color:var(--cf-surface-2)!important;}

/* Carousel arrows sat as white discs over dark sections. */
.cf-dark .course-slider-items .owl-nav button{background:var(--cf-surface-2)!important;color:var(--cf-ink)!important;border:1px solid var(--cf-line);}

/* Outline/secondary buttons whose resting or hover fill is plain white. */
.cf-dark .theme-button2,
.cf-dark .quiz-back-btn,.cf-dark .default-back-btn,
.cf-dark .instructor-my-course-btns .instructor-course-btn:nth-child(2),
.cf-dark .btn-violet-transparent:hover,.cf-dark .orange-theme-btn:hover,
.cf-dark .btn-orange:hover,.cf-dark .light-purple-theme-btn:hover,
.cf-dark .order-summary-btns .load-more-btn:hover{background-color:var(--cf-surface-2)!important;color:var(--cf-ink)!important;border-color:var(--cf-line);}

/* --- three fixes found on the live signed-in pages (HANDOFF §25) --------------------------- */

/* Curriculum chapters drew a #e5e8ec hairline — a bright white line around every chapter row
   on the dark player. The vendor sets it on .accordion-header specifically, which none of the
   surface rules above touch because they only repaint backgrounds. */
.cf-dark .accordion-header,
.cf-dark .accordion-item,
.cf-dark .course-watch-right-side .accordion-header{border-color:var(--cf-line)!important;}

/* The vendor paints the curriculum scrollbar thumb with var(--theme-color) !important — brand
   red — so a full-height crimson stripe ran down the Course Content panel. Three classes here to
   outrank `.course-watch-right-side .custom-scrollbar::-webkit-scrollbar-thumb`. */
.cf-dark .course-watch-right-side .custom-scrollbar::-webkit-scrollbar-thumb,
.cf-dark .course-watch-right-accordion-wrap .custom-scrollbar::-webkit-scrollbar-thumb{background-color:var(--cf-line)!important;}
.cf-dark .course-watch-right-side .custom-scrollbar::-webkit-scrollbar-thumb:hover{background-color:var(--cf-muted)!important;}

/* Notification dropdown tab strip: the ul itself is #e3e4f2, not just its active link. */
.cf-dark .menu-notification-tab-list,
.cf-dark ul.nav-pills.menu-notification-tab-list{background-color:var(--cf-surface-2)!important;}
