/* ═══════════════════════════════════════════════════════════
   dashboard.css
   MyWeaverLabs — User Dashboard
   Palette: Beige bg · Navy + Orange accents
   Exact header/footer from purchasehistory.css
═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────────── */
:root {
    --navy:        #0d2244;
    --navy-mid:    #163366;
    --navy-light:  #1e4080;
    --orange:      #ff8337;
    --orange-lt:   #fb8500;
    --beige:       #f5f0e8;
    --beige-dark:  #ede6d6;
    --beige-card:  #faf7f2;
    --text:        #1a1a2e;
    --muted:       #6b7280;
    --white:       #ffffff;
    --shadow:      0 4px 24px rgba(13,34,68,.10);
    --radius:      14px;
    --font-head:   'Fraunces', 'Georgia', serif;
    --font-body:   'DM Sans', system-ui, sans-serif;

    --pd-navy:        #0d1b3e;
    --pd-navy-mid:    #1a2d5a;
    --pd-orange:      #f47b20;
    --pd-orange-dark: #d4631a;
    --pd-orange-pale: #fff3e8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--beige);
    font-family: var(--font-body);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ══════════════════════════════════════════════════════════
   HEADER — exact match to purchasehistory.css
══════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 68px;
    max-width: 1500px;
    margin: 0 auto;
}
.logo-img {
    height: 220px;
    width: auto;
    display: block;
    margin-top: 12px;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 26px;
    height: 18px;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    z-index: 1001;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: #1a2b56;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Nav ── */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-item { position: relative; }
.nav-link,
.nav-item > .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: #1a2b56;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    transition: color .16s, background .16s;
    outline: none;
}
.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-item.open > .nav-link { color: #f58220; }
.nav-item.open > .nav-link { position: relative; }
.nav-item.open > .nav-link::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 16px; right: 16px;
    height: 2px;
    border-radius: 2px;
    background: #f58220;
    z-index: 1000;
}

/* Mega menu */
.mega-menu {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #ffffff;
    border-top: 1px solid #eef0f5;
    border-bottom: 1px solid #eef0f5;
    box-shadow: 0 12px 40px rgba(26,43,86,.08);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s cubic-bezier(.4,0,.2,1);
}
.nav-item.open .mega-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.main-nav .nav-item .mega-menu { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; transition: opacity .2s ease, visibility .2s ease !important; }
.main-nav .nav-item:hover .mega-menu { opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; }
.mega-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 2rem;
}
.mega-col { width: 100%; max-width: 760px; display: flex; flex-direction: column; }
.mega-tag {
    font-size: .75rem; font-weight: 600; color: #f58220;
    margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em;
    font-size: 22px; font-weight: 800; letter-spacing: -.3px; color: #ff6b00;
}
.mega-col-heading {
    font-size: 1.15rem; font-weight: 700; color: #1a2b56;
    margin: 0 0 24px; padding: 0; font-family: var(--font-body);
}
.mega-card {
    display: block; text-decoration: none; padding: 16px 20px;
    border-radius: 8px; background: transparent; border: 1px solid transparent;
    transition: background-color .2s, border-color .2s, transform .2s;
    margin-bottom: 12px; cursor: pointer;
}
.mega-card:not(.coming-soon):hover {
    background-color: #f8fafc; border-color: #e2e8f0; transform: translateY(-1px);
}
.mega-card-title {
    font-size: .95rem; font-weight: 600; color: #1a2b56;
    margin-bottom: 4px; display: flex; align-items: center; gap: 8px;
    transition: color .2s;
}
.mega-card:not(.coming-soon):hover .mega-card-title { color: #f58220; }
.mega-card-desc { font-size: .85rem; font-weight: 400; color: #64748b; line-height: 1.5; }
.coming-soon { cursor: default; opacity: .75; }
.badge-soon {
    font-size: .65rem; font-weight: 700; text-transform: uppercase;
    background-color: #f1f5f9; color: #64748b;
    padding: 2px 6px; border-radius: 4px;
}
#megaBackdrop { display: none; position: fixed; inset: 68px 0 0 0; background: rgba(15,23,42,.1); backdrop-filter: blur(2px); z-index: 997; }
#megaBackdrop.active { display: block; }

/* ── Cart ── */
.cart-container {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 16px !important;
    vertical-align: middle !important;
    position: relative;
}
.cart-container a {
    position: relative !important;
    display: inline-block !important;
    line-height: 1 !important;
    padding: 4px !important;
    text-decoration: none !important;
    color: var(--navy);
    transition: color .3s;
}
.cart-container a:hover { color: #f58220; }
.cart-container .fa-cart-shopping { font-size: 20px !important; color: #002147 !important; }
#cartCount.cart-badge {
    position: absolute !important; top: -8px !important; right: -4px !important;
    background: red; color: #fff !important;
    font-size: 10px !important; font-weight: 700 !important;
    width: 16px !important; height: 16px !important; border-radius: 50% !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    line-height: 16px !important; text-align: center !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.3) !important;
    z-index: 10 !important; pointer-events: none !important;
}

/* ── Get Started button ── */
.nav-btn-get-started {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 150px !important;
    height: 52px !important;
    padding: 0 76px 0 36px !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    color: #1a253c !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border: 1px solid #f97316 !important;
    border-radius: 8px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 32 24' stroke='%23f97316' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2 12h26M20 4l8 8-8 8'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: calc(100% - 28px) center !important;
    background-size: 36px 24px !important;
    transition: all .2s ease-in-out !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(255,165,0,.3);
}
.nav-btn-get-started:hover {
    background-color: #fff7ed !important;
    background-position: calc(100% - 22px) center !important;
    box-shadow: 0 4px 12px rgba(249,115,22,.15) !important;
}
#authBtn[style*="display: none"],
#authBtn[style*="display:none"] { display: none !important; width: 0 !important; padding: 0 !important; margin: 0 !important; }

/* ── Profile Dropdown ── */
.profile-wrap { position: relative; display: inline-block; }
.profile-btn {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--pd-orange); border: 2px solid rgba(255,255,255,.3);
    color: #fff; font-size: .82rem; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    letter-spacing: .03em; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.profile-btn:hover { border-color: var(--pd-orange); box-shadow: 0 0 0 3px rgba(244,123,32,.35); }
.profile-dropdown {
    display: none;
    position: absolute; top: calc(100% + 10px); right: 0;
    width: 290px; background: #fff; border-radius: 12px;
    box-shadow: 0 8px 32px rgba(9,19,40,.28);
    overflow: hidden; z-index: 9999;
    animation: pdDropIn .18s ease;
}
.profile-dropdown.show,.profile-dropdown.visible { display: block; }
@keyframes pdDropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.pd-header { background: var(--pd-navy); padding: .9rem 1rem; display: flex; align-items: center; gap: .7rem; }
.pd-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--pd-orange); color: #fff; font-size: .95rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 2px solid rgba(255,255,255,.2); }
.pd-name { color: #fff; font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-email { color: rgba(255,255,255,.6); font-size: .73rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-section-label { font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #9aa3b2; padding: .6rem 1rem .2rem; }
.pd-item { display: flex; align-items: center; gap: .55rem; padding: .45rem 1rem; font-size: .82rem; color: var(--pd-navy); cursor: pointer; transition: background .15s; text-decoration: none; border: none; background: none; width: 100%; text-align: left; }
.pd-item:hover { background: var(--pd-orange-pale); color: var(--pd-orange-dark); }
.pd-empty { font-size: .76rem; color: #b0b8c9; padding: .25rem 1rem .5rem; font-style: italic; }
.pd-divider { height: 1px; background: #f0f2f5; margin: .35rem 0; }
.pd-logout { display: flex; align-items: center; gap: .55rem; padding: .6rem 1rem; font-size: .82rem; color: #c0392b; cursor: pointer; transition: background .15s; border: none; background: none; width: 100%; text-align: left; font-weight: 600; }
.pd-logout:hover { background: #fff0f0; }

/* ══════════════════════════════════════════════════════════
   DASHBOARD HERO BAND
══════════════════════════════════════════════════════════ */
.dash-hero {
    background: linear-gradient(135deg, #7d91b3 0%, #0a1833 55%, #182845 100%);
    padding: 3.5rem 2rem 3rem;
    position: relative;
    overflow: hidden;
}

/* Decorative orb shapes */
.dash-hero::before {
    content: '';
    position: absolute;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,131,55,.18) 0%, transparent 70%);
    top: -120px; right: -80px;
    pointer-events: none;
}
.dash-hero::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,131,55,.10) 0%, transparent 70%);
    bottom: -80px; left: 5%;
    pointer-events: none;
}

.dash-hero-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

/* Left text block */
.dash-hero-left { flex: 1; min-width: 280px; }

.dash-greeting-tag {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: rgba(255,131,55,.15);
    border: 1px solid rgba(255,131,55,.35);
    color: var(--orange);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .35rem .9rem;
    border-radius: 20px;
    margin-bottom: 1.1rem;
}

/* Pulsing green dot */
.dot-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74,222,128,.4);
    animation: pulse-dot 1.8s infinite;
    flex-shrink: 0;
}
@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.5); }
    70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
    100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.dash-welcome {
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: .7rem;
}
.dash-welcome span { color: var(--orange); }
.dash-sub { color: rgba(255,255,255,.65); font-size: 1.05rem; margin-bottom: 2rem; }

/* Quick action buttons */
.dash-quick-actions { display: flex; gap: .85rem; flex-wrap: wrap; }
.dqa-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .65rem 1.4rem;
    border-radius: 8px;
    font-size: .9rem; font-weight: 600;
    text-decoration: none; cursor: pointer; border: none;
    transition: all .2s;
}
.dqa-primary { background: var(--orange); color: #fff; }
.dqa-primary:hover { background: var(--orange-lt); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,131,55,.35); }
.dqa-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.dqa-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }

/* ── KPI Grid ── */
.dash-hero-right { flex-shrink: 0; }
.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.kpi-card {
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    min-width: 140px;
    backdrop-filter: blur(8px);
    transition: transform .2s, box-shadow .2s;
}
.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.2); }

.kpi-orange { background: rgba(255,131,55,.18); border: 1px solid rgba(255,131,55,.35); }
.kpi-navy  { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); }
.kpi-sage  { background: rgba(74,222,128,.10); border: 1px solid rgba(74,222,128,.25); }
.kpi-cream { background: rgba(251,191,36,.10); border: 1px solid rgba(251,191,36,.25); }

.kpi-icon { font-size: 1.1rem; margin-bottom: .1rem; }
.kpi-orange .kpi-icon { color: var(--orange); }
.kpi-navy .kpi-icon  { color: rgba(255,255,255,.7); }
.kpi-sage .kpi-icon  { color: #4ade80; }
.kpi-cream .kpi-icon { color: #fbbf24; }

.kpi-val  { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1; }
.kpi-label{ font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* ══════════════════════════════════════════════════════════
   AUTH GATE
══════════════════════════════════════════════════════════ */
.auth-gate { display: none; justify-content: center; align-items: center; min-height: 60vh; padding: 3rem 2rem; }
.auth-gate.visible { display: flex; }
.ag-card {
    background: var(--beige-card);
    border: 1.5px solid var(--beige-dark);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 460px;
    width: 100%;
    box-shadow: var(--shadow);
}
.ag-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-lt) 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
}
.ag-icon i { color: #fff; font-size: 1.8rem; }
.ag-card h3 { font-family: var(--font-head); font-size: 1.6rem; color: var(--navy); margin-bottom: .6rem; }
.ag-card p { color: var(--muted); margin-bottom: 1.5rem; line-height: 1.6; }

/* ══════════════════════════════════════════════════════════
   MAIN DASHBOARD GRID
══════════════════════════════════════════════════════════ */
.dash-body {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2.5rem 2rem 5rem;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

/* ── Panel base ── */
.dash-panel {
    background: var(--beige-card);
    border: 1.5px solid var(--beige-dark);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.dash-panel:last-child { margin-bottom: 0; }

/* ── Panel header ── */
.panel-header {
    padding: 1.4rem 1.6rem 1rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .8rem;
    border-bottom: 1.5px solid var(--beige-dark);
    background: linear-gradient(to right, var(--beige-card), #fdf9f3);
}
.panel-header-left { display: flex; flex-direction: column; gap: .25rem; }
.panel-eyebrow {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--orange);
}
.panel-title {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: .6rem;
}
.panel-count {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--navy); color: #fff;
    font-family: var(--font-body);
    font-size: .72rem; font-weight: 700;
    width: 24px; height: 24px;
    border-radius: 50%;
}

/* ── Panel controls ── */
.panel-controls { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.mini-search {
    position: relative;
    display: flex; align-items: center;
}
.mini-search i { position: absolute; left: .7rem; color: var(--muted); font-size: .78rem; pointer-events: none; }
.mini-search input {
    padding: .5rem .85rem .5rem 2rem;
    border: 1.5px solid var(--beige-dark);
    border-radius: 8px;
    background: var(--beige);
    font-size: .82rem;
    color: var(--text);
    font-family: var(--font-body);
    outline: none;
    width: 180px;
    transition: border-color .2s, box-shadow .2s;
}
.mini-search input:focus { border-color: var(--navy-mid); box-shadow: 0 0 0 3px rgba(22,51,102,.10); }
.mini-select {
    padding: .5rem .85rem;
    border: 1.5px solid var(--beige-dark);
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    font-size: .82rem;
    font-family: var(--font-body);
    cursor: pointer; outline: none;
}

/* ── Panel empty ── */
.panel-empty {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--muted);
}
.panel-empty i { font-size: 2rem; color: var(--beige-dark); margin-bottom: 1rem; display: block; }
.panel-empty p { font-size: .92rem; }

/* ── Skeleton loaders ── */
.skeleton-stack { padding: 1.2rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.skel-course-card {
    height: 100px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--beige-dark) 25%, #e8e0ce 50%, var(--beige-dark) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.skel-timeline-item {
    height: 54px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--beige-dark) 25%, #e8e0ce 50%, var(--beige-dark) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ══════════════════════════════════════════════════════════
   COURSE CARDS
══════════════════════════════════════════════════════════ */
.course-list { display: flex; flex-direction: column; padding: 1.2rem 1.6rem; gap: 1rem; }

.course-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    background: var(--beige);
    border: 1.5px solid var(--beige-dark);
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    transition: box-shadow .22s, transform .22s, border-color .2s;
    animation: cardIn .35s ease both;
    position: relative;
    overflow: hidden;
}
.course-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--beige-dark);
    border-radius: 4px 0 0 4px;
    transition: background .2s;
}
.course-card.status-active::before   { background: var(--orange); }
.course-card.status-completed::before { background: #16a34a; }
.course-card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(13,34,68,.12); border-color: rgba(255,131,55,.3); }

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

/* Course thumbnail placeholder */
.course-thumb {
    width: 64px; height: 64px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.4rem;
    color: var(--orange);
}
.course-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

/* Course info */
.course-info { flex: 1; min-width: 0; }
.course-name {
    font-size: .97rem; font-weight: 700;
    color: var(--navy);
    margin-bottom: .3rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.course-meta {
    display: flex; align-items: center; gap: .85rem; flex-wrap: wrap;
    font-size: .78rem; color: var(--muted); margin-bottom: .6rem;
}
.course-meta i { color: var(--orange); margin-right: 3px; font-size: .72rem; }

/* Progress bar */
.progress-wrap { display: flex; align-items: center; gap: .7rem; }
.progress-bar-track {
    flex: 1; height: 6px;
    background: var(--beige-dark);
    border-radius: 3px; overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--orange) 0%, var(--orange-lt) 100%);
    border-radius: 3px;
    transition: width .5s ease;
}
.progress-bar-fill.done { background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%); }
.progress-pct { font-size: .75rem; font-weight: 700; color: var(--navy); min-width: 34px; text-align: right; }

