/* ==========================================================================
   DeepRush Design System (ds) — صفحات اصلی سایت
   مستقل از tailwind؛ همه کلاس‌ها با پیشوند ds- تا با قالب صفحات بروکر تداخل نداشته باشند.
   حالت روشن/تیره: کلاس dark روی <html> (همان قرارداد پنل‌ها و قالب قبلی).
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
    --ds-ink: #0A1017;
    --ds-ink-2: #0E1721;
    --ds-ink-3: #152231;
    --ds-gold: #E3B15C;
    --ds-gold-2: #F7E0AC;
    --ds-gold-deep: #B8862F;
    --ds-turq: #2FBFAE;
    --ds-teal: #0F8A7C;

    --ds-bg: #F4F6F9;
    --ds-bg-2: #EAEFF4;
    --ds-surface: #FFFFFF;
    --ds-surface-2: #F7F9FB;
    --ds-text: #0E1721;
    --ds-text-2: #3B4A5A;
    --ds-muted: #64748B;
    --ds-border: #E2E8EF;
    --ds-border-strong: #CBD5E1;
    --ds-accent: #0F8A7C;          /* لینک و هایلایت روی سطح روشن */
    --ds-accent-soft: rgba(15, 138, 124, .1);
    --ds-pos: #1c5cab;
    --ds-neg: #b42f2e;
    --ds-pos-soft: rgba(42, 120, 214, .1);
    --ds-neg-soft: rgba(227, 73, 72, .1);
    --ds-focus: 0 0 0 3px rgba(227, 177, 92, .45);

    --ds-radius-sm: 10px;
    --ds-radius: 16px;
    --ds-radius-lg: 24px;
    --ds-shadow-sm: 0 1px 2px rgba(14, 23, 33, .06);
    --ds-shadow: 0 1px 2px rgba(14, 23, 33, .04), 0 8px 24px -12px rgba(14, 23, 33, .14);
    --ds-shadow-lg: 0 24px 60px -24px rgba(14, 23, 33, .35);
    --ds-header-h: 72px;
    --ds-container: 1200px;
    --ds-ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: light;
}

html.dark {
    --ds-bg: #070C12;
    --ds-bg-2: #0A1118;
    --ds-surface: #0E1721;
    --ds-surface-2: #121D29;
    --ds-text: #E8EEF4;
    --ds-text-2: #C2CEDA;
    --ds-muted: #8FA0B2;
    --ds-border: rgba(255, 255, 255, .08);
    --ds-border-strong: rgba(255, 255, 255, .16);
    --ds-accent: #2FBFAE;
    --ds-accent-soft: rgba(47, 191, 174, .12);
    --ds-pos: #6da7ec;
    --ds-neg: #f08c8b;
    --ds-pos-soft: rgba(57, 135, 229, .14);
    --ds-neg-soft: rgba(230, 103, 103, .14);
    --ds-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6);
    --ds-shadow-lg: 0 28px 70px -28px rgba(0, 0, 0, .8);
    color-scheme: dark;
}

