﻿:root {
    --bs-body-font-family: 'IRANSans', system-ui, sans-serif;
    --pb-bg-page: #dcecff;
    --pb-bg-glass: rgba(255, 255, 255, 0.85);
    --pb-bg-glass-strong: rgba(255, 255, 255, 0.9);
    --pb-bg-soft: rgba(245, 250, 255, 0.75);
    --pb-bg-soft-hover: rgba(220, 235, 255, 0.95);
    --pb-border: rgba(200, 220, 245, 0.65);
    --pb-border-soft: rgba(210, 225, 245, 0.7);
    --pb-border-hover: rgba(160, 200, 255, 0.8);
    --pb-text: #16345c;
    --pb-text-2: #23466f;
    --pb-text-soft: #6d83a3;
    --pb-text-muted: #7287a3;
    --pb-primary: #1f67b3;
    --pb-primary-2: #2f6fd1;
    --pb-primary-3: #2f80d1;
    --pb-primary-soft: rgba(100, 160, 255, 0.12);
    --pb-success: #1d8f63;
    --pb-success-bg: rgba(38, 178, 117, 0.12);
    --pb-danger: #d84b4b;
    --pb-danger-bg: rgba(225, 85, 85, 0.12);
    --pb-radius-sm: 12px;
    --pb-radius-md: 16px;
    --pb-radius-lg: 20px;
    --pb-radius-xl: 24px;
    --pb-radius-pill: 999px;
    --pb-shadow-sm: 0 6px 20px rgba(80, 120, 170, 0.06);
    --pb-shadow-md: 0 8px 25px rgba(80, 120, 170, 0.08);
    --pb-shadow-lg: 0 10px 30px rgba(80, 120, 170, 0.08);
    --pb-shadow-xl: 0 18px 45px rgba(80, 120, 170, 0.12);
    --pb-transition: all 0.25s ease;
}

body {
    direction: rtl;
    text-align: right;
    padding-top: 80px;
    min-height: 100vh;
    background: var(--pb-bg-page);
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--pb-text-2);
    font-weight: 400;
    line-height: 1.85;
}

input,
button,
textarea,
select {
    font-family: inherit;
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 200;
    src: url('./font/woff2/IRANSansWeb(FaNum)_UltraLight.woff2') format('woff2');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 300;
    src: url('./font/woff2/IRANSansWeb(FaNum)_Light.woff2') format('woff2');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 400;
    src: url('./font/woff2/IRANSansWeb(FaNum).woff2') format('woff2');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 500;
    src: url('./font/woff2/IRANSansWeb(FaNum)_Medium.woff2') format('woff2');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 700;
    src: url('./font/woff2/IRANSansWeb(FaNum)_Bold.woff2') format('woff2');
}

/* ---------- base reusable blocks ---------- */

.pb-glass {
    background: var(--pb-bg-glass);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-xl);
    box-shadow: var(--pb-shadow-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pb-card {
    background: var(--pb-bg-glass);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-lg);
    box-shadow: var(--pb-shadow-md);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--pb-transition);
}

    .pb-card:hover {
        transform: translateY(-4px);
        border-color: var(--pb-border-hover);
        box-shadow: 0 12px 35px rgba(80, 120, 170, 0.12);
    }

.pb-card-lite {
    background: #fff;
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-lg);
    box-shadow: var(--pb-shadow-sm);
    transition: var(--pb-transition);
}

.pb-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 4px 10px;
    border-radius: var(--pb-radius-pill);
    background: var(--pb-primary-soft);
    color: var(--pb-primary-2);
    font-size: 0.75rem;
    font-weight: 500;
}

.pb-title {
    font-size: clamp(1.8rem, 2.4vw, 2.5rem);
    font-weight: 600;
    color: var(--pb-text);
}

.pb-subtitle {
    color: var(--pb-text-soft);
    font-size: 0.96rem;
    font-weight: 400;
}

.pb-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--pb-text);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.pb-card-subtitle {
    font-size: 0.92rem;
    color: var(--pb-text-soft);
}