/* Course badge */
.course-badge {
    font-size: .68rem; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; padding: .25rem .65rem; border-radius: 20px;
    align-self: flex-start; white-space: nowrap;
    margin-top: .1rem;
}
.badge-active     { background: rgba(255,131,55,.15); color: var(--orange); border: 1px solid rgba(255,131,55,.3); }
.badge-completed  { background: rgba(22,163,74,.15); color: #16a34a; border: 1px solid rgba(22,163,74,.3); }
.badge-pending    { background: rgba(217,119,6,.15); color: #d97706; border: 1px solid rgba(217,119,6,.3); }

/* ══════════════════════════════════════════════════════════
   PURCHASE TIMELINE
══════════════════════════════════════════════════════════ */
.timeline-list {
    padding: 1.2rem 1.6rem;
    display: flex; flex-direction: column; gap: 0;
    position: relative;
}
.timeline-list::before {
    content: '';
    position: absolute;
    left: 2.5rem; top: 1.2rem; bottom: 1.2rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--orange) 0%, var(--beige-dark) 100%);
}

.tl-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: .7rem 0;
    position: relative;
    animation: cardIn .3s ease both;
}

.tl-dot {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem;
    flex-shrink: 0;
    position: relative; z-index: 1;
    margin-top: .1rem;
}
.tl-dot-paid    { background: rgba(22,163,74,.15); color: #16a34a; border: 2px solid rgba(22,163,74,.4); }
.tl-dot-pending { background: rgba(217,119,6,.15); color: #d97706; border: 2px solid rgba(217,119,6,.35); }
.tl-dot-failed  { background: rgba(220,38,38,.15); color: #dc2626; border: 2px solid rgba(220,38,38,.3); }

.tl-body { flex: 1; min-width: 0; }
.tl-title { font-size: .86rem; font-weight: 600; color: var(--navy); margin-bottom: .15rem; }
.tl-meta  { font-size: .75rem; color: var(--muted); display: flex; gap: .7rem; flex-wrap: wrap; }
.tl-amount { font-weight: 700; color: var(--orange); }

.see-all-link {
    display: inline-flex; align-items: center; gap: .4rem;
    margin: 0 1.6rem 1.2rem;
    font-size: .82rem; font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    transition: color .2s, gap .2s;
}
.see-all-link:hover { color: var(--orange); gap: .65rem; }

/* ══════════════════════════════════════════════════════════
   QUICK LINKS PANEL
══════════════════════════════════════════════════════════ */
.quick-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    padding: .8rem 1.2rem 1.4rem;
}
.ql-card {
    display: flex; flex-direction: column; align-items: center; gap: .55rem;
    padding: 1rem .75rem;
    background: var(--beige);
    border: 1.5px solid var(--beige-dark);
    border-radius: 10px;
    text-decoration: none;
    color: var(--navy);
    font-size: .8rem; font-weight: 600;
    transition: all .2s;
    text-align: center;
}
.ql-card:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,131,55,.12); }
.ql-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    transition: transform .2s;
}
.ql-card:hover .ql-icon { transform: scale(1.1); }

/* ══════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════ */
.ph-toast {
    position: fixed; bottom: 2rem; right: 2rem;
    background: var(--navy); color: #fff;
    padding: .8rem 1.4rem; border-radius: 8px;
    font-size: .88rem; font-weight: 500;
    box-shadow: 0 8px 24px rgba(13,34,68,.25);
    opacity: 0; transform: translateY(12px);
    pointer-events: none;
    transition: opacity .3s, transform .3s;
    z-index: 9999;
}
.ph-toast.show { opacity: 1; transform: translateY(0); }
.ph-toast.error { border-left: 4px solid var(--orange); }