/* ---------- base (فقط داخل صفحات طراحی جدید) ---------- */
.ds-body {
    margin: 0;
    background: var(--ds-bg);
    color: var(--ds-text);
    font-family: IRANSans, Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.ds-body *, .ds-body *::before, .ds-body *::after { box-sizing: border-box; }
.ds-body img { max-width: 100%; height: auto; display: block; }
.ds-body a { color: inherit; text-decoration: none; }
.ds-body h1, .ds-body h2, .ds-body h3, .ds-body h4 { margin: 0; line-height: 1.45; font-weight: 800; letter-spacing: -.01em; }
.ds-body p { margin: 0; }
.ds-body ul { margin: 0; padding: 0; list-style: none; }
.ds-body button, .ds-body input, .ds-body select, .ds-body textarea { font: inherit; color: inherit; }
.ds-body :focus-visible { outline: none; box-shadow: var(--ds-focus); border-radius: 8px; }
.ds-ltr { direction: ltr; unicode-bidi: isolate; }
.ds-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ds-skip { position: fixed; top: -60px; inset-inline-start: 16px; z-index: 1000; background: var(--ds-gold); color: var(--ds-ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; transition: top .2s; }
.ds-skip:focus { top: 12px; }
.ds-main { min-height: 60vh; }

/* ---------- layout ---------- */
.ds-container { width: 100%; max-width: var(--ds-container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .ds-container { padding-inline: 24px; } }
.ds-section { padding-block: 64px; }
@media (min-width: 1024px) { .ds-section { padding-block: 96px; } }
.ds-section-tight { padding-block: 40px; }
.ds-section-alt { background: var(--ds-bg-2); }
.ds-grid { display: grid; gap: 20px; }
.ds-grid-2, .ds-grid-3, .ds-grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .ds-grid-2, .ds-grid-3, .ds-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
    .ds-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ds-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ds-split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) {
    .ds-split { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; }
    .ds-split-rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
    .ds-sticky { position: sticky; top: calc(var(--ds-header-h) + 20px); }
}
.ds-stack > * + * { margin-top: 20px; }
/* فرزندان grid پیش‌فرض min-width:auto دارند و جدول/متن بدون شکست، ستون را از عرض صفحه بیرون می‌زند */
.ds-grid > *, .ds-split > *, .ds-bento > *, .ds-hero-in > *, .ds-footer-in > *, .ds-auth > * { min-width: 0; }
.ds-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ds-between { justify-content: space-between; }
.ds-center { text-align: center; }

/* ---------- typography ---------- */
.ds-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--ds-accent); }
.ds-eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.ds-h1 { font-size: clamp(30px, 5.4vw, 58px); line-height: 1.3; }
.ds-h2 { font-size: clamp(24px, 3.4vw, 38px); }
.ds-h3 { font-size: 19px; }
.ds-lead { font-size: clamp(15px, 1.6vw, 18px); color: var(--ds-text-2); line-height: 2; max-width: 62ch; }
.ds-muted { color: var(--ds-muted); }
.ds-small { font-size: 13px; }
.ds-gradient-text { background: linear-gradient(100deg, var(--ds-gold-2), var(--ds-gold) 45%, var(--ds-turq)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ds-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.ds-section-head > div { max-width: 640px; }
.ds-section-head .ds-h2 { margin-top: 8px; }
.ds-section-head p { margin-top: 10px; color: var(--ds-muted); }

/* ---------- buttons ---------- */
.ds-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 14.5px; cursor: pointer; white-space: nowrap; transition: transform .18s var(--ds-ease), box-shadow .18s, background .18s, border-color .18s, color .18s; }
.ds-btn:active { transform: translateY(1px) scale(.99); }
.ds-btn-primary { background: linear-gradient(135deg, var(--ds-gold-2), var(--ds-gold) 55%, var(--ds-gold-deep)); color: var(--ds-ink) !important; box-shadow: 0 10px 24px -12px rgba(227, 177, 92, .8); }
.ds-btn-primary:hover { box-shadow: 0 14px 30px -12px rgba(227, 177, 92, .95); transform: translateY(-1px); }
.ds-btn-secondary { background: var(--ds-surface); border-color: var(--ds-border-strong); color: var(--ds-text); }
.ds-btn-secondary:hover { border-color: var(--ds-accent); color: var(--ds-accent); }
.ds-btn-ghost { background: transparent; color: var(--ds-text); }
.ds-btn-ghost:hover { background: var(--ds-accent-soft); color: var(--ds-accent); }
.ds-btn-glass { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(10px); }
.ds-btn-glass:hover { background: rgba(255, 255, 255, .12); }
.ds-btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.ds-btn-lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.ds-btn-block { width: 100%; }
.ds-btn-icon { width: 42px; padding: 0; }
.ds-link { color: var(--ds-accent); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.ds-link:hover { gap: 10px; }
.ds-link i { transition: transform .2s; }

/* ---------- chips & badges ---------- */
.ds-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ds-border-strong); background: var(--ds-surface); font-size: 13px; font-weight: 600; color: var(--ds-text-2); transition: all .18s; }
.ds-chip:hover, .ds-chip.is-active { border-color: var(--ds-accent); color: var(--ds-accent); background: var(--ds-accent-soft); }
.ds-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--ds-surface-2); color: var(--ds-text-2); border: 1px solid var(--ds-border); white-space: nowrap; }
.ds-badge-gold { background: rgba(227, 177, 92, .14); color: #9a6a16; border-color: rgba(227, 177, 92, .35); }
html.dark .ds-badge-gold { color: var(--ds-gold-2); }
.ds-badge-accent { background: var(--ds-accent-soft); color: var(--ds-accent); border-color: transparent; }
.ds-badge-pos { background: var(--ds-pos-soft); color: var(--ds-pos); border-color: transparent; }
.ds-badge-neg { background: var(--ds-neg-soft); color: var(--ds-neg); border-color: transparent; }
.ds-dir { display: inline-flex; padding: 2px 10px; border-radius: 6px; font-size: 12px; font-weight: 800; direction: ltr; text-transform: uppercase; letter-spacing: .04em; }
.ds-dir.buy { background: var(--ds-pos-soft); color: var(--ds-pos); }
.ds-dir.sell { background: var(--ds-neg-soft); color: var(--ds-neg); }
.ds-pl { font-weight: 800; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.ds-pl.pos { color: var(--ds-pos); }
.ds-pl.neg { color: var(--ds-neg); }

/* ---------- cards ---------- */
.ds-card { background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius); box-shadow: var(--ds-shadow-sm); }
.ds-card-pad { padding: 22px; }
@media (min-width: 768px) { .ds-card-pad { padding: 28px; } }
.ds-card-hover { transition: transform .25s var(--ds-ease), box-shadow .25s, border-color .25s; }
.ds-card-hover:hover { transform: translateY(-4px); box-shadow: var(--ds-shadow); border-color: var(--ds-border-strong); }
.ds-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--ds-border); }
.ds-card-head h2, .ds-card-head h3 { font-size: 16px; }
.ds-icon-tile { width: 48px; height: 48px; flex: none; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; background: var(--ds-accent-soft); color: var(--ds-accent); }
.ds-icon-tile.gold { background: rgba(227, 177, 92, .16); color: var(--ds-gold-deep); }
html.dark .ds-icon-tile.gold { color: var(--ds-gold); }

