:root{--ink:#07110f;--muted:#66736e;--paper:#f6f8f5;--white:#fff;--green:#0d7d52;--green2:#19a66d;--gold:#b99652;--line:#dce4df;--dark:#07110f;--shadow:0 24px 70px rgba(8,28,20,.12)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:"DM Sans",Arial,sans-serif;color:var(--ink);background:var(--paper);overflow-x:hidden}a{text-decoration:none;color:inherit}.container{width:min(1180px,calc(100% - 40px));margin:auto}.ticker{height:32px;background:#06100d;color:#dfe9e4;overflow:hidden;font-size:11px;letter-spacing:.14em;text-transform:uppercase}.ticker-track{height:100%;display:flex;align-items:center;gap:48px;width:max-content;animation:ticker 32s linear infinite}.ticker-track span{flex:0 0 auto;white-space:nowrap}.ticker-track b{white-space:nowrap}.ticker b{color:#6ee2ae;font-weight:700}@keyframes ticker{to{transform:translateX(-50%)}}.nav-wrap{position:sticky;top:0;z-index:20;background:rgba(246,248,245,.88);backdrop-filter:blur(18px);border-bottom:1px solid rgba(7,17,15,.07)}.nav{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:22px}.brand{display:flex;align-items:center;gap:10px;font-weight:600;font-size:13px;letter-spacing:.09em;white-space:nowrap}.brand strong{font-weight:800}.brand-mark{display:grid;place-items:center;width:35px;height:35px;border:1px solid var(--green);border-radius:10px;color:var(--green);font-weight:800;letter-spacing:-.08em}.nav-links{display:flex;align-items:center;gap:23px;font-size:13px;color:#3e4945}.nav-links a{transition:.2s}.nav-links a:hover{color:var(--green)}.nav-cta{padding:12px 17px;border-radius:9px;background:var(--green);color:#fff!important;font-weight:700}.login-link{font-weight:800}.menu-btn{display:none;border:0;background:none;font-size:25px}.hero{position:relative;min-height:680px;display:flex;align-items:center;background:radial-gradient(circle at 72% 40%,rgba(31,166,109,.13),transparent 34%),linear-gradient(115deg,#f8faf7 0%,#eef3ef 100%);overflow:hidden}.hero:after{content:"";position:absolute;width:680px;height:680px;border-radius:50%;right:-300px;top:-170px;border:1px solid rgba(13,125,82,.11);box-shadow:0 0 0 90px rgba(13,125,82,.025),0 0 0 180px rgba(13,125,82,.02)}.hero-grid{display:grid;grid-template-columns:1fr .9fr;align-items:center;gap:50px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.22em;color:var(--green);margin:0 0 18px}.hero h1,h1,h2{font-family:"Playfair Display",Georgia,serif;font-weight:700;letter-spacing:-.04em;line-height:.98;margin:0}.hero h1{font-size:clamp(50px,6vw,82px)}em{color:var(--green);font-style:italic}.hero-text,.lead,.section-copy>p{font-size:17px;line-height:1.75;color:var(--muted);max-width:620px}.hero-actions{display:flex;gap:12px;margin:28px 0}.btn{display:inline-flex;justify-content:center;align-items:center;gap:16px;border:0;border-radius:10px;padding:15px 21px;font-weight:800;font-size:13px;cursor:pointer;transition:transform .2s,box-shadow .2s}.btn:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(0,0,0,.12)}.btn-primary{background:var(--green);color:#fff}.btn-ghost{border:1px solid #bcc8c2;background:rgba(255,255,255,.5)}.btn-light{background:#fff;color:var(--ink)}.full{width:100%}.trust-row{display:flex;gap:20px;flex-wrap:wrap;font-size:11px;color:#63706b}.hero-visual{position:relative;min-height:450px;display:grid;place-items:center}.glow{position:absolute;width:360px;height:360px;border-radius:50%;background:rgba(25,166,109,.15);filter:blur(60px)}.chart-card{position:relative;width:min(100%,510px);padding:23px;border:1px solid rgba(255,255,255,.75);border-radius:22px;background:linear-gradient(145deg,rgba(4,22,16,.98),rgba(13,56,40,.96));color:#d9eee5;box-shadow:0 35px 90px rgba(0,0,0,.24);transform:rotate(2deg)}.chart-top{display:flex;justify-content:space-between;font-size:10px;letter-spacing:.16em}.live-dot{color:#74e5ad}.chart-lines{height:220px;position:absolute;inset:55px 23px 60px;background:repeating-linear-gradient(to bottom,rgba(255,255,255,.07) 0 1px,transparent 1px 42px);opacity:.7}.chart-card svg{position:relative;width:100%;height:240px;color:#70dba8}.chart-stats{display:flex;justify-content:space-between;border-top:1px solid rgba(255,255,255,.12);padding-top:15px}.chart-stats small,.floating-card small{display:block;color:#8fa69d;font-size:8px;letter-spacing:.12em}.chart-stats b{font-size:11px}.floating-card{position:absolute;right:0;bottom:45px;background:#fff;padding:16px 20px;border-radius:13px;box-shadow:var(--shadow)}.floating-card span{font-family:"Playfair Display";font-size:27px;display:block}.numbers{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:18px;background:#fff;transform:translateY(-38px);position:relative;z-index:2;box-shadow:var(--shadow)}.numbers div{padding:25px;border-right:1px solid var(--line);display:flex;gap:15px;align-items:center}.numbers div:last-child{border:0}.numbers strong{font-size:12px;color:var(--green)}.numbers span{font-size:12px;font-weight:700}.section{padding:105px 0}.split{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center}.section-copy h2,.section-head h2,.premium h2{font-size:clamp(40px,5vw,62px)}.video-frame{min-height:380px;border-radius:24px;background:linear-gradient(145deg,#07130f,#102e24);display:grid;place-items:center;box-shadow:var(--shadow);position:relative;overflow:hidden}.video-frame:before{content:"";position:absolute;width:280px;height:280px;border:1px solid rgba(116,229,173,.2);border-radius:50%;box-shadow:0 0 0 60px rgba(116,229,173,.03),0 0 0 120px rgba(116,229,173,.02)}.video-glass{position:relative;text-align:center;color:#dff2e9;padding:45px;border:1px solid rgba(255,255,255,.12);border-radius:20px;background:rgba(255,255,255,.05);backdrop-filter:blur(10px)}.video-glass b{display:block;font-size:20px;letter-spacing:.08em}.video-glass small{color:#91aaa0}.play{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;margin:0 auto 20px;background:#fff;color:var(--green);font-size:18px}.courses{background:#fff}.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:45px}.text-link{font-weight:800;color:var(--green);font-size:13px}.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.course-card{padding:35px;min-height:310px;border:1px solid var(--line);border-radius:18px;background:var(--paper);display:flex;flex-direction:column;justify-content:flex-end;transition:.25s}.course-card:hover{transform:translateY(-7px);box-shadow:var(--shadow)}.course-card.featured{background:#0a1a14;color:#fff;border-color:#0a1a14}.course-no{color:var(--green);font-weight:800;margin-bottom:auto}.course-card h3{font-family:"Playfair Display";font-size:32px;margin:0 0 12px}.course-card p{color:#76827d;line-height:1.65}.featured p{color:#9cb0a8}.course-card a{margin-top:18px;color:var(--green);font-weight:800;font-size:12px}.premium{background:var(--paper)}.premium-box{padding:65px;border-radius:26px;background:linear-gradient(120deg,#081610,#103b2b);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:35px;box-shadow:var(--shadow)}.premium-box .eyebrow{color:#6edba7}.premium h2{color:#fff}.premium-box p{color:#afc3ba;max-width:600px;line-height:1.7}.scam{background:#fff}.shield{min-height:380px;border-radius:25px;background:#eef5f0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;border:1px solid var(--line)}.shield span{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:#fff;font-size:28px;margin-bottom:22px}.shield small{letter-spacing:.2em;color:var(--green);font-weight:800}.shield b{font-family:"Playfair Display";font-size:36px;line-height:.95;margin-top:13px}.official-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:25px}.official-grid a{padding:15px;border:1px solid var(--line);border-radius:10px;font-weight:700;font-size:13px}.access-band{padding-top:20px}.access-inner{display:flex;justify-content:space-between;align-items:center;padding:60px 0;border-top:1px solid var(--line)}.access-inner h2{font-size:42px}footer{background:#06100d;color:#dce9e3;padding:60px 0 25px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.4fr;gap:40px}.footer-grid p{color:#879c93;font-size:13px}.footer-grid>b,.footer-grid>div>b{display:block;color:#fff;margin-bottom:15px}.footer-grid>div:not(:first-child){display:flex;flex-direction:column;gap:11px;font-size:12px;color:#8fa49b}.footer-grid .brand{color:#fff}.footer-bottom{display:flex;justify-content:space-between;border-top:1px solid rgba(255,255,255,.1);padding-top:20px;margin-top:45px;color:#71857d;font-size:11px}.inner-page{background:var(--paper);min-height:100vh}.form-shell{padding:90px 0;max-width:760px}.form-intro{text-align:center;margin-bottom:35px}.form-intro h1,.page-content h1,.contact-page h1{font-size:clamp(48px,7vw,72px)}.form-intro p:not(.eyebrow){color:var(--muted);line-height:1.7}.glass-form{padding:34px;border:1px solid var(--line);background:#fff;border-radius:20px;box-shadow:var(--shadow);display:grid;gap:18px}.glass-form label{font-size:12px;font-weight:800;color:#3d4944;display:grid;gap:8px}.glass-form input,.glass-form select{width:100%;border:1px solid #ccd7d1;border-radius:10px;padding:14px;background:#fbfcfb;font:inherit;outline:0}.glass-form input:focus,.glass-form select:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(13,125,82,.1)}.form-note{font-size:11px;color:#78857f;line-height:1.5}.broker-pills{display:flex;flex-wrap:wrap;gap:8px}.broker-pills input{display:none}.broker-pills span{display:block;padding:12px 16px;border:1px solid var(--line);border-radius:999px;cursor:pointer;font-size:12px}.broker-pills input:checked+span{background:var(--green);color:#fff;border-color:var(--green)}.alert{padding:15px;border-radius:10px;margin-bottom:18px;font-size:13px;line-height:1.5}.alert.success{background:#e8f6ee;color:#17613f}.alert.error{background:#fff0ed;color:#963e2f}.page-content{padding:90px 0}.page-content>.lead{margin-bottom:45px}.partner-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.partner-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px;min-height:230px}.partner-card>span{font-weight:900;color:var(--green);letter-spacing:.15em}.partner-card h3{font-family:"Playfair Display";font-size:25px}.partner-card p{color:var(--muted);line-height:1.6;font-size:13px}.partner-card a{color:var(--green);font-weight:800;font-size:12px}.contact-page{padding:90px 0}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:45px}.contact-grid a{padding:30px;background:#fff;border:1px solid var(--line);border-radius:18px;display:flex;flex-direction:column;gap:9px}.contact-grid small{font-size:10px;letter-spacing:.18em;color:var(--green);font-weight:800}.contact-grid b{font-family:"Playfair Display";font-size:25px}.contact-grid span{font-size:12px;color:var(--muted)}.address{margin-top:25px;color:var(--muted)}.crm-login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 50% 10%,rgba(25,166,109,.18),transparent 35%),#07110f}.login-card{width:min(430px,calc(100% - 30px));background:#fff;border-radius:20px;padding:35px;box-shadow:0 30px 100px rgba(0,0,0,.3)}.login-card .brand{margin-bottom:45px}.login-card h1{font-size:50px;margin-bottom:28px}.login-card form{display:grid;gap:16px}.login-card label{display:grid;gap:8px;font-size:12px;font-weight:800}.login-card input{padding:14px;border:1px solid var(--line);border-radius:9px}.login-card small{display:block;color:#78857f;font-size:10px;margin-top:18px;line-height:1.5}.crm{display:flex;min-height:100vh;background:#f2f5f2}.sidebar{position:fixed;inset:0 auto 0 0;width:245px;background:#07110f;color:#b7c8c0;padding:25px;display:flex;flex-direction:column;gap:6px}.sidebar .brand{color:#fff;margin-bottom:30px}.sidebar a:not(.brand){padding:12px 13px;border-radius:8px;font-size:12px}.sidebar a:not(.brand):hover,.sidebar .side-active{background:#123126;color:#fff}.crm-main{margin-left:245px;padding:55px;width:calc(100% - 245px)}.crm-top{display:flex;justify-content:space-between;align-items:flex-start}.crm-top h1{font-size:48px}.role-badge{padding:8px 11px;background:#e1eee7;color:var(--green);border-radius:999px;font-size:10px;font-weight:900}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:40px 0}.stats>div{background:#fff;border:1px solid var(--line);border-radius:15px;padding:22px}.stats small{display:block;font-size:9px;letter-spacing:.12em;color:#718079;font-weight:800}.stats b{display:block;font-family:"Playfair Display";font-size:40px;margin:12px 0}.stats span{font-size:10px;color:#8a9690}.crm-panels{display:grid;grid-template-columns:2fr 1fr;gap:16px}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:25px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.panel-head h3{margin:0}.panel-head span{font-size:9px;color:#7b8982}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-grid a{padding:18px;border:1px solid var(--line);border-radius:10px;font-weight:700;font-size:12px}.quick-grid b{float:right;color:var(--green)}.api-panel{max-width:900px}.api-panel form{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}.api-panel label{font-size:11px;font-weight:800;display:grid;gap:7px}.api-panel input,.api-panel select{padding:13px;border:1px solid var(--line);border-radius:9px;background:#fbfcfb}.api-result{margin-top:22px;padding:22px;background:#07110f;color:#dce9e3;border-radius:12px;min-height:130px}.api-result span{font-size:10px;letter-spacing:.18em;color:#70dba8;font-weight:800}.api-result p{color:#9eb1a9;line-height:1.6}.api-result pre{white-space:pre-wrap;color:#dce9e3;font-size:11px}.reveal{opacity:0;transform:translateY(18px);transition:.7s ease}.reveal.visible{opacity:1;transform:none}@media(max-width:900px){.nav-links{display:none}.menu-btn{display:block}.hero-grid,.split{grid-template-columns:1fr}.hero{padding:75px 0}.hero-visual{min-height:390px}.numbers{grid-template-columns:1fr 1fr}.numbers div:nth-child(2){border-right:0}.numbers div:nth-child(-n+2){border-bottom:1px solid var(--line)}.course-grid,.partner-grid{grid-template-columns:1fr}.premium-box,.access-inner{flex-direction:column;align-items:flex-start}.footer-grid{grid-template-columns:1fr 1fr}.crm-main{padding:30px 20px}.sidebar{width:190px}.crm-main{margin-left:190px;width:calc(100% - 190px)}.stats{grid-template-columns:1fr 1fr}.crm-panels{grid-template-columns:1fr}.api-panel form{grid-template-columns:1fr}.contact-grid{grid-template-columns:1fr}}@media(max-width:600px){.container{width:min(100% - 26px,1180px)}.nav{min-height:68px}.hero h1{font-size:48px}.hero-visual{min-height:330px}.chart-card{transform:none;padding:15px}.chart-card svg{height:190px}.floating-card{right:5px;bottom:15px}.numbers{transform:translateY(-25px);grid-template-columns:1fr}.numbers div{border-right:0!important;border-bottom:1px solid var(--line)}.numbers div:last-child{border-bottom:0}.section{padding:75px 0}.section-head{display:block}.section-head .text-link{display:block;margin-top:20px}.premium-box{padding:35px}.official-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr}.footer-bottom{gap:10px}.contact-grid{grid-template-columns:1fr}.sidebar{position:static;width:100%;min-height:auto;display:grid;grid-template-columns:1fr 1fr}.crm{display:block}.crm-main{margin:0;width:100%}.crm-top{display:block}.stats{grid-template-columns:1fr}.quick-grid{grid-template-columns:1fr}.crm-top h1{font-size:39px}}
.verified-link{margin:0 0 18px;padding:22px;background:#e8f6ee;border:1px solid #b9dfc8;border-radius:14px}.verified-link span{display:block;font-size:10px;letter-spacing:.18em;color:var(--green);font-weight:900;margin-bottom:12px}.verified-link small{display:block;text-align:center;color:#63706b;font-size:10px;margin-top:10px}

.table-wrap{overflow:auto}.crm-table{width:100%;border-collapse:collapse;font-size:11px}.crm-table th,.crm-table td{padding:13px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.crm-table th{font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:#718079}.crm-table tr:hover td{background:#fafcfb}.alert{padding:14px;border-radius:10px;margin-bottom:15px}.alert.error{background:#fff0f0;color:#a23b3b}.alert.success{background:#e8f6ee;color:#206a48}.panel code{background:#eef2ef;padding:2px 5px;border-radius:4px}

.ticker{position:relative;z-index:30}.ticker-track{will-change:transform}.ad-section{padding:18px 0}.ad-slot{min-height:90px;margin:18px 0 30px;border:1px dashed #cbd6d0;border-radius:12px;background:#fbfcfb;display:flex;align-items:center;justify-content:center;overflow:hidden;text-align:center}.ad-slot>span{font-size:9px;letter-spacing:.2em;color:#89958f;font-weight:800}.ad-slot iframe,.ad-slot img{max-width:100%}.article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:35px 0}.article-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;display:flex;flex-direction:column;gap:10px}.article-card img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:12px}.article-card small{font-size:9px;letter-spacing:.16em;color:var(--green);font-weight:900}.article-card h2{font-size:29px}.article-card p{color:var(--muted);font-size:13px;line-height:1.65}.article-page{padding:85px 0;max-width:920px}.article-page>h1{font-size:clamp(46px,7vw,78px);max-width:850px}.article-meta{color:var(--muted);font-size:12px;margin:20px 0 25px}.article-cover{width:100%;max-height:520px;object-fit:cover;border-radius:18px;margin:8px 0 30px}.article-body{background:#fff;border:1px solid var(--line);border-radius:18px;padding:34px;line-height:1.9;color:#36423d;font-size:16px;white-space:normal}.article-body br{content:""}.article-page .ad-slot{margin:28px 0}.form-note code{font-size:10px}@media(max-width:900px){.article-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.article-grid{grid-template-columns:1fr}.article-page{padding:65px 0}.article-body{padding:22px;font-size:15px}.ad-slot{min-height:70px}}
.lead-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.lead-filters select,.lead-actions select,.note-form input{padding:10px 11px;border:1px solid var(--line);border-radius:8px;background:#fbfcfb;font:inherit;font-size:11px}.lead-filters .btn{padding:10px 14px}.lead-actions{display:grid;gap:7px;min-width:210px}.lead-actions form{display:flex;gap:5px;flex-wrap:wrap}.mini-btn{border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px 10px;font-size:10px;font-weight:800;cursor:pointer}.mini-btn.complete{background:#e8f6ee;border-color:#b9dfc8;color:#17613f}.mini-btn:disabled{opacity:.6;cursor:not-allowed}.note-form input{min-width:120px;flex:1}@media(max-width:700px){.lead-filters>*{width:100%}.lead-actions{min-width:180px}.lead-actions form{display:grid;grid-template-columns:1fr auto}.lead-actions select,.note-form input{width:100%}.crm-table th,.crm-table td{padding:10px 8px}.panel-head{gap:12px;align-items:flex-start}.panel-head .btn{white-space:nowrap}}
.dashboard-stats{grid-template-columns:repeat(4,1fr)}@media(max-width:1100px){.dashboard-stats{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){.dashboard-stats{grid-template-columns:1fr 1fr}}@media(max-width:480px){.dashboard-stats{grid-template-columns:1fr}}


/* ==========================================================
   STOCK LEARNERS CRM — OFFICIAL BRAND
   Phase 3
   ========================================================== */

.sidebar .crm-brand{
    display:flex;
    align-items:center;
    gap:12px;
    padding:0 2px 22px;
    margin-bottom:14px;
    border-bottom:1px solid rgba(255,255,255,.09);
}

.sidebar .crm-brand:hover{
    color:#fff;
}

.crm-brand-logo{
    width:46px;
    height:46px;
    flex:0 0 46px;
    display:block;
    object-fit:cover;
    border-radius:50%;
    background:#fff;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.10),
        0 8px 24px rgba(0,0,0,.22);
}

.crm-brand-copy{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:4px;
    line-height:1;
}

.crm-brand-copy strong{
    color:#fff;
    font-size:12px;
    font-weight:800;
    letter-spacing:.08em;
    white-space:nowrap;
}

.crm-brand-copy small{
    color:#76a28f;
    font-size:8px;
    font-weight:800;
    letter-spacing:.18em;
    white-space:nowrap;
}

@media(max-width:600px){

    .sidebar .crm-brand{
        grid-column:1 / -1;
        margin-bottom:8px;
    }

    .crm-brand-logo{
        width:42px;
        height:42px;
        flex-basis:42px;
    }
}


/* ==========================================================
   STOCK LEARNERS CRM — SIDEBAR STAFF AREA
   Phase 3B
   ========================================================== */

.crm-sidebar-spacer{
    flex:1 1 auto;
    min-height:20px;
}

.crm-user-card{
    display:flex;
    align-items:center;
    gap:11px;
    margin-top:16px;
    padding:14px 10px;
    border-top:1px solid rgba(255,255,255,.08);
}

.crm-user-avatar{
    width:36px;
    height:36px;
    flex:0 0 36px;
    display:grid;
    place-items:center;
    border-radius:11px;
    background:linear-gradient(145deg,#19a66d,#0d7d52);
    color:#fff;
    font-size:13px;
    font-weight:900;
    box-shadow:0 7px 20px rgba(0,0,0,.18);
}

.crm-user-info{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:4px;
}

.crm-user-info strong{
    overflow:hidden;
    color:#fff;
    font-size:11px;
    font-weight:800;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.crm-user-info span{
    color:#759589;
    font-size:8px;
    font-weight:900;
    letter-spacing:.15em;
}

.sidebar .crm-signout{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-top:0;
    border:1px solid rgba(255,255,255,.08);
    color:#9fb3aa;
}

.sidebar .crm-signout:hover{
    border-color:rgba(255,255,255,.14);
    background:#123126;
    color:#fff;
}

@media(max-width:600px){

    .crm-sidebar-spacer{
        display:none;
    }

    .crm-user-card{
        grid-column:1 / -1;
        margin-top:8px;
    }

    .sidebar .crm-signout{
        grid-column:1 / -1;
    }
}


/* ==========================================================
   CRM LOGO SIZE SAFETY FIX
   ========================================================== */

.sidebar .crm-brand img.crm-brand-logo{
    display:block !important;
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    min-height:46px !important;
    max-width:46px !important;
    max-height:46px !important;
    flex:0 0 46px !important;
    object-fit:cover !important;
    object-position:center !important;
    border-radius:50% !important;
}

.sidebar .crm-brand{
    width:100%;
    max-width:100%;
    overflow:hidden;
}

@media(max-width:600px){
    .sidebar .crm-brand img.crm-brand-logo{
        width:42px !important;
        height:42px !important;
        min-width:42px !important;
        min-height:42px !important;
        max-width:42px !important;
        max-height:42px !important;
        flex-basis:42px !important;
    }
}


/* ==========================================================
   CRM BRAND HEADER ALIGNMENT FIX
   ========================================================== */

.sidebar .crm-brand{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    width:100% !important;
    padding:0 0 18px !important;
    margin:0 0 10px !important;
    overflow:visible !important;
}

.sidebar .crm-brand img.crm-brand-logo{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    min-height:38px !important;
    max-width:38px !important;
    max-height:38px !important;
    flex:0 0 38px !important;
    object-fit:cover !important;
    border-radius:50% !important;
}

.sidebar .crm-brand-copy{
    flex:1 1 auto !important;
    min-width:0 !important;
    overflow:hidden !important;
}

.sidebar .crm-brand-copy strong{
    display:block !important;
    max-width:100% !important;
    overflow:hidden !important;
    font-size:10px !important;
    line-height:1.2 !important;
    letter-spacing:.055em !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
}

.sidebar .crm-brand-copy small{
    display:block !important;
    max-width:100% !important;
    margin-top:4px !important;
    overflow:hidden !important;
    font-size:7px !important;
    line-height:1.2 !important;
    letter-spacing:.12em !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
}


/* ==========================================================
   STOCK LEARNERS CRM — NAVIGATION GROUPS
   Phase 3C
   ========================================================== */

.crm-side-nav{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.crm-nav-group{
    display:flex;
    flex-direction:column;
    gap:3px;
}

.crm-nav-label{
    padding:0 12px 5px;
    color:#577268;
    font-size:7px;
    font-weight:900;
    letter-spacing:.19em;
    text-transform:uppercase;
}

.sidebar .crm-side-nav a{
    position:relative;
    display:flex;
    align-items:center;
    min-height:36px;
    padding:10px 12px;
    border-radius:8px;
    color:#a9bbb4;
    font-size:11px;
    line-height:1.25;
    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

.sidebar .crm-side-nav a:hover{
    background:rgba(255,255,255,.055);
    color:#fff;
    transform:translateX(2px);
}

.sidebar .crm-side-nav a.side-active{
    background:#123d2e;
    color:#fff;
    font-weight:800;
}

.sidebar .crm-side-nav a.side-active::before{
    content:"";
    position:absolute;
    left:0;
    top:9px;
    bottom:9px;
    width:3px;
    border-radius:0 4px 4px 0;
    background:#19a66d;
}

@media(max-width:600px){

    .crm-side-nav{
        grid-column:1 / -1;
        display:grid;
        grid-template-columns:1fr;
        gap:16px;
    }

    .crm-nav-group{
        min-width:0;
    }

    .crm-nav-label{
        padding-left:10px;
    }
}


/* ============================================================
   STOCK LEARNERS CRM — TICKET WORKSPACE
   ============================================================ */

.ticket-stat-grid{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:12px;
    margin:18px 0 22px;
}

.ticket-stat{
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    min-height:104px;
    padding:17px 18px;
    border:1px solid #dfe7e2;
    border-radius:14px;
    background:#fff;
    color:#07110f;
    text-decoration:none;
    overflow:hidden;
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.ticket-stat::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:3px;
    background:#19a66d;
    opacity:.18;
}

.ticket-stat:hover{
    transform:translateY(-2px);
    border-color:#bfd6ca;
    box-shadow:0 10px 28px rgba(7,17,15,.07);
}

.ticket-stat span{
    color:#65736d;
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.ticket-stat strong{
    margin-top:10px;
    color:#07110f;
    font-family:"Playfair Display",serif;
    font-size:29px;
    line-height:1;
}

.ticket-stat:nth-child(3)::after{
    background:#b99652;
    opacity:.75;
}

.ticket-stat:nth-child(4)::after{
    background:#0d7d52;
    opacity:.55;
}


/* Filters */

.ticket-quick-links{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:0 0 14px;
}

.ticket-quick-links a{
    display:inline-flex;
    align-items:center;
    min-height:32px;
    padding:6px 11px;
    border:1px solid #dfe7e2;
    border-radius:9px;
    background:#f8faf8;
    color:#0d7d52;
    font-size:12px;
    font-weight:800;
    text-decoration:none;
}

.ticket-quick-links a:hover{
    background:#eef6f1;
    border-color:#bfd6ca;
}


/* Ticket table */

.crm-table td{
    vertical-align:middle;
}

.crm-table td small{
    color:#718079;
    font-size:10px;
}

.ticket-overdue-row{
    background:#fffaf2;
}

.ticket-overdue{
    display:inline-flex;
    margin-top:5px;
    padding:4px 7px;
    border:1px solid #ead8b4;
    border-radius:999px;
    background:#fff6e4;
    color:#8c6422;
    font-size:9px;
    font-weight:900;
    letter-spacing:.06em;
}


/* Priority badges */

.ticket-priority{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:62px;
    padding:5px 8px;
    border:1px solid #dfe7e2;
    border-radius:999px;
    background:#f5f8f6;
    color:#52615a;
    font-size:9px;
    font-weight:900;
    letter-spacing:.05em;
}

.ticket-priority-low{
    background:#f5f8f6;
    color:#66746e;
}

.ticket-priority-normal{
    background:#edf6f1;
    color:#0d7d52;
    border-color:#d6e9df;
}

.ticket-priority-high{
    background:#fff6e4;
    color:#8c6422;
    border-color:#ead8b4;
}

.ticket-priority-urgent{
    background:#fff0ed;
    color:#a23a2a;
    border-color:#efd1ca;
}


/* Ticket detail */

.ticket-detail-panel{
    margin-top:20px;
}

.ticket-detail-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
    margin:18px 0;
}

.ticket-detail-grid > div{
    min-width:0;
    padding:14px 15px;
    border:1px solid #e1e8e4;
    border-radius:12px;
    background:#fafcfb;
}

.ticket-detail-grid span{
    display:block;
    margin-bottom:6px;
    color:#75827c;
    font-size:9px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.ticket-detail-grid strong{
    display:block;
    color:#07110f;
    font-size:13px;
    overflow-wrap:anywhere;
}


/* Customer contact */

.ticket-contact-card{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px 18px;
    margin:0 0 20px;
    padding:15px 17px;
    border:1px solid #dce6e0;
    border-radius:12px;
    background:#f4f8f5;
}

.ticket-contact-card strong{
    color:#07110f;
}

.ticket-contact-card span{
    color:#5f6d66;
    font-size:12px;
    overflow-wrap:anywhere;
}


/* Timeline */

.ticket-history-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-top:18px;
}

.ticket-history-grid > div,
.ticket-assignment-history{
    min-width:0;
    padding:18px;
    border:1px solid #e0e7e3;
    border-radius:14px;
    background:#fff;
}

.ticket-history-grid h3,
.ticket-assignment-history h3{
    margin-top:0;
}

.ticket-assignment-history{
    margin-top:18px;
}

.ticket-event{
    position:relative;
    margin-top:12px;
    padding:13px 14px 13px 17px;
    border:1px solid #e5ebe7;
    border-radius:11px;
    background:#fafcfb;
}

.ticket-event::before{
    content:"";
    position:absolute;
    left:0;
    top:12px;
    bottom:12px;
    width:3px;
    border-radius:0 4px 4px 0;
    background:#19a66d;
}

.ticket-event strong{
    display:block;
    color:#07110f;
    font-size:12px;
}

.ticket-event span{
    display:block;
    margin-top:3px;
    color:#7a8781;
    font-size:10px;
}

.ticket-event p{
    margin:8px 0 0;
    color:#48564f;
    font-size:12px;
    line-height:1.55;
}


/* Better View button */

.crm-table .mini-btn{
    white-space:nowrap;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media(max-width:1200px){

    .ticket-stat-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .ticket-detail-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}


@media(max-width:850px){

    .ticket-stat-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .ticket-history-grid{
        grid-template-columns:1fr;
    }
}


@media(max-width:600px){

    .ticket-stat-grid{
        grid-template-columns:1fr 1fr;
        gap:9px;
    }

    .ticket-stat{
        min-height:88px;
        padding:14px;
    }

    .ticket-stat strong{
        font-size:24px;
    }

    .ticket-detail-grid{
        grid-template-columns:1fr;
    }

    .ticket-contact-card{
        align-items:flex-start;
        flex-direction:column;
    }
}


@media(max-width:420px){

    .ticket-stat-grid{
        grid-template-columns:1fr;
    }
}

/* ==========================================================
   PHASE 4E.2B - TICKET ACTION WORKSPACE
   ========================================================== */

.ticket-action-workspace{
    margin:24px 0;
    padding:22px;
    border:1px solid rgba(7,17,15,.09);
    border-radius:18px;
    background:#fff;
}

.ticket-action-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
    margin-top:16px;
}

.ticket-action-card{
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:16px;
    border:1px solid rgba(7,17,15,.08);
    border-radius:14px;
    background:#f6f8f5;
}

.ticket-action-card label,
.ticket-note-form label{
    display:flex;
    flex-direction:column;
    gap:7px;
}

.ticket-action-card label > span,
.ticket-note-form label > span{
    font-size:12px;
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.ticket-action-card select,
.ticket-action-card input,
.ticket-note-form textarea{
    width:100%;
}

.ticket-action-card small{
    opacity:.7;
    line-height:1.45;
}

.ticket-note-form{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:16px;
    padding:18px;
    border:1px solid rgba(7,17,15,.08);
    border-radius:14px;
    background:#f6f8f5;
}

.ticket-note-form textarea{
    resize:vertical;
    min-height:100px;
}

@media (max-width:1100px){
    .ticket-action-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media (max-width:700px){
    .ticket-action-grid{
        grid-template-columns:1fr;
    }

    .ticket-action-workspace{
        padding:16px;
    }
}


/* ==========================================================
   PHASE 4E.2C
   CRM RESPONSIVE NAVIGATION
   ========================================================== */

.crm-menu-toggle{
    display:none;
}

.crm-sidebar-overlay{
    display:none;
}


@media (max-width:900px){

    body.crm{
        display:block;
        min-height:100vh;
    }

    body.crm.crm-nav-open{
        overflow:hidden;
    }


    body.crm .crm-main{
        width:100%;
        margin:0;
        padding:
            78px
            18px
            32px;
    }


    body.crm .sidebar{
        position:fixed;
        z-index:1002;
        top:0;
        bottom:0;
        left:0;

        width:min(82vw,300px);
        height:100dvh;

        transform:translateX(-105%);
        transition:transform .22s ease;

        overflow-y:auto;
        overscroll-behavior:contain;

        box-shadow:
            18px 0 45px
            rgba(0,0,0,.18);
    }


    body.crm.crm-nav-open .sidebar{
        transform:translateX(0);
    }


    .crm-sidebar-overlay{
        display:block;

        position:fixed;
        z-index:1001;
        inset:0;

        background:rgba(0,0,0,.42);

        opacity:0;
        visibility:hidden;

        transition:
            opacity .2s ease,
            visibility .2s ease;
    }


    body.crm.crm-nav-open .crm-sidebar-overlay{
        opacity:1;
        visibility:visible;
    }


    .crm-menu-toggle{
        display:flex;

        position:fixed;
        z-index:1003;

        top:14px;
        left:14px;

        width:44px;
        height:44px;

        align-items:center;
        justify-content:center;
        flex-direction:column;

        gap:5px;

        padding:0;

        border:1px solid
            rgba(7,17,15,.12);

        border-radius:12px;

        background:#fff;

        box-shadow:
            0 8px 28px
            rgba(7,17,15,.10);

        cursor:pointer;
    }


    .crm-menu-toggle span{
        display:block;

        width:19px;
        height:2px;

        border-radius:2px;

        background:#07110f;

        transition:
            transform .2s ease,
            opacity .2s ease;
    }


    body.crm.crm-nav-open
    .crm-menu-toggle span:nth-child(1){
        transform:
            translateY(7px)
            rotate(45deg);
    }


    body.crm.crm-nav-open
    .crm-menu-toggle span:nth-child(2){
        opacity:0;
    }


    body.crm.crm-nav-open
    .crm-menu-toggle span:nth-child(3){
        transform:
            translateY(-7px)
            rotate(-45deg);
    }


    body.crm .ticket-detail-panel{
        scroll-margin-top:78px;
    }
}


@media (max-width:600px){

    body.crm .crm-main{
        padding:
            72px
            12px
            24px;
    }


    .crm-menu-toggle{
        top:12px;
        left:12px;

        width:42px;
        height:42px;
    }


    body.crm .sidebar{
        width:min(86vw,285px);
    }


    body.crm .ticket-detail-grid{
        grid-template-columns:1fr;
    }


    body.crm .ticket-history-grid{
        grid-template-columns:1fr;
    }
}


/* ==========================================================
   PHASE 4E.2D
   PUBLIC MOBILE NAVIGATION
   ========================================================== */

@media (max-width:900px){

    body.public-nav-open{
        overflow:hidden;
    }

    .nav-wrap{
        z-index:900;
    }

    .nav{
        position:relative;
    }

    .menu-btn{
        display:flex;
        position:relative;
        z-index:903;

        width:42px;
        height:42px;

        align-items:center;
        justify-content:center;

        flex:0 0 42px;

        padding:0;

        border:1px solid rgba(7,17,15,.10);
        border-radius:11px;

        background:#fff;
        color:var(--ink);

        font-family:Arial,sans-serif;
        font-size:23px;
        line-height:1;

        box-shadow:0 7px 22px rgba(7,17,15,.08);

        cursor:pointer;
    }

    .nav-links{
        display:flex;

        position:absolute;

        top:calc(100% + 8px);
        left:0;
        right:0;

        flex-direction:column;
        align-items:stretch;

        gap:4px;

        padding:12px;

        border:1px solid var(--line);
        border-radius:16px;

        background:rgba(255,255,255,.98);

        box-shadow:0 24px 65px rgba(7,17,15,.16);

        opacity:0;
        visibility:hidden;
        pointer-events:none;

        transform:translateY(-8px);

        transition:
            opacity .18s ease,
            transform .18s ease,
            visibility .18s ease;
    }

    .nav-links.nav-open{
        opacity:1;
        visibility:visible;
        pointer-events:auto;
        transform:translateY(0);
    }

    .nav-links a{
        display:block;

        width:100%;

        padding:13px 14px;

        border-radius:9px;

        font-size:13px;
        font-weight:700;
    }

    .nav-links a:hover{
        background:#f1f6f3;
    }

    .nav-links .nav-cta{
        margin-top:4px;

        background:var(--green);
        color:#fff !important;

        text-align:center;
    }

    .nav-links .login-link{
        border-top:1px solid var(--line);
        border-radius:0;

        margin-top:5px;
        padding-top:15px;
    }
}


@media (max-width:600px){

    .nav-links{
        left:-2px;
        right:-2px;

        max-height:calc(100vh - 115px);
        overflow-y:auto;

        overscroll-behavior:contain;
    }

    .menu-btn{
        width:40px;
        height:40px;
        flex-basis:40px;

        font-size:22px;
    }
}


/* ==========================================================
   PHASE 5B
   DAILY LIVE CRM
   ========================================================== */

.live-editor{
    max-width:900px;
}

.live-inline-form{
    display:inline-block;
    margin:3px 3px 3px 0;
}

.live-inline-form button{
    border:1px solid rgba(7,17,15,.13);
    background:#fff;
    color:#07110f;
    border-radius:8px;
    padding:7px 10px;
    font:inherit;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
}

.live-inline-form button:hover{
    background:#f2f6f3;
}

.live-inline-form .live-danger{
    color:#a42d2d;
}

.live-status{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:82px;
    padding:6px 9px;
    border-radius:999px;
    font-size:11px;
    font-weight:800;
    letter-spacing:.04em;
}

.live-status-live{
    background:#e4f7ee;
    color:#087249;
}

.live-status-scheduled{
    background:#f6f1e7;
    color:#806226;
}

.live-status-ended{
    background:#edf0ef;
    color:#4d5854;
}

.live-status-archived{
    background:#f0f0f0;
    color:#6c6c6c;
}

.live-empty{
    padding:28px 4px;
}

.live-empty strong{
    display:block;
    margin-bottom:6px;
}

.live-empty p{
    margin:0;
    color:var(--muted);
}

.optional-label{
    font-size:11px;
    font-weight:600;
    color:var(--muted);
}

@media(max-width:900px){

    .live-table td:last-child{
        min-width:190px;
    }
}


/* ==========================================================
   PHASE 5C
   PUBLIC DAILY LIVE
   ========================================================== */

.live-public-page{
    background:var(--paper);
}

.public-live-hero{
    padding-top:80px;
}

.public-live-heading{
    max-width:850px;
    margin-bottom:42px;
}

.public-live-heading h1{
    font-size:clamp(48px,7vw,82px);
}

.public-live-featured{
    display:grid;
    grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr);
    gap:34px;
    align-items:center;
}

.public-live-player{
    position:relative;
    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;
    border-radius:24px;
    background:linear-gradient(145deg,#07130f,#102e24);
    box-shadow:var(--shadow);
}

.public-live-player iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
}

.public-live-upcoming{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:35px;
    color:#fff;
    background:
        radial-gradient(circle at center,rgba(25,166,109,.22),transparent 35%),
        linear-gradient(145deg,#07130f,#102e24);
}

.public-live-upcoming small{
    margin:15px 0 7px;
    color:#9db5aa;
    font-size:11px;
    letter-spacing:.1em;
    text-transform:uppercase;
}

.public-live-upcoming strong{
    max-width:600px;
    font-family:"Playfair Display",Georgia,serif;
    font-size:clamp(26px,4vw,44px);
    line-height:1.05;
}

.public-live-play{
    width:68px;
    height:68px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#fff;
    color:var(--green);
    font-size:20px;
    box-shadow:0 14px 45px rgba(0,0,0,.2);
}

.public-live-info{
    min-width:0;
}

.public-live-info h2{
    margin-top:18px;
    font-size:clamp(34px,4vw,52px);
}

.public-live-info>p:not(.public-live-time){
    color:var(--muted);
    line-height:1.75;
}

.public-live-time{
    margin:12px 0;
    color:#66736e;
    font-size:12px;
    font-weight:700;
}

.public-live-badge{
    display:inline-flex;
    align-items:center;
    padding:8px 11px;
    border-radius:999px;
    font-size:10px;
    font-weight:900;
    letter-spacing:.1em;
}

.public-live-badge.is-live{
    background:#e4f7ee;
    color:#087249;
}

.public-live-badge.is-scheduled{
    background:#f6f1e7;
    color:#806226;
}

.public-live-badge.is-ended{
    background:#edf0ef;
    color:#4d5854;
}

.public-live-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:24px;
}

.public-live-navigation{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    gap:12px;
    align-items:center;
    margin-top:25px;
    padding-top:20px;
    border-top:1px solid var(--line);
    font-size:11px;
    font-weight:800;
}

.public-live-navigation>*:first-child{
    text-align:left;
}

.public-live-navigation>*:nth-child(2){
    text-align:center;
    color:var(--green);
}

.public-live-navigation>*:last-child{
    text-align:right;
}

.public-live-navigation span{
    color:#a0aaa5;
}

.public-live-empty{
    min-height:390px;
    border-radius:24px;
    border:1px solid var(--line);
    background:#fff;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:45px;
    box-shadow:var(--shadow);
}

.public-live-empty h2{
    margin:24px 0 8px;
    font-size:clamp(32px,5vw,50px);
}

.public-live-empty p{
    color:var(--muted);
    margin:0 0 25px;
}

.public-live-archive{
    background:#fff;
}

.public-live-count{
    color:var(--muted);
    font-size:12px;
    font-weight:700;
}

.public-live-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px;
}

.public-live-card{
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:18px;
    background:var(--paper);
}

.public-live-thumb{
    position:relative;
    display:block;
    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;
    background:linear-gradient(145deg,#07130f,#102e24);
}

.public-live-thumb img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    transition:transform .3s ease;
}

.public-live-card:hover .public-live-thumb img{
    transform:scale(1.025);
}

.public-live-thumb span{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    width:52px;
    height:52px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:rgba(255,255,255,.94);
    color:var(--green);
    box-shadow:0 10px 35px rgba(0,0,0,.22);
}

.public-live-card-copy{
    padding:21px;
}

.public-live-card-copy small{
    display:block;
    color:var(--green);
    font-size:9px;
    font-weight:900;
    letter-spacing:.1em;
    text-transform:uppercase;
}

.public-live-card-copy h3{
    margin:9px 0 17px;
    font-family:"Playfair Display",Georgia,serif;
    font-size:25px;
    line-height:1.08;
}

.public-live-card-copy a{
    color:var(--green);
    font-size:11px;
    font-weight:900;
}


@media(max-width:900px){

    .public-live-featured{
        grid-template-columns:1fr;
    }

    .public-live-info{
        max-width:720px;
    }

    .public-live-grid{
        grid-template-columns:1fr 1fr;
    }
}


@media(max-width:600px){

    .public-live-hero{
        padding-top:60px;
    }

    .public-live-heading{
        margin-bottom:28px;
    }

    .public-live-heading h1{
        font-size:46px;
    }

    .public-live-player{
        border-radius:16px;
    }

    .public-live-upcoming{
        padding:22px;
    }

    .public-live-play{
        width:56px;
        height:56px;
    }

    .public-live-navigation{
        grid-template-columns:1fr;
    }

    .public-live-navigation>*{
        text-align:left!important;
    }

    .public-live-grid{
        grid-template-columns:1fr;
    }

    .public-live-empty{
        min-height:330px;
        padding:30px 22px;
    }
}


/* ==========================================================
   PHASE 5C.1
   LIVE DESCRIPTION COLLAPSE / EXPAND
   ========================================================== */

.public-live-description{
    margin-top:16px;
    color:var(--muted);
}

.public-live-description-text{
    position:relative;
    overflow:hidden;
    max-height:7.2em;
    line-height:1.8;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
}

.public-live-description:not(.is-expanded)
.public-live-description-text{
    -webkit-mask-image:
        linear-gradient(
            to bottom,
            #000 72%,
            transparent 100%
        );

    mask-image:
        linear-gradient(
            to bottom,
            #000 72%,
            transparent 100%
        );
}

.public-live-description.is-expanded
.public-live-description-text{
    max-height:none;
    -webkit-mask-image:none;
    mask-image:none;
}

.public-live-description-text a{
    color:var(--green);
    font-weight:700;
    text-decoration:underline;
    text-decoration-thickness:1px;
    text-underline-offset:3px;
}

.public-live-description-toggle{
    appearance:none;
    border:0;
    background:transparent;
    color:var(--green);
    padding:8px 0 0;
    margin:0;
    cursor:pointer;
    font:inherit;
    font-size:11px;
    font-weight:900;
}

.public-live-description-toggle:hover{
    text-decoration:underline;
    text-underline-offset:3px;
}

.public-live-description-toggle[hidden]{
    display:none!important;
}


@media(max-width:600px){

    .public-live-description-text{
        max-height:6.8em;
        line-height:1.7;
    }

}


/* ==========================================================
   PHASE 5C.2
   HOMEPAGE DYNAMIC LIVE ROOM
   ========================================================== */

.home-live-split{
    align-items:center;
}

.home-live-meta{
    margin:18px 0 10px;
    display:flex;
    flex-direction:column;
    gap:5px;
}

.home-live-meta strong{
    max-width:520px;
    font-family:"Playfair Display",Georgia,serif;
    font-size:clamp(21px,2vw,29px);
    line-height:1.12;
    color:var(--ink);
}

.home-live-meta small{
    color:#68746f;
    font-size:10px;
    font-weight:800;
    letter-spacing:.03em;
}

.home-live-description{
    display:-webkit-box;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    line-clamp:3;
    max-width:540px;
}

.home-live-status-now{
    color:var(--green);
}

.home-live-player{
    position:relative;
    overflow:hidden;
}

.home-live-player iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
}

.home-live-player .video-glass{
    text-decoration:none;
}

.home-live-upcoming{
    padding:28px;
    text-align:center;
}

.home-live-upcoming b{
    max-width:360px;
    line-height:1.2;
}


@media(max-width:900px){

    .home-live-meta strong{
        max-width:none;
    }

    .home-live-description{
        max-width:none;
    }

}


@media(max-width:600px){

    .home-live-meta{
        margin-top:15px;
    }

    .home-live-meta strong{
        font-size:22px;
    }

}


/* ==========================================================
   PHASE 5C.1C
   CRM LIVE DESCRIPTION TEMPLATES
   ========================================================== */

.live-template-apply{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
    align-items:end;
    margin-bottom:6px;
}

.live-template-apply label{
    margin:0;
}

.live-template-apply-btn{
    white-space:nowrap;
    min-height:46px;
}

.live-template-note{
    display:block;
    margin:-1px 0 16px;
    line-height:1.6;
}

.live-template-note strong{
    color:var(--green);
}

#live-description{
    min-height:210px;
    resize:vertical;
}

.live-template-manager{
    margin-top:22px;
}

.live-template-save-grid{
    max-width:900px;
    margin-bottom:24px;
}

.live-template-save-form textarea{
    min-height:230px;
    resize:vertical;
}

.live-template-form-actions{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
}

.live-template-preview{
    max-width:520px;
    margin-top:7px;
    color:var(--muted);
    font-size:11px;
    line-height:1.55;
    white-space:pre-line;
}

.live-template-edit-btn{
    appearance:none;
    border:0;
    background:transparent;
    padding:0;
    margin:0 8px 0 0;
    color:var(--green);
    cursor:pointer;
    font:inherit;
    font-size:11px;
    font-weight:800;
}

.live-template-edit-btn:hover{
    text-decoration:underline;
    text-underline-offset:3px;
}

.live-template-empty{
    min-height:auto;
    padding:28px;
}


@media(max-width:700px){

    .live-template-apply{
        grid-template-columns:1fr;
    }

    .live-template-apply-btn{
        width:100%;
    }

    .live-template-form-actions{
        align-items:stretch;
        flex-direction:column;
    }

    .live-template-form-actions .btn{
        width:100%;
    }

}


/* ==========================================================
   PHASE 6B
   PUBLIC NOTIFICATION CENTER
   ========================================================== */

.notification-center-shell{
    position:relative;
    display:flex;
    align-items:center;
}

.notification-bell{
    position:relative;
    width:40px;
    height:40px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 40px;
    border:1px solid rgba(13,125,82,.18);
    border-radius:50%;
    background:rgba(255,255,255,.86);
    color:var(--ink);
    cursor:pointer;
    font:inherit;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.notification-bell:hover{
    transform:translateY(-1px);
    border-color:rgba(13,125,82,.38);
    background:#fff;
}

.notification-bell-icon{
    font-size:18px;
    line-height:1;
}

.notification-badge{
    position:absolute;
    top:-4px;
    right:-4px;
    min-width:18px;
    height:18px;
    padding:0 4px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:#b42318;
    color:#fff;
    font-size:10px;
    font-weight:800;
    line-height:1;
    box-shadow:0 2px 8px rgba(0,0,0,.16);
}

.notification-panel{
    position:absolute;
    z-index:1000;
    top:calc(100% + 12px);
    right:0;
    width:min(410px,calc(100vw - 24px));
    max-height:min(620px,78vh);
    overflow:hidden;
    border:1px solid rgba(7,17,15,.10);
    border-radius:18px;
    background:#fff;
    box-shadow:
        0 24px 70px rgba(7,17,15,.18);
}

.notification-panel[hidden]{
    display:none !important;
}

.notification-panel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:18px 18px 14px;
    border-bottom:1px solid rgba(7,17,15,.08);
}

.notification-panel-head strong{
    display:block;
    color:var(--ink);
    font-size:15px;
}

.notification-panel-head span{
    display:block;
    margin-top:3px;
    color:var(--muted);
    font-size:11px;
}

.notification-panel-close{
    width:34px;
    height:34px;
    border:0;
    border-radius:50%;
    background:rgba(7,17,15,.05);
    color:var(--ink);
    cursor:pointer;
    font-size:18px;
}

.notification-push-area{
    margin:14px;
    padding:14px;
    border:1px solid rgba(13,125,82,.14);
    border-radius:13px;
    background:rgba(25,166,109,.055);
}

.notification-push-area strong{
    display:block;
    color:var(--ink);
    font-size:12px;
}

.notification-push-area p{
    margin:5px 0 0;
    color:var(--muted);
    font-size:11px;
    line-height:1.55;
}

.notification-list{
    max-height:390px;
    overflow:auto;
}

.notification-center-item{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:14px;
    align-items:center;
    padding:15px 18px;
    border-top:1px solid rgba(7,17,15,.065);
}

.notification-center-item:first-child{
    border-top:0;
}

.notification-center-type{
    display:block;
    margin-bottom:5px;
    color:var(--green);
    font-size:9px;
    font-weight:900;
    letter-spacing:.11em;
}

.notification-center-item strong{
    display:block;
    color:var(--ink);
    font-size:12px;
    line-height:1.4;
}

.notification-center-item p{
    margin:5px 0;
    color:var(--muted);
    font-size:11px;
    line-height:1.5;
}

.notification-center-item small{
    color:var(--muted);
    font-size:9px;
}

.notification-center-open{
    color:var(--green);
    font-size:10px;
    font-weight:800;
    white-space:nowrap;
}

.notification-empty{
    padding:30px 18px;
    color:var(--muted);
    text-align:center;
    font-size:11px;
    line-height:1.6;
}


@media(max-width:900px){

    .notification-center-shell{
        margin-left:auto;
    }

    .notification-panel{
        position:fixed;
        top:72px;
        right:12px;
        left:12px;
        width:auto;
        max-height:calc(100vh - 90px);
    }

}


@media(max-width:600px){

    .notification-bell{
        width:38px;
        height:38px;
        flex-basis:38px;
    }

    .notification-panel{
        top:68px;
        border-radius:15px;
    }

    .notification-list{
        max-height:46vh;
    }

}


/* ==========================================================
   PHASE 6B.4
   FLOATING LIVE NOTIFICATION ENTRY
   HOME + LIVE ONLY
   ========================================================== */

.notification-center-floating{
    position:fixed;
    right:24px;
    bottom:24px;
    z-index:1200;
    display:flex;
    align-items:center;
    gap:10px;
}

.notification-center-floating .notification-bell{
    width:52px;
    height:52px;
    flex:0 0 52px;
    border:1px solid rgba(13,125,82,.22);
    background:#fff;
    box-shadow:
        0 12px 32px rgba(7,17,15,.16);
}

.notification-center-floating .notification-bell:hover{
    transform:translateY(-2px);
}

.notification-center-floating .notification-bell-icon{
    font-size:21px;
}

.notification-center-floating .notification-panel{
    position:absolute;
    top:auto;
    right:0;
    bottom:calc(100% + 12px);
}

.notification-live-nudge{
    position:absolute;
    right:calc(100% + 12px);
    bottom:2px;
    width:210px;
    padding:11px 13px;
    border:1px solid rgba(13,125,82,.14);
    border-radius:12px;
    background:#fff;
    box-shadow:
        0 12px 32px rgba(7,17,15,.13);
    opacity:1;
    visibility:visible;
    transform:translateX(0);
    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
    pointer-events:none;
}

.notification-live-nudge::after{
    content:"";
    position:absolute;
    right:-6px;
    bottom:17px;
    width:11px;
    height:11px;
    background:#fff;
    border-top:1px solid rgba(13,125,82,.14);
    border-right:1px solid rgba(13,125,82,.14);
    transform:rotate(45deg);
}

.notification-live-nudge strong{
    display:block;
    color:var(--ink);
    font-size:11px;
    line-height:1.35;
}

.notification-live-nudge span{
    display:block;
    margin-top:3px;
    color:var(--green);
    font-size:10px;
    font-weight:700;
}

.notification-live-nudge.is-hidden{
    opacity:0;
    visibility:hidden;
    transform:translateX(5px);
}


/*
 * The floating notification control must never participate
 * in the public navbar flex layout.
 */
.nav > .notification-center-shell{
    display:none !important;
}


@media(max-width:900px){

    /*
     * Restore hamburger to the right edge.
     */
    .nav .menu-btn{
        margin-left:auto;
        order:10;
    }

    .notification-center-floating{
        position:fixed;
        top:auto;
        left:auto;
        right:16px;
        bottom:18px;
        margin:0;
    }

    .notification-center-floating .notification-panel{
        position:fixed;
        top:auto;
        right:12px;
        left:12px;
        bottom:82px;
        width:auto;
        max-height:calc(100vh - 110px);
    }

    .notification-live-nudge{
        width:190px;
    }

}


@media(max-width:600px){

    .notification-center-floating{
        right:14px;
        bottom:16px;
    }

    .notification-center-floating .notification-bell{
        width:48px;
        height:48px;
        flex-basis:48px;
    }

    .notification-center-floating .notification-panel{
        right:10px;
        left:10px;
        bottom:76px;
    }

    .notification-live-nudge{
        right:calc(100% + 10px);
        width:175px;
        padding:10px 11px;
    }

}


/* ==========================================================
   PHASE 6C.3B — LIVE WEB PUSH ACTIVATION
   ========================================================== */

.notification-enable-button {
    appearance: none;
    border: 0;
    border-radius: 9px;
    margin-top: 10px;
    padding: 10px 13px;
    background: var(--green);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform .18s ease,
        opacity .18s ease;
}

.notification-enable-button:hover {
    transform: translateY(-1px);
}

.notification-enable-button:disabled {
    cursor: wait;
    opacity: .65;
    transform: none;
}


/*
 * Requirement:
 * after browser subscription + successful server save,
 * remove the floating acquisition bell/nudge.
 */
.notification-center-floating.push-is-subscribed {
    display: none !important;
}


/*
 * Ensure HTML hidden attribute always wins.
 */
.notification-badge[hidden] {
    display: none !important;
}


/* ==========================================================
   STOCK LEARNERS
   PHASE 7 — MARKET TERMINAL
   ========================================================== */

.sl-market-terminal{
    position:relative;
    z-index:2;
    width:min(100%,590px);
    height:470px;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.13);
    border-radius:22px;
    background:#07110f;
    box-shadow:0 35px 90px rgba(0,0,0,.24);
    color:#fff;
}

.sl-market-terminal-head{
    flex:0 0 58px;
    min-height:58px;
    padding:0 16px 0 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    border-bottom:1px solid rgba(255,255,255,.09);
    background:linear-gradient(135deg,#07110f,#0c2b20);
}

.sl-market-terminal-title{
    display:flex;
    flex-direction:column;
    gap:3px;
    min-width:0;
}

.sl-market-terminal-title>span{
    color:#70dba8;
    font-size:10px;
    font-weight:800;
    letter-spacing:.15em;
}

.sl-market-terminal-title>small{
    color:rgba(255,255,255,.58);
    font-size:9px;
    letter-spacing:.04em;
}

.sl-market-fullscreen{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:34px;
    padding:7px 11px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:9px;
    background:rgba(255,255,255,.08);
    color:#fff;
    font:inherit;
    font-size:10px;
    font-weight:700;
    cursor:pointer;
}

.sl-market-fullscreen:hover{
    background:rgba(255,255,255,.14);
}

.sl-market-fullscreen>span:first-child{
    font-size:16px;
    line-height:1;
}

.sl-market-symbols{
    flex:0 0 60px;
    min-height:60px;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    border-bottom:1px solid rgba(255,255,255,.09);
    background:#09100e;
}

.sl-market-symbol{
    min-width:0;
    padding:12px 8px 9px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:4px;
    border-right:1px solid rgba(255,255,255,.08);
}

.sl-market-symbol:last-child{
    border-right:0;
}

.sl-market-symbol>span{
    overflow:hidden;
    color:#f5f8f6;
    font-size:10px;
    font-weight:700;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.sl-market-symbol>small{
    overflow:hidden;
    color:rgba(255,255,255,.42);
    font-size:7px;
    letter-spacing:.08em;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.sl-market-symbol-active{
    box-shadow:inset 0 2px 0 #19a66d;
    background:rgba(25,166,109,.08);
}

.sl-market-chart-area{
    flex:1 1 auto;
    min-height:0;
    width:100%;
    background:#07110f;
}

.sl-market-chart-area iframe{
    display:block!important;
    width:100%!important;
    height:100%!important;
    border:0!important;
}

.sl-market-chart-area .tradingview-widget-copyright{
    height:28px;
    padding:5px 12px 0;
    box-sizing:border-box;
    background:#07110f;
    color:rgba(255,255,255,.45);
    font-size:9px;
    text-align:right;
}

.sl-market-chart-area .tradingview-widget-copyright a{
    color:#70dba8;
    text-decoration:none;
}

.sl-market-terminal-foot{
    flex:0 0 56px;
    min-height:56px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    border-top:1px solid rgba(255,255,255,.09);
    background:#09100e;
}

.sl-market-terminal-foot>div{
    padding:10px 14px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:2px;
    border-right:1px solid rgba(255,255,255,.08);
}

.sl-market-terminal-foot>div:last-child{
    border-right:0;
}

.sl-market-terminal-foot small{
    color:rgba(255,255,255,.38);
    font-size:7px;
    letter-spacing:.14em;
}

.sl-market-terminal-foot strong{
    color:#fff;
    font-size:10px;
    font-weight:700;
}


/* FULLSCREEN */

.sl-market-terminal:fullscreen{
    width:100vw;
    height:100vh;
    max-width:none;
    border:0;
    border-radius:0;
    box-shadow:none;
}

.sl-market-terminal:fullscreen .sl-market-chart-area{
    min-height:0;
}


/* TABLET */

@media(max-width:900px){

    .sl-market-terminal{
        width:min(100%,720px);
        height:500px;
    }

}


/* MOBILE */

@media(max-width:600px){

    .hero-visual{
        min-height:440px;
    }

    .sl-market-terminal{
        width:100%;
        height:430px;
        border-radius:16px;
    }

    .sl-market-terminal-head{
        flex-basis:54px;
        min-height:54px;
        padding:0 11px 0 13px;
    }

    .sl-market-symbols{
        flex-basis:54px;
        min-height:54px;
        overflow-x:auto;
        grid-template-columns:repeat(5,minmax(82px,1fr));
    }

    .sl-market-symbol{
        padding:10px 8px 8px;
    }

    .sl-market-fullscreen{
        padding:6px 9px;
    }

    .sl-market-fullscreen-label{
        display:none;
    }

    .sl-market-terminal-foot{
        flex-basis:52px;
        min-height:52px;
    }

    .sl-market-terminal-foot>div{
        padding:8px 10px;
    }

}


/* ==========================================================
   PHASE 7 — MARKET TERMINAL REFINEMENT
   Wider / shorter / clickable markets / daily quote
   ========================================================== */

@media(min-width:901px){

    .hero-grid{
        grid-template-columns:.92fr 1.08fr;
        gap:38px;
    }

    .sl-market-terminal{
        width:min(100%,680px);
        height:410px;
    }

}

.sl-market-symbol{
    appearance:none;
    -webkit-appearance:none;
    width:100%;
    margin:0;
    font-family:inherit;
    text-align:left;
    cursor:pointer;
    outline:0;
    border-top:0;
    border-bottom:0;
    border-left:0;
    background:#09100e;
    transition:
        background .18s ease,
        box-shadow .18s ease;
}

.sl-market-symbol:hover{
    background:rgba(25,166,109,.10);
}

.sl-market-symbol:focus-visible{
    position:relative;
    z-index:2;
    box-shadow:
        inset 0 0 0 2px
        rgba(112,219,168,.75);
}

.sl-market-symbol-active{
    background:rgba(25,166,109,.12);
    box-shadow:inset 0 2px 0 #19a66d;
}


/* Daily trading thought */

.sl-market-quote{
    position:absolute;
    left:0;
    right:0;
    top:calc(100% + 14px);

    min-height:54px;
    padding:10px 15px;

    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:12px;

    box-sizing:border-box;

    border:1px solid rgba(7,17,15,.10);
    border-radius:12px;

    background:rgba(255,255,255,.82);
    backdrop-filter:blur(10px);

    box-shadow:0 12px 35px rgba(7,17,15,.07);

    color:#07110f;
}

.sl-market-quote-label{
    color:#0d7d52;
    font-size:7px;
    font-weight:800;
    letter-spacing:.15em;
    white-space:nowrap;
}

.sl-market-quote blockquote{
    margin:0;
    min-width:0;

    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;

    font-family:"Playfair Display",serif;
    font-size:12px;
    font-style:italic;
    line-height:1.3;
}

.sl-market-quote cite{
    color:#52605b;
    font-size:9px;
    font-style:normal;
    font-weight:600;
    white-space:nowrap;
}


/*
 * Allow quote to sit beneath the chart on normal hero.
 * Fullscreen keeps everything inside the terminal.
 */

.hero-visual{
    overflow:visible;
}

.sl-market-terminal:not(:fullscreen){
    overflow:hidden;
}

@media(min-width:901px){

    .hero-visual{
        padding-bottom:68px;
    }

}


/* In fullscreen, show quote as terminal footer */

.sl-market-terminal:fullscreen{
    overflow:hidden;
}

.sl-market-terminal:fullscreen .sl-market-quote{
    position:static;
    flex:0 0 54px;
    min-height:54px;
    border:0;
    border-top:1px solid rgba(255,255,255,.09);
    border-radius:0;
    background:#09100e;
    color:#fff;
    box-shadow:none;
}

.sl-market-terminal:fullscreen .sl-market-quote cite{
    color:rgba(255,255,255,.58);
}


/* Mobile quote */

@media(max-width:600px){

    .sl-market-quote{
        top:calc(100% + 10px);
        grid-template-columns:1fr auto;
        gap:3px 8px;
        padding:9px 11px;
    }

    .sl-market-quote-label{
        grid-column:1 / -1;
    }

    .sl-market-quote blockquote{
        font-size:10px;
    }

    .sl-market-quote cite{
        font-size:8px;
    }

    .hero-visual{
        padding-bottom:70px;
    }

}


/* ==========================================================
   PHASE 7 — QUOTE STRUCTURE CORRECTION
   Quote is sibling of terminal, inside hero-visual
   ========================================================== */

.hero-visual{
    position:relative;
    overflow:visible;
}

.sl-market-quote{
    position:absolute;
    z-index:3;

    left:50%;
    top:calc(50% + 220px);

    width:min(100%,680px);
    min-height:52px;

    transform:translateX(-50%);

    padding:10px 15px;

    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:12px;

    box-sizing:border-box;

    border:1px solid rgba(7,17,15,.10);
    border-radius:12px;

    background:rgba(255,255,255,.90);
    backdrop-filter:blur(10px);

    box-shadow:0 12px 35px rgba(7,17,15,.07);

    color:#07110f;
}

.sl-market-quote blockquote{
    margin:0;
    min-width:0;

    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;

    font-family:"Playfair Display",serif;
    font-size:12px;
    font-style:italic;
    line-height:1.35;
}

.sl-market-quote cite{
    color:#52605b;
    font-size:9px;
    font-style:normal;
    font-weight:700;
    white-space:nowrap;
}


/*
 * Quote is no longer inside the fullscreen element,
 * so hide it while the chart itself is fullscreen.
 */
body:has(.sl-market-terminal:fullscreen) .sl-market-quote{
    display:none;
}


@media(min-width:901px){

    .hero-visual{
        min-height:500px;
        padding-bottom:60px;
    }

}


@media(max-width:900px){

    .sl-market-quote{
        top:auto;
        bottom:-10px;
        width:min(100%,720px);
    }

}


@media(max-width:600px){

    .hero-visual{
        min-height:510px;
        padding-bottom:72px;
    }

    .sl-market-quote{
        left:0;
        right:0;
        bottom:0;
        width:100%;

        transform:none;

        grid-template-columns:1fr auto;
        gap:3px 8px;

        padding:9px 11px;
    }

    .sl-market-quote-label{
        grid-column:1 / -1;
    }

    .sl-market-quote blockquote{
        font-size:10px;
    }

    .sl-market-quote cite{
        font-size:8px;
    }

}


/* ==========================================================
   PHASE 7 — MOBILE MARKET TERMINAL COMPACT/WIDE
   Desktop remains unchanged
   ========================================================== */

@media(max-width:600px){

    /*
     * Give the market area more horizontal room than the
     * standard mobile content column.
     */
    .hero-visual{
        width:calc(100% + 18px);
        margin-left:-9px;
        min-height:420px;
        padding-bottom:66px;
    }

    .sl-market-terminal{
        width:100%;
        height:330px;
        max-width:none;
        border-radius:14px;
    }


    /* Compact terminal header */

    .sl-market-terminal-head{
        flex:0 0 44px;
        min-height:44px;
        padding:0 9px 0 11px;
    }

    .sl-market-terminal-title{
        gap:1px;
    }

    .sl-market-terminal-title>span{
        font-size:8px;
    }

    .sl-market-terminal-title>small{
        font-size:7px;
    }

    .sl-market-fullscreen{
        min-height:28px;
        padding:4px 7px;
        border-radius:7px;
    }

    .sl-market-fullscreen>span:first-child{
        font-size:14px;
    }


    /* Five markets stay horizontally visible */

    .sl-market-symbols{
        flex:0 0 45px;
        min-height:45px;

        grid-template-columns:
            repeat(5,minmax(0,1fr));

        overflow:visible;
    }

    .sl-market-symbol{
        min-width:0;
        padding:7px 4px 5px;
    }

    .sl-market-symbol>span{
        font-size:8px;
    }

    .sl-market-symbol>small{
        font-size:6px;
    }


    /*
     * TradingView gets the remaining space.
     */

    .sl-market-chart-area{
        flex:1 1 auto;
        min-height:0;
    }


    /* Compact bottom philosophy row */

    .sl-market-terminal-foot{
        flex:0 0 40px;
        min-height:40px;
    }

    .sl-market-terminal-foot>div{
        padding:5px 7px;
    }

    .sl-market-terminal-foot small{
        font-size:6px;
    }

    .sl-market-terminal-foot strong{
        font-size:8px;
    }


    /* Quote matches wider terminal */

    .sl-market-quote{
        left:0;
        right:0;
        bottom:5px;

        width:100%;
        min-height:48px;

        padding:8px 10px;

        transform:none;
    }

    .sl-market-quote blockquote{
        font-size:9px;
    }

    .sl-market-quote cite{
        font-size:7px;
    }

}


/*
 * Extra-small phones
 */

@media(max-width:390px){

    .hero-visual{
        width:calc(100% + 22px);
        margin-left:-11px;
    }

    .sl-market-terminal{
        height:310px;
        border-radius:12px;
    }

    .sl-market-symbol>span{
        font-size:7px;
    }

    .sl-market-symbol>small{
        font-size:5px;
    }

}


/* ==========================================================
   PHASE 7 — MOBILE LANDSCAPE FULLSCREEN MARKET CHART
   ========================================================== */

.sl-market-body-lock{
    overflow:hidden!important;
}


/*
 * Native fullscreen on phones/tablets.
 */

@media(max-width:900px){

    .sl-market-terminal:fullscreen,
    .sl-market-terminal:-webkit-full-screen,
    .sl-market-terminal.sl-market-is-fullscreen{

        width:100vw!important;
        height:100vh!important;

        max-width:none!important;
        max-height:none!important;

        margin:0!important;

        border:0!important;
        border-radius:0!important;

        background:#07110f!important;
    }


    /*
     * In fullscreen, preserve only useful chart UI.
     * Smaller surrounding Stock Learners UI gives
     * TradingView maximum screen area.
     */

    .sl-market-terminal:fullscreen
    .sl-market-terminal-head,

    .sl-market-terminal:-webkit-full-screen
    .sl-market-terminal-head,

    .sl-market-terminal.sl-market-is-fullscreen
    .sl-market-terminal-head{

        flex:0 0 38px!important;
        min-height:38px!important;

        padding:0 10px!important;
    }


    .sl-market-terminal:fullscreen
    .sl-market-terminal-title small,

    .sl-market-terminal:-webkit-full-screen
    .sl-market-terminal-title small,

    .sl-market-terminal.sl-market-is-fullscreen
    .sl-market-terminal-title small{

        display:none;
    }


    .sl-market-terminal:fullscreen
    .sl-market-symbols,

    .sl-market-terminal:-webkit-full-screen
    .sl-market-symbols,

    .sl-market-terminal.sl-market-is-fullscreen
    .sl-market-symbols{

        flex:0 0 40px!important;
        min-height:40px!important;
    }


    .sl-market-terminal:fullscreen
    .sl-market-symbol,

    .sl-market-terminal:-webkit-full-screen
    .sl-market-symbol,

    .sl-market-terminal.sl-market-is-fullscreen
    .sl-market-symbol{

        padding:5px 7px!important;
    }


    .sl-market-terminal:fullscreen
    .sl-market-terminal-foot,

    .sl-market-terminal:-webkit-full-screen
    .sl-market-terminal-foot,

    .sl-market-terminal.sl-market-is-fullscreen
    .sl-market-terminal-foot{

        display:none!important;
    }


    .sl-market-terminal:fullscreen
    .sl-market-chart-area,

    .sl-market-terminal:-webkit-full-screen
    .sl-market-chart-area,

    .sl-market-terminal.sl-market-is-fullscreen
    .sl-market-chart-area{

        flex:1 1 auto!important;
        min-height:0!important;
    }

}


/*
 * Fallback for browsers that reject element fullscreen.
 *
 * This creates a full viewport market terminal.
 */

@media(max-width:900px){

    .sl-market-terminal.sl-market-mobile-fallback{

        position:fixed!important;
        z-index:2147483000!important;

        left:0!important;
        top:0!important;

        width:100vw!important;
        height:100dvh!important;

        max-width:none!important;

        margin:0!important;

        border:0!important;
        border-radius:0!important;

        background:#07110f!important;
    }


    .sl-market-mobile-fallback
    .sl-market-terminal-head{

        flex:0 0 38px!important;
        min-height:38px!important;
    }


    .sl-market-mobile-fallback
    .sl-market-terminal-title small{

        display:none;
    }


    .sl-market-mobile-fallback
    .sl-market-symbols{

        flex:0 0 40px!important;
        min-height:40px!important;
    }


    .sl-market-mobile-fallback
    .sl-market-terminal-foot{

        display:none!important;
    }


    .sl-market-mobile-fallback
    .sl-market-chart-area{

        flex:1 1 auto!important;
        min-height:0!important;
    }

}


/*
 * CSS rotation fallback.
 *
 * Used when the browser keeps the physical phone
 * in portrait even though our market terminal is fullscreen.
 */

@media(
    max-width:600px
)
and
(orientation:portrait){

    .sl-market-landscape-mode
    .sl-market-terminal.sl-market-mobile-fallback{

        width:100vh!important;
        width:100dvh!important;

        height:100vw!important;

        position:fixed!important;

        left:50%!important;
        top:50%!important;

        transform:
            translate(-50%,-50%)
            rotate(90deg)!important;

        transform-origin:center center!important;
    }

}

/* ==========================================================
   STOCK LEARNERS — PUBLIC NAV INTERACTIONS
   Shared navigation hover polish
   ========================================================== */

/* Standard navigation links */
.nav-links > a:not(.nav-cta) {
    position: relative;
    transition:
        color .18s ease,
        transform .18s ease;
}

/* Animated underline */
.nav-links > a:not(.nav-cta):not(.login-link)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    border-radius: 20px;
    background: #0d7d52;
    transform: translateX(-50%);
    transition: width .20s ease;
}

.nav-links > a:not(.nav-cta):not(.login-link):hover {
    color: #0d7d52;
    transform: translateY(-1px);
}

.nav-links > a:not(.nav-cta):not(.login-link):hover::after {
    width: 70%;
}

/* Login */
.nav-links .login-link {
    transition:
        color .18s ease,
        opacity .18s ease,
        transform .18s ease;
}

.nav-links .login-link:hover {
    color: #0d7d52;
    transform: translateY(-1px);
}

/* Main CTA */
.nav-links .nav-cta {
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;
}

.nav-links .nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 125, 82, .20);
    filter: brightness(1.04);
}

/* Keyboard accessibility */
.nav-links > a:focus-visible {
    outline: 2px solid #0d7d52;
    outline-offset: 5px;
    border-radius: 4px;
}

/* Keep mobile navigation stable */
@media (max-width: 900px) {
    .nav-links > a:not(.nav-cta):not(.login-link)::after {
        display: none;
    }

    .nav-links > a:hover {
        transform: none;
    }

    .nav-links .nav-cta:hover {
        transform: none;
    }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .nav-links > a,
    .nav-links > a::after {
        transition: none !important;
    }
}

/* ==========================================================
   STOCK LEARNERS — CURRENT PAGE NAV STATE
   ========================================================== */

.nav-links > a.active:not(.nav-cta) {
    color: #0d7d52;
    font-weight: 600;
}

.nav-links > a.active:not(.nav-cta):not(.login-link)::after {
    width: 70%;
}

/* Instant Access remains the main green CTA when active */
.nav-links > .nav-cta.active {
    box-shadow: 0 6px 18px rgba(13, 125, 82, .18);
}

/* ==========================================================
   STOCK LEARNERS — HOMEPAGE MOUSE AMBIENT GLOW
   Desktop visual enhancement only.
   ========================================================== */

.home-mouse-glow {
    position: fixed;
    top: 0;
    left: 0;

    width: 520px;
    height: 520px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(25, 166, 109, .12) 0%,
            rgba(25, 166, 109, .075) 25%,
            rgba(13, 125, 82, .035) 48%,
            rgba(13, 125, 82, 0) 72%
        );

    pointer-events: none;
    opacity: 0;

    z-index: 0;

    transition: opacity .35s ease;

    will-change: transform;
}

.home-mouse-glow.is-visible {
    opacity: 1;
}

/*
 * Keep homepage content above the ambient light.
 */
body.home-page > *:not(.home-mouse-glow) {
    position: relative;
    z-index: 1;
}

/* Never use mouse-following effects on touch devices */
@media (pointer: coarse), (max-width: 900px) {
    .home-mouse-glow {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-mouse-glow {
        display: none !important;
    }
}

/* ==========================================================
   HOMEPAGE MOUSE GLOW — VISIBILITY FIX
   Visual overlay only; never captures mouse/touch events.
   ========================================================== */

.home-mouse-glow {
    z-index: 9998 !important;
    width: 600px;
    height: 600px;
    pointer-events: none !important;

    background: radial-gradient(
        circle,
        rgba(25, 166, 109, .16) 0%,
        rgba(25, 166, 109, .10) 22%,
        rgba(25, 166, 109, .045) 46%,
        rgba(25, 166, 109, 0) 72%
    ) !important;

    mix-blend-mode: multiply;
}

/*
 * Do NOT force homepage sections above the glow.
 * The glow itself ignores all pointer interaction.
 */
body.home-page > *:not(.home-mouse-glow) {
    z-index: auto;
}

@media (pointer: coarse), (max-width: 900px) {
    .home-mouse-glow {
        display: none !important;
    }
}

/* ==========================================================
   HOMEPAGE GLOW + NOTIFICATION CENTER STACKING FIX
   ========================================================== */

/*
 * Undo the broad homepage-child stacking override introduced
 * by the mouse glow experiment.
 */
body.home-page > *:not(.home-mouse-glow) {
    z-index: revert;
}

/*
 * Mouse glow remains visual-only.
 * Keep it above page backgrounds but BELOW interactive floating UI.
 */
.home-mouse-glow {
    z-index: 50 !important;
    pointer-events: none !important;
}

/*
 * Notification Center must remain a viewport-fixed floating widget.
 */
body.home-page > .notification-center-floating {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: 24px !important;
    bottom: 24px !important;
    margin: 0 !important;
    z-index: 10000 !important;
}

/*
 * Desktop notification panel opens upward from the bell,
 * not from the browser's top-right corner.
 */
body.home-page
> .notification-center-floating
> .notification-panel {
    position: absolute !important;
    top: auto !important;
    left: auto !important;
    right: 0 !important;
    bottom: calc(100% + 12px) !important;
}

/* Tablet/mobile */
@media (max-width:900px) {

    body.home-page > .notification-center-floating {
        right: 16px !important;
        bottom: 18px !important;
    }

    body.home-page
    > .notification-center-floating
    > .notification-panel {
        position: fixed !important;
        top: auto !important;
        left: 12px !important;
        right: 12px !important;
        bottom: 82px !important;
        width: auto !important;
    }
}

@media (max-width:600px) {

    body.home-page > .notification-center-floating {
        right: 14px !important;
        bottom: 16px !important;
    }

    body.home-page
    > .notification-center-floating
    > .notification-panel {
        left: 10px !important;
        right: 10px !important;
        bottom: 76px !important;
    }
}

/* ==========================================================
   NOTIFICATION UX — HIDE ENTRY AFTER SUCCESSFUL SUBSCRIPTION
   ========================================================== */

/*
 * Once Web Push is successfully subscribed and saved,
 * the notification acquisition UI is no longer necessary.
 */
body.home-page
> .notification-center-floating.push-is-subscribed {
    display: none !important;
}

/* ==========================================================
   STOCK LEARNERS — PUBLIC MOBILE NAVIGATION FIX
   ========================================================== */

@media (max-width:900px){

    .nav{
        position:relative;
    }

    .menu-btn{
        position:relative;
        z-index:102;
        cursor:pointer;
        line-height:1;
        padding:8px;
    }

    .nav-links.nav-open{
        display:flex;
        position:absolute;
        top:calc(100% + 1px);
        left:0;
        right:0;
        z-index:101;

        flex-direction:column;
        align-items:stretch;
        gap:4px;

        padding:14px;
        background:#f6f8f5;
        border:1px solid rgba(7,17,15,.08);
        border-radius:0 0 16px 16px;

        box-shadow:0 20px 45px rgba(7,17,15,.14);
    }

    .nav-links.nav-open a{
        display:block;
        width:100%;
        padding:12px 10px;
        border-radius:9px;
    }

    .nav-links.nav-open .nav-cta{
        padding:12px 14px;
        text-align:center;
    }

    body.public-nav-open{
        overflow:hidden;
    }
}

/* ==========================================================
   STOCK LEARNERS — AUTHORITATIVE PUBLIC MOBILE NAV
   Keep this block last.
   ========================================================== */

@media (max-width:900px){

    .nav-wrap{
        overflow:visible !important;
    }

    .nav{
        position:relative !important;
        overflow:visible !important;
    }

    .nav .menu-btn{
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;

        width:42px !important;
        height:42px !important;
        flex:0 0 42px !important;

        margin-left:auto !important;
        padding:0 !important;

        position:relative !important;
        z-index:1002 !important;

        border:1px solid rgba(7,17,15,.10) !important;
        border-radius:11px !important;

        background:#fff !important;
        color:#07110f !important;

        font-family:Arial,sans-serif !important;
        font-size:23px !important;
        line-height:1 !important;

        cursor:pointer !important;
        touch-action:manipulation;
    }

    .nav .nav-links{
        display:flex !important;

        position:absolute !important;
        top:calc(100% + 8px) !important;
        left:0 !important;
        right:0 !important;
        z-index:1001 !important;

        flex-direction:column !important;
        align-items:stretch !important;
        gap:4px !important;

        padding:12px !important;

        background:#fff !important;
        border:1px solid #dce4df !important;
        border-radius:16px !important;

        box-shadow:0 24px 65px rgba(7,17,15,.16) !important;

        opacity:0 !important;
        visibility:hidden !important;
        pointer-events:none !important;

        transform:translateY(-8px) !important;

        transition:
            opacity .18s ease,
            transform .18s ease,
            visibility .18s ease !important;
    }

    .nav .nav-links.nav-open{
        display:flex !important;
        opacity:1 !important;
        visibility:visible !important;
        pointer-events:auto !important;
        transform:translateY(0) !important;
    }

    .nav .nav-links a{
        display:block !important;
        width:100% !important;
        padding:13px 14px !important;
        border-radius:9px !important;
    }

    .nav .nav-links .nav-cta{
        margin-top:4px !important;
        background:#0d7d52 !important;
        color:#fff !important;
        text-align:center !important;
    }
}


/* ==========================================================
   STOCK LEARNERS — MOBILE NAV RENDERING FIX
   JS confirmed operational on iPhone.
   ========================================================== */

@media (max-width:900px){

    .nav-wrap{
        z-index:9990 !important;
    }

    .nav .menu-btn{
        position:relative !important;
        z-index:9999 !important;
    }

    .nav .nav-links{
        display:none !important;
    }

    .nav .nav-links.nav-open{
        display:flex !important;

        position:fixed !important;
        top:132px !important;
        left:13px !important;
        right:13px !important;

        width:auto !important;
        max-height:calc(100dvh - 150px) !important;
        overflow-y:auto !important;

        z-index:9998 !important;

        flex-direction:column !important;
        align-items:stretch !important;
        gap:4px !important;

        padding:12px !important;

        opacity:1 !important;
        visibility:visible !important;
        pointer-events:auto !important;
        transform:none !important;

        background:#ffffff !important;
        border:1px solid #dce4df !important;
        border-radius:16px !important;

        box-shadow:0 24px 70px rgba(7,17,15,.22) !important;
    }

    .nav .nav-links.nav-open a{
        display:block !important;
        width:100% !important;
        padding:13px 14px !important;
    }
}


/* ==========================================================
   STOCK LEARNERS — MOBILE NAV FINAL POLISH
   ========================================================== */

@media (max-width:900px){

    .nav .nav-links.nav-open{
        gap:2px !important;
        padding:10px !important;
        max-height:calc(100dvh - 155px) !important;
    }

    .nav .nav-links.nav-open a{
        padding:11px 14px !important;
        min-height:44px;
        display:flex !important;
        align-items:center;
    }

    .nav .nav-links.nav-open .nav-cta{
        justify-content:center;
        margin:3px 0 !important;
    }

    body.public-nav-open .notification-center-floating{
        display:none !important;
    }
}


/* ==========================================================
   STOCK LEARNERS — COMPACT LEFT MOBILE NAV
   ========================================================== */

@media (max-width:900px){

    /*
     * Keep navigation above page content.
     */
    .nav-wrap{
        z-index:9990 !important;
    }

    /*
     * Open menu panel:
     * compact, left aligned, page remains visible.
     */
    .nav .nav-links.nav-open{
        display:flex !important;

        position:fixed !important;

        top:132px !important;
        left:12px !important;
        right:auto !important;

        width:min(310px, calc(100vw - 70px)) !important;
        max-width:310px !important;

        max-height:calc(100dvh - 150px) !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;

        z-index:9998 !important;

        flex-direction:column !important;
        align-items:stretch !important;

        gap:2px !important;

        padding:10px !important;

        background:rgba(255,255,255,.98) !important;

        border:1px solid rgba(7,17,15,.10) !important;
        border-radius:15px !important;

        box-shadow:
            0 18px 50px rgba(7,17,15,.16) !important;

        opacity:1 !important;
        visibility:visible !important;
        pointer-events:auto !important;

        transform:translateX(0) !important;

        animation:
            slMobileMenuSlideIn .24s
            cubic-bezier(.22,.8,.3,1) both !important;
    }


    /*
     * Every navigation item begins from left.
     */
    .nav .nav-links.nav-open a{
        display:flex !important;

        width:100% !important;
        min-height:40px !important;

        align-items:center !important;
        justify-content:flex-start !important;

        margin:0 !important;
        padding:9px 11px !important;

        border-radius:9px !important;

        text-align:left !important;

        font-size:14px !important;
        line-height:1.25 !important;

        transition:
            background .18s ease,
            color .18s ease,
            transform .18s ease !important;
    }


    /*
     * Hover / desktop-emulated hover.
     */
    .nav .nav-links.nav-open a:hover{
        background:#eef6f1 !important;
        color:#0d7d52 !important;

        transform:translateX(4px) !important;
    }


    /*
     * Touch feedback.
     */
    .nav .nav-links.nav-open a:active{
        background:#e5f2eb !important;
        transform:translateX(2px) scale(.99) !important;
    }


    /*
     * Instant Access remains premium,
     * but no longer becomes a giant full-width button.
     */
    .nav .nav-links.nav-open .nav-cta{
        width:100% !important;

        min-height:42px !important;

        margin:3px 0 !important;
        padding:10px 12px !important;

        justify-content:flex-start !important;

        background:#0d7d52 !important;
        color:#fff !important;

        text-align:left !important;
    }


    .nav .nav-links.nav-open .nav-cta:hover{
        background:#096c46 !important;
        color:#fff !important;

        transform:translateX(4px) !important;
    }


    /*
     * Keep Login aligned exactly like other links.
     */
    .nav .nav-links.nav-open .login-link{
        justify-content:flex-start !important;
        text-align:left !important;
    }


    /*
     * Hide notification prompt while menu is open.
     * Push notification functionality is NOT changed.
     */
    body.public-nav-open .notification-center-floating{
        display:none !important;
    }


    /*
     * Opening animation.
     */
    @keyframes slMobileMenuSlideIn{

        from{
            opacity:0;
            transform:translateX(-18px);
        }

        to{
            opacity:1;
            transform:translateX(0);
        }
    }
}


/*
 * Slightly smaller phones.
 */
@media (max-width:480px){

    .nav .nav-links.nav-open{
        left:10px !important;

        width:min(285px, calc(100vw - 65px)) !important;
        max-width:285px !important;

        padding:8px !important;
    }

    .nav .nav-links.nav-open a{
        min-height:38px !important;
        padding:8px 10px !important;
        font-size:13px !important;
    }
}


/*
 * Accessibility:
 * respect reduced-motion preference.
 */
@media (prefers-reduced-motion:reduce){

    .nav .nav-links.nav-open{
        animation:none !important;
    }

    .nav .nav-links.nav-open a{
        transition:none !important;
    }
}


/* ==========================================================
   STOCK LEARNERS — MOBILE SLIDER NAV CONTROL
   > opens drawer
   < closes drawer
   Protected app.js remains untouched.
   ========================================================== */

@media (max-width:900px){

    /*
     * Mobile brand:
     * text only — hide SL logo.
     */
    .nav .brand-mark{
        display:none !important;
    }

    .nav .brand{
        margin:0 !important;
        gap:0 !important;

        font-size:14px !important;
        font-weight:700 !important;
        letter-spacing:.11em !important;
    }


    /*
     * Slider control.
     *
     * app.js can continue writing ☰ / × internally.
     * font-size:0 hides those characters.
     */
    .nav .menu-btn{
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;

        width:40px !important;
        height:40px !important;

        flex:0 0 40px !important;

        padding:0 !important;
        margin-left:auto !important;

        font-size:0 !important;

        background:#ffffff !important;
        border:1px solid rgba(7,17,15,.10) !important;
        border-radius:12px !important;

        box-shadow:0 8px 24px rgba(7,17,15,.08) !important;

        cursor:pointer !important;

        transition:
            transform .25s cubic-bezier(.22,.8,.3,1),
            box-shadow .25s ease,
            background .25s ease !important;
    }


    /*
     * Draw > ourselves.
     */
    .nav .menu-btn::before{
        content:"" !important;

        display:block !important;

        width:9px !important;
        height:9px !important;

        border-top:2px solid #07110f !important;
        border-right:2px solid #07110f !important;

        transform:
            rotate(45deg)
            translate(-1px,1px);

        transition:
            transform .30s cubic-bezier(.22,.8,.3,1),
            border-color .20s ease !important;
    }


    /*
     * app.js already changes aria-expanded.
     * Use that state to turn > into <.
     */
    .nav .menu-btn[aria-expanded="true"]::before{
        transform:
            rotate(225deg)
            translate(-1px,1px);
    }


    /*
     * Cinematic button feedback.
     */
    .nav .menu-btn:hover{
        background:#eef6f1 !important;

        box-shadow:
            0 12px 30px rgba(13,125,82,.14) !important;

        transform:translateX(2px) !important;
    }

    .nav .menu-btn:active{
        transform:scale(.94) !important;
    }


    /*
     * Compact LEFT drawer.
     */
    .nav .nav-links.nav-open{
        top:120px !important;

        left:0 !important;
        right:auto !important;

        width:min(270px, 76vw) !important;
        max-width:270px !important;

        padding:8px 10px !important;

        border-left:0 !important;
        border-radius:0 16px 16px 0 !important;

        background:rgba(255,255,255,.96) !important;

        -webkit-backdrop-filter:blur(18px) !important;
        backdrop-filter:blur(18px) !important;

        box-shadow:
            18px 18px 55px rgba(7,17,15,.14) !important;

        animation:
            slSliderDrawerIn .30s
            cubic-bezier(.16,.8,.24,1) both !important;
    }


    /*
     * Smaller, clean, left-aligned links.
     */
    .nav .nav-links.nav-open a{
        min-height:38px !important;

        padding:8px 10px !important;

        justify-content:flex-start !important;

        text-align:left !important;

        font-size:13px !important;
        font-weight:700 !important;

        position:relative !important;
        overflow:hidden !important;
    }


    /*
     * Cinematic green sweep.
     */
    .nav .nav-links.nav-open a::before{
        content:"" !important;

        position:absolute !important;
        inset:0 !important;

        background:
            linear-gradient(
                90deg,
                rgba(13,125,82,.11),
                rgba(25,166,109,.035),
                transparent
            ) !important;

        transform:translateX(-105%) !important;

        transition:
            transform .30s cubic-bezier(.22,.8,.3,1) !important;

        pointer-events:none !important;
    }


    .nav .nav-links.nav-open a:hover::before{
        transform:translateX(0) !important;
    }


    .nav .nav-links.nav-open a:hover{
        background:transparent !important;
        color:#0d7d52 !important;

        transform:translateX(3px) !important;
    }


    /*
     * Instant Access remains highlighted,
     * but compact.
     */
    .nav .nav-links.nav-open .nav-cta{
        min-height:40px !important;

        margin:3px 0 !important;

        padding:9px 10px !important;

        justify-content:flex-start !important;

        background:#0d7d52 !important;
        color:#fff !important;

        border-radius:9px !important;
    }


    .nav .nav-links.nav-open .nav-cta::before{
        background:
            linear-gradient(
                90deg,
                rgba(255,255,255,.15),
                transparent
            ) !important;
    }


    /*
     * Drawer entrance.
     */
    @keyframes slSliderDrawerIn{

        from{
            opacity:0;
            transform:translateX(-28px);
            filter:blur(3px);
        }

        to{
            opacity:1;
            transform:translateX(0);
            filter:blur(0);
        }
    }


    /*
     * Don't let notification UI compete with drawer.
     */
    body.public-nav-open .notification-center-floating{
        display:none !important;
    }
}


@media (max-width:480px){

    .nav .nav-links.nav-open{
        width:min(255px, 74vw) !important;
        max-width:255px !important;
    }

}


@media (prefers-reduced-motion:reduce){

    .nav .nav-links.nav-open{
        animation:none !important;
    }

    .nav .menu-btn,
    .nav .menu-btn::before,
    .nav .nav-links.nav-open a,
    .nav .nav-links.nav-open a::before{
        transition:none !important;
    }
}


/* ==========================================================
   STOCK LEARNERS — MOBILE HEADER / LEFT MENU CONTROL
   ========================================================== */

@media (max-width:900px){

    /*
     * Mobile header:
     * hamburger first, brand second.
     */
    .nav{
        justify-content:flex-start !important;
        gap:12px !important;
    }

    /*
     * Move hamburger / close button to far left.
     */
    .nav .menu-btn{
        order:1 !important;
        margin-left:0 !important;
        margin-right:0 !important;

        width:42px !important;
        height:42px !important;
        flex:0 0 42px !important;

        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
    }

    /*
     * Stock Learners comes immediately after hamburger.
     */
    .nav .brand{
        order:2 !important;
        margin:0 !important;
    }

    /*
     * Hide SL logo/mark on mobile only.
     */
    .nav .brand-mark,
    .nav .brand-logo,
    .nav .brand img{
        display:none !important;
    }

    /*
     * Clean mobile wordmark.
     */
    .nav .brand{
        font-size:14px !important;
        font-weight:800 !important;
        letter-spacing:.12em !important;
        white-space:nowrap !important;
    }


    /*
     * Drawer begins from same left edge
     * as hamburger/header content.
     */
    .nav .nav-links.nav-open{
        left:13px !important;
        right:auto !important;

        width:min(285px, calc(100vw - 75px)) !important;
        max-width:285px !important;
    }
}


@media (max-width:480px){

    .nav{
        gap:10px !important;
    }

    .nav .brand{
        font-size:13px !important;
        letter-spacing:.10em !important;
    }

    .nav .nav-links.nav-open{
        left:13px !important;
        width:min(275px, calc(100vw - 70px)) !important;
        max-width:275px !important;
    }
}


/* ==========================================================
   STOCK LEARNERS — FINAL MOBILE HEADER CONTROL
   Hamburger and drawer share the LEFT side.
   ========================================================== */

@media (max-width:900px){

    .nav{
        justify-content:flex-start !important;
        gap:12px !important;
    }

    .nav .menu-btn{
        order:1 !important;

        margin:0 !important;
        padding:0 !important;

        width:40px !important;
        height:40px !important;
        flex:0 0 40px !important;

        display:flex !important;
        align-items:center !important;
        justify-content:center !important;

        font-size:0 !important;

        background:transparent !important;
        border:0 !important;
        box-shadow:none !important;

        transform:none !important;
    }

    /*
     * Draw hamburger ourselves.
     * app.js may continue changing button text internally.
     */
    .nav .menu-btn::before{
        content:"☰" !important;

        display:block !important;

        width:auto !important;
        height:auto !important;

        border:0 !important;

        color:#07110f !important;

        font-family:Arial,sans-serif !important;
        font-size:28px !important;
        font-weight:400 !important;
        line-height:1 !important;

        transform:none !important;

        transition:
            transform .22s ease,
            color .22s ease !important;
    }

    /*
     * Open state = X.
     */
    .nav .menu-btn[aria-expanded="true"]::before{
        content:"×" !important;
        transform:rotate(90deg) !important;
    }

    .nav .brand{
        order:2 !important;
        margin:0 !important;

        font-size:14px !important;
        font-weight:800 !important;
        letter-spacing:.12em !important;
    }

    /*
     * No SL logo on mobile.
     */
    .nav .brand-mark,
    .nav .brand-logo,
    .nav .brand img{
        display:none !important;
    }

    /*
     * Drawer belongs to same left edge.
     */
    .nav .nav-links.nav-open{
        left:13px !important;
        right:auto !important;
    }


    /* cinematic hamburger feedback */

    .nav .menu-btn:hover::before{
        color:#0d7d52 !important;
        transform:scale(1.08) !important;
    }

    .nav .menu-btn[aria-expanded="true"]:hover::before{
        transform:rotate(90deg) scale(1.08) !important;
    }

    .nav .menu-btn:active::before{
        transform:scale(.90) !important;
    }
}