/* ══════════════════════════════════════════════════════════
   AUTH OVERLAY — same as purchasehistory.css
══════════════════════════════════════════════════════════ */
.auth-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10,10,25,.8); backdrop-filter: blur(6px);
    display: none; justify-content: center; align-items: center; z-index: 9999;
}
.auth-modal {
    display: flex; width: 700px; max-width: 90%;
    background: #fff; border-radius: 16px; overflow: hidden;
    animation: slideUp .4s ease;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.auth-left { flex: 1; background: linear-gradient(135deg, #ff6b00, #cc9042); color: white; padding: 30px; }
.auth-right { flex: 1; padding: 30px; }
.auth-right input { width: 100%; padding: 12px; margin: 10px 0; }
.auth-right button { width: 100%; padding: 12px; background: #ff6b00; color: white; border: none; cursor: pointer; border-radius: 6px; }
.error { color: red; font-size: 12px; }
.captcha-box { margin: 10px 0; }
.captcha-row { display: flex; align-items: center; gap: 10px; }
#captchaImage { height: 45px; border-radius: 6px; border: 1px solid #ddd; }
.name-row { display: flex; gap: 10px; }
.name-row input { width: 100%; }
.terms-inline { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 10px; cursor: pointer; }
.terms-inline input { width: 16px; height: 16px; cursor: pointer; }
.back-step-btn { width: auto !important; background: transparent !important; color: var(--navy) !important; border: none !important; font-size: 1.1rem !important; padding: 0 0 .5rem !important; cursor: pointer !important; }

/* ══════════════════════════════════════════════════════════
   FOOTER — exact match to purchasehistory.css
══════════════════════════════════════════════════════════ */
.site-footer {
    background: linear-gradient(to bottom, #f8fafc 0%, #f1f5f9 40%, #114d27 100%) !important;
    color: #fff !important;
    padding: 80px 0 30px !important;
    margin-top: 80px !important;
    border-top: 3px solid #e7e2df !important;
    position: relative !important;
    font-family: var(--font-body) !important;
}
.footer-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr !important;
    gap: 30px !important;
    max-width: 1200px !important;
    margin: 0 auto 40px !important;
    padding: 0 20px !important;
}
.site-footer h3 {
    color: #0b0b45 !important; font-size: 1.2rem !important; font-weight: 600 !important;
    font-family: var(--font-body) !important; text-transform: none !important;
    letter-spacing: normal !important; margin-bottom: 25px !important;
    position: relative !important; padding-bottom: 10px !important;
}
.site-footer h3::after { content: '' !important; position: absolute !important; bottom: 0 !important; left: 0 !important; width: 30px !important; height: 2px !important; background: #ff6b1a !important; }
.footer-brand p { color: #0b0b45 !important; line-height: 1.6 !important; font-size: .95rem !important; margin-bottom: 25px !important; max-width: 350px !important; opacity: 1 !important; }
.footer-links ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.footer-links li { margin-bottom: 12px !important; }
.footer-links a,
.footer-links ul li a { color: #0b0b45 !important; text-decoration: none !important; font-size: .95rem !important; font-weight: 400 !important; transition: color .3s, padding-left .3s !important; }
.footer-links a:hover,
.footer-links ul li a:hover { color: #ff6b1a !important; padding-left: 5px !important; }
.footer-contact p { color: #0b0b45 !important; display: flex !important; align-items: center !important; gap: 10px !important; margin-bottom: 15px !important; font-size: .95rem !important; opacity: 1 !important; }
.footer-contact i { color: #f58220 !important; width: 20px !important; }
.socials { display: flex !important; gap: 15px !important; margin-top: 12px !important; }
.socials a { width: 40px !important; height: 40px !important; background: rgba(11,11,69,.08) !important; color: #0b0b45 !important; display: flex !important; align-items: center !important; justify-content: center !important; border-radius: 50% !important; transition: all .3s ease !important; text-decoration: none !important; padding: 0 !important; font-size: .95rem !important; }
.socials a:hover { background: #ff6b1a !important; transform: translateY(-5px) !important; color: #fff !important; }
.copy { border-top: 1px solid rgba(11,11,69,.1) !important; padding-top: 25px !important; margin-top: 0 !important; text-align: center !important; color: #e2e8f0 !important; font-size: .9rem !important; max-width: 1200px !important; margin-left: auto !important; margin-right: auto !important; padding-left: 20px !important; padding-right: 20px !important; }
.copy p { color: #e2e8f0 !important; opacity: 1 !important; margin: 0 !important; }

/* ── Font Awesome safety rule ── */
.fa, .fas, .far, .fal, .fab, .fa-solid, .fa-regular, .fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .dash-body { grid-template-columns: 1fr; }
    .dash-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 0; }
    .dash-sidebar .dash-panel { margin-bottom: 0; }
}

@media (max-width: 900px) {
    .menu-toggle { display: flex; }
    .main-nav {
        display: none; flex-direction: column; align-items: stretch;
        position: absolute; top: 68px; left: 0; right: 0;
        background: #fff; border-top: 1px solid rgba(0,0,0,.07);
        box-shadow: 0 8px 24px rgba(26,43,86,.1);
        padding: 16px; gap: 4px; z-index: 999;
        max-height: calc(100vh - 68px); overflow-y: auto;
    }
    .main-nav.open { display: flex; }
    .nav-item { width: 100%; }
    .nav-link { width: 100%; border-radius: 7px; justify-content: space-between; padding: 12px 14px; }
    .nav-item.open > .nav-link::after { display: none; }
    .mega-menu { position: static; transform: none !important; border: none; box-shadow: none; display: none; padding: 0; background: #fafafa; border-radius: 6px; }
    .nav-item.open .mega-menu { display: block; opacity: 1 !important; visibility: visible !important; }
    .mega-inner { flex-direction: column; gap: 20px; padding: 16px; }
    .nav-btn-get-started { margin: 12px 0 4px; justify-content: center; width: 100%; }
    #megaBackdrop { display: none !important; }
    .dash-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .dash-hero { padding: 2.5rem 1.2rem 2rem; }
    .dash-hero-inner { flex-direction: column; gap: 2rem; }
    .dash-kpi-grid { grid-template-columns: repeat(2, 1fr); width: 100%; }
    .kpi-card { min-width: auto; }
    .dash-body { padding: 1.5rem 1rem 4rem; }
    .panel-header { flex-direction: column; align-items: flex-start; }
    .panel-controls { width: 100%; }
    .mini-search input { width: 100%; }
    .auth-modal { flex-direction: column; width: 95%; }
    .auth-left { display: none; }
    .logo-img { height: 152px !important; max-height: 170px !important; }
    .footer-grid { grid-template-columns: 1fr !important; text-align: center !important; }
    .footer-contact p { justify-content: center !important; }
    .site-footer h3::after { left: 50% !important; transform: translateX(-50%) !important; }
    .socials { justify-content: center; }
    .timeline-list::before { display: none; }
}

@media (max-width: 480px) {
    .dash-kpi-grid { grid-template-columns: 1fr 1fr; }
    .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
    .course-card { flex-direction: column; }
    .course-thumb { width: 48px; height: 48px; }
}
@media (max-width: 900px) {
    .menu-toggle { display: flex; }
    .main-nav {
        display: none; flex-direction: column; align-items: center;
        position: absolute; top: 68px; left: 0; right: 0;
        background: #fff; border-top: 1px solid rgba(0,0,0,.07);
        box-shadow: 0 8px 24px rgba(26,43,86,.1);
        padding: 16px; gap: 4px; z-index: 999;
        max-height: calc(100vh - 68px); overflow-y: auto;
    }
    .main-nav.open { display: flex; }

    .nav-item {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .nav-link {
        width: 100%;
        border-radius: 7px;
        justify-content: center;
        text-align: center;
        padding: 12px 14px;
    }
    .nav-item.open > .nav-link::after { display: none; }

    .mega-menu { position: static; transform: none !important; border: none; box-shadow: none; display: none; padding: 0; background: #fafafa; border-radius: 6px; }
    .nav-item.open .mega-menu { display: block; opacity: 1 !important; visibility: visible !important; }
    .mega-inner { flex-direction: column; gap: 20px; padding: 16px; align-items: center; text-align: center; }
    .mega-col { align-items: center; text-align: center; }

    .nav-btn-get-started { margin: 12px 0 4px; justify-content: center; width: 100%; }
    #megaBackdrop { display: none !important; }

    /* Cart row — centered like everything else */
    .cart-container {
        justify-content: center !important;
        width: 100%;
        padding: 12px 14px !important;
        margin: 0 !important;
        border-radius: 7px;
    }
    .cart-container a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 0 !important;
    }
    .cart-container a::after {
        
        font-size: 14px;
        font-weight: 300;
        color: #1a2b56;
    }
    #cartCount.cart-badge {
        position: static !important;
        margin-left: 4px !important;
        width: 18px !important; height: 18px !important;
    }

    .profile-wrap { width: 100%; display: flex; justify-content: center; }

    .dash-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    /* ...keep everything else as-is... */

    /* Cart row — icon + label centered, badge anchored to the icon like a proper notification dot */
    .cart-container {
        justify-content: center !important;
        width: 100%;
        padding: 12px 14px !important;
        margin: 0 !important;
        border-radius: 7px;
    }
    .cart-container a {
        display: inline-flex !important;
        align-items: center;
        gap: 10px;
        padding: 0 !important;
        position: relative !important;
    }
    .cart-container a::after {
       
        font-size: 14px;
        font-weight: 300;
        color: #1a2b56;
    }
    #cartCount.cart-badge {
        position: absolute !important;
        top: -9px !important;
        left: 16px !important;
        margin-left: 0 !important;
        width: 16px !important; height: 16px !important;
    }

    /* Profile icon — centered like the rest of the menu */
    .profile-wrap {
        width: 100%;
        align-items: center;
        display: flex;
        justify-content: center;
        padding: 8px 0;
    }
}
@media (max-width: 900px) {
    

    #mainNav .profile-wrap {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 8px 0 !important;
        margin: 0 !important;
    }
}
#cartCount.cart-badge {
    position: absolute !important; top: -8px !important; right: -4px !important;
    background: red; color: #fff !important;
    font-size: 10px !important; font-weight: 700 !important;
    width: 16px !important; height: 16px !important; border-radius: 50% !important;
    align-items: center !important; justify-content: center !important;
    line-height: 16px !important; text-align: center !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.3) !important;
    z-index: 10 !important; pointer-events: none !important;
    display: none !important;
}
#cartCount.cart-badge.show {
    display: flex !important;
}
.course-card {
    /* ...existing rules stay... */
    align-items: center;   /* was flex-start — center-align price vertically now */
}

.course-price {
    flex-shrink: 0;
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.02em;
    display: flex;
    align-items: baseline;
    gap: 2px;
    padding-left: 1rem;
    margin-left: auto;
}
.price-currency {
    font-size: 1rem;
    font-weight: 700;
    color: var(--orange);
}
@media (max-width: 480px) {
    .course-card { flex-direction: column; }
}
@media (max-width: 480px) {
    .course-price {
        margin-left: 0;
        padding-left: 0;
        padding-top: .5rem;
        align-self: flex-start;
    }
}
.pd-dashboard-btn {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: .7rem 1rem;
    padding: .65rem .9rem;
    background: linear-gradient(135deg, var(--pd-orange) 0%, var(--pd-orange-dark) 100%);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 3px 10px rgba(244,123,32,.25);
}
.pd-dashboard-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(244,123,32,.35);
}
.pd-dashboard-btn svg {
    flex-shrink: 0;
    opacity: .95;
}.pd-dashboard-btn {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: .7rem 1rem;
    padding: .65rem .9rem;
    background: linear-gradient(135deg, var(--pd-orange) 0%, var(--pd-orange-dark) 100%);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 3px 10px rgba(244,123,32,.25);
}
.pd-dashboard-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(244,123,32,.35);
}
.pd-dashboard-btn svg {
    flex-shrink: 0;
    opacity: .95;
}
.main-nav .nav-item .mega-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.main-nav .nav-item.open .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
/* ==========================================================================
   FOOTER — FINAL MOBILE RESPONSIVENESS (put at end of stylesheet)
   ========================================================================== */
@media (max-width: 768px) {

  .site-footer {
    padding: 40px 0 20px !important;
    margin-top: 40px !important;
  }

  .site-footer .container {
    padding: 0 20px !important;
  }

  /* Stack everything into a single column */
  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 32px !important;
    text-align: center !important;
    margin-bottom: 20px !important;
  }

  /* Brand block */
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand .logo-img {
    max-height: 90px;
    margin: 0 auto 16px;
  }

  .footer-brand p {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9rem;
  }

  .footer-brand .socials {
    justify-content: center;
  }

  /* Links columns */
  .footer-links {
    text-align: center;
  }

  .footer-links h3 {
    margin-bottom: 14px;
    font-size: 1.05rem;
  }

  .footer-links h3::after {
    left: 50% !important;
    transform: translateX(-50%);
  }

  .footer-links ul {
    padding: 0;
  }

  .footer-links li {
    margin-bottom: 10px;
  }

  /* Contact block */
  .footer-contact {
    text-align: center;
  }

  .footer-contact p {
    justify-content: center;
    font-size: 0.9rem;
  }

  /* Bottom copyright bar */
  .copy {
    margin-top: 24px;
    padding-top: 18px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .footer-brand p,
  .footer-contact p,
  .footer-links a {
    font-size: 0.85rem;
  }

  .footer-links h3 {
    font-size: 1rem;
  }

  .site-footer {
    padding: 32px 0 16px !important;
  }
}
/* Multiline address — icon pins to top, text indents correctly */
.footer-contact p:has(span) {
  align-items: flex-start;
}

.footer-contact p span {
  line-height: 1.6;
}
/* ══════════════════════════════════════════════════════════
   PROFILE PANEL
══════════════════════════════════════════════════════════ */
.profile-edit-btn {
    width: 34px; height: 34px;
    border-radius: 8px;
    border: 1.5px solid var(--beige-dark);
    background: var(--beige);
    color: var(--navy);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .2s, color .2s, transform .2s;
}
.profile-edit-btn:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-1px); }

.profile-details { padding: 1rem 1.6rem 1.4rem; display: flex; flex-direction: column; gap: 1rem; }

.pdet-row { display: flex; align-items: flex-start; gap: .9rem; }
.pdet-row i { color: var(--orange); font-size: .95rem; width: 18px; margin-top: 3px; flex-shrink: 0; }
.pdet-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .15rem; }
.pdet-value { font-size: .9rem; font-weight: 600; color: var(--navy); word-break: break-word; }

/* ══════════════════════════════════════════════════════════
   PROFILE EDIT MODAL — Navy / Orange / Beige (dashboard scope)
══════════════════════════════════════════════════════════ */
.profile-overlay {
    position: fixed; inset: 0;
    background: rgba(13,34,68,.55);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; padding: 20px;
}
.profile-modal {
    position: relative; background: #fff;
    width: 100%; max-width: 460px;
    border-radius: 18px; overflow: visible;
    box-shadow: 0 24px 60px rgba(13,34,68,.35);
}
.profile-modal-accent { height: 6px; width: 100%; background: linear-gradient(90deg, var(--navy) 0%, var(--orange) 100%); }
.profile-modal-header { background: var(--navy); padding: 26px 32px 22px; text-align: center; color: #fff; border-radius: 0; }
.profile-modal-icon {
    width: 52px; height: 52px; background: var(--orange); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
    font-size: 1.2rem; color: #fff;
}
.profile-modal-header h3 { margin: 0 0 4px; font-size: 1.2rem; font-weight: 700; font-family: var(--font-body); }
.profile-modal-header p { margin: 0; font-size: .85rem; color: rgba(255,255,255,.65); }
.profile-modal-body { padding: 24px 28px 26px; background: var(--beige); border-radius: 0 0 18px 18px; }

.profile-field { margin-bottom: 15px; flex: 1; }
.profile-field-row { display: flex; gap: 12px; }
.profile-field label { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.profile-field label i { color: var(--orange); font-size: .78rem; width: 14px; }
.profile-optional-tag { margin-left: auto; font-size: .66rem; font-weight: 500; color: var(--muted); text-transform: uppercase; }

.profile-field input {
    width: 100%; box-sizing: border-box; padding: 11px 13px;
    border-radius: 10px; border: 1.5px solid var(--beige-dark);
    background: #fff; font-size: .9rem; font-family: var(--font-body);
    color: var(--navy); transition: border-color .2s, box-shadow .2s;
}
.profile-field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,131,55,.15); }

.profile-error { min-height: 16px; color: #dc2626; font-size: .8rem; font-weight: 500; margin: 2px 0 10px; }

.profile-modal-btn-row { display: flex; gap: 10px; }
.profile-cancel-btn {
    flex: 1; background: #fff; color: var(--navy); border: 1.5px solid var(--beige-dark);
    padding: 12px; border-radius: 10px; font-size: .9rem; font-weight: 600; cursor: pointer;
    transition: border-color .2s;
}
.profile-cancel-btn:hover { border-color: var(--navy); }
.profile-save-btn {
    flex: 2; background: var(--orange); color: #fff; border: none;
    padding: 12px; border-radius: 10px; font-size: .9rem; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background .2s, transform .15s;
}
.profile-save-btn:hover:not(:disabled) { background: var(--orange-lt); transform: translateY(-1px); }
.profile-save-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Phone / country dropdown (shared component) ── */
.phone-input-group { display: flex; gap: 8px; }
.country-code-select { position: relative; flex-shrink: 0; }
.country-full-select { width: 100%; }
.country-code-btn {
    display: flex; align-items: center; gap: 8px; padding: 11px 12px;
    border-radius: 10px; border: 1.5px solid var(--beige-dark); background: #fff;
    font-size: .9rem; font-family: var(--font-body); color: var(--navy);
    cursor: pointer; white-space: nowrap; transition: border-color .2s, box-shadow .2s;
}
.country-full-btn { width: 100%; justify-content: flex-start; }
.country-full-btn span:last-of-type { margin-left: auto; }
.country-code-btn:hover { border-color: var(--orange); }
.country-code-select.open .country-code-btn { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,131,55,.15); }
.country-code-btn i { font-size: .68rem; color: var(--muted); transition: transform .2s; }
.country-code-select.open .country-code-btn i { transform: rotate(180deg); }
#dashSelectedCountryName { color: var(--navy); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
#dashSelectedCountryName.placeholder-text { color: #b0a89c; font-weight: 400; }

.country-dropdown-panel {
    display: none; position: absolute; top: calc(100% + 6px); left: 0;
    width: 260px; max-width: 90vw; background: #fff; border-radius: 12px;
    box-shadow: 0 12px 32px rgba(13,34,68,.22); border: 1px solid var(--beige-dark);
    z-index: 99999; overflow: hidden;
}
.country-full-select .country-dropdown-panel { width: 100%; }
.country-code-select.open .country-dropdown-panel { display: block; }
.country-dropdown-panel.panel-detached { position: fixed !important; top: auto; left: auto; }

.country-dropdown-search {
    width: 100%; box-sizing: border-box; padding: 10px 14px; border: none;
    border-bottom: 1.5px solid var(--beige); font-size: .86rem; font-family: var(--font-body);
    color: var(--navy); outline: none; background: #fafaf8;
}
.country-dropdown-list { max-height: 220px; overflow-y: auto; }
.country-dropdown-list::-webkit-scrollbar { width: 6px; }
.country-dropdown-list::-webkit-scrollbar-thumb { background: var(--beige-dark); border-radius: 4px; }
.country-option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; font-size: .86rem; color: var(--navy); transition: background .12s; }
.country-option:hover { background: #fff3e8; }
.country-option .flag-emoji { font-size: 1.05rem; flex-shrink: 0; }
.country-option .country-option-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.country-option .country-option-dial { color: var(--muted); font-size: .78rem; flex-shrink: 0; }

@media (max-width: 480px) {
    .phone-input-group { flex-direction: column; }
    .profile-field-row { flex-direction: column; gap: 0; }
}
/* ══════════════════════════════════════════════════════════
   PROFILE PANEL — redesigned card layout
══════════════════════════════════════════════════════════ */
.profile-edit-btn {
    width: 34px; height: 34px;
    border-radius: 8px;
    border: 1.5px solid var(--beige-dark);
    background: var(--beige);
    color: var(--navy);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .2s, color .2s, transform .2s;
}
.profile-edit-btn:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-1px) rotate(-6deg); }

.profile-card-body { padding: 1.3rem 1.4rem 1.5rem; }

/* ── Identity header ── */
.profile-identity {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 1.5px dashed var(--beige-dark);
}
.profile-avatar {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--orange);
    font-size: 1.3rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(13,34,68,.22);
}
.profile-identity-text { flex: 1; min-width: 0; }
.profile-identity-name {
    font-family: var(--font-head);
    font-size: 1.08rem; font-weight: 700; color: var(--navy);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profile-identity-email {
    font-size: .8rem; color: var(--muted); margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Completeness ring ── */
.profile-completeness { position: relative; width: 46px; height: 46px; flex-shrink: 0; }
.pc-ring { width: 46px; height: 46px; transform: rotate(-90deg); }
.pc-ring-bg { fill: none; stroke: var(--beige-dark); stroke-width: 3.5; }
.pc-ring-fill {
    fill: none; stroke: var(--orange); stroke-width: 3.5; stroke-linecap: round;
    stroke-dasharray: 100 100; stroke-dashoffset: 100;
    transition: stroke-dashoffset .6s ease;
}
.profile-completeness span {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: .62rem; font-weight: 800; color: var(--navy);
}

/* ── Detail tiles grid ── */
.pdet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
}
.pdet-tile-wide { grid-column: 1 / -1; }

.pdet-tile {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .8rem .85rem;
    background: var(--beige);
    border: 1.5px solid var(--beige-dark);
    border-radius: 12px;
    position: relative;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.pdet-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(13,34,68,.08); border-color: rgba(255,131,55,.35); }

.pdet-tile-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,131,55,.14);
    color: var(--orange);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
}
.pdet-tile-icon-linkedin { background: rgba(10,102,194,.12); color: #0a66c2; }

.pdet-tile-text { min-width: 0; flex: 1; }
.pdet-tile-label {
    font-size: .64rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--muted); margin-bottom: 2px;
}
.pdet-tile-value {
    font-size: .87rem; font-weight: 700; color: var(--navy);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Unfilled state — dimmed, dashed border cue */
.pdet-tile[data-filled="false"] { border-style: dashed; }
.pdet-tile[data-filled="false"] .pdet-tile-value { color:#0b0b45; font-weight: 500; font-style: italic; }
.pdet-tile[data-filled="false"] .pdet-tile-icon { opacity: .55; }

.pdet-tile-link-icon {
    position: absolute; top: .7rem; right: .8rem;
    font-size: .68rem; color: #0a66c2; opacity: .7;
}

@media (max-width: 480px) {
    .pdet-grid { grid-template-columns: 1fr; }
}
/* ══════════════════════════════════════════════════════════
   PROFILE PANEL — narrower width
══════════════════════════════════════════════════════════ */
.dash-panel.panel-profile {
    max-width: 1220px;      /* narrower than the 380px sidebar column */
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
  .logo-img {
  
    margin-left: -65px !important;
  }
}
.error-message,
.captcha-error {
  color: #e53935;
  font-size: clamp(0.72rem, 2.5vw, 0.85rem);
  line-height: 1.4;
  margin-top: 4px;
  margin-bottom: 6px;
  display: block;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* Extra breathing room fix on very small phones */
@media (max-width: 380px) {
  .error-message,
  .captcha-error {
    font-size: 0.7rem;
    margin-top: 2px;
    margin-bottom: 4px;
  }
}
/* ══════════════════════════════════════════════════════════
   AUTH OVERLAY — realigned, taller, better spacing
══════════════════════════════════════════════════════════ */
.auth-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10,10,25,.8); backdrop-filter: blur(6px);
    display: none; justify-content: center; align-items: center; z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.auth-modal {
    display: flex;
    width: 760px;
    max-width: 95%;
    min-height: 560px;          /* ← taller modal */
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    animation: slideUp .4s ease;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #ff6b00, #cc9042);
    color: #fff;
    padding: 40px 34px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;    /* vertically centers content now that modal is taller */
}
.auth-left h2 { font-size: 1.5rem; line-height: 1.3; margin-bottom: 10px; }
.auth-left .tagline { font-size: .95rem; opacity: .9; margin-bottom: 28px; }
.auth-benefits { display: flex; flex-direction: column; gap: 18px; }
.auth-benefits p { font-size: .85rem; line-height: 1.5; }
.auth-benefits p b { display: block; margin-bottom: 3px; font-size: .92rem; }

.auth-right {
    flex: 1;
    padding: 40px 36px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}
.auth-right h3 { font-size: 1.25rem; color: var(--navy, #163366); margin-bottom: 6px; }
.auth-right .welcome-msg { font-size: .85rem; color: #6b7280; margin-bottom: 14px; min-height: 18px; }

/* consistent field spacing, box-sizing fixed so nothing overflows */
.auth-right input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    margin: 8px 0;
    border: 1.5px solid #e5e0d5;
    border-radius: 8px;
    font-size: .92rem;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.auth-right input:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 0 3px rgba(255,107,0,.12);
}

.name-row { display: flex; gap: 10px; margin: 8px 0 0; }
.name-row input { margin: 0; width: 100%; box-sizing: border-box; }

.captcha-box { margin: 14px 0; }
.captcha-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
#captchaImage { height: 45px; border-radius: 6px; border: 1px solid #ddd; }
.captcha-row button { width: auto; padding: 8px 12px; }

.terms-inline { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 14px 0; cursor: pointer; }
.terms-inline input { width: 16px; height: 16px; margin: 0; cursor: pointer; }

.auth-right button {
    width: 100%;
    box-sizing: border-box;
    padding: 13px;
    background: #ff6b00;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    margin-top: 8px;
    transition: background .2s, transform .15s;
}
.auth-right button:hover { background: #e85f00; transform: translateY(-1px); }

.error, .error-message, .captcha-error { color: #e53935; font-size: 12px; margin-top: 4px; }
.success-msg { color: #16a34a; font-size: .8rem; margin-top: 6px; }
.resend-text { font-size: .82rem; color: #6b7280; margin-top: 12px; }
.link-btn { background: none; border: none; color: #ff6b00; font-weight: 600; cursor: pointer; padding: 0; }

.back-step-btn {
    width: auto !important;
    background: transparent !important;
    color: var(--navy, #163366) !important;
    border: none !important;
    font-size: 1.1rem !important;
    padding: 0 0 .5rem !important;
    cursor: pointer !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .auth-overlay { padding: 12px; }
    .auth-modal {
        flex-direction: column;
        width: 100%;
        max-width: 440px;
        min-height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    .auth-left { display: none; }
    .auth-right { padding: 30px 24px; }
}

@media (max-width: 480px) {
    .auth-overlay { padding: 8px; align-items: flex-end; }
    .auth-modal {
        border-radius: 16px 16px 0 0;
        max-height: 92vh;
        animation: slideUpMobile .35s ease;
    }
    .auth-right { padding: 24px 18px 28px; }
    .name-row { flex-direction: column; gap: 0; }
    .auth-right input { padding: 11px 12px; }
}
@keyframes slideUpMobile { from { transform: translateY(100%); } to { transform: translateY(0); } }
/* ══════════════════════════════════════════════════════════
   AUTH MODAL — extra content blocks (matches contact page)
══════════════════════════════════════════════════════════ */
.auth-modal {
    max-height: 88vh;
    overflow: hidden;
}
.auth-left {
    overflow-y: auto;
    padding: 36px 32px;
    box-sizing: border-box;
}
.auth-left::-webkit-scrollbar { width: 5px; }
.auth-left::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 4px; }

.auth-right {
    overflow-y: auto;
    padding: 36px 34px;
    box-sizing: border-box;
}
.auth-right::-webkit-scrollbar { width: 5px; }
.auth-right::-webkit-scrollbar-thumb { background: var(--beige-dark); border-radius: 4px; }

.auth-note {
    margin-top: 20px;
    padding: 12px 14px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 10px;
}
.auth-note p { font-size: .8rem; line-height: 1.4; margin: 0; }

.terms-box {
    margin: 16px 0;
    padding: 14px 16px;
    background: var(--beige-card);
    border: 1.5px solid var(--beige-dark);
    border-radius: 10px;
}
.terms-box p {
    font-size: .8rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}
.terms-box ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.terms-box li { font-size: .78rem; line-height: 1.45; color: var(--muted); }

.resend-text { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.link-btn { background: none; border: none; color: var(--orange); font-weight: 600; cursor: pointer; padding: 0; }

/* plain spam-folder note under resend */
#step2 > p:not([class]):not([id]) {
    font-size: .76rem;
    color: #9ca3af;
    margin-top: 8px;
    line-height: 1.4;
}

/* ── Responsive: keep the taller content usable on small screens ── */
@media (max-width: 768px) {
    .auth-left {
        max-height: 200px;
        padding: 22px 24px;
    }
    .auth-left .auth-benefits { gap: 12px; }
    .auth-left h2 { font-size: 1.2rem; }
    .auth-right { padding: 26px 24px; max-height: none; }
}

@media (max-width: 480px) {
    .terms-box { padding: 12px 14px; }
    .terms-box li { font-size: .75rem; }
}

@media (max-width: 768px) {
  .footer-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* The anchor wrapper — kill the fixed 220px height, let it hug the image */
  .footer-brand .footer-logo {
    height: auto !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 12px !important;
  }

  /* The actual logo image */
  .footer-brand .logo-img {
    height: auto !important;
    max-height: 120px !important;
    width: auto !important;
    margin: 0 !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .footer-brand .logo-img {
    max-height: 120px !important;
  }
}
@media (max-width: 600px) {
    /* Stack thumb + info vertically on very small phones */
    .course-card {
        flex-direction: column;
        gap: .85rem;
    }

    /* Left accent bar shifts to top on vertical layout */
    .course-card::before {
        width: 100%;
        height: 4px;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        border-radius: 4px 4px 0 0;
    }

    .course-thumb {
        width: 48px;
        height: 48px;
    }

    .course-name {
        font-size: .92rem;
    }

    .course-meta {
        font-size: .74rem;
    }
}

/* ==========================================================================
   MOBILE HEADER — LOGGED-IN LAYOUT
   hamburger (far left) / logo (center) / cart + bell (far right)
   Scoped to mobile + logged-in only — desktop and logged-out mobile untouched.
   ========================================================================== */

.mobile-topbar-actions {
  display: none; /* hidden everywhere except mobile + logged-in */
}

@media (max-width: 900px) {

  body.user-logged-in .header-inner {
    position: relative !important;
    justify-content: space-between !important;
  }

  /* 1. Hamburger -> far left */
  body.user-logged-in .menu-toggle {
    position: static !important;
    order: -2 !important;
  }

  /* 2. Logo -> center (shifted slightly left to sit visually balanced
        between the hamburger and the cart/bell icons) */
  body.user-logged-in .logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(calc(-50% - 20px), -50%) !important;
    margin: 0 !important;
  }

  /* Hide the cart icon that normally sits inside the hamburger dropdown —
     it now lives permanently in the top bar instead */
  body.user-logged-in .main-nav .cart-container {
    display: none !important;
  }

  /* 3 & 4. Cart + Bell -> far right, where the hamburger's X used to sit */
  body.user-logged-in .mobile-topbar-actions {
    display: flex !important;
    align-items: center;
    gap: 16px;
    order: 2 !important;
    margin-left: auto !important;
  }

  .mobile-cart-btn,
  .mobile-bell-btn {
    position: relative;
   
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: #1a2b56;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
  }

  .mobile-cart-btn .cart-badge,
  .mobile-bell-btn .cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    background: red;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
  }

body.user-logged-in .logo {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(calc(-50% + 20px), -50%) !important;  /* + instead of - */
  margin: 0 !important;
}
.mobile-cart-btn .cart-badge,
.mobile-bell-btn .cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 50%;
  background: red;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;           /* remove conflicting line-height */
            /* use flex for both axes */
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}
}
/* ================= DESKTOP BELL ICON (beside cart) ================= */
.bell-container {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bell-container i {
  font-size: 22px; /* increased from inherited nav size */
  color: #1a2b56;
  transition: color 0.2s ease, transform 0.2s ease;
}

.bell-container:hover i {
  color: #f58220;
  transform: scale(1.08);
}

/* Hide desktop bell on mobile — mobile already has its own bell in .mobile-topbar-actions */
@media (max-width: 768px) {
  .bell-container {
    display: none !important;
  }
}
/* ================= TOAST NOTIFICATION (missing on this page) ================= */
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
  z-index: 9999;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
/* ═══════════════════════════════════════════════════════════
   dashboard-v2.css
   Additive-only overrides on top of candidate_dashboard.css.
   Nothing here touches header/footer selectors.
═══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════
   1. ANNOUNCEMENT SLIDER — half-height version of the homepage
      hero slider, same 1300px column as the rest of the page.
══════════════════════════════════════════════════════════ */
.dash-slider-section{
    max-width:1300px;
    margin:1.5rem auto 0;
    padding:0 2rem;
}
.dash-slider-inner{
    position:relative;
    width:100%;
    height:210px;
    border-radius:16px;
    overflow:hidden;
    background:linear-gradient(135deg,var(--beige-dark) 0%,var(--beige) 100%);
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    transition:background-image .6s ease;
    box-shadow:var(--shadow);
}
.dash-slider-overlay{
    position:absolute; inset:0;
    background:linear-gradient(90deg, rgba(13,34,68,.55) 0%, rgba(13,34,68,.15) 60%, transparent 100%);
    pointer-events:none;
}
.dash-slider-content{
    position:relative; z-index:2;
    height:100%;
    display:flex; flex-direction:column; justify-content:center;
    padding:1.6rem 2.2rem;
    max-width:640px;
}
.dash-slider-content h2{
    font-family:var(--font-head);
    color:#fff;
    font-size:clamp(1.15rem,2.4vw,1.6rem);
    font-weight:700;
    margin-bottom:.5rem;
    text-shadow:0 2px 10px rgba(0,0,0,.35);
    line-height:1.25;
}
.dash-slider-content p{
    color:rgba(255,255,255,.92);
    font-size:.9rem;
    line-height:1.5;
    text-shadow:0 1px 6px rgba(0,0,0,.3);
}

@media (max-width:768px){
    .dash-slider-section{ padding:0 1rem; margin-top:1rem; }
    .dash-slider-inner{ height:160px; border-radius:12px; }
    .dash-slider-content{ padding:1.1rem 1.3rem; }
}

/* ══════════════════════════════════════════════════════════
   2. GREETING HERO — re-themed from navy gradient to a light
      navy/beige/white treatment consistent with the rest of
      the page, same 1300px width as the slider above it.
══════════════════════════════════════════════════════════ */
.dash-hero{
    max-width:1300px;
    margin:1.5rem auto 0 !important;
    padding:2.4rem 2rem !important;
    border-radius:16px;
    background:linear-gradient(135deg,#ffffff 0%,var(--beige) 55%,var(--beige-dark) 100%) !important;
    box-shadow:var(--shadow);
}
.dash-hero::before{
    background:radial-gradient(circle, rgba(255,131,55,.14) 0%, transparent 70%) !important;
}
.dash-hero::after{
    background:radial-gradient(circle, rgba(13,34,68,.07) 0%, transparent 70%) !important;
}

.dash-welcome{ color:var(--navy) !important; }
.dash-welcome span{ color:var(--orange) !important; }
.dash-sub{ color:var(--muted) !important; }

.dash-greeting-tag{
    background:rgba(255,131,55,.12) !important;
    border-color:rgba(255,131,55,.32) !important;
    color:var(--orange) !important;
}

.dqa-ghost{
    background:rgba(13,34,68,.06) !important;
    color:var(--navy) !important;
    border:1px solid rgba(13,34,68,.18) !important;
}
.dqa-ghost:hover{
    background:rgba(13,34,68,.12) !important;
}

.kpi-navy{
    background:rgba(13,34,68,.06) !important;
    border:1px solid rgba(13,34,68,.14) !important;
}
.kpi-navy .kpi-icon{ color:var(--navy) !important; }
.kpi-label{ color:var(--muted) !important; }
.kpi-val{ color:var(--navy) !important; }
.kpi-card{ backdrop-filter:none !important; }

/* Enrolled KPI card doubles as a jump-link to #enrolledSection (wired in dashboard-v2.js) */
.kpi-orange{ cursor:pointer; }
.kpi-orange:hover{ box-shadow:0 12px 30px rgba(255,131,55,.28); }

@media (max-width:768px){
    .dash-hero{ padding:1.8rem 1.2rem !important; margin-top:1rem !important; }
}

/* ══════════════════════════════════════════════════════════
   3. PAIRED SECTION GRID
   Row 1: My Projects  | My Profile
   Row 2: Search All    | Purchase Timeline
   Row 3: Quick Links (full width)
   Uses grid-template-areas so the visual order is independent
   of DOM order — no HTML changes needed.
══════════════════════════════════════════════════════════ */
.dash-body{
    max-width:1300px !important;
}
.dash-equal-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-areas:
        "courses  profile"
        "browse   timeline"
        "quick    quick";
    gap:2rem;
    align-items:stretch;   /* rows line up neatly, no ragged bottoms */
}
.dash-equal-grid .dash-panel{
    margin-bottom:0 !important;
    width:100%;
    display:flex;
    flex-direction:column;
}

.panel-courses  { grid-area: courses;  border-top:3px solid var(--navy); }
.panel-profile  { grid-area: profile; }
.panel-browse   { grid-area: browse;   border-top:3px solid var(--orange); }
.panel-timeline { grid-area: timeline; }
.panel-quick    { grid-area: quick; }

/* Let course-list / timeline-list / profile body fill remaining
   height so paired panels match visually even with different
   content lengths — no empty gap at the bottom of the shorter one */
.dash-equal-grid .course-list,
.dash-equal-grid .timeline-list,
.dash-equal-grid .profile-card-body{
    flex:1;
}

@media (max-width:900px){
    .dash-equal-grid{
        grid-template-columns:1fr;
        grid-template-areas:
            "courses"
            "profile"
            "browse"
            "timeline"
            "quick";
    }
}
/* ══════════════════════════════════════════════════════════
   4. SEARCH ALL PROJECTS — richer metadata row + tidy layout
══════════════════════════════════════════════════════════ */
.panel-browse .course-card{
    flex-wrap:wrap;
}
.panel-browse .course-meta{
    row-gap:.4rem;
}
.browse-badges{
    display:flex;
    align-items:center;
    gap:.5rem;
    flex-wrap:wrap;
    margin-top:.3rem;
}
.browse-badge{
    display:inline-flex;
    align-items:center;
    gap:.3rem;
    font-size:.7rem;
    font-weight:700;
    padding:.2rem .55rem;
    border-radius:20px;
    white-space:nowrap;
}
.browse-badge-level{
    background:rgba(13,34,68,.08);
    color:var(--navy);
    border:1px solid rgba(13,34,68,.16);
}
.browse-badge-level.level-beginner     { background:#e0f2fe; color:#0369a1; border-color:#bae6fd; }
.browse-badge-level.level-intermediate { background:#fef3c7; color:#b45309; border-color:#fde68a; }
.browse-badge-level.level-advanced,
.browse-badge-level.level-working      { background:var(--navy); color:#fff; border-color:var(--navy); }

.browse-badge-rating{
    background:#fef9c3;
    color:#854d0e;
    border:1px solid #fde68a;
}
.browse-badge-seats{
    background:rgba(220,38,38,.08);
    color:#dc2626;
    border:1px solid rgba(220,38,38,.2);
}
.browse-badge-seats.seats-high{
    background:rgba(22,163,74,.08);
    color:#16a34a;
    border-color:rgba(22,163,74,.2);
}
.browse-badge-training{
    background:rgba(255,131,55,.10);
    color:var(--orange);
    border:1px solid rgba(255,131,55,.25);
}
.dash-slider-inner{
    position:relative;
    width:100%;
    height:340px;              /* was 210px */
    border-radius:16px;
    overflow:hidden;
    background:linear-gradient(135deg,var(--beige-dark) 0%,var(--beige) 100%);
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    transition:background-image .6s ease;
    box-shadow:var(--shadow);
}
@media (max-width:768px){
    .dash-slider-section{ padding:0 1rem; margin-top:1rem; }
    .dash-slider-inner{ height:220px; border-radius:12px; }   /* was 160px */
    .dash-slider-content{ padding:1.1rem 1.3rem; }
}
/* ══════════════════════════════════════════════════════════
   5. WIDER DASHBOARD BODY + 2-UP BROWSE GRID
══════════════════════════════════════════════════════════ */

/* Widen the whole grid (courses/profile row + browse/timeline row + quick links) */
.dash-body{
    max-width:1500px !important;   /* was 1300px — matches header-inner width */
}
.dash-slider-section,
.dash-hero{
    max-width:1500px;              /* keep slider + hero visually aligned with the wider body */
}

.dash-equal-grid{
    gap:2.2rem;                    /* slightly more breathing room at the new width */
}

/* ── Search All Projects: 2 course cards per row ── */
.panel-browse .course-list{
    display:grid !important;
    grid-template-columns:repeat(2, 1fr);
    gap:1rem 1.2rem;
    align-items:stretch;
}
.panel-browse .course-card{
    flex-direction:column;
    align-items:flex-start;
}
.panel-browse .course-thumb{
    width:100%;
    height:130px;
}
.panel-browse .course-price{
    margin-left:0;
    padding-left:0;
    padding-top:.6rem;
    align-self:flex-start;
}

/* Collapse back to 1 column on narrower screens, same breakpoint the rest of the grid uses */
@media (max-width:900px){
    .panel-browse .course-list{
        grid-template-columns:1fr;
    }
    .panel-browse .course-card{
        flex-direction:row;
        align-items:center;
    }
    .panel-browse .course-thumb{
        width:64px;
        height:64px;
    }
}
/* ══════════════════════════════════════════════════════════
   6. FULL-WIDTH SECTIONS — match slider/hero width, single column
══════════════════════════════════════════════════════════ */

/* Stack every panel full-width instead of the 2-column pairing */
.dash-equal-grid{
    grid-template-columns:1fr !important;
    grid-template-areas:
        "courses"
        "profile"
        "browse"
        "timeline"
        "quick" !important;
    gap:2rem;
}

/* Remove the old fixed cap on the profile panel so it stretches full width too */
.dash-panel.panel-profile{
    max-width:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
}

/* Browse grid can now afford more columns since the panel is full width */
.panel-browse .course-list{
    grid-template-columns:repeat(3, 1fr);
}

@media (max-width:1200px){
    .panel-browse .course-list{
        grid-template-columns:repeat(2, 1fr);
    }
}
@media (max-width:900px){
    .panel-browse .course-list{
        grid-template-columns:1fr;
    }
    .panel-browse .course-card{
        flex-direction:row;
        align-items:center;
    }
    .panel-browse .course-thumb{
        width:64px;
        height:64px;
    }
}

/* ══════════════════════════════════════════════════════════
   7. FINAL LAYOUT — 1300px column, paired rows
   Row 1: My Projects (left) | My Profile (right)
   Row 2: Search All Projects (full width)
   Row 3: Purchase Timeline (left) | Quick Links (right)
══════════════════════════════════════════════════════════ */

.dash-body{
    max-width:1300px !important;   /* matches slider + hero width */
}
.dash-slider-section,
.dash-hero{
    max-width:1300px;
}

.dash-equal-grid{
    grid-template-columns:1fr 1fr !important;
    grid-template-areas:
        "courses  profile"
        "browse   browse"
        "timeline quick" !important;
    gap:2rem;
}

/* Undo the full-width single-column override from before, if still present */
.dash-panel.panel-profile{
    max-width:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
}

/* Search All Projects spans both columns — give it a few more cards per row since it's full width */
.panel-browse .course-list{
    grid-template-columns:repeat(3, 1fr);
}

@media (max-width:1200px){
    .panel-browse .course-list{
        grid-template-columns:repeat(2, 1fr);
    }
}

/* Collapse to single column stack on smaller screens */
@media (max-width:900px){
    .dash-equal-grid{
        grid-template-columns:1fr !important;
        grid-template-areas:
            "courses"
            "profile"
            "browse"
            "timeline"
            "quick" !important;
    }
    .panel-browse .course-list{
        grid-template-columns:1fr;
    }
    .panel-browse .course-card{
        flex-direction:row;
        align-items:center;
    }
    .panel-browse .course-thumb{
        width:64px;
        height:64px;
    }
}
/* ══════════════════════════════════════════════════════════
   7. FINAL LAYOUT — 1300px column, paired rows
══════════════════════════════════════════════════════════ */

.dash-body{
    max-width: 1300px !important;
}
.dash-slider-section,
.dash-hero{
    max-width: 1300px !important;
}

.dash-equal-grid{
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas:
        "courses  profile"
        "browse   browse"
        "timeline quick" !important;
    gap: 2rem !important;
}

.panel-courses  { grid-area: courses !important; }
.panel-profile  { grid-area: profile !important; }
.panel-browse   { grid-area: browse !important; }
.panel-timeline { grid-area: timeline !important; }
.panel-quick    { grid-area: quick !important; }

.dash-panel.panel-profile{
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.panel-browse .course-list{
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem 1.2rem !important;
}
.panel-browse .course-card{
    flex-direction: column !important;
    align-items: flex-start !important;
}
.panel-browse .course-thumb{
    width: 100% !important;
    height: 130px !important;
}
.panel-browse .course-price{
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-top: .6rem !important;
    align-self: flex-start !important;
}

@media (max-width:1200px){
    .panel-browse .course-list{
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width:900px){
    .dash-equal-grid{
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "courses"
            "profile"
            "browse"
            "timeline"
            "quick" !important;
    }
    .panel-browse .course-list{
        grid-template-columns: 1fr !important;
    }
    .panel-browse .course-card{
        flex-direction: row !important;
        align-items: center !important;
    }
    .panel-browse .course-thumb{
        width: 64px !important;
        height: 64px !important;
    }
}
/* ══════════════════════════════════════════════════════════
   8. FIX PARENT CONTAINER — .dash-body was still a 2-column
   grid (1fr 380px) from the old sidebar layout, leaving 380px
   of dead space and shrinking .dash-equal-grid inside it.
══════════════════════════════════════════════════════════ */
.dash-body{
    display:block !important;
    grid-template-columns:none !important;
}
/* ═══════════════════════════════════════════════════════════
   dashboard-v3.css
   Additive-only. Scoped entirely under #browseSection / .panel-browse
   so it cannot touch the header, footer, or any other panel.
   Ports the "Popular Projects" search + filter + card design from
   courses.html/learners.html into the dashboard, using the same
   cs-* class names so future style updates to that page can be
   mirrored here easily. No price is rendered anywhere in this card.
═══════════════════════════════════════════════════════════ */

/* ── Header row: title + search field ── */
#browseSection .cs-header{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:1rem;
    padding:1.4rem 1.6rem 1rem;
    border-bottom:1.5px solid var(--beige-dark);
    background:linear-gradient(to right, var(--beige-card), #fdf9f3);
}
#browseSection .cs-title{
    font-family:var(--font-head);
    font-size:1.35rem;
    font-weight:700;
    color:var(--navy);
    margin:0;
}
#browseSection .cs-title span{ color:var(--orange); }
#browseSection .cs-subtitle{ font-size:.82rem; color:var(--muted); margin-top:.2rem; }

#browseSection .cs-search-wrap{
    position:relative;
    display:flex;
    align-items:center;
    min-width:240px;
}
#browseSection .cs-search-wrap i{
    position:absolute; left:.9rem; color:var(--muted); font-size:.85rem; pointer-events:none;
}
#browseSection .cs-search-input{
    width:100%;
    padding:.65rem 1rem .65rem 2.3rem;
    border:1.5px solid var(--beige-dark);
    border-radius:9px;
    background:var(--beige);
    font-family:var(--font-body);
    font-size:.88rem;
    color:var(--text);
    outline:none;
    transition:border-color .2s, box-shadow .2s;
}
#browseSection .cs-search-input:focus{
    border-color:var(--navy-mid);
    box-shadow:0 0 0 3px rgba(22,51,102,.10);
}

/* ── Filters row ── */
#browseSection .cs-filters{
    display:flex;
    align-items:center;
    gap:.7rem;
    flex-wrap:wrap;
    padding:1rem 1.6rem;
    border-bottom:1.5px solid var(--beige-dark);
}
#browseSection .cs-filter-label{
    font-size:.75rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.06em;
    color:var(--muted);
}
#browseSection .cs-select{
    padding:.5rem .8rem;
    border-radius:8px;
    border:1.5px solid var(--beige-dark);
    background:#fff;
    color:var(--navy);
    font-family:var(--font-body);
    font-size:.82rem;
    cursor:pointer;
    outline:none;
}
#browseSection .cs-select:focus{ border-color:var(--orange); }
#browseSection .cs-filter-divider{
    width:1px; height:22px; background:var(--beige-dark);
}

/* ── Grid + loading ── */
#browseSection .cs-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:1rem 1.2rem;
    padding:1.3rem 1.6rem;
}
#browseSection .cs-loading{
    grid-column:1 / -1;
    display:flex; align-items:center; justify-content:center;
    padding:3rem 0;
}
#browseSection .cs-spinner{
    width:34px; height:34px; border-radius:50%;
    border:3px solid var(--beige-dark);
    border-top-color:var(--orange);
    animation:cs-spin .8s linear infinite;
}
@keyframes cs-spin{ to{ transform:rotate(360deg); } }
#browseSection .cs-empty-msg{
    grid-column:1 / -1;
    text-align:center;
    color:var(--muted);
    padding:2.4rem 0;
    font-size:.92rem;
}

/* ── Project card (no price, ever) ── */
#browseSection .cs-card{
    display:flex;
    flex-direction:column;
    background:var(--beige);
    border:1.5px solid var(--beige-dark);
    border-radius:12px;
    overflow:hidden;
    cursor:pointer;
    transition:transform .2s, box-shadow .2s, border-color .2s;
}
#browseSection .cs-card:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 28px rgba(13,34,68,.14);
    border-color:rgba(255,131,55,.35);
}
#browseSection .cs-card-img{
    position:relative;
    width:100%;
    height:130px;
    background:linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