/* ---------- forms ---------- */
.ds-field { display: flex; flex-direction: column; gap: 6px; }
.ds-label { font-size: 13.5px; font-weight: 700; }
.ds-input, .ds-select, .ds-textarea { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--ds-border-strong); background: var(--ds-surface); color: var(--ds-text); font-size: 14.5px; transition: border-color .18s, box-shadow .18s; }
.ds-textarea { height: auto; min-height: 130px; padding: 12px 14px; line-height: 1.9; resize: vertical; }
.ds-input:focus, .ds-select:focus, .ds-textarea:focus { outline: none; border-color: var(--ds-gold); box-shadow: var(--ds-focus); }
.ds-input::placeholder, .ds-textarea::placeholder { color: var(--ds-muted); opacity: .8; }
.ds-help { font-size: 12.5px; color: var(--ds-muted); }
.ds-alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.9; background: var(--ds-accent-soft); color: var(--ds-accent); }
.ds-alert-error { background: var(--ds-neg-soft); color: var(--ds-neg); }
.ds-alert-warn { background: rgba(227, 177, 92, .16); color: #8a5d10; }
html.dark .ds-alert-warn { color: var(--ds-gold-2); }

/* ---------- header ---------- */
.ds-header { position: sticky; top: 0; z-index: 60; height: var(--ds-header-h); background: rgba(10, 16, 23, .86); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid rgba(255, 255, 255, .07); color: #DCE5EE; transition: background .25s, height .25s; font-family: IRANSans, Tahoma, sans-serif; }
.ds-header::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(227, 177, 92, .5), transparent); opacity: .7; }
.ds-header.is-scrolled { background: rgba(10, 16, 23, .95); --ds-header-h: 64px; }
.ds-header-in { height: 100%; display: flex; align-items: center; gap: 16px; }
.ds-logo { display: inline-flex; align-items: center; flex: none; }
.ds-logo img { height: 30px; width: auto; }
.ds-nav { display: none; align-items: center; gap: 2px; margin-inline-start: 12px; height: 100%; }
@media (min-width: 1100px) { .ds-nav { display: flex; } }
.ds-nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.ds-nav-link { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: #C3D0DD; background: none; border: 0; cursor: pointer; transition: color .18s, background .18s; }
.ds-nav-link:hover, .ds-nav-item.is-open > .ds-nav-link, .ds-nav-link.is-current { color: #fff; background: rgba(255, 255, 255, .06); }
.ds-nav-link.is-current { color: var(--ds-gold); }
.ds-nav-link .uil-angle-down { font-size: 18px; transition: transform .2s; }
.ds-nav-item.is-open .uil-angle-down { transform: rotate(180deg); }
.ds-mega { position: absolute; top: calc(100% - 8px); inset-inline-start: 0; min-width: 260px; padding: 10px; border-radius: 18px; background: #0E1721; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.ds-nav-item.is-open > .ds-mega { opacity: 1; visibility: visible; transform: none; }
.ds-mega-wide { width: min(880px, calc(100vw - 48px)); padding: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 18px; }
.ds-mega-link { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #C3D0DD; transition: background .15s; }
.ds-mega-link:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.ds-mega-link i { font-size: 20px; color: var(--ds-gold); margin-top: 2px; }
.ds-mega-link b { display: block; font-size: 14px; color: #fff; }
.ds-mega-link span { display: block; font-size: 12px; color: #8FA0B2; line-height: 1.7; }
.ds-mega-col h4 { font-size: 12px; color: var(--ds-gold); font-weight: 700; padding: 6px 12px; letter-spacing: .02em; }
.ds-mega-col a.ds-mega-sub { display: block; padding: 5px 12px; font-size: 13px; color: #A9B8C7; border-radius: 8px; }
.ds-mega-col a.ds-mega-sub:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.ds-header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.ds-icon-btn { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: #DCE5EE; font-size: 20px; cursor: pointer; transition: background .18s, border-color .18s; }
.ds-icon-btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
.ds-search-trigger { display: none; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 10px; min-width: 220px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: #8FA0B2; font-size: 13.5px; cursor: pointer; }
.ds-search-trigger kbd { margin-inline-start: auto; font: inherit; font-size: 11px; padding: 1px 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .15); direction: ltr; }
@media (min-width: 1280px) { .ds-search-trigger { display: inline-flex; } .ds-search-icon { display: none; } }
.ds-header .ds-btn-sm { height: 42px; border-radius: 12px; }
.ds-hide-sm { display: none; }
@media (min-width: 640px) { .ds-hide-sm { display: inline-flex; } }
.ds-menu-btn { display: inline-flex; }
@media (min-width: 1100px) { .ds-menu-btn { display: none; } }
.ds-theme-toggle .uil-sun { display: none; }
html.dark .ds-theme-toggle .uil-sun { display: inline; }
html.dark .ds-theme-toggle .uil-moon { display: none; }

/* ---------- mobile drawer ---------- */
.ds-drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; overflow: hidden; font-family: IRANSans, Tahoma, sans-serif; }
.ds-drawer.is-open { visibility: visible; }
.ds-drawer-backdrop { position: absolute; inset: 0; background: rgba(3, 7, 12, .6); opacity: 0; transition: opacity .25s; }
.ds-drawer.is-open .ds-drawer-backdrop { opacity: 1; }
.ds-drawer-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(380px, 88vw); background: #0B131C; color: #DCE5EE; border-inline-start: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .3s var(--ds-ease); }
[dir="rtl"] .ds-drawer-panel { inset-inline-end: auto; inset-inline-start: 0; transform: translateX(100%); }
.ds-drawer.is-open .ds-drawer-panel { transform: none; }
.ds-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ds-drawer-body { flex: 1; overflow-y: auto; padding: 10px 12px 24px; overscroll-behavior: contain; }
.ds-drawer-body > a, .ds-drawer-body summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 12px; border-radius: 12px; font-weight: 700; font-size: 15px; color: #E8EEF4; cursor: pointer; list-style: none; }
.ds-drawer-body summary::-webkit-details-marker { display: none; }
.ds-drawer-body > a:hover, .ds-drawer-body summary:hover { background: rgba(255, 255, 255, .05); }
.ds-drawer-body details[open] summary .uil-angle-down { transform: rotate(180deg); }
.ds-drawer-body details a { display: block; padding: 9px 26px; font-size: 14px; color: #A9B8C7; border-radius: 10px; }
.ds-drawer-body details a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.ds-drawer-foot { padding: 16px; border-top: 1px solid rgba(255, 255, 255, .07); display: grid; gap: 10px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
body.ds-lock { overflow: hidden; }

/* ---------- search palette ---------- */
.ds-palette { position: fixed; inset: 0; z-index: 95; display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; background: rgba(3, 7, 12, .66); backdrop-filter: blur(6px); font-family: IRANSans, Tahoma, sans-serif; }
.ds-palette.is-open { display: flex; }
.ds-palette-box { width: min(640px, 100%); background: var(--ds-surface); color: var(--ds-text); border: 1px solid var(--ds-border); border-radius: 20px; box-shadow: var(--ds-shadow-lg); overflow: hidden; animation: dsPop .2s var(--ds-ease); }
.ds-palette-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--ds-border); }
.ds-palette-input i { font-size: 22px; color: var(--ds-muted); }
.ds-palette-input input { flex: 1; height: 62px; border: 0; background: transparent; outline: none; font-size: 16px; }
.ds-palette-results { max-height: min(60vh, 460px); overflow-y: auto; padding: 8px; }
.ds-palette-results a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.ds-palette-results a:hover, .ds-palette-results a.is-active { background: var(--ds-accent-soft); }
.ds-palette-results small { margin-inline-start: auto; color: var(--ds-muted); font-size: 12px; }
.ds-palette-group { padding: 10px 12px 4px; font-size: 12px; font-weight: 700; color: var(--ds-muted); }
.ds-palette-empty { padding: 28px; text-align: center; color: var(--ds-muted); }
@keyframes dsPop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.ds-hero { position: relative; overflow: hidden; background: var(--ds-ink); color: #E8EEF4; isolation: isolate; }
.ds-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background:
    radial-gradient(60% 55% at 85% 10%, rgba(47, 191, 174, .22), transparent 60%),
    radial-gradient(50% 50% at 10% 30%, rgba(227, 177, 92, .18), transparent 60%),
    radial-gradient(70% 60% at 50% 110%, rgba(42, 120, 214, .18), transparent 60%);
    animation: dsAurora 18s ease-in-out infinite alternate; }
.ds-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%); }
@keyframes dsAurora { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(-3%, 2%, 0) scale(1.08); } }
.ds-hero-in { display: grid; gap: 48px; align-items: center; padding-block: 64px 72px; }
@media (min-width: 1024px) { .ds-hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding-block: 96px 110px; } }
.ds-hero .ds-lead { color: #AFC0D0; margin-top: 18px; }
.ds-hero-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #C3D0DD; margin-bottom: 22px; }
.ds-hero-pill b { background: rgba(47, 191, 174, .16); color: var(--ds-turq); border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.ds-hero-search { position: relative; margin-top: 30px; max-width: 560px; }
.ds-hero-search input { width: 100%; height: 60px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; padding-inline: 52px 130px; font-size: 15px; backdrop-filter: blur(10px); transition: border-color .2s, background .2s; }
.ds-hero-search input::placeholder { color: #8FA0B2; }
.ds-hero-search input:focus { outline: none; border-color: var(--ds-gold); background: rgba(255, 255, 255, .09); box-shadow: var(--ds-focus); }
.ds-hero-search > i { position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #8FA0B2; }
.ds-hero-search .ds-btn { position: absolute; inset-inline-end: 7px; top: 7px; height: 46px; }
.ds-hero-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ds-hero-quick a { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); color: #AFC0D0; transition: all .18s; }
.ds-hero-quick a:hover { color: var(--ds-gold); border-color: rgba(227, 177, 92, .5); }
.ds-hero-trust { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 34px; color: #8FA0B2; font-size: 13px; }
.ds-hero-trust b { display: block; font-size: 22px; color: #fff; font-weight: 800; }

/* hero visual — کارت‌های شیشه‌ای شناور */
.ds-hero-visual { position: relative; }
.ds-glass { background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); color: #E8EEF4; }
.ds-float { animation: dsFloat 7s ease-in-out infinite; }
.ds-float-2 { animation-delay: -2.5s; }
.ds-float-3 { animation-delay: -5s; }
@keyframes dsFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.ds-hv-main { position: relative; z-index: 2; padding: 20px; max-width: 420px; margin-inline: auto; }
.ds-hero-visual { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; min-height: 0; }
.ds-hv-main { grid-column: 1 / -1; }
.ds-hv-side { position: relative; z-index: 3; padding: 14px 16px; }
@media (min-width: 1024px) {
    /* کارت‌های کوچک فقط روی حاشیه پایینی کارت اصلی می‌نشینند، نه روی محتوای آن */
    .ds-hv-main { width: 100%; max-width: 440px; }
    .ds-hv-side { margin-top: -22px; }
    .ds-hv-side.a { margin-inline-start: -20px; }
    .ds-hv-side.b { margin-inline-end: -20px; margin-top: 4px; }
}
.ds-quote-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px dashed rgba(255, 255, 255, .1); }
.ds-quote-row:last-child { border-bottom: 0; }
.ds-quote-row .sym { display: flex; align-items: center; gap: 10px; }
.ds-quote-row .sym i { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .06); font-size: 18px; font-style: normal; color: var(--ds-gold); }
.ds-quote-row b { font-size: 16px; direction: ltr; font-variant-numeric: tabular-nums; }
.ds-quote-row small { display: block; font-size: 11.5px; color: #8FA0B2; }
.ds-chg { font-size: 12px; font-weight: 700; direction: ltr; }
.ds-chg.up { color: #6da7ec; }
.ds-chg.down { color: #f08c8b; }
.ds-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ds-turq); box-shadow: 0 0 0 0 rgba(47, 191, 174, .6); animation: dsPulse 1.8s infinite; }
@keyframes dsPulse { 0% { box-shadow: 0 0 0 0 rgba(47, 191, 174, .55); } 70% { box-shadow: 0 0 0 10px rgba(47, 191, 174, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 174, 0); } }
.ds-flash-up { animation: dsFlashUp 1.4s; }
.ds-flash-down { animation: dsFlashDown 1.4s; }
@keyframes dsFlashUp { 0% { color: #6da7ec; } 100% { color: inherit; } }
@keyframes dsFlashDown { 0% { color: #f08c8b; } 100% { color: inherit; } }

/* ---------- ticker marquee ---------- */
.ds-ticker { background: var(--ds-ink-2); color: #C3D0DD; border-block: 1px solid rgba(255, 255, 255, .06); overflow: hidden; font-size: 13.5px; }
.ds-ticker-track { display: flex; gap: 40px; width: max-content; padding-block: 12px; animation: dsMarquee 40s linear infinite; }
.ds-ticker:hover .ds-ticker-track { animation-play-state: paused; }
.ds-ticker-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ds-ticker-item b { color: #fff; font-variant-numeric: tabular-nums; direction: ltr; }
@keyframes dsMarquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- page hero (صفحات داخلی) ---------- */
.ds-page-hero { position: relative; overflow: hidden; background: var(--ds-ink); color: #E8EEF4; isolation: isolate; }
.ds-page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 90% 0%, rgba(47, 191, 174, .2), transparent 60%), radial-gradient(40% 70% at 0% 100%, rgba(227, 177, 92, .16), transparent 60%); }
.ds-page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; 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: 48px 48px; -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
.ds-page-hero-in { padding-block: 48px 56px; }
@media (min-width: 1024px) { .ds-page-hero-in { padding-block: 72px 80px; } }
.ds-page-hero .ds-lead { color: #AFC0D0; margin-top: 12px; }
.ds-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: #8FA0B2; margin-bottom: 14px; }
.ds-crumbs a:hover { color: var(--ds-gold); }
.ds-crumbs i { font-size: 16px; opacity: .6; }

/* ---------- stats band ---------- */
.ds-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--ds-border); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); overflow: hidden; }
@media (min-width: 900px) { .ds-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ds-stat { background: var(--ds-surface); padding: 24px; }
.ds-stat b { display: block; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ds-stat span { color: var(--ds-muted); font-size: 13.5px; }
.ds-overlap { margin-top: -44px; position: relative; z-index: 5; }

/* ---------- bento ---------- */
.ds-bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ds-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(180px, auto); } }
.ds-bento > * { position: relative; overflow: hidden; }
@media (min-width: 768px) {
    .ds-span-2 { grid-column: span 2; } .ds-span-3 { grid-column: span 3; } .ds-span-4 { grid-column: span 4; }
    .ds-row-2 { grid-row: span 2; }
}
.ds-tile { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--ds-radius-lg); background: var(--ds-surface); border: 1px solid var(--ds-border); transition: transform .25s var(--ds-ease), box-shadow .25s, border-color .25s; }
.ds-tile:hover { transform: translateY(-4px); box-shadow: var(--ds-shadow); border-color: var(--ds-border-strong); }
.ds-tile h3 { font-size: 19px; }
.ds-tile p { color: var(--ds-muted); font-size: 14px; }
.ds-tile .ds-link { margin-top: auto; }
.ds-tile-dark { background: linear-gradient(160deg, #0E1721, #0A1017); border-color: rgba(255, 255, 255, .08); color: #E8EEF4; }
.ds-tile-dark p { color: #9AABBD; }
.ds-tile-dark .ds-link { color: var(--ds-gold); }
.ds-tile-glow::before { content: ''; position: absolute; width: 260px; height: 260px; inset-inline-end: -80px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 191, 174, .35), transparent 70%); pointer-events: none; }
.ds-tile-art { margin-top: 8px; }

/* ---------- platform cards ---------- */
.ds-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: var(--ds-surface); border: 1px solid var(--ds-border); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ds-tabs::-webkit-scrollbar { display: none; }
.ds-tab { height: 38px; padding: 0 16px; border-radius: 10px; border: 0; background: none; font-weight: 700; font-size: 13.5px; color: var(--ds-muted); cursor: pointer; white-space: nowrap; transition: all .18s; }
.ds-tab.is-active { background: var(--ds-ink); color: #fff; }
html.dark .ds-tab.is-active { background: var(--ds-gold); color: var(--ds-ink); }
.ds-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.ds-rail > * { scroll-snap-align: start; }
@media (min-width: 1024px) { .ds-rail { grid-auto-columns: calc((100% - 48px) / 4); } }
.ds-platform { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.ds-platform-logo { height: 148px; border-radius: 14px; background: radial-gradient(120% 120% at 50% 0%, #152231, var(--ds-ink)); display: flex; align-items: center; justify-content: center; padding: 12px 14px; overflow: hidden; }
.ds-platform-logo img { max-height: 116px; max-width: 94%; width: auto; object-fit: contain; transition: transform .35s var(--ds-ease); }
.ds-platform:hover .ds-platform-logo img { transform: scale(1.05); }
.ds-platform-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ds-muted); }
.ds-rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--ds-text); direction: ltr; }
.ds-rating i { color: var(--ds-gold); font-size: 16px; }
.ds-meter { height: 6px; border-radius: 99px; background: var(--ds-surface-2); border: 1px solid var(--ds-border); overflow: hidden; }
.ds-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ds-turq), var(--ds-gold)); }

/* ---------- platform list (صفحه همه بروکرها/صرافی‌ها/...) ---------- */
.ds-pfilters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; padding: 16px; }
.ds-pcard { display: flex; flex-direction: column; overflow: hidden; }
.ds-pcard-logo { position: relative; display: flex; align-items: center; justify-content: center; height: 132px; padding: 18px 24px; background: radial-gradient(120% 120% at 50% 0%, #152231, var(--ds-ink)); color: #fff; font-size: 18px; }
.ds-pcard-logo img { max-height: 72px; max-width: 80%; width: auto; object-fit: contain; transition: transform .35s var(--ds-ease); }
.ds-pcard:hover .ds-pcard-logo img { transform: scale(1.05); }
.ds-pcard-flag { position: absolute; top: 12px; inset-inline-start: 12px; }
.ds-pcard-body { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; flex: 1; }
.ds-pcard-body h2 a:hover { color: var(--ds-accent); }
.ds-pcard-scores { display: grid; gap: 10px; }
.ds-pcard-desc { color: var(--ds-muted); font-size: 13.5px; line-height: 1.95; }
.ds-pcard-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.ds-pcard-actions .ds-btn { flex: 1 1 auto; }
.ds-switch { display: inline-flex; align-items: center; gap: 10px; height: 48px; font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; }
.ds-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ds-switch-ui { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--ds-border-strong); transition: background .2s; flex: none; }
.ds-switch-ui::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: inset-inline-start .2s; }
.ds-switch input:checked + .ds-switch-ui { background: var(--ds-gold); }
.ds-switch input:checked + .ds-switch-ui::after { inset-inline-start: 21px; }
.ds-switch input:focus-visible + .ds-switch-ui { box-shadow: var(--ds-focus); }

/* ---------- signal card ---------- */
.ds-signal { display: flex; flex-direction: column; overflow: hidden; }
.ds-signal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 12px; }
.ds-signal-sym { font-size: 17px; font-weight: 800; direction: ltr; }
.ds-signal-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--ds-surface-2); }
.ds-signal-noimg { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--ds-surface-2), var(--ds-bg-2)); color: var(--ds-muted); font-size: 36px; }
.ds-signal-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px 18px; flex: 1; }
.ds-levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ds-level { background: var(--ds-surface-2); border: 1px solid var(--ds-border); border-radius: 10px; padding: 8px 10px; }
.ds-level span { display: block; font-size: 11.5px; color: var(--ds-muted); }
.ds-level b { display: block; direction: ltr; text-align: end; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.ds-level.entry b { color: var(--ds-text); }
.ds-level.sl b { color: var(--ds-neg); }
.ds-level.tp b { color: var(--ds-pos); }
.ds-signal-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; font-size: 12.5px; color: var(--ds-muted); }
.ds-status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.ds-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ds-status.yellow { background: rgba(227, 177, 92, .16); color: #93620d; }
.ds-status.blue { background: var(--ds-pos-soft); color: var(--ds-pos); }
.ds-status.green { background: var(--ds-accent-soft); color: var(--ds-accent); }
.ds-status.red { background: var(--ds-neg-soft); color: var(--ds-neg); }
.ds-status.gray { background: var(--ds-surface-2); color: var(--ds-muted); }
html.dark .ds-status.yellow { color: var(--ds-gold-2); }
.ds-new { animation: dsNew 1.2s var(--ds-ease); }
@keyframes dsNew { from { opacity: 0; transform: translateY(-14px); box-shadow: 0 0 0 3px var(--ds-gold); } to { opacity: 1; transform: none; } }

/* ---------- people ---------- */
.ds-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--ds-surface-2); flex: none; }
.ds-avatar-lg { width: 96px; height: 96px; }
.ds-avatar-xl { width: 128px; height: 128px; border: 4px solid var(--ds-surface); box-shadow: var(--ds-shadow); }
.ds-avatar-ph { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--ds-ink); background: linear-gradient(135deg, var(--ds-gold-2), var(--ds-gold)); }
.ds-person { display: flex; align-items: center; gap: 12px; }
.ds-person b { display: block; font-size: 14.5px; }
.ds-person span { font-size: 12.5px; color: var(--ds-muted); }
.ds-trader { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 26px 20px; }
.ds-trader .ds-trader-stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border-top: 1px solid var(--ds-border); padding-top: 14px; margin-top: 4px; }
.ds-trader .ds-trader-stats b { display: block; font-size: 16px; }
.ds-trader .ds-trader-stats span { font-size: 11.5px; color: var(--ds-muted); }