.pb-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pb-list-link {
    display: inline-flex;
    align-items: center;
    width: 100%;
    padding: 0.15rem 0;
    text-decoration: none;
    color: #426a9f;
    /*font-size: 1.02rem;*/
    /*font-weight: 500;*/
    line-height: 1.5;
    transition: var(--pb-transition);
}

    .pb-list-link::before {
        content: "";
        width: 8px;
        height: 8px;
        margin-left: 10px;
        border-radius: 50%;
        flex-shrink: 0;
        background: rgba(100, 160, 255, 0.28);
        transition: var(--pb-transition);
    }

    .pb-list-link:hover {
        color: var(--pb-primary);
        transform: translateX(-3px);
    }

        .pb-list-link:hover::before {
            background: rgba(70, 135, 230, 0.55);
            box-shadow: 0 0 0 4px rgba(100, 160, 255, 0.12);
        }

/* ---------- layout helpers ---------- */

.pb-section {
    position: relative;
}

.pb-section-head {
    margin-bottom: 1.5rem;
}

.pb-panel {
    background: var(--pb-bg-glass);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-xl);
    box-shadow: var(--pb-shadow-lg);
}

/* ---------- navbar / header ---------- */

.navbar-toggler {
    border: none;
    box-shadow: none !important;
}

.navbar-brand {
    font-weight: 600;
    color: #2f4f7f !important;
}

.navbar .nav-link {
    color: #44648f !important;
    font-weight: 400;
}

    .navbar .nav-link.active {
        color: var(--pb-primary) !important;
        font-weight: 600;
    }

.icon-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--pb-radius-sm);
    border: 1px solid rgba(200, 220, 245, 0.7);
    background: rgba(240, 248, 255, 0.7);
    color: #3b6ea8;
    cursor: pointer;
    transition: var(--pb-transition);
}

    .icon-btn:hover {
        background: rgba(220, 235, 255, 0.9);
        border-color: #bcd6f5;
    }

    .icon-btn:active {
        transform: scale(0.96);
    }
/* ---------- desktop dropdown ---------- */

@media (min-width: 768px) {
    .navbar .navbar-nav {
        align-items: center;
        gap: 0.2rem;
    }

    .pb-nav-dropdown {
        position: relative;
    }

    .pb-nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.55rem 0.75rem !important;
        border-radius: 12px;
        transition: var(--pb-transition);
    }

        .pb-nav-toggle:hover,
        .pb-nav-dropdown:hover > .pb-nav-toggle,
        .pb-nav-dropdown:focus-within > .pb-nav-toggle {
            color: var(--pb-primary) !important;
            background: rgba(255, 255, 255, 0.5);
        }

    .pb-nav-dropdown > .dropdown-menu.pb-dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(8px);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
        margin-top: 0.45rem;
        min-width: 170px;
        padding: 0.3rem;
        border: 1px solid var(--pb-border);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: var(--pb-shadow-md);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .pb-nav-dropdown:hover > .dropdown-menu.pb-dropdown-menu,
    .pb-nav-dropdown:focus-within > .dropdown-menu.pb-dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .pb-dropdown-item {
        display: block;
        padding: 0.45rem 0.65rem;
        font-size: 0.88rem;
        font-weight: 500;
        line-height: 1.55;
        border-radius: 10px;
        color: var(--pb-text-2);
        transition: var(--pb-transition);
    }

        .pb-dropdown-item:hover,
        .pb-dropdown-item:focus {
            color: var(--pb-primary);
            background: rgba(220, 235, 255, 0.65);
        }

    .pb-nav-dropdown::after {
        content: "";
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        height: 12px;
    }
}
/* ---------- offcanvas ---------- */

.offcanvas {
    border-left: 1px solid rgba(200, 220, 245, 0.7);
}

.offcanvas-custom {
    --bs-offcanvas-width: 280px;
    background: rgba(245, 250, 255, 0.85);
    border-left: 1px solid rgba(190, 215, 245, 0.7);
    box-shadow: -10px 0 30px rgba(80, 120, 170, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
/* ---------- mobile offcanvas nav ---------- */

.offcanvas-body .navbar-nav {
    gap: 0.35rem;
}

.offcanvas-body .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    color: var(--pb-text-2) !important;
    font-weight: 500;
    transition: var(--pb-transition);
}

    .offcanvas-body .nav-link:hover,
    .offcanvas-body .nav-link:focus {
        background: rgba(255, 255, 255, 0.65);
        color: var(--pb-primary) !important;
    }

.pb-mobile-nav-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: right;
    box-shadow: none !important;
}