#browseSection .cs-card-img img{ width:100%; height:100%; object-fit:cover; display:block; }
#browseSection .cs-icon-btns{
    position:absolute; top:.5rem; right:.5rem;
    display:flex; gap:.4rem;
}
#browseSection .cs-icon-btn{
    width:28px; height:28px; border-radius:50%;
    background:rgba(255,255,255,.92);
    border:none; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
}
#browseSection .cs-icon-btn svg{ width:14px; height:14px; fill:none; stroke:var(--navy); stroke-width:2; }
#browseSection .cs-icon-btn:hover svg{ stroke:var(--orange); fill:var(--orange); }

#browseSection .cs-card-body{ padding:.9rem 1rem .3rem; flex:1; }
#browseSection .cs-card-title{
    font-size:.95rem; font-weight:700; color:var(--navy);
    margin-bottom:.3rem;
    display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden;
}
#browseSection .cs-card-subtitle{
    font-size:.78rem; color:var(--muted); line-height:1.4;
    margin-bottom:.6rem;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

#browseSection .cs-split-row{ display:flex; align-items:flex-start; justify-content:space-between; gap:.6rem; }
#browseSection .cs-tag{ }
#browseSection .cs-level-badge{
    display:inline-block; font-size:.7rem; font-weight:700; padding:.2rem .55rem; border-radius:5px;
}
#browseSection .cs-split-right{ display:flex; flex-direction:column; align-items:flex-end; gap:.3rem; }