/* ---------- table ---------- */
.ds-table-wrap { overflow-x: auto; }
.ds-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ds-table th { text-align: start; font-size: 12.5px; font-weight: 700; color: var(--ds-muted); padding: 12px 16px; border-bottom: 1px solid var(--ds-border); white-space: nowrap; background: var(--ds-surface-2); }
.ds-table td { padding: 14px 16px; border-bottom: 1px solid var(--ds-border); vertical-align: middle; white-space: nowrap; }
.ds-table tr:last-child td { border-bottom: 0; }
.ds-table tbody tr { transition: background .15s; }
.ds-table tbody tr:hover { background: var(--ds-surface-2); }
.ds-table .num { direction: ltr; text-align: left; font-variant-numeric: tabular-nums; }
.ds-rank { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: var(--ds-surface-2); }
.ds-rank.r1 { background: linear-gradient(135deg, var(--ds-gold-2), var(--ds-gold)); color: var(--ds-ink); }
.ds-rank.r2 { background: #E6EBF1; color: #334155; }
.ds-rank.r3 { background: #F1DCC4; color: #7A4B12; }
html.dark .ds-rank.r2 { background: #3A4552; color: #E8EEF4; }
html.dark .ds-rank.r3 { background: #5A3E1F; color: #F7E0AC; }

/* ---------- filters bar ---------- */
.ds-filters { display: grid; gap: 12px; grid-template-columns: 1fr; padding: 16px; }
@media (min-width: 640px) { .ds-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ds-filters { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) auto; align-items: end; } }

/* ---------- pagination ---------- */
.ds-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.ds-pages a, .ds-pages span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--ds-border); background: var(--ds-surface); font-weight: 700; font-size: 14px; }
.ds-pages a:hover { border-color: var(--ds-accent); color: var(--ds-accent); }
.ds-pages .is-current { background: var(--ds-ink); color: #fff; border-color: var(--ds-ink); }
html.dark .ds-pages .is-current { background: var(--ds-gold); color: var(--ds-ink); border-color: var(--ds-gold); }

/* ---------- blog ---------- */
.ds-post { display: flex; flex-direction: column; overflow: hidden; }
.ds-post-cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ds-surface-2); }
.ds-post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ds-ease); }
.ds-post:hover .ds-post-cover img { transform: scale(1.05); }
.ds-post-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ds-post-body h3 { font-size: 17px; line-height: 1.7; }
.ds-post-body p { color: var(--ds-muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ds-post-meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--ds-muted); margin-top: auto; }
.ds-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; }
.ds-prose { font-size: 16px; line-height: 2.15; color: var(--ds-text-2); overflow-wrap: anywhere; }
.ds-prose > * + * { margin-top: 1.1em; }
.ds-prose h2, .ds-prose h3, .ds-prose h4 { color: var(--ds-text); margin-top: 1.8em; }
.ds-prose h2 { font-size: 24px; } .ds-prose h3 { font-size: 20px; }
.ds-prose a { color: var(--ds-accent); text-decoration: underline; text-underline-offset: 4px; }
.ds-prose ul, .ds-prose ol { padding-inline-start: 1.4em; list-style: disc; }
.ds-prose ol { list-style: decimal; }
.ds-prose li + li { margin-top: .4em; }
.ds-prose img { border-radius: var(--ds-radius); margin-inline: auto; }
.ds-prose blockquote { margin: 0; padding: 14px 20px; border-inline-start: 4px solid var(--ds-gold); background: var(--ds-surface-2); border-radius: 12px; }
.ds-prose iframe, .ds-prose video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--ds-radius); }
.ds-prose table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.ds-prose td, .ds-prose th { border: 1px solid var(--ds-border); padding: 8px 12px; }
.ds-toc a { display: block; padding: 6px 12px; border-inline-start: 2px solid var(--ds-border); color: var(--ds-muted); font-size: 13.5px; }
.ds-toc a:hover { color: var(--ds-accent); border-color: var(--ds-accent); }