.pb-mobile-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pb-text-soft);
    transition: transform 0.22s ease, color 0.22s ease;
}

.pb-mobile-nav-toggle[aria-expanded="true"] .pb-mobile-nav-arrow {
    transform: rotate(180deg);
    color: var(--pb-primary);
}

.pb-mobile-submenu-wrap {
    padding-top: 0.2rem;
}

.pb-mobile-submenu {
    margin-right: 0.5rem;
    padding-right: 0.7rem;
    border-right: 2px solid rgba(120, 170, 235, 0.9);
}

.pb-mobile-submenu-link {
    display: block;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.25rem;
    border-radius: 12px;
    text-decoration: none;
    color: #4c6f9d;
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--pb-transition);
}

    .pb-mobile-submenu-link:hover,
    .pb-mobile-submenu-link:focus {
        background: rgba(220, 235, 255, 0.7);
        color: var(--pb-primary);
    }

.pb-mobile-submenu li:last-child .pb-mobile-submenu-link {
    margin-bottom: 0;
}

/* ---------- footer ---------- */


/* ---------- stat / growth ---------- */

.pb-growth,
.growth-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: var(--pb-radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

    .pb-growth.positive,
    .growth-badge.positive {
        background: var(--pb-success-bg);
        color: var(--pb-success);
    }

    .pb-growth.negative,
    .growth-badge.negative {
        background: var(--pb-danger-bg);
        color: var(--pb-danger);
    }

.pb-trend,
.trend {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--pb-text-soft);
}

    .pb-trend.positive {
        color: var(--pb-success);
    }

    .pb-trend.negative {
        color: var(--pb-danger);
    }

.pb-stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pb-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--pb-border-soft);
    border-radius: 14px;
    background: var(--pb-bg-soft);
}

.pb-stat-label {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.8;
    color: #6c7f99;
}

.pb-stat-value {
    font-weight: 600;
    color: var(--pb-text-2);
    white-space: nowrap;
}

/* ---------- modal search ---------- */

.modal-search-dialog {
    max-width: 680px;
}

.modal-search-content {
    background: var(--pb-bg-glass-strong);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-xl);
    box-shadow: var(--pb-shadow-xl);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-search-body {
    padding: 1rem 1.25rem 1.25rem;
}

.search-modal-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #5d7596;
}

.search-modal-close {
    box-shadow: none !important;
    opacity: 0.7;
}

    .search-modal-close:hover {
        opacity: 1;
    }

.search-box-wrap {
    position: sticky;
    top: 0;
    z-index: 2;
}

.pb-input {
    height: 56px;
    padding-right: 1rem;
    padding-left: 1rem;
    border: 1px solid rgba(200, 220, 245, 0.8);
    border-radius: var(--pb-radius-md);
    background: rgba(248, 252, 255, 0.95);
    color: var(--pb-text-2);
    font-size: 0.98rem;
    box-shadow: none !important;
}

    .pb-input::placeholder {
        color: #8aa0bd;
    }

    .pb-input:focus{
        background: #fff;
        border-color: #8fbaf0;
        box-shadow: 0 0 0 0.25rem rgba(88, 161, 239, 0.14) !important;
    }

.search-result-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-result-item {
    margin: 0;
}

.search-result-link {
    padding: 14px 16px;
    border: 1px solid rgba(215, 228, 245, 0.8);
    border-radius: 18px;
    background: rgba(247, 251, 255, 0.85);
    transition: var(--pb-transition);
}

    .search-result-link:hover,
    .search-result-link:focus,
    #divStList li.active .search-result-link {
        outline: none;
        background: var(--pb-bg-soft-hover);
        box-shadow: 0 0 0 3px rgba(100, 160, 255, 0.2);
    }

.search-result-logo {
    width: 44px;
    height: 44px;
    padding: 4px;
    flex-shrink: 0;
    object-fit: contain;
    border: 1px solid rgba(220, 232, 246, 0.85);
    border-radius: var(--pb-radius-sm);
    background: #fff;
}

.search-result-symbol {
    margin-bottom: 2px;
    font-weight: 600;
    color: #24476f;
}