/* Employability tooltip (self-contained — no course-hover.js needed) */
#browseSection .cs-emp-tooltip-wrap{ position:relative; cursor:help; }
#browseSection .cs-emp-tooltip-bubble{
    position:absolute; bottom:calc(100% + 8px); right:0;
    width:190px;
    background:var(--navy); color:#fff;
    font-size:.68rem; line-height:1.4;
    padding:.55rem .7rem; border-radius:8px;
    opacity:0; visibility:hidden; transform:translateY(4px);
    transition:opacity .15s, transform .15s;
    z-index:5;
}
#browseSection .cs-emp-tooltip-wrap:hover .cs-emp-tooltip-bubble{
    opacity:1; visibility:visible; transform:translateY(0);
}

#browseSection .cs-card-footer{
    display:flex; align-items:center; justify-content:space-between;
    gap:.6rem;
    padding:.7rem 1rem .9rem;
    margin-top:auto;
}
#browseSection .cs-spots-wrap{ display:flex; align-items:center; gap:.4rem; }
#browseSection .cs-spots-dot{ width:8px; height:8px; border-radius:50%; }
#browseSection .cs-spots-dot.spots-red{ background:#dc2626; }
#browseSection .cs-spots-dot.spots-orange{ background:var(--orange); }
#browseSection .cs-spots-count-badge.spots-red{ color:#dc2626; }
#browseSection .cs-spots-count-badge.spots-orange{ color:var(--orange); }

#browseSection .cs-view-btn{
    background:none; border:none; cursor:pointer;
    font-size:.8rem; font-weight:700; color:var(--navy);
    transition:color .2s;
}
#browseSection .cs-view-btn:hover{ color:var(--orange); }

/* ── Pagination ── */
#browseSection .cs-pagination{
    display:flex; align-items:center; justify-content:center;
    gap:.4rem; flex-wrap:wrap;
    padding:.5rem 1.6rem 1.6rem;
}
#browseSection .cs-page-btn{
    min-width:32px; height:32px;
    border-radius:7px;
    border:1.5px solid var(--beige-dark);
    background:#fff; color:var(--navy);
    font-size:.82rem; font-weight:600; cursor:pointer;
}
#browseSection .cs-page-btn.active{ background:var(--navy); border-color:var(--navy); color:#fff; }
#browseSection .cs-page-btn.disabled{ opacity:.4; cursor:not-allowed; }
#browseSection .cs-page-dots{ color:var(--muted); padding:0 .2rem; }

@media (max-width:1100px){
    #browseSection .cs-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:640px){
    #browseSection .cs-grid{ grid-template-columns:1fr; padding:1rem; }
    #browseSection .cs-header,
    #browseSection .cs-filters{ padding-left:1rem; padding-right:1rem; }
}
/* ═══════════════════════════════════════════════════════════
   dashboard-v3.css
   Additive-only. Scoped entirely under #browseSection / .panel-browse
   so it cannot touch the header, footer, or any other panel.
   Ports the "Popular Projects" search + filter + card design from
   courses.html/learners.html into the dashboard, using the same
   cs-* class names so future style updates to that page can be
   mirrored here easily. No price is rendered anywhere in this card.
═══════════════════════════════════════════════════════════ */

/* ── Header row: title + search field ── */
#browseSection .cs-header{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:1rem;
    padding:1.4rem 1.6rem 1rem;
    border-bottom:1.5px solid var(--beige-dark);
    background:linear-gradient(to right, var(--beige-card), #fdf9f3);
}
#browseSection .cs-title{
    font-family:var(--font-head);
    font-size:1.35rem;
    font-weight:700;
    color:var(--navy);
    margin:0;
}
#browseSection .cs-title span{ color:var(--orange); }
#browseSection .cs-subtitle{ font-size:.82rem; color:var(--muted); margin-top:.2rem; }

#browseSection .cs-search-wrap{
    position:relative;
    display:flex;
    align-items:center;
    min-width:240px;
}
#browseSection .cs-search-wrap i{
    position:absolute; left:.9rem; color:var(--muted); font-size:.85rem; pointer-events:none;
}
#browseSection .cs-search-input{
    width:100%;
    padding:.65rem 1rem .65rem 2.3rem;
    border:1.5px solid var(--beige-dark);
    border-radius:9px;
    background:var(--beige);
    font-family:var(--font-body);
    font-size:.88rem;
    color:var(--text);
    outline:none;
    transition:border-color .2s, box-shadow .2s;
}
#browseSection .cs-search-input:focus{
    border-color:var(--navy-mid);
    box-shadow:0 0 0 3px rgba(22,51,102,.10);
}

/* ── Filters row ── */
#browseSection .cs-filters{
    display:flex;
    align-items:center;
    gap:.7rem;
    flex-wrap:wrap;
    padding:1rem 1.6rem;
    border-bottom:1.5px solid var(--beige-dark);
}
#browseSection .cs-filter-label{
    font-size:.75rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.06em;
    color:var(--muted);
}
#browseSection .cs-select{
    padding:.5rem .8rem;
    border-radius:8px;
    border:1.5px solid var(--beige-dark);
    background:#fff;
    color:var(--navy);
    font-family:var(--font-body);
    font-size:.82rem;
    cursor:pointer;
    outline:none;
}
#browseSection .cs-select:focus{ border-color:var(--orange); }
#browseSection .cs-filter-divider{
    width:1px; height:22px; background:var(--beige-dark);
}

