/* ═══════════════════════════════════════════════════════════
   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: 182px !important; max-height: 182px !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;
  }
}