.search-result-name {
    font-size: 0.88rem;
    color: var(--pb-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-action {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: var(--pb-radius-pill);
    background: rgba(100, 160, 255, 0.1);
    color: var(--pb-primary-3);
    font-size: 0.9rem;
    font-weight: 600;
}

.search-highlight {
    background: rgba(140, 190, 255, 0.15);
    color: #4a8fdc;
}

#ModalSearch .btn-close {
    box-shadow: none !important;
}

#ModalSearch .modal-content {
    direction: rtl;
}

/* ---------- misc ---------- */

.b-divider {
    width: 100%;
    height: 3rem;
    border: solid rgba(0, 0, 0, 0.15);
    border-width: 1px 0;
    background-color: #0000001a;
    box-shadow: inset 0 0.5em 1.5em #0000001a, inset 0 0.125em 0.5em #00000026;
}

/* ---------- responsive ---------- */

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

@media (max-width: 767.98px) {
    .pb-card-title {
        font-size: 1.2rem;
        margin-bottom: 0.9rem;
    }

    .pb-list-link {
        font-size: 0.98rem;
    }
}

@media (max-width: 576px) {
    .modal-search-dialog {
        max-width: calc(100% - 16px);
        margin: 0.5rem auto;
    }

    .modal-search-content {
        border-radius: 20px;
    }

    .modal-search-body {
        padding: 0.9rem;
    }

    .pb-input{
        height: 52px;
        font-size: 0.95rem;
        border-radius: 14px;
    }

    .search-result-link {
        padding: 12px;
        border-radius: 16px;
    }

    .search-result-action {
        padding: 5px 10px;
        font-size: 0.82rem;
    }

    .search-result-name {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}


/* ---------- compact feed / content stream ---------- */

.pb-page-head {
    margin-bottom: 1.5rem;
}

.pb-page-title {
    margin: 0;
    font-size: clamp(1.35rem, 1.8vw, 1.9rem);
    font-weight: 600;
    color: var(--pb-text);
    line-height: 1.5;
}

.pb-page-subtitle {
    color: var(--pb-text-soft);
    font-size: 0.92rem;
    font-weight: 400;
}

.pb-card-feed {
    overflow: hidden;
    border-radius: var(--pb-radius-xl);
}

.pb-card-head {
    padding: 1rem 1.1rem 0.85rem;
    border-bottom: 1px solid var(--pb-border-soft);
    background: rgba(255, 255, 255, 0.35);
}

.pb-card-head-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pb-text);
    line-height: 1.5;
}

.pb-feed-compact {
    padding: 0 1.1rem;
}

.pb-feed-row {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--pb-border-soft);
}

    .pb-feed-row:last-child {
        border-bottom: 0;
    }

.pb-feed-media {
    width: 56px;
    min-width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border: 1px solid var(--pb-border-soft);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--pb-shadow-sm);
    transition: var(--pb-transition);
}

    .pb-feed-media img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.pb-feed-date {
    color: var(--pb-text-soft);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.7;
}

.pb-feed-title {
    margin: 0;
    color: var(--pb-text-2);
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.95;
}

    .pb-feed-title a {
        color: inherit;
    }

        .pb-feed-title a:hover {
            color: var(--pb-primary);
        }

.pb-feed-symbol {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.8;
}

    .pb-feed-symbol,
    .pb-feed-symbol a {
        color: var(--pb-primary-2);
    }

.pb-empty-state {
    padding: 1.25rem 0;
    color: var(--pb-text-soft);
    font-size: 0.9rem;
}