/* ── Grid + loading ── */
#browseSection .cs-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:1rem 1.2rem;
    padding:1.3rem 1.6rem;
}
#browseSection .cs-loading{
    grid-column:1 / -1;
    display:flex; align-items:center; justify-content:center;
    padding:3rem 0;
}
#browseSection .cs-spinner{
    width:34px; height:34px; border-radius:50%;
    border:3px solid var(--beige-dark);
    border-top-color:var(--orange);
    animation:cs-spin .8s linear infinite;
}
@keyframes cs-spin{ to{ transform:rotate(360deg); } }
#browseSection .cs-empty-msg{
    grid-column:1 / -1;
    text-align:center;
    color:var(--muted);
    padding:2.4rem 0;
    font-size:.92rem;
}

/* ── Project card (no price, ever) ── */
#browseSection .cs-card{
    display:flex;
    flex-direction:column;
    background:var(--beige);
    border:1.5px solid var(--beige-dark);
    border-radius:12px;
    overflow:hidden;
    cursor:pointer;
    transition:transform .2s, box-shadow .2s, border-color .2s;
}
#browseSection .cs-card:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 28px rgba(13,34,68,.14);
    border-color:rgba(255,131,55,.35);
}
#browseSection .cs-card-img{
    position:relative;
    width:100%;
    height:130px;
    background:linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
#browseSection .cs-card-img img{ width:100%; height:100%; object-fit:cover; display:block; }
#browseSection .cs-icon-btns{
    position:absolute; top:.5rem; right:.5rem;
    display:flex; gap:.4rem;
}
#browseSection .cs-icon-btn{
    width:28px; height:28px; border-radius:50%;
    background:rgba(255,255,255,.92);
    border:none; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
}
#browseSection .cs-icon-btn svg{ width:14px; height:14px; fill:none; stroke:var(--navy); stroke-width:2; }
#browseSection .cs-icon-btn:hover svg{ stroke:var(--orange); fill:var(--orange); }

#browseSection .cs-card-body{ padding:.9rem 1rem .3rem; flex:1; }
#browseSection .cs-card-title{
    font-size:.95rem; font-weight:700; color:var(--navy);
    margin-bottom:.3rem;
    display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden;
}
#browseSection .cs-card-subtitle{
    font-size:.78rem; color:var(--muted); line-height:1.4;
    margin-bottom:.6rem;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

#browseSection .cs-split-row{ display:flex; align-items:flex-start; justify-content:space-between; gap:.6rem; }
#browseSection .cs-tag{ }
#browseSection .cs-level-badge{
    display:inline-block; font-size:.7rem; font-weight:700; padding:.2rem .55rem; border-radius:5px;
}
#browseSection .cs-split-right{ display:flex; flex-direction:column; align-items:flex-end; gap:.3rem; }

/* Employability tooltip (self-contained — no course-hover.js needed) */
#browseSection .cs-emp-tooltip-wrap{ position:relative; cursor:help; }
#browseSection .cs-emp-tooltip-bubble{
    position:absolute; bottom:calc(100% + 8px); right:0;
    width:190px;
    background:var(--navy); color:#fff;
    font-size:.68rem; line-height:1.4;
    padding:.55rem .7rem; border-radius:8px;
    opacity:0; visibility:hidden; transform:translateY(4px);
    transition:opacity .15s, transform .15s;
    z-index:5;
}
#browseSection .cs-emp-tooltip-wrap:hover .cs-emp-tooltip-bubble{
    opacity:1; visibility:visible; transform:translateY(0);
}

#browseSection .cs-card-footer{
    display:flex; align-items:center; justify-content:space-between;
    gap:.6rem;
    padding:.7rem 1rem .9rem;
    margin-top:auto;
}
#browseSection .cs-spots-wrap{ display:flex; align-items:center; gap:.4rem; }
#browseSection .cs-spots-dot{ width:8px; height:8px; border-radius:50%; }
#browseSection .cs-spots-dot.spots-red{ background:#dc2626; }
#browseSection .cs-spots-dot.spots-orange{ background:var(--orange); }
#browseSection .cs-spots-count-badge.spots-red{ color:#dc2626; }
#browseSection .cs-spots-count-badge.spots-orange{ color:var(--orange); }

#browseSection .cs-view-btn{
    background:none; border:none; cursor:pointer;
    font-size:.8rem; font-weight:700; color:var(--navy);
    transition:color .2s;
}
#browseSection .cs-view-btn:hover{ color:var(--orange); }

/* ── Pagination ── */
#browseSection .cs-pagination{
    display:flex; align-items:center; justify-content:center;
    gap:.4rem; flex-wrap:wrap;
    padding:.5rem 1.6rem 1.6rem;
}
#browseSection .cs-page-btn{
    min-width:32px; height:32px;
    border-radius:7px;
    border:1.5px solid var(--beige-dark);
    background:#fff; color:var(--navy);
    font-size:.82rem; font-weight:600; cursor:pointer;
}
#browseSection .cs-page-btn.active{ background:var(--navy); border-color:var(--navy); color:#fff; }
#browseSection .cs-page-btn.disabled{ opacity:.4; cursor:not-allowed; }
#browseSection .cs-page-dots{ color:var(--muted); padding:0 .2rem; }

@media (max-width:1100px){
    #browseSection .cs-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:640px){
    #browseSection .cs-grid{ grid-template-columns:1fr; padding:1rem; }
    #browseSection .cs-header,
    #browseSection .cs-filters{ padding-left:1rem; padding-right:1rem; }
}

/* ═══════════════════════════════════════════════════════════
   dashboard-v3.css — LAYOUT RESTRUCTURE (2nd pass)
   Loads after dashboard-v2.css and wins on !important ties by
   being the later stylesheet + more specific selectors below.
   New class names (dash-top-row / dhv- / dash-filters-col /
   dash-main-row / dash-bottom-grid) are used instead of reusing
   the old .dash-hero cascade, so this doesn't fight the many
   !important rules already stacked on that class in v2.
═══════════════════════════════════════════════════════════ */

/* ── Kill the old full-width dash-body grid + equal-grid areas;
     we're replacing them with our own row structure below. ── */
.dash-body{
    display:block !important;
    max-width:1300px !important;
}
.dash-equal-grid{ display:none !important; }

/* ══════════════════════════════════════════════════════════
   ROW 1 — Slider (left) + Good Morning Learner (right, vertical)
══════════════════════════════════════════════════════════ */
.dash-top-row{
    max-width:1300px;
    margin:1.5rem auto 0;
    padding:0 2rem;
    display:flex;
    align-items:stretch;
    gap:1.5rem;
}
.dash-top-row .dash-slider-section{
    flex:1 1 66%;
    max-width:none;
    margin:0;
    padding:0;
}
.dash-top-row .dash-slider-inner{
    height:100%;
    min-height:320px;
}

.dash-hero-vertical{
    flex:1 1 34%;
    display:flex;
    flex-direction:column;
    gap:1rem;
    background:linear-gradient(160deg,#ffffff 0%, var(--beige) 60%, var(--beige-dark) 100%);
    border:1.5px solid var(--beige-dark);
    border-radius:16px;
    box-shadow:var(--shadow);
    padding:1.6rem 1.5rem;
}
.dhv-greeting .dash-greeting-tag{
    display:inline-flex; align-items:center; gap:.5rem;
    background:rgba(255,131,55,.12);
    border:1px solid rgba(255,131,55,.3);
    color:var(--orange);
    font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em;
    padding:.3rem .75rem; border-radius:20px; margin-bottom:.7rem;
}
.dhv-greeting .dash-welcome{
    font-family:var(--font-head);
    font-size:1.35rem; font-weight:700; color:var(--navy);
    line-height:1.2; margin-bottom:.3rem;
}
.dhv-greeting .dash-welcome span{ color:var(--orange); }
.dhv-greeting .dash-sub{ font-size:.82rem; color:var(--muted); }

.dhv-kpis{ display:flex; gap:.8rem; }
.dhv-kpis .kpi-card{
    flex:1;
    border-radius:12px;
    padding:.9rem 1rem;
    display:flex; flex-direction:column; gap:.25rem;
}
.dhv-kpis .kpi-orange{ background:rgba(255,131,55,.12); border:1px solid rgba(255,131,55,.3); cursor:pointer; }
.dhv-kpis .kpi-cream{ background:rgba(251,191,36,.14); border:1px solid rgba(251,191,36,.3); }
.dhv-kpis .kpi-icon{ font-size:1rem; color:var(--orange); }
.dhv-kpis .kpi-val{ font-size:1.3rem; font-weight:800; color:var(--navy); }
.dhv-kpis .kpi-label{ font-size:.66rem; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); }

.dhv-quick-squares{ display:flex; gap:.8rem; margin-top:auto; }
.dhv-square{
    flex:1;
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.4rem;
    padding:.9rem .6rem;
    background:#fff;
    border:1.5px solid var(--beige-dark);
    border-radius:12px;
    cursor:pointer;
    font-family:var(--font-body);
    font-size:.78rem; font-weight:700; color:var(--navy);
    transition:border-color .2s, transform .2s;
}
.dhv-square i{ font-size:1.05rem; color:var(--orange); }
.dhv-square:hover{ border-color:var(--orange); transform:translateY(-2px); }

@media (max-width:900px){
    .dash-top-row{ flex-direction:column; padding:0 1rem; }
    .dash-top-row .dash-slider-inner{ min-height:200px; }
}

/* ══════════════════════════════════════════════════════════
   ROW 2 — Filters (left) + Popular Projects search/grid (right)
══════════════════════════════════════════════════════════ */
.dash-main-row{
    max-width:1300px;
    margin:1.8rem auto 0;
    padding:0 2rem;
    display:flex;
    align-items:flex-start;
    gap:1.5rem;
}

.dash-filters-col{
    flex:0 0 230px;
    background:var(--beige-card);
    border:1.5px solid var(--beige-dark);
    border-radius:14px;
    box-shadow:var(--shadow);
    padding:1.3rem 1.2rem;
    position:sticky;
    top:84px;
}
.dfc-title{
    font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em;
    color:var(--orange); margin-bottom:1rem;
}
.dfc-field{ margin-bottom:1.1rem; }
.dfc-field label{
    display:block; font-size:.72rem; font-weight:600; color:var(--muted);
    text-transform:uppercase; letter-spacing:.05em; margin-bottom:.4rem;
}
.dash-filters-col .cs-select{ width:100%; }

.dash-main-content{
    flex:1;
    min-width:0;
    background:var(--beige-card);
    border:1.5px solid var(--beige-dark);
    border-radius:14px;
    box-shadow:var(--shadow);
    overflow:hidden;
}

/* cs-header split into title | search | explore-button, three across */
#browseSection .cs-header,
.dash-main-content .cs-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    flex-wrap:wrap;
}
.dash-main-content .cs-title{ flex:0 0 auto; }
.dash-main-content .cs-search-wrap{ flex:1 1 260px; max-width:420px; }
.cs-explore-btn{
    flex:0 0 auto;
    display:inline-flex; align-items:center; gap:.5rem;
    background:var(--orange); color:#fff;
    padding:.6rem 1.2rem; border-radius:8px;
    font-size:.85rem; font-weight:700; text-decoration:none;
    white-space:nowrap;
    transition:background .2s, transform .2s;
}
.cs-explore-btn:hover{ background:var(--orange-lt); transform:translateY(-2px); }

@media (max-width:900px){
    .dash-main-row{ flex-direction:column; padding:0 1rem; }
    .dash-filters-col{ flex:1 1 auto; width:100%; position:static; }
    .dash-filters-col{ display:flex; gap:1rem; overflow-x:auto; }
    .dfc-field{ margin-bottom:0; min-width:160px; }
}

/* ══════════════════════════════════════════════════════════
   ROW 3 — My Projects / Purchase Timeline / Quick Links
══════════════════════════════════════════════════════════ */
.dash-bottom-grid{
    max-width:1300px;
    margin:1.8rem auto 4rem;
    padding:0 2rem;
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:1.5rem;
    align-items:start;
}
.dash-bottom-grid .dash-panel{ margin-bottom:0 !important; }

@media (max-width:1100px){
    .dash-bottom-grid{ grid-template-columns:1fr 1fr; }
    .dash-bottom-grid .panel-quick{ grid-column:1 / -1; }
}
@media (max-width:700px){
    .dash-bottom-grid{ grid-template-columns:1fr; padding:0 1rem; }
}
/* Remove the sidebar column — Popular Projects now takes the whole row */
.dash-main-row{
    display: block !important;
}
.dash-filters-col{
    display: none !important;
}
.dash-main-content{
    width: 100%;
}

/* Header row: title | search | filters | explore button, all inline */
#browseSection .cs-header{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
#browseSection .cs-title{ flex: 0 0 auto; }
#browseSection .cs-search-wrap{ flex: 1 1 220px; max-width: 320px; }

.cs-filters-inline{
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    flex: 0 0 auto;
}
.cs-filters-inline .cs-select{
    padding: .55rem .8rem;
    border-radius: 8px;
    border: 1.5px solid var(--beige-dark);
    background: #fff;
    color: var(--navy);
    font-family: var(--font-body);
    font-size: .82rem;
    cursor: pointer;
    outline: none;
}
.cs-filters-inline .cs-select:focus{ border-color: var(--orange); }

#browseSection .cs-explore-btn{ flex: 0 0 auto; margin-left: auto; }

/* Grid can go wider now that the 230px sidebar is gone */
#browseSection .cs-grid{
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1300px){
    #browseSection .cs-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px){
    #browseSection .cs-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px){
    #browseSection .cs-grid{ grid-template-columns: 1fr; }
    .cs-filters-inline{ width: 100%; }
    .cs-filters-inline .cs-select{ flex: 1 1 auto; }
    #browseSection .cs-explore-btn{ margin-left: 0; width: 100%; justify-content: center; }
}
/* ═══════════════════════════════════════════════════════════
   DASHBOARD LAYOUT — consolidated, single source of truth.
   This replaces every previous "dashboard-v2.css" / "dashboard-v3.css"
   patch that had been appended below the base styles above.
   No !important stacking, no duplicate rule blocks.
═══════════════════════════════════════════════════════════ */

.dash-body{
    display:block;
    max-width:1300px;
    margin:0 auto;
    padding:2.5rem 2rem 5rem;
}

/* ══════════════════════════════════════════════════════════
   ROW 1 — Slider (left) + Good Morning Learner (right, vertical)
══════════════════════════════════════════════════════════ */
.dash-top-row{
    max-width:1300px;
    margin:1.5rem auto 0;
    padding:0 2rem;
    display:flex;
    align-items:stretch;
    gap:1.5rem;
}
.dash-top-row .dash-slider-section{
    flex:1 1 66%;
    max-width:none;
    margin:0;
    padding:0;
}
.dash-slider-inner{
    position:relative;
    width:100%;
    height:340px;
    min-height:320px;
    border-radius:16px;
    overflow:hidden;
    background:linear-gradient(135deg,var(--beige-dark) 0%,var(--beige) 100%);
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    transition:background-image .6s ease;
    box-shadow:var(--shadow);
}
.dash-slider-overlay{
    position:absolute; inset:0;
    background:linear-gradient(90deg, rgba(13,34,68,.55) 0%, rgba(13,34,68,.15) 60%, transparent 100%);
    pointer-events:none;
}
.dash-slider-content{
    position:relative; z-index:2;
    height:100%;
    display:flex; flex-direction:column; justify-content:center;
    padding:1.6rem 2.2rem;
    max-width:640px;
}
.dash-slider-content h2{
    font-family:var(--font-head);
    color:#fff;
    font-size:clamp(1.15rem,2.4vw,1.6rem);
    font-weight:700;
    margin-bottom:.5rem;
    text-shadow:0 2px 10px rgba(0,0,0,.35);
    line-height:1.25;
}
.dash-slider-content p{
    color:rgba(255,255,255,.92);
    font-size:.9rem;
    line-height:1.5;
    text-shadow:0 1px 6px rgba(0,0,0,.3);
}