/* ---------- comments / reviews ---------- */
.ds-comment { padding: 18px 0; border-top: 1px solid var(--ds-border); }
.ds-comment:first-child { border-top: 0; padding-top: 0; }
.ds-comment p { margin-top: 10px; color: var(--ds-text-2); }
.ds-reply { margin-top: 12px; margin-inline-start: 24px; padding: 12px 16px; border-radius: 12px; background: var(--ds-accent-soft); }
.ds-quote-card { display: flex; flex-direction: column; gap: 16px; padding: 26px; min-height: 100%; }
.ds-quote-card p { color: var(--ds-text-2); font-size: 14.5px; line-height: 2.05; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.ds-quote-card .uil-quote-left, .ds-quote-mark { font-size: 34px; color: var(--ds-gold); line-height: 1; }
.ds-stars { color: var(--ds-gold); letter-spacing: 2px; }

/* ---------- accordion ---------- */
.ds-acc { border: 1px solid var(--ds-border); border-radius: var(--ds-radius); background: var(--ds-surface); overflow: hidden; }
.ds-acc + .ds-acc { margin-top: 12px; }
.ds-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.ds-acc summary::-webkit-details-marker { display: none; }
.ds-acc summary i { flex: none; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--ds-surface-2); transition: transform .25s; font-size: 18px; }
.ds-acc[open] summary i { transform: rotate(45deg); background: var(--ds-gold); color: var(--ds-ink); }
.ds-acc-body { padding: 0 20px 20px; color: var(--ds-text-2); line-height: 2.05; }