.min-w-0 {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .pb-card-title {
        font-size: 1.15rem;
        margin-bottom: 0.85rem;
    }

    .pb-card-head {
        padding: 0.9rem 0.95rem 0.8rem;
    }

    .pb-feed-compact {
        padding: 0 0.95rem;
    }

    .pb-feed-row {
        gap: 0.75rem;
        padding: 0.9rem 0;
    }

    .pb-feed-media {
        width: 50px;
        min-width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .pb-feed-title {
        font-size: 0.93rem;
        line-height: 1.85;
    }

    .pb-feed-symbol {
        font-size: 0.9rem;
        font-weight: 500;
    }

    .pb-feed-date {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .pb-page-title {
        font-size: 1.2rem;
    }

    .pb-page-subtitle {
        font-size: 0.86rem;
    }
}
.pb-feed-side {
    width: 64px;
    min-width: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    text-align: center;
}

.pb-feed-stock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: var(--pb-radius-pill);
    background: var(--pb-primary-soft);
    color: var(--pb-primary-2);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.6;
    white-space: nowrap;
    transition: var(--pb-transition);
}

a.pb-feed-stock:hover {
    background: rgba(100, 160, 255, 0.2);
    color: var(--pb-primary);
}

@media (max-width: 767.98px) {
    .pb-feed-side {
        width: 56px;
        min-width: 56px;
        gap: 0.35rem;
    }

    .pb-feed-stock {
        font-size: 0.72rem;
        padding: 2px 7px;
    }
}

.analysis-floating-head-wrap {
    position: relative;
    padding-top: 14px;
}

.analysis-floating-badge {
    position: absolute;
    top: 0;
    right: 18px;
    z-index: 30;
    padding: 6px 14px;
    border-radius: var(--pb-radius-pill);
    background: linear-gradient(135deg, #2f6fd1, #5ea8ff);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    box-shadow: 0 10px 24px rgba(70, 130, 220, 0.22);
}

.analysis-section-subtitle {
    color: var(--pb-text-soft);
    font-size: 0.95rem;
    line-height: 1.9;
}

.analysis-list-card {
    overflow: hidden;
}

.analysis-side-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.analysis-main-image-btn {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.analysis-list-image,
.analysis-image-placeholder {
    width: 100%;
    height: 190px;
    border-radius: 18px;
    border: 1px solid var(--pb-border-soft);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--pb-shadow-sm);
}

.analysis-list-image {
    object-fit: cover;
    transition: var(--pb-transition);
}

.analysis-main-image-btn:hover .analysis-list-image {
    transform: scale(1.02);
}

.analysis-image-placeholder {
    padding: 1rem;
}

.analysis-list-title {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--pb-text);
    line-height: 1.8;
    margin: 0;
}

.analysis-symbol-link {
    text-decoration: none;
}

.analysis-list-text {
    color: var(--pb-text-2);
    font-size: 0.94rem;
    line-height: 2;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--pb-border-soft);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

    .analysis-list-text::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 42px;
        background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
        pointer-events: none;
    }

.analysis-eps-panel {
    padding: 0.85rem;
    border: 1px solid rgba(100, 160, 255, 0.18);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(100, 160, 255, 0.12), rgba(100, 160, 255, 0.06));
    box-shadow: var(--pb-shadow-sm);
}

.analysis-eps-panel-title {
    margin-bottom: 0.65rem;
    color: var(--pb-primary-2);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

.analysis-eps-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.analysis-eps-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(100, 160, 255, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.analysis-eps-row-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--pb-text-soft);
    line-height: 1.7;
}

.analysis-eps-row-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pb-primary);
    line-height: 1.5;
}

.analysis-modal-dialog {
    max-width: 1140px;
}

.analysis-modal-content {
    background: var(--pb-bg-glass-strong);
    border: 1px solid var(--pb-border);
    border-radius: 28px;
    box-shadow: var(--pb-shadow-xl);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.analysis-modal-header {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--pb-border-soft);
    background: rgba(255, 255, 255, 0.38);
}

.analysis-modal-close {
    box-shadow: none !important;
    opacity: 0.75;
    margin: 0 !important;
}

    .analysis-modal-close:hover {
        opacity: 1;
    }

.analysis-modal-body {
    padding: 1.25rem;
}

.analysis-modal-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: var(--pb-radius-pill);
    background: linear-gradient(135deg, #2f6fd1, #5ea8ff);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
}

.analysis-modal-badge-soft {
    background: rgba(100, 160, 255, 0.12);
    color: var(--pb-primary-2);
}

.analysis-modal-title {
    margin: 0;
    color: var(--pb-text);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.7;
}

.analysis-modal-meta-line {
    color: var(--pb-text-soft);
    font-size: 0.9rem;
}

.analysis-modal-main {
    min-height: 100%;
    padding: 1.1rem 1.1rem 1.25rem;
    border: 1px solid var(--pb-border-soft);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.5);
}

.analysis-modal-text {
    color: var(--pb-text-2);
    font-size: 0.98rem;
    line-height: 2.2;
}

    .analysis-modal-text p:last-child {
        margin-bottom: 0;
    }