.dash-hero-vertical{
    flex:1 1 34%;
    display:flex;
    flex-direction:column;
    gap:1rem;
    background:linear-gradient(160deg,#ffffff 0%, var(--beige) 60%, var(--beige-dark) 100%);
    border:1.5px solid var(--beige-dark);
    border-radius:16px;
    box-shadow:var(--shadow);
    padding:1.6rem 1.5rem;
}
.dhv-greeting .dash-greeting-tag{
    display:inline-flex; align-items:center; gap:.5rem;
    background:rgba(255,131,55,.12);
    border:1px solid rgba(255,131,55,.3);
    color:var(--orange);
    font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em;
    padding:.3rem .75rem; border-radius:20px; margin-bottom:.7rem;
}
.dhv-greeting .dash-welcome{
    font-family:var(--font-head);
    font-size:1.35rem; font-weight:700; color:var(--navy);
    line-height:1.2; margin-bottom:.3rem;
}
.dhv-greeting .dash-welcome span{ color:var(--orange); }
.dhv-greeting .dash-sub{ font-size:.82rem; color:var(--muted); }

.dhv-kpis{ display:flex; gap:.8rem; }
.dhv-kpis .kpi-card{
    flex:1;
    border-radius:12px;
    padding:.9rem 1rem;
    display:flex; flex-direction:column; gap:.25rem;
    backdrop-filter:none;
}
.dhv-kpis .kpi-orange{ background:rgba(255,131,55,.12); border:1px solid rgba(255,131,55,.3); cursor:pointer; }
.dhv-kpis .kpi-cream{ background:rgba(251,191,36,.14); border:1px solid rgba(251,191,36,.3); }
.dhv-kpis .kpi-icon{ font-size:1rem; color:var(--orange); }
.dhv-kpis .kpi-val{ font-size:1.3rem; font-weight:800; color:var(--navy); }
.dhv-kpis .kpi-label{ font-size:.66rem; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); }

.dhv-quick-squares{ display:flex; gap:.8rem; margin-top:auto; }
.dhv-square{
    flex:1;
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.4rem;
    padding:.9rem .6rem;
    background:#fff;
    border:1.5px solid var(--beige-dark);
    border-radius:12px;
    cursor:pointer;
    font-family:var(--font-body);
    font-size:.78rem; font-weight:700; color:var(--navy);
    transition:border-color .2s, transform .2s;
}
.dhv-square i{ font-size:1.05rem; color:var(--orange); }
.dhv-square:hover{ border-color:var(--orange); transform:translateY(-2px); }

@media (max-width:900px){
    .dash-top-row{ flex-direction:column; padding:0 1rem; }
    .dash-slider-inner{ min-height:200px; height:220px; }
}

/* ══════════════════════════════════════════════════════════
   ROW 2 — Popular Projects (full width, no sidebar)
══════════════════════════════════════════════════════════ */
.dash-main-row{
    max-width:1300px;
    margin:1.8rem auto 0;
    padding:0 2rem;
    display:block;
}
.dash-main-content{
    width:100%;
    background:var(--beige-card);
    border:1.5px solid var(--beige-dark);
    border-radius:14px;
    box-shadow:var(--shadow);
    overflow:hidden;
}

#browseSection .cs-header{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:1rem;
    padding:1.4rem 1.6rem 1rem;
    border-bottom:1.5px solid var(--beige-dark);
    background:linear-gradient(to right, var(--beige-card), #fdf9f3);
}
#browseSection .cs-title{
    font-family:var(--font-head);
    font-size:1.35rem;
    font-weight:700;
    color:var(--navy);
    margin:0;
    flex:0 0 auto;
}
#browseSection .cs-title span{ color:var(--orange); }

#browseSection .cs-search-wrap{
    position:relative;
    display:flex;
    align-items:center;
    flex:1 1 220px;
    max-width:320px;
}
#browseSection .cs-search-wrap i{
    position:absolute; left:.9rem; color:var(--muted); font-size:.85rem; pointer-events:none;
}
#browseSection .cs-search-input{
    width:100%;
    padding:.65rem 1rem .65rem 2.3rem;
    border:1.5px solid var(--beige-dark);
    border-radius:9px;
    background:var(--beige);
    font-family:var(--font-body);
    font-size:.88rem;
    color:var(--text);
    outline:none;
    transition:border-color .2s, box-shadow .2s;
}
#browseSection .cs-search-input:focus{
    border-color:var(--navy-mid);
    box-shadow:0 0 0 3px rgba(22,51,102,.10);
}

.cs-filters-inline{
    display:flex;
    align-items:center;
    gap:.6rem;
    flex-wrap:wrap;
    flex:0 0 auto;
}
.cs-filters-inline .cs-select{
    padding:.55rem .8rem;
    border-radius:8px;
    border:1.5px solid var(--beige-dark);
    background:#fff;
    color:var(--navy);
    font-family:var(--font-body);
    font-size:.82rem;
    cursor:pointer;
    outline:none;
}
.cs-filters-inline .cs-select:focus{ border-color:var(--orange); }

#browseSection .cs-explore-btn{
    flex:0 0 auto;
    margin-left:auto;
    display:inline-flex; align-items:center; gap:.5rem;
    background:var(--orange); color:#fff;
    padding:.6rem 1.2rem; border-radius:8px;
    font-size:.85rem; font-weight:700; text-decoration:none;
    white-space:nowrap;
    transition:background .2s, transform .2s;
}
#browseSection .cs-explore-btn:hover{ background:var(--orange-lt); transform:translateY(-2px); }

#browseSection .cs-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:1rem 1.2rem;
    padding:1.3rem 1.6rem;
}
#browseSection .cs-loading{
    grid-column:1 / -1;
    display:flex; align-items:center; justify-content:center;
    padding:3rem 0;
}
#browseSection .cs-spinner{
    width:34px; height:34px; border-radius:50%;
    border:3px solid var(--beige-dark);
    border-top-color:var(--orange);
    animation:cs-spin .8s linear infinite;
}
@keyframes cs-spin{ to{ transform:rotate(360deg); } }
#browseSection .cs-empty-msg{
    grid-column:1 / -1;
    text-align:center;
    color:var(--muted);
    padding:2.4rem 0;
    font-size:.92rem;
}

#browseSection .cs-card{
    display:flex;
    flex-direction:column;
    background:var(--beige);
    border:1.5px solid var(--beige-dark);
    border-radius:12px;
    overflow:hidden;
    cursor:pointer;
    transition:transform .2s, box-shadow .2s, border-color .2s;
}
#browseSection .cs-card:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 28px rgba(13,34,68,.14);
    border-color:rgba(255,131,55,.35);
}
#browseSection .cs-card-img{
    position:relative;
    width:100%;
    height:230px;
    background:linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
#browseSection .cs-card-img img{ width:100%; height:100%; object-fit:cover; display:block; }
#browseSection .cs-icon-btns{
    position:absolute; top:.5rem; right:.5rem;
    display:flex; gap:.4rem;
}
#browseSection .cs-icon-btn{
    width:28px; height:28px; border-radius:50%;
    background:rgba(255,255,255,.92);
    border:none; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
}
#browseSection .cs-icon-btn svg{ width:14px; height:14px; fill:none; stroke:var(--navy); stroke-width:2; }
#browseSection .cs-icon-btn:hover svg{ stroke:var(--orange); fill:var(--orange); }

#browseSection .cs-card-body{ padding:.9rem 1rem .3rem; flex:1; }
#browseSection .cs-card-title{
    font-size:.95rem; font-weight:700; color:var(--navy);
    margin-bottom:.3rem;
    display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden;
}
#browseSection .cs-card-subtitle{
    font-size:.78rem; color:var(--muted); line-height:1.4;
    margin-bottom:.6rem;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
#browseSection .cs-split-row{ display:flex; align-items:flex-start; justify-content:space-between; gap:.6rem; }
#browseSection .cs-level-badge{
    display:inline-block; font-size:.7rem; font-weight:700; padding:.2rem .55rem; border-radius:5px;
}
#browseSection .cs-split-right{ display:flex; flex-direction:column; align-items:flex-end; gap:.3rem; }

#browseSection .cs-emp-tooltip-wrap{ position:relative; cursor:help; }
#browseSection .cs-emp-tooltip-bubble{
    position:absolute; bottom:calc(100% + 8px); right:0;
    width:190px;
    background:var(--navy); color:#fff;
    font-size:.68rem; line-height:1.4;
    padding:.55rem .7rem; border-radius:8px;
    opacity:0; visibility:hidden; transform:translateY(4px);
    transition:opacity .15s, transform .15s;
    z-index:5;
}
#browseSection .cs-emp-tooltip-wrap:hover .cs-emp-tooltip-bubble{
    opacity:1; visibility:visible; transform:translateY(0);
}

#browseSection .cs-card-footer{
    display:flex; align-items:center; justify-content:space-between;
    gap:.6rem;
    padding:.7rem 1rem .9rem;
    margin-top:auto;
}
#browseSection .cs-spots-wrap{ display:flex; align-items:center; gap:.4rem; }
#browseSection .cs-spots-dot{ width:8px; height:8px; border-radius:50%; }
#browseSection .cs-spots-dot.spots-red{ background:#dc2626; }
#browseSection .cs-spots-dot.spots-orange{ background:var(--orange); }
#browseSection .cs-spots-count-badge.spots-red{ color:#dc2626; }
#browseSection .cs-spots-count-badge.spots-orange{ color:var(--orange); }

#browseSection .cs-view-btn{
    background-color: var(--orange-lt); border-radius: 2px; cursor:pointer;
    font-size:.8rem; font-weight:700; color:var(--navy);
    transition:color .2s;
}
#browseSection .cs-view-btn:hover{ color:var(--orange); }

#browseSection .cs-pagination{
    display:flex; align-items:center; justify-content:center;
    gap:.4rem; flex-wrap:wrap;
    padding:.5rem 1.6rem 1.6rem;
}
#browseSection .cs-page-btn{
    min-width:32px; height:32px;
    border-radius:7px;
    border:1.5px solid var(--beige-dark);
    background:#fff; color:var(--navy);
    font-size:.82rem; font-weight:600; cursor:pointer;
}
#browseSection .cs-page-btn.active{ background:var(--navy); border-color:var(--navy); color:#fff; }
#browseSection .cs-page-btn.disabled{ opacity:.4; cursor:not-allowed; }
#browseSection .cs-page-dots{ color:var(--muted); padding:0 .2rem; }

@media (max-width:1300px){ #browseSection .cs-grid{ grid-template-columns:repeat(3, 1fr); } }
@media (max-width:1100px){ #browseSection .cs-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:700px){
    #browseSection .cs-grid{ grid-template-columns:1fr; padding:1rem; }
    #browseSection .cs-header{ padding-left:1rem; padding-right:1rem; }
    .cs-filters-inline{ width:100%; }
    .cs-filters-inline .cs-select{ flex:1 1 auto; }
    #browseSection .cs-explore-btn{ margin-left:0; width:100%; justify-content:center; }
}

/* ══════════════════════════════════════════════════════════
   ROW 3 — My Projects / Purchase Timeline / Quick Links
══════════════════════════════════════════════════════════ */
.dash-bottom-grid{
    max-width:1300px;
    margin:1.8rem auto 4rem;
    padding:0 2rem;
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    grid-template-areas: "courses timeline quick";
    gap:1.5rem;
    align-items:start;
}
.dash-bottom-grid .dash-panel{ margin-bottom:0; }
.dash-bottom-grid .panel-courses  { grid-area: courses; }
.dash-bottom-grid .panel-timeline { grid-area: timeline; }
.dash-bottom-grid .panel-quick    { grid-area: quick; }

@media (max-width:1100px){
    .dash-bottom-grid{
        grid-template-columns:1fr 1fr;
        grid-template-areas:
            "courses timeline"
            "quick   quick";
    }
}
@media (max-width:700px){
    .dash-bottom-grid{
        grid-template-columns:1fr;
        grid-template-areas:
            "courses"
            "timeline"
            "quick";
        padding:0 1rem;
    }
}


:root{
    --page-max: 1400px;
}

/* Header row */
.header-inner{
    max-width: var(--page-max) !important;
}

/* Hero slider + greeting row */
.dash-top-row{
    max-width: var(--page-max) !important;
}

/* Popular Projects row */
.dash-main-row{
    max-width: var(--page-max) !important;
}

/* My Projects / Timeline / Quick Links row */
.dash-bottom-grid{
    max-width: var(--page-max) !important;
}

/* Overall body wrapper (in case anything still reads this) */
.dash-body{
    max-width: var(--page-max) !important;
}

/* Give the extra horizontal space a bit more breathing room
   rather than just stretching cards to look empty */
.dash-top-row,
.dash-main-row,
.dash-bottom-grid{
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

/* Popular Projects grid — use the extra width for a 5th column
   on very large screens instead of oversized cards */
@media (min-width: 1700px){
    #browseSection .cs-grid{
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

/* Bottom 3-panel row gets slightly more gap at this width */
.dash-bottom-grid{
    gap: 1.8rem;
}

/* Keep tablet/mobile breakpoints exactly as they were */
@media (max-width: 1400px){
    .dash-top-row,
    .dash-main-row,
    .dash-bottom-grid{
        padding-left: 2rem;
        padding-right: 2rem;
    }
}


#browseSection .cs-grid{
    grid-template-columns: repeat(3, 1fr) !important;
}

/* Remove the 5-column large-screen override entirely — 3 stays
   fixed even on very wide monitors */
@media (min-width: 1700px){
    #browseSection .cs-grid{
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 1300px){
    #browseSection .cs-grid{
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 700px){
    #browseSection .cs-grid{
        grid-template-columns: 1fr !important;
    }
}
/* ═══════════════════════════════════════════════════════════
   FIX — make dash-top-row / dash-main-row / dash-bottom-grid
   all exactly the same width.
   Root cause: dash-main-row and dash-bottom-grid live INSIDE
   <main class="dash-body">, which already applies its own
   max-width + padding. dash-top-row sits OUTSIDE dash-body.
   That meant main-row/bottom-grid got padded twice (once by
   dash-body, once by themselves) while top-row only got
   padded once — making it visually wider. Neutralize dash-body
   so it's just a plain wrapper, and give all three rows the
   exact same max-width/padding/centering rules.
═══════════════════════════════════════════════════════════ */

/* 1. Strip dash-body down to a plain, width-less wrapper */
.dash-body{
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. Give all three rows identical width, centering, and padding */
.dash-top-row,
.dash-main-row,
.dash-bottom-grid{
    max-width: var(--page-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
    box-sizing: border-box !important;
}

/* Preserve each row's own vertical spacing (top/bottom margins) */
.dash-top-row{ margin-top: 1.5rem !important; }
.dash-main-row{ margin-top: 1.8rem !important; }
.dash-bottom-grid{ margin-top: 1.8rem !important; margin-bottom: 4rem !important; }

/* 3. Keep the tighter mobile/tablet padding in sync too */
@media (max-width: 1400px){
    .dash-top-row,
    .dash-main-row,
    .dash-bottom-grid{
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

@media (max-width: 900px){
    .dash-top-row,
    .dash-main-row,
    .dash-bottom-grid{
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}
/* ══════════════════════════════════════════════════════════
   POPULAR PROJECTS — exact card design ported from courses.css,
   scoped under #browseSection only.
══════════════════════════════════════════════════════════ */

#browseSection #csGrid.cs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 1.3rem 1.6rem;
}

#browseSection .course-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}
#browseSection .course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ── image + fav/sfl buttons ── */
#browseSection .course-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
}
#browseSection .course-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#browseSection .fav-btn,
#browseSection .sfl-btn {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, transform 0.15s;
    z-index: 5;
    padding: 0;
    outline: none;
}
#browseSection .fav-btn:hover,
#browseSection .sfl-btn:hover {
    background: rgba(0, 0, 0, 0.68);
    transform: scale(1.1);
}
#browseSection .fav-btn:active,
#browseSection .sfl-btn:active { transform: scale(0.95); }
#browseSection .fav-btn { top: 8px; right: 8px; }
#browseSection .sfl-btn { top: 8px; left: 8px; }

#browseSection .fav-btn svg,
#browseSection .sfl-btn svg {
    width: 15px;
    height: 15px;
    transition: fill 0.18s, stroke 0.18s;
    pointer-events: none;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
#browseSection .fav-btn.fav-active svg { fill: #e94560; stroke: #e94560; }
#browseSection .sfl-btn.sfl-active svg { fill: #f59e0b; stroke: #f59e0b; }

@keyframes fav-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}
#browseSection .fav-btn.fav-active,
#browseSection .sfl-btn.sfl-active { animation: fav-pop 0.3s ease-out; }

/* ── body / title / subtitle ── */
#browseSection .course-body {
    padding: 14px 16px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#browseSection .course-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #1c1d1f;
    font-family: 'DM Sans', sans-serif;
}
#browseSection .course-subtitle {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.45;
}

