﻿:root {
            --bg: #0a0f1e;
            --panel: rgba(17, 24, 39, 0.8);
            --panel-strong: rgba(12, 19, 33, 0.95);
            --border: rgba(255, 255, 255, 0.08);
            /* رنگ‌بندی متمایز برای ابزار سهام: آبی نقره‌ای */
            --accent: #3b82f6;
            --accent-2: #93c5fd;
            --silver: #cbd5e1;
        }
        body {
            font-family: 'Vazirmatn', sans-serif;
            background: radial-gradient(900px 700px at 10% 15%, rgba(59,130,246,0.14), transparent 55%),
                        radial-gradient(800px 650px at 85% 10%, rgba(99,102,241,0.10), transparent 55%),
                        radial-gradient(700px 600px at 55% 80%, rgba(148,163,184,0.08), transparent 60%),
                        #0a0f1e;
            background-attachment: fixed;
            color: #e5e7eb;
            min-height: 100vh;
        }
        .glass {
            background: rgba(17, 24, 39, 0.6);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }
        .glass-card {
            background: rgba(17, 24, 39, 0.78);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid rgba(255, 255, 255, 0.06);
            box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
        }
        .glass-strong {
            background: rgba(12, 19, 33, 0.92);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        [x-cloak] { display: none !important; }
        html.ek-deps-failed [x-cloak] { display: revert !important; }

        /* حداقل layout اگر build.css لود نشود */
        .container { width: 100%; margin-inline: auto; padding-inline: 1rem; }
        @media (min-width: 1024px) { .container { max-width: 1280px; } }
        .hidden { display: none !important; }
        @media (min-width: 640px) {
            .sm\:flex { display: flex !important; }
            .sm\:table-cell { display: table-cell !important; }
        }
        @media (min-width: 768px) {
            .md\:inline-flex { display: inline-flex !important; }
            .md\:table-cell { display: table-cell !important; }
        }
        @media (min-width: 1024px) {
            .lg\:flex { display: flex !important; }
            .lg\:hidden { display: none !important; }
            .lg\:table-cell { display: table-cell !important; }
        }
        .flex { display: flex; }
        .items-center { align-items: center; }
        .justify-between { justify-content: space-between; }
        .mx-auto { margin-inline: auto; }
        .max-w-7xl { max-width: 80rem; }
        .w-full { width: 100%; }

        .ek-boot-error {
            position: fixed; inset: 0; z-index: 9999;
            display: flex; align-items: center; justify-content: center;
            padding: 1.5rem; background: rgba(2,6,23,.96);
        }
        .ek-boot-error[hidden] { display: none !important; }
        .ek-boot-error-inner {
            max-width: 28rem; padding: 1.25rem 1.35rem; border-radius: 1rem;
            background: rgba(15,23,42,.95); border: 1px solid rgba(251,113,133,.35);
            text-align: center; color: #fecdd3;
        }
        .ek-boot-error-inner h2 { font-size: 1rem; font-weight: 800; color: #fda4af; margin-bottom: .5rem; }
        .ek-boot-error-inner p { font-size: .82rem; line-height: 1.65; color: #cbd5e1; }
        .ek-boot-error-inner button {
            margin-top: .85rem; padding: .5rem 1rem; border-radius: .65rem;
            background: rgba(59,130,246,.2); border: 1px solid rgba(96,165,250,.4);
            color: #bfdbfe; font-weight: 700; cursor: pointer;
        }

        /* ========= Header (همسان با options-calculator) ========= */
        .desktop-nav { gap: .9rem; }
        .desktop-nav-link {
            position: relative;
            padding: .62rem .55rem;
            border-radius: .75rem;
            color: #d1d5db;
            transition: color .2s ease, background-color .2s ease;
            white-space: nowrap;
        }
        .desktop-nav-link:hover { color: #f8fafc; background: rgba(255,255,255,.04); }
        .desktop-nav-link.is-active { color: #f8fafc; background: transparent !important; }
        .desktop-nav-link.is-active::after {
            content: "";
            position: absolute;
            right: .35rem;
            left: .35rem;
            bottom: .06rem;
            height: 2px;
            border-radius: 999px;
            background: linear-gradient(90deg, #10b981, #34d399);
            box-shadow: 0 0 10px rgba(16,185,129,.8), 0 0 18px rgba(52,211,153,.45);
        }
        .login-cta {
            position: relative;
            display: inline-flex;
            align-items: center; justify-content: center; gap: .5rem;
            padding: .55rem 1.05rem; font-size: .875rem; font-weight: 800;
            border-radius: 999px;
            color: #03210f !important; text-decoration: none !important; white-space: nowrap;
            background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
            border: 1px solid rgba(16,185,129,.55);
            box-shadow: 0 0 0 1px rgba(16,185,129,.25), 0 8px 22px rgba(16,185,129,.32), inset 0 1px 0 rgba(255,255,255,.35);
            transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
            overflow: hidden;
        }
        .login-cta::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.45) 50%, transparent 100%); transform: translateX(-100%); transition: transform .55s ease; pointer-events: none; }
        .login-cta:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 0 0 1px rgba(52,211,153,.45), 0 14px 30px rgba(16,185,129,.45), inset 0 1px 0 rgba(255,255,255,.45); }
        .login-cta:hover::before { transform: translateX(100%); }
        .login-cta:active { transform: translateY(0); }
        .login-cta-icon { flex-shrink: 0; }
        .nav-subscriptions-vip {
            padding: .55rem 1rem .55rem .9rem !important;
            font-size: .82rem !important; line-height: 1.2 !important; gap: .45rem !important;
        }
        .nav-subscriptions-vip-crown { width: 1rem !important; height: 1rem !important; }
        @media (max-width: 1023px) {
            .nav-subscriptions-vip { padding: .5rem .8rem .5rem .75rem !important; font-size: .78rem !important; }
            .nav-subscriptions-vip-crown { width: .9rem !important; height: .9rem !important; }
        }
        .mobile-guest-menu .mobile-menu-item,
        .user-menu-item {
            display: flex; align-items: center; gap: .8rem;
            padding: .85rem .9rem; border-radius: .85rem; min-height: 48px;
            color: #e2e8f0; position: relative;
            transition: background-color .18s ease, transform .18s ease, color .18s ease;
        }
        .mobile-guest-menu .mobile-menu-item:hover { background: rgba(255,255,255,.04); color: #fff; }
        .mobile-guest-menu .mobile-menu-item:active { transform: scale(.985); background: rgba(16,185,129,.08); }
        .mobile-guest-menu .mobile-menu-item[aria-current="page"] {
            background: linear-gradient(90deg, rgba(16,185,129,.18), rgba(94,234,212,.05));
            color: #fff; font-weight: 700;
        }
        .mobile-guest-menu .mobile-menu-item[aria-current="page"]::before {
            content: ""; position: absolute; right: 0; top: 18%; bottom: 18%;
            width: 3px; border-radius: 999px;
            background: linear-gradient(180deg, #10b981, #5eead4);
            box-shadow: 0 0 12px rgba(16,185,129,.7);
        }
        .mobile-guest-menu .mobile-menu-item[aria-current="page"] .mobile-menu-item-icon { color: #34d399; }
        .mobile-menu-item-icon {
            width: 1.85rem; height: 1.85rem; padding: .35rem;
            color: #94a3b8;
            background: rgba(255,255,255,.04);
            border: 1px solid rgba(255,255,255,.06);
            border-radius: .55rem; flex-shrink: 0;
            transition: background-color .18s ease, color .18s ease, border-color .18s ease;
        }
        .mobile-guest-menu .mobile-menu-item:hover .mobile-menu-item-icon { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.28); color: #34d399; }
        .mobile-menu-section-title {
            display: flex; align-items: center; gap: .55rem;
            padding: .85rem .55rem .4rem;
            font-size: .7rem; font-weight: 700; color: #64748b; letter-spacing: .06em;
        }
        .mobile-menu-section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.08), transparent); }
        .mobile-menu-section-title:first-child { padding-top: .25rem; }
        .mobile-guest-menu .mobile-menu-item + .mobile-menu-item { border-top: 0; }
        .mobile-sheet-head {
            display: flex; align-items: center; justify-content: space-between;
            padding: .55rem .65rem .65rem;
            border-bottom: 1px solid rgba(255,255,255,.06);
            margin-bottom: .35rem;
        }
        .mobile-sheet-title { font-size: .82rem; font-weight: 800; color: #f1f5f9; letter-spacing: .02em; }
        .mobile-sheet-close {
            width: 36px; height: 36px;
            display: inline-flex; align-items: center; justify-content: center;
            border-radius: .7rem; color: #94a3b8;
            background: rgba(255,255,255,.04);
            border: 1px solid rgba(255,255,255,.06);
            transition: background-color .15s ease, color .15s ease;
        }
        .mobile-sheet-close:hover { background: rgba(239,68,68,.12); color: #fca5a5; border-color: rgba(239,68,68,.3); }
        .mobile-login-btn {
            margin-top: .65rem; width: 100%; padding: .9rem 1rem; border-radius: .9rem;
            background: linear-gradient(135deg, #047857 0%, #10b981 58%, #34d399 100%);
            color: #032117; font-weight: 800; text-align: center;
            box-shadow: 0 10px 24px rgba(16,185,129,.28);
        }
        .mobile-vip-btn {
            margin-top: .35rem; display: flex; align-items: center; justify-content: center; gap: .5rem;
            width: 100%; padding: .82rem 1rem; border-radius: .9rem;
            background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(113,63,18,.22));
            border: 1px solid rgba(212,175,55,.45);
            color: #fde68a; font-weight: 700; text-align: center;
        }
        .header-backdrop { position: fixed; inset: 0; background: rgba(2,6,23,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 40; }
        .mobile-sheet { max-height: calc(100vh - 5.5rem); max-height: calc(100dvh - 5.5rem); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; z-index: 50; }
        .mobile-sheet::-webkit-scrollbar { width: 6px; }
        .mobile-sheet::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 999px; }
        .hamburger-btn { width: 44px; height: 44px; }
        header.header-shell { padding-top: 1rem; padding-bottom: 1rem; transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease; }
        header.header-shell.is-scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.35); }
        body.menu-open { overflow: hidden; }
        .user-plan-card {
            background: linear-gradient(135deg, rgba(139,92,246,.22), rgba(16,185,129,.2));
            border: 1px solid rgba(52,211,153,.28);
        }
        .plan-glow { color: #6ee7b7 !important; text-shadow: 0 0 10px rgba(52,211,153,.62); }
        .icon-wrap { display: inline-flex; align-items: center; justify-content: center; }
        .logout-accent, .logout-accent .icon-wrap, .logout-accent .icon-wrap span { color: #f87171 !important; }
        .nav-link.is-active { color: #f8fafc; }
        @media (min-width: 768px) and (max-width: 1023px) {
            .mobile-sheet { margin-left: 1.5rem; margin-right: 1.5rem; }
            .mobile-guest-menu .mobile-menu-item { padding: 1rem .95rem; font-size: .95rem; }
        }

        /* ========= Hero (الگوی opt-hero با تم آبی نقره‌ای) ========= */
        .so-hero-icon {
            display: inline-flex; align-items: center; justify-content: center;
            width: 56px; height: 56px;
            border-radius: 1.1rem;
            color: #93c5fd;
            background: linear-gradient(135deg, rgba(59,130,246,.22), rgba(99,102,241,.18));
            border: 1px solid rgba(99,102,241,.45);
            box-shadow: 0 10px 26px rgba(59,130,246,.28), inset 0 1px 0 rgba(255,255,255,.1);
            flex-shrink: 0;
        }
        .so-hero-badge {
            display: inline-flex; align-items: center; gap: .45rem;
            padding: .35rem .9rem; border-radius: 999px;
            font-size: .72rem; font-weight: 700;
            color: #bfdbfe;
            background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(148,163,184,.12));
            border: 1px solid rgba(99,102,241,.32);
            box-shadow: 0 6px 16px rgba(59,130,246,.16), inset 0 1px 0 rgba(255,255,255,.06);
        }
        .so-hero-badge-signal {
            position: relative;
            display: inline-flex;
            flex-shrink: 0;
            width: .5rem;
            height: .5rem;
        }
        .so-hero-badge-dot,
        .so-hero-badge-dot-ping {
            position: absolute;
            inset: 0;
            border-radius: 999px;
            background: #93c5fd;
        }
        .so-hero-badge-dot {
            box-shadow: 0 0 8px rgba(147,197,253,.75);
        }
        .so-hero-badge-dot-ping {
            opacity: .65;
            animation: soHeroBadgePing 1.5s cubic-bezier(0, 0, .2, 1) infinite;
        }
        @keyframes soHeroBadgePing {
            75%, 100% { transform: scale(2.2); opacity: 0; }
        }
        @media (prefers-reduced-motion: reduce) {
            .so-hero-badge-dot-ping { animation: none; opacity: 0; }
        }

        /* ========= Market summary ========= */
        .so-market-summary {
            position: relative;
            padding: 1.25rem;
            border-radius: 1.25rem;
            background: linear-gradient(160deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.85) 100%);
            border: 1px solid rgba(99,102,241,.22);
            backdrop-filter: blur(12px);
            box-shadow: 0 18px 40px rgba(0,0,0,.3);
            overflow: hidden;
        }
        .so-market-summary::before {
            content: "";
            position: absolute;
            top: -80px; right: -80px;
            width: 220px; height: 220px;
            background: radial-gradient(closest-side, rgba(99,102,241,.16), transparent 70%);
            pointer-events: none;
        }
        @media (min-width: 768px) { .so-market-summary { padding: 1.5rem; } }
        .so-market-head {
            position: relative;
            display: flex;
            align-items: center;
            gap: .75rem;
            z-index: 1;
        }
        .so-market-head-icon {
            display: inline-flex; align-items: center; justify-content: center;
            width: 38px; height: 38px;
            border-radius: .8rem;
            color: #93c5fd;
            background: linear-gradient(135deg, rgba(59,130,246,.22), rgba(99,102,241,.18));
            border: 1px solid rgba(99,102,241,.4);
            box-shadow: 0 6px 14px rgba(59,130,246,.22), inset 0 1px 0 rgba(255,255,255,.08);
            flex-shrink: 0;
        }
        .so-market-title {
            font-size: .95rem;
            font-weight: 800;
            color: #f1f5f9;
            line-height: 1.2;
        }
        @media (min-width: 640px) { .so-market-title { font-size: 1.05rem; } }
        .so-market-sub {
            font-size: .7rem;
            color: #94a3b8;
            margin-top: .15rem;
            line-height: 1.5;
        }
        .so-stat {
            position: relative;
            display: flex; align-items: center; justify-content: space-between;
            gap: .75rem;
            padding: .85rem 1rem;
            border-radius: 1rem;
            background: linear-gradient(160deg, rgba(15,23,42,.5) 0%, rgba(15,23,42,.8) 100%);
            border: 1px solid rgba(255,255,255,.06);
            transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
            overflow: hidden;
        }
        .so-stat::after {
            content: "";
            position: absolute; top: -40%; right: -30%;
            width: 70%; height: 110%;
            background: radial-gradient(closest-side, var(--so-glow, rgba(99,102,241,.3)), transparent 70%);
            opacity: 0; transition: opacity .35s ease;
            pointer-events: none;
        }
        .so-stat:hover {
            transform: translateY(-2px);
            border-color: var(--so-border, rgba(99,102,241,.35));
            box-shadow: 0 14px 28px rgba(0,0,0,.3);
        }
        .so-stat:hover::after { opacity: 1; }
        .so-stat-side {
            position: relative;
            display: flex;
            align-items: center;
            gap: .65rem;
            min-width: 0;
            z-index: 1;
            flex-shrink: 0;
        }
        .so-stat-icon {
            display: inline-flex; align-items: center; justify-content: center;
            width: 32px; height: 32px;
            border-radius: .65rem;
            color: var(--so-ic, #93c5fd);
            background: var(--so-ic-bg, rgba(59,130,246,.18));
            border: 1px solid var(--so-ic-br, rgba(99,102,241,.35));
            box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
            flex-shrink: 0;
        }
        .so-stat-label {
            font-size: .72rem;
            color: #cbd5e1;
            font-weight: 600;
            white-space: nowrap;
        }
        .so-stat-value {
            position: relative;
            font-size: .95rem;
            font-weight: 800;
            color: #f1f5f9;
            line-height: 1.2;
            font-variant-numeric: tabular-nums;
            z-index: 1;
            text-align: left;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            min-width: 0;
        }
        @media (min-width: 640px) { .so-stat-value { font-size: 1.05rem; } }
        .so-stat-blue { --so-glow: rgba(59,130,246,.3); --so-border: rgba(99,102,241,.4); --so-ic: #93c5fd; --so-ic-bg: rgba(59,130,246,.18); --so-ic-br: rgba(99,102,241,.4); }
        .so-stat-emerald { --so-glow: rgba(52,211,153,.3); --so-border: rgba(52,211,153,.4); --so-ic: #6ee7b7; --so-ic-bg: rgba(16,185,129,.18); --so-ic-br: rgba(52,211,153,.4); }
        .so-stat-violet { --so-glow: rgba(167,139,250,.3); --so-border: rgba(167,139,250,.4); --so-ic: #c4b5fd; --so-ic-bg: rgba(139,92,246,.18); --so-ic-br: rgba(167,139,250,.4); }
        .so-stat-amber { --so-glow: rgba(252,211,77,.3); --so-border: rgba(252,211,77,.4); --so-ic: #fcd34d; --so-ic-bg: rgba(251,191,36,.18); --so-ic-br: rgba(252,211,77,.4); }
        .so-kpi-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: .65rem;
        }
        @media (min-width: 768px) {
            .so-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
        }
        @media (max-width: 639px) {
            .so-stat {
                flex-direction: column;
                align-items: stretch;
                gap: .45rem;
                padding: .7rem .65rem;
            }
            .so-stat-side { width: 100%; gap: .5rem; }
            .so-stat-icon { width: 28px; height: 28px; }
            .so-stat-label {
                white-space: normal;
                line-height: 1.35;
                font-size: .66rem;
                flex: 1;
                min-width: 0;
            }
            .so-stat-value {
                width: 100%;
                text-align: right;
                font-size: 1.05rem;
                white-space: nowrap;
                overflow: visible;
                text-overflow: clip;
            }
        }


        :root {
            --so-header-h: calc(4.75rem + env(safe-area-inset-top, 0px));
        }
        @media (min-width: 640px) {
            :root { --so-header-h: 4.85rem; }
        }
        @media (min-width: 1024px) {
            :root { --so-header-h: 5rem; }
        }

        .so-tabs-wrap {
            position: sticky;
            top: var(--so-header-h);
            z-index: 30;
            padding: .35rem;
            margin-bottom: 1.25rem;
            border-radius: 1.15rem;
            background: linear-gradient(180deg, rgba(10,15,30,.94), rgba(15,23,42,.88));
            border: 1px solid rgba(99,102,241,.22);
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,.05),
                0 10px 28px rgba(0,0,0,.32);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            overflow: visible;
            transition: box-shadow .25s ease, border-color .25s ease;
        }
        @media (min-width: 640px) { .so-tabs-wrap { margin-bottom: 1.75rem; } }
        .so-tabs-wrap.is-stuck {
            border-color: rgba(99,102,241,.34);
            box-shadow: 0 12px 32px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.06);
        }

        .so-tabs-inner {
            display: grid;
            grid-template-columns: repeat(6, minmax(0, 1fr));
            gap: .28rem;
            position: relative;
            min-width: 0;
        }

        .so-tabs-slider-pill {
            position: absolute;
            top: 0;
            bottom: 0;
            border-radius: .82rem;
            background: linear-gradient(135deg, #3b82f6 0%, #6366f1 48%, #8b5cf6 100%);
            border: 1px solid rgba(147,197,253,.38);
            box-shadow:
                0 8px 26px rgba(59,130,246,.48),
                inset 0 1px 0 rgba(255,255,255,.18);
            transition:
                right .42s cubic-bezier(0.34, 1.2, 0.64, 1),
                width .42s cubic-bezier(0.34, 1.2, 0.64, 1),
                box-shadow .3s ease;
            z-index: 0;
            pointer-events: none;
            will-change: right;
        }
        .so-tabs-slider-pill::after {
            content: "";
            position: absolute;
            inset: -3px;
            border-radius: inherit;
            background: linear-gradient(135deg, rgba(59,130,246,.5), rgba(139,92,246,.42));
            filter: blur(12px);
            opacity: .52;
            z-index: -1;
            pointer-events: none;
        }

        .so-tab {
            position: relative;
            z-index: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: .42rem;
            padding: .68rem .4rem;
            border-radius: .82rem;
            font-size: .76rem;
            font-weight: 600;
            color: #94a3b8;
            background: rgba(15,23,42,.32);
            border: 1px solid rgba(255,255,255,.05);
            transition:
                color .28s ease,
                background-color .28s ease,
                border-color .28s ease,
                transform .18s ease,
                opacity .28s ease,
                box-shadow .28s ease;
            min-height: 44px;
            cursor: pointer;
            letter-spacing: .005em;
            -webkit-tap-highlight-color: transparent;
        }
        @media (min-width: 768px) {
            .so-tab { font-size: .82rem; padding: .72rem .55rem; }
        }
        .so-tab svg {
            width: 15px;
            height: 15px;
            color: #64748b;
            flex-shrink: 0;
            transition: color .25s ease, transform .3s cubic-bezier(0.34, 1.2, 0.64, 1);
        }

        .so-tab:not(.is-active) { opacity: .78; }
        .so-tab:not(.is-active):hover {
            color: #e2e8f0;
            opacity: 1;
            background: rgba(99,102,241,.1);
            border-color: rgba(99,102,241,.22);
            transform: translateY(-1px);
        }
        .so-tab:not(.is-active):hover svg {
            color: #cbd5e1;
            transform: scale(1.08);
        }
        .so-tab:active:not(.is-active) { transform: translateY(0) scale(0.98); }

        @media (min-width: 641px) {
            .so-tabs-slider-pill { display: block; }
            .so-tab:not(.is-active) {
                background: transparent;
                border-color: transparent;
            }
            .so-tab.is-active {
                color: #fff;
                font-weight: 800;
                opacity: 1;
                background: transparent;
                border-color: transparent;
                text-shadow: 0 1px 3px rgba(0,0,0,.35);
            }
            .so-tab.is-active svg {
                color: #fff;
                transform: scale(1.12);
                filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
            }
        }

        @keyframes soTabActivePulse {
            0% { transform: scale(0.96); }
            55% { transform: scale(1.02); }
            100% { transform: scale(1); }
        }

        @media (max-width: 640px) {
            .so-tabs-inner {
                grid-template-columns: repeat(3, 1fr);
                gap: .32rem;
            }
            .so-tabs-slider-pill { display: none !important; }

            .so-tab {
                flex-direction: column;
                gap: .28rem;
                padding: .6rem .26rem;
                font-size: .62rem;
                line-height: 1.2;
                white-space: normal;
                min-height: 60px;
                opacity: 1;
                background: rgba(15,23,42,.5);
            }
            .so-tab svg { width: 17px; height: 17px; }

            .so-tab.is-active {
                color: #fff;
                font-weight: 800;
                background: linear-gradient(135deg, #3b82f6 0%, #6366f1 58%, #8b5cf6 100%);
                border-color: rgba(147,197,253,.45);
                box-shadow:
                    0 8px 24px rgba(59,130,246,.4),
                    0 0 16px rgba(99,102,241,.28),
                    inset 0 1px 0 rgba(255,255,255,.15);
                animation: soTabActivePulse .4s cubic-bezier(0.34, 1.2, 0.64, 1);
            }
            .so-tab.is-active svg { color: #fff; transform: scale(1.1); }
        }

        .so-tab-panel[x-cloak] { display: none !important; }
        .so-tab-panel,
        .so-market-summary,
        .opt-donut-grid,
        #so-panel-strategies {
            min-width: 0;
            max-width: 100%;
        }

        .so-card {
            border-radius: 1.25rem;
            background: linear-gradient(160deg, rgba(15,23,42,.85) 0%, rgba(2,6,23,.85) 100%);
            border: 1px solid rgba(99,102,241,.18);
            box-shadow: 0 18px 38px -22px rgba(0,0,0,.6);
            padding: 1.1rem 1.15rem;
            position: relative;
        }
        @media (min-width: 768px) { .so-card { padding: 1.4rem 1.5rem; } }
        .so-card-head {
            display: flex; align-items: center;
            gap: .6rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }
        .so-card-title {
            font-size: .95rem;
            font-weight: 800;
            color: #f1f5f9;
            display: inline-flex; align-items: center; gap: .4rem;
        }
        .so-card-title-bar {
            width: 3px; height: 18px;
            background: linear-gradient(180deg, #3b82f6, #93c5fd);
            border-radius: 999px;
        }

        /* نمودارهای نمای کلی (هم‌سبک صفحهٔ کالا) */
        .opt-chart-card {
            position: relative;
            padding: 1.1rem 1.15rem 1.25rem;
            border-radius: 1.25rem;
            background: linear-gradient(160deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.85) 100%);
            border: 1px solid rgba(255,255,255,.07);
            backdrop-filter: blur(10px);
            overflow: hidden;
            isolation: isolate;
            transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
            min-width: 0;
            max-width: 100%;
            width: 100%;
            box-sizing: border-box;
        }
        @media (min-width: 640px) { .opt-chart-card { padding: 1.35rem 1.4rem 1.5rem; } }
        .opt-chart-card:hover {
            transform: translateY(-2px);
            border-color: var(--optc-border, rgba(167,139,250,.35));
            box-shadow: 0 18px 38px rgba(0,0,0,.36), 0 0 22px var(--optc-glow, rgba(139,92,246,.18));
        }
        .opt-chart-glow {
            position: absolute;
            top: -45%; right: -30%;
            width: 70%; height: 110%;
            background: radial-gradient(closest-side, var(--optc-glow, rgba(139,92,246,.3)), transparent 70%);
            opacity: .25;
            transition: opacity .35s ease;
            pointer-events: none;
            z-index: 0;
        }
        .opt-chart-card:hover .opt-chart-glow { opacity: .8; }
        .opt-chart-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px; height: 32px;
            border-radius: .65rem;
            color: var(--optc-icon-color, #c4b5fd);
            background: var(--optc-icon-bg, rgba(139,92,246,.18));
            border: 1px solid var(--optc-icon-border, rgba(167,139,250,.4));
            flex-shrink: 0;
        }
        .opt-chart-title { font-size: .95rem; font-weight: 800; color: #f1f5f9; line-height: 1.25; }
        .opt-chart-meta { font-size: .68rem; color: #94a3b8; margin-top: .15rem; line-height: 1.45; }
        .opt-chart-badge {
            display: inline-flex;
            align-items: center;
            padding: .3rem .7rem;
            border-radius: 999px;
            font-size: .68rem;
            font-weight: 700;
            color: var(--optc-icon-color, #c4b5fd);
            background: var(--optc-icon-bg, rgba(139,92,246,.14));
            border: 1px solid var(--optc-icon-border, rgba(167,139,250,.3));
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }
        .opt-chart-card-violet { --optc-glow: rgba(167,139,250,.3); --optc-border: rgba(167,139,250,.4); --optc-icon-color: #c4b5fd; --optc-icon-bg: rgba(139,92,246,.18); --optc-icon-border: rgba(167,139,250,.4); }
        .opt-chart-card-emerald { --optc-glow: rgba(52,211,153,.3); --optc-border: rgba(52,211,153,.4); --optc-icon-color: #6ee7b7; --optc-icon-bg: rgba(16,185,129,.18); --optc-icon-border: rgba(52,211,153,.4); }
        .opt-chart-card-cyan { --optc-glow: rgba(34,211,238,.3); --optc-border: rgba(103,232,249,.4); --optc-icon-color: #67e8f9; --optc-icon-bg: rgba(34,211,238,.18); --optc-icon-border: rgba(103,232,249,.4); }
        .opt-chart-card-amber { --optc-glow: rgba(251,191,36,.3); --optc-border: rgba(252,211,77,.4); --optc-icon-color: #fcd34d; --optc-icon-bg: rgba(251,191,36,.18); --optc-icon-border: rgba(252,211,77,.4); }
        .opt-chart-card-rose { --optc-glow: rgba(244,114,182,.3); --optc-border: rgba(249,168,212,.4); --optc-icon-color: #f9a8d4; --optc-icon-bg: rgba(244,114,182,.18); --optc-icon-border: rgba(249,168,212,.4); }
        .opt-donut-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; max-width: 100%; }
        @media (min-width: 768px) { .opt-donut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; } }
        .opt-charts-pair {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: 1rem;
            margin-top: 1rem;
            align-items: stretch;
            min-width: 0;
            max-width: 100%;
        }
        @media (min-width: 768px) { .opt-charts-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; } }
        .opt-charts-pair > .opt-chart-card {
            display: flex;
            flex-direction: column;
            height: 100%;
            min-width: 0;
            max-width: 100%;
            width: 100%;
            box-sizing: border-box;
        }
        .opt-charts-pair > .opt-chart-card .opt-donut-canvas-wrap {
            flex: 1 1 auto;
        }
        .opt-strike-intro {
            font-size: .64rem;
            line-height: 1.65;
            color: #94a3b8;
            margin: -.35rem 0 .5rem;
            position: relative;
            z-index: 1;
        }
        .opt-strike-card.opt-chart-card { overflow: hidden; }
        .opt-strike-toolbar {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: .45rem;
            margin-bottom: .65rem;
            position: relative;
            z-index: 4;
        }
        @media (max-width: 420px) { .opt-strike-toolbar { grid-template-columns: 1fr; } }
        .opt-strike-filter {
            display: flex;
            flex-direction: column;
            gap: .28rem;
            min-width: 0;
            position: relative;
        }
        .opt-strike-filter.is-dd-open { z-index: 60; }
        .opt-strike-filter-label {
            font-size: .56rem;
            font-weight: 700;
            color: #64748b;
            letter-spacing: .02em;
        }
        .opt-strike-select-wrap {
            position: relative;
            display: block;
        }
        .opt-strike-select-btn {
            display: flex;
            align-items: center;
            gap: .4rem;
            width: 100%;
            padding: .48rem .55rem .48rem .65rem;
            border-radius: .65rem;
            background: linear-gradient(140deg, rgba(15,23,42,.72) 0%, rgba(30,27,75,.45) 100%);
            border: 1px solid rgba(167,139,250,.28);
            color: #e2e8f0;
            font-size: .68rem;
            font-weight: 700;
            font-family: 'Vazirmatn', sans-serif;
            cursor: pointer;
            text-align: right;
            transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
        }
        .opt-strike-select-btn:hover:not(:disabled) {
            border-color: rgba(196,181,253,.45);
            background: linear-gradient(140deg, rgba(30,27,75,.55) 0%, rgba(15,23,42,.65) 100%);
        }
        .opt-strike-select-btn:focus-visible {
            outline: none;
            border-color: rgba(196,181,253,.55);
            box-shadow: 0 0 0 3px rgba(139,92,246,.18);
        }
        .opt-strike-select-btn.is-open {
            border-color: rgba(196,181,253,.55);
            background: linear-gradient(140deg, rgba(30,27,75,.62) 0%, rgba(49,46,129,.38) 100%);
            box-shadow: 0 0 0 1px rgba(139,92,246,.22), 0 8px 20px -8px rgba(139,92,246,.35);
        }
        .opt-strike-select-btn:disabled {
            opacity: .5;
            cursor: not-allowed;
        }
        .opt-strike-select-text {
            flex: 1 1 auto;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .opt-strike-select-chevron {
            flex-shrink: 0;
            width: 14px;
            height: 14px;
            color: #a78bfa;
            transition: transform .2s ease;
        }
        .opt-strike-select-chevron.is-flip { transform: rotate(180deg); }
        .opt-strike-select-panel {
            position: absolute;
            top: calc(100% + .35rem);
            right: 0;
            left: 0;
            z-index: 70;
            max-height: 220px;
            overflow-y: auto;
            padding: .35rem;
            border-radius: .75rem;
            background: linear-gradient(145deg, rgba(17,24,39,.98), rgba(15,23,42,.99));
            border: 1px solid rgba(167,139,250,.32);
            box-shadow: 0 20px 44px rgba(0,0,0,.55), 0 0 0 1px rgba(139,92,246,.12);
            scrollbar-width: thin;
            scrollbar-color: rgba(167,139,250,.45) transparent;
        }
        .opt-strike-select-panel::-webkit-scrollbar { width: 5px; }
        .opt-strike-select-panel::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, rgba(167,139,250,.55), rgba(139,92,246,.45));
            border-radius: 999px;
        }
        .opt-strike-select-option {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .45rem;
            width: 100%;
            padding: .5rem .6rem;
            border-radius: .55rem;
            border: 1px solid transparent;
            background: transparent;
            color: #e2e8f0;
            font-size: .66rem;
            font-weight: 600;
            font-family: 'Vazirmatn', sans-serif;
            text-align: right;
            cursor: pointer;
            transition: background .14s ease, color .14s ease, border-color .14s ease;
        }
        .opt-strike-select-option:hover {
            background: rgba(167,139,250,.14);
            color: #f8fafc;
        }
        .opt-strike-select-option.is-active {
            background: linear-gradient(135deg, rgba(139,92,246,.28), rgba(99,102,241,.16));
            color: #ddd6fe;
            border-color: rgba(167,139,250,.38);
        }
        .opt-strike-select-check {
            flex-shrink: 0;
            width: 13px;
            height: 13px;
            color: #c4b5fd;
        }
        .opt-strike-chart-wrap {
            position: relative;
            flex: 1 1 auto;
            min-height: 200px;
            height: 220px;
            z-index: 1;
            min-width: 0;
            max-width: 100%;
            overflow: hidden;
        }
        @media (min-width: 640px) { .opt-strike-chart-wrap { height: 240px; min-height: 220px; } }
        .opt-strike-foot {
            display: flex;
            flex-direction: column;
            gap: .5rem;
            margin-top: auto;
            padding-top: .75rem;
            border-top: 1px dashed rgba(167,139,250,.18);
            position: relative;
            z-index: 1;
        }
        .opt-strike-foot-summary {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: .4rem;
        }
        @media (max-width: 480px) { .opt-strike-foot-summary { grid-template-columns: 1fr; } }
        .opt-strike-stat {
            padding: .45rem .55rem;
            border-radius: .65rem;
            background: linear-gradient(140deg, rgba(15,23,42,.5) 0%, rgba(15,23,42,.22) 100%);
            border: 1px solid rgba(167,139,250,.16);
            display: flex;
            flex-direction: column;
            gap: .1rem;
            min-width: 0;
        }
        .opt-strike-stat-label { font-size: .56rem; color: #64748b; font-weight: 600; }
        .opt-strike-stat-val { font-size: .72rem; font-weight: 800; color: #e2e8f0; line-height: 1.2; }
        .opt-strike-stat-val--call { color: #6ee7b7; }
        .opt-strike-stat-val--put { color: #fda4af; }
        .opt-strike-stat-val--gold { color: #fcd34d; }
        .opt-strike-foot-tops {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: .4rem;
        }
        @media (max-width: 480px) { .opt-strike-foot-tops { grid-template-columns: 1fr; } }
        .opt-strike-top-item {
            padding: .4rem .5rem;
            border-radius: .6rem;
            border: 1px solid rgba(167,139,250,.18);
            background: rgba(15,23,42,.35);
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            grid-template-areas: "strike pct" "oi pct";
            gap: .1rem .35rem;
            align-items: baseline;
            min-width: 0;
        }
        .opt-strike-top-strike {
            grid-area: strike;
            font-size: .66rem;
            font-weight: 800;
            color: #c4b5fd;
            direction: ltr;
            text-align: right;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .opt-strike-top-oi {
            grid-area: oi;
            font-size: .56rem;
            font-weight: 600;
            color: #94a3b8;
            direction: ltr;
            text-align: right;
        }
        .opt-strike-top-pct {
            grid-area: pct;
            font-size: .52rem;
            font-weight: 700;
            color: #94a3b8;
            padding: .12rem .3rem;
            border-radius: .3rem;
            background: rgba(148,163,184,.1);
            direction: ltr;
            white-space: nowrap;
        }
        .opt-strike-foot-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: .5rem 1rem;
            font-size: .58rem;
            color: #94a3b8;
        }
        .opt-strike-foot-meta b { font-weight: 700; }
        .opt-strike-foot-max { color: #fcd34d; }
        .opt-iv-card {
            margin-top: 1rem;
            width: 100%;
        }
        .opt-iv-intro {
            font-size: .64rem;
            line-height: 1.65;
            color: #94a3b8;
            margin: -.35rem 0 .45rem;
            position: relative;
            z-index: 1;
        }
        .opt-iv-context {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: .4rem .65rem;
            margin-bottom: .6rem;
            position: relative;
            z-index: 1;
        }
        .opt-iv-pill {
            display: inline-flex;
            align-items: center;
            padding: .28rem .6rem;
            border-radius: 999px;
            font-size: .6rem;
            font-weight: 700;
            color: #67e8f9;
            background: rgba(34,211,238,.1);
            border: 1px solid rgba(103,232,249,.28);
            direction: ltr;
        }
        .opt-iv-hint {
            font-size: .56rem;
            color: #64748b;
        }
        .opt-iv-chart-wrap {
            position: relative;
            width: 100%;
            height: clamp(220px, 42vw, 320px);
            min-height: 220px;
            max-height: 320px;
            z-index: 1;
        }
        .opt-iv-chart-wrap canvas {
            width: 100% !important;
            height: 100% !important;
            display: block;
        }
        .opt-iv-empty {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: .35rem;
            padding: 1rem;
            text-align: center;
            border-radius: .75rem;
            background: rgba(15,23,42,.55);
            border: 1px dashed rgba(103,232,249,.2);
            color: #94a3b8;
            font-size: .64rem;
            line-height: 1.6;
            pointer-events: none;
        }
        .opt-iv-foot {
            display: flex;
            flex-direction: column;
            gap: .5rem;
            margin-top: .75rem;
            padding-top: .75rem;
            border-top: 1px dashed rgba(103,232,249,.18);
            position: relative;
            z-index: 1;
        }
        .opt-iv-foot-summary {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: .4rem;
        }
        @media (max-width: 480px) { .opt-iv-foot-summary { grid-template-columns: 1fr; } }
        .opt-iv-stat {
            padding: .45rem .55rem;
            border-radius: .65rem;
            background: linear-gradient(140deg, rgba(15,23,42,.5) 0%, rgba(15,23,42,.22) 100%);
            border: 1px solid rgba(103,232,249,.16);
            display: flex;
            flex-direction: column;
            gap: .1rem;
            min-width: 0;
        }
        .opt-iv-stat-label { font-size: .56rem; color: #64748b; font-weight: 600; }
        .opt-iv-stat-val { font-size: .72rem; font-weight: 800; color: #e2e8f0; line-height: 1.2; }
        .opt-iv-stat-val--call { color: #6ee7b7; }
        .opt-iv-stat-val--put { color: #fda4af; }
        .opt-iv-stat-val--cyan { color: #67e8f9; }
        .opt-iv-foot-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: .45rem .75rem;
            font-size: .58rem;
            color: #94a3b8;
        }
        .opt-iv-skew-badge {
            display: inline-flex;
            align-items: center;
            padding: .22rem .5rem;
            border-radius: 999px;
            font-size: .56rem;
            font-weight: 700;
            border: 1px solid rgba(103,232,249,.22);
            background: rgba(34,211,238,.08);
            color: #a5f3fc;
        }
        .opt-iv-skew-badge.is-put-heavy {
            border-color: rgba(244,114,182,.32);
            background: rgba(244,114,182,.1);
            color: #fbcfe8;
        }
        .opt-iv-skew-badge.is-call-heavy {
            border-color: rgba(52,211,153,.32);
            background: rgba(52,211,153,.1);
            color: #a7f3d0;
        }
        .opt-iv-foot-note {
            font-size: .56rem;
            line-height: 1.65;
            color: #64748b;
            text-align: center;
            margin: 0;
        }
        .opt-lb-pair {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            margin-top: 1rem;
            align-items: stretch;
        }
        @media (min-width: 768px) { .opt-lb-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; } }
        .opt-lb-card {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        .opt-lb-intro {
            font-size: .64rem;
            line-height: 1.65;
            color: #94a3b8;
            margin: -.35rem 0 .55rem;
            position: relative;
            z-index: 1;
        }
        .opt-lb-list {
            display: flex;
            flex-direction: column;
            gap: .38rem;
            flex: 1 1 auto;
            position: relative;
            z-index: 1;
        }
        button.opt-lb-item {
            width: 100%;
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            grid-template-areas: "rank info val" "rank bar bar";
            gap: .2rem .55rem;
            align-items: center;
            padding: .5rem .55rem;
            border-radius: .7rem;
            border: 1px solid rgba(148,163,184,.12);
            background: linear-gradient(140deg, rgba(15,23,42,.48) 0%, rgba(15,23,42,.2) 100%);
            cursor: pointer;
            text-align: right;
            transition: border-color .18s ease, background .18s ease, transform .15s ease, box-shadow .18s ease;
        }
        button.opt-lb-item:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 18px -10px rgba(0,0,0,.45);
        }
        button.opt-lb-item:active { transform: translateY(0); }
        .opt-lb-card--bases button.opt-lb-item:hover {
            border-color: rgba(251,191,36,.35);
            background: linear-gradient(140deg, rgba(251,191,36,.08) 0%, rgba(15,23,42,.28) 100%);
        }
        .opt-lb-card--gainers button.opt-lb-item:hover {
            border-color: rgba(52,211,153,.35);
            background: linear-gradient(140deg, rgba(52,211,153,.08) 0%, rgba(15,23,42,.28) 100%);
        }
        .opt-lb-rank {
            grid-area: rank;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 1.55rem;
            height: 1.55rem;
            border-radius: 999px;
            font-size: .62rem;
            font-weight: 800;
            color: #94a3b8;
            background: rgba(148,163,184,.12);
            border: 1px solid rgba(148,163,184,.2);
            flex-shrink: 0;
        }
        .opt-lb-rank--1 { color: #fcd34d; background: rgba(251,191,36,.16); border-color: rgba(251,191,36,.38); }
        .opt-lb-rank--2 { color: #e2e8f0; background: rgba(148,163,184,.18); border-color: rgba(203,213,225,.32); }
        .opt-lb-rank--3 { color: #fdba74; background: rgba(251,146,60,.14); border-color: rgba(251,146,60,.32); }
        .opt-lb-info {
            grid-area: info;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: .12rem;
        }
        .opt-lb-title {
            font-size: .72rem;
            font-weight: 800;
            color: #f1f5f9;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .opt-lb-card--bases .opt-lb-title { color: #fcd34d; }
        .opt-lb-card--gainers .opt-lb-title { color: #93c5fd; direction: ltr; text-align: right; }
        .opt-lb-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: .25rem .35rem;
            font-size: .56rem;
            color: #64748b;
        }
        .opt-lb-val {
            grid-area: val;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: .08rem;
            flex-shrink: 0;
        }
        .opt-lb-val-main {
            font-size: .72rem;
            font-weight: 800;
            line-height: 1.1;
            direction: ltr;
        }
        .opt-lb-card--bases .opt-lb-val-main { color: #fde68a; }
        .opt-lb-card--gainers .opt-lb-val-main { color: #6ee7b7; }
        .opt-lb-val-sub {
            font-size: .54rem;
            color: #64748b;
            direction: ltr;
        }
        .opt-lb-bar-track {
            grid-area: bar;
            height: 4px;
            border-radius: 999px;
            background: rgba(148,163,184,.1);
            overflow: hidden;
        }
        .opt-lb-bar-fill {
            height: 100%;
            border-radius: 999px;
            transition: width .35s ease;
        }
        .opt-lb-card--bases .opt-lb-bar-fill {
            background: linear-gradient(90deg, rgba(251,191,36,.55), rgba(245,158,11,.85));
        }
        .opt-lb-card--gainers .opt-lb-bar-fill {
            background: linear-gradient(90deg, rgba(52,211,153,.55), rgba(16,185,129,.9));
        }
        .opt-lb-empty {
            padding: 1.5rem 1rem;
            text-align: center;
            font-size: .64rem;
            color: #64748b;
            border-radius: .75rem;
            border: 1px dashed rgba(148,163,184,.2);
            background: rgba(15,23,42,.35);
        }
        .opt-lb-foot {
            display: flex;
            flex-direction: column;
            gap: .45rem;
            margin-top: .75rem;
            padding-top: .75rem;
            border-top: 1px dashed rgba(148,163,184,.18);
            position: relative;
            z-index: 1;
        }
        .opt-lb-foot-summary {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: .4rem;
        }
        @media (max-width: 420px) { .opt-lb-foot-summary { grid-template-columns: 1fr; } }
        .opt-lb-stat {
            padding: .42rem .52rem;
            border-radius: .6rem;
            background: linear-gradient(140deg, rgba(15,23,42,.5) 0%, rgba(15,23,42,.22) 100%);
            border: 1px solid rgba(148,163,184,.14);
            display: flex;
            flex-direction: column;
            gap: .08rem;
            min-width: 0;
        }
        .opt-lb-stat-label { font-size: .54rem; color: #64748b; font-weight: 600; }
        .opt-lb-stat-val { font-size: .7rem; font-weight: 800; color: #e2e8f0; line-height: 1.2; }
        .opt-lb-foot-note {
            font-size: .56rem;
            line-height: 1.6;
            color: #64748b;
            text-align: center;
            margin: 0;
        }
        /* ========= زنجیره قراردادها ========= */
        .opt-chain-panel { background: transparent; border: none; padding: 0; box-shadow: none; }
        .opt-chain-shell { display: flex; flex-direction: column; gap: 1rem; }
        .opt-chain-hero { overflow: visible; }
        .opt-chain-intro {
            font-size: .64rem;
            line-height: 1.65;
            color: #94a3b8;
            margin: -.35rem 0 .55rem;
            position: relative;
            z-index: 1;
        }
        .opt-chain-kpis {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: .4rem;
            position: relative;
            z-index: 1;
        }
        @media (min-width: 640px) { .opt-chain-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
        .opt-chain-kpi {
            padding: .45rem .55rem;
            border-radius: .65rem;
            background: linear-gradient(140deg, rgba(15,23,42,.5) 0%, rgba(15,23,42,.22) 100%);
            border: 1px solid rgba(167,139,250,.16);
            display: flex;
            flex-direction: column;
            gap: .08rem;
            min-width: 0;
        }
        .opt-chain-kpi-label { font-size: .54rem; color: #64748b; font-weight: 600; }
        .opt-chain-kpi-val { font-size: .72rem; font-weight: 800; color: #e2e8f0; line-height: 1.2; }
        .opt-chain-kpi-val--call { color: #6ee7b7; }
        .opt-chain-kpi-val--put { color: #fda4af; }
        .opt-chain-filters {
            position: relative;
            padding: 1rem 1.1rem 1.15rem;
            border-radius: 1.25rem;
            background: linear-gradient(160deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.85) 100%);
            border: 1px solid rgba(255,255,255,.07);
            overflow: visible;
        }
        @media (min-width: 640px) { .opt-chain-filters { padding: 1.2rem 1.25rem 1.3rem; } }
        .opt-chain-search-wrap {
            position: relative;
            margin-bottom: .65rem;
        }
        .opt-chain-search {
            width: 100%;
            padding: .55rem 2.2rem .55rem .75rem;
            border-radius: .75rem;
            background: linear-gradient(140deg, rgba(15,23,42,.72) 0%, rgba(30,27,75,.45) 100%);
            border: 1px solid rgba(167,139,250,.28);
            color: #e2e8f0;
            font-size: .72rem;
            font-weight: 600;
            font-family: 'Vazirmatn', sans-serif;
            transition: border-color .18s ease, box-shadow .18s ease;
        }
        .opt-chain-search:focus {
            outline: none;
            border-color: rgba(196,181,253,.55);
            box-shadow: 0 0 0 3px rgba(139,92,246,.18);
        }
        .opt-chain-search::placeholder { color: #64748b; font-weight: 500; }
        .opt-chain-search-icon {
            position: absolute;
            left: .7rem;
            top: 50%;
            transform: translateY(-50%);
            width: 16px;
            height: 16px;
            color: #a78bfa;
            pointer-events: none;
        }
        .opt-chain-toolbar {
            display: grid;
            grid-template-columns: 1fr;
            gap: .45rem;
            margin-bottom: .55rem;
        }
        @media (min-width: 640px) { .opt-chain-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
        @media (min-width: 1024px) { .opt-chain-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
        .opt-chain-dd {
            display: flex;
            flex-direction: column;
            gap: .25rem;
            min-width: 0;
            position: relative;
        }
        .opt-chain-dd.is-open { z-index: 70; }
        .opt-chain-dd-label {
            font-size: .56rem;
            font-weight: 700;
            color: #64748b;
        }
        .opt-chain-dd-btn {
            display: flex;
            align-items: center;
            gap: .4rem;
            width: 100%;
            padding: .48rem .55rem .48rem .65rem;
            border-radius: .65rem;
            background: linear-gradient(140deg, rgba(15,23,42,.72) 0%, rgba(30,27,75,.45) 100%);
            border: 1px solid rgba(167,139,250,.28);
            color: #e2e8f0;
            font-size: .68rem;
            font-weight: 700;
            font-family: 'Vazirmatn', sans-serif;
            cursor: pointer;
            text-align: right;
            transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
        }
        .opt-chain-dd-btn:hover {
            border-color: rgba(196,181,253,.45);
        }
        .opt-chain-dd-btn.is-open {
            border-color: rgba(196,181,253,.55);
            box-shadow: 0 0 0 1px rgba(139,92,246,.22);
        }
        .opt-chain-dd-btn:disabled { opacity: .5; cursor: not-allowed; }
        .opt-chain-dd-text {
            flex: 1 1 auto;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .opt-chain-dd-chevron {
            flex-shrink: 0;
            width: 14px;
            height: 14px;
            color: #a78bfa;
            transition: transform .2s ease;
        }
        .opt-chain-dd-chevron.is-flip { transform: rotate(180deg); }
        .opt-chain-dd-panel {
            position: absolute;
            top: calc(100% + .3rem);
            right: 0;
            left: 0;
            z-index: 80;
            max-height: 220px;
            overflow-y: auto;
            padding: .35rem;
            border-radius: .75rem;
            background: linear-gradient(145deg, rgba(17,24,39,.98), rgba(15,23,42,.99));
            border: 1px solid rgba(167,139,250,.32);
            box-shadow: 0 20px 44px rgba(0,0,0,.55);
            scrollbar-width: thin;
            scrollbar-color: rgba(167,139,250,.45) transparent;
        }
        .opt-chain-dd-option {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .45rem;
            width: 100%;
            padding: .48rem .58rem;
            border-radius: .55rem;
            border: 1px solid transparent;
            background: transparent;
            color: #e2e8f0;
            font-size: .66rem;
            font-weight: 600;
            font-family: 'Vazirmatn', sans-serif;
            text-align: right;
            cursor: pointer;
            transition: background .14s ease, color .14s ease, border-color .14s ease;
        }
        .opt-chain-dd-option:hover { background: rgba(167,139,250,.14); color: #f8fafc; }
        .opt-chain-dd-option.is-active {
            background: linear-gradient(135deg, rgba(139,92,246,.28), rgba(99,102,241,.16));
            color: #ddd6fe;
            border-color: rgba(167,139,250,.38);
        }
        .opt-chain-dd-check { width: 13px; height: 13px; color: #c4b5fd; flex-shrink: 0; }
        .opt-chain-chips {
            display: flex;
            flex-wrap: wrap;
            gap: .4rem;
            margin-top: .45rem;
        }
        .opt-chain-chip {
            display: inline-flex;
            align-items: center;
            gap: .3rem;
            padding: .32rem .65rem;
            border-radius: 999px;
            font-size: .64rem;
            font-weight: 700;
            background: rgba(15,23,42,.55);
            border: 1px solid rgba(148,163,184,.22);
            color: #cbd5e1;
            cursor: pointer;
            transition: all .18s ease;
        }
        .opt-chain-chip:hover { border-color: rgba(167,139,250,.4); color: #f1f5f9; }
        .opt-chain-chip.is-active {
            background: linear-gradient(135deg, rgba(139,92,246,.24), rgba(99,102,241,.14));
            border-color: rgba(167,139,250,.42);
            color: #ddd6fe;
        }
        .opt-chain-chip.is-call.is-active {
            background: linear-gradient(135deg, rgba(52,211,153,.22), rgba(16,185,129,.12));
            border-color: rgba(52,211,153,.38);
            color: #a7f3d0;
        }
        .opt-chain-chip.is-put.is-active {
            background: linear-gradient(135deg, rgba(244,114,182,.22), rgba(244,63,94,.12));
            border-color: rgba(244,114,182,.38);
            color: #fbcfe8;
        }
        .opt-chain-chip-clear { color: #fda4af; border-color: rgba(248,113,113,.35); }
        .opt-chain-viewbar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: .55rem;
            padding: .55rem .65rem;
            border-radius: 1rem;
            background: rgba(15,23,42,.45);
            border: 1px solid rgba(148,163,184,.12);
        }
        .opt-chain-seg {
            display: inline-flex;
            padding: .22rem;
            border-radius: .75rem;
            background: rgba(15,23,42,.55);
            border: 1px solid rgba(148,163,184,.16);
            gap: .2rem;
        }
        .opt-chain-seg-btn {
            padding: .4rem .75rem;
            border-radius: .6rem;
            font-size: .66rem;
            font-weight: 700;
            color: #94a3b8;
            background: transparent;
            border: 1px solid transparent;
            cursor: pointer;
            transition: all .18s ease;
            white-space: nowrap;
        }
        .opt-chain-seg-btn.is-active {
            color: #e2e8f0;
            background: linear-gradient(135deg, rgba(139,92,246,.3), rgba(99,102,241,.18));
            border-color: rgba(167,139,250,.35);
        }
        .opt-chain-matrix-tools {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: .45rem;
        }
        .opt-chain-matrix-tools .opt-chain-dd { min-width: 140px; }
        .opt-chain-body {
            position: relative;
            padding: .85rem .9rem 1rem;
            border-radius: 1.25rem;
            background: linear-gradient(160deg, rgba(15,23,42,.5) 0%, rgba(15,23,42,.82) 100%);
            border: 1px solid rgba(255,255,255,.06);
        }
        @media (min-width: 640px) { .opt-chain-body { padding: 1rem 1.1rem 1.15rem; } }
        .opt-chain-matrix-head {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: .35rem;
            margin-bottom: .55rem;
            font-size: .62rem;
            font-weight: 800;
            text-align: center;
        }
        .opt-chain-matrix-head-call { color: #6ee7b7; }
        .opt-chain-matrix-head-strike { color: #fcd34d; }
        .opt-chain-matrix-head-put { color: #f9a8d4; }
        .opt-chain-matrix-empty {
            text-align: center;
            padding: 2rem 1rem;
            font-size: .68rem;
            color: #64748b;
            border-radius: .75rem;
            border: 1px dashed rgba(148,163,184,.2);
            background: rgba(15,23,42,.35);
        }
        .so-matrix-table thead th {
            font-size: .58rem;
            padding: .45rem .35rem;
        }
        .so-matrix-table .opt-matrix-strike {
            font-weight: 800;
            font-size: .72rem;
        }
        .opt-chain-mc {
            padding: .65rem .7rem;
            border-radius: .85rem;
            background: linear-gradient(140deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.28) 100%);
            border: 1px solid rgba(148,163,184,.14);
            cursor: pointer;
            transition: border-color .18s ease, background .18s ease, transform .15s ease;
        }
        .opt-chain-mc:hover {
            border-color: rgba(167,139,250,.32);
            background: rgba(139,92,246,.06);
            transform: translateY(-1px);
        }
        .opt-chain-mc.is-locked { opacity: .55; }
        .opt-chain-pager {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: .55rem;
            padding: .65rem .75rem;
            border-radius: 1rem;
            background: rgba(15,23,42,.45);
            border: 1px solid rgba(148,163,184,.12);
        }
        .opt-chain-pager-info { font-size: .64rem; color: #94a3b8; }
        .opt-chain-pager-btns { display: flex; align-items: center; gap: .4rem; }
        .opt-chain-pager-btn {
            padding: .4rem .75rem;
            border-radius: .6rem;
            font-size: .66rem;
            font-weight: 700;
            color: #cbd5e1;
            background: rgba(15,23,42,.6);
            border: 1px solid rgba(148,163,184,.22);
            cursor: pointer;
            transition: all .18s ease;
        }
        .opt-chain-pager-btn:hover:not(:disabled) {
            border-color: rgba(167,139,250,.4);
            color: #f1f5f9;
        }
        .opt-chain-pager-btn:disabled { opacity: .4; cursor: not-allowed; }
        /* ========= کتابخانه استراتژی ========= */
        .opt-strat-lib-shell { display: flex; flex-direction: column; gap: 1rem; }
        .opt-strat-lib-hero { overflow: visible; }
        .opt-strat-lib-intro {
            font-size: .64rem;
            line-height: 1.65;
            color: #94a3b8;
            margin: -.35rem 0 .55rem;
            position: relative;
            z-index: 1;
        }
        .opt-strat-lib-kpis {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: .4rem;
            position: relative;
            z-index: 1;
        }
        @media (min-width: 640px) { .opt-strat-lib-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
        .opt-strat-lib-kpi {
            padding: .45rem .55rem;
            border-radius: .65rem;
            background: linear-gradient(140deg, rgba(15,23,42,.5) 0%, rgba(15,23,42,.22) 100%);
            border: 1px solid rgba(167,139,250,.16);
            display: flex;
            flex-direction: column;
            gap: .08rem;
            min-width: 0;
        }
        .opt-strat-lib-kpi-label { font-size: .54rem; color: #64748b; font-weight: 600; }
        .opt-strat-lib-kpi-val { font-size: .72rem; font-weight: 800; color: #e2e8f0; line-height: 1.2; }
        .opt-strat-lib-filters {
            padding: 1rem 1.1rem 1.15rem;
            border-radius: 1.25rem;
            background: linear-gradient(160deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.85) 100%);
            border: 1px solid rgba(255,255,255,.07);
        }
        @media (min-width: 640px) { .opt-strat-lib-filters { padding: 1.2rem 1.25rem 1.3rem; } }
        .opt-strat-lib-search-wrap { position: relative; margin-bottom: .65rem; }
        .opt-strat-lib-search {
            width: 100%;
            padding: .55rem 2.2rem .55rem .75rem;
            border-radius: .75rem;
            background: linear-gradient(140deg, rgba(15,23,42,.72) 0%, rgba(30,27,75,.45) 100%);
            border: 1px solid rgba(167,139,250,.28);
            color: #e2e8f0;
            font-size: .72rem;
            font-weight: 600;
            font-family: 'Vazirmatn', sans-serif;
            transition: border-color .18s ease, box-shadow .18s ease;
        }
        .opt-strat-lib-search:focus {
            outline: none;
            border-color: rgba(196,181,253,.55);
            box-shadow: 0 0 0 3px rgba(139,92,246,.18);
        }
        .opt-strat-lib-search::placeholder { color: #64748b; font-weight: 500; }
        .opt-strat-lib-search-icon {
            position: absolute;
            left: .7rem;
            top: 50%;
            transform: translateY(-50%);
            width: 16px;
            height: 16px;
            color: #a78bfa;
            pointer-events: none;
        }
        .opt-strat-lib-cats {
            display: flex;
            flex-wrap: wrap;
            gap: .4rem;
        }
        .opt-strat-lib-cat {
            display: inline-flex;
            align-items: center;
            gap: .3rem;
            padding: .35rem .7rem;
            border-radius: 999px;
            font-size: .64rem;
            font-weight: 700;
            background: rgba(15,23,42,.55);
            border: 1px solid rgba(148,163,184,.22);
            color: #94a3b8;
            cursor: pointer;
            transition: all .18s ease;
        }
        .opt-strat-lib-cat:hover { border-color: rgba(167,139,250,.4); color: #e2e8f0; }
        .opt-strat-lib-cat.is-active {
            background: linear-gradient(135deg, rgba(139,92,246,.26), rgba(99,102,241,.14));
            border-color: rgba(167,139,250,.42);
            color: #ddd6fe;
        }
        .opt-strat-lib-cat-count {
            font-size: .54rem;
            font-weight: 800;
            padding: .08rem .32rem;
            border-radius: 999px;
            background: rgba(148,163,184,.12);
            color: #94a3b8;
            direction: ltr;
        }
        .opt-strat-lib-cat.is-active .opt-strat-lib-cat-count {
            background: rgba(167,139,250,.2);
            color: #c4b5fd;
        }
        .opt-strat-lib-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: .85rem;
        }
        @media (min-width: 640px) { .opt-strat-lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
        @media (min-width: 1024px) { .opt-strat-lib-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
        button.opt-strat-lib-card {
            display: flex;
            flex-direction: column;
            gap: .5rem;
            text-align: right;
            width: 100%;
            padding: 1rem 1.05rem;
            border-radius: 1.1rem;
            background: linear-gradient(160deg, rgba(15,23,42,.58) 0%, rgba(15,23,42,.32) 100%);
            border: 1px solid rgba(167,139,250,.18);
            cursor: pointer;
            transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
            position: relative;
            overflow: hidden;
        }
        button.opt-strat-lib-card::before {
            content: "";
            position: absolute;
            top: -40%;
            right: -25%;
            width: 55%;
            height: 90%;
            background: radial-gradient(closest-side, rgba(139,92,246,.14), transparent 70%);
            pointer-events: none;
            opacity: 0;
            transition: opacity .25s ease;
        }
        button.opt-strat-lib-card:hover {
            transform: translateY(-3px);
            border-color: rgba(196,181,253,.45);
            box-shadow: 0 16px 36px -18px rgba(139,92,246,.55);
        }
        button.opt-strat-lib-card:hover::before { opacity: 1; }
        button.opt-strat-lib-card.is-risk-low:hover { border-color: rgba(52,211,153,.4); }
        button.opt-strat-lib-card.is-risk-high:hover,
        button.opt-strat-lib-card.is-risk-unlimited:hover { border-color: rgba(244,114,182,.4); }
        .opt-strat-lib-card-head {
            display: flex;
            align-items: center;
            gap: .45rem;
            position: relative;
            z-index: 1;
        }
        .opt-strat-lib-card-cat {
            font-size: .56rem;
            font-weight: 700;
            padding: .18rem .45rem;
            border-radius: 999px;
            background: rgba(139,92,246,.14);
            border: 1px solid rgba(167,139,250,.28);
            color: #c4b5fd;
        }
        .opt-strat-lib-name {
            font-size: .88rem;
            font-weight: 800;
            color: #f1f5f9;
            line-height: 1.35;
            position: relative;
            z-index: 1;
        }
        .opt-strat-lib-en {
            font-size: .58rem;
            color: #64748b;
            letter-spacing: .02em;
            direction: ltr;
            text-align: right;
            position: relative;
            z-index: 1;
        }
        .opt-strat-lib-headline {
            font-size: .64rem;
            line-height: 1.6;
            color: #94a3b8;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            min-height: 2em;
            position: relative;
            z-index: 1;
        }
        .opt-strat-lib-spark-wrap {
            position: relative;
            z-index: 1;
            height: 44px;
            padding: .35rem .45rem;
            border-radius: .65rem;
            background: rgba(15,23,42,.45);
            border: 1px solid rgba(148,163,184,.1);
        }
        .opt-strat-lib-spark {
            width: 100%;
            height: 100%;
            display: block;
        }
        .opt-strat-lib-meta {
            display: flex;
            flex-wrap: wrap;
            gap: .3rem;
            position: relative;
            z-index: 1;
        }
        .opt-strat-lib-cta {
            display: inline-flex;
            align-items: center;
            justify-content: space-between;
            gap: .35rem;
            margin-top: auto;
            padding-top: .55rem;
            border-top: 1px dashed rgba(167,139,250,.16);
            font-size: .68rem;
            font-weight: 800;
            color: #a5b4fc;
            position: relative;
            z-index: 1;
        }
        button.opt-strat-lib-card:hover .opt-strat-lib-cta { color: #ddd6fe; }
        .opt-strat-lib-empty {
            padding: 2rem 1rem;
            text-align: center;
            font-size: .68rem;
            color: #64748b;
            border-radius: 1rem;
            border: 1px dashed rgba(148,163,184,.2);
            background: rgba(15,23,42,.35);
        }
        /* ========= صفحه جزئیات استراتژی (لیست قرارداد) ========= */
        .opt-strat-detail-shell {
            display: flex; flex-direction: column; gap: 1rem;
            min-width: 0; max-width: 100%; overflow-x: clip;
        }
        .opt-strat-detail-topbar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: .55rem;
        }
        button.opt-strat-detail-back {
            display: inline-flex;
            align-items: center;
            gap: .45rem;
            padding: .45rem .8rem;
            border-radius: .7rem;
            font-size: .68rem;
            font-weight: 700;
            color: #cbd5e1;
            background: rgba(15,23,42,.55);
            border: 1px solid rgba(167,139,250,.22);
            cursor: pointer;
            transition: all .18s ease;
        }
        button.opt-strat-detail-back:hover {
            border-color: rgba(196,181,253,.45);
            color: #f1f5f9;
            background: rgba(139,92,246,.1);
        }
        .opt-strat-detail-crumb {
            display: inline-flex;
            align-items: center;
            gap: .35rem;
            padding: .38rem .7rem;
            border-radius: 999px;
            font-size: .62rem;
            background: rgba(15,23,42,.5);
            border: 1px solid rgba(167,139,250,.18);
            color: #94a3b8;
        }
        .opt-strat-detail-crumb-name { color: #c4b5fd; font-weight: 800; }
        /* Hero جزئیات — بدون hover/shadow کارت‌های نمودار */
        .opt-strat-detail-hero {
            position: relative;
            padding: 1rem 1.05rem 1.1rem;
            border-radius: 1rem;
            background: rgba(15, 23, 42, 0.78);
            border: 1px solid rgba(148, 163, 184, 0.14);
            overflow: hidden;
        }
        @media (min-width: 640px) { .opt-strat-detail-hero { padding: 1.15rem 1.25rem 1.2rem; } }
        .opt-strat-detail-hero-head {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            justify-content: space-between;
            gap: .55rem .75rem;
            margin-bottom: .85rem;
            padding-bottom: .8rem;
            border-bottom: 1px solid rgba(148, 163, 184, 0.1);
        }
        .opt-strat-detail-hero-title { flex: 1 1 180px; min-width: 0; }
        .opt-strat-detail-name {
            font-size: .95rem;
            font-weight: 800;
            color: #f1f5f9;
            line-height: 1.35;
            margin: 0;
        }
        .opt-strat-detail-en {
            font-size: .62rem;
            color: #64748b;
            letter-spacing: .02em;
            direction: ltr;
            text-align: right;
            margin: .15rem 0 0;
        }
        .opt-strat-detail-hero-badges {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            gap: .35rem;
            flex-shrink: 0;
        }
        .opt-strat-detail-badge {
            display: inline-flex;
            align-items: center;
            padding: .28rem .6rem;
            border-radius: 999px;
            font-size: .6rem;
            font-weight: 700;
            white-space: nowrap;
            font-variant-numeric: tabular-nums;
        }
        .opt-strat-detail-badge--cat {
            color: #c4b5fd;
            background: rgba(139, 92, 246, 0.14);
            border: 1px solid rgba(167, 139, 250, 0.28);
        }
        .opt-strat-detail-badge--count {
            color: #94a3b8;
            background: rgba(15, 23, 42, 0.55);
            border: 1px solid rgba(148, 163, 184, 0.16);
        }
        .opt-strat-detail-body {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            align-items: stretch;
        }
        .opt-strat-detail-about {
            display: flex;
            flex-direction: column;
            gap: .5rem;
            margin-bottom: .85rem;
        }
        .opt-strat-detail-lead {
            font-size: .72rem;
            font-weight: 700;
            line-height: 1.65;
            color: #e2e8f0;
            margin: 0;
        }
        .opt-strat-detail-text {
            font-size: .64rem;
            line-height: 1.75;
            color: #94a3b8;
            margin: 0;
        }
        .opt-strat-detail-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: .35rem;
        }
        .opt-strat-detail-structure {
            margin-bottom: .75rem;
            border-radius: .72rem;
            border: 1px solid rgba(148, 163, 184, 0.12);
            background: rgba(15, 23, 42, 0.4);
            overflow: hidden;
        }
        .opt-strat-detail-structure-head {
            padding: .42rem .65rem;
            font-size: .58rem;
            font-weight: 800;
            color: #64748b;
            letter-spacing: .02em;
            border-bottom: 1px solid rgba(148, 163, 184, 0.1);
            background: rgba(15, 23, 42, 0.35);
        }
        .opt-strat-detail-structure-body {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0;
        }
        @media (min-width: 768px) {
            .opt-strat-detail-structure-body {
                grid-template-columns: minmax(0, 1fr) minmax(120px, 22%);
                align-items: stretch;
            }
            .opt-strat-detail-structure-body.is-no-spark { grid-template-columns: 1fr; }
        }
        .opt-strat-detail-spark-wrap {
            padding: .55rem .65rem;
            min-height: 64px;
            display: flex;
            align-items: center;
            border-top: 1px solid rgba(148, 163, 184, 0.1);
        }
        @media (min-width: 768px) {
            .opt-strat-detail-spark-wrap {
                min-height: 100%;
                border-top: none;
                border-inline-start: 1px solid rgba(148, 163, 184, 0.1);
            }
            .opt-strat-detail-structure-body.is-no-spark .opt-strat-detail-spark-wrap { display: none; }
        }
        .opt-strat-detail-spark { width: 100%; height: 52px; display: block; }
        .opt-strat-detail-legs-wrap {
            padding: .55rem .65rem .6rem;
            display: flex;
            flex-direction: column;
            gap: .35rem;
            min-width: 0;
        }
        .opt-strat-detail-legs {
            display: flex;
            flex-wrap: wrap;
            gap: .3rem;
            margin: 0;
            padding: 0;
            list-style: none;
        }
        .opt-strat-detail-structure .opt-strat-detail-legs {
            flex-direction: column;
            flex-wrap: nowrap;
            gap: .28rem;
        }
        .opt-strat-detail-leg {
            display: inline-flex;
            align-items: center;
            gap: .4rem;
            font-size: .62rem;
            font-weight: 600;
            padding: .38rem .55rem;
            border-radius: .5rem;
            background: rgba(139, 92, 246, 0.08);
            border: 1px solid rgba(167, 139, 250, 0.16);
            color: #ddd6fe;
        }
        .opt-strat-detail-structure .opt-strat-detail-leg {
            display: flex;
            direction: ltr;
            text-align: left;
            font-variant-numeric: tabular-nums;
        }
        .opt-strat-detail-structure .opt-strat-detail-leg::before {
            content: '';
            flex-shrink: 0;
            width: 5px;
            height: 5px;
            border-radius: 999px;
            background: #a78bfa;
        }
        .opt-strat-detail-legs-empty {
            font-size: .6rem;
            line-height: 1.6;
            color: #64748b;
            margin: 0;
        }
        .opt-strat-detail-kpis {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            border-radius: .72rem;
            border: 1px solid rgba(148, 163, 184, 0.12);
            background: rgba(15, 23, 42, 0.35);
            overflow: hidden;
        }
        @media (min-width: 640px) { .opt-strat-detail-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
        .opt-strat-detail-kpi {
            padding: .55rem .65rem;
            display: flex;
            flex-direction: column;
            gap: .12rem;
            background: transparent;
            border: none;
            border-radius: 0;
            border-top: 1px solid rgba(148, 163, 184, 0.08);
        }
        @media (max-width: 639px) {
            .opt-strat-detail-kpi:nth-child(-n+2) { border-top: none; }
            .opt-strat-detail-kpi:nth-child(even) { border-inline-start: 1px solid rgba(148, 163, 184, 0.08); }
        }
        @media (min-width: 640px) {
            .opt-strat-detail-kpi { border-top: none; }
            .opt-strat-detail-kpi:not(:first-child) { border-inline-start: 1px solid rgba(148, 163, 184, 0.08); }
        }
        .opt-strat-detail-kpi-label { font-size: .54rem; color: #64748b; font-weight: 600; }
        .opt-strat-detail-kpi-val { font-size: .74rem; font-weight: 800; color: #e2e8f0; line-height: 1.2; }
        .opt-strat-detail-picks-title {
            font-size: .72rem;
            font-weight: 800;
            color: #ecfdf5;
            margin: 0 0 .45rem;
        }
        .opt-strat-detail-picks-sub {
            font-size: .58rem;
            color: #6ee7b7;
            opacity: .85;
            margin: -.25rem 0 .5rem;
            line-height: 1.55;
        }
        .opt-strat-detail-picks {
            display: grid;
            grid-template-columns: 1fr;
            gap: .45rem;
        }
        @media (min-width: 640px) {
            .opt-strat-detail-picks { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
        }
        button.opt-strat-detail-pick {
            display: flex;
            flex-direction: column;
            gap: .35rem;
            text-align: right;
            padding: .65rem .7rem;
            border-radius: .85rem;
            background: linear-gradient(140deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.28) 100%);
            border: 1px solid rgba(52,211,153,.22);
            cursor: pointer;
            transition: all .18s ease;
        }
        button.opt-strat-detail-pick:hover {
            transform: translateY(-2px);
            border-color: rgba(52,211,153,.42);
            box-shadow: 0 10px 24px -14px rgba(52,211,153,.45);
        }
        .opt-strat-detail-pick-head {
            display: flex;
            align-items: center;
            gap: .4rem;
        }
        .opt-strat-detail-pick-rank {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 1.35rem;
            height: 1.35rem;
            border-radius: 999px;
            font-size: .58rem;
            font-weight: 800;
            color: #6ee7b7;
            background: rgba(52,211,153,.14);
            border: 1px solid rgba(52,211,153,.32);
        }
        .opt-strat-detail-pick-title { font-size: .62rem; font-weight: 800; color: #a7f3d0; }
        .opt-strat-detail-pick-id {
            font-size: .72rem;
            font-weight: 800;
            color: #93c5fd;
            direction: ltr;
            text-align: right;
        }
        .opt-strat-detail-pick-metric {
            font-size: .58rem;
            line-height: 1.55;
            color: #94a3b8;
        }
        .opt-strat-detail-pick-metric strong { color: #e2e8f0; font-weight: 700; }
        .opt-strat-detail-pick-cta {
            font-size: .58rem;
            font-weight: 700;
            color: #6ee7b7;
            margin-top: auto;
            padding-top: .35rem;
            border-top: 1px dashed rgba(52,211,153,.2);
        }
        .opt-strat-detail-table-card {
            padding: .9rem .95rem 1rem;
            border-radius: 1.25rem;
            background: linear-gradient(160deg, rgba(15,23,42,.5) 0%, rgba(15,23,42,.82) 100%);
            border: 1px solid rgba(255,255,255,.06);
        }
        @media (min-width: 640px) { .opt-strat-detail-table-card { padding: 1rem 1.1rem 1.15rem; } }
        .opt-strat-detail-table-head {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto auto;
            align-items: center;
            gap: .45rem .65rem;
            margin-bottom: .65rem;
        }
        @media (max-width: 639px) {
            .opt-strat-detail-table-head { grid-template-columns: 1fr; }
        }
        .opt-strat-detail-table-title {
            font-size: .82rem;
            font-weight: 800;
            color: #f1f5f9;
            flex: 1 1 auto;
        }
        .opt-strat-detail-table-badge {
            font-size: .6rem;
            font-weight: 700;
            padding: .22rem .55rem;
            border-radius: 999px;
            color: #c4b5fd;
            background: rgba(139,92,246,.14);
            border: 1px solid rgba(167,139,250,.28);
        }
        .opt-strat-detail-liq-seg {
            display: inline-flex;
            padding: .18rem;
            border-radius: .65rem;
            background: rgba(15,23,42,.55);
            border: 1px solid rgba(148,163,184,.16);
            gap: .15rem;
        }
        .opt-strat-detail-liq-btn {
            padding: .32rem .6rem;
            border-radius: .5rem;
            font-size: .6rem;
            font-weight: 700;
            color: #94a3b8;
            background: transparent;
            border: 1px solid transparent;
            cursor: pointer;
            transition: all .15s ease;
        }
        .opt-strat-detail-liq-btn.is-active {
            color: #ddd6fe;
            background: rgba(139,92,246,.24);
            border-color: rgba(167,139,250,.35);
        }
        .opt-strat-detail-search-wrap { position: relative; margin-bottom: .55rem; }
        .opt-strat-detail-search {
            width: 100%;
            padding: .48rem .65rem .48rem 2rem;
            border-radius: .65rem;
            background: rgba(15,23,42,.55);
            border: 1px solid rgba(167,139,250,.22);
            color: #e2e8f0;
            font-size: .66rem;
            font-weight: 600;
            font-family: 'Vazirmatn', sans-serif;
        }
        .opt-strat-detail-search:focus {
            outline: none;
            border-color: rgba(196,181,253,.5);
            box-shadow: 0 0 0 3px rgba(139,92,246,.15);
        }
        .opt-strat-detail-search-icon {
            position: absolute;
            right: .55rem;
            top: 50%;
            transform: translateY(-50%);
            width: 14px;
            height: 14px;
            color: #a78bfa;
            pointer-events: none;
        }
        .opt-strat-detail-filter-hint {
            font-size: .56rem;
            color: #64748b;
            margin: -.35rem 0 .5rem;
        }
        .opt-strat-detail-actions {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: .45rem;
            margin-bottom: .55rem;
            padding: .45rem .6rem;
            border-radius: .65rem;
            border: 1px solid rgba(52,211,153,.28);
            background: rgba(6,78,59,.18);
        }
        .opt-strat-detail-actions-label { font-size: .58rem; font-weight: 700; color: #6ee7b7; flex: 1 1 auto; }
        .opt-strat-detail-actions-btn {
            padding: .32rem .6rem;
            border-radius: .5rem;
            font-size: .56rem;
            font-weight: 700;
            border: 1px solid rgba(52,211,153,.35);
            background: rgba(6,78,59,.35);
            color: #a7f3d0;
            cursor: pointer;
        }
        .opt-strat-detail-actions-btn:hover:not(:disabled) { background: rgba(6,78,59,.5); }
        .opt-strat-detail-actions-btn:disabled { opacity: .45; cursor: not-allowed; }
        .opt-strat-detail-actions-btn.is-ghost {
            border-color: rgba(148,163,184,.2);
            background: transparent;
            color: #94a3b8;
        }
        .opt-strat-detail-pager {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: .45rem;
            margin-top: .65rem;
            padding-top: .65rem;
            border-top: 1px dashed rgba(148,163,184,.15);
        }
        .opt-strat-detail-pager-info { font-size: .58rem; color: #64748b; }
        .opt-strat-detail-pager-btns { display: flex; align-items: center; gap: .35rem; }
        .opt-strat-detail-pager-btn {
            padding: .32rem .6rem;
            border-radius: .5rem;
            font-size: .56rem;
            font-weight: 700;
            color: #cbd5e1;
            background: rgba(15,23,42,.55);
            border: 1px solid rgba(148,163,184,.2);
            cursor: pointer;
        }
        .opt-strat-detail-pager-btn:hover:not(:disabled) { border-color: rgba(167,139,250,.35); color: #e2e8f0; }
        .opt-strat-detail-pager-btn:disabled { opacity: .4; cursor: not-allowed; }
        .opt-strat-detail-compare-cell { width: 2rem; text-align: center; }
        .opt-strat-detail-compare-btn {
            width: 1.15rem; height: 1.15rem;
            border-radius: .3rem;
            border: 1.5px solid rgba(148,163,184,.35);
            background: transparent;
            color: transparent;
            cursor: pointer;
            font-size: .58rem;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .opt-strat-detail-compare-btn.is-on {
            border-color: #34d399;
            background: rgba(52,211,153,.18);
            color: #6ee7b7;
        }
        .so-strat-table-modern tbody tr.is-compare-selected { background: rgba(52,211,153,.08); }
        .so-strat-table-modern tbody tr.is-loaded-contract { box-shadow: inset 3px 0 0 rgba(167,139,250,.75); }
        .opt-strat-detail-mc.is-compare-selected { border-color: rgba(52,211,153,.4); background: rgba(6,78,59,.18); }
        .opt-strat-detail-table-card.opt-chart-card { overflow: visible; }
        @media (max-width: 767px) {
            .opt-strat-detail-table-card.opt-chart-card { overflow: hidden; }
        }
        .opt-strat-detail-cards {
            display: flex;
            flex-direction: column;
            gap: .45rem;
        }
        @media (min-width: 768px) { .opt-strat-detail-cards { display: none; } }
        .opt-strat-detail-mc {
            padding: .6rem .65rem;
            border-radius: .8rem;
            background: linear-gradient(140deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.28) 100%);
            border: 1px solid rgba(148,163,184,.14);
            cursor: pointer;
            transition: border-color .18s ease, background .18s ease;
        }
        .opt-strat-detail-mc:hover {
            border-color: rgba(167,139,250,.32);
            background: rgba(139,92,246,.06);
        }
        .opt-strat-detail-mc-top {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: .35rem;
            margin-bottom: .45rem;
        }
        .opt-strat-detail-mc-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: .35rem .45rem;
        }
        .opt-strat-detail-mc-k { font-size: .54rem; color: #64748b; }
        .opt-strat-detail-mc-v { font-size: .66rem; font-weight: 700; color: #e2e8f0; }
        .opt-strat-detail-table-wrap { display: none; overflow-x: auto; -webkit-overflow-scrolling: touch; }
        @media (min-width: 768px) { .opt-strat-detail-table-wrap { display: block; } }
        .opt-strat-detail-empty {
            padding: 1.75rem 1rem;
            text-align: center;
            font-size: .66rem;
            color: #64748b;
            border-radius: .75rem;
            border: 1px dashed rgba(148,163,184,.2);
            background: rgba(15,23,42,.35);
        }

        /* ── Strategy calculator (step 3) ── */
        .opt-strat-calc-shell {
            display: flex; flex-direction: column; gap: .85rem;
            min-width: 0; max-width: 100%; overflow-x: clip;
        }
        .opt-strat-calc-topbar {
            display: flex; align-items: center; justify-content: space-between; gap: .65rem; flex-wrap: wrap;
            padding: .55rem .75rem;
            border-radius: .85rem;
            border: 1px solid rgba(167,139,250,.22);
            background: linear-gradient(135deg, rgba(30,27,75,.55) 0%, rgba(15,23,42,.75) 100%);
        }
        .opt-strat-calc-back {
            display: inline-flex; align-items: center; gap: .35rem;
            padding: .35rem .65rem; border-radius: .55rem;
            font-size: .62rem; font-weight: 600; color: #c4b5fd;
            border: 1px solid rgba(167,139,250,.25);
            background: rgba(139,92,246,.08);
            cursor: pointer; transition: background .15s, border-color .15s;
        }
        .opt-strat-calc-back:hover { background: rgba(139,92,246,.16); border-color: rgba(167,139,250,.4); }
        .opt-strat-calc-crumb {
            display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .4rem;
            font-size: .58rem; color: #64748b;
            min-width: 0; max-width: 100%;
        }
        .opt-strat-calc-crumb strong { color: #e2e8f0; font-weight: 600; }
        .opt-strat-calc-crumb-seg {
            display: inline-flex; align-items: center; gap: .25rem;
            min-width: 0; max-width: 100%;
        }
        .opt-strat-calc-contract-sep { color: #64748b; opacity: .85; }
        .opt-strat-calc-hero {
            position: relative; overflow: hidden;
            padding: .85rem 1rem;
            border-radius: 1rem;
            border: 1px solid rgba(52,211,153,.28);
            background: linear-gradient(145deg, rgba(6,78,59,.35) 0%, rgba(15,23,42,.85) 55%, rgba(30,27,75,.4) 100%);
        }
        .opt-strat-calc-hero::before {
            content: ''; position: absolute; inset: 0;
            background: radial-gradient(ellipse 70% 80% at 100% 0%, rgba(52,211,153,.12) 0%, transparent 55%);
            pointer-events: none;
        }
        .opt-strat-calc-hero-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: .75rem 1rem; }
        .opt-strat-calc-hero-main { flex: 1 1 200px; min-width: 0; }
        .opt-strat-calc-hero-title { font-size: .95rem; font-weight: 800; color: #ecfdf5; margin-bottom: .25rem; }
        .opt-strat-calc-hero-sub { font-size: .58rem; color: #94a3b8; line-height: 1.45; max-width: 42rem; }
        .opt-strat-calc-contract {
            display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem;
            margin-top: .5rem; padding: .4rem .65rem;
            border-radius: .65rem;
            border: 1px solid rgba(52,211,153,.35);
            background: rgba(6,78,59,.35);
            font-size: .58rem;
            max-width: 100%; box-sizing: border-box;
        }
        .opt-strat-calc-contract-tag {
            padding: .15rem .4rem; border-radius: .35rem;
            font-weight: 700; font-size: .52rem;
        }
        .opt-strat-calc-contract-tag.call { background: rgba(52,211,153,.2); color: #6ee7b7; }
        .opt-strat-calc-contract-tag.put { background: rgba(251,191,36,.2); color: #fcd34d; }
        .opt-strat-calc-kpi-row {
            display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem;
            flex: 0 0 auto; min-width: min(100%, 280px);
        }
        @media (min-width: 640px) { .opt-strat-calc-kpi-row { grid-template-columns: repeat(4, minmax(0, 1fr)); min-width: 320px; } }
        .opt-strat-calc-kpi {
            padding: .45rem .55rem; border-radius: .65rem;
            border: 1px solid rgba(148,163,184,.15);
            background: rgba(15,23,42,.5);
            text-align: center;
        }
        .opt-strat-calc-kpi-l { font-size: .5rem; color: #64748b; margin-bottom: .15rem; }
        .opt-strat-calc-kpi-v { font-size: .72rem; font-weight: 800; }
        .opt-strat-calc-kpi-v.pos { color: #34d399; }
        .opt-strat-calc-kpi-v.neg { color: #f87171; }
        .opt-strat-calc-kpi-v.neu { color: #e2e8f0; }
        .opt-strat-calc-desk {
            display: grid; grid-template-columns: 1fr; gap: .85rem;
            min-width: 0; max-width: 100%;
        }
        @media (min-width: 1024px) {
            .opt-strat-calc-desk { grid-template-columns: minmax(240px, 280px) minmax(0, 1fr); align-items: start; }
        }
        @media (max-width: 1023px) {
            .opt-strat-calc-desk { display: flex; flex-direction: column; }
            .opt-strat-calc-main { order: -1; }
            .opt-strat-calc-rail { order: 1; position: static; top: auto; }
        }
        .opt-strat-calc-rail {
            border-radius: 1rem;
            border: 1px solid rgba(167,139,250,.22);
            background: linear-gradient(180deg, rgba(30,27,75,.45) 0%, rgba(15,23,42,.75) 100%);
            padding: .85rem;
            min-width: 0; max-width: 100%; box-sizing: border-box;
        }
        @media (min-width: 1024px) {
            .opt-strat-calc-rail { position: sticky; top: .5rem; }
        }
        .opt-strat-calc-rail-head {
            display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem;
            padding-bottom: .65rem; border-bottom: 1px dashed rgba(167,139,250,.2);
        }
        .opt-strat-calc-rail-icon {
            width: 1.75rem; height: 1.75rem; border-radius: .5rem;
            display: flex; align-items: center; justify-content: center;
            background: rgba(139,92,246,.15); color: #c4b5fd; font-size: .85rem;
        }
        .opt-strat-calc-rail-title { font-size: .72rem; font-weight: 700; color: #e2e8f0; }
        .opt-strat-calc-rail-sub { font-size: .52rem; color: #64748b; }
        .opt-strat-calc-field { margin-bottom: .65rem; }
        .opt-strat-calc-field label {
            display: block; font-size: .54rem; font-weight: 600; color: #94a3b8; margin-bottom: .25rem;
        }
        .opt-strat-calc-field input,
        .opt-strat-calc-field select {
            width: 100%; padding: .4rem .55rem;
            border-radius: .5rem; font-size: .62rem;
            border: 1px solid rgba(148,163,184,.25);
            background: rgba(15,23,42,.6); color: #e2e8f0;
        }
        .opt-strat-calc-field input:focus,
        .opt-strat-calc-field select:focus {
            outline: none; border-color: rgba(167,139,250,.45);
            box-shadow: 0 0 0 2px rgba(139,92,246,.15);
        }
        .opt-strat-calc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
        .opt-strat-calc-autofill {
            width: 100%; margin-bottom: .65rem; padding: .45rem .65rem;
            border-radius: .55rem; font-size: .58rem; font-weight: 600;
            border: 1px dashed rgba(52,211,153,.4);
            background: rgba(6,78,59,.2); color: #6ee7b7;
            cursor: pointer; transition: background .15s;
        }
        .opt-strat-calc-autofill:hover { background: rgba(6,78,59,.35); }
        .opt-strat-calc-autofill:disabled { opacity: .45; cursor: not-allowed; }
        .opt-strat-calc-section {
            margin-top: .75rem; padding-top: .65rem;
            border-top: 1px dashed rgba(148,163,184,.15);
        }
        .opt-strat-calc-section-title { font-size: .56rem; font-weight: 700; color: #a78bfa; margin-bottom: .5rem; }
        .opt-strat-calc-main { display: flex; flex-direction: column; gap: .85rem; min-width: 0; }
        .opt-strat-calc-payoff {
            position: relative;
            padding: 1rem 1.05rem 1.1rem;
            overflow: hidden;
        }
        .opt-strat-calc-payoff .opt-donut-head,
        .opt-strat-calc-payoff .opt-payoff-intro,
        .opt-strat-calc-payoff .opt-payoff-context,
        .opt-strat-calc-payoff .opt-payoff-legend,
        .opt-strat-calc-payoff .opt-payoff-foot { position: relative; z-index: 1; }
        .opt-payoff-intro {
            font-size: .62rem; line-height: 1.65; color: #94a3b8;
            margin: -.15rem 0 .55rem;
        }
        .opt-payoff-context {
            display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem;
            margin-bottom: .55rem;
        }
        .opt-payoff-pill {
            display: inline-flex; align-items: center; gap: .3rem;
            padding: .22rem .55rem; border-radius: 999px;
            font-size: .54rem; font-weight: 600;
            border: 1px solid rgba(148,163,184,.2);
            background: rgba(15,23,42,.45); color: #cbd5e1;
        }
        .opt-payoff-pill strong { color: #ecfdf5; font-weight: 800; }
        .opt-payoff-pill.is-spot { border-color: rgba(148,163,184,.35); color: #94a3b8; }
        .opt-payoff-pill.is-be { border-color: rgba(52,211,153,.35); background: rgba(6,78,59,.25); color: #6ee7b7; }
        .opt-payoff-pill.is-fees { border-color: rgba(251,191,36,.35); background: rgba(120,53,15,.2); color: #fcd34d; }
        .opt-payoff-toolbar {
            display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
            margin-bottom: .55rem;
        }
        .opt-payoff-toolbar-actions {
            display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0;
        }
        .opt-strat-calc-whatif-head {
            display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
            margin-bottom: .75rem;
        }
        .opt-strat-calc-whatif-days {
            display: inline-flex; align-items: center; gap: .35rem;
            font-size: .62rem; color: #cbd5e1;
        }
        .opt-strat-calc-whatif-note {
            font-size: .62rem; color: #64748b; line-height: 1.55; margin-bottom: .5rem;
        }
        .opt-payoff-legend {
            display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem;
            font-size: .52rem; color: #64748b;
        }
        .opt-payoff-legend-item {
            display: inline-flex; align-items: center; gap: .3rem;
        }
        .opt-payoff-legend-dot {
            width: .55rem; height: .55rem; border-radius: 999px; flex-shrink: 0;
        }
        .opt-payoff-legend-dot.is-profit { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,.5); }
        .opt-payoff-legend-dot.is-loss { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,.45); }
        .opt-payoff-legend-dot.is-spot { background: #94a3b8; }
        .opt-payoff-legend-dot.is-be { background: #34d399; border: 1px dashed rgba(255,255,255,.5); }
        .opt-payoff-legend-dot.is-strike { background: #a78bfa; opacity: .85; }
        .opt-payoff-toggle {
            display: inline-flex; align-items: center; gap: .35rem;
            padding: .3rem .55rem; border-radius: .5rem;
            font-size: .56rem; font-weight: 600; color: #94a3b8;
            border: 1px solid rgba(148,163,184,.2);
            background: rgba(15,23,42,.45); cursor: pointer;
            transition: border-color .15s, color .15s, background .15s;
        }
        .opt-payoff-toggle:hover { color: #e2e8f0; border-color: rgba(52,211,153,.35); }
        .opt-payoff-toggle.is-on {
            color: #6ee7b7; border-color: rgba(52,211,153,.45);
            background: rgba(6,78,59,.3);
        }
        .opt-payoff-toggle input { accent-color: #34d399; width: .85rem; height: .85rem; }
        .opt-payoff-chart-frame {
            position: relative;
            border-radius: .85rem;
            border: 1px solid rgba(52,211,153,.18);
            background:
                linear-gradient(rgba(15,23,42,.55), rgba(15,23,42,.55)),
                repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(148,163,184,.06) 39px, rgba(148,163,184,.06) 40px),
                repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(148,163,184,.04) 39px, rgba(148,163,184,.04) 40px);
            padding: .35rem .25rem .15rem;
            margin-bottom: .75rem;
            min-height: 300px;
            max-width: 100%; overflow: hidden; box-sizing: border-box;
        }
        .opt-strat-calc-chart-wrap .apexcharts-canvas,
        .opt-strat-calc-chart-wrap svg { max-width: 100% !important; }
        @media (min-width: 768px) { .opt-payoff-chart-frame { min-height: 380px; } }
        .so-fs-active .opt-payoff-chart-frame { flex: 1 1 auto; min-height: 0; margin-bottom: 0; }
        .opt-strat-calc-chart-wrap {
            min-height: 290px; height: 290px; position: relative;
        }
        @media (min-width: 768px) { .opt-strat-calc-chart-wrap { min-height: 370px; height: 370px; } }
        .so-fs-active .opt-strat-calc-chart-wrap { height: 100% !important; min-height: 280px; }
        .opt-payoff-foot {
            display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem;
            padding-top: .75rem;
            border-top: 1px dashed rgba(52,211,153,.2);
        }
        @media (min-width: 640px) { .opt-payoff-foot { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
        .opt-payoff-stat {
            padding: .55rem .6rem; border-radius: .7rem;
            border: 1px solid rgba(148,163,184,.15);
            background: rgba(15,23,42,.5);
            text-align: center;
        }
        .opt-payoff-stat-label { font-size: .52rem; color: #64748b; font-weight: 600; margin-bottom: .2rem; }
        .opt-payoff-stat-val {
            font-size: .78rem; font-weight: 800; color: #e2e8f0;
            font-variant-numeric: tabular-nums; line-height: 1.2;
        }
        .opt-payoff-stat-val.is-pos { color: #34d399; }
        .opt-payoff-stat-val.is-neg { color: #f87171; }
        .opt-payoff-stat-val.is-be { color: #67e8f9; }
        .opt-payoff-stat-val.is-spot { color: #cbd5e1; }
        .opt-payoff-badge-pnl {
            font-variant-numeric: tabular-nums;
        }
        .opt-payoff-badge-pnl.is-pos { color: #6ee7b7 !important; }
        .opt-payoff-badge-pnl.is-neg { color: #fda4af !important; }
        .opt-strat-calc-analysis {
            border-radius: 1rem;
            border: 1px solid rgba(34,211,238,.22);
            background: linear-gradient(160deg, rgba(8,51,68,.3) 0%, rgba(15,23,42,.85) 100%);
            padding: .85rem 1rem;
            min-width: 0; max-width: 100%; overflow-x: clip; box-sizing: border-box;
        }
        .opt-strat-calc-tabs {
            display: flex; flex-wrap: nowrap; gap: .35rem;
            margin-bottom: .75rem;
            padding: .25rem;
            border-radius: .65rem;
            background: rgba(15,23,42,.5);
            border: 1px solid rgba(148,163,184,.12);
            overflow-x: auto; -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
        }
        .opt-strat-calc-tab {
            flex: 1 1 auto; min-width: fit-content;
            padding: .4rem .65rem; border-radius: .5rem;
            font-size: .58rem; font-weight: 600; color: #94a3b8;
            border: 1px solid transparent; background: transparent;
            cursor: pointer; transition: all .15s; text-align: center;
        }
        .opt-strat-calc-tab:hover { color: #e2e8f0; background: rgba(34,211,238,.06); }
        .opt-strat-calc-tab.active {
            color: #67e8f9; background: rgba(34,211,238,.12);
            border-color: rgba(34,211,238,.35);
        }
        .opt-strat-calc-panel { min-height: 120px; min-width: 0; max-width: 100%; }
        .opt-strat-calc-greeks {
            display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem;
            margin-bottom: .75rem;
        }
        @media (min-width: 640px) { .opt-strat-calc-greeks { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
        .opt-strat-calc-greek {
            padding: .5rem .55rem; border-radius: .65rem;
            border: 1px solid rgba(34,211,238,.18);
            background: rgba(8,51,68,.25);
            text-align: center;
        }
        .opt-strat-calc-greek-k { font-size: .5rem; color: #64748b; text-transform: uppercase; letter-spacing: .03em; }
        .opt-strat-calc-greek-v { font-size: .68rem; font-weight: 800; color: #a5f3fc; margin-top: .2rem; }
        .opt-strat-calc-greek-v.pos { color: #6ee7b7; }
        .opt-strat-calc-greek-v.neg { color: #fda4af; }
        .opt-strat-calc-margin {
            padding: .55rem .65rem; border-radius: .65rem; margin-bottom: .75rem;
            font-size: .58rem; line-height: 1.5;
            border: 1px solid rgba(251,191,36,.35);
            background: rgba(120,53,15,.25); color: #fcd34d;
        }
        .opt-strat-calc-whatif-title { font-size: .62rem; font-weight: 700; color: #67e8f9; margin-bottom: .5rem; }
        .opt-strat-calc-whatif-wrap { overflow-x: auto; border-radius: .65rem; border: 1px solid rgba(148,163,184,.15); }
        .opt-strat-calc-whatif-wrap table { width: 100%; border-collapse: collapse; font-size: .56rem; }
        .opt-strat-calc-whatif-wrap th,
        .opt-strat-calc-whatif-wrap td {
            padding: .35rem .45rem; text-align: center;
            border-bottom: 1px solid rgba(148,163,184,.1);
        }
        .opt-strat-calc-whatif-wrap th { background: rgba(15,23,42,.6); color: #94a3b8; font-weight: 600; }
        .opt-strat-calc-whatif-wrap td.pos { color: #34d399; }
        .opt-strat-calc-whatif-wrap td.neg { color: #f87171; }
        .opt-strat-calc-compare-wrap { overflow-x: auto; border-radius: .65rem; border: 1px solid rgba(148,163,184,.15); }
        .opt-strat-calc-compare-wrap table { width: 100%; border-collapse: collapse; font-size: .58rem; }
        .opt-strat-calc-compare-wrap th,
        .opt-strat-calc-compare-wrap td {
            padding: .4rem .5rem; text-align: right;
            border-bottom: 1px solid rgba(148,163,184,.1);
        }
        .opt-strat-calc-compare-wrap th { background: rgba(15,23,42,.6); color: #94a3b8; }
        .opt-strat-calc-compare-wrap tr.is-highlight { background: rgba(52,211,153,.06); }
        .opt-strat-calc-compare-wrap .opt-compare-cell-best { color: #34d399; font-weight: 800; }
        .opt-strat-calc-compare-wrap .opt-compare-cell-worst { color: #f87171; font-weight: 800; }

        @media (max-width: 639px) {
            .opt-strat-calc-topbar { flex-direction: column; align-items: stretch; gap: .5rem; }
            .opt-strat-calc-back { align-self: flex-start; }
            .opt-strat-calc-hero { padding: .7rem .75rem; }
            .opt-strat-calc-hero-inner { gap: .65rem; }
            .opt-strat-calc-hero-main,
            .opt-strat-calc-kpi-row { flex: 1 1 100%; width: 100%; min-width: 0; }
            .opt-strat-calc-hero-title { font-size: .88rem; }
            .opt-strat-calc-kpi-l { font-size: .56rem; }
            .opt-strat-calc-kpi-v { font-size: .76rem; }
            .opt-strat-calc-payoff { padding: .75rem .65rem .85rem; }
            .opt-strat-calc-analysis { padding: .7rem .75rem; }
            .opt-strat-calc-rail { padding: .75rem; }
            .opt-payoff-toolbar { flex-direction: column; align-items: stretch; }
            .opt-payoff-toolbar-actions { justify-content: space-between; width: 100%; }
            .opt-payoff-legend { gap: .35rem .55rem; }
            .opt-strat-calc-tab { flex: 0 0 auto; white-space: nowrap; font-size: .62rem; padding: .42rem .7rem; }
            .opt-strat-calc-greek-k { font-size: .56rem; }
            .opt-strat-calc-greek-v { font-size: .72rem; }
            .opt-strat-calc-whatif-wrap,
            .opt-strat-calc-compare-wrap { -webkit-overflow-scrolling: touch; max-width: 100%; }
            .opt-compare-pick-grid { grid-template-columns: 1fr; max-height: none; }
        }
        @media (max-width: 479px) {
            .opt-strat-calc-payoff .opt-donut-head { flex-direction: column; align-items: flex-start; gap: .45rem; }
            .opt-strat-calc-payoff .opt-chart-badge { white-space: normal; max-width: 100%; text-align: center; }
            .opt-payoff-foot { grid-template-columns: 1fr; }
            .opt-strat-calc-contract { font-size: .62rem; padding: .45rem .55rem; }
        }

        /* ── Compare panel (strategies + contracts) ── */
        .opt-compare-mode-seg {
            display: grid; grid-template-columns: 1fr 1fr; gap: .35rem;
            padding: .25rem; margin-bottom: .75rem;
            border-radius: .65rem;
            background: rgba(15,23,42,.5);
            border: 1px solid rgba(148,163,184,.12);
        }
        .opt-compare-mode-btn {
            padding: .45rem .65rem; border-radius: .5rem;
            font-size: .6rem; font-weight: 700; color: #94a3b8;
            border: 1px solid transparent; background: transparent;
            cursor: pointer; transition: all .15s; text-align: center;
        }
        .opt-compare-mode-btn:hover { color: #e2e8f0; background: rgba(167,139,250,.08); }
        .opt-compare-mode-btn.active {
            color: #c4b5fd; background: rgba(139,92,246,.15);
            border-color: rgba(167,139,250,.35);
        }
        .opt-compare-selected {
            display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
            margin-bottom: .65rem; padding: .45rem .55rem;
            border-radius: .65rem;
            border: 1px dashed rgba(167,139,250,.25);
            background: rgba(30,27,75,.25);
        }
        .opt-compare-chip {
            display: inline-flex; align-items: center; gap: .35rem;
            padding: .25rem .45rem .25rem .55rem;
            border-radius: 999px; font-size: .56rem; font-weight: 600;
            border: 1px solid rgba(148,163,184,.25);
            background: rgba(15,23,42,.55); color: #e2e8f0;
            max-width: 100%;
        }
        .opt-compare-chip-dot { width: .45rem; height: .45rem; border-radius: 999px; flex-shrink: 0; }
        .opt-compare-chip-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 9rem; }
        .opt-compare-chip-x {
            display: inline-flex; align-items: center; justify-content: center;
            width: 1rem; height: 1rem; border-radius: 999px;
            border: none; background: rgba(148,163,184,.15); color: #94a3b8;
            cursor: pointer; font-size: .62rem; line-height: 1;
        }
        .opt-compare-chip-x:hover { background: rgba(248,113,113,.25); color: #fca5a5; }
        .opt-compare-clear {
            margin-right: auto; padding: .2rem .5rem;
            font-size: .54rem; font-weight: 600; color: #64748b;
            border: none; background: transparent; cursor: pointer;
        }
        .opt-compare-clear:hover { color: #fda4af; }
        .opt-compare-chart-card {
            position: relative; margin-bottom: .75rem;
            padding: .65rem .75rem .55rem;
            border-radius: .85rem;
            border: 1px solid rgba(167,139,250,.22);
            background: linear-gradient(160deg, rgba(30,27,75,.35) 0%, rgba(15,23,42,.75) 100%);
        }
        .opt-compare-chart-head {
            display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem;
            margin-bottom: .45rem;
        }
        .opt-compare-chart-title { font-size: .66rem; font-weight: 800; color: #e2e8f0; }
        .opt-compare-chart-sub { font-size: .52rem; color: #64748b; }
        .opt-compare-chart-wrap { min-height: 220px; height: 220px; }
        @media (min-width: 768px) { .opt-compare-chart-wrap { min-height: 260px; height: 260px; } }
        .opt-compare-chart-legend {
            display: flex; flex-wrap: wrap; gap: .4rem .65rem;
            margin-top: .45rem; padding-top: .45rem;
            border-top: 1px dashed rgba(148,163,184,.15);
        }
        .opt-compare-chart-legend-item {
            display: inline-flex; align-items: center; gap: .3rem;
            font-size: .54rem; color: #94a3b8;
        }
        .opt-compare-chart-hint {
            padding: .75rem; margin-bottom: .65rem; text-align: center;
            font-size: .58rem; color: #64748b;
            border-radius: .65rem; border: 1px dashed rgba(148,163,184,.2);
            background: rgba(15,23,42,.35);
        }
        .opt-compare-toolbar {
            display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
            margin-bottom: .55rem;
        }
        .opt-compare-search {
            flex: 1 1 160px; min-width: 0;
            padding: .4rem .65rem .4rem 1.85rem;
            border-radius: .55rem; font-size: .6rem;
            border: 1px solid rgba(148,163,184,.22);
            background: rgba(15,23,42,.55); color: #e2e8f0;
        }
        .opt-compare-search-wrap { position: relative; flex: 1 1 160px; min-width: 0; }
        .opt-compare-search-icon {
            position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
            width: .85rem; height: .85rem; color: #64748b; pointer-events: none;
        }
        .opt-compare-cats {
            display: flex; flex-wrap: wrap; gap: .3rem;
            margin-bottom: .55rem;
        }
        .opt-compare-cat {
            padding: .25rem .55rem; border-radius: 999px;
            font-size: .54rem; font-weight: 600; color: #94a3b8;
            border: 1px solid rgba(148,163,184,.18);
            background: rgba(15,23,42,.4); cursor: pointer;
        }
        .opt-compare-cat.active {
            color: #c4b5fd; border-color: rgba(167,139,250,.4);
            background: rgba(139,92,246,.15);
        }
        .opt-compare-pick-grid {
            display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem;
            margin-bottom: .75rem; max-height: 220px; overflow-y: auto;
            padding-right: .15rem;
        }
        @media (min-width: 640px) { .opt-compare-pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
        .opt-compare-pick {
            display: flex; flex-direction: column; align-items: flex-start; gap: .2rem;
            padding: .45rem .55rem; border-radius: .6rem; text-align: right;
            border: 1px solid rgba(148,163,184,.15);
            background: rgba(15,23,42,.45); cursor: pointer;
            transition: border-color .15s, background .15s, transform .15s;
        }
        .opt-compare-pick:hover { border-color: rgba(167,139,250,.35); background: rgba(30,27,75,.35); }
        .opt-compare-pick.is-selected {
            border-color: rgba(167,139,250,.55);
            background: rgba(139,92,246,.18);
            box-shadow: inset 0 0 0 1px rgba(167,139,250,.15);
        }
        .opt-compare-pick.is-disabled { opacity: .45; cursor: not-allowed; }
        .opt-compare-pick-name { font-size: .58rem; font-weight: 700; color: #e2e8f0; line-height: 1.35; }
        .opt-compare-pick-meta { font-size: .5rem; color: #64748b; }
        .opt-compare-contract-list {
            display: flex; flex-direction: column; gap: .35rem;
            margin-bottom: .75rem; max-height: 260px; overflow-y: auto;
        }
        .opt-compare-contract-row {
            display: grid; grid-template-columns: auto 1fr auto;
            align-items: center; gap: .45rem;
            padding: .45rem .55rem; border-radius: .6rem;
            border: 1px solid rgba(148,163,184,.15);
            background: rgba(15,23,42,.4); cursor: pointer;
            transition: border-color .15s, background .15s;
        }
        .opt-compare-contract-row:hover { border-color: rgba(52,211,153,.3); }
        .opt-compare-contract-row.is-selected {
            border-color: rgba(52,211,153,.45);
            background: rgba(6,78,59,.22);
        }
        .opt-compare-contract-row.is-disabled { opacity: .45; cursor: not-allowed; }
        .opt-compare-contract-check {
            width: 1rem; height: 1rem; border-radius: .25rem;
            border: 1.5px solid rgba(148,163,184,.35);
            display: flex; align-items: center; justify-content: center;
            font-size: .58rem; color: transparent; flex-shrink: 0;
        }
        .opt-compare-contract-row.is-selected .opt-compare-contract-check {
            border-color: #34d399; background: rgba(52,211,153,.2); color: #6ee7b7;
        }
        .opt-compare-contract-info { min-width: 0; }
        .opt-compare-contract-id { font-size: .58rem; font-weight: 700; color: #e2e8f0; }
        .opt-compare-contract-sub { font-size: .5rem; color: #64748b; margin-top: .1rem; }
        .opt-compare-contract-yield {
            font-size: .56rem; font-weight: 700; color: #34d399;
            white-space: nowrap;
        }
        .opt-compare-results-head {
            display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem;
            margin-bottom: .5rem;
        }
        .opt-compare-results-title { font-size: .66rem; font-weight: 800; color: #e2e8f0; }
        .opt-compare-results-sub { font-size: .52rem; color: #64748b; }
        .opt-compare-add-current {
            padding: .3rem .55rem; border-radius: .5rem;
            font-size: .54rem; font-weight: 600;
            border: 1px dashed rgba(52,211,153,.4);
            background: rgba(6,78,59,.15); color: #6ee7b7;
            cursor: pointer;
        }
        .opt-compare-add-current:hover { background: rgba(6,78,59,.3); }
        .opt-compare-mobile-cards { display: flex; flex-direction: column; gap: .45rem; }
        @media (min-width: 768px) { .opt-compare-mobile-cards { display: none; } }
        .opt-compare-mc {
            padding: .55rem .65rem; border-radius: .65rem;
            border: 1px solid rgba(148,163,184,.15);
            background: rgba(15,23,42,.45);
        }
        .opt-compare-mc-head { display: flex; align-items: center; gap: .35rem; margin-bottom: .4rem; }
        .opt-compare-mc-dot { width: .5rem; height: .5rem; border-radius: 999px; flex-shrink: 0; }
        .opt-compare-mc-title { font-size: .62rem; font-weight: 800; color: #e2e8f0; flex: 1; min-width: 0; }
        .opt-compare-mc-grid {
            display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .5rem;
        }
        .opt-compare-mc-k { font-size: .5rem; color: #64748b; }
        .opt-compare-mc-v { font-size: .6rem; font-weight: 700; color: #e2e8f0; }
        .opt-compare-desktop-table { display: none; }
        @media (min-width: 768px) { .opt-compare-desktop-table { display: block; } }
        .opt-strat-calc-contracts-head {
            display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
            margin-bottom: .65rem;
        }
        .opt-strat-calc-contracts-title { font-size: .68rem; font-weight: 700; color: #e2e8f0; }
        .opt-strat-calc-contracts-sub { font-size: .52rem; color: #64748b; }

        .opt-donut-card { display: flex; flex-direction: column; min-height: 100%; }
        .opt-donut-head { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; margin-bottom: .9rem; position: relative; z-index: 1; }
        .opt-donut-head-info { flex: 1 1 auto; min-width: 0; }
        .opt-donut-head-info .opt-chart-title { font-size: .92rem; }
        .opt-donut-canvas-wrap { position: relative; flex: 1 1 auto; width: 100%; height: 220px; display: flex; align-items: center; justify-content: center; z-index: 1; min-width: 0; max-width: 100%; overflow: hidden; }
        @media (min-width: 640px) { .opt-donut-canvas-wrap { height: 250px; } }
        .opt-donut-canvas-wrap canvas { width: 100% !important; height: 100% !important; max-width: 100%; max-height: 100%; }
        .opt-donut-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: .9rem; padding-top: .85rem; border-top: 1px dashed rgba(167,139,250,.18); position: relative; z-index: 1; }
        .opt-donut-foot:has(.opt-donut-foot-item:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
        .opt-donut-foot-item {
            padding: .55rem .65rem;
            border-radius: .75rem;
            background: linear-gradient(140deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.25) 100%);
            border: 1px solid rgba(167,139,250,.18);
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            grid-template-areas:
                "label label"
                "value pct";
            gap: .22rem .5rem;
            align-items: baseline;
        }
        .opt-donut-foot-label { grid-area: label; font-size: .6rem; color: #94a3b8; font-weight: 600; line-height: 1.3; }
        .opt-donut-foot-value { grid-area: value; font-size: .82rem; font-weight: 800; color: #f1f5f9; line-height: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .opt-mny-foot-pct,
        .opt-cp-foot-pct,
        .opt-flow-foot-pct,
        .opt-vol-foot-pct,
        .opt-oi-foot-pct {
            grid-area: pct;
            flex-shrink: 0;
            font-size: .62rem;
            font-weight: 700;
            color: #94a3b8;
            line-height: 1;
            padding: .18rem .4rem;
            border-radius: .4rem;
            background: rgba(148,163,184,.1);
            border: 1px solid rgba(148,163,184,.12);
            direction: ltr;
            text-align: center;
            white-space: nowrap;
        }
        .opt-donut-foot-emerald { border-color: rgba(52,211,153,.28); }
        .opt-donut-foot-emerald .opt-donut-foot-value { color: #6ee7b7; }
        .opt-donut-foot-rose { border-color: rgba(244,114,182,.3); }
        .opt-donut-foot-rose .opt-donut-foot-value { color: #fda4af; }
        .opt-donut-foot-amber { border-color: rgba(251,191,36,.3); }
        .opt-donut-foot-amber .opt-donut-foot-value { color: #fcd34d; }
        .opt-donut-foot-itm { border-color: rgba(96,165,250,.32); }
        .opt-donut-foot-itm .opt-donut-foot-value { color: #93c5fd; }
        .opt-donut-foot-otm { border-color: rgba(148,163,184,.28); }
        .opt-donut-foot-otm .opt-donut-foot-value { color: #cbd5e1; }
        .opt-donut-foot-violet { border-color: rgba(167,139,250,.28); }
        .opt-donut-foot-violet .opt-donut-foot-value { color: #c4b5fd; }
        .opt-mny-intro {
            font-size: .64rem;
            line-height: 1.65;
            color: #94a3b8;
            margin: -.35rem 0 .15rem;
            position: relative;
            z-index: 1;
        }
        .opt-mny-canvas-wrap {
            height: 240px;
        }
        @media (min-width: 640px) { .opt-mny-canvas-wrap { height: 268px; } }
        .opt-mny-foot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        button.opt-mny-foot-item {
            width: 100%;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            grid-template-areas:
                "label label"
                "value pct";
            gap: .22rem .5rem;
            align-items: baseline;
            padding: .55rem .65rem;
            border-radius: .75rem;
            border: 1px solid rgba(148,163,184,.16);
            background: linear-gradient(140deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.25) 100%);
            cursor: pointer;
            text-align: right;
            transition: background .18s ease, border-color .18s ease, transform .15s ease;
        }
        button.opt-mny-foot-item:hover {
            transform: translateY(-1px);
            background: rgba(99,102,241,.1);
        }
        button.opt-mny-foot-item:active { transform: translateY(0); }
        .opt-mny-foot-sub {
            font-size: .52rem;
            color: #64748b;
            font-weight: 600;
            line-height: 1.35;
        }
        .opt-cp-intro {
            font-size: .64rem;
            line-height: 1.65;
            color: #94a3b8;
            margin: -.35rem 0 .15rem;
            position: relative;
            z-index: 1;
        }
        .opt-cp-canvas-wrap {
            height: 240px;
        }
        @media (min-width: 640px) { .opt-cp-canvas-wrap { height: 268px; } }
        .opt-cp-foot { grid-template-columns: 1fr 1fr; }
        button.opt-cp-foot-item {
            width: 100%;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            grid-template-areas:
                "label label"
                "value pct";
            gap: .22rem .5rem;
            align-items: baseline;
            padding: .55rem .65rem;
            border-radius: .75rem;
            border: 1px solid rgba(148,163,184,.16);
            background: linear-gradient(140deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.25) 100%);
            cursor: pointer;
            text-align: right;
            transition: background .18s ease, border-color .18s ease, transform .15s ease;
        }
        button.opt-cp-foot-item:hover {
            transform: translateY(-1px);
            background: rgba(34,211,238,.08);
        }
        button.opt-cp-foot-item:active { transform: translateY(0); }
        .opt-vol-intro {
            font-size: .64rem;
            line-height: 1.65;
            color: #94a3b8;
            margin: -.35rem 0 .15rem;
            position: relative;
            z-index: 1;
        }
        .opt-vol-canvas-wrap {
            height: 240px;
        }
        @media (min-width: 640px) { .opt-vol-canvas-wrap { height: 268px; } }
        .opt-vol-foot {
            display: flex;
            flex-direction: column;
            gap: .55rem;
        }
        .opt-vol-foot-summary {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: .5rem;
        }
        .opt-vol-foot-tops {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: .45rem;
        }
        @media (max-width: 480px) { .opt-vol-foot-tops { grid-template-columns: 1fr; } }
        button.opt-vol-top-item {
            width: 100%;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            grid-template-areas:
                "name name"
                "val pct";
            gap: .18rem .45rem;
            align-items: baseline;
            padding: .45rem .55rem;
            border-radius: .65rem;
            border: 1px solid rgba(251,191,36,.22);
            background: linear-gradient(140deg, rgba(15,23,42,.5) 0%, rgba(15,23,42,.22) 100%);
            cursor: pointer;
            text-align: right;
            transition: background .18s ease, border-color .18s ease, transform .15s ease;
        }
        button.opt-vol-top-item:hover {
            transform: translateY(-1px);
            background: rgba(251,191,36,.08);
            border-color: rgba(251,191,36,.35);
        }
        button.opt-vol-top-item:active { transform: translateY(0); }
        .opt-vol-top-name {
            grid-area: name;
            font-size: .68rem;
            font-weight: 800;
            color: #fcd34d;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .opt-vol-top-val {
            grid-area: val;
            font-size: .62rem;
            font-weight: 700;
            color: #f1f5f9;
            direction: ltr;
            text-align: right;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .opt-vol-top-pct {
            grid-area: pct;
            font-size: .58rem;
            font-weight: 700;
            color: #94a3b8;
            line-height: 1;
            padding: .15rem .35rem;
            border-radius: .35rem;
            background: rgba(148,163,184,.1);
            border: 1px solid rgba(148,163,184,.12);
            direction: ltr;
            text-align: center;
            white-space: nowrap;
        }
        .opt-flow-intro {
            font-size: .64rem;
            line-height: 1.65;
            color: #94a3b8;
            margin: -.35rem 0 .15rem;
            position: relative;
            z-index: 1;
        }
        .opt-flow-canvas-wrap {
            height: 240px;
        }
        @media (min-width: 640px) { .opt-flow-canvas-wrap { height: 268px; } }
        .opt-flow-foot { grid-template-columns: 1fr 1fr; }
        .opt-flow-method {
            font-size: .52rem;
            font-weight: 600;
            color: #64748b;
            line-height: 1.35;
        }
        .opt-oi-intro {
            font-size: .64rem;
            line-height: 1.65;
            color: #94a3b8;
            margin: -.35rem 0 .15rem;
            position: relative;
            z-index: 1;
        }
        .opt-oi-canvas-wrap {
            height: 240px;
            min-width: 0;
            max-width: 100%;
        }
        @media (min-width: 640px) { .opt-oi-canvas-wrap { height: 268px; } }
        .opt-oi-foot {
            display: flex;
            flex-direction: column;
            gap: .55rem;
        }
        .opt-oi-foot-summary {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: .5rem;
        }
        .opt-oi-foot-tops {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: .45rem;
        }
        @media (max-width: 480px) { .opt-oi-foot-tops { grid-template-columns: 1fr; } }
        button.opt-oi-top-item {
            width: 100%;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            grid-template-areas:
                "name name"
                "val pct";
            gap: .18rem .45rem;
            align-items: baseline;
            padding: .45rem .55rem;
            border-radius: .65rem;
            border: 1px solid rgba(167,139,250,.22);
            background: linear-gradient(140deg, rgba(15,23,42,.5) 0%, rgba(15,23,42,.22) 100%);
            cursor: pointer;
            text-align: right;
            transition: background .18s ease, border-color .18s ease, transform .15s ease;
        }
        button.opt-oi-top-item:hover {
            transform: translateY(-1px);
            background: rgba(139,92,246,.08);
            border-color: rgba(167,139,250,.35);
        }
        button.opt-oi-top-item:active { transform: translateY(0); }
        .opt-oi-top-name {
            grid-area: name;
            font-size: .68rem;
            font-weight: 800;
            color: #c4b5fd;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .opt-oi-top-val {
            grid-area: val;
            font-size: .62rem;
            font-weight: 700;
            color: #f1f5f9;
            direction: ltr;
            text-align: right;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .opt-oi-top-pct {
            grid-area: pct;
            font-size: .58rem;
            font-weight: 700;
            color: #94a3b8;
            line-height: 1;
            padding: .15rem .35rem;
            border-radius: .35rem;
            background: rgba(148,163,184,.1);
            border: 1px solid rgba(148,163,184,.12);
            direction: ltr;
            text-align: center;
            white-space: nowrap;
        }
        .opt-donut-foot-cyan { border-color: rgba(103,232,249,.3); }
        .opt-donut-foot-cyan .opt-donut-foot-value { color: #67e8f9; }
        .opt-badge-pos { color: #6ee7b7 !important; background: rgba(16,185,129,.16) !important; border-color: rgba(52,211,153,.4) !important; }
        .opt-badge-neg { color: #fda4af !important; background: rgba(244,114,182,.16) !important; border-color: rgba(244,114,182,.4) !important; }
        .opt-bar-chart-wrap { position: relative; height: 220px; z-index: 1; }

        /* ========= سازندهٔ استراتژی سفارشی ========= */
        .opt-strat-builder-shell { display: flex; flex-direction: column; gap: 1rem; }
        .opt-strat-builder-hero {
            padding: 1rem 1.05rem 1.1rem;
            border-radius: 1rem;
            background: rgba(15, 23, 42, 0.78);
            border: 1px solid rgba(148, 163, 184, 0.14);
        }
        @media (min-width: 640px) { .opt-strat-builder-hero { padding: 1.15rem 1.25rem 1.2rem; } }
        .opt-strat-builder-head {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            justify-content: space-between;
            gap: .55rem .75rem;
            margin-bottom: .75rem;
            padding-bottom: .75rem;
            border-bottom: 1px solid rgba(148, 163, 184, 0.1);
        }
        .opt-strat-builder-title {
            font-size: .95rem;
            font-weight: 800;
            color: #f1f5f9;
            margin: 0;
            line-height: 1.35;
        }
        .opt-strat-builder-sub {
            font-size: .64rem;
            line-height: 1.65;
            color: #94a3b8;
            margin: .2rem 0 0;
        }
        .opt-strat-builder-kpis {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            border-radius: .72rem;
            border: 1px solid rgba(148, 163, 184, 0.12);
            background: rgba(15, 23, 42, 0.35);
            overflow: hidden;
        }
        .opt-strat-builder-kpi {
            padding: .5rem .6rem;
            display: flex;
            flex-direction: column;
            gap: .1rem;
        }
        .opt-strat-builder-kpi + .opt-strat-builder-kpi { border-inline-start: 1px solid rgba(148, 163, 184, 0.08); }
        .opt-strat-builder-kpi-l { font-size: .54rem; color: #64748b; font-weight: 600; }
        .opt-strat-builder-kpi-v { font-size: .72rem; font-weight: 800; color: #e2e8f0; line-height: 1.2; }
        .opt-strat-builder-layout {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            align-items: start;
        }
        @media (min-width: 900px) {
            .opt-strat-builder-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
        }
        .opt-strat-builder-panel {
            padding: .85rem .9rem;
            border-radius: .85rem;
            background: rgba(15, 23, 42, 0.55);
            border: 1px solid rgba(148, 163, 184, 0.12);
        }
        @media (min-width: 640px) { .opt-strat-builder-panel { padding: 1rem 1.05rem; } }
        .opt-strat-builder-panel-title {
            font-size: .72rem;
            font-weight: 800;
            color: #e2e8f0;
            margin: 0 0 .65rem;
        }
        .opt-strat-builder-params {
            display: grid;
            grid-template-columns: 1fr;
            gap: .55rem;
            margin-bottom: .75rem;
        }
        @media (min-width: 480px) { .opt-strat-builder-params { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
        .opt-strat-builder-field { display: flex; flex-direction: column; gap: .28rem; min-width: 0; }
        .opt-strat-builder-field-l {
            font-size: .56rem;
            font-weight: 700;
            color: #64748b;
        }
        .opt-strat-builder-field .so-input,
        .opt-strat-builder-field .so-select {
            font-size: .68rem;
            padding: .45rem .55rem;
        }
        .opt-strat-builder-add-row {
            display: flex;
            flex-wrap: wrap;
            gap: .4rem;
            margin-bottom: .75rem;
        }
        button.opt-strat-builder-add {
            display: inline-flex;
            align-items: center;
            gap: .35rem;
            padding: .42rem .72rem;
            border-radius: .6rem;
            font-size: .64rem;
            font-weight: 800;
            cursor: pointer;
            border: 1px solid transparent;
            transition: background .15s, border-color .15s;
        }
        button.opt-strat-builder-add--call {
            color: #6ee7b7;
            background: rgba(16, 185, 129, 0.12);
            border-color: rgba(52, 211, 153, 0.28);
        }
        button.opt-strat-builder-add--call:hover { background: rgba(16, 185, 129, 0.2); }
        button.opt-strat-builder-add--put {
            color: #fda4af;
            background: rgba(244, 114, 182, 0.12);
            border-color: rgba(251, 113, 133, 0.28);
        }
        button.opt-strat-builder-add--put:hover { background: rgba(244, 114, 182, 0.2); }
        button.opt-strat-builder-add--stock {
            color: #93c5fd;
            background: rgba(59, 130, 246, 0.12);
            border-color: rgba(96, 165, 250, 0.28);
        }
        button.opt-strat-builder-add--stock:hover { background: rgba(59, 130, 246, 0.2); }
        .opt-strat-builder-legs {
            display: flex;
            flex-direction: column;
            gap: .55rem;
        }
        .opt-strat-builder-leg {
            border-radius: .72rem;
            border: 1px solid rgba(148, 163, 184, 0.14);
            background: rgba(15, 23, 42, 0.45);
            overflow: hidden;
        }
        .opt-strat-builder-leg.is-call { border-color: rgba(52, 211, 153, 0.22); }
        .opt-strat-builder-leg.is-put { border-color: rgba(251, 113, 133, 0.22); }
        .opt-strat-builder-leg.is-stock { border-color: rgba(96, 165, 250, 0.22); }
        .opt-strat-builder-leg-head {
            display: flex;
            align-items: center;
            gap: .4rem;
            padding: .45rem .6rem;
            background: rgba(15, 23, 42, 0.5);
            border-bottom: 1px solid rgba(148, 163, 184, 0.1);
        }
        .opt-strat-builder-leg-num {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 1.25rem;
            height: 1.25rem;
            border-radius: 999px;
            font-size: .58rem;
            font-weight: 800;
            color: #cbd5e1;
            background: rgba(148, 163, 184, 0.14);
        }
        .opt-strat-builder-leg-type {
            font-size: .62rem;
            font-weight: 800;
            padding: .15rem .45rem;
            border-radius: .4rem;
        }
        .is-call .opt-strat-builder-leg-type { color: #6ee7b7; background: rgba(16, 185, 129, 0.14); }
        .is-put .opt-strat-builder-leg-type { color: #fda4af; background: rgba(244, 114, 182, 0.14); }
        .is-stock .opt-strat-builder-leg-type { color: #93c5fd; background: rgba(59, 130, 246, 0.14); }
        .opt-strat-builder-leg-pos {
            font-size: .58rem;
            font-weight: 700;
            color: #94a3b8;
            margin-inline-start: auto;
        }
        button.opt-strat-builder-leg-del {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 1.5rem;
            height: 1.5rem;
            border-radius: .45rem;
            border: 1px solid rgba(244, 114, 182, 0.25);
            background: rgba(244, 114, 182, 0.08);
            color: #fda4af;
            font-size: .72rem;
            font-weight: 800;
            cursor: pointer;
            flex-shrink: 0;
        }
        button.opt-strat-builder-leg-del:hover { background: rgba(244, 114, 182, 0.18); }
        .opt-strat-builder-leg-fields {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: .5rem;
            padding: .55rem .6rem .6rem;
        }
        @media (min-width: 640px) {
            .opt-strat-builder-leg-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        }
        .opt-strat-builder-empty {
            padding: 1.5rem 1rem;
            text-align: center;
            border-radius: .72rem;
            border: 1px dashed rgba(148, 163, 184, 0.2);
            background: rgba(15, 23, 42, 0.3);
        }
        .opt-strat-builder-empty-title { font-size: .68rem; font-weight: 800; color: #94a3b8; margin: 0 0 .25rem; }
        .opt-strat-builder-empty-sub { font-size: .6rem; color: #64748b; margin: 0; line-height: 1.6; }
        .opt-strat-builder-chart {
            display: flex;
            flex-direction: column;
            gap: .5rem;
            min-height: 220px;
        }
        .opt-strat-builder-chart-canvas {
            position: relative;
            flex: 1;
            min-height: 180px;
            border-radius: .72rem;
            border: 1px solid rgba(148, 163, 184, 0.12);
            background: rgba(15, 23, 42, 0.45);
            padding: .45rem;
        }
        .opt-strat-builder-chart-empty {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 180px;
            border-radius: .72rem;
            border: 1px dashed rgba(148, 163, 184, 0.18);
            background: rgba(15, 23, 42, 0.3);
            font-size: .62rem;
            color: #64748b;
            text-align: center;
            padding: 1rem;
            line-height: 1.65;
        }
        .opt-strat-builder-foot {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: .5rem;
            padding-top: .15rem;
        }
        button.opt-strat-builder-analyze {
            display: inline-flex;
            align-items: center;
            gap: .4rem;
            padding: .55rem 1rem;
            border-radius: .65rem;
            font-size: .68rem;
            font-weight: 800;
            color: #ecfdf5;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.85), rgba(5, 150, 105, 0.9));
            border: 1px solid rgba(52, 211, 153, 0.45);
            cursor: pointer;
            transition: opacity .15s;
        }
        button.opt-strat-builder-analyze:hover:not(:disabled) { opacity: .92; }
        button.opt-strat-builder-analyze:disabled { opacity: .45; cursor: not-allowed; }
        button.opt-strat-builder-clear {
            padding: .5rem .85rem;
            border-radius: .65rem;
            font-size: .64rem;
            font-weight: 700;
            color: #94a3b8;
            background: rgba(15, 23, 42, 0.5);
            border: 1px solid rgba(148, 163, 184, 0.18);
            cursor: pointer;
        }
        button.opt-strat-builder-clear:hover { color: #e2e8f0; border-color: rgba(148, 163, 184, 0.3); }
        .opt-strat-builder-templates {
            margin-bottom: .75rem;
            padding-bottom: .75rem;
            border-bottom: 1px dashed rgba(148, 163, 184, 0.12);
        }
        .opt-strat-builder-templates-label {
            font-size: .58rem;
            font-weight: 700;
            color: #64748b;
            margin-bottom: .4rem;
            display: block;
        }
        .opt-strat-builder-template-row {
            display: flex;
            flex-wrap: wrap;
            gap: .35rem;
            align-items: center;
        }
        .opt-strat-builder-template-select {
            flex: 1 1 160px;
            min-width: 0;
            padding: .42rem .55rem;
            border-radius: .55rem;
            font-size: .64rem;
            font-weight: 600;
            color: #e2e8f0;
            background: rgba(15, 23, 42, 0.55);
            border: 1px solid rgba(167, 139, 250, 0.22);
            font-family: 'Vazirmatn', sans-serif;
        }
        button.opt-strat-builder-template-btn {
            padding: .42rem .65rem;
            border-radius: .55rem;
            font-size: .6rem;
            font-weight: 700;
            color: #c4b5fd;
            background: rgba(139, 92, 246, 0.12);
            border: 1px solid rgba(167, 139, 250, 0.28);
            cursor: pointer;
            white-space: nowrap;
        }
        button.opt-strat-builder-template-btn:hover { background: rgba(139, 92, 246, 0.22); }
        .opt-strat-builder-errors {
            margin-bottom: .65rem;
            padding: .55rem .65rem;
            border-radius: .65rem;
            background: rgba(127, 29, 29, 0.25);
            border: 1px solid rgba(248, 113, 113, 0.35);
        }
        .opt-strat-builder-errors-title {
            font-size: .62rem;
            font-weight: 800;
            color: #fecaca;
            margin: 0 0 .35rem;
        }
        .opt-strat-builder-errors-list {
            margin: 0;
            padding: 0 1rem 0 0;
            font-size: .58rem;
            line-height: 1.65;
            color: #fda4af;
        }
        .opt-strat-builder-field-hint {
            font-size: .5rem;
            color: #475569;
            margin-top: .1rem;
        }
        .opt-strat-builder-chart-apex {
            width: 100%;
            min-height: 200px;
            height: 200px;
        }
        @media (min-width: 900px) { .opt-strat-builder-chart-apex { height: 240px; } }
        .opt-strat-builder-preview-stats {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: .35rem;
            margin-top: .45rem;
        }
        .opt-strat-builder-preview-stat {
            padding: .4rem .5rem;
            border-radius: .55rem;
            background: rgba(15, 23, 42, 0.45);
            border: 1px solid rgba(148, 163, 184, 0.1);
            text-align: center;
        }
        .opt-strat-builder-preview-stat-k { font-size: .52rem; color: #64748b; font-weight: 600; }
        .opt-strat-builder-preview-stat-v { font-size: .64rem; font-weight: 800; color: #e2e8f0; margin-top: .08rem; }
        button.opt-strat-builder-leg-dup {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 1.5rem;
            height: 1.5rem;
            border-radius: .45rem;
            border: 1px solid rgba(148, 163, 184, 0.2);
            background: rgba(15, 23, 42, 0.45);
            color: #94a3b8;
            font-size: .65rem;
            cursor: pointer;
            flex-shrink: 0;
        }
        button.opt-strat-builder-leg-dup:hover { color: #e2e8f0; border-color: rgba(167, 139, 250, 0.35); }

        /* ========= دیده‌بان شخصی ========= */
        .opt-wl-shell { display: flex; flex-direction: column; gap: 1rem; }
        .opt-wl-hero {
            position: relative;
            padding: 1rem 1.05rem 1.1rem;
            border-radius: 1.25rem;
            background: linear-gradient(160deg, rgba(15,23,42,.72) 0%, rgba(15,23,42,.42) 100%);
            border: 1px solid rgba(252,211,77,.22);
            overflow: hidden;
        }
        @media (min-width: 640px) { .opt-wl-hero { padding: 1.15rem 1.25rem 1.2rem; } }
        .opt-wl-hero-glow {
            position: absolute; inset: -40% -20% auto;
            height: 120px;
            background: radial-gradient(ellipse at 50% 0%, rgba(251,191,36,.14) 0%, transparent 70%);
            pointer-events: none;
        }
        .opt-wl-head {
            position: relative; z-index: 1;
            display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
            gap: .55rem .75rem;
            margin-bottom: .75rem;
            padding-bottom: .75rem;
            border-bottom: 1px solid rgba(148,163,184,.1);
        }
        .opt-wl-head-main { display: flex; align-items: flex-start; gap: .65rem; min-width: 0; }
        .opt-wl-icon {
            flex-shrink: 0; width: 36px; height: 36px; border-radius: .75rem;
            display: flex; align-items: center; justify-content: center;
            color: #fcd34d; background: rgba(251,191,36,.14); border: 1px solid rgba(252,211,77,.35);
        }
        .opt-wl-title { font-size: .95rem; font-weight: 800; color: #f1f5f9; margin: 0; line-height: 1.35; }
        .opt-wl-sub { font-size: .62rem; color: #94a3b8; margin: .2rem 0 0; line-height: 1.55; }
        .opt-wl-head-actions { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-right: auto; }
        .opt-wl-badge {
            font-size: .58rem; font-weight: 800; padding: .22rem .55rem; border-radius: 999px;
            color: #fde68a; background: rgba(251,191,36,.14); border: 1px solid rgba(252,211,77,.35);
        }
        button.opt-wl-clear {
            display: inline-flex; align-items: center; gap: .3rem;
            padding: .38rem .65rem; border-radius: .55rem;
            font-size: .6rem; font-weight: 700; color: #fda4af;
            background: rgba(244,63,94,.08); border: 1px solid rgba(244,114,182,.25);
            cursor: pointer; transition: all .15s ease;
        }
        button.opt-wl-clear:hover { background: rgba(244,63,94,.16); border-color: rgba(244,114,182,.4); color: #fecdd3; }
        .opt-wl-kpis {
            position: relative; z-index: 1;
            display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem;
        }
        @media (min-width: 640px) { .opt-wl-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
        @media (min-width: 1024px) { .opt-wl-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
        .opt-wl-kpi {
            padding: .5rem .55rem; border-radius: .7rem;
            background: rgba(15,23,42,.45); border: 1px solid rgba(148,163,184,.1);
            min-width: 0;
        }
        .opt-wl-kpi-l { font-size: .52rem; color: #64748b; font-weight: 600; display: block; }
        .opt-wl-kpi-v { font-size: .68rem; font-weight: 800; color: #e2e8f0; line-height: 1.25; margin-top: .12rem; }
        .opt-wl-kpi-v.is-call { color: #6ee7b7; }
        .opt-wl-kpi-v.is-put { color: #fda4af; }
        .opt-wl-kpi-v.is-pos { color: #6ee7b7; }
        .opt-wl-kpi-v.is-neg { color: #fda4af; }
        .opt-wl-kpi-v.is-urgent { color: #fcd34d; }
        .opt-wl-kpi-sub { font-size: .52rem; color: #64748b; margin-top: .08rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .opt-wl-panel {
            padding: .85rem .9rem 1rem;
            border-radius: 1.25rem;
            background: linear-gradient(160deg, rgba(15,23,42,.5) 0%, rgba(15,23,42,.82) 100%);
            border: 1px solid rgba(255,255,255,.06);
        }
        @media (min-width: 640px) { .opt-wl-panel { padding: 1rem 1.1rem 1.15rem; } }
        .opt-wl-panel-head {
            display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .65rem;
            margin-bottom: .75rem;
        }
        .opt-wl-panel-title { font-size: .78rem; font-weight: 800; color: #e2e8f0; margin: 0; }
        .opt-wl-panel-meta { font-size: .58rem; color: #64748b; margin-right: auto; }
        .opt-wl-toolbar {
            display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
            margin-bottom: .75rem;
        }
        .opt-wl-search-wrap { position: relative; flex: 1 1 160px; min-width: 0; max-width: 280px; }
        .opt-wl-search {
            width: 100%; padding: .48rem .75rem .48rem 2rem; border-radius: .65rem;
            background: rgba(15,23,42,.55); border: 1px solid rgba(148,163,184,.18);
            color: #e2e8f0; font-size: .68rem; font-family: inherit;
        }
        .opt-wl-search:focus { outline: none; border-color: rgba(252,211,77,.4); box-shadow: 0 0 0 2px rgba(251,191,36,.12); }
        .opt-wl-search-icon {
            position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
            width: 14px; height: 14px; color: #64748b; pointer-events: none;
        }
        .opt-wl-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
        .opt-wl-chip {
            padding: .32rem .6rem; border-radius: 999px; font-size: .6rem; font-weight: 700;
            color: #94a3b8; background: rgba(15,23,42,.5); border: 1px solid rgba(148,163,184,.16);
            cursor: pointer; transition: all .15s ease; white-space: nowrap;
        }
        .opt-wl-chip:hover { border-color: rgba(252,211,77,.35); color: #fde68a; }
        .opt-wl-chip.is-active {
            background: linear-gradient(135deg, rgba(251,191,36,.2), rgba(245,158,11,.1));
            border-color: rgba(252,211,77,.4); color: #fde68a;
        }
        .opt-wl-chip.is-call.is-active { background: rgba(16,185,129,.14); border-color: rgba(52,211,153,.35); color: #a7f3d0; }
        .opt-wl-chip.is-put.is-active { background: rgba(244,114,182,.14); border-color: rgba(244,114,182,.35); color: #fbcfe8; }
        .opt-wl-chip.is-urgent.is-active { background: rgba(245,158,11,.14); border-color: rgba(251,191,36,.4); color: #fcd34d; }
        .opt-wl-dd {
            display: flex; flex-direction: column; gap: .25rem; min-width: 0; position: relative;
            flex: 0 1 168px;
        }
        @media (max-width: 479px) { .opt-wl-dd { flex: 1 1 100%; } }
        .opt-wl-dd.is-open { z-index: 70; }
        .opt-wl-dd-label {
            font-size: .56rem; font-weight: 700; color: #64748b;
        }
        .opt-wl-dd-btn {
            display: flex; align-items: center; gap: .4rem; width: 100%;
            padding: .48rem .55rem .48rem .65rem; border-radius: .65rem;
            background: linear-gradient(140deg, rgba(15,23,42,.72) 0%, rgba(41,32,10,.35) 100%);
            border: 1px solid rgba(252,211,77,.28); color: #fde68a;
            font-size: .66rem; font-weight: 700; font-family: 'Vazirmatn', sans-serif;
            cursor: pointer; text-align: right;
            transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
        }
        .opt-wl-dd-btn:hover { border-color: rgba(252,211,77,.45); color: #fef3c7; }
        .opt-wl-dd-btn.is-open {
            border-color: rgba(252,211,77,.55);
            box-shadow: 0 0 0 1px rgba(251,191,36,.18);
            background: linear-gradient(140deg, rgba(15,23,42,.82) 0%, rgba(41,32,10,.45) 100%);
        }
        .opt-wl-dd-text {
            flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }
        .opt-wl-dd-chevron {
            flex-shrink: 0; width: 14px; height: 14px; color: #fcd34d; transition: transform .2s ease;
        }
        .opt-wl-dd-chevron.is-flip { transform: rotate(180deg); }
        .opt-wl-dd-panel {
            position: absolute; top: calc(100% + .3rem); right: 0; left: 0; z-index: 80;
            max-height: 240px; overflow-y: auto; padding: .35rem; border-radius: .75rem;
            background: linear-gradient(145deg, rgba(17,24,39,.98), rgba(15,23,42,.99));
            border: 1px solid rgba(252,211,77,.32);
            box-shadow: 0 20px 44px rgba(0,0,0,.55);
            scrollbar-width: thin; scrollbar-color: rgba(251,191,36,.45) transparent;
        }
        button.opt-wl-dd-option {
            display: flex; align-items: center; justify-content: space-between; gap: .45rem;
            width: 100%; padding: .48rem .58rem; border-radius: .55rem;
            border: 1px solid transparent; background: transparent; color: #e2e8f0;
            font-size: .66rem; font-weight: 600; font-family: 'Vazirmatn', sans-serif;
            text-align: right; cursor: pointer;
            transition: background .14s ease, color .14s ease, border-color .14s ease;
        }
        button.opt-wl-dd-option:hover { background: rgba(251,191,36,.1); color: #fef3c7; }
        button.opt-wl-dd-option.is-active {
            background: linear-gradient(135deg, rgba(251,191,36,.18), rgba(245,158,11,.1));
            border-color: rgba(252,211,77,.35); color: #fde68a;
        }
        .opt-wl-dd-check { width: 13px; height: 13px; color: #fcd34d; flex-shrink: 0; }
        .opt-wl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        .opt-wl-table { width: 100%; border-collapse: collapse; font-size: .68rem; }
        .opt-wl-table th {
            padding: .5rem .45rem; text-align: right; font-size: .56rem; font-weight: 700;
            color: #64748b; border-bottom: 1px solid rgba(148,163,184,.12); white-space: nowrap;
        }
        .opt-wl-table td {
            padding: .55rem .45rem; border-bottom: 1px solid rgba(148,163,184,.08);
            color: #e2e8f0; vertical-align: middle;
        }
        .opt-wl-table tr.is-clickable { cursor: pointer; transition: background .12s ease; }
        .opt-wl-table tr.is-clickable:hover { background: rgba(251,191,36,.05); }
        .opt-wl-table tr.is-urgent { background: rgba(245,158,11,.04); }
        button.opt-wl-fav {
            width: 28px; height: 28px; border-radius: .45rem; border: none; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            color: #fcd34d; background: rgba(251,191,36,.12); transition: all .15s ease;
        }
        button.opt-wl-fav:hover { background: rgba(251,191,36,.22); transform: scale(1.05); }
        .opt-wl-id { font-weight: 800; color: #fde68a; direction: ltr; text-align: right; font-size: .66rem; }
        .opt-wl-base { font-size: .62rem; color: #94a3b8; }
        .opt-wl-days {
            font-size: .6rem; font-weight: 700; padding: .15rem .4rem; border-radius: .35rem;
            background: rgba(148,163,184,.1); color: #cbd5e1; direction: ltr;
        }
        .opt-wl-days.is-urgent { background: rgba(245,158,11,.16); color: #fcd34d; border: 1px solid rgba(251,191,36,.3); }
        .opt-wl-alert-badge {
            font-size: .52rem; font-weight: 800; padding: .12rem .35rem; border-radius: .3rem;
            color: #6ee7b7; background: rgba(16,185,129,.12); border: 1px solid rgba(52,211,153,.25);
        }
        .opt-wl-cards { display: none; flex-direction: column; gap: .55rem; }
        .opt-wl-card {
            padding: .65rem .7rem; border-radius: .85rem; cursor: pointer;
            background: linear-gradient(140deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.28) 100%);
            border: 1px solid rgba(148,163,184,.14); transition: border-color .15s ease, background .15s ease;
        }
        .opt-wl-card:hover { border-color: rgba(252,211,77,.28); background: rgba(251,191,36,.04); }
        .opt-wl-card.is-urgent { border-color: rgba(251,191,36,.25); }
        .opt-wl-card-top { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
        .opt-wl-card-price { margin-right: auto; font-size: .88rem; font-weight: 800; color: #f1f5f9; }
        .opt-wl-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem .5rem; margin-top: .55rem; }
        .opt-wl-card-k { font-size: .54rem; color: #64748b; }
        .opt-wl-card-v { font-size: .72rem; font-weight: 700; color: #e2e8f0; }
        @media (max-width: 767px) {
            .opt-wl-cards { display: flex; }
            .opt-wl-table-wrap { display: none; }
        }
        .opt-wl-alerts {
            padding: .85rem .9rem 1rem;
            border-radius: 1.25rem;
            background: linear-gradient(160deg, rgba(15,23,42,.45) 0%, rgba(15,23,42,.75) 100%);
            border: 1px solid rgba(52,211,153,.18);
        }
        .opt-wl-alerts-head {
            display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .65rem;
            margin-bottom: .65rem;
        }
        .opt-wl-alerts-title { font-size: .76rem; font-weight: 800; color: #e2e8f0; margin: 0; display: flex; align-items: center; gap: .35rem; }
        .opt-wl-alerts-hint { font-size: .56rem; color: #64748b; margin-right: auto; line-height: 1.5; }
        .opt-wl-alert-list { display: flex; flex-direction: column; gap: .55rem; }
        .opt-wl-alerts-guide {
            margin-bottom: .75rem; padding: .65rem .75rem; border-radius: .75rem;
            background: rgba(16,185,129,.06); border: 1px solid rgba(52,211,153,.18);
        }
        .opt-wl-alerts-guide-title { font-size: .64rem; font-weight: 800; color: #a7f3d0; margin: 0 0 .35rem; }
        .opt-wl-alerts-steps {
            margin: 0; padding: 0 .85rem 0 0; font-size: .6rem; color: #94a3b8; line-height: 1.65;
        }
        .opt-wl-alerts-steps li { margin-bottom: .15rem; }
        .opt-wl-alerts-steps strong { color: #cbd5e1; font-weight: 700; }
        .opt-wl-alerts-toolbar {
            display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .65rem;
            margin-bottom: .65rem; padding-bottom: .55rem; border-bottom: 1px solid rgba(148,163,184,.1);
        }
        .opt-wl-alerts-master { display: flex; align-items: center; gap: .45rem; font-size: .62rem; color: #cbd5e1; font-weight: 600; }
        button.opt-wl-alert-switch {
            width: 36px; height: 20px; border-radius: 999px; border: 1px solid rgba(148,163,184,.25);
            background: rgba(100,116,139,.25); position: relative; cursor: pointer; transition: all .18s ease; flex-shrink: 0;
        }
        button.opt-wl-alert-switch::after {
            content: ''; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%;
            background: #e2e8f0; transition: transform .18s ease;
        }
        button.opt-wl-alert-switch.is-on { background: rgba(16,185,129,.35); border-color: rgba(52,211,153,.45); }
        button.opt-wl-alert-switch.is-on::after { transform: translateX(-14px); background: #ecfdf5; }
        .opt-wl-alert-row {
            display: flex; flex-direction: column; gap: .5rem;
            background: rgba(15,23,42,.4); border: 1px solid rgba(148,163,184,.1);
            border-radius: .85rem; padding: .65rem .7rem;
        }
        .opt-wl-alert-row.is-on { border-color: rgba(52,211,153,.28); background: rgba(16,185,129,.05); }
        .opt-wl-alert-row.is-hit { border-color: rgba(251,191,36,.35); background: rgba(245,158,11,.06); }
        .opt-wl-alert-row-top { display: flex; align-items: flex-start; gap: .5rem; }
        button.opt-wl-bell {
            flex-shrink: 0; width: 32px; height: 32px; border-radius: .55rem;
            display: flex; align-items: center; justify-content: center;
            color: #64748b; background: rgba(148,163,184,.1); border: 1px solid transparent; cursor: pointer; transition: all .15s;
        }
        button.opt-wl-bell.is-on { color: #6ee7b7; background: rgba(16,185,129,.15); border-color: rgba(52,211,153,.35); }
        .opt-wl-alert-info { min-width: 0; flex: 1; }
        .opt-wl-alert-id { font-size: .7rem; font-weight: 800; color: #e2e8f0; direction: ltr; text-align: right; display: block; }
        .opt-wl-alert-meta { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; }
        .opt-wl-alert-status {
            font-size: .58rem; line-height: 1.55; margin-top: .25rem; padding: .28rem .45rem; border-radius: .45rem;
        }
        .opt-wl-alert-status.is-ok { color: #6ee7b7; background: rgba(16,185,129,.1); }
        .opt-wl-alert-status.is-warn { color: #fcd34d; background: rgba(245,158,11,.1); }
        .opt-wl-alert-status.is-hit { color: #fde68a; background: rgba(251,191,36,.12); }
        .opt-wl-alert-status.is-muted { color: #64748b; background: rgba(148,163,184,.08); }
        .opt-wl-alert-now {
            display: flex; flex-wrap: wrap; gap: .35rem .5rem; font-size: .56rem; color: #64748b; margin-top: .2rem;
        }
        .opt-wl-alert-now span { padding: .12rem .35rem; border-radius: .35rem; background: rgba(148,163,184,.08); direction: ltr; }
        .opt-wl-alert-presets { display: flex; flex-wrap: wrap; gap: .3rem; }
        button.opt-wl-alert-preset {
            padding: .22rem .45rem; border-radius: .4rem; font-size: .54rem; font-weight: 700;
            color: #94a3b8; background: rgba(15,23,42,.55); border: 1px solid rgba(148,163,184,.16); cursor: pointer;
        }
        button.opt-wl-alert-preset:hover { color: #e2e8f0; border-color: rgba(52,211,153,.3); }
        .opt-wl-alert-field-hint { font-size: .5rem; color: #64748b; line-height: 1.4; }
        .opt-wl-alert-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; width: 100%; }
        @media (min-width: 768px) { .opt-wl-alert-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
        .opt-wl-alert-fields label { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
        .opt-wl-alert-fields label span { font-size: .54rem; color: #94a3b8; font-weight: 600; }
        .opt-wl-alert-fields input { width: 100%; padding: .32rem .45rem !important; font-size: .68rem !important; }
        .opt-wl-alert-fields input.is-set { border-color: rgba(52,211,153,.35); background: rgba(16,185,129,.06); }
        .so-alert-item.is-wl { border-inline-start: 2px solid rgba(52,211,153,.45); }
        .so-alert-item.is-iv { border-inline-start: 2px solid rgba(244,114,182,.45); }
        .so-alert-kind-tag {
            font-size: .5rem; font-weight: 800; padding: .1rem .35rem; border-radius: .3rem; margin-bottom: .1rem; display: inline-block;
        }
        .so-alert-kind-tag.is-wl { color: #6ee7b7; background: rgba(16,185,129,.12); }
        .so-alert-kind-tag.is-iv { color: #fda4af; background: rgba(244,114,182,.12); }
        .opt-wl-empty {
            text-align: center; padding: 3rem 1.25rem;
            border-radius: 1.25rem;
            background: linear-gradient(160deg, rgba(15,23,42,.4) 0%, rgba(15,23,42,.65) 100%);
            border: 1px dashed rgba(148,163,184,.18);
        }
        .opt-wl-empty-icon {
            width: 56px; height: 56px; margin: 0 auto .85rem;
            display: flex; align-items: center; justify-content: center;
            border-radius: 1rem; color: #64748b;
            background: rgba(148,163,184,.08); border: 1px solid rgba(148,163,184,.12);
        }
        .opt-wl-empty-title { font-size: .82rem; font-weight: 800; color: #cbd5e1; margin: 0 0 .35rem; }
        .opt-wl-empty-sub { font-size: .64rem; color: #64748b; margin: 0 0 1rem; line-height: 1.65; max-width: 320px; margin-inline: auto; }
        button.opt-wl-empty-cta {
            display: inline-flex; align-items: center; gap: .4rem;
            padding: .55rem 1rem; border-radius: .65rem;
            font-size: .68rem; font-weight: 800; color: #fff; cursor: pointer;
            background: linear-gradient(135deg, #f59e0b, #d97706);
            border: 1px solid rgba(252,211,77,.4); transition: opacity .15s ease;
        }
        button.opt-wl-empty-cta:hover { opacity: .92; }

        /* ========= نقشه حرارتی بازار ========= */
        .opt-hm-shell { display: flex; flex-direction: column; gap: 1rem; }
        .opt-hm-hero {
            position: relative; padding: 1rem 1.05rem 1.1rem; border-radius: 1.25rem;
            background: linear-gradient(160deg, rgba(15,23,42,.72) 0%, rgba(15,23,42,.42) 100%);
            border: 1px solid rgba(103,232,249,.22); overflow: hidden;
        }
        @media (min-width: 640px) { .opt-hm-hero { padding: 1.15rem 1.25rem 1.2rem; } }
        .opt-hm-hero-glow {
            position: absolute; inset: -40% -20% auto; height: 120px;
            background: radial-gradient(ellipse at 50% 0%, rgba(34,211,238,.14) 0%, transparent 70%);
            pointer-events: none;
        }
        .opt-hm-head {
            position: relative; z-index: 1;
            display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
            gap: .55rem .75rem; margin-bottom: .75rem; padding-bottom: .75rem;
            border-bottom: 1px solid rgba(148,163,184,.1);
        }
        .opt-hm-head-main { display: flex; align-items: flex-start; gap: .65rem; min-width: 0; }
        .opt-hm-icon {
            flex-shrink: 0; width: 36px; height: 36px; border-radius: .75rem;
            display: flex; align-items: center; justify-content: center;
            color: #67e8f9; background: rgba(34,211,238,.14); border: 1px solid rgba(103,232,249,.35);
        }
        .opt-hm-title { font-size: .95rem; font-weight: 800; color: #f1f5f9; margin: 0; line-height: 1.35; }
        .opt-hm-sub { font-size: .62rem; color: #94a3b8; margin: .2rem 0 0; line-height: 1.55; }
        .opt-hm-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-right: auto; }
        .opt-hm-badge {
            font-size: .58rem; font-weight: 800; padding: .22rem .55rem; border-radius: 999px;
            color: #a5f3fc; background: rgba(34,211,238,.12); border: 1px solid rgba(103,232,249,.3);
        }
        .opt-hm-kpis {
            position: relative; z-index: 1;
            display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem;
        }
        @media (min-width: 640px) { .opt-hm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
        @media (min-width: 1024px) { .opt-hm-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
        .opt-hm-kpi {
            padding: .5rem .55rem; border-radius: .7rem;
            background: rgba(15,23,42,.45); border: 1px solid rgba(148,163,184,.1); min-width: 0;
        }
        button.opt-hm-kpi.is-clickable {
            cursor: pointer; text-align: right; width: 100%;
            transition: border-color .15s ease, background .15s ease;
        }
        button.opt-hm-kpi.is-clickable:hover { border-color: rgba(103,232,249,.35); background: rgba(34,211,238,.06); }
        .opt-hm-kpi-l { font-size: .52rem; color: #64748b; font-weight: 600; display: block; }
        .opt-hm-kpi-v { font-size: .68rem; font-weight: 800; color: #e2e8f0; line-height: 1.25; margin-top: .12rem; }
        .opt-hm-kpi-v.is-pos { color: #6ee7b7; }
        .opt-hm-kpi-v.is-neg { color: #fda4af; }
        .opt-hm-kpi-v.is-cyan { color: #67e8f9; }
        .opt-hm-kpi-v.is-amber { color: #fcd34d; }
        .opt-hm-kpi-sub { font-size: .52rem; color: #64748b; margin-top: .08rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }
        .opt-hm-panel {
            padding: .85rem .9rem 1rem; border-radius: 1.25rem;
            background: linear-gradient(160deg, rgba(15,23,42,.5) 0%, rgba(15,23,42,.82) 100%);
            border: 1px solid rgba(255,255,255,.06);
        }
        @media (min-width: 640px) { .opt-hm-panel { padding: 1rem 1.1rem 1.15rem; } }
        .opt-hm-toolbar {
            display: flex; flex-wrap: wrap; align-items: flex-end; gap: .45rem .55rem; margin-bottom: .65rem;
        }
        .opt-hm-search-wrap { position: relative; flex: 1 1 180px; min-width: 0; max-width: 300px; }
        .opt-hm-search {
            width: 100%; padding: .48rem .75rem .48rem 2rem; border-radius: .65rem;
            background: rgba(15,23,42,.55); border: 1px solid rgba(148,163,184,.18);
            color: #e2e8f0; font-size: .68rem; font-family: inherit;
        }
        .opt-hm-search:focus { outline: none; border-color: rgba(103,232,249,.4); box-shadow: 0 0 0 2px rgba(34,211,238,.12); }
        .opt-hm-search-icon {
            position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
            width: 14px; height: 14px; color: #64748b; pointer-events: none;
        }
        .opt-hm-dd {
            display: flex; flex-direction: column; gap: .25rem; min-width: 0; position: relative;
            flex: 0 1 150px;
        }
        @media (max-width: 639px) { .opt-hm-dd { flex: 1 1 calc(50% - .3rem); } }
        .opt-hm-dd.is-open { z-index: 70; }
        .opt-hm-dd-label { font-size: .56rem; font-weight: 700; color: #64748b; }
        .opt-hm-dd-btn {
            display: flex; align-items: center; gap: .4rem; width: 100%;
            padding: .48rem .55rem .48rem .65rem; border-radius: .65rem;
            background: linear-gradient(140deg, rgba(15,23,42,.72) 0%, rgba(8,47,73,.35) 100%);
            border: 1px solid rgba(103,232,249,.28); color: #a5f3fc;
            font-size: .66rem; font-weight: 700; font-family: 'Vazirmatn', sans-serif;
            cursor: pointer; text-align: right;
            transition: border-color .18s ease, box-shadow .18s ease;
        }
        .opt-hm-dd-btn:hover { border-color: rgba(103,232,249,.45); color: #cffafe; }
        .opt-hm-dd-btn.is-open { border-color: rgba(103,232,249,.55); box-shadow: 0 0 0 1px rgba(34,211,238,.18); }
        .opt-hm-dd-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .opt-hm-dd-chevron { flex-shrink: 0; width: 14px; height: 14px; color: #67e8f9; transition: transform .2s ease; }
        .opt-hm-dd-chevron.is-flip { transform: rotate(180deg); }
        .opt-hm-dd-panel {
            position: absolute; top: calc(100% + .3rem); right: 0; left: 0; z-index: 80;
            max-height: 220px; overflow-y: auto; padding: .35rem; border-radius: .75rem;
            background: linear-gradient(145deg, rgba(17,24,39,.98), rgba(15,23,42,.99));
            border: 1px solid rgba(103,232,249,.32); box-shadow: 0 20px 44px rgba(0,0,0,.55);
        }
        button.opt-hm-dd-option {
            display: flex; align-items: center; justify-content: space-between; gap: .45rem;
            width: 100%; padding: .48rem .58rem; border-radius: .55rem; border: 1px solid transparent;
            background: transparent; color: #e2e8f0; font-size: .66rem; font-weight: 600;
            font-family: 'Vazirmatn', sans-serif; text-align: right; cursor: pointer;
        }
        button.opt-hm-dd-option:hover { background: rgba(34,211,238,.1); color: #cffafe; }
        button.opt-hm-dd-option.is-active {
            background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(6,182,212,.1));
            border-color: rgba(103,232,249,.35); color: #a5f3fc;
        }
        .opt-hm-dd-check { width: 13px; height: 13px; color: #67e8f9; flex-shrink: 0; }
        .opt-hm-chips { display: flex; flex-wrap: wrap; gap: .35rem; width: 100%; padding-top: .15rem; }
        .opt-hm-chip {
            padding: .32rem .6rem; border-radius: 999px; font-size: .6rem; font-weight: 700;
            color: #94a3b8; background: rgba(15,23,42,.5); border: 1px solid rgba(148,163,184,.16);
            cursor: pointer; transition: all .15s ease; white-space: nowrap;
        }
        .opt-hm-chip:hover { border-color: rgba(103,232,249,.35); color: #a5f3fc; }
        .opt-hm-chip.is-active {
            background: linear-gradient(135deg, rgba(34,211,238,.2), rgba(6,182,212,.1));
            border-color: rgba(103,232,249,.4); color: #a5f3fc;
        }
        .opt-hm-chip.is-gain.is-active { background: rgba(16,185,129,.14); border-color: rgba(52,211,153,.35); color: #a7f3d0; }
        .opt-hm-chip.is-loss.is-active { background: rgba(244,114,182,.14); border-color: rgba(244,114,182,.35); color: #fbcfe8; }
        .opt-hm-chip.is-exp.is-active { background: rgba(245,158,11,.14); border-color: rgba(251,191,36,.4); color: #fcd34d; }
        .opt-hm-chip-clear { color: #fda4af; border-color: rgba(244,114,182,.25); }
        .opt-hm-chart-card {
            position: relative;
            padding: .75rem .8rem 1rem; border-radius: 1.25rem;
            background: linear-gradient(160deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.85) 100%);
            border: 1px solid rgba(103,232,249,.14);
        }
        @media (min-width: 640px) { .opt-hm-chart-card { padding: .9rem 1rem 1.1rem; } }
        .opt-hm-chart-head {
            display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .65rem;
            margin-bottom: .65rem;
        }
        .opt-hm-chart-title { font-size: .76rem; font-weight: 800; color: #e2e8f0; margin: 0; }
        .opt-hm-chart-meta { font-size: .58rem; color: #64748b; margin-right: auto; line-height: 1.5; }
        .opt-hm-chart-actions { display: flex; align-items: center; gap: .35rem; }
        .opt-hm-wrap.so-hm-wrap {
            position: relative; min-height: 480px; border-radius: 1rem; overflow: hidden;
            background: radial-gradient(120% 100% at 50% 0%, rgba(34,211,238,.06) 0%, transparent 60%),
                        linear-gradient(180deg, rgba(11,18,32,.95), rgba(15,23,42,.98));
            border: 1px solid rgba(103,232,249,.12);
        }
        .opt-hm-wrap .so-heatmap-canvas { min-height: 480px; border: none; border-radius: 1rem; background: transparent; }
        .so-fs-active#heatmap-card {
            border: none !important;
            box-shadow: none !important;
        }
        .so-fs-active#heatmap-card .opt-hm-chart-head,
        .so-fs-active#heatmap-card .opt-hm-legend,
        .so-fs-active#heatmap-card .opt-hm-footnote { flex-shrink: 0; }
        .so-fs-active#heatmap-card .opt-hm-wrap {
            flex: 1 1 auto; min-height: 0 !important; display: flex; flex-direction: column;
            border-radius: .75rem; overflow: hidden;
        }
        .so-fs-active#heatmap-card .so-heatmap-canvas,
        .so-fs-active#heatmap-card #heatmap-container {
            flex: 1 1 auto; min-height: 0 !important; max-height: 100% !important;
            height: 100% !important; overflow: hidden;
        }
        .so-fs-active#heatmap-card .apexcharts-canvas,
        .so-fs-active#heatmap-card .apexcharts-svg {
            max-height: 100% !important;
        }
        .opt-hm-tip {
            position: absolute; top: 0; left: 0; z-index: 20;
            pointer-events: none; opacity: 0; visibility: hidden;
        }
        .opt-hm-tip.is-visible { opacity: 1; visibility: visible; transition: opacity .1s ease; }
        .opt-hm-tip-inner {
            padding: .5rem .62rem; border-radius: .6rem;
            background: rgba(15,23,42,.97); border: 1px solid rgba(103,232,249,.38);
            box-shadow: 0 8px 24px rgba(0,0,0,.45);
            font-family: 'Vazirmatn', sans-serif; font-size: .64rem; color: #e2e8f0;
            min-width: 152px; max-width: 220px; line-height: 1.4;
        }
        .opt-hm-tip[data-placement="inside"] .opt-hm-tip-inner {
            background: rgba(15,23,42,.92); border-color: rgba(103,232,249,.45);
            box-shadow: 0 4px 16px rgba(0,0,0,.35);
        }
        .opt-hm-tip-id { font-size: .72rem; font-weight: 800; color: #a5f3fc; margin-bottom: .35rem; direction: ltr; text-align: right; }
        .opt-hm-tip-row { display: flex; justify-content: space-between; gap: .5rem; margin-top: .18rem; }
        .opt-hm-tip-row span { color: #64748b; font-size: .58rem; flex-shrink: 0; }
        .opt-hm-tip-row strong { font-weight: 700; color: #e2e8f0; text-align: left; }
        .opt-hm-tip-row.is-pos strong { color: #6ee7b7; }
        .opt-hm-tip-row.is-neg strong { color: #fda4af; }
        .opt-hm-tip-hint { margin-top: .4rem; padding-top: .35rem; border-top: 1px solid rgba(148,163,184,.15); font-size: .54rem; color: #64748b; text-align: center; }
        .opt-hm-legend {
            display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem .75rem;
            margin-top: .75rem; padding-top: .65rem; border-top: 1px solid rgba(148,163,184,.1);
        }
        .opt-hm-legend-item { display: inline-flex; align-items: center; gap: .35rem; font-size: .58rem; color: #94a3b8; }
        .opt-hm-legend-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
        .opt-hm-footnote { font-size: .58rem; color: #64748b; text-align: center; margin-top: .5rem; line-height: 1.6; }

        /* ========= Filters ========= */
        .so-filter-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: .6rem;
            margin-bottom: 1rem;
        }
        @media (min-width: 640px) { .so-filter-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

        .so-input, .so-select {
            width: 100%;
            padding: .55rem .8rem;
            border-radius: .7rem;
            background: rgba(15,23,42,.65);
            border: 1px solid rgba(148,163,184,.22);
            color: #e2e8f0;
            font-size: .78rem;
            font-family: 'Vazirmatn', sans-serif;
            transition: all .18s ease;
        }
        .so-input:focus, .so-select:focus {
            outline: none;
            border-color: rgba(96,165,250,.55);
            background: rgba(15,23,42,.85);
            box-shadow: 0 0 0 3px rgba(59,130,246,.18);
        }
        .so-input::placeholder { color: #64748b; }

        /* #24 mini select برای کنترل نمودارها */
        .so-mini-select {
            padding: .3rem .55rem;
            border-radius: .55rem;
            background: rgba(15,23,42,.7);
            border: 1px solid rgba(148,163,184,.22);
            color: #cbd5e1;
            font-size: .7rem;
            font-family: 'Vazirmatn', sans-serif;
            transition: all .18s ease;
        }
        .so-mini-select:focus {
            outline: none;
            border-color: rgba(96,165,250,.55);
            box-shadow: 0 0 0 3px rgba(59,130,246,.15);
        }
        /* #22 دکمه آیکونی کوچک + اسکرول‌بار ظریف */
        .so-icon-btn {
            display: inline-flex; align-items: center; justify-content: center;
            width: 28px; height: 28px; border-radius: .5rem;
            color: #94a3b8; border: 1px solid transparent;
            transition: all .15s ease; vertical-align: middle;
        }
        .so-icon-btn:hover { color: #fca5a5; background: rgba(244,63,94,.1); border-color: rgba(244,63,94,.25); }
        .so-scroll::-webkit-scrollbar { width: 6px; }
        .so-scroll::-webkit-scrollbar-thumb { background: rgba(148,163,184,.3); border-radius: 3px; }
        .so-scroll::-webkit-scrollbar-track { background: transparent; }
        /* #analytics ماتریس زنجیره T-Chart */
        .so-matrix-table td { text-align: center; }
        .so-matrix-table tbody tr:hover { background: rgba(148,163,184,.05); }
        .so-matrix-atm { background: rgba(251,191,36,.08) !important; box-shadow: inset 0 0 0 1px rgba(251,191,36,.25); }

        /* ========= پیشنهاد امروز (Hero) ========= */
        .so-pick-hero {
            position: relative;
            overflow: hidden;
            border-radius: 1.25rem;
            padding: 1rem 1.1rem 1.15rem;
            background:
                radial-gradient(ellipse 80% 60% at 100% 0%, rgba(251,191,36,.14), transparent 55%),
                radial-gradient(ellipse 70% 50% at 0% 100%, rgba(59,130,246,.12), transparent 50%),
                linear-gradient(155deg, rgba(15,23,42,.92) 0%, rgba(2,6,23,.88) 100%);
            border: 1px solid rgba(99,102,241,.28);
            box-shadow:
                0 20px 48px -20px rgba(0,0,0,.55),
                0 0 0 1px rgba(255,255,255,.04) inset;
            transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
        }
        .so-pick-hero:hover {
            border-color: rgba(99,102,241,.42);
            box-shadow: 0 24px 52px -18px rgba(59,130,246,.25), 0 0 0 1px rgba(255,255,255,.06) inset;
        }
        .so-pick-hero::after {
            content: "";
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: linear-gradient(90deg, #3b82f6, #34d399, #6366f1);
            opacity: .85;
        }
        .so-pick-hero-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: .75rem;
            flex-wrap: wrap;
            margin-bottom: 1rem;
            padding-top: .15rem;
        }
        .so-pick-hero-title-wrap {
            display: flex;
            align-items: center;
            gap: .65rem;
        }
        .so-pick-hero-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px; height: 40px;
            border-radius: .85rem;
            color: #fcd34d;
            background: linear-gradient(135deg, rgba(251,191,36,.22), rgba(59,130,246,.15));
            border: 1px solid rgba(251,191,36,.35);
            box-shadow: 0 8px 20px rgba(251,191,36,.2);
            flex-shrink: 0;
        }
        .so-pick-hero-icon svg { width: 20px; height: 20px; }
        .so-pick-hero-title {
            font-size: 1rem;
            font-weight: 900;
            color: #f8fafc;
            line-height: 1.25;
        }
        .so-pick-hero-sub {
            font-size: .68rem;
            color: #94a3b8;
            margin-top: .15rem;
            line-height: 1.5;
        }
        .so-pick-hero-meta {
            font-size: .62rem;
            font-weight: 700;
            color: #6ee7b7;
            background: rgba(16,185,129,.12);
            border: 1px solid rgba(52,211,153,.28);
            padding: .28rem .55rem;
            border-radius: 999px;
            white-space: nowrap;
        }
        .so-pick-disclaimer {
            display: flex;
            align-items: flex-start;
            gap: .45rem;
            margin: -.35rem 0 .85rem;
            padding: .55rem .7rem;
            border-radius: .75rem;
            font-size: .66rem;
            line-height: 1.65;
            color: #94a3b8;
            background: rgba(15,23,42,.55);
            border: 1px solid rgba(148,163,184,.14);
        }
        .so-pick-disclaimer svg {
            width: 14px; height: 14px;
            color: #64748b;
            flex-shrink: 0;
            margin-top: .1rem;
        }
        .so-pick-disclaimer strong { color: #cbd5e1; font-weight: 800; }
        .so-pick-hero-body {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        .so-pick-section-title {
            font-size: .72rem;
            font-weight: 800;
            color: #cbd5e1;
            margin: 0 0 .55rem;
            display: flex;
            align-items: center;
            gap: .35rem;
        }
        .so-pick-section-title::before {
            content: "";
            width: 3px;
            height: .85rem;
            border-radius: 999px;
            background: linear-gradient(180deg, #3b82f6, #34d399);
            flex-shrink: 0;
        }
        .so-pick-top {
            display: flex;
            align-items: stretch;
            gap: .75rem;
            padding: .75rem .8rem;
            border-radius: .85rem;
            background: rgba(15,23,42,.45);
            border: 1px solid rgba(148,163,184,.12);
        }
        .so-pick-top-main {
            flex: 1;
            min-width: 0;
            display: flex;
            align-items: center;
            gap: .85rem;
        }
        .so-pick-top-actions {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: .35rem;
            flex-shrink: 0;
            padding-inline-start: .65rem;
            border-inline-start: 1px solid rgba(148,163,184,.12);
        }
        @media (max-width: 720px) {
            .so-pick-top { flex-direction: column; align-items: stretch; }
            .so-pick-top-main { flex-direction: column; align-items: stretch; }
            .so-pick-top-actions {
                flex-direction: row;
                padding-inline-start: 0;
                padding-top: .55rem;
                border-inline-start: none;
                border-top: 1px solid rgba(148,163,184,.12);
            }
            .so-pick-act { flex: 1; min-width: 0; }
        }
        .so-pick-act {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: .25rem;
            min-width: 72px;
            padding: .5rem .45rem;
            border-radius: .65rem;
            border: 1px solid rgba(148,163,184,.16);
            background: rgba(2,6,23,.45);
            cursor: pointer;
            transition: background .18s ease, border-color .18s ease, transform .15s ease, box-shadow .18s ease;
            text-align: center;
        }
        .so-pick-act svg {
            width: 17px;
            height: 17px;
            flex-shrink: 0;
        }
        .so-pick-act-label {
            font-size: .56rem;
            font-weight: 700;
            line-height: 1.35;
            color: #cbd5e1;
            max-width: 100%;
        }
        .so-pick-act--detail {
            color: #c7d2fe;
            border-color: rgba(99,102,241,.32);
            background: rgba(99,102,241,.1);
        }
        .so-pick-act--detail .so-pick-act-label { color: #c7d2fe; }
        .so-pick-act--detail:hover {
            background: rgba(99,102,241,.2);
            border-color: rgba(129,140,248,.5);
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(99,102,241,.2);
        }
        .so-pick-act--watch .so-pick-act-label { color: #94a3b8; }
        .so-pick-act--watch:hover {
            background: rgba(251,191,36,.08);
            border-color: rgba(251,191,36,.3);
            transform: translateY(-1px);
        }
        .so-pick-act--watch.is-fav {
            border-color: rgba(251,191,36,.4);
            background: rgba(251,191,36,.12);
        }
        .so-pick-act--watch.is-fav svg { color: #fcd34d; }
        .so-pick-act--watch.is-fav .so-pick-act-label { color: #fcd34d; }
        .so-pick-act--chain {
            border-color: rgba(34,211,238,.28);
            background: rgba(34,211,238,.06);
        }
        .so-pick-act--chain svg { color: #67e8f9; }
        .so-pick-act--chain .so-pick-act-label { color: #a5f3fc; }
        .so-pick-act--chain:hover {
            background: rgba(34,211,238,.14);
            border-color: rgba(34,211,238,.45);
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(34,211,238,.15);
        }
        .so-pick-act:focus-visible {
            outline: 2px solid rgba(129,140,248,.55);
            outline-offset: 2px;
        }
        @media (max-width: 640px) {
            .so-pick-top-main { flex-direction: column; align-items: stretch; }
        }
        .so-pick-ring-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex-shrink: 0;
            gap: .25rem;
        }
        .so-pick-ring-caption {
            font-size: .58rem;
            font-weight: 700;
            color: #64748b;
            white-space: nowrap;
        }
        .so-pick-contract-compact {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: .45rem;
        }
        .so-pick-contract-row {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: .4rem;
        }
        .so-pick-contract-row .so-contract-id { font-size: .85rem; }
        .so-pick-facts-inline {
            display: flex;
            flex-wrap: wrap;
            gap: .35rem;
        }
        .so-pick-stat {
            display: inline-flex;
            align-items: center;
            gap: .35rem;
            padding: .28rem .55rem;
            border-radius: .55rem;
            background: rgba(2,6,23,.4);
            border: 1px solid rgba(148,163,184,.1);
            font-size: .62rem;
            white-space: nowrap;
        }
        .so-pick-stat-k { color: #94a3b8; font-weight: 600; }
        .so-pick-stat-v {
            font-weight: 800;
            color: #f1f5f9;
            font-variant-numeric: tabular-nums;
            direction: ltr;
        }
        @media (min-width: 641px) {
            .so-pick-facts-inline { flex-wrap: nowrap; }
        }
        .so-pick-ring {
            position: relative;
            width: 84px;
            height: 84px;
            flex-shrink: 0;
            overflow: visible;
        }
        .so-pick-ring-svg {
            display: block;
            width: 100%;
            height: 100%;
            overflow: visible;
        }
        .so-pick-ring-track {
            fill: none;
            stroke: rgba(148,163,184,.18);
            stroke-width: 5;
        }
        .so-pick-ring-fill {
            fill: none;
            stroke-width: 5;
            stroke: var(--g, #34d399);
            stroke-linecap: round;
            transition: stroke-dashoffset .55s ease, stroke .25s ease;
        }
        .so-pick-ring-center {
            position: absolute;
            inset: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(15,23,42,.82);
            border: 1px solid rgba(255,255,255,.08);
            box-shadow: none;
        }
        .so-pick-ring-num {
            font-size: 1.15rem;
            font-weight: 900;
            color: #fff;
            line-height: 1;
            font-variant-numeric: tabular-nums;
        }
        .so-pick-ring-max { font-size: .52rem; color: #64748b; margin-top: .1rem; }
        .so-pick-ring-grade {
            font-size: .6rem;
            font-weight: 800;
            color: var(--g, #34d399);
            margin-top: .15rem;
            max-width: 72px;
            text-align: center;
            line-height: 1.2;
        }
        .so-pick-hero-contract {
            display: flex;
            align-items: center;
            gap: .45rem;
            flex-wrap: wrap;
        }
        .so-pick-hero-contract .so-contract-id { font-size: .88rem; }
        .so-pick-mny {
            font-size: .62rem;
            font-weight: 700;
            color: #cbd5e1;
            background: rgba(99,102,241,.12);
            border: 1px solid rgba(99,102,241,.25);
            padding: .18rem .5rem;
            border-radius: 999px;
        }
        .so-pick-dimensions {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: .55rem;
        }
        @media (max-width: 768px) { .so-pick-dimensions { grid-template-columns: 1fr; } }
        .so-pick-dim {
            padding: .6rem .65rem;
            border-radius: .75rem;
            background: rgba(15,23,42,.45);
            border: 1px solid rgba(148,163,184,.12);
            display: flex;
            flex-direction: column;
            gap: .35rem;
        }
        .so-pick-dim-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .4rem;
        }
        .so-pick-dim-title {
            font-size: .72rem;
            font-weight: 800;
            color: #e2e8f0;
        }
        .so-pick-dim-score {
            font-size: .68rem;
            font-weight: 800;
            color: #93c5fd;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }
        .so-pick-dim-help {
            font-size: .6rem;
            line-height: 1.55;
            color: #94a3b8;
            margin: 0;
        }
        .so-pick-bars {
            display: flex;
            flex-direction: column;
            gap: .45rem;
        }
        .so-pick-bar-track {
            height: 6px;
            border-radius: 999px;
            background: rgba(148,163,184,.12);
            overflow: hidden;
        }
        .so-pick-bar-fill {
            height: 100%;
            border-radius: inherit;
            transition: width .55s cubic-bezier(0.34, 1.2, 0.64, 1);
        }
        .so-pick-bar-fill.is-liq { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
        .so-pick-bar-fill.is-val { background: linear-gradient(90deg, #10b981, #34d399); }
        .so-pick-bar-fill.is-saf { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
        .so-pick-insights {
            display: flex;
            flex-direction: column;
            gap: .55rem;
        }
        .so-pick-insight-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: .45rem;
        }
        @media (max-width: 640px) { .so-pick-insight-grid { grid-template-columns: 1fr; } }
        .so-pick-insight {
            display: flex;
            align-items: flex-start;
            gap: .45rem;
            padding: .55rem .65rem;
            border-radius: .7rem;
            background: rgba(15,23,42,.45);
            border: 1px solid rgba(148,163,184,.12);
            text-align: right;
        }
        .so-pick-insight.is-pos { border-color: rgba(52,211,153,.22); background: rgba(16,185,129,.06); }
        .so-pick-insight.is-neg { border-color: rgba(244,114,182,.22); background: rgba(244,114,182,.05); }
        .so-pick-insight-icon {
            width: 22px; height: 22px;
            border-radius: .45rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: .65rem;
            font-weight: 900;
            flex-shrink: 0;
        }
        .so-pick-insight.is-pos .so-pick-insight-icon { color: #6ee7b7; background: rgba(16,185,129,.15); }
        .so-pick-insight.is-neg .so-pick-insight-icon { color: #fda4af; background: rgba(244,114,182,.12); }
        .so-pick-insight-title {
            display: block;
            font-size: .68rem;
            font-weight: 800;
            color: #f1f5f9;
            margin-bottom: .12rem;
        }
        .so-pick-insight-desc {
            display: block;
            font-size: .62rem;
            line-height: 1.6;
            color: #94a3b8;
        }
        .so-pick-conclusion {
            padding: .65rem .75rem;
            border-radius: .75rem;
            background: linear-gradient(135deg, rgba(59,130,246,.1), rgba(99,102,241,.06));
            border: 1px solid rgba(99,102,241,.22);
        }
        .so-pick-conclusion-title {
            display: block;
            font-size: .68rem;
            font-weight: 800;
            color: #93c5fd;
            margin-bottom: .25rem;
        }
        .so-pick-conclusion-desc {
            font-size: .68rem;
            line-height: 1.65;
            color: #e2e8f0;
            margin: 0;
        }
        .so-pick-footer {
            display: flex;
            flex-direction: column;
            gap: .85rem;
        }
        .so-pick-runners-block {
            display: flex;
            flex-direction: column;
            gap: .45rem;
        }
        .so-pick-runners-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .5rem;
            flex-wrap: wrap;
        }
        .so-pick-runners-head .so-pick-section-title { margin-bottom: 0; }
        .so-pick-runners-hint {
            font-size: .58rem;
            color: #64748b;
            font-weight: 600;
        }
        .so-pick-runners-table {
            border-radius: .75rem;
            background: rgba(15,23,42,.4);
            border: 1px solid rgba(148,163,184,.12);
            overflow: hidden;
        }
        .so-pick-runners-row {
            display: grid;
            grid-template-columns: 44px minmax(0, 1fr) 72px;
            align-items: center;
            gap: .5rem;
            padding: .48rem .65rem;
            text-align: right;
        }
        .so-pick-runners-row + .so-pick-runners-row {
            border-top: 1px solid rgba(148,163,184,.08);
        }
        .so-pick-runners-row--head {
            font-size: .58rem;
            font-weight: 700;
            color: #64748b;
            background: rgba(15,23,42,.55);
            padding-block: .4rem;
        }
        .so-pick-runners-row--head span:nth-child(3) { text-align: center; }
        button.so-pick-runners-row {
            width: 100%;
            border: none;
            background: transparent;
            cursor: pointer;
            transition: background .18s ease;
        }
        button.so-pick-runners-row:hover { background: rgba(99,102,241,.08); }
        button.so-pick-runners-row:active { background: rgba(99,102,241,.12); }
        .so-pick-runner-rank {
            width: 28px; height: 28px;
            border-radius: .5rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: .68rem;
            font-weight: 900;
            flex-shrink: 0;
            justify-self: start;
        }
        .so-pick-runner-rank.rank-2 {
            color: #e2e8f0;
            background: rgba(148,163,184,.18);
            border: 1px solid rgba(148,163,184,.28);
        }
        .so-pick-runner-rank.rank-3 {
            color: #fcd34d;
            background: rgba(251,191,36,.12);
            border: 1px solid rgba(251,191,36,.28);
        }
        .so-pick-runner-rank.rank-4,
        .so-pick-runner-rank.rank-5 {
            color: #93c5fd;
            background: rgba(59,130,246,.12);
            border: 1px solid rgba(96,165,250,.22);
        }
        .so-pick-runner-info {
            display: flex;
            align-items: center;
            gap: .4rem;
            min-width: 0;
            overflow: hidden;
        }
        .so-pick-runner-id {
            font-size: .72rem;
            font-weight: 700;
            color: #93c5fd;
            direction: ltr;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .so-pick-runner-type {
            font-size: .58rem;
            font-weight: 700;
            color: #94a3b8;
            padding: .12rem .35rem;
            border-radius: .35rem;
            background: rgba(148,163,184,.1);
            flex-shrink: 0;
        }
        .so-pick-runner-score-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: .05rem;
        }
        .so-pick-runner-score-label {
            font-size: .52rem;
            color: #64748b;
            font-weight: 600;
        }
        .so-pick-runner-score {
            font-size: .78rem;
            font-weight: 900;
            color: #f1f5f9;
            font-variant-numeric: tabular-nums;
            line-height: 1;
        }
        .so-pick-empty {
            border-radius: 1rem;
            padding: 1.25rem 1rem;
            text-align: center;
            font-size: .78rem;
            color: #94a3b8;
            background: rgba(15,23,42,.45);
            border: 1px dashed rgba(148,163,184,.2);
        }

        /* ========= فرصت‌های امروز ========= */
        .so-opp-section {
            display: flex;
            flex-direction: column;
            gap: .65rem;
        }
        .so-opp-section > .so-card-head {
            margin-bottom: 0;
            padding-bottom: .65rem;
        }
        .so-opp-section-head {
            justify-content: space-between;
            width: 100%;
            gap: .5rem;
        }
        .so-opp-section-head .so-card-title { flex: 1; min-width: 0; }
        .so-opp-intro {
            font-size: .68rem;
            line-height: 1.65;
            color: #94a3b8;
            margin: 0;
        }
        .so-opp-disclaimer { margin: 0; }
        .so-opp-count {
            font-size: .62rem;
            font-weight: 700;
            color: #6ee7b7;
            background: rgba(16,185,129,.1);
            border: 1px solid rgba(52,211,153,.25);
            padding: .25rem .55rem;
            border-radius: 999px;
            white-space: nowrap;
            flex-shrink: 0;
        }
        /* گرید دسته‌ها — تراز بر اساس تعداد */
        .so-opp-grid {
            display: grid;
            gap: .65rem;
            width: 100%;
        }
        .so-opp-grid--n1 { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
        .so-opp-grid--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .so-opp-grid--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .so-opp-grid--n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .so-opp-grid--n5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
        .so-opp-grid--n5 > .so-opp-card:nth-child(1) { grid-column: 1 / span 3; }
        .so-opp-grid--n5 > .so-opp-card:nth-child(2) { grid-column: 4 / span 3; }
        .so-opp-grid--n5 > .so-opp-card:nth-child(3) { grid-column: 1 / span 2; }
        .so-opp-grid--n5 > .so-opp-card:nth-child(4) { grid-column: 3 / span 2; }
        .so-opp-grid--n5 > .so-opp-card:nth-child(5) { grid-column: 5 / span 2; }
        @media (max-width: 1024px) {
            .so-opp-grid--n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .so-opp-grid--n3 > .so-opp-card:last-child:nth-child(odd) {
                grid-column: 1 / -1;
                width: calc(50% - .325rem);
                justify-self: center;
            }
            .so-opp-grid--n5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .so-opp-grid--n5 > .so-opp-card { grid-column: auto !important; width: auto !important; justify-self: stretch !important; }
            .so-opp-grid--n5 > .so-opp-card:last-child:nth-child(odd) {
                grid-column: 1 / -1 !important;
                width: calc(50% - .325rem) !important;
                justify-self: center !important;
            }
        }
        @media (max-width: 640px) {
            .so-opp-grid--n2,
            .so-opp-grid--n3,
            .so-opp-grid--n4,
            .so-opp-grid--n5 { grid-template-columns: minmax(0, 1fr); }
            .so-opp-grid--n3 > .so-opp-card:last-child:nth-child(odd),
            .so-opp-grid--n5 > .so-opp-card:last-child:nth-child(odd) {
                width: auto !important;
                justify-self: stretch !important;
            }
            .so-opp-grid--n1 { max-width: none; }
        }
        .so-opp-card {
            display: flex;
            flex-direction: column;
            gap: .5rem;
            padding: .65rem .7rem;
            border-radius: .85rem;
            background: rgba(15,23,42,.45);
            border: 1px solid rgba(148,163,184,.12);
            border-right: 3px solid var(--oc, #94a3b8);
            min-width: 0;
            height: 100%;
        }
        .so-opp-card-head {
            display: flex;
            align-items: flex-start;
            gap: .5rem;
            min-height: 2.6rem;
        }
        .so-opp-card-head-text {
            flex: 1;
            min-width: 0;
        }
        .so-opp-card-count {
            font-size: .54rem;
            font-weight: 700;
            color: var(--oc, #94a3b8);
            background: color-mix(in srgb, var(--oc, #94a3b8) 10%, transparent);
            border: 1px solid color-mix(in srgb, var(--oc, #94a3b8) 22%, transparent);
            padding: .12rem .4rem;
            border-radius: 999px;
            white-space: nowrap;
            flex-shrink: 0;
            align-self: flex-start;
            margin-top: .1rem;
        }
        .so-opp-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: .6rem;
            font-size: .95rem;
            flex-shrink: 0;
            background: color-mix(in srgb, var(--oc, #94a3b8) 14%, transparent);
            border: 1px solid color-mix(in srgb, var(--oc, #94a3b8) 28%, transparent);
        }
        .so-opp-card-title {
            font-size: .72rem;
            font-weight: 800;
            color: #f1f5f9;
            line-height: 1.35;
            margin: 0;
        }
        .so-opp-card-help {
            font-size: .58rem;
            line-height: 1.55;
            color: #94a3b8;
            margin: .15rem 0 0;
        }
        .so-opp-list {
            flex: 1;
            display: flex;
            flex-direction: column;
            border-radius: .65rem;
            background: rgba(2,6,23,.35);
            border: 1px solid rgba(148,163,184,.08);
            overflow: hidden;
        }
        .so-opp-row {
            display: grid;
            grid-template-columns: 26px minmax(0, 1fr) 54px minmax(68px, 84px);
            align-items: center;
            gap: .4rem;
            padding: .45rem .55rem;
            text-align: right;
        }
        .so-opp-row + .so-opp-row { border-top: 1px solid rgba(148,163,184,.07); }
        .so-opp-row--head {
            font-size: .54rem;
            font-weight: 700;
            color: #64748b;
            background: rgba(15,23,42,.55);
            padding-block: .38rem;
            flex-shrink: 0;
            letter-spacing: .02em;
        }
        .so-opp-row--head span:first-child,
        .so-opp-row--head span:nth-child(3),
        .so-opp-row--head span:nth-child(4) { text-align: center; }
        /* zebra فقط روی دکمه‌های داده — نه با شمارش header */
        .so-opp-list > button.so-opp-row:nth-child(even of button.so-opp-row) {
            background: rgba(15,23,42,.2);
        }
        button.so-opp-row {
            width: 100%;
            border: none;
            background: transparent;
            cursor: pointer;
            transition: background .18s ease, box-shadow .18s ease;
            box-shadow: inset 3px 0 0 transparent;
        }
        .so-opp-list > button.so-opp-row:hover,
        .so-opp-list > button.so-opp-row:focus-visible {
            background: color-mix(in srgb, var(--oc, #6366f1) 16%, rgba(30,41,59,.55)) !important;
            box-shadow: inset 3px 0 0 var(--oc, #6366f1);
        }
        .so-opp-list > button.so-opp-row:active {
            background: color-mix(in srgb, var(--oc, #6366f1) 24%, rgba(30,41,59,.65)) !important;
        }
        .so-opp-row-rank {
            width: 22px;
            height: 22px;
            border-radius: .4rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: .58rem;
            font-weight: 900;
            color: var(--oc, #94a3b8);
            background: color-mix(in srgb, var(--oc, #94a3b8) 12%, transparent);
            border: 1px solid color-mix(in srgb, var(--oc, #94a3b8) 26%, transparent);
            justify-self: center;
        }
        .so-opp-row-contract {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: .06rem;
            overflow: hidden;
        }
        .so-opp-row-id {
            font-size: .7rem;
            font-weight: 700;
            color: #93c5fd;
            direction: ltr;
            text-align: right;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            line-height: 1.25;
        }
        .so-opp-row-base {
            font-size: .54rem;
            font-weight: 600;
            color: #64748b;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .so-opp-row-tags {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: .25rem;
            min-width: 0;
        }
        .so-opp-row-tags .so-pill {
            font-size: .48rem;
            padding: .06rem .28rem;
            line-height: 1.3;
        }
        .so-opp-row .so-pill {
            justify-self: center;
            font-size: .52rem;
            padding: .12rem .3rem;
            white-space: nowrap;
        }
        .so-opp-row-metric {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: .1rem;
            text-align: center;
            min-width: 0;
        }
        .so-opp-row-metric-val {
            display: inline-block;
            font-size: .66rem;
            font-weight: 800;
            color: var(--oc, #e2e8f0);
            font-variant-numeric: tabular-nums;
            direction: ltr;
            line-height: 1.2;
            white-space: nowrap;
            padding: .14rem .38rem;
            border-radius: .4rem;
            background: color-mix(in srgb, var(--oc, #94a3b8) 14%, transparent);
            border: 1px solid color-mix(in srgb, var(--oc, #94a3b8) 22%, transparent);
        }
        .so-opp-row-metric-sub {
            font-size: .5rem;
            color: #64748b;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
            line-height: 1.2;
        }

        /* ========= تحلیل هوشمند (مودال جزئیات) ========= */
        .so-ai-box {
            margin: .25rem 0 1rem; border-radius: .85rem; padding: .85rem .9rem;
            background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(15,23,42,.5));
            border: 1px solid rgba(129,140,248,.28);
        }
        .so-ai-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; }
        .so-ai-title { display: flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 800; color: #c7d2fe; }
        .so-ai-bot { font-size: 1.05rem; }
        .so-ai-score {
            display: flex; flex-direction: column; align-items: center; line-height: 1;
            min-width: 58px; padding: .35rem .5rem; border-radius: .6rem;
            background: rgba(15,23,42,.55); border: 1.5px solid var(--g, #818cf8);
        }
        .so-ai-score-num { font-size: 1.25rem; font-weight: 900; color: #fff; }
        .so-ai-score-grade { font-size: .6rem; font-weight: 800; color: var(--g, #818cf8); margin-top: .15rem; }
        .so-ai-bars { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .7rem; }
        .so-ai-bar { display: flex; align-items: center; gap: .5rem; }
        .so-ai-bar-label { font-size: .64rem; color: #94a3b8; width: 64px; flex-shrink: 0; }
        .so-ai-bar-track { flex: 1; height: 6px; border-radius: 999px; background: rgba(148,163,184,.15); overflow: hidden; }
        .so-ai-bar-fill { display: block; height: 100%; border-radius: 999px; }
        .so-ai-bar-val { font-size: .66rem; font-weight: 700; color: #cbd5e1; width: 26px; text-align: left; direction: ltr; }
        .so-ai-reasons { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
        .so-ai-reasons li { display: flex; align-items: flex-start; gap: .4rem; font-size: .7rem; line-height: 1.5; }
        .so-ai-reasons li span:first-child { flex-shrink: 0; font-weight: 800; }
        .so-ai-pos { color: #a7f3d0; }
        .so-ai-pos span:first-child { color: #34d399; }
        .so-ai-neg { color: #fecdd3; }
        .so-ai-neg span:first-child { color: #fb7185; }
        .so-ai-suggest { font-size: .74rem; color: #e2e8f0; line-height: 1.7; }
        .so-ai-suggest b { color: #c7d2fe; }
        .so-ai-disclaimer { font-size: .6rem; color: #64748b; margin-top: .5rem; }
        .so-help { cursor: help; }
        .so-help-q {
            display: inline-flex; align-items: center; justify-content: center;
            width: 13px; height: 13px; border-radius: 50%; font-size: .6rem; font-weight: 700;
            color: #94a3b8; background: rgba(148,163,184,.18); margin-right: .15rem;
        }
        .so-help:hover .so-help-q { color: #c7d2fe; background: rgba(129,140,248,.3); }

        /* ========= Table ========= */
        .so-table-wrap {
            position: relative;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            border-radius: .85rem;
            border: 1px solid rgba(255,255,255,.06);
        }
        .so-table-wrap::-webkit-scrollbar { height: 6px; }
        .so-table-wrap::-webkit-scrollbar-thumb {
            background: rgba(96,165,250,.3);
            border-radius: 999px;
        }
        .so-table {
            width: 100%;
            min-width: max(580px, max-content);
            border-collapse: separate;
            border-spacing: 0;
        }
        .so-table thead {
            background: linear-gradient(180deg, rgba(15,23,42,.85), rgba(15,23,42,.65));
            position: sticky; top: 0; z-index: 2;
        }
        .so-table th {
            padding: .7rem;
            text-align: right;
            font-size: .7rem;
            font-weight: 800;
            color: #cbd5e1;
            border-bottom: 1px solid rgba(96,165,250,.18);
            white-space: nowrap;
            cursor: pointer;
            user-select: none;
            transition: color .15s ease, background-color .15s ease;
        }
        .so-table th:hover { color: #f1f5f9; background: rgba(96,165,250,.06); }
        .so-table th.sort-active { color: #93c5fd; }
        .so-table td {
            padding: .7rem;
            font-size: .78rem;
            color: #e2e8f0;
            border-bottom: 1px solid rgba(255,255,255,.04);
            font-variant-numeric: tabular-nums;
        }
        .so-table tbody tr:hover {
            background: linear-gradient(90deg, rgba(59,130,246,.06), transparent);
        }
        .so-table tbody tr:nth-child(even) { background: rgba(255,255,255,.015); }
        .so-table tbody tr.is-locked { opacity: .55; cursor: not-allowed; }

        .so-pill {
            display: inline-flex; align-items: center;
            padding: .18rem .55rem;
            border-radius: 999px;
            font-size: .65rem;
            font-weight: 800;
            white-space: nowrap;
        }
        button.so-pill {
            cursor: pointer;
            background: rgba(148,163,184,.12);
            color: #cbd5e1;
            border: 1px solid rgba(148,163,184,.25);
            transition: all .15s ease;
        }
        button.so-pill:hover { border-color: rgba(96,165,250,.5); color: #e2e8f0; }
        .so-pill-active {
            background: rgba(59,130,246,.22) !important;
            color: #bfdbfe !important;
            border-color: rgba(96,165,250,.6) !important;
        }
        .so-pill-call { background: rgba(52,211,153,.18); color: #6ee7b7; border: 1px solid rgba(52,211,153,.35); }
        .so-pill-put { background: rgba(244,114,182,.18); color: #fda4af; border: 1px solid rgba(244,114,182,.35); }
        .so-pill-itm { background: rgba(96,165,250,.18); color: #93c5fd; border: 1px solid rgba(96,165,250,.35); }
        .so-pill-otm { background: rgba(148,163,184,.18); color: #cbd5e1; border: 1px solid rgba(148,163,184,.32); }
        .so-pill-atm { background: rgba(251,191,36,.18); color: #fcd34d; border: 1px solid rgba(252,211,77,.35); }
        .so-pct-pos { color: #34d399; font-weight: 700; }
        .so-pct-neg { color: #fb7185; font-weight: 700; }
        .so-contract-id {
            display: inline-block;
            font-weight: 700;
            color: #93c5fd;
            font-size: .78rem;
            direction: ltr;
        }
        .so-fav-btn {
            background: none; border: none; cursor: pointer;
            font-size: 1.05rem; padding: 0; line-height: 1;
            color: #64748b; transition: color .15s ease, transform .15s ease;
        }
        .so-fav-btn.is-fav { color: #fbbf24; }
        .so-fav-btn:hover { transform: scale(1.15); }

        /* ========= Premium gate ========= */
        .so-locked-icon {
            display: inline-flex; align-items: center; justify-content: center;
            width: 22px; height: 22px;
            border-radius: 6px;
            background: linear-gradient(135deg, rgba(167,139,250,.22), rgba(76,29,149,.18));
            border: 1px solid rgba(167,139,250,.4);
            color: #c4b5fd;
        }
        .so-premium-overlay {
            position: relative;
            margin-top: 1rem;
            padding: 1rem 1.1rem;
            border-radius: .85rem;
            background: linear-gradient(135deg, rgba(167,139,250,.16), rgba(76,29,149,.12));
            border: 1px solid rgba(167,139,250,.4);
            display: flex; align-items: center; gap: .85rem;
            flex-wrap: wrap;
        }
        .so-premium-overlay-text { flex: 1 1 200px; }
        .so-premium-overlay-cta {
            display: inline-flex; align-items: center; gap: .4rem;
            padding: .55rem 1.1rem;
            border-radius: .7rem;
            background: linear-gradient(135deg, #8b5cf6, #6366f1);
            color: #fff;
            font-weight: 800;
            font-size: .78rem;
            box-shadow: 0 8px 22px rgba(139,92,246,.4);
            text-decoration: none;
            transition: transform .2s ease, box-shadow .2s ease;
        }
        .so-premium-overlay-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(139,92,246,.55); }

        /* ========= Strategies — sub-tabs + picks (الگوی commodity) ========= */
        .so-strat-hero {
            position: relative;
            padding: 1.2rem 1.25rem;
            border-radius: 1.25rem;
            background: linear-gradient(150deg, rgba(59,130,246,.22) 0%, rgba(15,23,42,.85) 80%);
            border: 1px solid rgba(99,102,241,.35);
            box-shadow: 0 20px 50px rgba(59,130,246,.18);
            overflow: hidden;
            margin-bottom: 1.2rem;
        }
        .so-strat-hero.is-emerald { background: linear-gradient(150deg, rgba(52,211,153,.22) 0%, rgba(15,23,42,.85) 80%); border-color: rgba(52,211,153,.4); box-shadow: 0 20px 50px rgba(52,211,153,.18); }
        .so-strat-hero.is-rose { background: linear-gradient(150deg, rgba(244,114,182,.22) 0%, rgba(15,23,42,.85) 80%); border-color: rgba(244,114,182,.4); box-shadow: 0 20px 50px rgba(244,114,182,.18); }
        .so-strat-hero-glow {
            position: absolute;
            inset: -40% -20% auto auto;
            width: 380px; height: 380px;
            background: radial-gradient(circle, rgba(99,102,241,.22), transparent 70%);
            pointer-events: none;
        }
        .so-strat-segment-row {
            position: relative;
            display: flex; flex-wrap: wrap; gap: .55rem;
            margin-bottom: 1rem;
        }
        .so-strat-seg-btn {
            display: inline-flex; align-items: center; gap: .6rem;
            padding: .65rem 1rem;
            border-radius: .85rem;
            background: rgba(15,23,42,.55);
            border: 1px solid rgba(255,255,255,.08);
            color: #cbd5e1;
            cursor: pointer;
            transition: all .25s ease;
            flex: 1 1 200px;
            min-width: 0;
        }
        .so-strat-seg-btn:hover { background: rgba(15,23,42,.85); border-color: rgba(99,102,241,.4); transform: translateY(-1px); }
        .so-strat-seg-btn.is-active {
            background: linear-gradient(135deg, rgba(59,130,246,.3), rgba(99,102,241,.18));
            border-color: rgba(99,102,241,.6);
            color: #f8fafc;
            box-shadow: 0 8px 22px rgba(59,130,246,.28);
        }
        .so-strat-seg-btn.is-active.is-emerald {
            background: linear-gradient(135deg, rgba(52,211,153,.3), rgba(6,78,59,.18));
            border-color: rgba(52,211,153,.6);
            box-shadow: 0 8px 22px rgba(52,211,153,.28);
        }
        .so-strat-seg-btn.is-active.is-rose {
            background: linear-gradient(135deg, rgba(244,114,182,.3), rgba(157,23,77,.18));
            border-color: rgba(244,114,182,.6);
            box-shadow: 0 8px 22px rgba(244,114,182,.28);
        }
        .so-strat-seg-icon {
            display: inline-flex; align-items: center; justify-content: center;
            width: 38px; height: 38px;
            border-radius: .75rem;
            background: rgba(99,102,241,.18);
            border: 1px solid rgba(99,102,241,.35);
            color: #93c5fd;
            flex-shrink: 0;
        }
        .so-strat-seg-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
        .so-strat-seg-title { font-size: .85rem; font-weight: 800; color: #f8fafc; line-height: 1.2; }
        .so-strat-seg-sub { font-size: .65rem; color: #94a3b8; margin-top: .15rem; font-family: 'Inter', sans-serif; }
        .so-strat-hero-context {
            position: relative;
            display: flex; gap: .85rem;
            padding: .85rem;
            border-radius: .85rem;
            background: rgba(15,23,42,.55);
            border: 1px solid rgba(255,255,255,.06);
        }
        .so-strat-hero-ctx-icon {
            display: inline-flex; align-items: center; justify-content: center;
            width: 42px; height: 42px;
            border-radius: .75rem;
            background: rgba(59,130,246,.18);
            border: 1px solid rgba(99,102,241,.35);
            color: #93c5fd;
            flex-shrink: 0;
        }
        .so-strat-hero-headline {
            font-size: .92rem; font-weight: 800; color: #f1f5f9; line-height: 1.3;
        }
        .so-strat-hero-sub {
            font-size: .72rem; color: #94a3b8; margin-top: .25rem; line-height: 1.55;
        }
        .so-strat-hero-pill {
            display: inline-flex; align-items: center; gap: .35rem;
            padding: .3rem .7rem; border-radius: 999px;
            font-size: .68rem; font-weight: 700;
            color: #93c5fd;
            background: rgba(99,102,241,.18);
            border: 1px solid rgba(99,102,241,.4);
            white-space: nowrap; align-self: flex-start;
        }

        .so-strat-picks {
            display: grid;
            grid-template-columns: 1fr;
            gap: .75rem;
            margin-bottom: 1.2rem;
        }
        @media (min-width: 640px) { .so-strat-picks { grid-template-columns: repeat(2, 1fr); } }
        @media (min-width: 1024px) { .so-strat-picks { grid-template-columns: repeat(3, 1fr); } }
        .so-strat-pick {
            display: flex; flex-direction: column;
            padding: 1rem 1.1rem;
            border-radius: 1rem;
            background: linear-gradient(160deg, rgba(15,23,42,.75) 0%, rgba(15,23,42,.5) 100%);
            border: 1px solid rgba(99,102,241,.22);
            cursor: pointer;
            transition: all .25s ease;
            position: relative;
            overflow: hidden;
            -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
        }
        .so-strat-pick::before {
            content: ""; position: absolute;
            inset: -30% -20% auto auto;
            width: 200px; height: 200px;
            background: radial-gradient(circle, var(--pick-glow, rgba(99,102,241,.2)), transparent 70%);
            pointer-events: none;
            opacity: .6;
        }
        .so-strat-pick:hover {
            transform: translateY(-3px);
            border-color: var(--pick-border, rgba(99,102,241,.5));
            box-shadow: 0 18px 38px rgba(59,130,246,.18);
        }
        .so-strat-pick-head {
            display: flex; align-items: center; justify-content: space-between;
            margin-bottom: .55rem;
            position: relative;
        }
        .so-strat-pick-rank {
            display: inline-flex; align-items: center; justify-content: center;
            width: 26px; height: 26px;
            border-radius: 999px;
            background: linear-gradient(135deg, #3b82f6, #6366f1);
            color: #fff;
            font-size: .72rem;
            font-weight: 800;
            box-shadow: 0 6px 14px rgba(59,130,246,.4);
        }
        .so-strat-pick-title {
            font-size: .72rem;
            font-weight: 700;
            color: #cbd5e1;
            text-align: left;
        }
        .so-strat-pick-name {
            font-size: 1rem;
            font-weight: 800;
            color: #93c5fd;
            font-family: 'Inter', sans-serif;
            direction: ltr;
            text-align: right;
            margin-bottom: .35rem;
            position: relative;
        }
        .so-strat-pick-metric {
            font-size: .72rem;
            color: #cbd5e1;
            position: relative;
        }
        .so-strat-pick-metric strong { color: #f1f5f9; }
        .so-strat-pick-arrow {
            display: inline-flex; align-items: center; gap: .25rem;
            margin-top: auto; padding-top: .8rem;
            color: #93c5fd;
            font-size: .7rem;
            font-weight: 700;
            position: relative;
        }

        /* ========= Strategy table ========= */
        .so-strat-table-card {
            border-radius: 1.25rem;
            background: linear-gradient(160deg, rgba(15,23,42,.85) 0%, rgba(2,6,23,.85) 100%);
            border: 1px solid rgba(99,102,241,.2);
            box-shadow: 0 18px 38px -22px rgba(0,0,0,.6);
            overflow: hidden;
        }
        .so-strat-table-head {
            display: flex; align-items: center; gap: .6rem;
            padding: 1.1rem 1.15rem .85rem;
            border-bottom: 1px solid rgba(99,102,241,.15);
            flex-wrap: wrap;
        }
        .so-strat-table-icon {
            display: inline-flex; align-items: center; justify-content: center;
            width: 32px; height: 32px;
            border-radius: .65rem;
            background: rgba(59,130,246,.18);
            border: 1px solid rgba(99,102,241,.35);
            color: #93c5fd;
        }
        .so-strat-table-title {
            font-size: .9rem;
            font-weight: 800;
            color: #f1f5f9;
        }
        .so-strat-table-meta {
            margin-inline-start: auto;
            font-size: .7rem;
            color: #94a3b8;
        }
        .so-strat-table-wrap {
            overflow-x: auto;
            border-radius: .85rem;
            background: rgba(15,23,42,.35);
            border: 1px solid rgba(99,102,241,.12);
        }
        .so-strat-table-modern {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            font-size: .78rem;
            min-width: max(720px, max-content);
        }
        .so-strat-table-modern thead {
            background: linear-gradient(135deg, rgba(59,130,246,.18) 0%, rgba(99,102,241,.12) 100%);
            position: sticky;
            top: 0;
            z-index: 5;
        }
        .so-strat-table-card.is-emerald .so-strat-table-modern thead {
            background: linear-gradient(135deg, rgba(52,211,153,.18) 0%, rgba(6,78,59,.12) 100%);
        }
        .so-strat-table-modern th {
            padding: .85rem .7rem;
            text-align: right;
            color: #cbd5e1;
            font-weight: 700;
            font-size: .68rem;
            border-bottom: 1px solid rgba(99,102,241,.22);
            white-space: nowrap;
        }
        .so-strat-table-modern th.so-strat-sortable { cursor: pointer; user-select: none; }
        .so-strat-table-modern th.so-strat-sortable:hover { color: #fff; background: rgba(59,130,246,.1); }
        .so-strat-table-modern th.so-strat-sortable.is-active { color: #93c5fd; }
        .so-strat-table-card.is-emerald .so-strat-table-modern th.so-strat-sortable.is-active { color: #6ee7b7; }
        .so-strat-table-modern td {
            padding: .8rem .7rem;
            color: #e2e8f0;
            border-bottom: 1px solid rgba(255,255,255,.04);
            vertical-align: middle;
        }
        .so-strat-table-modern tbody tr { cursor: pointer; transition: background .15s ease; }
        .so-strat-table-modern tbody tr:hover {
            background: linear-gradient(90deg, rgba(59,130,246,.1) 0%, rgba(99,102,241,.06) 100%);
        }
        .so-strat-table-card.is-emerald .so-strat-table-modern tbody tr:hover {
            background: linear-gradient(90deg, rgba(52,211,153,.1) 0%, rgba(6,78,59,.06) 100%);
        }
        .so-strat-metric {
            display: inline-block;
            padding: .22rem .55rem;
            border-radius: 6px;
            font-size: .72rem;
            font-weight: 700;
        }
        .so-strat-metric-emerald { background: rgba(16,185,129,.14); border: 1px solid rgba(52,211,153,.3); color: #6ee7b7; }
        .so-strat-metric-cyan { background: rgba(34,211,238,.12); border: 1px solid rgba(103,232,249,.3); color: #67e8f9; }
        .so-strat-metric-amber { background: rgba(251,191,36,.12); border: 1px solid rgba(252,211,77,.3); color: #fcd34d; }
        .so-strat-metric-blue { background: rgba(59,130,246,.12); border: 1px solid rgba(96,165,250,.3); color: #93c5fd; }
        .so-strat-confidence {
            display: inline-flex;
            align-items: center;
            padding: .2rem .55rem;
            border-radius: 999px;
            font-size: .68rem;
            font-weight: 700;
        }
        .so-strat-confidence.is-high { color: #6ee7b7; background: rgba(16,185,129,.14); border: 1px solid rgba(52,211,153,.3); }
        .so-strat-confidence.is-mid { color: #fcd34d; background: rgba(251,191,36,.14); border: 1px solid rgba(251,191,36,.3); }
        .so-strat-confidence.is-low { color: #fda4af; background: rgba(244,63,94,.14); border: 1px solid rgba(244,114,182,.3); }
        .so-strat-stability {
            display: inline-flex;
            align-items: center;
            gap: .35rem;
            padding: .2rem .5rem;
            border-radius: 999px;
            font-size: .68rem;
            font-weight: 800;
        }
        .so-strat-compare {
            border-radius: 1rem;
            padding: 1rem;
            margin-top: 1rem;
            background: rgba(15,23,42,.55);
            border: 1px solid rgba(99,102,241,.22);
        }
        .so-strat-toolbar {
            border-radius: 1.15rem;
            padding: 1rem 1.1rem;
            margin-bottom: 1rem;
            background: rgba(15,23,42,.55);
            border: 1px solid rgba(255,255,255,.08);
        }
        .so-strat-popover {
            position: absolute;
            z-index: 100;
            margin-top: .5rem;
            right: 0;
            left: 0;
            padding: .5rem;
            border-radius: .85rem;
            background: rgba(15,23,42,.95);
            border: 1px solid rgba(99,102,241,.35);
            box-shadow: 0 16px 40px rgba(0,0,0,.45);
        }
        @keyframes so-strat-fade {
            from { opacity: 0; transform: translateY(6px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .so-strat-animating { animation: so-strat-fade 300ms cubic-bezier(0.22, 1, 0.36, 1); }

        /* ========= Strategy library (30 strategies) ========= */
        .so-strat-layout {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
        }
        /* کنترل بخش‌بندی‌شدهٔ پنل تحلیل استراتژی (الهام از صفحهٔ کالایی) */
        .so-seg {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: .4rem;
            padding: .35rem;
            border-radius: .9rem;
            background: rgba(2,6,23,.45);
            border: 1px solid rgba(255,255,255,.06);
            margin-bottom: 1rem;
        }
        .so-seg-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: .4rem;
            padding: .6rem .5rem;
            border-radius: .65rem;
            background: transparent;
            border: 1px solid transparent;
            color: #cbd5e1;
            font-size: .76rem;
            font-weight: 700;
            cursor: pointer;
            transition: background .2s, color .2s, border-color .2s;
            white-space: nowrap;
        }
        .so-seg-btn:hover { background: rgba(255,255,255,.04); color: #f1f5f9; }
        .so-seg-btn.is-active {
            color: #fff;
            background: linear-gradient(135deg, rgba(99,102,241,.5), rgba(59,130,246,.4));
            border-color: rgba(129,140,248,.55);
            box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
        }
        .so-seg-ico { font-size: .95rem; line-height: 1; }
        .so-seg-badge {
            display: inline-flex; align-items: center; justify-content: center;
            min-width: 18px; height: 16px; padding: 0 .3rem; border-radius: 999px;
            font-size: .58rem; font-weight: 800; direction: ltr;
            background: rgba(99,102,241,.3); color: #c7d2fe;
        }
        @media (max-width: 520px) {
            .so-seg-btn { flex-direction: column; gap: .15rem; font-size: .66rem; padding: .5rem .3rem; }
        }
        /* کاتالوگ استراتژی‌ها (هر کارت → صفحهٔ مجزا) */
        .so-strat-cat-head { margin-bottom: 1.1rem; }
        .so-strat-cat-head-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .5rem; flex-wrap: wrap; }
        .so-strat-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: .85rem;
        }
        @media (min-width: 640px) { .so-strat-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (min-width: 1024px) { .so-strat-grid { grid-template-columns: repeat(3, 1fr); } }
        .so-strat-card {
            display: flex;
            flex-direction: column;
            gap: .6rem;
            text-align: right;
            padding: 1rem 1.05rem;
            border-radius: 1rem;
            background: linear-gradient(160deg, rgba(30,41,59,.55), rgba(15,23,42,.6));
            border: 1px solid rgba(99,102,241,.18);
            cursor: pointer;
            transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
        }
        .so-strat-card:hover {
            transform: translateY(-3px);
            border-color: rgba(129,140,248,.5);
            background: linear-gradient(160deg, rgba(49,46,129,.4), rgba(15,23,42,.65));
            box-shadow: 0 14px 32px -16px rgba(99,102,241,.6);
        }
        .so-strat-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
        .so-strat-card .so-strat-spark { width: 60px; height: 26px; flex-shrink: 0; opacity: .85; }
        .so-strat-card-cta {
            display: inline-flex; align-items: center; gap: .35rem; margin-top: auto;
            font-size: .72rem; font-weight: 800; color: #a5b4fc;
            padding-top: .5rem; border-top: 1px solid rgba(148,163,184,.1);
        }
        .so-strat-card:hover .so-strat-card-cta { color: #c7d2fe; }
        .so-strat-back {
            display: inline-flex; align-items: center; gap: .5rem;
            font-size: .82rem; font-weight: 700; color: #cbd5e1;
            padding: .5rem .9rem; margin-bottom: 1rem; border-radius: .7rem;
            background: rgba(30,41,59,.5); border: 1px solid rgba(148,163,184,.18);
            cursor: pointer; transition: background .15s, color .15s, border-color .15s;
        }
        .so-strat-back:hover { background: rgba(51,65,85,.6); color: #fff; border-color: rgba(148,163,184,.32); }
        .so-strat-topbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
        .so-strat-topbar .so-strat-back { margin-bottom: 0; }
        .so-strat-crumb {
            display: inline-flex; align-items: center; gap: .4rem;
            font-size: .78rem; padding: .4rem .8rem; border-radius: .6rem;
            background: rgba(15,23,42,.5); border: 1px solid rgba(99,102,241,.18);
        }
        .so-strat-crumb-name { color: #c7d2fe; font-weight: 800; }
        /* هیروی صفحهٔ مجزای استراتژی — عنوان درشت و واضح */
        .so-strat-hero-page { padding: 1.25rem 1.3rem; }
        .so-strat-hero-page-row { position: relative; display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
        .so-strat-hero-icon-lg {
            display: inline-flex; align-items: center; justify-content: center;
            width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
            background: linear-gradient(135deg, rgba(99,102,241,.3), rgba(59,130,246,.2));
            border: 1px solid rgba(129,140,248,.4);
            color: #c7d2fe;
            box-shadow: 0 8px 22px -8px rgba(99,102,241,.5);
        }
        .so-strat-hero-name {
            font-size: 1.45rem; font-weight: 900; line-height: 1.25;
            background: linear-gradient(90deg, #f8fafc, #c7d2fe);
            -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
        }
        @media (max-width: 640px) { .so-strat-hero-name { font-size: 1.2rem; } .so-strat-hero-icon-lg { width: 46px; height: 46px; } }
        .so-strat-hero-en { font-size: .72rem; color: #94a3b8; letter-spacing: .03em; margin-top: .1rem; }
        .so-strat-hero-page .so-strat-hero-headline { font-size: .9rem; color: #e2e8f0; font-weight: 700; margin-top: .55rem; line-height: 1.6; }
        .so-strat-hero-page .so-strat-hero-sub { font-size: .76rem; color: #cbd5e1; margin-top: .3rem; line-height: 1.7; }
        .so-strat-hero-tags { position: relative; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
        .so-strat-hero-tag {
            display: inline-flex; align-items: center; gap: .35rem;
            font-size: .72rem; font-weight: 700; padding: .35rem .7rem; border-radius: 999px;
            background: rgba(15,23,42,.55); border: 1px solid rgba(148,163,184,.16); color: #e2e8f0;
        }
        @media (min-width: 1024px) {
            .so-strat-layout { grid-template-columns: 300px 1fr; gap: 1.25rem; align-items: start; }
        }
        .so-strat-sidebar {
            border-radius: 1.15rem;
            background: linear-gradient(160deg, rgba(15,23,42,.9), rgba(2,6,23,.92));
            border: 1px solid rgba(99,102,241,.22);
            padding: .85rem;
            max-height: 75vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        @media (min-width: 1024px) { .so-strat-sidebar { position: sticky; top: 7rem; } }
        .so-strat-cat-row { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .65rem; }
        .so-strat-cat-btn {
            padding: .28rem .6rem; border-radius: 999px; font-size: .62rem; font-weight: 700;
            background: rgba(15,23,42,.6); border: 1px solid rgba(148,163,184,.2); color: #94a3b8;
            cursor: pointer; transition: all .15s ease;
        }
        .so-strat-cat-btn.is-active {
            background: rgba(59,130,246,.2); border-color: rgba(99,102,241,.45); color: #bfdbfe;
        }
        .so-strat-list {
            overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: .4rem;
        }
        .so-strat-list-item {
            display: flex; align-items: flex-start; gap: .55rem; padding: .6rem .65rem;
            border-radius: .75rem; background: rgba(15,23,42,.45); border: 1px solid transparent;
            cursor: pointer; text-align: right; transition: all .18s ease; width: 100%;
        }
        .so-strat-list-item:hover { background: rgba(59,130,246,.08); border-color: rgba(99,102,241,.25); }
        .so-strat-list-item.is-active {
            background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(99,102,241,.1));
            border-color: rgba(99,102,241,.5); box-shadow: 0 6px 18px rgba(59,130,246,.15);
        }
        .so-strat-list-name { font-size: .78rem; font-weight: 800; color: #f1f5f9; line-height: 1.3; }
        .so-strat-list-en { font-size: .58rem; color: #64748b; margin-top: .1rem; }
        .so-strat-list-meta { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .3rem; }
        .so-strat-ver {
            font-size: .55rem; font-weight: 700; padding: .1rem .35rem; border-radius: .3rem;
            background: rgba(99,102,241,.2); color: #c4b5fd; font-family: monospace;
        }
        .so-strat-risk { font-size: .55rem; font-weight: 700; padding: .1rem .35rem; border-radius: .3rem; }
        .so-strat-risk.is-low { background: rgba(52,211,153,.15); color: #6ee7b7; }
        .so-strat-risk.is-medium { background: rgba(251,191,36,.15); color: #fcd34d; }
        .so-strat-risk.is-high { background: rgba(251,113,133,.15); color: #fda4af; }
        .so-strat-risk.is-unlimited { background: rgba(239,68,68,.2); color: #fca5a5; }
        .so-strat-dir { font-size: .55rem; font-weight: 700; padding: .1rem .35rem; border-radius: .3rem; background: rgba(148,163,184,.15); color: #cbd5e1; }
        .so-strat-dir.dir-bullish { background: rgba(52,211,153,.14); color: #6ee7b7; }
        .so-strat-dir.dir-bearish { background: rgba(251,113,133,.14); color: #fda4af; }
        .so-strat-dir.dir-volatile { background: rgba(168,85,247,.16); color: #d8b4fe; }
        .so-strat-dir.dir-low { background: rgba(56,189,248,.14); color: #7dd3fc; }
        .so-strat-needs { font-size: .55rem; font-weight: 700; padding: .1rem .35rem; border-radius: .3rem; background: rgba(56,189,248,.12); color: #7dd3fc; }
        .so-strat-spark { width: 60px; height: 26px; flex-shrink: 0; align-self: center; opacity: .9; }
        .so-strat-list-item:hover .so-strat-spark, .so-strat-list-item.is-active .so-strat-spark { opacity: 1; }

        /* ========= مقایسهٔ رایگان / پیشرفته ========= */
        .so-vip-compare { margin-top: 1rem; }
        .so-vip-compare-title { font-size: .95rem; font-weight: 800; color: #f1f5f9; text-align: center; margin-bottom: .9rem; }
        .so-vip-grid { display: grid; gap: .9rem; grid-template-columns: 1fr; }
        @media (min-width: 720px) { .so-vip-grid { grid-template-columns: 1fr 1fr; } }
        .so-vip-col { position: relative; border-radius: 1rem; padding: 1rem 1.1rem; background: rgba(15,23,42,.5); border: 1px solid rgba(148,163,184,.14); }
        .so-vip-pro {
            background: linear-gradient(150deg, rgba(139,92,246,.16), rgba(59,130,246,.08) 60%, rgba(15,23,42,.6));
            border-color: rgba(167,139,250,.4); box-shadow: 0 10px 34px -14px rgba(139,92,246,.5);
        }
        .so-vip-ribbon {
            position: absolute; top: .8rem; left: -.3rem; font-size: .6rem; font-weight: 800; color: #fff;
            background: linear-gradient(135deg, #8b5cf6, #6366f1); padding: .2rem .55rem; border-radius: .35rem;
            box-shadow: 0 4px 12px rgba(139,92,246,.5);
        }
        .so-vip-col-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; }
        .so-vip-badge { font-size: .74rem; font-weight: 800; padding: .25rem .7rem; border-radius: 999px; }
        .so-vip-badge-free { background: rgba(148,163,184,.18); color: #cbd5e1; }
        .so-vip-badge-pro { background: rgba(167,139,250,.2); color: #d8b4fe; }
        .so-vip-price { font-size: .8rem; font-weight: 800; color: #94a3b8; }
        .so-vip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
        .so-vip-list li { display: flex; align-items: flex-start; gap: .45rem; font-size: .76rem; line-height: 1.5; }
        .so-vip-list li span { flex-shrink: 0; font-weight: 800; }
        .so-vip-list li.ok { color: #e2e8f0; }
        .so-vip-list li.ok span { color: #34d399; }
        .so-vip-list li.no { color: #64748b; }
        .so-vip-list li.no span { color: #fb7185; }
        .so-vip-cta {
            display: block; text-align: center; margin-top: 1rem; padding: .65rem 1rem; border-radius: .75rem;
            font-size: .82rem; font-weight: 800; color: #fff; text-decoration: none;
            background: linear-gradient(135deg, #8b5cf6, #6366f1); transition: filter .15s, transform .15s;
        }
        .so-vip-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }

        /* ========= هشدارهای دیده‌بان ========= */
        .so-wl-alert-list { display: flex; flex-direction: column; gap: .5rem; margin-top: .3rem; }
        .so-wl-alert-row {
            display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
            background: rgba(15,23,42,.4); border: 1px solid rgba(148,163,184,.1);
            border-radius: .65rem; padding: .5rem .6rem;
        }
        .so-wl-alert-row.is-on { border-color: rgba(52,211,153,.3); background: rgba(16,185,129,.06); }
        .so-wl-bell {
            flex-shrink: 0; width: 30px; height: 30px; border-radius: .5rem;
            display: flex; align-items: center; justify-content: center;
            color: #64748b; background: rgba(148,163,184,.1); border: 1px solid transparent; cursor: pointer; transition: all .15s;
        }
        .so-wl-bell.is-on { color: #6ee7b7; background: rgba(16,185,129,.15); border-color: rgba(52,211,153,.35); }
        .so-wl-alert-id { font-size: .74rem; font-weight: 700; color: #e2e8f0; direction: rtl; }
        .so-wl-alert-fields { display: flex; flex-wrap: wrap; gap: .4rem; margin-right: auto; }
        .so-wl-alert-fields label { display: flex; flex-direction: column; gap: .15rem; }
        .so-wl-alert-fields label span { font-size: .56rem; color: #94a3b8; }
        .so-wl-alert-fields input { width: 88px; padding: .3rem .45rem !important; font-size: .72rem !important; }

        /* ========= نمای کارتی موبایل (زنجیره) ========= */
        .so-chain-cards { display: none; flex-direction: column; gap: .55rem; }
        .so-mc {
            background: rgba(15,23,42,.5); border: 1px solid rgba(148,163,184,.12);
            border-radius: .8rem; padding: .65rem .7rem; cursor: pointer; transition: border-color .15s, background .15s;
        }
        .so-mc:active { background: rgba(59,130,246,.08); }
        .so-mc.is-locked { opacity: .55; }
        .so-mc-top { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
        .so-mc-price { margin-right: auto; font-size: .92rem; font-weight: 800; color: #f1f5f9; }
        .so-mc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem .5rem; margin-top: .6rem; }
        .so-mc-grid > div { display: flex; flex-direction: column; gap: .1rem; }
        .so-mc-k { font-size: .56rem; color: #64748b; }
        .so-mc-v { font-size: .76rem; font-weight: 700; color: #e2e8f0; }
        @media (max-width: 767px) {
            .so-chain-cards { display: flex; }
            .so-chain-table { display: none !important; }
        }

        /* نشان امتیاز قرارداد (جدول/کارت) */
        .so-score-chip {
            display: inline-flex; align-items: center; justify-content: center;
            min-width: 22px; height: 18px; padding: 0 .3rem; border-radius: .35rem;
            font-size: .62rem; font-weight: 800; direction: ltr;
            color: var(--sc, #94a3b8); background: color-mix(in srgb, var(--sc, #94a3b8) 16%, transparent);
            border: 1px solid color-mix(in srgb, var(--sc, #94a3b8) 40%, transparent);
        }
        @supports not (background: color-mix(in srgb, red 10%, transparent)) {
            .so-score-chip { background: rgba(148,163,184,.16); border-color: rgba(148,163,184,.4); }
        }
        .so-strat-main { min-width: 0; }
        .so-strat-legs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
        .so-strat-leg-pill {
            font-size: .62rem; padding: .25rem .55rem; border-radius: .45rem;
            background: rgba(15,23,42,.65); border: 1px solid rgba(255,255,255,.08);
            color: #cbd5e1; direction: ltr;
        }
        .so-strat-count-badge { font-size: .65rem; color: #64748b; }

        /* ========= #26 چیدمان میز معامله ========= */
        .so-desk-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            margin-top: 1rem;
            align-items: start;
        }
        @media (min-width: 1024px) {
            .so-desk-grid { grid-template-columns: 330px 1fr; gap: 1.25rem; }
        }
        .so-desk-rail { min-width: 0; }
        @media (min-width: 1024px) {
            .so-desk-rail { position: sticky; top: 7rem; }
        }
        .so-desk-main { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
        .so-desk-details {
            border-radius: 1rem;
            background: linear-gradient(160deg, rgba(15,23,42,.7), rgba(15,23,42,.42));
            border: 1px solid rgba(99,102,241,.2);
            overflow: hidden;
        }
        .so-desk-details > summary {
            list-style: none; cursor: pointer; user-select: none;
            display: flex; align-items: center; gap: .55rem;
            padding: .85rem 1rem; font-size: .82rem; font-weight: 800; color: #e2e8f0;
            transition: background .15s ease;
        }
        .so-desk-details > summary::-webkit-details-marker { display: none; }
        .so-desk-details > summary:hover { background: rgba(59,130,246,.06); }
        .so-desk-details > summary .so-desk-chevron {
            margin-inline-start: auto; transition: transform .2s ease; color: #94a3b8;
        }
        .so-desk-details[open] > summary .so-desk-chevron { transform: rotate(180deg); }
        .so-desk-details > summary .so-desk-sum-count {
            font-size: .6rem; font-weight: 700; padding: .12rem .45rem; border-radius: 999px;
            background: rgba(99,102,241,.18); color: #c4b5fd;
        }
        .so-desk-details-body { padding: 0 1rem 1rem; }
        @media (prefers-reduced-motion: reduce) {
            .so-desk-details > summary .so-desk-chevron { transition: none; }
        }
        /* #16/#17 تنظیمات ریل (مبنای قیمت/زمان) */
        .so-rail-setting {
            display: flex; align-items: center; justify-content: space-between;
            gap: .5rem; margin-top: .65rem; flex-wrap: wrap;
        }
        .so-rail-setting-label { font-size: .68rem; font-weight: 700; color: #cbd5e1; }
        .so-pill-group { display: inline-flex; gap: .25rem; flex-wrap: wrap; }
        .so-rail-hint { font-size: .6rem; color: #64748b; margin-top: .35rem; direction: rtl; }

        /* ========= Calculator panel (مهم — برای ابزار محاسبه استراتژی) ========= */
        .so-calc-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            margin-top: 1.2rem;
        }
        @media (min-width: 1024px) { .so-calc-grid { grid-template-columns: 1fr 1.4fr; } }
        .so-calc-form-card {
            padding: 1.1rem 1.15rem;
            border-radius: 1rem;
            background: linear-gradient(160deg, rgba(15,23,42,.7) 0%, rgba(15,23,42,.45) 100%);
            border: 1px solid rgba(99,102,241,.22);
        }
        .so-calc-form-card h4 {
            font-size: .85rem; font-weight: 800; color: #f1f5f9;
            display: inline-flex; align-items: center; gap: .4rem;
            margin-bottom: 1rem;
        }
        .so-calc-form-card h4::before {
            content: ""; display: inline-block;
            width: 3px; height: 16px;
            background: linear-gradient(180deg, #3b82f6, #93c5fd);
            border-radius: 999px;
        }
        .so-input-group { display: flex; flex-direction: column; gap: .35rem; }
        .so-input-label { font-size: .68rem; color: #cbd5e1; font-weight: 600; }
        .so-payoff-card {
            padding: 1.1rem 1.15rem;
            border-radius: 1rem;
            background: linear-gradient(160deg, rgba(15,23,42,.75) 0%, rgba(2,6,23,.6) 100%);
            border: 1px solid rgba(99,102,241,.22);
        }
        .so-payoff-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: .55rem;
            margin-top: 1rem;
        }
        .so-payoff-stat {
            padding: .65rem .7rem;
            border-radius: .75rem;
            background: rgba(15,23,42,.6);
            border: 1px solid rgba(255,255,255,.06);
            text-align: center;
        }
        .so-payoff-stat-label { font-size: .6rem; color: #94a3b8; margin-bottom: .25rem; }
        .so-payoff-stat-value { font-size: .82rem; font-weight: 800; font-variant-numeric: tabular-nums; }
        .so-payoff-stat-pos .so-payoff-stat-value { color: #34d399; }
        .so-payoff-stat-neg .so-payoff-stat-value { color: #fb7185; }
        .so-payoff-stat-blue .so-payoff-stat-value { color: #93c5fd; }

        /* ========= Heatmap canvas ========= */
        .so-heatmap-canvas {
            min-height: 460px;
            border-radius: .95rem;
            overflow: hidden;
            background: radial-gradient(120% 100% at 50% 0%, rgba(99,102,241,.06) 0%, transparent 60%),
                        linear-gradient(180deg, #0b1220, #0f172a);
            border: 1px solid rgba(99,102,241,.15);
            position: relative;
        }

        /* ========= Watchlist empty ========= */
        .so-wl-empty {
            padding: 3rem 1rem;
            text-align: center;
            color: #94a3b8;
        }
        .so-wl-empty svg {
            width: 64px; height: 64px; color: #475569;
            margin: 0 auto 1rem; display: block;
        }

        /* ========= Buttons ========= */
        .so-btn-primary {
            display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
            padding: .7rem 1.2rem;
            border-radius: .75rem;
            background: linear-gradient(135deg, #3b82f6, #6366f1);
            color: #fff;
            font-weight: 800;
            font-size: .82rem;
            border: 1px solid rgba(99,102,241,.55);
            box-shadow: 0 10px 26px rgba(59,130,246,.32);
            cursor: pointer;
            transition: transform .2s ease, box-shadow .2s ease;
            width: 100%;
        }
        .so-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(59,130,246,.45); }
        .so-btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }
        .so-btn-ghost {
            display: inline-flex; align-items: center; gap: .35rem;
            padding: .55rem .9rem;
            border-radius: .65rem;
            background: rgba(15,23,42,.6);
            border: 1px solid rgba(148,163,184,.25);
            color: #cbd5e1;
            font-size: .75rem;
            font-weight: 700;
            cursor: pointer;
            transition: all .18s ease;
        }
        .so-btn-ghost:hover { background: rgba(15,23,42,.85); border-color: rgba(96,165,250,.45); color: #f1f5f9; }

        /* ========= Loader overlay ========= */
        .so-load-overlay {
            position: absolute; inset: 0;
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            gap: 1rem;
            background: rgba(11,18,36,.88);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            border-radius: inherit;
            z-index: 5;
        }
        .so-load-spinner {
            box-sizing: border-box;
            width: 52px; height: 52px;
            position: relative;
            animation: soSpin 1s linear infinite;
        }
        .so-load-spinner::after, .so-load-spinner::before {
            content: ""; width: 26px; height: 26px;
            position: absolute; border-radius: 50%;
            animation: soSpin 1s linear infinite;
            transform-origin: 0 100%;
        }
        .so-load-spinner::after {
            background: linear-gradient(135deg, #3b82f6, #93c5fd);
            box-shadow: 0 0 18px rgba(59,130,246,.55);
        }
        .so-load-spinner::before {
            transform-origin: 0 50%;
            background: linear-gradient(135deg, #8b5cf6, #c4b5fd);
            box-shadow: 0 0 18px rgba(139,92,246,.55);
        }
        @keyframes soSpin { to { transform: rotate(360deg); } }
        .so-load-text {
            font-family: 'Vazirmatn', sans-serif;
            font-size: .82rem;
            font-weight: 800;
            background: linear-gradient(90deg, #f1f5f9, #93c5fd, #c4b5fd);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: soTextFade 1.8s ease-in-out infinite;
        }
        @keyframes soTextFade { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }

        /* ========= نوار live ========= */
        .so-live-pill {
            display: inline-flex;
            align-items: center;
            gap: .45rem;
            padding: .35rem .75rem;
            border-radius: 999px;
            background: rgba(52,211,153,.16);
            border: 1px solid rgba(52,211,153,.35);
            color: #6ee7b7;
            font-size: .65rem;
            font-weight: 700;
            max-width: 100%;
        }
        .so-live-pill-dot {
            flex-shrink: 0;
            width: 6px;
            height: 6px;
            border-radius: 999px;
            background: #34d399;
            box-shadow: 0 0 8px #34d399;
        }
        @media (prefers-reduced-motion: no-preference) {
            .so-live-pill-dot { animation: livePulse 1.8s ease-in-out infinite; }
        }
        .so-live-pill-body {
            display: flex;
            flex-direction: column;
            gap: .12rem;
            min-width: 0;
        }
        .so-live-pill-label {
            font-size: .58rem;
            font-weight: 700;
            color: #6ee7b7;
            line-height: 1.2;
        }
        .so-live-pill-datetime {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: .35rem .45rem;
            color: #ecfdf5;
            font-size: .68rem;
            font-weight: 800;
            line-height: 1.3;
        }
        .so-live-pill-date,
        .so-live-pill-time {
            font-variant-numeric: tabular-nums;
        }
        @media (max-width: 480px) {
            .so-live-pill-datetime {
                flex-direction: column;
                align-items: flex-start;
                gap: .1rem;
            }
        }
        @keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

        /* #5 وضعیت بازار + آخرین دریافت */
        .so-market-badge {
            display: inline-flex; align-items: center; gap: .35rem;
            padding: .25rem .6rem; border-radius: 999px;
            font-size: .62rem; font-weight: 800;
        }
        .so-market-badge .so-market-dot { width: 6px; height: 6px; border-radius: 999px; }
        .so-market-badge.is-open { background: rgba(52,211,153,.14); color: #6ee7b7; border: 1px solid rgba(52,211,153,.3); }
        .so-market-badge.is-open .so-market-dot { background: #34d399; box-shadow: 0 0 8px #34d399; }
        .so-market-badge.is-closed { background: rgba(148,163,184,.12); color: #cbd5e1; border: 1px solid rgba(148,163,184,.25); }
        .so-market-badge.is-closed .so-market-dot { background: #94a3b8; }
        .so-update-rel { font-size: .6rem; color: #64748b; }

        /* ========= Contract detail modal ========= */
        .so-detail-backdrop {
            position: fixed; inset: 0; z-index: 80;
            display: flex; align-items: flex-end; justify-content: center;
            padding: 0;
            background: rgba(2, 6, 23, .78);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }
        @media (min-width: 640px) {
            .so-detail-backdrop { align-items: center; padding: 1.5rem; }
        }
        .so-detail-panel {
            width: 100%;
            max-width: 740px;
            max-height: 94vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            border-radius: 1.35rem 1.35rem 0 0;
            background: linear-gradient(165deg, rgba(15,23,42,.99) 0%, rgba(2,6,23,.99) 100%);
            border: 1px solid rgba(99,102,241,.32);
            box-shadow: 0 32px 90px rgba(0,0,0,.6);
        }
        @media (min-width: 640px) {
            .so-detail-panel { border-radius: 1.35rem; max-height: 92vh; }
        }
        .so-detail-inner {
            overflow-y: auto;
            flex: 1;
            padding: 0 1.15rem 1.25rem;
            scroll-behavior: smooth;
        }
        @media (min-width: 640px) { .so-detail-inner { padding: 0 1.5rem 1.5rem; } }
        .so-detail-handle {
            width: 40px; height: 4px; border-radius: 999px;
            background: rgba(148,163,184,.35);
            margin: .55rem auto .35rem;
            flex-shrink: 0;
        }
        @media (min-width: 640px) { .so-detail-handle { display: none; } }
        .so-detail-head {
            display: flex; align-items: flex-start; justify-content: space-between;
            gap: .75rem; padding-top: .35rem; margin-bottom: .85rem;
        }
        .so-detail-close {
            display: inline-flex; align-items: center; justify-content: center;
            width: 36px; height: 36px; flex-shrink: 0;
            border-radius: .7rem;
            background: rgba(248,113,113,.12);
            border: 1px solid rgba(248,113,113,.28);
            color: #fda4af;
            cursor: pointer;
            transition: background .15s ease, border-color .15s ease;
        }
        .so-detail-close:hover { background: rgba(248,113,113,.22); border-color: rgba(248,113,113,.45); }
        .so-detail-id { font-size: 1.05rem; font-weight: 900; color: #f8fafc; letter-spacing: -.01em; }
        .so-detail-name { font-size: .72rem; color: #94a3b8; margin-top: .15rem; line-height: 1.45; }
        .so-detail-pills { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .55rem; }

        /* Hero قیمت */
        .so-detail-price-banner {
            display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: center;
            padding: .85rem 1rem; margin-bottom: .85rem;
            border-radius: 1rem;
            background: linear-gradient(135deg, rgba(30,41,59,.85), rgba(15,23,42,.65));
            border: 1px solid rgba(148,163,184,.14);
        }
        .so-detail-price-label { display: block; font-size: .62rem; color: #64748b; margin-bottom: .15rem; }
        .so-detail-price-row { display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
        .so-detail-price-val { font-size: 1.65rem; font-weight: 900; color: #f1f5f9; font-variant-numeric: tabular-nums; line-height: 1; }
        .so-detail-price-unit { font-size: .72rem; color: #64748b; font-weight: 600; }
        .so-detail-price-delta {
            display: inline-flex; align-items: center; gap: .25rem;
            padding: .35rem .65rem; border-radius: 999px;
            font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums;
        }
        .so-detail-price-delta.is-up { background: rgba(52,211,153,.14); color: #6ee7b7; border: 1px solid rgba(52,211,153,.28); }
        .so-detail-price-delta.is-down { background: rgba(251,113,133,.14); color: #fda4af; border: 1px solid rgba(251,113,133,.28); }
        .so-detail-price-delta.is-flat { background: rgba(148,163,184,.12); color: #94a3b8; border: 1px solid rgba(148,163,184,.2); }
        .so-detail-facts {
            display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem;
            margin-bottom: 1rem;
        }
        @media (min-width: 480px) { .so-detail-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
        .so-detail-fact {
            padding: .5rem .6rem; border-radius: .7rem;
            background: rgba(15,23,42,.55); border: 1px solid rgba(255,255,255,.05);
            text-align: center;
        }
        .so-detail-fact-label { display: block; font-size: .58rem; color: #64748b; margin-bottom: .12rem; }
        .so-detail-fact-val { font-size: .78rem; font-weight: 800; color: #e2e8f0; font-variant-numeric: tabular-nums; }
        .so-detail-fact-val.is-warn { color: #fbbf24; }

        /* دفتر آزمایشی در popup */
        .so-detail-paper {
            margin-bottom: 1rem; padding: 1rem;
            border-radius: 1rem;
            background: linear-gradient(145deg, rgba(6,78,59,.18), rgba(15,23,42,.55));
            border: 1px solid rgba(52,211,153,.25);
            box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
        }
        .so-detail-paper-top {
            display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
            gap: .5rem; margin-bottom: .75rem;
        }
        .so-detail-paper-badge {
            display: inline-flex; align-items: center; gap: .35rem;
            padding: .25rem .55rem; border-radius: 999px;
            font-size: .58rem; font-weight: 800; letter-spacing: .02em;
            background: rgba(52,211,153,.16); color: #6ee7b7;
            border: 1px solid rgba(52,211,153,.35);
        }
        .so-detail-paper-badge-dot { width: 6px; height: 6px; border-radius: 999px; background: #34d399; }
        .so-detail-paper-title { font-size: .88rem; font-weight: 800; color: #ecfdf5; margin: 0 0 .2rem; }
        .so-detail-paper-sub { font-size: .65rem; color: #94a3b8; line-height: 1.55; margin: 0; max-width: 28rem; }
        .so-detail-paper-steps {
            display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem;
            margin-bottom: .75rem;
        }
        .so-detail-paper-step {
            padding: .45rem .4rem; border-radius: .65rem; text-align: center;
            background: rgba(15,23,42,.4); border: 1px solid rgba(148,163,184,.12);
        }
        .so-detail-paper-step-num {
            display: inline-flex; align-items: center; justify-content: center;
            width: 1.15rem; height: 1.15rem; border-radius: 999px;
            font-size: .58rem; font-weight: 900; color: #6ee7b7;
            background: rgba(52,211,153,.18); margin-bottom: .2rem;
        }
        .so-detail-paper-step-text { display: block; font-size: .58rem; color: #94a3b8; line-height: 1.35; }
        .so-detail-paper-quotes {
            display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-bottom: .75rem;
        }
        .so-detail-paper-quote {
            padding: .65rem .7rem; border-radius: .85rem; text-align: center;
            border: 1px solid transparent;
        }
        .so-detail-paper-quote.is-buy {
            background: rgba(16,185,129,.1); border-color: rgba(52,211,153,.28);
        }
        .so-detail-paper-quote.is-sell {
            background: rgba(225,29,72,.08); border-color: rgba(251,113,133,.25);
        }
        .so-detail-paper-quote-label { display: block; font-size: .62rem; color: #94a3b8; margin-bottom: .2rem; }
        .so-detail-paper-quote-label b { font-weight: 800; }
        .so-detail-paper-quote.is-buy .so-detail-paper-quote-label b { color: #6ee7b7; }
        .so-detail-paper-quote.is-sell .so-detail-paper-quote-label b { color: #fda4af; }
        .so-detail-paper-quote-price { font-size: 1.1rem; font-weight: 900; font-variant-numeric: tabular-nums; color: #f1f5f9; }
        .so-detail-paper-quote-hint { display: block; font-size: .56rem; color: #64748b; margin-top: .15rem; }
        .so-detail-paper-qty-block { margin-bottom: .75rem; }
        .so-detail-paper-qty-label {
            display: flex; align-items: center; justify-content: space-between;
            font-size: .68rem; font-weight: 700; color: #cbd5e1; margin-bottom: .4rem;
        }
        .so-detail-paper-qty-label span { font-size: .58rem; font-weight: 500; color: #64748b; }
        .so-detail-paper-preview {
            display: grid; grid-template-columns: 1fr 1fr; gap: .45rem;
            margin-bottom: .75rem;
        }
        .so-detail-paper-preview-box {
            padding: .45rem .55rem; border-radius: .6rem;
            background: rgba(15,23,42,.45); border: 1px solid rgba(148,163,184,.12);
            font-size: .62rem; color: #94a3b8;
        }
        .so-detail-paper-preview-box strong { display: block; font-size: .78rem; color: #e2e8f0; margin-top: .1rem; font-variant-numeric: tabular-nums; }
        .so-detail-paper-cta { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .65rem; }
        .so-detail-paper-btn {
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            gap: .15rem; padding: .7rem .5rem; border-radius: .85rem;
            font-size: .78rem; font-weight: 800; cursor: pointer;
            border: 1px solid transparent; transition: transform .12s ease, box-shadow .12s ease;
        }
        .so-detail-paper-btn:hover { transform: translateY(-1px); }
        .so-detail-paper-btn.is-buy {
            background: linear-gradient(135deg, rgba(5,150,105,.85), rgba(16,185,129,.75));
            border-color: rgba(52,211,153,.45); color: #ecfdf5;
            box-shadow: 0 6px 20px rgba(16,185,129,.2);
        }
        .so-detail-paper-btn.is-sell {
            background: linear-gradient(135deg, rgba(190,18,60,.75), rgba(225,29,72,.65));
            border-color: rgba(251,113,133,.4); color: #fff1f2;
            box-shadow: 0 6px 20px rgba(225,29,72,.18);
        }
        .so-detail-paper-btn small { font-size: .58rem; font-weight: 600; opacity: .85; }
        .so-detail-paper-positions { margin-top: .65rem; padding-top: .65rem; border-top: 1px solid rgba(148,163,184,.15); }
        .so-detail-paper-pos-head {
            display: flex; align-items: center; justify-content: space-between;
            margin-bottom: .45rem;
        }
        .so-detail-paper-pos-head span { font-size: .68rem; font-weight: 700; color: #cbd5e1; }
        .so-detail-paper-pos-total { font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
        .so-detail-paper-pos-total.is-pos { color: #34d399; }
        .so-detail-paper-pos-total.is-neg { color: #fb7185; }
        .so-detail-paper-pos-card {
            display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
            gap: .45rem; padding: .55rem .65rem; margin-bottom: .4rem;
            border-radius: .75rem; background: rgba(15,23,42,.5);
            border: 1px solid rgba(148,163,184,.14);
        }
        .so-detail-paper-pos-info { font-size: .68rem; color: #94a3b8; }
        .so-detail-paper-pos-info b { color: #e2e8f0; font-weight: 800; }
        .so-detail-paper-pos-pnl { font-size: .75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
        .so-detail-paper-pos-actions { display: flex; gap: .35rem; }
        .so-detail-paper-pos-actions button { font-size: .62rem; padding: .25rem .5rem; border-radius: .45rem; }
        .so-detail-paper-foot {
            display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
            gap: .35rem; margin-top: .5rem;
        }
        .so-detail-paper-pricing {
            font-size: .58rem; color: #64748b;
        }
        .so-detail-paper-pricing b { color: #94a3b8; }
        .so-detail-paper-link {
            font-size: .62rem; font-weight: 700; color: #67e8f9;
            background: none; border: none; cursor: pointer; padding: 0;
        }
        .so-detail-paper-link:hover { text-decoration: underline; color: #a5f3fc; }
        .so-detail-paper-disclaimer {
            font-size: .58rem; color: #64748b; line-height: 1.55; margin: .55rem 0 0;
            padding: .45rem .55rem; border-radius: .55rem;
            background: rgba(15,23,42,.35); border: 1px dashed rgba(148,163,184,.15);
        }

        /* بخش‌های تاشو */
        .so-detail-acc {
            margin-bottom: .55rem; border-radius: .85rem;
            background: rgba(15,23,42,.4); border: 1px solid rgba(148,163,184,.1);
            overflow: hidden;
        }
        .so-detail-acc[open] { border-color: rgba(99,102,241,.22); }
        .so-detail-acc > summary {
            display: flex; align-items: center; gap: .45rem;
            padding: .65rem .85rem; cursor: pointer; list-style: none;
            font-size: .72rem; font-weight: 800; color: #bfdbfe;
            user-select: none;
        }
        .so-detail-acc > summary::-webkit-details-marker { display: none; }
        .so-detail-acc > summary::before {
            content: ""; width: 3px; height: 14px; flex-shrink: 0;
            background: linear-gradient(180deg, #3b82f6, #93c5fd); border-radius: 999px;
        }
        .so-detail-acc > summary::after {
            content: "▾"; margin-right: auto; font-size: .65rem; color: #64748b;
            transition: transform .18s ease;
        }
        .so-detail-acc[open] > summary::after { transform: rotate(180deg); }
        .so-detail-acc-body { padding: 0 .85rem .85rem; }

        .so-detail-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: .5rem;
        }
        @media (min-width: 640px) { .so-detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
        .so-detail-stat {
            padding: .6rem .7rem;
            border-radius: .7rem;
            background: rgba(15,23,42,.55);
            border: 1px solid rgba(255,255,255,.05);
        }
        .so-detail-stat-label { font-size: .6rem; color: #94a3b8; margin-bottom: .18rem; line-height: 1.35; }
        .so-detail-stat-value { font-size: .8rem; font-weight: 800; color: #f1f5f9; font-variant-numeric: tabular-nums; }
        .so-detail-section-title {
            font-size: .72rem; font-weight: 800; color: #93c5fd;
            margin: 1rem 0 .55rem;
            display: flex; align-items: center; gap: .35rem;
        }
        .so-detail-section-title::before {
            content: ""; width: 3px; height: 14px;
            background: linear-gradient(180deg, #3b82f6, #93c5fd);
            border-radius: 999px;
        }
        .so-detail-foot {
            flex-shrink: 0;
            display: flex; flex-wrap: wrap; gap: .4rem;
            padding: .75rem 1.15rem 1rem;
            border-top: 1px solid rgba(148,163,184,.12);
            background: rgba(2,6,23,.92);
            backdrop-filter: blur(8px);
        }
        @media (min-width: 640px) { .so-detail-foot { padding: .85rem 1.5rem 1.15rem; } }
        .so-detail-foot-btn {
            display: inline-flex; align-items: center; gap: .35rem;
            padding: .45rem .7rem; border-radius: .65rem;
            font-size: .66rem; font-weight: 700; color: #cbd5e1;
            background: rgba(15,23,42,.65); border: 1px solid rgba(148,163,184,.18);
            cursor: pointer; transition: border-color .15s ease, color .15s ease;
        }
        .so-detail-foot-btn:hover { border-color: rgba(96,165,250,.4); color: #f1f5f9; }
        .so-detail-foot-btn svg { flex-shrink: 0; opacity: .75; }
        .so-detail-actions {
            display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem;
        }
        .so-table tbody tr.is-clickable { cursor: pointer; }

        /* ========= Chips & filter bar ========= */
        .so-chip-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .75rem; }
        .so-chip {
            display: inline-flex; align-items: center; gap: .35rem;
            padding: .35rem .75rem; border-radius: 999px;
            font-size: .68rem; font-weight: 700;
            background: rgba(15,23,42,.55);
            border: 1px solid rgba(148,163,184,.22);
            color: #cbd5e1;
            cursor: pointer;
            transition: all .18s ease;
        }
        .so-chip:hover { border-color: rgba(96,165,250,.45); color: #f1f5f9; }
        .so-chip.is-active {
            background: linear-gradient(135deg, rgba(59,130,246,.22), rgba(99,102,241,.16));
            border-color: rgba(99,102,241,.45);
            color: #bfdbfe;
            box-shadow: 0 0 16px rgba(59,130,246,.18);
        }
        .so-chip-clear { color: #fda4af; border-color: rgba(248,113,113,.35); }
        .so-filter-row-2 {
            display: grid; grid-template-columns: 1fr;
            gap: .6rem; margin-bottom: .75rem;
        }
        @media (min-width: 640px) { .so-filter-row-2 { grid-template-columns: 1fr 1fr 1fr; } }

        /* ========= Trial banner ========= */
        .so-trial-banner {
            display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
            padding: .85rem 1rem; margin-bottom: 1rem;
            border-radius: 1rem;
            background: linear-gradient(135deg, rgba(59,130,246,.16), rgba(99,102,241,.12));
            border: 1px solid rgba(99,102,241,.35);
        }
        .so-trial-banner p { font-size: .78rem; color: #cbd5e1; }
        .so-trial-banner strong { color: #93c5fd; }

        /* ========= Toast ========= */
        .so-toast {
            position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
            z-index: 90; padding: .7rem 1.1rem;
            border-radius: .85rem;
            background: rgba(15,23,42,.95);
            border: 1px solid rgba(99,102,241,.4);
            box-shadow: 0 16px 40px rgba(0,0,0,.45);
            font-size: .78rem; font-weight: 700; color: #e2e8f0;
            max-width: min(92vw, 420px); text-align: center;
        }
        .so-toast.is-success { border-color: rgba(52,211,153,.55); color: #a7f3d0; }
        .so-toast.is-error { border-color: rgba(251,113,133,.55); color: #fecdd3; }
        .so-toast.is-warn { border-color: rgba(251,191,36,.55); color: #fde68a; }

        /* ========= Paper Trading ========= */
        .opt-paper-kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
        @media (min-width: 1024px) { .opt-paper-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
        .opt-paper-kpi { padding: .65rem .75rem; border-radius: .85rem; background: rgba(15,23,42,.55); border: 1px solid rgba(148,163,184,.12); text-align: center; }
        .opt-paper-kpi-label { font-size: .62rem; color: #64748b; margin-bottom: .2rem; }
        .opt-paper-kpi-val { font-size: .82rem; font-weight: 800; }
        .opt-paper-kpi-sub { font-size: .58rem; color: #64748b; margin-top: .15rem; }
        .opt-paper-toolbar { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; justify-content: flex-end; }
        .opt-paper-toolbar .so-btn-ghost { font-size: .68rem; padding: .35rem .65rem; }
        .opt-paper-settings { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; padding: .65rem .75rem; border-radius: .75rem; background: rgba(15,23,42,.4); border: 1px solid rgba(148,163,184,.1); }
        .opt-paper-settings label { display: flex; align-items: center; gap: .35rem; font-size: .68rem; color: #94a3b8; cursor: pointer; }
        .opt-paper-symbol-link { color: #93c5fd; cursor: pointer; text-decoration: none; }
        .opt-paper-symbol-link:hover { text-decoration: underline; color: #bfdbfe; }
        .opt-paper-empty-cta { display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem; padding: .4rem .75rem; border-radius: .65rem; font-size: .68rem; font-weight: 700; color: #93c5fd; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.25); }
        .opt-paper-empty-cta:hover { background: rgba(59,130,246,.2); }
        .opt-paper-closed-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .65rem; border-radius: .65rem; background: rgba(15,23,42,.45); border: 1px solid rgba(148,163,184,.1); font-size: .68rem; }
        .opt-paper-journal-row { display: flex; gap: .45rem; padding: .4rem .5rem; border-radius: .5rem; font-size: .66rem; }
        .opt-paper-journal-row:hover { background: rgba(15,23,42,.45); }
        .opt-paper-journal-meta { font-size: .58rem; color: #64748b; }
        .opt-paper-equity-card { overflow: hidden; }
        .opt-paper-equity-head { align-items: flex-start; gap: .75rem; }
        .opt-paper-equity-sub { font-size: .62rem; color: #64748b; margin-top: .25rem; line-height: 1.55; }
        .opt-paper-equity-live {
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            gap: .35rem;
            padding: .22rem .55rem;
            border-radius: 999px;
            font-size: .58rem;
            font-weight: 700;
            color: #6ee7b7;
            background: rgba(52,211,153,.12);
            border: 1px solid rgba(52,211,153,.28);
        }
        .opt-paper-equity-live::before {
            content: '';
            width: .4rem;
            height: .4rem;
            border-radius: 50%;
            background: #34d399;
            box-shadow: 0 0 8px rgba(52,211,153,.75);
            animation: opt-paper-equity-pulse 1.8s ease-in-out infinite;
        }
        @keyframes opt-paper-equity-pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: .55; transform: scale(.85); }
        }
        .opt-paper-equity-stats {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: .45rem;
            margin-bottom: .75rem;
        }
        @media (min-width: 640px) {
            .opt-paper-equity-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
        }
        .opt-paper-equity-stat {
            padding: .5rem .6rem;
            border-radius: .65rem;
            background: rgba(15,23,42,.5);
            border: 1px solid rgba(148,163,184,.1);
        }
        .opt-paper-equity-stat-label {
            display: block;
            font-size: .56rem;
            color: #64748b;
            margin-bottom: .15rem;
        }
        .opt-paper-equity-stat-val {
            display: block;
            font-size: .72rem;
            font-weight: 800;
            line-height: 1.35;
        }
        .opt-paper-equity-chart-wrap {
            position: relative;
            width: 100%;
        }
        .opt-paper-equity {
            width: 100%;
            min-height: clamp(200px, 38vw, 280px);
            height: clamp(200px, 38vw, 280px);
        }
        .opt-paper-equity .apexcharts-canvas,
        .opt-paper-equity .apexcharts-svg {
            width: 100% !important;
        }
        .opt-paper-equity-empty {
            position: absolute;
            inset: 0;
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: .35rem;
            min-height: 140px;
            padding: 1.25rem;
            border-radius: .75rem;
            border: 1px dashed rgba(148,163,184,.18);
            background: rgba(15,23,42,.35);
            text-align: center;
            font-size: .68rem;
            color: #94a3b8;
            line-height: 1.65;
        }
        .opt-paper-equity-empty-hint { font-size: .62rem; color: #64748b; }
        .opt-paper-modal-backdrop { position: fixed; inset: 0; z-index: 92; background: rgba(2,6,23,.72); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 1rem; }
        .opt-paper-modal { width: min(94vw, 420px); border-radius: 1rem; padding: 1.1rem 1.15rem; background: linear-gradient(160deg, rgba(15,23,42,.98), rgba(2,6,23,.98)); border: 1px solid rgba(34,211,238,.35); box-shadow: 0 24px 56px rgba(0,0,0,.55); }
        .opt-paper-modal.is-danger { border-color: rgba(251,113,133,.4); }
        .opt-paper-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-bottom: .65rem; }
        .opt-paper-modal h4 { font-size: .92rem; font-weight: 800; color: #f1f5f9; margin: 0; }
        .opt-paper-modal-close { color: #64748b; padding: .2rem; border-radius: .4rem; flex-shrink: 0; }
        .opt-paper-modal-close:hover { color: #f1f5f9; background: rgba(148,163,184,.15); }
        .opt-paper-modal-contract { padding: .55rem .65rem; border-radius: .65rem; background: rgba(15,23,42,.55); border: 1px solid rgba(148,163,184,.12); margin-bottom: .75rem; }
        .opt-paper-modal-contract-id { font-size: .85rem; font-weight: 800; color: #e2e8f0; direction: ltr; text-align: left; }
        .opt-paper-modal-contract-meta { font-size: .68rem; color: #94a3b8; margin-top: .25rem; }
        .opt-paper-modal-summary { display: grid; gap: .35rem; margin: .75rem 0; padding: .6rem .65rem; border-radius: .65rem; background: rgba(34,211,238,.06); border: 1px solid rgba(34,211,238,.15); }
        .opt-paper-modal-summary.is-close { background: rgba(251,191,36,.06); border-color: rgba(251,191,36,.18); }
        .opt-paper-modal-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .72rem; color: #94a3b8; }
        .opt-paper-modal-row strong { color: #e2e8f0; font-weight: 700; }
        .opt-paper-modal-row.is-total { padding-top: .35rem; margin-top: .2rem; border-top: 1px solid rgba(148,163,184,.15); font-size: .78rem; }
        .opt-paper-modal-row.is-total strong { color: #22d3ee; font-size: .85rem; }
        .opt-paper-modal-row.is-pnl strong.is-pos { color: #34d399; }
        .opt-paper-modal-row.is-pnl strong.is-neg { color: #fb7185; }
        .opt-paper-qty-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .5rem; }
        .opt-paper-qty-btn { width: 2rem; height: 2rem; border-radius: .5rem; border: 1px solid rgba(148,163,184,.25); background: rgba(15,23,42,.6); color: #e2e8f0; font-weight: 800; font-size: .9rem; }
        .opt-paper-qty-btn:hover { border-color: rgba(34,211,238,.45); color: #22d3ee; }
        .opt-paper-qty-input { width: 4rem; text-align: center; }
        .opt-paper-qty-chip { padding: .25rem .55rem; border-radius: .45rem; font-size: .65rem; font-weight: 700; border: 1px solid rgba(148,163,184,.2); color: #94a3b8; background: rgba(15,23,42,.5); }
        .opt-paper-qty-chip:hover, .opt-paper-qty-chip.is-active { border-color: rgba(34,211,238,.45); color: #22d3ee; background: rgba(34,211,238,.1); }
        .opt-paper-modal-note { font-size: .62rem; color: #64748b; line-height: 1.5; margin-top: .5rem; }
        .opt-paper-modal-foot { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .85rem; }
        .opt-paper-modal-foot .so-btn-primary.is-buy { background: linear-gradient(135deg, #059669, #10b981); border-color: rgba(52,211,153,.4); }
        .opt-paper-modal-foot .so-btn-primary.is-sell { background: linear-gradient(135deg, #be123c, #e11d48); border-color: rgba(251,113,133,.4); }
        .opt-paper-modal-foot .so-btn-primary.is-danger { background: linear-gradient(135deg, #991b1b, #dc2626); border-color: rgba(248,113,113,.4); }
        .opt-paper-greek-chip { font-size: .58rem; color: #64748b; direction: ltr; }
        .so-chain-paper-btn { padding: .15rem .35rem; font-size: .58rem; border-radius: .35rem; color: #67e8f9; background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.25); }
        .so-chain-paper-btn:hover { background: rgba(34,211,238,.2); }

        /* #21 میان‌برهای صفحه‌کلید */
        .so-sc-backdrop {
            position: fixed; inset: 0; z-index: 95;
            background: rgba(2,6,23,.6); backdrop-filter: blur(4px);
            display: flex; align-items: center; justify-content: center; padding: 1rem;
        }
        .so-sc-modal {
            width: min(94vw, 440px); border-radius: 1.1rem;
            background: linear-gradient(160deg, rgba(15,23,42,.97), rgba(2,6,23,.97));
            border: 1px solid rgba(99,102,241,.35);
            box-shadow: 0 20px 50px rgba(0,0,0,.5); padding: 1.1rem 1.2rem;
        }
        .so-sc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; }
        .so-sc-head h3 { font-size: .95rem; font-weight: 800; color: #f1f5f9; }
        .so-sc-head button { color: #94a3b8; padding: .25rem; border-radius: .5rem; }
        .so-sc-head button:hover { color: #f1f5f9; background: rgba(148,163,184,.12); }
        .so-sc-list { display: flex; flex-direction: column; gap: .6rem; }
        .so-sc-list li { display: flex; align-items: center; gap: .6rem; font-size: .76rem; color: #cbd5e1; }
        .so-sc-list kbd {
            display: inline-flex; align-items: center; justify-content: center;
            min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem;
            border-radius: .45rem; background: rgba(99,102,241,.18);
            border: 1px solid rgba(99,102,241,.4); color: #c4b5fd;
            font-family: monospace; font-size: .72rem; font-weight: 700;
        }
        .so-sc-list li span { flex: 1; }
        .so-sc-foot { margin-top: .9rem; font-size: .62rem; color: #64748b; text-align: center; }
        .so-sc-fab {
            position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 80;
            width: 38px; height: 38px; border-radius: 999px;
            display: inline-flex; align-items: center; justify-content: center;
            background: rgba(59,130,246,.16); border: 1px solid rgba(96,165,250,.35);
            color: #93c5fd; box-shadow: 0 8px 22px rgba(0,0,0,.35);
            transition: all .15s ease;
        }
        .so-sc-fab:hover { background: rgba(59,130,246,.28); color: #dbeafe; }
        @media (max-width: 640px) { .so-sc-fab { bottom: 5.2rem; } }

        /* #23 زنگ هشدار جهش نوسان */
        .so-bell-fab {
            position: fixed; bottom: 1.25rem; right: 4.1rem; z-index: 80;
            width: 38px; height: 38px; border-radius: 999px;
            display: inline-flex; align-items: center; justify-content: center;
            background: rgba(251,191,36,.14); border: 1px solid rgba(251,191,36,.35);
            color: #fcd34d; box-shadow: 0 8px 22px rgba(0,0,0,.35);
            transition: all .15s ease;
        }
        .so-bell-fab:hover { background: rgba(251,191,36,.26); color: #fef3c7; }
        .so-bell-fab.is-off { background: rgba(100,116,139,.14); border-color: rgba(148,163,184,.3); color: #94a3b8; }
        .so-bell-badge {
            position: absolute; top: -4px; left: -4px;
            min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
            background: #ef4444; color: #fff; font-size: .6rem; font-weight: 800;
            display: inline-flex; align-items: center; justify-content: center;
            box-shadow: 0 2px 6px rgba(0,0,0,.4);
        }
        @media (max-width: 640px) { .so-bell-fab { bottom: 5.2rem; right: 4.1rem; } }
        .so-alert-panel {
            position: fixed; bottom: 4.4rem; right: 1.25rem; z-index: 90;
            width: min(94vw, 360px); max-height: 60vh; overflow-y: auto;
            border-radius: 1rem; padding: .9rem 1rem;
            background: linear-gradient(160deg, rgba(15,23,42,.98), rgba(2,6,23,.98));
            border: 1px solid rgba(251,191,36,.3);
            box-shadow: 0 20px 50px rgba(0,0,0,.5);
        }
        @media (max-width: 640px) { .so-alert-panel { bottom: 8.4rem; } }
        .so-alert-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
        .so-alert-head h3 { font-size: .85rem; font-weight: 800; color: #f1f5f9; }
        .so-alert-toggles { display: flex; flex-direction: column; gap: .5rem; padding: .5rem 0; border-top: 1px solid rgba(148,163,184,.12); border-bottom: 1px solid rgba(148,163,184,.12); margin-bottom: .6rem; }
        .so-alert-toggle { display: flex; align-items: center; justify-content: space-between; font-size: .72rem; color: #cbd5e1; }
        .so-alert-switch { width: 38px; height: 21px; border-radius: 999px; background: rgba(100,116,139,.4); position: relative; transition: background .18s ease; flex-shrink: 0; }
        .so-alert-switch.is-on { background: rgba(52,211,153,.7); }
        .so-alert-switch::after { content: ''; position: absolute; top: 2px; right: 2px; width: 17px; height: 17px; border-radius: 999px; background: #fff; transition: transform .18s ease; }
        .so-alert-switch.is-on::after { transform: translateX(-17px); }
        .so-alert-item { display: flex; align-items: center; gap: .55rem; padding: .5rem; border-radius: .6rem; cursor: pointer; transition: background .15s ease; }
        .so-alert-item:hover { background: rgba(148,163,184,.08); }

        /* ========= Premium blur on locked fields ========= */
        .so-premium-blur { position: relative; overflow: hidden; }
        .so-premium-blur .so-detail-stat-value { filter: blur(6px); user-select: none; }
        .so-premium-blur::after {
            content: "🔒"; position: absolute; inset: 0;
            display: flex; align-items: center; justify-content: center;
            font-size: .85rem; background: rgba(15,23,42,.35);
        }

        /* ========= Skeleton rows ========= */
        .so-skeleton-row td { padding: .85rem .7rem; }
        .so-skeleton-bar {
            height: .65rem; border-radius: .35rem;
            background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
            background-size: 200% 100%;
            animation: soShimmer 1.4s ease-in-out infinite;
        }
        @keyframes soShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
        /* #29 skeletonهای تب‌ها */
        .so-skel {
            background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
            background-size: 200% 100%;
            animation: soShimmer 1.4s ease-in-out infinite;
            border-radius: .5rem;
        }
        .so-skel-circle { border-radius: 999px; }
        @media (prefers-reduced-motion: reduce) {
            .so-skeleton-bar, .so-skel { animation: none; }
        }

        /* ========= #27 flash تغییر قیمت روی poll ========= */
        .so-flash-up { animation: soFlashUp .75s ease-out; border-radius: .35rem; }
        .so-flash-down { animation: soFlashDown .75s ease-out; border-radius: .35rem; }
        @keyframes soFlashUp {
            0% { background: rgba(52,211,153,.35); color: #6ee7b7; }
            100% { background: transparent; }
        }
        @keyframes soFlashDown {
            0% { background: rgba(244,114,182,.32); color: #fda4af; }
            100% { background: transparent; }
        }
        @media (prefers-reduced-motion: reduce) {
            .so-flash-up, .so-flash-down { animation: none; }
        }

        /* ========= Heatmap controls ========= */
        .so-hm-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; margin-bottom: .85rem; }
        @media (min-width: 640px) { .so-hm-kpis { grid-template-columns: repeat(4, 1fr); } }
        .so-hm-kpi {
            padding: .65rem .75rem; border-radius: .75rem;
            background: rgba(15,23,42,.55); border: 1px solid rgba(255,255,255,.06);
        }
        .so-hm-kpi-label { font-size: .6rem; color: #94a3b8; }
        .so-hm-kpi-value { font-size: .82rem; font-weight: 800; margin-top: .15rem; }
        .so-hm-controls { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: .85rem; align-items: center; }
        .so-hm-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-top: .65rem; }
        .so-hm-legend-item { display: inline-flex; align-items: center; gap: .35rem; font-size: .65rem; color: #94a3b8; }
        .so-hm-legend-dot { width: 10px; height: 10px; border-radius: 2px; }
        .so-hm-wrap { position: relative; }

        /* ========= #4 تمام‌صفحه واقعی (انتقال به body) ========= */
        .so-fs-active {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            width: 100vw !important;
            height: 100dvh !important;
            max-width: none !important;
            max-height: none !important;
            z-index: 99999 !important;
            margin: 0 !important;
            border-radius: 0 !important;
            background: #020617 !important;
            padding: max(env(safe-area-inset-top), .75rem) max(env(safe-area-inset-right), .75rem) max(env(safe-area-inset-bottom), .75rem) max(env(safe-area-inset-left), .75rem) !important;
            overflow: hidden !important;
            display: flex !important;
            flex-direction: column !important;
            box-sizing: border-box !important;
        }
        .so-fs-active .so-fs-stretch,
        .so-fs-active #payoff-chart-container,
        .so-fs-active #heatmap-container,
        .so-fs-active .so-hm-wrap,
        .so-fs-active#heatmap-card .opt-hm-wrap { flex: 1 1 auto; min-height: 0; }
        body.so-fs-lock,
        html.so-fs-lock { overflow: hidden !important; height: 100%; }
        .so-fs-btn {
            display: inline-flex; align-items: center; justify-content: center;
            width: 30px; height: 30px; border-radius: .55rem;
            background: rgba(59,130,246,.14); border: 1px solid rgba(96,165,250,.3);
            color: #93c5fd; cursor: pointer; transition: all .15s ease;
        }
        .so-fs-btn:hover { background: rgba(59,130,246,.26); color: #dbeafe; }
        .so-fs-exit {
            position: absolute; top: .6rem; left: .6rem; z-index: 10000;
            display: none; align-items: center; gap: .35rem;
            padding: .4rem .7rem; border-radius: .6rem;
            background: rgba(2,6,23,.85); border: 1px solid rgba(96,165,250,.4);
            color: #bfdbfe; font-size: .72rem; font-weight: 800; cursor: pointer;
        }
        .so-fs-active .so-fs-exit { display: inline-flex; }
        .so-hm-premium-mask {
            position: absolute; inset: 0; z-index: 2;
            display: flex; align-items: center; justify-content: center;
            background: rgba(2,6,23,.55); backdrop-filter: blur(3px);
            border-radius: .95rem;
            pointer-events: none;
        }
        .so-hm-premium-mask > div { pointer-events: auto; }
        #heatmap-container .apexcharts-canvas,
        #heatmap-container .apexcharts-svg { width: 100% !important; }

        /* ========= Watchlist hero ========= */
        .so-wl-hero { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; margin-bottom: 1rem; }
        @media (min-width: 640px) { .so-wl-hero { grid-template-columns: repeat(4, 1fr); } }

        /* ═══════════════════════════════════════════════════════════════════
           ENHANCEMENT LAYER (V2 - polish + modernization)
           لایه بهبود طراحی — اضافه شده برای ارتقای UX/UI
           ═══════════════════════════════════════════════════════════════════ */

        /* ── انتخاب متن سفارشی ── */
        ::selection { background: rgba(99,102,241,.42); color: #f8fafc; }
        ::-moz-selection { background: rgba(99,102,241,.42); color: #f8fafc; }

        /* ── Scrollbar مدرن ── */
        ::-webkit-scrollbar { width: 10px; height: 10px; }
        ::-webkit-scrollbar-track { background: rgba(15,23,42,.4); border-radius: 5px; }
        ::-webkit-scrollbar-thumb { background: linear-gradient(135deg, rgba(99,102,241,.4), rgba(59,130,246,.3)); border-radius: 5px; border: 2px solid transparent; background-clip: padding-box; }
        ::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, rgba(99,102,241,.65), rgba(59,130,246,.5)); background-clip: padding-box; }
        ::-webkit-scrollbar-corner { background: transparent; }

        /* ── Focus visible سفارشی (a11y) ── */
        button:focus-visible, a:focus-visible, input:focus-visible,
        select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
            outline: 2px solid rgba(147,197,253,.85);
            outline-offset: 2px;
            border-radius: .5rem;
        }
        /* روی buttonها/کارت‌های گرد، outline رو نرم می‌کنیم */
        .so-tab:focus-visible, .so-pick-cta:focus-visible, .login-cta:focus-visible {
            outline: 2px solid rgba(147,197,253,.9);
            outline-offset: 3px;
        }

        /* ── Hero icon glow on hover ── */
        .so-hero-icon {
            position: relative;
        }
        .so-hero-icon::after {
            content: ""; position: absolute; inset: -10px;
            border-radius: 1.4rem;
            background: radial-gradient(closest-side, rgba(99,102,241,.35), transparent 70%);
            opacity: 0; transition: opacity .6s ease;
            z-index: -1;
        }
        .so-hero-icon:hover::after { opacity: 1; }

        /* عنوان hero — gradient text با حرکت ظریف */
        h1 span[style*="text-shadow"] {
            background: linear-gradient(135deg, #93c5fd 0%, #c4b5fd 50%, #93c5fd 100%);
            background-size: 200% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: soHeroGradient 8s ease-in-out infinite;
        }
        @keyframes soHeroGradient { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
        @media (prefers-reduced-motion: reduce) { h1 span[style*="text-shadow"] { animation: none; } }

        /* ── Market Summary KPI — تپش زنده روی update ── */
        .so-stat-value { transition: color .3s ease, transform .3s ease; }
        .so-stat:hover .so-stat-value { transform: scale(1.04); color: #fff; }

        /* رنگ accent برای دایره glow */
        .so-stat::before {
            content: ""; position: absolute; top: 50%; right: 8px;
            width: 4px; height: 4px; border-radius: 50%;
            background: var(--so-ic, #93c5fd);
            transform: translateY(-50%);
            box-shadow: 0 0 8px var(--so-ic, #93c5fd);
            opacity: 0; transition: opacity .3s ease;
        }
        .so-stat:hover::before { opacity: .8; }

        /* ── Card hover lift عمومی ── */
        .so-card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
        .so-card:hover {
            transform: translateY(-2px);
            border-color: rgba(99,102,241,.32);
            box-shadow: 0 22px 42px -18px rgba(0,0,0,.7), 0 0 32px rgba(99,102,241,.08);
        }

        .so-pick-cta {
            position: relative;
            overflow: hidden;
        }
        .so-pick-cta::after {
            content: ""; position: absolute; inset: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
            transform: translateX(-100%);
            transition: transform .6s ease;
            pointer-events: none;
        }
        .so-pick-cta:hover::after { transform: translateX(100%); }

        /* ── جدول chain: sticky thead ── */
        .so-chain-table thead th,
        table.so-table thead th {
            position: sticky;
            top: 0;
            background: rgba(15,23,42,.95);
            backdrop-filter: blur(12px);
            z-index: 5;
            box-shadow: 0 2px 0 rgba(99,102,241,.18);
        }
        /* Row hover با highlight ظریف */
        .so-chain-table tbody tr:hover,
        table.so-table tbody tr:hover {
            background: rgba(99,102,241,.06);
        }

        /* ── ورودی‌های فرم: focus enhancement ── */
        input[type="number"], input[type="text"], input[type="search"],
        input[type="email"], input[type="tel"], textarea, select {
            transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
        }
        input[type="number"]:focus, input[type="text"]:focus, input[type="search"]:focus,
        input[type="email"]:focus, input[type="tel"]:focus, textarea:focus, select:focus {
            border-color: rgba(99,102,241,.6) !important;
            box-shadow: 0 0 0 3px rgba(99,102,241,.18) !important;
        }

        /* ── Market open/closed badge - hover ── */
        .so-market-badge.is-open .so-market-dot {
            animation: soDotPulse 1.5s ease-in-out infinite;
        }
        @keyframes soDotPulse {
            0%, 100% { box-shadow: 0 0 6px currentColor; }
            50% { box-shadow: 0 0 14px currentColor, 0 0 22px currentColor; }
        }

        /* ── Modal entrance smoother ── */
        [x-show][x-cloak] {
            transition-property: opacity, transform;
        }

        /* ── Button hover lift عمومی روی همه CTAها ── */
        button[class*="cta"]:not(:disabled):hover,
        .so-pick-cta:not(:disabled):hover {
            transform: translateY(-2px);
            transition: transform .2s ease, box-shadow .2s ease;
        }

        /* ── Tooltip-style hint روی data values ── */
        [title]:not(button):not(a) {
            cursor: help;
            border-bottom: 1px dashed rgba(148,163,184,.2);
        }

        /* ── Loading shimmer روی skeletons - smoother ── */
        .so-skeleton-bar, .so-skel {
            background: linear-gradient(
                90deg,
                rgba(255,255,255,.03) 0%,
                rgba(99,102,241,.12) 25%,
                rgba(147,197,253,.15) 50%,
                rgba(99,102,241,.12) 75%,
                rgba(255,255,255,.03) 100%
            );
            background-size: 200% 100%;
        }

        /* ── Mobile: tap target بزرگ‌تر ── */
        @media (max-width: 640px) {
            button, a[role="button"], .so-tab, button.so-opp-row {
                min-height: 44px;
            }
            .so-card { padding: .9rem .85rem; }
        }

        @media (prefers-reduced-motion: reduce) {
            .so-tabs-slider-pill { transition: none; }
            .so-tab { transition: color .15s ease, opacity .15s ease; }
        }

        /* ── Premium overlay refined ── */
        .so-premium-overlay-cta {
            position: relative;
            overflow: hidden;
        }
        .so-premium-overlay-cta::before {
            content: ""; position: absolute; inset: 0;
            background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%);
            transform: translateX(-100%);
            transition: transform .8s ease;
            pointer-events: none;
        }
        .so-premium-overlay-cta:hover::before { transform: translateX(100%); }

        /* ── Pill / Badge - micro interaction ── */
        .so-pill, .so-hero-badge {
            transition: transform .2s ease, box-shadow .2s ease;
        }
        .so-pill:hover { transform: scale(1.05); }
        .so-hero-badge:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 20px rgba(59,130,246,.25);
        }

        /* ── کنترل واترلاین HR-style divider ── */
        .so-divider-soft {
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(99,102,241,.25), transparent);
            margin: 1rem 0;
            border: none;
        }

        /* ── Better empty state ── */
        .so-empty-state, .so-empty {
            text-align: center;
            padding: 2.5rem 1rem;
            color: #94a3b8;
        }
        .so-empty-state .icon, .so-empty .icon {
            font-size: 3rem;
            margin-bottom: .75rem;
            opacity: .5;
        }

        /* ── Print styles ── */
        @media print {
            .so-tabs-wrap, .header-shell, button, .so-bell-fab, .so-sc-fab, .so-alert-panel { display: none !important; }
            .so-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc !important; }
            body, .so-card, .so-detail-stat, .so-detail-stat-value, .so-detail-stat-label,
            .so-table, .so-table td, .so-table th, p, span, h1, h2, h3 {
                background: white !important; color: #111 !important;
                -webkit-print-color-adjust: exact; print-color-adjust: exact;
            }
            .text-emerald-400, .text-rose-400, .text-amber-400 { color: #111 !important; }
        }

        /* ── Improved keyboard hint pills ── */
        kbd, .so-kbd {
            display: inline-flex;
            align-items: center;
            padding: .15rem .4rem;
            font-size: .7rem;
            font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
            color: #cbd5e1;
            background: linear-gradient(180deg, rgba(15,23,42,.85), rgba(15,23,42,.65));
            border: 1px solid rgba(255,255,255,.12);
            border-radius: .35rem;
            box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 -1px 0 rgba(0,0,0,.4) inset, 0 1px 2px rgba(0,0,0,.3);
        }

        /* ── Trial banner refined ── */
        .so-trial-banner {
            position: relative;
            overflow: hidden;
        }
        .so-trial-banner::before {
            content: ""; position: absolute; top: -50%; left: -10%;
            width: 60%; height: 200%;
            background: radial-gradient(ellipse, rgba(251,191,36,.2), transparent 60%);
            animation: soTrialGlow 4s ease-in-out infinite;
            pointer-events: none;
        }
        @keyframes soTrialGlow {
            0%, 100% { opacity: .3; transform: translateX(0); }
            50% { opacity: .7; transform: translateX(20%); }
        }
        @media (prefers-reduced-motion: reduce) { .so-trial-banner::before { animation: none; } }

        /* ── Smooth scroll behavior برای anchor links ── */
        html { scroll-behavior: smooth; scroll-padding-top: 100px; }

        /* ── Section heading visual hierarchy ── */
        h2.so-card-title, h2.so-market-title {
            letter-spacing: -.01em;
            line-height: 1.25;
        }

        /* ── خطوط جدا کننده دلپذیر ── */
        .so-card-head { padding-bottom: .8rem; border-bottom: 1px dashed rgba(99,102,241,.12); margin-bottom: 1rem; }

        /* ── Hero Quick Chips (میانبر سریع) ── */
        .so-quick-chip {
            display: inline-flex;
            align-items: center;
            gap: .45rem;
            padding: .55rem .95rem;
            border-radius: 999px;
            font-size: .78rem;
            font-weight: 700;
            color: #cbd5e1;
            background: linear-gradient(135deg, rgba(15,23,42,.7), rgba(15,23,42,.5));
            border: 1px solid rgba(99,102,241,.22);
            box-shadow: 0 4px 12px rgba(0,0,0,.15);
            transition: all .25s ease;
            cursor: pointer;
        }
        .so-quick-chip:hover {
            color: #f1f5f9;
            border-color: rgba(99,102,241,.5);
            background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(99,102,241,.1));
            box-shadow: 0 8px 22px rgba(59,130,246,.22);
            transform: translateY(-2px);
        }
        .so-quick-chip:active { transform: translateY(0); }
        .so-quick-chip svg { color: #93c5fd; flex-shrink: 0; }

        /* ═══════════════════════════════════════════════════════════
           HERO V3 — تراز و دیزاین اصولی
           ═══════════════════════════════════════════════════════════ */

        /* ── Vertical rhythm system (consistent spacing) ── */
        .so-hero-block { margin-bottom: 1.5rem; }
        @media (min-width: 640px) { .so-hero-block { margin-bottom: 2rem; } }
        @media (min-width: 1024px) { .so-hero-block { margin-bottom: 2.5rem; } }

        /* ── Trial banner ── */
        .so-trial-banner { margin-bottom: 1.5rem; }
        @media (min-width: 640px) { .so-trial-banner { margin-bottom: 2rem; } }

        /* ── Market summary spacing ── */
        .so-market-summary { margin-bottom: 1.5rem; }
        @media (min-width: 640px) { .so-market-summary { margin-bottom: 2rem; } }
        @media (min-width: 1024px) { .so-market-summary { margin-bottom: 2.25rem; } }


        /* ── Hero structure ── */
        .so-hero-row {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
        }
        @media (min-width: 640px) { .so-hero-row { gap: 1.25rem; } }

        .so-hero-body {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: .75rem;
        }

        .so-hero-badge { align-self: flex-start; }

        .so-hero-title {
            font-size: clamp(1.75rem, 4vw, 3.75rem);
            font-weight: 900;
            line-height: 1.15;
            color: #fff;
            letter-spacing: -.015em;
            margin: 0;
        }

        .so-hero-title-accent {
            color: #93c5fd;
            text-shadow: 0 0 22px rgba(99,102,241,.45);
        }

        .so-hero-title-sub {
            display: block;
            margin-top: .35rem;
            font-size: .95rem;
            font-weight: 700;
            color: #94a3b8;
            letter-spacing: 0;
        }
        @media (min-width: 640px) {
            .so-hero-title-sub {
                display: inline;
                margin-top: 0;
                margin-right: .5rem;
                font-size: 1.1rem;
            }
        }
        @media (min-width: 1024px) {
            .so-hero-title-sub { font-size: 1.4rem; }
        }

        .so-hero-desc {
            font-size: .875rem;
            line-height: 1.65;
            color: #94a3b8;
            margin: 0;
            max-width: 70ch;
        }
        @media (min-width: 640px) { .so-hero-desc { font-size: .95rem; } }

        /* ── Live indicators row ── */
        .so-hero-live {
            display: flex;
            align-items: center;
            gap: .6rem;
            flex-wrap: wrap;
            margin-top: .25rem;
        }

        /* ── Quick chips - تراز و spacing ── */
        .so-hero-chips {
            display: flex;
            flex-wrap: wrap;
            gap: .55rem;
            margin-top: 1.1rem;
            padding-top: 1rem;
            border-top: 1px dashed rgba(99,102,241,.15);
        }
        @media (min-width: 640px) {
            .so-hero-chips { gap: .65rem; margin-top: 1.25rem; padding-top: 1.1rem; }
        }
        @media (max-width: 480px) {
            .so-hero-chips { gap: .45rem; }
            .so-quick-chip { padding: .5rem .75rem; font-size: .72rem; }
        }

        /* ═══════════════════════════════════════════════════════════════════
           پایان Enhancement Layer
           ═══════════════════════════════════════════════════════════════════ */

        :root {
            --so-text-min: 0.75rem;
            --so-text-sm: max(0.75rem, 0.72rem);
        }
        .so-detail-stat-label, .opt-paper-kpi-label, .so-detail-fact-label,
        .opt-paper-modal-note, .so-detail-paper-step-text, .so-alert-toggle,
        .opt-paper-journal-meta, .so-update-rel {
            font-size: max(var(--so-text-min), 1em);
        }
        .opt-strike-chart-wrap {
            aspect-ratio: 16 / 9;
            height: auto;
            min-height: clamp(180px, 32vw, 280px);
            max-height: 320px;
        }
        .opt-iv-chart-wrap {
            aspect-ratio: unset;
            width: 100%;
        }
        .opt-strat-calc-chart-wrap, .opt-compare-chart-wrap {
            aspect-ratio: 16 / 10;
            width: 100%;
            min-height: clamp(220px, 55vw, 380px);
            height: clamp(220px, 55vw, 380px);
            max-height: 380px;
            box-sizing: border-box;
        }
        .so-heatmap-canvas, #heatmap-container {
            aspect-ratio: 4 / 3;
            min-height: clamp(240px, 45vw, 420px);
            height: auto;
        }
        .so-detail-facts {
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        }
        .opt-paper-kpi-grid {
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        }
        .so-hm-kpis {
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        }
        img:not([class*="object-"]) {
            max-width: 100%;
            height: auto;
        }
        .so-chart-card img, .opt-chart-card img {
            object-fit: contain;
        }
        @media (min-width: 1920px) {
            .so-detail-panel { max-width: 780px; }
            main .max-w-7xl, .w-full.max-w-7xl { max-width: 80rem; margin-inline: auto; }
        }
        .so-en { font-family: inherit; }