.analysis-modal-empty {
    padding: 1rem;
    border: 1px dashed var(--pb-border-soft);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.4);
    color: var(--pb-text-soft);
    line-height: 2;
}

.analysis-modal-side-title {
    color: var(--pb-text);
    font-size: 1rem;
    font-weight: 600;
}

.analysis-modal-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.analysis-modal-thumb {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--pb-border-soft);
    background: #fff;
    box-shadow: var(--pb-shadow-sm);
    transition: var(--pb-transition);
}

    .analysis-modal-thumb:hover {
        transform: translateY(-2px);
        border-color: var(--pb-border-hover);
    }

    .analysis-modal-thumb img {
        width: 100%;
        height: 130px;
        object-fit: cover;
        display: block;
    }

.analysis-modal-analyzer-avatar {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid var(--pb-border-soft);
    background: #fff;
    flex-shrink: 0;
}

    .analysis-modal-analyzer-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.analysis-modal-analyzer-name {
    color: var(--pb-text);
    font-size: 0.96rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .analysis-list-image,
    .analysis-image-placeholder {
        height: 170px;
    }

    .analysis-modal-dialog {
        max-width: calc(100% - 24px);
        margin: 0.75rem auto;
    }

    .analysis-modal-thumb img {
        height: 120px;
    }
}

@media (max-width: 575.98px) {
    .analysis-floating-head-wrap {
        padding-top: 12px;
    }

    .analysis-floating-badge {
        right: 14px;
        font-size: 0.76rem;
        padding: 5px 12px;
    }

    .analysis-list-title {
        font-size: 1rem;
    }

    .analysis-list-text {
        font-size: 0.9rem;
        line-height: 1.95;
        padding: 0.8rem 0.9rem;
    }

    .analysis-list-image,
    .analysis-image-placeholder {
        height: 200px;
    }

    .analysis-eps-panel {
        padding: 0.75rem;
    }

    .analysis-eps-row {
        padding: 0.55rem 0.65rem;
    }

    .analysis-eps-row-value {
        font-size: 0.95rem;
    }

    .analysis-modal-header {
        padding: 1rem 1rem 0.85rem;
    }

    .analysis-modal-body {
        padding: 1rem;
    }

    .analysis-modal-title {
        font-size: 1.12rem;
    }

    .analysis-modal-meta-line {
        font-size: 0.84rem;
    }

    .analysis-modal-main {
        padding: 0.9rem;
        border-radius: 18px;
    }

    .analysis-modal-text {
        font-size: 0.92rem;
        line-height: 2.05;
    }

    .analysis-modal-gallery {
        gap: 0.6rem;
    }

    .analysis-modal-thumb img {
        height: 105px;
    }

    .analysis-modal-content {
        border-radius: 22px;
    }
}

.analysis-modal-gallery-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 991.98px) {
    .analysis-modal-gallery-wide {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .analysis-modal-gallery-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.analysis-modal-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--pb-border-soft);
    background: linear-gradient(180deg, #f6f9ff, #eef4ff);
    box-shadow: var(--pb-shadow-sm);
    transition: var(--pb-transition);
    padding: 0.4rem;
    position: relative;
}

    /* pattern خیلی سبک */
    .analysis-modal-thumb::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(70, 130, 220, 0.08) 1px, transparent 1px);
        background-size: 10px 10px;
        pointer-events: none;
    }

    .analysis-modal-thumb:hover {
        transform: translateY(-2px);
        border-color: var(--pb-border-hover);
    }

    /* عکس */
    .analysis-modal-thumb img {
        width: 100%;
        height: 130px;
        object-fit: contain;
        object-position: center;
        display: block;
        z-index: 1; /* روی pattern بیاد */
    }

@media (max-width: 991.98px) {
    .analysis-modal-thumb img {
        height: 120px;
    }
}

@media (max-width: 575.98px) {
    .analysis-modal-thumb img {
        height: 105px;
    }
}

/* ---------- market / stock hero reusable ---------- */

