:root {
    --bg: #080b10;
    --bg-soft: #0d1118;
    --surface: #101620;
    --surface-2: #141c27;
    --surface-3: #182331;
    --text: #f5f7fa;
    --muted: #9aa6b5;
    --muted-2: #718096;
    --line: rgba(255,255,255,.09);
    --line-strong: rgba(255,255,255,.15);
    --academy: #14b8a6;
    --academy-2: #2dd4bf;
    --academy-soft: rgba(20,184,166,.13);
    --apf-gold: #d4af37;
    --danger: #fb7185;
    --shadow: 0 22px 65px rgba(0,0,0,.32);
    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 15px;
    --shell: 1220px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -10%, rgba(20,184,166,.09), transparent 30%),
        var(--bg);
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: inherit; }
button, input { font: inherit; }
.shell { width: min(calc(100% - 36px), var(--shell)); margin-inline: auto; }

.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(8,11,16,.82);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px);
    transition: .25s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 12px 35px rgba(0,0,0,.22); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(20,184,166,.3); border-radius: 15px; background: linear-gradient(145deg, rgba(20,184,166,.13), rgba(255,255,255,.02)); box-shadow: 0 0 30px rgba(20,184,166,.08); }
.brand-mark svg { width: 31px; fill: var(--academy); }
.brand-mark .brand-mark-accent { fill: var(--apf-gold); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { font-size: 19px; font-style: normal; font-weight: 900; letter-spacing: .2px; direction: ltr; }
.brand-copy strong em { color: var(--academy-2); font-style: normal; }
.brand-copy small { font-size: 10px; color: var(--muted); margin-top: 4px; }
.desktop-nav { display: flex; align-items: center; gap: 6px; }
.desktop-nav a { padding: 9px 13px; color: #cbd5e1; text-decoration: none; font-size: 13px; font-weight: 700; border-radius: 11px; transition: .2s; }
.desktop-nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.network-link { padding: 9px 14px; border: 1px solid rgba(212,175,55,.25); border-radius: 12px; color: #e5c765; text-decoration: none; font-size: 12px; font-weight: 800; background: rgba(212,175,55,.055); }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 100%; height: 2px; background: #fff; margin: 4px 0; border-radius: 20px; }
.mobile-nav { display: none; }

.hero { position: relative; padding: 78px 0 52px; text-align: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 640px; height: 640px; left: 50%; top: -380px; transform: translateX(-50%); background: radial-gradient(circle, rgba(20,184,166,.17), transparent 68%); filter: blur(24px); pointer-events: none; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid rgba(20,184,166,.24); border-radius: 99px; background: rgba(20,184,166,.07); color: #99f6e4; font-size: 12px; font-weight: 800; margin-bottom: 20px; }
.hero-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--academy); box-shadow: 0 0 16px var(--academy); }
.hero h1 { max-width: 900px; margin: 0 auto; font-size: clamp(31px, 4vw, 52px); line-height: 1.38; font-weight: 900; letter-spacing: -.8px; }
.hero h1 span { color: var(--academy-2); text-shadow: 0 0 26px rgba(45,212,191,.16); }
.hero p { max-width: 710px; margin: 18px auto 0; color: var(--muted); font-size: 16px; line-height: 2; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn { min-height: 48px; padding: 10px 20px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 13px; transition: .22s; }
.btn-primary { background: var(--academy); color: #04110f; border: 1px solid var(--academy-2); box-shadow: 0 13px 34px rgba(20,184,166,.2); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-secondary { border: 1px solid var(--line-strong); background: rgba(255,255,255,.035); color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,.07); transform: translateY(-2px); }
.hero-trust { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 32px; color: #8793a3; font-size: 11px; font-weight: 700; }
.hero-trust span { display: inline-flex; gap: 7px; align-items: center; }
.hero-trust b { width: 6px; height: 6px; border-radius: 50%; background: #465365; }

.section { padding: 62px 0; }
.section-tight { padding-top: 24px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head-copy { max-width: 690px; }
.eyebrow { display: inline-block; margin-bottom: 7px; color: var(--academy-2); font-size: 11px; font-weight: 900; letter-spacing: .3px; }
.section-title { font-size: clamp(25px, 3vw, 36px); line-height: 1.45; font-weight: 900; }
.section-description { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.text-link { color: #99f6e4; font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }

.start-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.start-card { position: relative; min-height: 210px; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.018)); overflow: hidden; transition: .25s; text-decoration: none; }
.start-card::after { content: ''; position: absolute; width: 150px; height: 150px; top: -80px; left: -60px; border-radius: 50%; background: var(--academy-soft); filter: blur(20px); opacity: 0; transition: .25s; }
.start-card:hover { transform: translateY(-4px); border-color: rgba(20,184,166,.35); box-shadow: var(--shadow); }
.start-card:hover::after { opacity: 1; }
.icon-box { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--academy-soft); border: 1px solid rgba(20,184,166,.22); color: var(--academy-2); margin-bottom: 18px; }
.icon-box svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.start-card h3 { font-size: 17px; font-weight: 900; margin-bottom: 7px; }
.start-card p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.card-arrow { position: absolute; bottom: 20px; left: 20px; width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.045); color: #cbd5e1; font-size: 16px; transform: rotate(180deg); }

.paths-panel { border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(145deg, #10161f, #0c1118); padding: 20px; box-shadow: 0 20px 55px rgba(0,0,0,.18); }
.path-list { display: grid; gap: 10px; counter-reset: path; }
.path-row { counter-increment: path; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 14px; border-radius: 16px; border: 1px solid transparent; transition: .2s; text-decoration: none; }
.path-row:hover { background: rgba(255,255,255,.027); border-color: var(--line); }
.path-number { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #151e29; border: 1px solid var(--line); color: #94a3b8; font-weight: 900; font-size: 13px; }
.path-number::before { content: '0' counter(path); }
.path-info h3 { font-size: 15px; font-weight: 900; }
.path-info p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.path-meta { display: flex; align-items: center; gap: 12px; color: #718096; font-size: 11px; }
.path-status { padding: 5px 9px; border-radius: 99px; background: rgba(20,184,166,.08); color: #5eead4; border: 1px solid rgba(20,184,166,.16); font-weight: 800; }

.glossary-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; align-items: stretch; }
.glossary-intro { position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius-xl); border: 1px solid rgba(20,184,166,.18); background: linear-gradient(155deg, rgba(20,184,166,.11), rgba(13,17,24,.5)); }
.glossary-intro::before { content: 'ABC'; position: absolute; left: -8px; bottom: -32px; font-size: 110px; font-weight: 900; color: rgba(255,255,255,.025); direction: ltr; }
.glossary-intro h3 { font-size: 24px; line-height: 1.5; margin-bottom: 10px; }
.glossary-intro p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.glossary-search { margin-top: 21px; display: flex; gap: 8px; padding: 7px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.18); }
.glossary-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #fff; padding: 5px 8px; }
.glossary-search button { border: 0; border-radius: 10px; background: var(--academy); color: #04110f; font-weight: 900; padding: 7px 14px; cursor: pointer; }
.term-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.term-card { padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.024); text-decoration: none; transition: .2s; }
.term-card:hover { transform: translateY(-2px); border-color: rgba(20,184,166,.27); }
.term-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
.term-card span { display: block; color: var(--academy-2); font-size: 10px; font-weight: 800; direction: ltr; text-align: right; margin-bottom: 7px; }
.term-card p { color: var(--muted); font-size: 11px; line-height: 1.75; }

.buying-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.check-card { padding: 18px; border-radius: 18px; background: #0f151e; border: 1px solid var(--line); }
.check-card .check-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: rgba(20,184,166,.09); color: var(--academy-2); margin-bottom: 13px; font-weight: 900; }
.check-card h3 { font-size: 13px; font-weight: 900; margin-bottom: 6px; }
.check-card p { color: var(--muted); font-size: 11px; line-height: 1.75; }

.warning-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 22px; border: 1px solid rgba(251,113,133,.15); border-radius: 20px; background: linear-gradient(120deg, rgba(251,113,133,.07), rgba(255,255,255,.015)); }
.warning-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: rgba(251,113,133,.09); color: #fda4af; }
.warning-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.warning-strip h3 { font-size: 16px; font-weight: 900; }
.warning-strip p { color: var(--muted); font-size: 12px; margin-top: 3px; }

.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.article-card { border: 1px solid var(--line); border-radius: 20px; background: #0f151d; overflow: hidden; text-decoration: none; transition: .24s; }
.article-card:hover { transform: translateY(-4px); border-color: rgba(20,184,166,.26); box-shadow: var(--shadow); }
.article-cover { height: 126px; display: flex; align-items: end; padding: 15px; background: radial-gradient(circle at 20% 20%, rgba(20,184,166,.22), transparent 45%), linear-gradient(145deg,#16212c,#0d1219); }
.article-cover span { padding: 5px 9px; border-radius: 99px; background: rgba(8,11,16,.65); border: 1px solid var(--line); color: #a7f3d0; font-size: 9px; font-weight: 800; }
.article-content { padding: 17px; }
.article-content h3 { font-size: 15px; line-height: 1.65; font-weight: 900; }
.article-content p { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.article-meta { display: flex; justify-content: space-between; margin-top: 14px; color: #667085; font-size: 9px; }

.faq-list { display: grid; gap: 10px; }
details.faq-item { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.02); overflow: hidden; }
details.faq-item summary { list-style: none; cursor: pointer; padding: 16px 18px; font-size: 13px; font-weight: 900; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
details.faq-item summary::-webkit-details-marker { display:none; }
details.faq-item summary::after { content: '+'; color: var(--academy-2); font-size: 20px; font-weight: 400; }
details[open].faq-item summary::after { content: '−'; }
.faq-answer { padding: 0 18px 17px; color: var(--muted); font-size: 12px; line-height: 1.95; max-width: 950px; }

.cta-panel { position: relative; overflow: hidden; text-align: center; padding: 48px 28px; border: 1px solid rgba(212,175,55,.16); border-radius: 28px; background: radial-gradient(circle at 50% 0%, rgba(212,175,55,.09), transparent 45%), #0f141c; }
.cta-panel h2 { font-size: clamp(24px, 3vw, 35px); font-weight: 900; }
.cta-panel h2 span { color: #e5c765; }
.cta-panel p { max-width: 660px; margin: 10px auto 0; color: var(--muted); font-size: 13px; }
.cta-panel .hero-actions { margin-top: 22px; }
.btn-gold { background: var(--apf-gold); color: #0b0a06; border: 1px solid #e7ca66; box-shadow: 0 12px 28px rgba(212,175,55,.15); }

.site-footer { margin-top: 70px; border-top: 1px solid var(--line); background: #07090d; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .9fr; gap: 50px; padding: 45px 0 35px; }
.footer-grid h3 { font-size: 12px; margin-bottom: 11px; color: #e2e8f0; }
.footer-grid a { display: block; width: fit-content; color: var(--muted); font-size: 11px; text-decoration: none; padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.footer-logo { font-size: 20px; font-weight: 900; direction: ltr; text-align: right; }
.footer-logo span { color: var(--academy-2); }
.footer-brand-block p { color: var(--muted); font-size: 11px; max-width: 420px; margin-top: 9px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; padding: 16px 0 22px; border-top: 1px solid var(--line); color: #5f6b7a; font-size: 10px; }

.page-hero { padding: 56px 0 30px; }
.page-hero h1 { font-size: clamp(30px,4vw,46px); font-weight: 900; }
.page-hero p { max-width: 700px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.content-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.empty-state { color: var(--muted); padding: 20px; text-align: center; }

@media (max-width: 980px) {
    .desktop-nav { display: none; }
    .network-link { display: none; }
    .menu-btn { display: block; }
    .mobile-nav { position: absolute; top: 76px; right: 18px; left: 18px; display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #0c1118; box-shadow: var(--shadow); transform: translateY(-10px); opacity: 0; visibility: hidden; transition: .2s; }
    .mobile-nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .mobile-nav a { text-decoration: none; padding: 10px 12px; border-radius: 10px; color: #d3dbe5; font-size: 12px; font-weight: 800; }
    .mobile-nav a:hover { background: rgba(255,255,255,.04); }
    .start-grid, .articles-grid { grid-template-columns: 1fr 1fr; }
    .glossary-panel { grid-template-columns: 1fr; }
    .buying-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand-block { grid-column: 1/-1; }
}

@media (max-width: 640px) {
    .shell { width: min(calc(100% - 24px), var(--shell)); }
    .header-inner { min-height: 68px; }
    .brand-mark { width: 42px; height: 42px; border-radius: 13px; }
    .brand-mark svg { width: 27px; }
    .brand-copy strong { font-size: 16px; }
    .brand-copy small { font-size: 9px; }
    .mobile-nav { top: 68px; right: 12px; left: 12px; }
    .hero { padding-top: 52px; }
    .hero h1 { font-size: 31px; }
    .hero p { font-size: 13px; }
    .section { padding: 44px 0; }
    .section-head { align-items: start; flex-direction: column; }
    .start-grid, .articles-grid, .term-grid, .buying-grid { grid-template-columns: 1fr; }
    .path-row { grid-template-columns: 48px 1fr; }
    .path-meta { grid-column: 2; justify-content: flex-start; }
    .paths-panel { padding: 9px; }
    .warning-strip { grid-template-columns: auto 1fr; }
    .warning-strip .btn { grid-column: 1/-1; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-brand-block { grid-column: auto; }
    .footer-bottom { flex-direction: column; }
}

/* === APF Academy premium hero / header v1.1 === */
.site-header {
    background: rgba(7,10,15,.7);
    border-bottom: 1px solid rgba(255,255,255,.045);
    backdrop-filter: blur(22px) saturate(125%);
}
.site-header::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45,212,191,.18), rgba(212,175,55,.10), transparent);
    pointer-events: none;
}
.header-inner { min-height: 82px; }
.brand { gap: 13px; }
.brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    border-color: rgba(45,212,191,.22);
    background: linear-gradient(145deg, rgba(45,212,191,.10), rgba(255,255,255,.025));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 32px rgba(0,0,0,.18);
}
.brand-mark svg { width: 30px; overflow: visible; }
.brand-mark svg path { fill: var(--academy); }
.brand-mark svg .brand-mark-accent { fill: none; stroke: var(--apf-gold); stroke-width: 2; stroke-linecap: round; }
.brand-mark svg circle.brand-mark-accent { fill: var(--apf-gold); stroke: none; }
.brand-copy strong { font-size: 20px; letter-spacing: .1px; }
.brand-copy small { margin-top: 5px; color: #748094; font-size: 8.5px; letter-spacing: 1.35px; text-transform: uppercase; direction: ltr; text-align: left; }
.desktop-nav { padding: 5px; border: 1px solid rgba(255,255,255,.045); border-radius: 14px; background: rgba(255,255,255,.018); }
.desktop-nav a { padding: 8px 14px; font-size: 12px; }
.network-link { min-width: 126px; padding: 7px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 0; direction: ltr; border-color: rgba(212,175,55,.18); background: rgba(212,175,55,.035); }
.network-link span { color: #8a7a48; font-size: 7px; letter-spacing: 1.1px; text-transform: uppercase; }
.network-link b { color: #dfc46d; font-size: 10px; letter-spacing: .15px; }

.hero-premium {
    min-height: 680px;
    padding: 84px 0 42px;
    text-align: right;
    isolation: isolate;
}
.hero-premium::before { display: none; }
.hero-grid-pattern {
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: .36;
    background-image:
        linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.2) 70%, transparent);
}
.hero-orb { position: absolute; z-index: -2; border-radius: 50%; filter: blur(50px); pointer-events: none; }
.hero-orb-one { width: 520px; height: 520px; right: -170px; top: -180px; background: rgba(20,184,166,.11); }
.hero-orb-two { width: 420px; height: 420px; left: -120px; top: 120px; background: rgba(45,212,191,.055); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(430px, .96fr); gap: 70px; align-items: center; }
.hero-copy { position: relative; z-index: 3; }
.hero-kicker { margin-bottom: 23px; padding: 8px 13px; background: rgba(20,184,166,.055); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.hero-premium h1 { max-width: 740px; margin: 0; font-size: clamp(38px, 4.4vw, 62px); line-height: 1.34; letter-spacing: -1.4px; }
.hero-premium h1 span { position: relative; display: inline-block; color: #74eadc; }
.hero-premium h1 span::after { content: ''; position: absolute; right: 0; left: 0; bottom: 4px; height: 7px; z-index: -1; background: linear-gradient(90deg, transparent, rgba(20,184,166,.18), transparent); filter: blur(5px); }
.hero-premium p { max-width: 680px; margin: 22px 0 0; color: #a3adba; font-size: 15px; line-height: 2.05; }
.hero-actions-start { justify-content: flex-start; margin-top: 31px; }
.btn-large { min-height: 54px; padding-inline: 22px; border-radius: 15px; }
.btn-large svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transform: rotate(180deg); }
.btn-primary { background: linear-gradient(135deg, #2dd4bf, #13b7a5); box-shadow: 0 15px 38px rgba(20,184,166,.22), inset 0 1px 0 rgba(255,255,255,.28); }
.hero-trust-start { justify-content: flex-start; margin-top: 27px; gap: 17px; }
.hero-trust-start b { background: var(--academy); box-shadow: 0 0 10px rgba(20,184,166,.45); }

.hero-visual { position: relative; min-height: 485px; display: grid; place-items: center; }
.academy-board {
    width: 100%;
    position: relative;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015)),
        rgba(10,15,22,.83);
    box-shadow: 0 35px 100px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.04);
    backdrop-filter: blur(18px);
    transform: perspective(1100px) rotateY(-3deg) rotateX(1deg);
}
.academy-board::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(45,212,191,.26), transparent 34%, transparent 68%, rgba(212,175,55,.12));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.board-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 3px 3px 18px; border-bottom: 1px solid var(--line); }
.board-topbar > div { display: flex; flex-direction: column; gap: 4px; }
.board-label { color: #5c6979; font-size: 8px; letter-spacing: 1.8px; direction: ltr; text-align: right; }
.board-topbar strong { font-size: 14px; font-weight: 900; }
.board-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(20,184,166,.18); border-radius: 99px; color: #8cebdd; background: rgba(20,184,166,.055); font-size: 9px; font-weight: 800; white-space: nowrap; }
.board-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--academy); box-shadow: 0 0 10px var(--academy); }
.learning-track { position: relative; display: grid; gap: 8px; padding: 16px 0; }
.learning-track::before { content: ''; position: absolute; right: 26px; top: 36px; bottom: 36px; width: 1px; background: linear-gradient(to bottom, rgba(45,212,191,.40), rgba(255,255,255,.06)); }
.track-item { position: relative; display: grid; grid-template-columns: 46px 1fr 14px; gap: 12px; align-items: center; min-height: 62px; padding: 10px 12px; border: 1px solid transparent; border-radius: 15px; text-decoration: none; transition: .22s; }
.track-item:hover, .track-item.is-active { background: rgba(255,255,255,.025); border-color: rgba(255,255,255,.06); }
.track-item.is-active { box-shadow: inset 3px 0 0 rgba(45,212,191,.55); }
.track-number { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #131c26; border: 1px solid rgba(255,255,255,.065); color: #647084; font-size: 10px; font-weight: 900; direction: ltr; }
.track-item.is-active .track-number { color: #9ff3e7; background: rgba(20,184,166,.09); border-color: rgba(20,184,166,.20); }
.track-copy { display: flex; flex-direction: column; gap: 1px; }
.track-copy small { color: #6e7a8a; font-size: 8px; }
.track-copy strong { color: #e9edf2; font-size: 11px; font-weight: 800; }
.track-dot { position: relative; z-index: 2; width: 9px; height: 9px; border-radius: 50%; background: #1d2936; border: 2px solid #5b6877; justify-self: center; }
.track-item.is-active .track-dot { background: var(--academy); border-color: #a7f3e9; box-shadow: 0 0 13px rgba(20,184,166,.55); }
.board-footer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); }
.mini-stat { min-height: 58px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.045); border-radius: 12px; background: rgba(255,255,255,.018); display: flex; flex-direction: column; justify-content: center; }
.mini-stat strong { font-size: 16px; line-height: 1; direction: ltr; text-align: right; }
.mini-stat span { margin-top: 5px; color: #6f7b8a; font-size: 8px; }
.mini-stat-accent strong { color: #e4c76a; }
.floating-note { position: absolute; z-index: 5; min-width: 210px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(12,17,24,.88); box-shadow: 0 18px 46px rgba(0,0,0,.28); backdrop-filter: blur(16px); }
.floating-note-top { top: 10px; left: -36px; }
.floating-note-bottom { right: -22px; bottom: 12px; }
.floating-icon { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(20,184,166,.10); color: #83eee0; border: 1px solid rgba(20,184,166,.18); font-size: 12px; font-weight: 900; }
.floating-icon-gold { background: rgba(212,175,55,.08); border-color: rgba(212,175,55,.18); color: #dfc46d; font-size: 9px; direction: ltr; }
.floating-note div { display: flex; flex-direction: column; gap: 1px; }
.floating-note small { color: #687587; font-size: 8px; }
.floating-note strong { color: #dce3eb; font-size: 9px; font-weight: 800; }
.hero-divider { margin-top: 56px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; color: #475365; }
.hero-divider span { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.09)); }
.hero-divider span:last-child { background: linear-gradient(90deg, rgba(255,255,255,.09), transparent); }
.hero-divider small { font-size: 8px; letter-spacing: 2.6px; direction: ltr; }

@media (max-width: 1040px) {
    .hero-layout { grid-template-columns: 1fr; gap: 48px; }
    .hero-copy { text-align: center; }
    .hero-premium h1, .hero-premium p { margin-inline: auto; }
    .hero-actions-start, .hero-trust-start { justify-content: center; }
    .hero-visual { width: min(100%, 680px); margin-inline: auto; }
    .academy-board { transform: none; }
}

@media (max-width: 640px) {
    .header-inner { min-height: 70px; }
    .hero-premium { padding-top: 50px; min-height: auto; }
    .hero-premium h1 { font-size: 34px; line-height: 1.42; letter-spacing: -.6px; }
    .hero-premium p { font-size: 13px; }
    .hero-layout { gap: 34px; }
    .hero-visual { min-height: auto; padding: 0 2px 36px; }
    .academy-board { padding: 14px; border-radius: 21px; }
    .board-topbar strong { font-size: 12px; }
    .track-item { grid-template-columns: 42px 1fr 12px; padding: 8px 7px; }
    .track-copy strong { font-size: 10px; }
    .floating-note { display: none; }
    .board-footer { gap: 5px; }
    .mini-stat { padding: 8px 6px; }
    .mini-stat strong { font-size: 14px; }
    .mini-stat span { font-size: 7px; }
    .hero-divider { margin-top: 18px; }
}

/* === APF Academy visual refinement v1.2 === */
/* Original Arab Prop Firm mark, academy naming */
.brand-mark-original {
    width: 52px;
    height: 52px;
    padding: 8px;
    border-radius: 16px;
    border-color: rgba(212,175,55,.22);
    background:
        radial-gradient(circle at 35% 28%, rgba(212,175,55,.12), transparent 56%),
        rgba(255,255,255,.018);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 34px rgba(0,0,0,.22);
}
.apf-original-logo { width: 100%; height: 100%; display: block; }
.apf-original-logo > use { fill: var(--apf-gold); }
.brand-copy small {
    margin-top: 5px;
    color: #8c96a5;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    direction: rtl;
    text-align: right;
}

/* Strong APF Network button */
.network-link {
    position: relative;
    min-width: 172px;
    min-height: 48px;
    padding: 7px 11px 7px 10px;
    display: grid;
    grid-template-columns: 30px 1fr 18px;
    align-items: center;
    gap: 9px;
    direction: rtl;
    overflow: hidden;
    border: 1px solid rgba(212,175,55,.34);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(212,175,55,.13), rgba(212,175,55,.035));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 28px rgba(0,0,0,.20);
    transition: .22s ease;
}
.network-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.09) 50%, transparent 80%);
    transform: translateX(110%);
    transition: transform .5s ease;
}
.network-link:hover {
    transform: translateY(-2px);
    border-color: rgba(229,199,101,.58);
    background: linear-gradient(135deg, rgba(212,175,55,.19), rgba(212,175,55,.06));
    box-shadow: 0 14px 34px rgba(0,0,0,.28), 0 0 24px rgba(212,175,55,.055);
}
.network-link:hover::before { transform: translateX(-110%); }
.network-grid { width: 30px; height: 30px; padding: 5px; display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; border: 1px solid rgba(212,175,55,.20); border-radius: 9px; background: rgba(212,175,55,.07); }
.network-grid i { width: 4px; height: 4px; align-self: center; justify-self: center; border-radius: 1px; background: #e5c765; box-shadow: 0 0 8px rgba(212,175,55,.20); }
.network-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.network-copy small { color: #9b8951; font-size: 7.5px; font-weight: 800; }
.network-copy b { margin-top: 4px; color: #efd77d; font-size: 10px; font-weight: 900; letter-spacing: .65px; direction: ltr; }
.network-arrow { color: #cbb15b; font-size: 13px; direction: ltr; }
.mobile-network-link { color: #e2c867 !important; border: 1px solid rgba(212,175,55,.15); background: rgba(212,175,55,.045); }

/* Cleaner content rhythm and stronger section hierarchy */
.section-stage { position: relative; padding-block: 72px; }
.section-stage::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 6%, rgba(255,255,255,.055) 28%, rgba(255,255,255,.055) 72%, transparent 94%);
}
.section-stage-start { padding-top: 44px; }
.section-stage-start::before { display: none; }
.section-stage-glossary,
.section-stage-articles,
.section-stage-cta {
    background: linear-gradient(180deg, rgba(255,255,255,.012), rgba(255,255,255,.004));
}
.section-head { margin-bottom: 30px; align-items: flex-end; }
.section-head-copy { position: relative; padding-right: 17px; }
.section-head-copy::before {
    content: '';
    position: absolute;
    right: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 99px;
    background: linear-gradient(to bottom, var(--academy-2), rgba(45,212,191,.12));
    box-shadow: 0 0 18px rgba(20,184,166,.14);
}
.section-title { letter-spacing: -.25px; }
.section-description { max-width: 760px; }

.start-grid { gap: 18px; }
.start-card {
    min-height: 238px;
    padding: 25px 24px 56px;
    border-color: rgba(255,255,255,.075);
    background: linear-gradient(155deg, rgba(255,255,255,.046), rgba(255,255,255,.014));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.start-card h3 { min-height: 54px; display: flex; align-items: flex-start; }
.start-card p { max-width: 95%; }
.start-card .card-arrow { bottom: 20px; }

.paths-panel { padding: 14px; border-color: rgba(255,255,255,.075); }
.path-list { gap: 8px; }
.path-row {
    min-height: 82px;
    padding: 13px 16px;
    border-color: rgba(255,255,255,.035);
    background: rgba(255,255,255,.012);
}
.path-row:hover { background: rgba(255,255,255,.032); }
.path-info p { max-width: 760px; line-height: 1.75; }
.path-meta > span:not(.path-status) { padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,.024); }

.glossary-panel { grid-template-columns: minmax(310px,.84fr) minmax(0,1.16fr); gap: 16px; }
.glossary-intro { min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.term-grid { gap: 12px; }
.term-card { min-height: 148px; display: flex; flex-direction: column; }
.term-card p { margin-top: auto; padding-top: 8px; }

.buying-grid { gap: 14px; }
.check-card {
    min-height: 188px;
    padding: 20px;
    border-color: rgba(255,255,255,.07);
    background: linear-gradient(155deg, #101720, #0d1218);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.check-card h3 { font-size: 14px; }
.check-card p { font-size: 11.5px; }

.section-stage-warning { padding-block: 32px 58px; }
.section-stage-warning::before { display: none; }
.warning-strip { min-height: 102px; padding: 22px 24px; }

.articles-grid { gap: 16px; align-items: stretch; }
.article-card { display: flex; flex-direction: column; min-height: 352px; }
.article-content { flex: 1; display: flex; flex-direction: column; }
.article-content p { flex: 1; }
.article-meta { padding-top: 5px; }

.faq-list { gap: 11px; }
details.faq-item { background: linear-gradient(145deg, rgba(255,255,255,.027), rgba(255,255,255,.012)); }
details.faq-item summary { min-height: 58px; }

.section-stage-cta { padding-top: 64px; }
.cta-panel { padding: 54px 30px; }

@media (max-width: 1080px) {
    .network-link { min-width: 152px; }
    .desktop-nav a { padding-inline: 10px; }
    .path-meta { gap: 7px; }
    .path-meta > span:not(.path-status) { display: none; }
}

@media (max-width: 980px) {
    .section-stage { padding-block: 58px; }
    .section-stage-start { padding-top: 34px; }
    .start-grid { grid-template-columns: 1fr; }
    .start-card { min-height: auto; padding-bottom: 58px; }
    .start-card h3 { min-height: 0; }
    .glossary-panel { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .brand-mark-original { width: 44px; height: 44px; padding: 7px; }
    .brand-copy strong { font-size: 16px; }
    .brand-copy small { font-size: 8.5px; }
    .section-stage { padding-block: 48px; }
    .section-head { margin-bottom: 22px; }
    .section-head-copy { padding-right: 13px; }
    .section-head-copy::before { width: 2px; }
    .path-row { grid-template-columns: 46px minmax(0,1fr); min-height: auto; }
    .path-meta { grid-column: 2; margin-top: 5px; }
    .term-card, .check-card, .article-card { min-height: auto; }
    .warning-strip { min-height: auto; padding: 18px; }
}


/* === APF Academy v1.3 — hero rebuild & brand unification === */
:root {
    --brand-ink: #f2f4f7;
}

/* Brand: one visual voice. The academy accent lives in the interface, not inside the logo lockup. */
.brand-mark-original {
    width: 48px;
    height: 48px;
    padding: 8px;
    border-color: rgba(255,255,255,.12);
    background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 10px 28px rgba(0,0,0,.22);
}
.apf-original-logo > use { fill: var(--brand-ink); }
.brand-copy strong,
.brand-copy strong em { color: var(--brand-ink); }
.brand-copy strong { font-size: 19px; letter-spacing: .05px; }
.brand-copy small { color: #818b98; font-size: 9px; font-weight: 700; }

/* Header: tighter, calmer and more deliberate. */
.site-header { background: rgba(7,10,14,.88); }
.header-inner { min-height: 78px; gap: 22px; }
.desktop-nav {
    padding: 4px;
    border-color: rgba(255,255,255,.065);
    background: rgba(255,255,255,.022);
}
.desktop-nav a { min-width: 82px; text-align: center; padding: 8px 12px; color: #aeb7c3; }
.desktop-nav a:hover { color: #f6f7f9; background: rgba(255,255,255,.05); }
.network-link {
    min-width: 180px;
    min-height: 50px;
    border-color: rgba(212,175,55,.38);
    background: linear-gradient(135deg, rgba(212,175,55,.15), rgba(212,175,55,.045));
}
.network-copy small { color: #aa9657; }
.network-copy b { color: #f0d877; font-size: 10.5px; }
.network-grid { background: rgba(212,175,55,.10); }

/* Hero rebuilt: smaller footprint, cleaner hierarchy, no floating cards. */
.hero-v13 {
    min-height: auto;
    padding: 68px 0 66px;
    text-align: right;
    border-bottom: 1px solid rgba(255,255,255,.045);
}
.hero-v13 .hero-grid-pattern {
    opacity: .22;
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), rgba(0,0,0,.12) 82%, transparent);
}
.hero-v13 .hero-orb-one {
    width: 480px;
    height: 480px;
    right: -150px;
    top: -210px;
    background: rgba(20,184,166,.105);
    filter: blur(72px);
}
.hero-v13 .hero-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, .82fr);
    gap: clamp(44px, 6vw, 82px);
    align-items: center;
}
.hero-v13 .hero-copy { max-width: 690px; }
.hero-v13 .hero-kicker {
    margin-bottom: 18px;
    padding: 7px 12px;
    border-color: rgba(45,212,191,.18);
    background: rgba(20,184,166,.045);
    color: #9beadf;
    font-size: 11px;
}
.hero-v13 h1 {
    max-width: 680px;
    font-size: clamp(38px, 4.25vw, 56px);
    line-height: 1.32;
    letter-spacing: -1.15px;
}
.hero-v13 h1 span {
    color: #6fe2d4;
    text-shadow: 0 0 28px rgba(45,212,191,.10);
}
.hero-v13 h1 span::after { display: none; }
.hero-v13 p {
    max-width: 650px;
    margin-top: 18px;
    color: #9ba6b4;
    font-size: 14px;
    line-height: 1.95;
}
.hero-v13 .hero-actions-start { margin-top: 26px; }
.hero-v13 .btn-large { min-height: 50px; padding-inline: 20px; border-radius: 13px; }
.hero-v13 .hero-trust-start { margin-top: 23px; gap: 16px; color: #7d8997; }
.hero-v13 .hero-trust-start b { width: 5px; height: 5px; box-shadow: none; }

.hero-v13 .hero-visual {
    min-height: 0;
    display: block;
    width: 100%;
}
.academy-dashboard {
    width: 100%;
    position: relative;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.095);
    border-radius: 24px;
    background:
        linear-gradient(160deg, rgba(255,255,255,.052), rgba(255,255,255,.012) 48%),
        #0c1219;
    box-shadow: 0 28px 80px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.045);
    overflow: hidden;
}
.academy-dashboard::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    top: -105px;
    left: -80px;
    border-radius: 50%;
    background: rgba(20,184,166,.11);
    filter: blur(45px);
    pointer-events: none;
}
.dashboard-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.dashboard-head-copy { display: flex; flex-direction: column; gap: 3px; }
.dashboard-eyebrow { color: #667382; font-size: 7.5px; letter-spacing: 1.8px; direction: ltr; text-align: right; }
.dashboard-head-copy strong { color: #eef1f5; font-size: 13px; font-weight: 900; }
.dashboard-progress-label { color: #6fe2d4; font-size: 12px; font-weight: 900; direction: ltr; }
.dashboard-progress {
    position: relative;
    z-index: 1;
    height: 4px;
    margin-top: 14px;
    border-radius: 99px;
    background: rgba(255,255,255,.055);
    overflow: hidden;
}
.dashboard-progress span { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #14b8a6, #5eead4); }
.dashboard-title { position: relative; z-index: 1; padding: 22px 0 16px; }
.dashboard-title small { color: #758292; font-size: 9px; font-weight: 700; }
.dashboard-title h2 { max-width: 380px; margin-top: 4px; color: #f3f5f7; font-size: 21px; line-height: 1.55; font-weight: 900; }
.dashboard-steps { position: relative; z-index: 1; display: grid; gap: 8px; }
.dashboard-step {
    min-height: 68px;
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 11px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 15px;
    background: rgba(255,255,255,.018);
    text-decoration: none;
    transition: .2s ease;
}
.dashboard-step:hover { transform: translateX(-2px); border-color: rgba(255,255,255,.11); background: rgba(255,255,255,.032); }
.dashboard-step.is-current {
    border-color: rgba(45,212,191,.19);
    background: linear-gradient(90deg, rgba(20,184,166,.075), rgba(255,255,255,.018));
    box-shadow: inset -2px 0 0 rgba(45,212,191,.58);
}
.step-index {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 11px;
    background: #121a24;
    color: #687585;
    font-size: 9px;
    font-weight: 900;
    direction: ltr;
}
.is-current .step-index { color: #8beadf; border-color: rgba(45,212,191,.18); background: rgba(20,184,166,.075); }
.step-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.step-text small { color: #6e7a89; font-size: 8px; }
.step-text strong { color: #dfe4e9; font-size: 11px; font-weight: 800; line-height: 1.55; }
.step-state {
    padding: 5px 8px;
    border-radius: 99px;
    border: 1px solid rgba(45,212,191,.15);
    background: rgba(20,184,166,.06);
    color: #75dfd2;
    font-size: 8px;
    font-weight: 900;
    white-space: nowrap;
}
.step-state-muted { border-color: rgba(255,255,255,.055); background: rgba(255,255,255,.018); color: #697687; }
.dashboard-foot {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,.065);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.dashboard-foot > div { display: flex; align-items: center; gap: 10px; }
.dashboard-foot-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;
    color: #dce1e7;
    background: rgba(255,255,255,.025);
    font-size: 8px;
    font-weight: 900;
    direction: ltr;
}
.dashboard-foot p { display: flex; flex-direction: column; line-height: 1.45; }
.dashboard-foot p strong { color: #dfe4e9; font-size: 9px; }
.dashboard-foot p small { margin-top: 2px; color: #6f7b89; font-size: 8px; }
.dashboard-foot > a {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(45,212,191,.16);
    border-radius: 11px;
    background: rgba(20,184,166,.06);
    color: #72e0d3;
    text-decoration: none;
    transition: .2s;
}
.dashboard-foot > a:hover { background: rgba(20,184,166,.12); transform: translateX(-2px); }

/* Stronger separation between content stages without visual clutter. */
.section-stage-start { padding-top: 58px; }
.section-stage { padding-block: 68px; }
.section-stage::before { background: linear-gradient(90deg, transparent 7%, rgba(255,255,255,.06) 30%, rgba(255,255,255,.06) 70%, transparent 93%); }
.section-head { margin-bottom: 28px; }
.section-head-copy::before { opacity: .72; }
.start-card, .paths-panel, .glossary-intro, .term-card, .check-card, .article-card, details.faq-item { border-color: rgba(255,255,255,.075); }

@media (max-width: 1040px) {
    .hero-v13 .hero-layout { grid-template-columns: 1fr; gap: 42px; }
    .hero-v13 .hero-copy { max-width: 760px; margin-inline: auto; text-align: center; }
    .hero-v13 h1, .hero-v13 p { margin-inline: auto; }
    .hero-v13 .hero-actions-start, .hero-v13 .hero-trust-start { justify-content: center; }
    .hero-v13 .hero-visual { width: min(100%, 620px); margin-inline: auto; }
}

@media (max-width: 760px) {
    .network-link { display: none; }
    .hero-v13 { padding: 48px 0 52px; }
    .hero-v13 h1 { font-size: 36px; line-height: 1.38; }
    .hero-v13 p { font-size: 13px; }
    .academy-dashboard { padding: 16px; border-radius: 20px; }
    .dashboard-title { padding-block: 18px 14px; }
    .dashboard-title h2 { font-size: 18px; }
}

@media (max-width: 520px) {
    .brand-mark-original { width: 43px; height: 43px; }
    .brand-copy strong { font-size: 15px; }
    .brand-copy small { font-size: 8px; }
    .hero-v13 h1 { font-size: 31px; letter-spacing: -.55px; }
    .hero-v13 .hero-actions-start { width: 100%; }
    .hero-v13 .btn-large { width: 100%; }
    .dashboard-step { grid-template-columns: 38px minmax(0,1fr); }
    .step-state { display: none; }
    .dashboard-foot p small { display: none; }
    .section-stage { padding-block: 52px; }
    .section-stage-start { padding-top: 46px; }
}

/* === APF Academy v1.6 — shared APF app launcher === */
.header-inner {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    align-items: center;
    gap: 24px;
}
.brand-zone {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}
.desktop-nav {
    grid-column: 2;
    justify-self: center;
}
.header-actions {
    grid-column: 1;
    justify-self: start;
}

.apf-app-launcher {
    position: relative;
    flex: 0 0 auto;
}
.apf-app-btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(255,255,255,.032);
    color: #eef2f6;
    cursor: pointer;
    transition: border-color .24s ease, background .24s ease, transform .24s ease, box-shadow .24s ease;
}
.apf-grid-icon {
    width: 23px;
    height: 23px;
    display: block;
    fill: currentColor;
    opacity: .92;
    transition: color .24s ease, transform .24s ease;
}
.apf-app-btn:hover,
.apf-app-launcher.is-open .apf-app-btn {
    color: #76e6d8;
    border-color: rgba(45,212,191,.34);
    background: rgba(20,184,166,.075);
    box-shadow: 0 0 26px rgba(20,184,166,.09);
    transform: translateY(-1px);
}
.apf-app-launcher.is-open .apf-grid-icon { transform: rotate(6deg); }

.apf-app-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 356px;
    padding: 11px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 22px;
    background: rgba(10,14,19,.975);
    box-shadow: 0 26px 80px rgba(0,0,0,.54), 0 0 36px rgba(20,184,166,.055);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(.975);
    transform-origin: top right;
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
    z-index: 120;
}
.apf-app-launcher.is-open .apf-app-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.apf-app-dropdown::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 15px;
    width: 13px;
    height: 13px;
    border-top: 1px solid rgba(255,255,255,.09);
    border-right: 1px solid rgba(255,255,255,.09);
    background: rgba(10,14,19,.975);
    transform: rotate(-45deg);
}
.apf-app-card {
    --app-accent: #76e6d8;
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 16px;
    background:
        radial-gradient(circle at 96% 4%, color-mix(in srgb, var(--app-accent) 12%, transparent), transparent 43%),
        linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.016));
    text-decoration: none;
    overflow: hidden;
    transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.apf-app-card + .apf-app-card { margin-top: 8px; }
.apf-app-card--academy { --app-accent: #2dd4bf; }
.apf-app-card--arab { --app-accent: #e1ba32; }
.apf-app-card--prop { --app-accent: #16c79a; }
.apf-app-card--brokers { --app-accent: #3c91ff; }
.apf-app-card[aria-current="page"] {
    border-color: color-mix(in srgb, var(--app-accent) 38%, rgba(255,255,255,.08));
    box-shadow: inset 3px 0 0 color-mix(in srgb, var(--app-accent) 68%, transparent);
}
.apf-app-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--app-accent) 48%, rgba(255,255,255,.07));
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.apf-app-card-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--app-accent) 30%, rgba(255,255,255,.06));
    border-radius: 13px;
    background: color-mix(in srgb, var(--app-accent) 7%, rgba(8,11,15,.94));
    color: var(--app-accent);
}
.apf-app-card-mark svg { width: 27px; height: 27px; fill: currentColor; }
.apf-app-card-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: right;
}
.apf-app-card-copy strong {
    color: #f4f6f8;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
    direction: ltr;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.apf-app-card-copy small {
    margin-top: 3px;
    color: #7f8b99;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.55;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.apf-app-current {
    align-self: start;
    margin-top: 2px;
    padding: 4px 7px;
    border: 1px solid rgba(45,212,191,.18);
    border-radius: 999px;
    background: rgba(20,184,166,.07);
    color: #7de8da;
    font-size: 7.5px;
    font-weight: 900;
    white-space: nowrap;
}

/* Legacy network button is intentionally retired in Academy v1.6. */
.network-link, .mobile-network-link { display: none !important; }

@media (max-width: 980px) {
    .header-inner {
        grid-template-columns: 1fr auto;
        gap: 14px;
    }
    .brand-zone { grid-column: 2; }
    .header-actions { grid-column: 1; }
    .desktop-nav { display: none; }
    .menu-btn { display: block; }
}

@media (max-width: 640px) {
    .brand-zone { gap: 8px; }
    .apf-app-btn { width: 40px; height: 40px; border-radius: 12px; }
    .apf-grid-icon { width: 21px; height: 21px; }
    .apf-app-dropdown {
        position: fixed;
        top: 72px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        border-radius: 20px;
        transform-origin: top center;
    }
    .apf-app-dropdown::before { right: 69px; }
    .apf-app-card { min-height: 70px; grid-template-columns: 42px minmax(0,1fr) auto; padding: 10px; }
    .apf-app-card-mark { width: 40px; height: 40px; border-radius: 12px; }
    .apf-app-card-mark svg { width: 24px; height: 24px; }
    .apf-app-card-copy strong { font-size: 13px; }
    .apf-app-card-copy small { font-size: 8.5px; }
}

@media (max-width: 430px) {
    .brand-copy small { display: none; }
    .brand-zone { gap: 6px; }
    .apf-app-current { display: none; }
    .apf-app-card { grid-template-columns: 40px minmax(0,1fr); }
}

/* === APF Academy v1.7 — deterministic RTL-safe header alignment ===
   Keep document RTL, but make the topbar grid itself LTR so physical
   columns never flip. Individual content zones return to RTL. */
.header-inner {
    direction: ltr;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    grid-template-areas: "actions nav brand";
    align-items: center;
    min-height: 78px;
    height: 78px;
    gap: 24px;
    padding-block: 0;
}

.brand-zone {
    grid-area: brand;
    grid-column: auto;
    justify-self: end;
    align-self: center;
    direction: rtl;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 11px;
    min-width: 0;
}

.brand {
    direction: rtl;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
}

.brand-copy {
    direction: rtl;
    flex: 0 0 auto;
}

.brand-copy strong {
    direction: ltr;
    text-align: left;
    white-space: nowrap;
}

.brand-copy small {
    direction: rtl;
    text-align: right;
    white-space: nowrap;
}

.desktop-nav {
    grid-area: nav;
    grid-column: auto;
    justify-self: center;
    align-self: center;
    direction: rtl;
    margin: 0;
}

.header-actions {
    grid-area: actions;
    grid-column: auto;
    justify-self: start;
    align-self: center;
    direction: rtl;
    min-width: 44px;
}

/* App button sits immediately to the left of the brand lockup. */
.apf-app-launcher {
    direction: rtl;
    align-self: center;
}

/* Keep the desktop dropdown opening inward, away from the right viewport edge. */
.apf-app-dropdown {
    right: 0;
    left: auto;
    transform-origin: top right;
}

/* Remove any inherited vertical drift from older header generations. */
.site-header .brand-zone,
.site-header .desktop-nav,
.site-header .header-actions,
.site-header .brand,
.site-header .apf-app-launcher {
    margin-top: 0;
    margin-bottom: 0;
    top: auto;
    bottom: auto;
}

@media (max-width: 980px) {
    .header-inner {
        direction: ltr;
        grid-template-columns: minmax(52px, 1fr) auto;
        grid-template-areas: "actions brand";
        min-height: 70px;
        height: 70px;
        gap: 12px;
    }

    .brand-zone {
        grid-area: brand;
        grid-column: auto;
        justify-self: end;
        direction: rtl;
    }

    .header-actions {
        grid-area: actions;
        grid-column: auto;
        justify-self: start;
    }

    .desktop-nav { display: none; }
    .menu-btn { display: block; }
    .mobile-nav { top: 70px; }
}

@media (max-width: 640px) {
    .header-inner {
        min-height: 66px;
        height: 66px;
    }
    .mobile-nav { top: 66px; }
    .brand-zone { gap: 7px; }
}
