/* الخط مستضاف على سيرفرنا (أسرع من Google Fonts وبدون اتصال خارجي) */
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/plex-arabic-arabic-400.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/plex-arabic-latin-400.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/plex-arabic-arabic-500.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/plex-arabic-latin-500.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/plex-arabic-arabic-600.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/plex-arabic-latin-600.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/plex-arabic-arabic-700.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/plex-arabic-latin-700.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* =========================================================
   عرب اف اكس — الهوية الأساسية للمنصة
   فاتح افتراضياً + وضع ليلي · أزرق سماوي · IBM Plex Sans Arabic
   ========================================================= */

:root {
    --bg: #F6F8FB;
    --surface: #FFFFFF;
    --ink: #0F172A;
    --muted: #556274;
    --line: #E3E8EF;
    --line-strong: #CBD3DE;
    --accent: #0369A1;
    --on-accent: #FFFFFF;
    --accent-deep: #075985;
    --accent-soft: #E0F2FE;
    --accent-ink: #075985;
    --up: #047857;
    --down: #B91C1C;
    --up-bg: #DCFCE7;
    --down-bg: #FEE2E2;
    --neutral-bg: #EEF1F5;
    --radius: 14px;
    --radius-sm: 10px;
    --max: 1240px;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #0B1220;
    --surface: #111A2B;
    --ink: #E5E9F0;
    --muted: #9AA6B8;
    --line: #1F2A3D;
    --line-strong: #33415A;
    --accent: #38BDF8;
    --on-accent: #06263A;
    --accent-deep: #06263A;
    --accent-soft: #0C2E45;
    --accent-ink: #7DD3FC;
    --up: #34D399;
    --down: #F87171;
    --up-bg: #0B3326;
    --down-bg: #3A1418;
    --neutral-bg: #1F2A3D;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    font-size: 16px;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.35; }
p { margin: 0; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }

.skip-link {
    position: absolute; inset-inline-start: 12px; top: -48px;
    background: var(--accent); color: var(--on-accent);
    padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { top: 12px; }

/* ---------- أزرار ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 12px 22px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer;
    transition: opacity .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.icon-btn {
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: transparent; color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}

.link-accent { color: var(--accent); font-weight: 600; }

/* ---------- الهيدر ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { font-size: 22px; font-weight: 700; letter-spacing: -.3px; white-space: nowrap; }
.logo span { color: var(--accent); }
.main-nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; color: var(--muted); }
.main-nav a { white-space: nowrap; }
.header-actions > * { flex-shrink: 0; }
.header-cta { white-space: nowrap; padding-inline: 18px; }
.main-nav a[aria-current="page"] { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

.ticker-bar { border-top: 1px solid var(--line); background: var(--bg); min-height: 46px; }

@media (max-width: 1180px) {
    .main-nav {
        display: none; position: absolute; inset-inline: 0; top: 100%;
        flex-direction: column; gap: 0; background: var(--surface);
        border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .menu-btn { display: inline-flex; }
}
@media (max-width: 720px) { .header-cta { display: none; } }

/* ---------- أقسام ---------- */
.section { padding-block: 40px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.section-title { font-size: 30px; font-weight: 700; margin-bottom: 6px; }
.section-sub { color: var(--muted); font-size: 15px; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid-stats { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; display: flex; flex-direction: column; gap: 12px;
}
a.card:hover { opacity: 1; border-color: var(--line-strong); }

.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill-up { background: var(--up-bg); color: var(--up); }
.pill-down { background: var(--down-bg); color: var(--down); }
.pill-flat { background: var(--neutral-bg); color: var(--muted); }
.pill-accent { background: var(--accent-soft); color: var(--accent-ink); padding: 6px 12px; font-size: 13px; }

/* ---------- الواجهة الأولى ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 48px; align-items: center; padding-block: 64px 48px; }
.hero-text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.3; letter-spacing: -.5px; }
.hero-lead { font-size: 18px; line-height: 1.8; color: var(--muted); max-width: 540px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chart-card { padding: 16px; gap: 12px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; }
.chart-box { height: 340px; border-radius: 12px; overflow: hidden; background: var(--bg); }

@media (max-width: 520px) {
    .hero { grid-template-columns: 1fr; padding-block: 40px 24px; gap: 28px; }
    .chart-box { height: 280px; }
}

/* ---------- سجل التوصيات ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.stat { background: var(--bg); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.stat-value { font-size: 26px; font-weight: 700; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.table th { background: var(--bg); color: var(--muted); text-align: start; font-weight: 600; padding: 12px 16px; }
.table td { padding: 14px 16px; border-top: 1px solid var(--line); }

@media (max-width: 520px) { .panel { padding: 20px; } }

/* ---------- تعلّم / وسطاء ---------- */
.step-num {
    width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.broker-head { display: flex; align-items: center; gap: 12px; }
.broker-logo {
    width: 48px; height: 48px; border-radius: 12px; border: 1px dashed var(--line-strong);
    display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted);
}
.broker-actions { display: flex; gap: 10px; }
.broker-actions .btn { flex: 1; }

/* ---------- VIP ---------- */
.cta-band {
    border-radius: 20px; background: var(--accent); color: var(--on-accent); padding: 40px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band .btn-light { background: var(--on-accent); color: var(--accent-deep); font-weight: 700; }
.cta-band .btn-ghost { border-color: var(--on-accent); color: var(--on-accent); }
:root[data-theme="dark"] .cta-band .btn-light { background: #06263A; color: #7DD3FC; }

/* ---------- الفوتر ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 32px; }
.footer-main { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 380px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; line-height: 1.9; margin: 0; }
.footer-loc { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); font-weight: 500; }
.footer-loc svg { color: var(--accent); flex: none; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.footer-col a { color: var(--muted); width: fit-content; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); background: var(--bg); }
.footer-risk { font-size: 12.5px; line-height: 1.9; color: var(--muted); padding-top: 20px; margin: 0; }
.footer-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; padding-block: 14px 24px; color: var(--ink); }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; max-width: none; } }
@media (max-width: 520px) { .footer-main { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 28px; } }

.placeholder-note {
    border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 10px 14px;
    font-size: 13px; color: var(--muted); background: var(--bg);
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* أزرار الإطار الزمني */
.tf-group { display: flex; gap: 6px; font-size: 12px; font-weight: 600; }
.tf-group button {
    padding: 6px 10px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; min-height: 32px;
}
.tf-group button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- التحليلات ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    gap: 8px;
    padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
    font-size: 14px; font-weight: 500; color: var(--muted); min-height: 38px; display: inline-flex; align-items: center;
}
.chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.article { max-width: 860px; }
.article-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.article-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.article-title { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.4; }
.article-lead { font-size: 18px; line-height: 1.8; color: var(--muted); }

.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.level { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.level-res { border-inline-start: 3px solid var(--down); }
.level-sup { border-inline-start: 3px solid var(--up); }
.level-value { font-size: 22px; font-weight: 700; text-align: start; }

.prose { font-size: 17px; line-height: 2; }
.prose h2 { font-size: 24px; margin: 28px 0 10px; }
.prose h3 { font-size: 20px; margin: 22px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-inline-start: 22px; margin: 0 0 14px; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose blockquote { margin: 16px 0; padding: 10px 16px; border-inline-start: 3px solid var(--accent); background: var(--accent-soft); border-radius: 8px; }
.prose img { border-radius: 10px; margin: 12px 0; }

.scenario p { line-height: 1.9; }
.scenario-up { border-top: 3px solid var(--up); }
.scenario-down { border-top: 3px solid var(--down); }

.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; }
.pager-btn { padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.pager-btn.disabled { opacity: .4; }

/* ---------- سجل التوصية ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); }
.timeline-item { position: relative; padding: 0 20px 18px; display: flex; flex-direction: column; gap: 2px; }
.timeline-item::before {
    content: ''; position: absolute; inset-inline-start: -7px; top: 6px; width: 12px; height: 12px;
    border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong);
}
.timeline-label { font-weight: 600; }
.tl-tp1::before, .tl-tp2::before, .tl-tp3::before { border-color: var(--up); background: var(--up); }
.tl-sl::before { border-color: var(--down); background: var(--down); }
.tl-created::before, .tl-activated::before { border-color: var(--accent); background: var(--accent); }

/* ---------- الوسطاء ---------- */
.broker-card { gap: 14px; }
.broker-logo-img { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 4px; }
.broker-logo { font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-style: solid; border-color: transparent; }
.broker-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.broker-facts li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.broker-facts li:last-child { border-bottom: 0; }
.broker-hero { gap: 16px; }
.broker-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; margin-top: 16px; }
.broker-h { font-size: 18px; margin-bottom: 4px; }
.offer-card { margin-top: 16px; border-color: var(--accent); background: var(--accent-soft); }
.plain-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; line-height: 1.7; }

/* ---------- الدروس ---------- */
.lesson-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.lesson-nav .card { gap: 4px; }
@media (max-width: 520px) { .lesson-nav { grid-template-columns: 1fr; } }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: start; }
.prose th { background: var(--bg); }

/* صور داخل المقالات */
.prose figure { margin: 24px 0; }
.prose figure img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); margin: 0; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; line-height: 1.7; }

/* ---------- اللوجو ---------- */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 44px; width: auto; display: block; }
.logo-footer img { height: 36px; }
.logo-dark { display: none !important; }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
@media (max-width: 520px) { .logo img { height: 36px; } }

/* ===== الأجندة الاقتصادية والأخبار ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.imp { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--line-strong); vertical-align: middle; }
.imp-high { background: #DC2626; }
.imp-medium { background: #F59E0B; }
.imp-low { background: #FCD34D; opacity: .7; }
.imp-holiday { background: var(--line-strong); }
.cal-filters { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 8px; }
.cal-next { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid #DC2626; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; }
.cal-day { font-size: 19px; font-weight: 700; margin: 28px 0 10px; display: flex; align-items: center; gap: 10px; }
.cal-day.is-today { color: var(--accent); }
.cal-table td { vertical-align: middle; }
.cal-table .cal-en { display: block; margin-top: 2px; }
.cal-table .cal-num { text-align: start; white-space: nowrap; }
.cal-table tr.is-past td { opacity: .62; }
.up { color: var(--up); }
.down { color: var(--down); }
.home-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.home-split > div { min-width: 0; }
@media (max-width: 900px) { .home-split { grid-template-columns: 1fr; } }
.news-list { display: flex; flex-direction: column; }
.news-row { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.news-row:hover strong { color: var(--accent); }
.cal-mini { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cal-mini:last-child { border-bottom: 0; }
.cal-mini.is-past { opacity: .6; }

.cal-empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 14px 18px; }
.cal-empty.is-past { opacity: .6; }

.event-card { margin-bottom: 24px; gap: 14px; }
.event-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.event-card-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.event-card-nums > div { background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.event-card-nums strong { font-size: 24px; }

/* ===== النماذج والحساب ===== */
.auth-wrap { max-width: 460px; margin-inline: auto; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select { font: inherit; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field .hint { font-size: 12px; color: var(--muted); }
.field .err, .form-error { font-size: 13px; color: var(--down); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; }
.check input { margin-top: 4px; }
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; }
.alert-ok { background: var(--up-bg); color: var(--up); }
.alert-warn { background: #FEF3C7; color: #92400E; }
:root[data-theme="dark"] .alert-warn { background: #3A2E0B; color: #FCD34D; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .account-grid { grid-template-columns: 1fr; } }
.tier-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--neutral-bg); }
.tier-badge.is-client { background: linear-gradient(135deg, #0369A1, #075985); color: #fff; }
.usage-bar { height: 8px; border-radius: 99px; background: var(--neutral-bg); overflow: hidden; }
.usage-bar span { display: block; height: 100%; background: var(--accent); }
.header-login { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px; font-weight: 600; font-size: 14px; white-space: nowrap; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.header-login:hover { border-color: var(--accent); color: var(--accent); }
.header-actions .btn { height: 44px; min-height: 44px; padding-block: 0; }
.header-admin { border-color: var(--accent); color: var(--accent); gap: 6px; }
@media (max-width: 720px) { .header-login { display: none; } }
.nav-mobile-only { display: none; }
@media (max-width: 720px) { .nav-mobile-only { display: block; } }
@media (max-width: 1560px) { .header-admin .lbl { display: none; } .header-admin { width: 44px; padding: 0; } }

/* ===== صفحة من نحن ===== */
.about-hero { background: linear-gradient(135deg, #0369A1 0%, #075985 55%, #0B1220 100%); color: #fff; }
.about-hero-inner { padding-block: 64px 56px; max-width: 980px; }
.about-badge { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.about-hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.3; font-weight: 700; margin-bottom: 18px; }
.about-hero p { font-size: 18px; line-height: 2; color: rgba(255,255,255,.88); max-width: 760px; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.about-stats > div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.about-stats strong { font-size: 26px; font-weight: 700; }
.about-stats span { font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.6; }
@media (max-width: 760px) { .about-stats { grid-template-columns: 1fr 1fr; } }
.about-kicker { display: inline-block; color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.about-story { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.about-story p { font-size: 17px; line-height: 2; margin-bottom: 14px; }
@media (max-width: 900px) { .about-story { grid-template-columns: 1fr; } }
.about-timeline { list-style: none; padding: 0; margin: 0; position: relative; display: flex; flex-direction: column; gap: 18px; }
.about-timeline::before { content: ""; position: absolute; inset-inline-start: 34px; top: 10px; bottom: 10px; width: 2px; background: var(--line-strong); }
.about-timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: start; position: relative; }
.about-timeline li > span { background: var(--accent); color: var(--on-accent); border-radius: 999px; font-weight: 700; font-size: 13px; text-align: center; padding: 6px 0; position: relative; z-index: 1; }
.about-timeline li > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.about-timeline p { font-size: 14px; color: var(--muted); margin: 4px 0 0; line-height: 1.7; }
.about-vm { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .about-vm { grid-template-columns: 1fr; } }
.about-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.about-card h3 { font-size: 20px; font-weight: 700; }
.about-card p { color: var(--muted); line-height: 1.9; font-size: 15.5px; margin: 0; }
.about-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.about-band { background: var(--surface); border-block: 1px solid var(--line); }
.about-band .about-card { background: var(--bg); }
.about-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.about-service { transition: transform .15s, border-color .15s; }
.about-service:hover { transform: translateY(-3px); border-color: var(--accent); }
.about-service .link-accent { margin-top: auto; font-size: 14px; }
.about-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.about-why-item { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.about-why-item p { color: var(--muted); margin: 4px 0 0; line-height: 1.8; font-size: 15px; }
.about-num { font-size: 26px; font-weight: 700; color: var(--accent); line-height: 1; min-width: 36px; }
.about-leader { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px; }
.about-leader p { line-height: 2; font-size: 16px; margin-bottom: 10px; }
.about-role { color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.about-avatar { width: 250px; aspect-ratio: 520 / 625; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, #1E2858, #0369A1); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(3,105,161,.18); }
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-avatar span { color: #fff; font-size: 64px; font-weight: 700; }
@media (max-width: 700px) { .about-leader { grid-template-columns: 1fr; text-align: center; padding: 24px; } .about-avatar { margin-inline: auto; width: 220px; } }
.about-values { background: #0B1220; color: #E5E9F0; text-align: center; padding-block: 56px; }
.about-values p { max-width: 760px; margin: 0 auto 10px; line-height: 2; color: #B8C2D3; font-size: 16.5px; }
.about-motto { display: flex; justify-content: center; align-items: center; gap: 22px; font-size: clamp(28px, 5vw, 44px); font-weight: 700; margin-bottom: 20px; color: #fff; }
.about-motto i { width: 10px; height: 10px; border-radius: 50%; background: #F15B3C; display: inline-block; }

/* أيقونات التواصل في الفوتر */
.social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.social-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); background: var(--surface); transition: color .15s, border-color .15s, transform .15s; }
.social-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ===== تواصل معنا ===== */
.contact-hero .about-hero-inner { padding-block: 52px 44px; }
.contact-grid { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-side { display: flex; flex-direction: column; gap: 12px; }
.contact-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; transition: border-color .15s, transform .15s; }
a.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-card div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-card strong { font-size: 15px; }
.contact-card span:not(.contact-ico) { color: var(--muted); font-size: 14px; }
.contact-card small { color: var(--up); font-size: 12px; font-weight: 600; }
.contact-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.contact-wa .contact-ico { background: #DCF8E8; color: #128C4A; }
.contact-wa { border-color: #A7E3C1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); resize: vertical; line-height: 1.8; }
.field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-block: 24px; }
/* زر واتساب العائم */
.wa-float { position: fixed; bottom: 22px; left: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: #fff; border-radius: 999px; padding: 12px; box-shadow: 0 10px 28px rgba(18,140,74,.35); font-weight: 700; font-size: 15px; transition: transform .15s, box-shadow .15s; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(18,140,74,.45); }
.wa-float .wa-label { display: none; padding-inline-end: 6px; }
@media (min-width: 900px) { .wa-float { padding: 12px 18px 12px 14px; } .wa-float .wa-label { display: inline; } }
@media print { .wa-float { display: none; } }

/* ===== التحليلات الآلية: التحديث المسائي، الأرشيف، الشارت ===== */
.analysis-update { margin: 20px 0 8px; padding: 16px 18px; border-radius: 14px; background: #FFF7ED; border: 1px solid #FED7AA; border-inline-start: 4px solid #F15B3C; }
.analysis-update-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.analysis-update-title { display: block; font-size: 17px; margin-bottom: 4px; color: #1E2858; }
.analysis-update .prose p:last-child { margin-bottom: 0; }
.update-tag { display: inline-block; background: #F15B3C; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; line-height: 1.7; }
.card .update-tag { font-size: 11px; padding: 0 8px; }
.archive-note { margin-bottom: 16px; padding: 12px 16px; border-radius: 12px; background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E3A8A; font-size: 15px; line-height: 1.8; }
.archive-note a { font-weight: 700; color: #0369A1; white-space: nowrap; }
.auto-chart svg { display: block; width: 100%; height: auto; border-radius: 10px; }

/* =========================================================
   المتداول الذكي
   ========================================================= */
.st-up { color: var(--up) !important; } .st-down { color: var(--down) !important; } .st-muted { color: var(--muted); font-weight: 500; }

/* ---- الصفحة التعريفية ---- */
.st-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #2B3A7A 0%, transparent 60%), linear-gradient(160deg, #141B3D 0%, #1E2858 55%, #10173A 100%); color: #fff; padding: 72px 0 80px; }
.st-hero-glow { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%); }
.st-hero-glow::after { content: ""; position: absolute; width: 520px; height: 520px; left: -120px; bottom: -260px; background: radial-gradient(circle, rgba(241,91,60,.35), transparent 65%); filter: blur(10px); }
.st-hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.st-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: 14px; font-weight: 600; }
.st-dot { width: 8px; height: 8px; border-radius: 50%; background: #F15B3C; box-shadow: 0 0 0 0 rgba(241,91,60,.7); animation: st-pulse 1.8s infinite; }
@keyframes st-pulse { 70% { box-shadow: 0 0 0 10px rgba(241,91,60,0); } 100% { box-shadow: 0 0 0 0 rgba(241,91,60,0); } }
.st-hero-title { font-size: clamp(40px, 6vw, 68px); line-height: 1.1; margin: 18px 0 14px; font-weight: 700; background: linear-gradient(90deg, #fff 0%, #FFD3C7 60%, #F15B3C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-hero-lead { font-size: 18px; line-height: 2; color: rgba(255,255,255,.82); max-width: 560px; }
.st-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.st-btn-glow { background: linear-gradient(135deg, #F15B3C, #FF8A5B); color: #fff; box-shadow: 0 10px 30px -8px rgba(241,91,60,.7); font-weight: 700; }
.st-btn-glow:hover { filter: brightness(1.06); transform: translateY(-1px); }
.st-btn-ghost { border: 1px solid rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.06); }
.st-hero-note { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.6); }
.st-hero-demo { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 22px; backdrop-filter: blur(8px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 14px; }
.st-demo-q { align-self: flex-start; background: #F15B3C; color: #fff; padding: 10px 16px; border-radius: 16px 16px 4px 16px; font-weight: 600; }
.st-demo-steps { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: rgba(255,255,255,.75); }
.st-card-demo { color: var(--ink); }
.st-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.st-feature { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: transform .2s, box-shadow .2s; }
.st-feature:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -20px rgba(30,40,88,.35); }
.st-feature h3 { font-size: 18px; margin: 12px 0 8px; }
.st-feature p { color: var(--muted); line-height: 1.9; font-size: 15px; margin: 0; }
.st-ficon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); font-size: 24px; }
.st-disclaimer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; }
@media (max-width: 960px) { .st-hero-inner { grid-template-columns: 1fr; } .st-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .st-features { grid-template-columns: 1fr; } .st-hero { padding: 48px 0 56px; } }

/* ---- التطبيق ---- */
.st-app { display: grid; grid-template-columns: 290px 1fr; height: calc(100dvh - var(--st-top, 64px)); min-height: 520px; background: var(--bg); position: relative; }
.st-side { background: linear-gradient(180deg, #141B3D, #1E2858); color: #fff; display: flex; flex-direction: column; min-height: 0; }
.st-side-top { padding: 18px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.st-brand { display: flex; gap: 10px; align-items: center; }
.st-brand strong { display: block; font-size: 16px; } .st-brand small { color: rgba(255,255,255,.55); font-size: 12px; }
.st-logo, .st-avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #F15B3C, #FF8A5B); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .5px; flex-shrink: 0; direction: ltr; }
.st-new { border: 1px dashed rgba(255,255,255,.3); background: rgba(255,255,255,.05); color: #fff; border-radius: 12px; padding: 11px; font: inherit; font-weight: 600; cursor: pointer; transition: background .2s; }
.st-new:hover { background: rgba(255,255,255,.12); }
.st-convs { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.st-convs-empty { color: rgba(255,255,255,.45); font-size: 13px; text-align: center; margin-top: 20px; }
.st-conv { display: flex; align-items: stretch; border-radius: 10px; transition: background .15s; }
.st-conv:hover, .st-conv.active { background: rgba(255,255,255,.09); }
.st-conv-open { flex: 1; min-width: 0; text-align: start; background: none; border: 0; color: #fff; font: inherit; padding: 9px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.st-conv-open span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.st-conv-open small { color: rgba(255,255,255,.45); font-size: 11px; }
.st-conv-del { background: none; border: 0; color: rgba(255,255,255,.35); cursor: pointer; padding: 0 10px; opacity: 0; }
.st-conv:hover .st-conv-del { opacity: 1; } .st-conv-del:hover { color: #FCA5A5; }
.st-usage { padding: 16px 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.st-usage-row { display: flex; justify-content: space-between; margin-bottom: 8px; color: rgba(255,255,255,.75); }
.st-usage-row b { color: #fff; direction: ltr; }
.st-bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.st-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #38BDF8, #F15B3C); transition: width .5s; }
.st-tier { margin-top: 10px; color: rgba(255,255,255,.6); font-size: 12px; } .st-tier a { color: #FFB59E; font-weight: 600; }

.st-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.st-topbar { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--line); background: var(--surface); }
.st-topbar-title { flex: 1; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-menu { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px; font-size: 18px; cursor: pointer; color: var(--ink); }
.st-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); background: var(--neutral-bg); padding: 5px 12px; border-radius: 99px; white-space: nowrap; }
.st-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #94A3B8; }
.st-live-dot.on { background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.2); animation: st-blink 2s infinite; }
@keyframes st-blink { 50% { opacity: .45; } }

.st-scroll { flex: 1; overflow-y: auto; padding: 26px 22px 12px; scroll-behavior: smooth; }
.st-empty { max-width: 760px; margin: 4vh auto 0; text-align: center; }
.st-empty h1 { font-size: clamp(24px, 3.4vw, 34px); margin: 22px 0 8px; }
.st-empty > p { color: var(--muted); margin: 0 0 26px; }
.st-orb { width: 92px; height: 92px; margin: 0 auto; border-radius: 28px; display: grid; place-items: center; background: conic-gradient(from 210deg, #F15B3C, #FF8A5B, #38BDF8, #1E2858, #F15B3C); animation: st-spin 8s linear infinite; box-shadow: 0 20px 50px -15px rgba(241,91,60,.6); }
.st-orb span { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: #141B3D; color: #fff; font-weight: 800; animation: st-spin 8s linear infinite reverse; direction: ltr; }
@keyframes st-spin { to { transform: rotate(360deg); } }
.st-suggest { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; text-align: start; }
.st-suggest button { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.st-suggest button:hover { border-color: #F15B3C; transform: translateY(-2px); box-shadow: 0 12px 28px -16px rgba(241,91,60,.6); }
.st-suggest b { font-size: 16px; } .st-suggest span { color: var(--muted); font-size: 13px; }

.st-thread { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.st-msg { display: flex; gap: 12px; animation: st-in .35s ease; }
@keyframes st-in { from { opacity: 0; transform: translateY(8px); } }
.st-user { justify-content: flex-start; flex-direction: row-reverse; }
.st-user .st-bubble { max-width: 78%; background: linear-gradient(135deg, #1E2858, #2B3A7A); color: #fff; padding: 12px 18px; border-radius: 18px 18px 18px 4px; line-height: 1.9; }
.st-bot-body { flex: 1; min-width: 0; }
.st-steps { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.st-step { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 13px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 99px; }
.st-step.live { color: var(--ink); border-color: #F15B3C; background-image: linear-gradient(90deg, transparent, rgba(241,91,60,.12), transparent); background-size: 200% 100%; animation: st-shimmer 1.4s linear infinite; }
.st-step.ok .st-step-ico::after { content: " ✓"; color: var(--up); }
@keyframes st-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.st-steps-done .st-step { display: none; }
.st-steps-done.open .st-step { display: inline-flex; opacity: .8; }
.st-steps-toggle { align-self: flex-start; background: none; border: 0; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; padding: 2px 0; }
.st-steps-toggle:hover { color: var(--accent); }
.st-md { line-height: 2; font-size: 16px; color: var(--ink); }
.st-md h3, .st-md h4, .st-md h5 { font-size: 17px; margin: 18px 0 6px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.st-md h3::before, .st-md h4::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: #F15B3C; }
.st-md p { margin: 0 0 10px; } .st-md ul, .st-md ol { margin: 0 0 10px; padding-inline-start: 22px; } .st-md li { margin-bottom: 4px; }
.st-md code { background: var(--neutral-bg); padding: 1px 6px; border-radius: 6px; font-size: 14px; direction: ltr; unicode-bidi: embed; }
.st-md pre { background: var(--neutral-bg); padding: 12px; border-radius: 10px; overflow-x: auto; direction: ltr; text-align: left; }
.st-md a { color: var(--accent); }
.st-md hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.st-table { overflow-x: auto; margin: 8px 0 12px; } .st-table table { border-collapse: collapse; width: 100%; font-size: 14px; }
.st-table th, .st-table td { border: 1px solid var(--line); padding: 7px 10px; text-align: start; } .st-table th { background: var(--neutral-bg); }
.st-caret { display: inline-block; width: 8px; height: 18px; background: #F15B3C; border-radius: 2px; vertical-align: -3px; margin-inline-start: 2px; animation: st-blink 1s steps(2) infinite; }
.st-error { background: var(--down-bg); color: var(--down); padding: 10px 14px; border-radius: 12px; font-size: 14px; margin-top: 8px; }

/* ---- بطاقة القرار ---- */
.st-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; margin-top: 14px; position: relative; overflow: hidden; box-shadow: 0 18px 40px -28px rgba(30,40,88,.5); }
.st-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: #94A3B8; }
.st-card-buy::before { background: linear-gradient(90deg, #16A34A, #4ADE80); } .st-card-sell::before { background: linear-gradient(90deg, #DC2626, #F87171); }
.st-card-wait::before { background: linear-gradient(90deg, #D97706, #FBBF24); }
.st-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.st-card-inst { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; } .st-card-inst strong { font-size: 19px; } .st-card-inst small { flex-basis: 100%; font-size: 12px; }
.st-decision { font-weight: 800; padding: 7px 18px; border-radius: 99px; font-size: 16px; white-space: nowrap; }
.st-decision-buy { background: #DCFCE7; color: #15803D; box-shadow: 0 0 0 4px rgba(22,163,74,.12); }
.st-decision-sell { background: #FEE2E2; color: #B91C1C; box-shadow: 0 0 0 4px rgba(220,38,38,.12); }
.st-decision-wait { background: #FEF3C7; color: #B45309; box-shadow: 0 0 0 4px rgba(217,119,6,.12); }
.st-decision-data { background: var(--neutral-bg); color: var(--muted); }
.st-card-body { display: flex; gap: 18px; align-items: center; }
.st-ring { --v: 0; flex-shrink: 0; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: radial-gradient(closest-side, var(--surface) 78%, transparent 80% 100%), conic-gradient(#F15B3C calc(var(--v) * 1%), var(--neutral-bg) 0); }
.st-ring span { font-size: 26px; font-weight: 800; line-height: 1; } .st-ring small { font-size: 11px; color: var(--muted); }
.st-levels { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.st-levels div { background: var(--neutral-bg); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.st-levels small { color: var(--muted); font-size: 12px; } .st-levels b { font-size: 15px; }
.st-card-inv { margin-top: 12px; font-size: 14px; color: var(--muted); }
.st-card-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.st-chip { background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 99px; padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.st-chip:hover { border-color: var(--accent); color: var(--accent); }
.st-chart { height: 380px; margin-top: 12px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.st-sources { margin-top: 10px; font-size: 12px; color: var(--muted); }
.st-sources summary { cursor: pointer; display: inline-block; list-style: none; opacity: .75; }
.st-sources summary::-webkit-details-marker { display: none; }
.st-sources summary::before { content: "ⓘ "; }
.st-sources[open] summary { opacity: 1; }
.st-sources > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.st-sources a { font-size: 12px; background: var(--neutral-bg); color: var(--ink); padding: 4px 10px; border-radius: 99px; text-decoration: none; direction: ltr; }
.st-sources a:hover { color: var(--accent); }

/* ---- الكتابة ---- */
.st-limit { max-width: 860px; margin: 0 auto 8px; width: calc(100% - 44px); background: linear-gradient(135deg, #FFF7ED, #FFEDD5); border: 1px solid #FED7AA; color: #9A3412; padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.8; }
.st-limit a { color: #C2410C; font-weight: 700; }
.st-composer { max-width: 860px; width: calc(100% - 44px); margin: 0 auto; display: flex; gap: 10px; align-items: flex-end; background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; padding: 8px 8px 8px 8px; box-shadow: 0 14px 40px -24px rgba(30,40,88,.45); transition: border-color .2s, box-shadow .2s; }
.st-composer:focus-within { border-color: #F15B3C; box-shadow: 0 14px 40px -20px rgba(241,91,60,.45); }
.st-composer textarea { flex: 1; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.8; padding: 8px 10px; max-height: 180px; }
.st-send { flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #F15B3C, #FF8A5B); transition: transform .15s, opacity .2s; }
.st-send:hover { transform: scale(1.05); } .st-send:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.st-composer.busy .st-send { animation: st-blink 1s infinite; }
.st-foot { text-align: center; color: var(--muted); font-size: 12px; margin: 8px 16px 12px; }

:root[data-theme="dark"] .st-decision-buy { background: #0B3326; color: #4ADE80; }
:root[data-theme="dark"] .st-decision-sell { background: #3A1418; color: #F87171; }
:root[data-theme="dark"] .st-decision-wait { background: #3A2A0B; color: #FBBF24; }
:root[data-theme="dark"] .st-limit { background: #3A2A0B; border-color: #6B4E16; color: #FCD34D; }

@media (max-width: 900px) {
    .st-app { grid-template-columns: 1fr; }
    .st-side { position: absolute; inset: 0 0 0 auto; width: 290px; max-width: 86%; z-index: 30; transform: translateX(105%); visibility: hidden; transition: transform .25s, visibility .25s; }
    .st-app.side-open .st-side { transform: none; visibility: visible; box-shadow: -20px 0 40px rgba(0,0,0,.3); }
    .st-bot .st-avatar { display: none; }
    .st-menu { display: inline-grid; place-items: center; }
    .st-suggest { grid-template-columns: 1fr; }
    .st-scroll { padding: 18px 14px 8px; }
    .st-composer, .st-limit { width: calc(100% - 24px); }
    .st-user .st-bubble { max-width: 90%; }
    .st-card-body { flex-direction: column; align-items: stretch; } .st-ring { align-self: center; }
}

.st-promo { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-radius: 18px; text-decoration: none; color: #fff; background: radial-gradient(600px 200px at 10% 0%, rgba(241,91,60,.35), transparent 60%), linear-gradient(135deg, #141B3D, #1E2858 60%, #2B3A7A); box-shadow: 0 18px 40px -24px rgba(30,40,88,.7); transition: transform .2s; }
.st-promo:hover { transform: translateY(-2px); }
.st-promo-text { flex: 1; display: flex; flex-direction: column; gap: 2px; } .st-promo-text b { font-size: 17px; } .st-promo-text span { color: rgba(255,255,255,.75); font-size: 14px; }
.st-promo-cta { background: linear-gradient(135deg, #F15B3C, #FF8A5B); padding: 9px 18px; border-radius: 12px; font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) { .st-promo { flex-wrap: wrap; } .st-promo-cta { width: 100%; text-align: center; } }
.st-hero-tag { font-size: 22px; font-weight: 600; color: #FFD3C7; margin: -4px 0 14px; }

/* ===== صفحة الخدمات ===== */
.svc-feature { display: grid; grid-template-columns: 1.4fr .6fr; gap: 24px; align-items: center; padding: 36px; border-radius: 24px; color: #fff; background: radial-gradient(700px 260px at 15% 0%, rgba(241,91,60,.32), transparent 60%), linear-gradient(135deg, #141B3D, #1E2858 60%, #2B3A7A); box-shadow: 0 24px 50px -30px rgba(30,40,88,.8); }
.svc-feature h2 { font-size: clamp(28px, 4vw, 40px); margin: 14px 0 10px; }
.svc-feature p { color: rgba(255,255,255,.82); line-height: 1.95; margin: 0 0 14px; }
.svc-feature-list { margin: 0 0 22px; padding-inline-start: 20px; line-height: 2; color: rgba(255,255,255,.9); }
.svc-feature-art { display: grid; place-items: center; }
.svc-feature-art .st-orb { width: 150px; height: 150px; border-radius: 40px; }
.svc-feature-art .st-orb span { width: 124px; height: 124px; border-radius: 32px; font-size: 26px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card { text-decoration: none; color: var(--ink); transition: transform .18s, border-color .18s, box-shadow .18s; }
.svc-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 16px 36px -22px rgba(3,105,161,.45); }
.svc-card h3 { font-size: 19px; margin: 6px 0 0; }
.svc-card p { color: var(--muted); line-height: 1.9; margin: 0; flex: 1; }
.svc-more { color: var(--accent); font-weight: 700; font-size: 14px; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } .svc-feature { grid-template-columns: 1fr; } .svc-feature-art { display: none; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } .svc-feature { padding: 24px; } }

/* اختيار الأداة فوق شارت الرئيسية */
.chart-pick { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chart-select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23556274' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 10px center; color: var(--ink); font: inherit; font-size: 18px; font-weight: 700; padding: 6px 12px 6px 32px; border-radius: 10px; cursor: pointer; max-width: 100%; }
.chart-select:hover, .chart-select:focus { border-color: var(--accent); outline: none; }
/* إصلاح الجوال: القائمة لا تتجاوز عرض البطاقة */
.hero > * { min-width: 0; }
.chart-head { flex-wrap: wrap; gap: 10px; }
.chart-pick { flex: 1 1 200px; }
.chart-select { width: 100%; text-overflow: ellipsis; }
@media (max-width: 520px) {
    .chart-select { font-size: 16px; }
    .chart-head .tf-group { flex: 1 1 100%; }
}

/* ===== step-72: mobile polish ===== */
html, body { overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }
.prose, .card { overflow-wrap: anywhere; }
.table th { white-space: nowrap; }
@media (max-width: 420px) {
    .container { padding-inline: 16px; }
    .hero { gap: 28px; padding-block: 36px 28px; }
}
@media (max-width: 720px) {
    .table-wrap { margin-inline: -4px; -webkit-overflow-scrolling: touch; }
    .table-wrap::after { content: "⟵ اسحب لرؤية بقية الجدول"; display: block; font-size: .75rem; color: var(--muted, #64748b); text-align: center; padding: 6px 0 2px; }
    .btn, .chart-select, select, input:not([type=checkbox]):not([type=radio]):not([type=hidden]) { min-height: 44px; }
}

/* ===== step-74: calendar cards on mobile + WhatsApp button ===== */
@media (max-width: 720px) {
    .cal-wrap { border: 0; overflow: visible; margin-inline: 0; }
    .cal-wrap::after { display: none; }
    .cal-table { min-width: 0; display: block; }
    .cal-table thead { display: none; }
    .cal-table tbody { display: flex; flex-direction: column; gap: 10px; }
    .cal-table tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; align-items: center;
        background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
    .cal-table td { display: block; padding: 0; border: 0; text-align: start; }
    .cal-table .cal-time { order: 1; grid-column: span 2; text-align: right !important; }
    .cal-table .cal-cur { order: 2; text-align: left !important; }
    .cal-table .cal-imp { order: 0; display: none; }
    .cal-table tr:has(.imp-high) { border-inline-start: 4px solid #DC2626; }
    .cal-table tr:has(.imp-medium) { border-inline-start: 4px solid #F59E0B; }
    .cal-table .cal-title { order: 3; grid-column: 1 / -1; font-size: 15px; line-height: 1.6; }
    .cal-table .cal-title .cal-en { display: block; margin-top: 2px; text-align: right; }
    .cal-table .cal-num { order: 4; background: var(--bg, transparent); border-radius: 8px; padding: 6px 8px; text-align: center; }
    .cal-table .cal-num::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-bottom: 2px; font-family: inherit; }
    .cal-table tr.no-nums .cal-num { display: none; }
    .wa-float { bottom: 14px; left: 14px; padding: 10px; }
    .wa-float svg { width: 24px; height: 24px; }
}

/* ===== step-85: analysis page ===== */
.an-brief { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; margin-top: 8px; align-items: start; }
@media (max-width: 820px) { .an-brief { grid-template-columns: 1fr; } }
.an-box-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.an-box-head h2 { font-size: 18px; margin: 0; }
.an-ladder { padding: 18px 20px; }
.an-rungs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.an-rung { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--bg); border-inline-start: 4px solid var(--line-strong); }
.an-rung span { font-size: 14px; color: var(--muted); }
.an-rung b { font-size: 19px; font-weight: 700; }
.an-rung small { font-size: 12px; color: var(--muted); min-width: 58px; text-align: end; }
.an-res { border-inline-start-color: var(--down); }
.an-res b { color: var(--down); }
.an-sup { border-inline-start-color: var(--up); }
.an-sup b { color: var(--up); }
.an-now { background: var(--accent-soft, rgba(3,105,161,.08)); border-inline-start-color: var(--accent); margin-block: 4px; }
.an-now span, .an-now b { color: var(--accent-ink, var(--accent)); font-weight: 700; }
.an-scenarios { display: flex; flex-direction: column; gap: 12px; }
.an-scen { padding: 16px 18px; }
.an-scen strong { display: block; margin-bottom: 6px; font-size: 16px; }
.an-scen p { margin: 0; line-height: 1.9; }
.an-scen-up { border-top: 3px solid var(--up); }
.an-scen-up strong { color: var(--up); }
.an-scen-down { border-top: 3px solid var(--down); }
.an-scen-down strong { color: var(--down); }
.an-section-title { font-size: 22px; margin: 32px 0 6px; }
.an-body { max-width: 760px; }
.an-body h3 { font-size: 18px; margin: 26px 0 8px; padding-inline-start: 10px; border-inline-start: 3px solid var(--brand-orange, #F15B3C); }
.an-body p { line-height: 2; }
.an-body ul { padding-inline-start: 20px; }
.an-body li { margin-block: 6px; line-height: 1.9; }
.an-disclaimer { margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--line); max-width: 760px; }
@media (max-width: 520px) { .an-ladder { padding: 16px 14px; } .an-rung { gap: 8px; padding: 9px 12px; } .an-rung span { font-size: 13px; } .an-rung b { font-size: 17px; } .an-rung small { min-width: 46px; font-size: 11px; } }

/* ===== step-89: analyses index ===== */
.ax-hero { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); padding: 28px 0 0; }
.ax-crumbs { margin-bottom: 10px; }
.ax-hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.ax-title { font-size: clamp(28px, 4vw, 40px); margin: 0 0 6px; }
.ax-sub { color: var(--muted); margin: 0; font-size: 16px; line-height: 1.8; max-width: 620px; }
.ax-mood { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-width: 280px; flex: 0 1 340px; }
.ax-mood-head { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.ax-mood-head small { font-weight: 400; color: var(--muted); }
.ax-mood-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 3px; background: var(--neutral-bg); }
.ax-mood-legend { display: flex; gap: 14px; margin-top: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.ax-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 6px; vertical-align: middle; }
.ax-mood-up { background: var(--up); }
.ax-mood-down { background: var(--down); }
.ax-mood-flat { background: var(--line-strong); }
.ax-filters { margin-top: 22px; }
.ax-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.ax-tabs::-webkit-scrollbar { display: none; }
.ax-tabs a { padding: 12px 16px; white-space: nowrap; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.ax-tabs a[aria-current="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.ax-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px 0 16px; }
.ax-chips::-webkit-scrollbar { display: none; }
.ax-chips a { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; white-space: nowrap; color: var(--ink); }
.ax-chips a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ax-body { padding-top: 28px; }
.ax-head-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.ax-head-row h2 { font-size: 22px; margin: 0; }
.ax-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.ax-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; color: var(--ink); text-decoration: none; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ax-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--line-strong); }
.ax-card-up::before { background: var(--up); }
.ax-card-down::before { background: var(--down); }
.ax-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 23, 42, .08); border-color: var(--line-strong); }
.ax-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ax-inst strong { display: block; font-size: 17px; }
.ax-inst span { font-size: 13px; color: var(--muted); }
.ax-bias { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.ax-bias-up { background: var(--up-bg); color: var(--up); }
.ax-bias-down { background: var(--down-bg); color: var(--down); }
.ax-bias-flat { background: var(--neutral-bg); color: var(--muted); }
.ax-card-title { font-size: 16px; font-weight: 600; line-height: 1.7; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ax-lv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; }
.ax-lv div { background: var(--bg); border-radius: 10px; padding: 8px 6px; text-align: center; }
.ax-lv small { display: block; font-size: 11px; color: var(--muted); }
.ax-lv b { font-size: 15px; }
.ax-lv-res b { color: var(--down); }
.ax-lv-sup b { color: var(--up); }
.ax-lv-now { background: var(--accent-soft) !important; }
.ax-lv-now b { color: var(--accent-ink); }
.ax-card-foot { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.ax-go { margin-inline-start: auto; color: var(--accent); font-weight: 600; }
.ax-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ax-row { display: grid; grid-template-columns: 64px 150px 1fr auto; align-items: center; gap: 16px; padding: 14px 18px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.ax-row:last-child { border-bottom: 0; }
.ax-row:hover { background: var(--bg); }
.ax-row-date { display: flex; flex-direction: column; text-align: center; line-height: 1.3; }
.ax-row-date b { font-size: 14px; }
.ax-row-date small, .ax-row-inst small { font-size: 12px; color: var(--muted); }
.ax-row-inst { display: flex; flex-direction: column; line-height: 1.4; }
.ax-row-title { font-weight: 500; line-height: 1.6; }
@media (max-width: 720px) {
    .ax-hero { padding-top: 20px; }
    .ax-mood { flex: 1 1 100%; min-width: 0; }
    .ax-row { grid-template-columns: 52px 1fr; gap: 6px 12px; }
    .ax-row-date { grid-row: span 3; }
    .ax-row-title { font-size: 14px; }
    .ax-row-inst { flex-direction: row; gap: 8px; align-items: baseline; }
    .ax-row-inst small { text-align: start; }
    .ax-row .ax-bias { justify-self: start; }
}

/* ===== step-91: VIP page ===== */
.vip-hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(241,91,60,.35), transparent 60%), linear-gradient(135deg, #1E2858 0%, #141B3D 100%); color: #fff; padding: 56px 0 44px; }
.vip-hero-in { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.vip-badge { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.vip-hero h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.35; margin: 0; max-width: 780px; color: #fff; }
.vip-hero p { font-size: 17px; line-height: 1.9; color: rgba(255,255,255,.82); max-width: 680px; margin: 0; }
.vip-hero-cta { margin-top: 6px; }
.vip-btn { background: #F15B3C; color: #fff; border: 0; font-weight: 700; box-shadow: 0 10px 24px rgba(241,91,60,.35); }
.vip-btn:hover { filter: brightness(1.05); color: #fff; }
.vip-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.vip-btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.vip-facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 760px; }
.vip-facts li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.vip-facts b { font-size: 20px; }
.vip-facts span { font-size: 12px; color: rgba(255,255,255,.7); }
.vip-flash { margin-top: 20px; }
.vip-h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 8px; }
.vip-lead { color: var(--muted); margin: 0 0 22px; line-height: 1.8; }
.vip-benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.vip-benefit { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.vip-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); font-size: 22px; margin-bottom: 10px; }
.vip-benefit h3 { font-size: 17px; margin: 0 0 6px; }
.vip-benefit p { margin: 0; color: var(--muted); line-height: 1.85; font-size: 15px; }
.vip-join .vip-h2 { margin-bottom: 20px; }
.vip-done { background: var(--up-bg); border: 1px solid var(--up); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.vip-done p { margin: 0; }
.vip-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.vip-step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; position: relative; padding-bottom: 26px; }
.vip-step:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 23px; top: 48px; bottom: 0; width: 2px; background: var(--line); }
.vip-num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #1E2858; color: #fff; font-weight: 700; font-size: 18px; position: relative; z-index: 1; }
.vip-step > * { min-width: 0; }
.vip-form input, .vip-form select { width: 100%; max-width: 100%; box-sizing: border-box; }
.vip-step-body h3 { font-size: 18px; margin: 10px 0 6px; }
.vip-step-body > p { color: var(--muted); line-height: 1.85; margin: 0 0 12px; }
.vip-brokers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; margin-top: 6px; }
.vip-broker { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.vip-broker-head { display: flex; align-items: center; gap: 12px; }
.vip-logo { flex: 0 0 auto; width: 96px; height: 56px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 8px 10px; box-sizing: border-box; overflow: hidden; }
.vip-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.vip-logo b { font-size: 20px; color: #1E2858; }
.vip-broker-name { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.vip-broker-name strong { font-size: 17px; }
.vip-broker-name small { font-size: 12px; color: var(--muted); }
.vip-broker-head .vip-rating { margin-inline-start: auto; }
.vip-rating { font-size: 13px; font-weight: 700; color: #B45309; background: #FEF3C7; padding: 3px 9px; border-radius: 99px; }
.vip-broker-tag { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.vip-broker-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.vip-broker-facts li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.vip-broker-facts span { color: var(--muted); }
.vip-broker-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: auto; }
.vip-more { font-size: 14px; color: var(--accent); }
.vip-form { box-sizing: border-box; width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.vip-faq { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.vip-q { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.vip-q summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.vip-q summary::-webkit-details-marker { display: none; }
.vip-q summary::after { content: "+"; font-size: 20px; color: var(--muted); line-height: 1; }
.vip-q[open] summary::after { content: "−"; }
.vip-q p { margin: 0 0 16px; color: var(--muted); line-height: 1.9; }
.vip-contact { background: linear-gradient(135deg, #1E2858, #2A3570); color: #fff; border-radius: 18px; padding: 26px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.vip-contact h2 { font-size: 22px; margin: 0 0 6px; color: #fff; }
.vip-contact p { margin: 0; color: rgba(255,255,255,.8); }
.vip-risk { margin-top: 18px; line-height: 1.9; }
@media (max-width: 720px) {
    .vip-hero { padding: 40px 0 32px; }
    .vip-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vip-step { grid-template-columns: 38px 1fr; gap: 12px; }
    .vip-num { width: 38px; height: 38px; font-size: 16px; }
    .vip-step:not(:last-child)::before { inset-inline-start: 18px; top: 38px; }
    .vip-step-body h3 { margin-top: 6px; font-size: 17px; }
    .vip-contact { padding: 22px 18px; }
}

/* ===== step-98: ad banners ===== */
.ad-slot{position:relative;margin-block:18px;line-height:0}
.ad-slot.ad-home_top{margin-top:16px;margin-bottom:4px}
.ad-slot a,.ad-slot picture{display:block}
.ad-slot img{display:block;width:100%;height:auto;border-radius:12px;border:1px solid var(--line);background:var(--line)}
.ad-slot a:hover img{box-shadow:0 6px 20px rgba(30,40,88,.12)}
.ad-label{position:absolute;top:8px;inset-inline-start:8px;z-index:1;font-size:10px;line-height:1;padding:4px 7px;border-radius:6px;background:rgba(15,20,45,.55);color:#fff;letter-spacing:.2px;pointer-events:none}
.prose + .ad-slot{margin-top:28px}
@media (max-width:640px){.ad-slot{margin-block:14px}.ad-slot img{border-radius:10px}}

/* ===== step-100: contact float menu ===== */
.wa-float.cf-brand { background: #F15B3C; box-shadow: 0 10px 28px rgba(241,91,60,.35); border: 0; cursor: pointer; font-family: inherit; }
.wa-float.cf-brand:hover { box-shadow: 0 14px 32px rgba(241,91,60,.45); }
.cf { position: fixed; bottom: 22px; left: 22px; z-index: 60; }
.cf .wa-float { position: static; }
.cf .cf-close { display: none; }
.cf.is-open .cf-close { display: block; }
.cf.is-open .cf-open { display: none; }
.cf-menu { position: absolute; bottom: calc(100% + 12px); left: 0; width: 290px; max-width: calc(100vw - 28px); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(15,20,45,.22); padding: 8px; animation: cfIn .16s ease-out; }
.cf-menu[hidden] { display: none; }
@keyframes cfIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cf-head { padding: 10px 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.cf-head strong { font-size: 15px; }
.cf-head span { font-size: 12px; opacity: .65; line-height: 1.5; }
.cf-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: inherit; text-decoration: none; }
.cf-item:hover { background: var(--accent-soft); }
.cf-ico { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #fff; }
.cf-wa { background: #25D366; } .cf-tg { background: #229ED9; } .cf-mail { background: #1E2858; }
.cf-txt { display: flex; flex-direction: column; line-height: 1.35; }
.cf-txt b { font-size: 14px; } .cf-txt small { font-size: 12px; opacity: .65; }
.cf-all { display: block; text-align: center; font-size: 13px; font-weight: 700; padding: 10px; margin-top: 4px; border-top: 1px solid var(--line); color: var(--accent); text-decoration: none; }
@media (max-width: 640px) { .cf { bottom: 14px; left: 14px; } .cf .wa-float { padding: 10px; } }
@media print { .cf { display: none; } }

/* ===== step-101: decision card above the analysis ===== */
.st-top:empty { display: none; }
.st-top .st-card { margin-top: 0; margin-bottom: 18px; }

/* ===== step-103: mobile polish (float button + tabs) ===== */
body.nav-open .cf, body.nav-open .wa-float { display: none; }
@media (max-width: 900px) {
    .cf, body > .wa-float, a.wa-float { transition: transform .25s ease, opacity .25s ease; }
    body.cf-hide .cf, body.cf-hide a.wa-float { transform: translateY(140%); opacity: 0; pointer-events: none; }
}
@media (max-width: 640px) {
    .ax-tabs { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 36px); mask-image: linear-gradient(to left, transparent 0, #000 36px); }
}

/* ===== step-104: calendar upcoming view ===== */
.cal-past-link { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--accent); }
.cal-past-link:hover { text-decoration: underline; }

/* ===== step-106: account page overflow on mobile ===== */
.account-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .account-grid { grid-template-columns: minmax(0, 1fr); } }
.account-grid > *, .account-grid .panel > *, .account-grid .form, .account-grid .field { min-width: 0; }
.account-grid .btn-row { flex-wrap: wrap; }
.account-grid select, .account-grid input { max-width: 100%; }

/* ===== step-111: human check ===== */
.human-check { min-height: 65px; margin-block: 4px 2px; }
.human-check .cf-turnstile { width: 100%; }