.pb-market-hero {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
    border: 1px solid rgba(155, 195, 240, 0.35);
    border-radius: var(--pb-radius-xl);
    background: radial-gradient(circle at 15% 20%, rgba(120, 180, 255, 0.18), transparent 35%), linear-gradient(135deg, #1a3f6b 0%, #215a8c 50%, #2c78b3 100%);
    box-shadow: 0 18px 42px rgba(35, 75, 125, 0.18);
    color: #fff;
}

.pb-market-logo {
    width: 88px;
    min-width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem;
    border-radius: 24px;
    border: 1px solid rgba(220, 238, 255, 0.35);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

    .pb-market-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.pb-market-title {
    color: #fff;
    font-size: clamp(1.65rem, 2vw, 2.25rem);
    font-weight: 700;
    line-height: 1.45;
}

.pb-market-subtitle {
    color: rgba(235, 245, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.8;
}

.pb-market-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid rgba(220, 238, 255, 0.18);
    border-radius: var(--pb-radius-pill);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(245, 250, 255, 0.94);
    font-size: 0.75rem;
    font-weight: 500;
}

.pb-market-price-card,
.pb-market-info-card {
    position: relative;
    padding: 1.2rem 1rem 1rem;
    border-radius: 22px;
    background: radial-gradient(circle at 50% 0%, rgba(120, 180, 255, 0.18), transparent 55%), rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(220, 238, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 14px 32px rgba(0,0,0,0.18);
}

.pb-market-label {
    color: rgba(235, 245, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 500;
}

.pb-market-price {
    font-size: 2.1rem;
}

.pb-market-unit,
.pb-market-date,
.pb-market-empty {
    color: rgba(235, 245, 255, 0.78);
    font-size: 0.82rem;
    line-height: 1.8;
}

.pb-market-price-stats {
    margin-top: 0.8rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

    .pb-market-price-stats > div {
        padding: 0.75rem;
        border: 1px solid rgba(220, 238, 255, 0.14);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.07);
        text-align: center;
    }

    .pb-market-price-stats span,
    .pb-market-price-stats small {
        display: block;
        color: rgba(235, 245, 255, 0.7);
        font-size: 0.74rem;
        line-height: 1.8;
    }

    .pb-market-price-stats strong {
        display: block;
        color: #fff;
        font-size: 1.05rem;
        font-weight: 700;
        line-height: 1.7;
    }

.pb-market-info-title {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.65rem;
    padding: 3px 10px;
    border-radius: var(--pb-radius-pill);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.pb-market-info-text {
    color: rgba(245, 250, 255, 0.88);
    font-size: 0.88rem;
    line-height: 2;
}

.pb-market-info-meta {
    color: rgba(235, 245, 255, 0.78);
    font-size: 0.8rem;
}

.pb-market-divider {
    height: 1px;
    margin: 1.1rem 0 0.9rem;
    background: rgba(220, 238, 255, 0.16);
}

.pb-market-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.pb-market-link {
    min-width: 116px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(220, 238, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(245, 250, 255, 0.94);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--pb-transition);
}

    .pb-market-link:hover {
        transform: translateY(-2px);
        border-color: rgba(220, 238, 255, 0.38);
        background: rgba(255, 255, 255, 0.14);
        color: #fff;
    }

    .pb-market-link img {
        width: 24px;
        height: 24px;
        border-radius: 7px;
        object-fit: contain;
        background: rgba(255, 255, 255, 0.92);
    }

.pb-market-link-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .pb-market-info-card {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .pb-market-hero {
        padding: 1rem;
        border-radius: 20px;
    }

    .pb-market-logo {
        width: 72px;
        min-width: 72px;
        height: 72px;
        border-radius: 20px;
    }

    .pb-market-title {
        font-size: 1.45rem;
    }

    .pb-market-price {
        font-size: 2.1rem;
    }

    .pb-market-price-stats {
        grid-template-columns: 1fr;
    }

    .pb-market-link {
        flex: 1 1 110px;
    }
}



/* ---------- related symbols ---------- */

.pb-related-block {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--pb-border-soft);
}

    .pb-related-block:first-child {
        padding-top: 0;
    }

    .pb-related-block:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

.pb-related-symbols {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pb-related-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--pb-border-soft);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--pb-text-2);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--pb-transition);
}

    .pb-related-symbol:hover {
        transform: translateY(-2px);
        border-color: var(--pb-border-hover);
        background: #fff;
        color: var(--pb-primary);
        box-shadow: var(--pb-shadow-sm);
    }

    .pb-related-symbol.active {
        background: var(--pb-primary-soft);
        border-color: rgba(47, 111, 209, 0.28);
        color: var(--pb-primary-2);
    }

/* ---------- compact data list ---------- */

.pb-data-list {
    padding: 0.35rem 1.1rem 0.75rem;
}

.pb-data-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 92px;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--pb-border-soft);
    color: var(--pb-text-2);
    text-decoration: none;
    transition: var(--pb-transition);
}

    .pb-data-row:last-child {
        border-bottom: 0;
    }

    .pb-data-row:hover {
        color: var(--pb-primary);
    }

