/*:root {
    --bg-primary: #070f0a;
    --bg-secondary: #0c1912;
    --glass-bg: rgba(255,255,255,0.035);
    --glass-border: rgba(255,255,255,0.08);
    --naija-green: #00c853;
    --naija-green-soft: rgba(0,200,83,0.14);
    --naija-green-deep: #046a38;
    --pure-white: #f3f6f3;
    --gold: #e8b923;
    --gold-soft: rgba(232,185,35,0.14);
    --text-primary: #eef2ee;
    --text-secondary: #8ba394;
    --text-tertiary: #5c7368;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 14px;
    --sidebar-w: 264px;
    --ease: cubic-bezier(.25,.46,.45,.94);
}
*/
:root {
    /* === Brand Colors (Blue & Gold) === */
    --bg-primary: #07142B;        /* was: #070f0a */
    --bg-secondary: #0D1F3E;       /* was: #0c1912 */
    
    --glass-bg: rgba(17,40,78,0.78);  /* was: rgba(255,255,255,0.035) */
    --glass-border: rgba(212,175,55,0.18);  /* was: rgba(255,255,255,0.08) */
    
    /* === Primary Blue (replaces green) === */
    --brand-blue: #143D8D;         /* was: --naija-green: #00c853 */
    --brand-blue-soft: rgba(20,61,141,0.14);  /* was: --naija-green-soft */
    --brand-blue-dark: #081B42;    /* was: --naija-green-deep: #046a38 */
    
    /* === Gold (enhanced) === */
    --gold: #D4AF37;               /* was: --gold: #e8b923 */
    --gold-soft: rgba(212,175,55,0.14);  /* was: --gold-soft: rgba(232,185,35,0.14) */
    --gold-light: #F5D36B;         /* NEW: lighter gold for gradients */
    --gold-dark: #9A760D;          /* NEW: darker gold for depth */
    
    /* === Shadows (NEW) === */
    --shadow-gold: 0 15px 40px rgba(212,175,55,0.25);
    --shadow-blue: 0 18px 48px rgba(8,27,66,0.45);
    --shadow-card: 0 8px 32px rgba(0,0,0,0.35);
    
    /* === Text (unchanged) === */
    --pure-white: #f3f6f3;
    --text-primary: #eef2ee;
    --text-secondary: #8ba394;
    --text-tertiary: #5c7368;
    
    /* === Typography (unchanged) === */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* === Layout (unchanged) === */
    --radius: 14px;
    --sidebar-w: 264px;
    --ease: cubic-bezier(.25,.46,.45,.94);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); background: var(--bg-primary); color: var(--text-primary); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

/* ===== Background ===== */
#bg-field {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(rgba(20,61,141,.05) 1px,transparent 1px), linear-gradient(90deg,rgba(20,61,141,.05) 1px,transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 75%);
}
.orb { position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; opacity: .5; }
.orb-1 { width: 460px; height: 460px; background: rgba(20,61,141,.10); top: -140px; left: 20%; }
.orb-2 { width: 380px; height: 380px; background: rgba(212,175,55,.06); bottom: -160px; right: 5%; }