/* ── badges row ── */
#browseSection .card-split-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
#browseSection .split-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
#browseSection .level-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}

/* ── employability tooltip ── */
#browseSection .emp-tooltip-wrap { position: relative; cursor: help; }
#browseSection .emp-tooltip-bubble {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: #1a2b56;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.5;
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(26, 43, 86, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 50;
    pointer-events: none;
    text-align: left;
}
#browseSection .emp-tooltip-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 14px;
    border-width: 6px;
    border-style: solid;
    border-color: #1a2b56 transparent transparent transparent;
}
#browseSection .emp-tooltip-wrap:hover .emp-tooltip-bubble {
    opacity: 1; visibility: visible; transform: translateY(0);
}

/* ── footer / spots / view button ── */
#browseSection .course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 14px;
    margin-top: 10px;
    border-top: 1px solid #f0f0f0;
}
#browseSection .spots-wrap { display: flex; align-items: center; gap: 8px; }
#browseSection .spots-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
#browseSection .spots-dot.spots-orange { background-color: #f58220; box-shadow: 0 0 8px rgba(245,130,32,.5); }
#browseSection .spots-dot.spots-red    { background-color: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,.6); }

#browseSection .view-btn {
    background: #f58220;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    font-family: 'DM Sans', sans-serif;
}
#browseSection .view-btn:hover { background: #f97316; }

/* ── empty / loading (already had .cs-loading/.cs-spinner — kept) ── */
#browseSection .cs-empty-msg {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 2.4rem 0;
    font-size: .92rem;
}

/* ── pagination — exact courses.css look ── */
#browseSection #csPagination.pagination,
#browseSection #csPagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 24px 0 8px;
    flex-wrap: wrap;
    padding: .5rem 1.6rem 1.6rem;
}
#browseSection .page-btn {
    padding: 8px 14px;
    border: 1px solid #0b2545;
    background-color: #fff;
    color: #0b2545;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s ease;
}
#browseSection .page-btn:hover {
    background-color: #0b2545;
    color: #fff;
}
#browseSection .page-btn.active {
    background-color: #ff7a00;
    color: #fff;
    border-color: #ff7a00;
}
#browseSection .page-btn.disabled { opacity: 0.5; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════
   POPULAR PROJECTS — card height, heading color, view button
═══════════════════════════════════════════════════════════ */

/* 1. Increase course card image height a bit */
#browseSection .course-img-wrapper{
    height: 320px !important;   /* was 280px */
}

/* 2. "Popular Projects" heading — make it fully black
      (kills the orange applied to the <span> around "Projects") */
#browseSection .cs-title,
#browseSection .cs-title span{
    color: #000000 !important;
}

/* 3. "View project" button — orange background, white text */
#browseSection .view-btn{
    background: var(--orange) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
}
#browseSection .view-btn:hover{
    background: var(--orange-lt) !important;
    color: #ffffff !important;
}
/* Increase course card image height further */
#browseSection .course-img-wrapper{
    height: 250px !important;   /* was 320px, originally 280px */
}

#browseSection .course-img-wrapper img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* "View project" button — polished button design */
#browseSection .cs-view-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    background: var(--orange);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: .82rem;
    font-weight: 700;
    font-family: var(--font-body);
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(255,131,55,.28);
    transition: background .2s, transform .2s, box-shadow .2s;
}

#browseSection .cs-view-btn:hover{
    background: var(--orange-lt);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,131,55,.38);
}

#browseSection .cs-view-btn:active{
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255,131,55,.3);
}
/* ── Fix: no gap between spots-left text and View Project button ── */
#browseSection .course-footer {
    gap: 12px;
    flex-wrap: nowrap;
}

#browseSection .spots-wrap {
    min-width: 0;       /* allow the text to shrink instead of overflowing */
    flex: 1 1 auto;
    overflow: hidden;
}

#browseSection .spots-wrap span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
}

#browseSection .view-btn {
    flex-shrink: 0;     /* button keeps its size, never gets squeezed */
}
/* ══════════════════════════════════════════════════════════
   POPULAR PROJECTS — shorter image + consistent card alignment
══════════════════════════════════════════════════════════ */

/* Shorter image (was 250px) */
#browseSection .course-img-wrapper {
    height:200px !important;
   
}

/* Lock title to 1 line and subtitle to 2 lines so every card's
   header block is the same height — this is what keeps the
   badges/footer/button lined up across a row */
#browseSection .course-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
#browseSection .course-subtitle {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(12px * 1.45 * 2); /* reserves 2 lines even if text is short */
}

/* Keep the badge row from collapsing differently between cards */
#browseSection .card-split-row {
    align-items: flex-start;
    min-height: 44px; /* room for tag + level badge stack */
}

/* Push the footer to the bottom of the card no matter how tall
   the body content ends up (belt-and-suspenders on top of the
   existing flex:1 on .course-body) */
#browseSection .course-footer {
    margin-top: auto;
}
/* ═══════════════════════════════════════════════════════════
   POPULAR PROJECTS — FINAL OVERRIDE (paste at end of file)
   Consolidates every earlier conflicting cs-grid/course-card
   patch into one definitive design matching the target mock.
═══════════════════════════════════════════════════════════ */

#browseSection #csGrid.cs-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    padding: 1.3rem 1.6rem !important;
}
@media (max-width: 1200px) {
    #browseSection #csGrid.cs-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 700px) {
    #browseSection #csGrid.cs-grid { grid-template-columns: 1fr !important; padding: 1rem !important; }
}

#browseSection .course-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: transform .25s ease, box-shadow .25s ease !important;
}
#browseSection .course-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,.08) !important;
}

#browseSection .course-img-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 180px !important;
    overflow: hidden !important;
}
#browseSection .course-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

#browseSection .course-body {
    padding: 14px 16px 0 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}
#browseSection .course-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1c1d1f !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
#browseSection .course-subtitle {
    font-size: 12px !important;
    color: #6b7280 !important;
    margin: 0 !important;
    line-height: 1.45 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: calc(12px * 1.45 * 2) !important;
}

#browseSection .card-split-row {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 44px !important;
}
#browseSection .split-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 6px !important;
}

#browseSection .course-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 10px 16px 14px !important;
    margin-top: auto !important;
    border-top: 1px solid #f0f0f0 !important;
    flex-wrap: nowrap !important;
}
#browseSection .spots-wrap {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
}
#browseSection .spots-wrap span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-block !important;
    max-width: 100% !important;
}
#browseSection .view-btn {
    flex-shrink: 0 !important;
    background: var(--orange) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background .15s !important;
}
#browseSection .view-btn:hover { background: var(--orange-lt) !important; }

/* header row stays on one line like the target design */
#browseSection .cs-header {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
}
#browseSection .cs-title { flex: 0 0 auto !important; }
#browseSection .cs-search-wrap { flex: 1 1 220px !important; max-width: 300px !important; }
#browseSection .cs-explore-btn { margin-left: auto !important; }
#cartCountMobile.cart-badge {
    display: none !important;
}
#cartCountMobile.cart-badge.show {
    display: flex !important;
}
.mobile-cart-btn,
.mobile-bell-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 6px;              /* 20px + 6px*2 = 32px total tap target, unchanged */
    box-sizing: content-box;
    background: none;
    border: none;
    color: #1a2b56;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
}

.mobile-cart-btn i,
.mobile-bell-btn i {
    display: block;
    line-height: 1;
}

.mobile-cart-btn .cart-badge,
.mobile-bell-btn .cart-badge {
    position: absolute;
    top: 3px;
    right: 1px;
    transform: translate(45%, -45%);
    min-width: 15px;
    height: 15px;
    padding: 0;
    border-radius: 50%;
    background: red;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    pointer-events: none;
}
/* ================= DESKTOP BELL ICON (beside cart) ================= */

/* Hidden by default (logged-out state) */
.bell-container {
  display: none !important;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  align-items: center;
  justify-content: center;
}

/* Shown only once the user is logged in */
body.user-logged-in .bell-container {
  display: inline-flex !important;
}

.bell-container i {
  font-size: 22px;
  color: #1a2b56;
  transition: color 0.2s ease, transform 0.2s ease;
}

.bell-container:hover i {
  color: #f58220;
  transform: scale(1.08);
}

/* Mobile always uses its own bell in .mobile-topbar-actions,
   so force-hide the desktop one there even when logged in */
@media (max-width: 768px) {
  .bell-container,
  body.user-logged-in .bell-container {
    display: none !important;
  }
}
/* ══════════════════════════════════════════════════════════
   POPULAR PROJECTS — fix property leakage from the shared
   .course-card base rule (align-items / padding / gap / ::before)
══════════════════════════════════════════════════════════ */
#browseSection .course-card {
    padding: 0 !important;
    gap: 0 !important;
    align-items: stretch !important;   /* let body/footer span full card width */
}
#browseSection .course-card::before {
    content: none !important;          /* kill the enrolled-card accent bar */
}

/* ══════════════════════════════════════════════════════════
   POPULAR PROJECTS — clean mobile header stacking
══════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
    #browseSection .cs-header {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    #browseSection .cs-search-wrap {
        max-width: none !important;
        width: 100% !important;
    }
    .cs-filters-inline {
        width: 100% !important;
        display: flex !important;
        gap: .6rem !important;
    }
    .cs-filters-inline .cs-select {
        flex: 1 1 calc(50% - .3rem) !important;
        width: auto !important;
    }
    #browseSection .cs-explore-btn {
        width: 100% !important;
        margin-left: 0 !important;
        justify-content: center !important;
    }
}
#browseSection .split-right {
    padding-right: 6px;
    overflow: visible;
}
#browseSection .card-split-row {
    overflow: visible;
}
/* ══════════════════════════════════════════════════════════
   Fix spots-dot getting clipped on the left edge (mobile)
══════════════════════════════════════════════════════════ */
#browseSection .spots-wrap {
    overflow: visible !important;
    padding-left: 4px !important;   /* room for the dot's glow so it isn't clipped */
}
#browseSection .spots-dot {
    flex-shrink: 0 !important;      /* stop the dot itself from being squeezed */
    margin-left: 2px !important;
}
#browseSection .spots-wrap span:last-child {
    overflow: hidden !important;    /* keep only the TEXT truncating, not the dot */
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
/* ══════════════════════════════════════════════════════════
   Fix negative gaps around search input in Popular Projects
   header on mobile (caused by stacked margin overrides)
══════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
    #browseSection .cs-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 1.2rem 1rem !important;
    }

    /* Zero out every margin these elements picked up from
       earlier desktop-oriented rules — spacing now comes
       purely from the gap above, so nothing can overlap */
    #browseSection .cs-title,
    #browseSection .cs-search-wrap,
    .cs-filters-inline,
    #browseSection .cs-explore-btn {
        margin: 0 !important;
    }

    #browseSection .cs-search-wrap {
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
    }

    .cs-filters-inline {
        width: 100% !important;
        gap: .6rem !important;
    }

    .cs-filters-inline .cs-select {
        flex: 1 1 calc(50% - .3rem) !important;
        width: auto !important;
        margin: 0 !important;
    }

    #browseSection .cs-explore-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}
@media (max-width: 768px) {
    .profile-dropdown.show,
    .profile-dropdown.visible {
        position: fixed !important;
        top: 390px !important;      /* sits below the header */
        left: 50vw !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        width: 320px !important;
        max-width: 90vw !important;
        max-height: calc(100vh - 150px) !important;
        overflow-y: auto !important;
    }
}
/* ==========================================================================
   LEGAL / TERMS MODAL (Terms & Conditions viewer)
   ========================================================================== */
.legal-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 25, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000; /* above .auth-overlay's 9999 */
  padding: 20px;
}

.legal-modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  font-family: 'DM Sans', sans-serif;
}

.legal-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
  cursor: pointer;
  color: #1a2b56;
  font-size: 15px;
  z-index: 2;
}
.legal-modal-close:hover { background: rgba(0,0,0,0.1); }

.legal-modal-scroll {
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px 36px 36px;
}

.legal-modal-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: #6b7280;
  text-align: center;
}

.legal-modal-state i {
  font-size: 28px;
  color: #f58220;
}

.legal-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #eee;
  border-top-color: #f58220;
  border-radius: 50%;
  animation: legalSpin 0.8s linear infinite;
}
@keyframes legalSpin { to { transform: rotate(360deg); } }

.legal-modal-body .tagline {
  color: #f58220;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legal-modal-body h2 {
  color: #0c2049;
  margin: 6px 0 10px;
  font-size: 1.6rem;
}

.legal-modal-body .meta-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.legal-modal-body .meta-info .divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
}

.legal-modal-body .line {
  height: 1px;
  background: #eee;
  margin: 16px 0;
}

.legal-modal-text {
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.7;
  white-space: pre-line; /* respects \n from your terms content */
}

@media (max-width: 600px) {
  .legal-modal-overlay { align-items: flex-end; padding: 0; }
  .legal-modal { max-width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
  .legal-modal-scroll { padding: 32px 20px 24px; }
}
.auth-terms-link {
    color: #f58220;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}
.auth-terms-link:hover {
    color: #e85d00;
}