.pb-data-title {
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pb-data-date {
    color: var(--pb-text-soft);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
}

.pb-data-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.25rem 0.65rem;
    border-radius: 11px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

    .pb-data-badge.success {
        background: var(--pb-success-bg);
        color: var(--pb-success);
    }

    .pb-data-badge.primary,
    .pb-data-badge.info {
        background: var(--pb-primary-soft);
        color: var(--pb-primary-2);
    }

    .pb-data-badge.danger {
        background: var(--pb-danger-bg);
        color: var(--pb-danger);
    }

    .pb-data-badge.warning {
        background: rgba(245, 158, 11, 0.12);
        color: #c27803;
    }

.pb-soft-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--pb-border-soft);
    border-radius: 14px;
    background: rgba(245, 250, 255, 0.75);
    color: var(--pb-primary-2);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--pb-transition);
}

    .pb-soft-action:hover {
        background: var(--pb-bg-soft-hover);
        border-color: var(--pb-border-hover);
        color: var(--pb-primary);
    }

@media (max-width: 575.98px) {
    .pb-data-list {
        padding: 0.25rem 0.95rem 0.65rem;
    }

    .pb-data-row {
        grid-template-columns: 1fr auto;
        gap: 0.45rem 0.75rem;
        padding: 0.8rem 0;
    }

    .pb-data-badge {
        grid-column: 1 / 2;
        justify-self: start;
    }

    .pb-data-title {
        grid-column: 1 / -1;
        white-space: normal;
        font-size: 0.88rem;
    }

    .pb-data-date {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        font-size: 0.75rem;
    }
}


/* ---------- safe dropdown inside cards ---------- */

.pb-dropdown-scope {
    position: relative;
    z-index: 10;
    overflow: visible;
}

    .pb-dropdown-scope .pb-card {
        overflow: visible;
    }

    .pb-dropdown-scope .dropdown-menu {
        z-index: 1020;
    }





/* ---------- media / content reusable ---------- */

.pb-media-main {
    display: block;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--pb-border-soft);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--pb-shadow-sm);
    text-decoration: none;
}

    .pb-media-main img {
        width: 100%;
        max-height: 280px;
        object-fit: contain;
        display: block;
        padding: 0.5rem;
    }

    .pb-media-main span {
        position: absolute;
        left: 12px;
        bottom: 12px;
        padding: 4px 10px;
        border-radius: var(--pb-radius-pill);
        background: rgba(255, 255, 255, 0.88);
        color: var(--pb-primary-2);
        font-size: 0.78rem;
        font-weight: 600;
    }

.pb-media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.pb-media-thumb {
    display: block;
    overflow: hidden;
    border: 1px solid var(--pb-border-soft);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--pb-shadow-sm);
    transition: var(--pb-transition);
}

    .pb-media-thumb:hover {
        transform: translateY(-2px);
        border-color: var(--pb-border-hover);
    }

    .pb-media-thumb img {
        width: 100%;
        height: 92px;
        object-fit: contain;
        display: block;
        padding: 0.35rem;
    }

.pb-content-box {
    padding: 0.95rem 1rem;
    border: 1px solid var(--pb-border-soft);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.48);
    color: var(--pb-text-2);
    font-size: 0.92rem;
    line-height: 2.1;
    text-align: justify;
}

    .pb-content-box p:last-child {
        margin-bottom: 0;
    }

@media (max-width: 575.98px) {
    .pb-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pb-media-main img {
        max-height: 220px;
    }

    .pb-media-thumb img {
        height: 86px;
    }

    .pb-content-box {
        font-size: 0.88rem;
        line-height: 2;
        padding: 0.85rem;
    }
}