/* ===== Glass ===== */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ===== Shell & Sidebar ===== */
.shell { position: relative; z-index: 1; display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-w); flex-shrink: 0;
    position: fixed; top: 0; left: 0; height: 100%;
    background: linear-gradient(180deg, #07142B, #0D1F3E);
    backdrop-filter: blur(22px);
    border-right: 1px solid var(--glass-border);
    padding: 26px 18px;
    display: flex; flex-direction: column;
    z-index: 40;
    transition: transform .35s var(--ease);
}
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; padding-left: 4px; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    background: linear-gradient(160deg, var(--brand-blue) 0 33%, var(--gold) 33% 66%, var(--brand-blue-dark) 66% 100%);
    box-shadow: 0 0 22px rgba(20,61,141,.35);
}
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.brand-text span { display: block; font-family: var(--font-mono); font-size: .58rem; letter-spacing: 2px; color: var(--text-tertiary); font-weight: 500; margin-top: 2px; }
.flag-rule {
    height: 3px; border-radius: 3px; margin: 18px 4px 22px;
    background: linear-gradient(90deg, var(--brand-blue) 0 32%, var(--gold) 32% 68%, var(--brand-blue) 68% 100%);
    opacity: .55;
}
.nav-group-label { font-family: var(--font-mono); font-size: .62rem; letter-spacing: 1.5px; color: var(--text-tertiary); padding: 0 12px; margin: 14px 0 8px; text-transform: uppercase; }
.nav-link {
    display: flex; align-items: center; gap: 13px; padding: 10px 12px; border-radius: 10px;
    color: var(--text-secondary); font-size: .87rem; font-weight: 500; margin-bottom: 2px;
    transition: all .25s var(--ease); position: relative;
}
.nav-link i { width: 18px; text-align: center; font-size: .95rem; }
.nav-link:hover { background: rgba(255,255,255,.04); color: var(--text-primary); }
.nav-link.active { background: var(--brand-blue-soft); color: var(--pure-white); }
.nav-link.active i { color: var(--gold); }
.nav-link.active::before {
    content: ''; position: absolute; left: -18px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 60%; background: var(--gold); border-radius: 3px;
}
.nav-badge {
    margin-left: auto; font-family: var(--font-mono); font-size: .62rem;
    background: rgba(255,255,255,.06); color: var(--text-secondary);
    padding: 2px 6px; border-radius: 6px;
}
.sidebar-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--glass-border); }
.mini-profile { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 12px; }
.mini-avatar {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.mini-meta { line-height: 1.25; overflow: hidden; }
.mini-name { font-size: .83rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-role { font-size: .7rem; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Main ===== */
.main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; justify-content: center; }
.main-inner { 
    width: 100%; 
    max-width: 920px;  /* matches Career Chapter mockup */
    padding: 28px 32px 60px; 
}

.hamburger {
    display: none; position: fixed; top: 20px; left: 20px; z-index: 50;
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(12,25,18,.9); border: 1px solid var(--glass-border);
    color: var(--text-primary); align-items: center; justify-content: center;
}

/* ===== Page-specific ===== */
.topbar { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.topbar h1 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.topbar-sub { font-size: .82rem; color: var(--text-secondary); margin-top: 2px; }

.composer { padding: 16px 18px; margin-bottom: 22px; }
.composer-top { display: flex; gap: 12px; align-items: flex-start; }
.composer-input {
    flex: 1; background: rgba(255,255,255,.03); border: 1px solid var(--glass-border);
    border-radius: 11px; padding: 11px 14px; color: var(--text-primary); font-size: .87rem;
    resize: none; outline: none; min-height: 44px;
}
.composer-input:focus { border-color: var(--brand-blue); }
.composer-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.composer-pillars { display: flex; gap: 8px; }
.pill-chip {
    display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 20px;
    font-size: .75rem; font-weight: 600; border: 1px solid var(--glass-border);
    background: rgba(255,255,255,.03); color: var(--text-secondary);
}
.pill-chip.selected { background: var(--brand-blue-soft); border-color: rgba(20,61,141,.35); color: var(--pure-white); }
.post-btn {
    background: var(--gold); color: #081B42; font-weight: 700; font-size: .8rem;
    padding: 9px 18px; border-radius: 9px; border: none;
}
.post-btn:disabled { opacity: .4; cursor: not-allowed; }

.feed-card { padding: 18px 20px; margin-bottom: 16px; }
.post-head { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.post-avatar {
    width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: .9rem;
    background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
}
.post-name { font-size: .88rem; font-weight: 600; }
.post-time { font-size: .74rem; color: var(--text-tertiary); margin-top: 1px; }
.topic-tag {
    display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 600;
    padding: 3px 9px; border-radius: 6px; margin-bottom: 11px; letter-spacing: .3px;
}
.tag-theology { background: var(--brand-blue-soft); color: var(--gold-light); }
.tag-technology { background: rgba(20,61,141,.06); color: var(--gold-light); }
.tag-civic { background: rgba(20,61,141,.09); color: var(--gold-light); border: 1px solid rgba(20,61,141,.25); }
.post-body { font-size: .9rem; line-height: 1.55; color: var(--text-primary); margin-bottom: 12px; }
.post-actions { display: flex; gap: 18px; padding-top: 11px; border-top: 1px solid var(--glass-border); }
.post-actions button { background: none; border: none; color: var(--text-secondary); font-size: .8rem; display: flex; align-items: center; gap: 6px; }
.post-actions button:hover { color: var(--gold); }
.post-actions button.liked { color: var(--gold); }
.post-actions button.liked i { font-weight: 900; }

.search-row { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.search-box { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.search-box i { color: var(--text-tertiary); }
.search-box input { background: none; border: none; outline: none; color: var(--text-primary); font-size: .87rem; width: 100%; }
.filter-chip {
    padding: 11px 16px; font-size: .8rem; font-weight: 600; color: var(--text-secondary);
    display: flex; align-items: center; gap: 7px; white-space: nowrap; cursor: pointer;
}
.filter-chip.active { background: var(--brand-blue-soft); border-color: rgba(20,61,141,.3); color: var(--pure-white); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.product-card { padding: 16px; display: flex; flex-direction: column; transition: transform .25s var(--ease), border-color .25s; }
.product-card:hover { transform: translateY(-3px); border-color: rgba(212,175,55,.3); }
.product-thumb { height: 90px; border-radius: 10px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.thumb-technology { background: linear-gradient(135deg, rgba(20,61,141,.16), rgba(20,61,141,.03)); color: var(--gold); }
.thumb-civic { background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); color: var(--gold-light); }
.thumb-theology { background: linear-gradient(135deg, rgba(20,61,141,.1), rgba(255,255,255,.02)); color: var(--gold-light); }
.product-pillar { font-size: .62rem; font-weight: 700; letter-spacing: .4px; color: var(--text-tertiary); text-transform: uppercase; margin-bottom: 5px; }
.product-name { font-size: .85rem; font-weight: 600; line-height: 1.3; margin-bottom: 10px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--glass-border); }
.product-price { font-family: var(--font-mono); font-weight: 600; color: var(--gold); font-size: .87rem; }
.buy-btn {
    background: var(--gold); color: #081B42; font-weight: 700; font-size: .72rem;
    padding: 7px 13px; border-radius: 8px; border: none; margin-top: 12px; width: 100%;
}
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-tertiary); font-size: .85rem; }

.chapter-banner { padding: 26px; margin-bottom: 20px; position: relative; overflow: hidden; }
.chapter-banner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand-blue) 0 32%, var(--gold) 32% 68%, var(--brand-blue) 68% 100%); opacity: .5; }
.banner-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.big-ring { position: relative; width: 104px; height: 104px; flex-shrink: 0; }
.big-ring svg { transform: rotate(-90deg); }
.big-ring-track { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 8; }
.big-ring-fill { fill: none; stroke: var(--gold); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.big-ring-pct { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.big-ring-pct .num { font-family: var(--font-mono); font-weight: 700; font-size: 1.3rem; color: var(--gold); }
.big-ring-pct .lbl { font-family: var(--font-mono); font-size: .5rem; color: var(--text-tertiary); letter-spacing: 1px; }
.banner-track-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.banner-sub { font-size: .85rem; color: var(--text-secondary); margin-top: 4px; }
.stage-list { padding: 20px; }
.stage { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.stage:last-child { border-bottom: none; }
.stage-num { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; flex-shrink: 0; }
.stage.done .stage-num { background: var(--gold); color: #081B42; }
.stage.current .stage-num { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold); }
.stage.upcoming .stage-num { background: rgba(255,255,255,.05); color: var(--text-tertiary); }
.stage-text { font-size: .85rem; font-weight: 500; }
.stage.upcoming .stage-text { color: var(--text-tertiary); }
.stage-toggle { margin-left: auto; font-size: .7rem; color: var(--gold); background: none; border: none; font-weight: 600; }

/* Onboarding (login/register) */
.onb-wrap { max-width: 440px; margin: 0 auto; }
.step-tracker { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; justify-content: center; }
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.12); transition: all .3s var(--ease); }
.step-dot.done { background: var(--gold); }
.step-dot.active { background: var(--gold-light); width: 22px; border-radius: 5px; }
.step-line { width: 22px; height: 1px; background: rgba(255,255,255,.12); }
.step-card { padding: 30px; }
.step-eyebrow { font-family: var(--font-mono); font-size: .66rem; letter-spacing: 1.5px; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.step-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 6px; }
.step-sub { font-size: .84rem; color: var(--text-secondary); margin-bottom: 22px; line-height: 1.5; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: .77rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.field input, .field select { width: 100%; background: rgba(255,255,255,.03); border: 1px solid var(--glass-border); border-radius: 10px; padding: 11px 13px; color: var(--text-primary); font-size: .87rem; outline: none; }
.field input:focus, .field select:focus { border-color: var(--brand-blue); }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.age-gate { display: flex; gap: 10px; padding: 12px 14px; border-radius: 11px; background: var(--gold-soft); border: 1px solid rgba(212,175,55,.28); margin-bottom: 20px; }
.age-gate i { color: var(--gold); margin-top: 2px; }
.age-gate p { font-size: .78rem; color: var(--text-secondary); line-height: 1.5; }
.age-err { display: none; gap: 10px; padding: 12px 14px; border-radius: 11px; background: rgba(224,71,60,.1); border: 1px solid rgba(224,71,60,.35); margin-bottom: 16px; font-size: .78rem; color: #f5a19b; }
.pillar-select { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.pillar-option {
    display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 12px;
    border: 1px solid var(--glass-border); background: rgba(255,255,255,.02); cursor: pointer;
    transition: all .2s var(--ease);
}
.pillar-option:hover { border-color: rgba(20,61,141,.3); }
.pillar-option.selected { border-color: var(--brand-blue); background: var(--brand-blue-soft); }
.pillar-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .95rem; }
.pillar-icon.theology { background: var(--brand-blue-soft); color: var(--gold-light); }
.pillar-icon.technology { background: rgba(20,61,141,.08); color: var(--gold-light); }
.pillar-icon.civic { background: var(--brand-blue-soft); color: var(--gold-light); }
.pillar-text strong { display: block; font-size: .86rem; }
.pillar-text span { font-size: .73rem; color: var(--text-tertiary); }
.pillar-check { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--glass-border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.pillar-option.selected .pillar-check { background: var(--brand-blue); border-color: var(--brand-blue); }
.pillar-option.selected .pillar-check i { font-size: .58rem; color: #fff; }
.discipline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.disc-chip {
    padding: 11px 13px; border-radius: 11px; border: 1px solid var(--glass-border);
    background: rgba(255,255,255,.02); font-size: .81rem; font-weight: 500; text-align: center;
    cursor: pointer; transition: all .2s;
}
.disc-chip:hover { border-color: rgba(212,175,55,.35); }
.disc-chip.selected { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); font-weight: 600; }
.btn-primary { width: 100%; padding: 13px; border-radius: 11px; border: none; background: var(--gold); color: #081B42; font-weight: 700; font-size: .88rem; margin-top: 10px; }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-secondary { width: 100%; padding: 11px; border-radius: 11px; border: 1px solid var(--glass-border); background: none; color: var(--text-secondary); font-weight: 600; font-size: .83rem; margin-top: 10px; }

/* Toast */
.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
    background: rgba(12,25,18,.95); border: 1px solid var(--gold);
    color: var(--text-primary); padding: 12px 20px; border-radius: 11px;
    font-size: .83rem; display: flex; align-items: center; gap: 10px;
    z-index: 100; transition: transform .35s var(--ease); backdrop-filter: blur(10px);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast i { color: var(--gold); }

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .hamburger { display: flex; }
    .main-inner { padding-top: 70px; }
}
/* Small Career Chapter ring */
.career-seal-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    cursor: help;
    flex-shrink: 0;
}
.career-seal-sm svg {
    display: block;
}
.post-name-row {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.product-seller {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.73rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.main-inner {
    max-width: 100%;
    padding: 28px 32px 60px;
}
.feed-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}
@media (max-width: 1180px) {
    .rail {
        display: none;
    }
}