/* ---------- steps ---------- */
.ds-steps { counter-reset: step; display: grid; gap: 18px; }
@media (min-width: 900px) { .ds-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ds-step { position: relative; padding: 28px 24px 24px; }
.ds-step::before { counter-increment: step; content: counter(step, persian); position: absolute; inset-inline-end: 20px; top: 14px; font-size: 54px; font-weight: 900; line-height: 1; color: var(--ds-border-strong); opacity: .7; }

/* ---------- CTA band ---------- */
.ds-cta { position: relative; overflow: hidden; border-radius: var(--ds-radius-lg); padding: 36px 24px; background: linear-gradient(135deg, #0E1721, #0A1017 60%); color: #E8EEF4; border: 1px solid rgba(255, 255, 255, .08); isolation: isolate; }
@media (min-width: 768px) { .ds-cta { padding: 56px; } }
.ds-cta::before { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; inset-inline-start: -160px; bottom: -300px; background: radial-gradient(circle, rgba(227, 177, 92, .3), transparent 65%); }
.ds-cta::after { content: ''; position: absolute; z-index: -1; width: 420px; height: 420px; inset-inline-end: -120px; top: -220px; background: radial-gradient(circle, rgba(47, 191, 174, .28), transparent 65%); }
.ds-cta p { color: #AFC0D0; }

/* ---------- mock UI (پیش‌نمایش ماشین‌حساب) ---------- */
.ds-mock { padding: 18px; font-size: 13px; }
.ds-mock-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--ds-border); }
.ds-mock-row:last-child { border-bottom: 0; }
.ds-mock-row b { direction: ltr; font-variant-numeric: tabular-nums; }
.ds-mock-big { font-size: 26px; font-weight: 800; color: var(--ds-accent); direction: ltr; }

/* ---------- footer ---------- */
.ds-footer { background: var(--ds-ink); color: #9AABBD; font-family: IRANSans, Tahoma, sans-serif; font-size: 14px; line-height: 1.9; position: relative; }
.ds-footer::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(227, 177, 92, .45), transparent); }
.ds-footer a:hover { color: var(--ds-gold); }
.ds-footer-in { display: grid; gap: 32px 20px; padding-block: 48px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds-footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) {
    .ds-footer-in { grid-template-columns: 1.5fr 1fr 1fr 1fr auto; gap: 36px; padding-block: 56px 32px; }
    .ds-footer-brand { grid-column: auto; }
}
.ds-footer h4 { color: #fff; font-size: 14.5px; font-weight: 800; margin-bottom: 14px; }
.ds-footer li + li { margin-top: 8px; }
.ds-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 13px; line-height: 1.9; }
.ds-footer ul { list-style: none; margin: 0; padding: 0; }
.ds-credit { display: inline-flex; align-items: center; opacity: .78; transition: opacity .2s; }
.ds-credit:hover { opacity: 1; }
.ds-credit img { height: 48px !important; width: auto !important; display: block; }
.ds-social { display: flex; gap: 8px; margin-top: 16px; }
.ds-social a { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .1); font-size: 19px; color: #C3D0DD; }
.ds-social a:hover { border-color: var(--ds-gold); color: var(--ds-gold); }
/* لینک inline است؛ بدون display عرض اعمال نمی‌شد و تصویر نماد به اندازه کل ستون کشیده می‌شد */
.ds-seal { display: inline-block; width: 104px; padding: 6px; border-radius: 14px; background: #fff; line-height: 0; vertical-align: top; }
.ds-seal img { display: block; width: 100% !important; height: auto !important; max-width: 100%; }

/* ---------- toast ---------- */
.ds-toast { position: fixed; inset-inline-start: 50%; bottom: 24px; z-index: 120; transform: translateX(50%); max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 14px; background: var(--ds-ink); color: #fff; box-shadow: var(--ds-shadow-lg); font-size: 14px; font-family: IRANSans, Tahoma, sans-serif; border: 1px solid rgba(255, 255, 255, .1); animation: dsToast .35s var(--ds-ease); }
[dir="rtl"] .ds-toast { transform: translateX(50%); }
@keyframes dsToast { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }

/* ---------- reveal on scroll ---------- */
.ds-js .ds-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ds-ease), transform .7s var(--ds-ease); }
.ds-js .ds-reveal.is-in { opacity: 1; transform: none; }
.ds-js .ds-reveal-d1 { transition-delay: .08s; } .ds-js .ds-reveal-d2 { transition-delay: .16s; } .ds-js .ds-reveal-d3 { transition-delay: .24s; }

/* ---------- empty state ---------- */
.ds-empty { padding: 48px 20px; text-align: center; color: var(--ds-muted); }
.ds-empty i { font-size: 40px; display: block; margin-bottom: 8px; opacity: .6; }

/* ---------- auth ---------- */
.ds-auth { min-height: 100vh; display: grid; background: var(--ds-bg); }
@media (min-width: 1024px) { .ds-auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.ds-auth-form { display: flex; flex-direction: column; justify-content: center; padding: 32px 20px; }
.ds-auth-form > div { width: 100%; max-width: 420px; margin-inline: auto; }
.ds-auth-side { display: none; position: relative; overflow: hidden; background: var(--ds-ink); color: #E8EEF4; padding: 56px; isolation: isolate; }
@media (min-width: 1024px) { .ds-auth-side { display: flex; flex-direction: column; justify-content: space-between; } }
.ds-auth-side::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 80% 20%, rgba(47, 191, 174, .25), transparent 60%), radial-gradient(60% 50% at 10% 90%, rgba(227, 177, 92, .22), transparent 60%); }
.ds-auth-side > img { align-self: flex-start; width: auto; }
.ds-otp { letter-spacing: .5em; text-align: center; font-size: 22px; font-weight: 800; direction: ltr; }

/* ---------- صفحات بروکر (قالب قدیمی): فقط هدر و فوتر جدید، بدنه دست‌نخورده ---------- */
.ds-legacy .ds-theme-toggle { display: none; }   /* بدنه صفحات بروکر حالت تیره ندارد */
.ds-legacy .ds-header ul, .ds-legacy .ds-footer ul { list-style: none; margin: 0; padding: 0; }
.ds-credit { display: inline-flex; align-items: center; opacity: .78; transition: opacity .2s; }
.ds-credit:hover { opacity: 1; }
.ds-credit img { height: 48px !important; width: auto !important; display: block; }
.ds-legacy .ds-header, .ds-legacy .ds-footer, .ds-legacy .ds-drawer, .ds-legacy .ds-palette { line-height: 1.85; }
.ds-legacy .ds-header *, .ds-legacy .ds-footer *, .ds-legacy .ds-drawer *, .ds-legacy .ds-palette * { box-sizing: border-box; }
.ds-legacy .ds-header a, .ds-legacy .ds-footer a { text-decoration: none; }
.ds-legacy .ds-footer-bottom { padding-inline-end: 56px; }   /* جای دکمه «بازگشت به بالا»ی قالب قدیمی */

/* ---------- utilities ---------- */
.ds-only-dark { display: none !important; }
html.dark .ds-only-dark { display: block !important; }
html.dark .ds-only-light { display: none !important; }
.ds-mt-0 { margin-top: 0 !important; } .ds-mt-1 { margin-top: 8px; } .ds-mt-2 { margin-top: 16px; } .ds-mt-3 { margin-top: 24px; } .ds-mt-4 { margin-top: 32px; } .ds-mt-5 { margin-top: 48px; }
.ds-mb-2 { margin-bottom: 16px; } .ds-mb-3 { margin-bottom: 24px; }
.ds-w-full { width: 100%; }
.ds-nowrap { white-space: nowrap; }
.ds-hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    .ds-body *, .ds-body *::before, .ds-body *::after, .ds-hero::before { animation: none !important; transition: none !important; }
    .ds-js .ds-reveal { opacity: 1; transform: none; }
    .ds-ticker-track { animation: none; flex-wrap: wrap; width: auto; }
}

@media print {
    .ds-header, .ds-footer, .ds-drawer, .ds-palette, .ds-no-print { display: none !important; }
    .ds-hero, .ds-page-hero { background: #fff !important; color: #000 !important; }
}
