/**
 * TradeSah Theme — هوية اللوجو
 * أسود #0a0a0a | زمردي #2dcc6c | أخضر CTA #1faa59
 */
html {
    color-scheme: light;
}
html[data-bs-theme="dark"] {
    color-scheme: dark;
}

:root {
    --tradesah-black: #0a0a0a;
    --tradesah-emerald: #2dcc6c;
    --tradesah-emerald-bright: #56e89a;
    --tradesah-primary: #1faa59;
    --tradesah-primary-hover: #178a4a;
    --tradesah-secondary: #e8f5ee;
    --tradesah-yellow: #d4a012;
    --tradesah-text: #141a17;
    --tradesah-muted: #5c6b63;
    --tradesah-bg: #f6faf7;
    --tradesah-border: rgba(10, 10, 10, 0.08);
    --tradesah-surface: #ffffff;
    --tradesah-surface-alt: #eef6f0;
    --home-mint: #eef5f0;
    --tradesah-footer-bg: var(--home-mint);
    --tradesah-footer-text: #0f4a2a;
    --tradesah-footer-text-muted: #1a5c38;
    --tradesah-footer-link: #145c36;
    --tradesah-footer-border: rgba(15, 74, 42, 0.1);
    --tradesah-footer-shadow: 0 -2px 20px rgba(10, 10, 10, 0.06), 0 -1px 4px rgba(10, 10, 10, 0.03);
    --tradesah-nav-bg: #ffffff;
    --tradesah-nav-text: #0f4a2a;
    --tradesah-nav-text-muted: #1a5c38;
    --tradesah-nav-hover: var(--tradesah-primary);
    --tradesah-nav-accent: rgba(31, 170, 89, 0.1);
    --tradesah-nav-shadow: 0 2px 20px rgba(10, 10, 10, 0.07), 0 1px 4px rgba(10, 10, 10, 0.04);
    --tradesah-row-muted: #f0f6f2;
    --tradesah-row-muted-hover: #e4efe8;
    --tradesah-hero-dark: #0a0a0a;
    --tradesah-section-dark: #0f2e1c;
    --tradesah-section-muted: #eef5f0;
    --tradesah-forest: #145c36;
}

/* الوضع الداكن */
html[data-bs-theme="dark"] {
    --tradesah-emerald: #4ade80;
    --tradesah-emerald-bright: #6ee7a8;
    --tradesah-primary: #4ade80;
    --tradesah-primary-hover: #6ee7a8;
    --tradesah-secondary: #1a2420;
    --tradesah-yellow: #e8b84a;
    --tradesah-text: #e8edea;
    --tradesah-muted: #8fa396;
    --tradesah-bg: #0a0a0a;
    --tradesah-border: rgba(255, 255, 255, 0.08);
    --tradesah-surface: #111111;
    --tradesah-surface-alt: #161616;
    --tradesah-footer-bg: var(--tradesah-black);
    --tradesah-footer-text: #e8edea;
    --tradesah-footer-text-muted: #9fd4b8;
    --tradesah-footer-link: #d4ebe0;
    --tradesah-footer-border: rgba(255, 255, 255, 0.08);
    --tradesah-footer-shadow: 0 -2px 20px rgba(0, 0, 0, 0.35);
    --tradesah-nav-bg: #111111;
    --tradesah-nav-text: #d4ebe0;
    --tradesah-nav-text-muted: #9fd4b8;
    --tradesah-nav-hover: var(--tradesah-emerald);
    --tradesah-nav-accent: rgba(74, 222, 128, 0.12);
    --tradesah-nav-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
    --tradesah-row-muted: #141414;
    --tradesah-row-muted-hover: #1a1a1a;
    --tradesah-hero-dark: #0a0a0a;
    --tradesah-section-dark: #0d1f14;
    --tradesah-section-muted: #101510;
    --tradesah-forest: #1a5c38;
}

.tradesah-theme {
    --bs-primary: var(--tradesah-primary);
    --bs-primary-rgb: 31, 170, 89;
    --bs-link-color: var(--tradesah-primary);
    --bs-link-hover-color: var(--tradesah-primary-hover);
}

html[data-bs-theme="dark"] .tradesah-theme {
    --bs-primary-rgb: 74, 222, 128;
}

body.tradesah-theme {
    font-family: 'Almarai', 'Cairo', sans-serif;
    color: var(--tradesah-text);
    background-color: var(--tradesah-bg);
    /* تذييل دائماً أسفل الصفحة حتى مع محتوى قصير */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* الشريط العلوي لا ينضغط مع تخطيط العمود */
.tradesah-theme .navbar-tradesah {
    flex-shrink: 0;
    width: 100%;
}

/* حاوية كعرض المرجع (حتى ~80rem) */
.tradesah-theme .tradesah-main .container {
    max-width: min(80rem, 100%);
}

/* المحتوى الرئيسي يمتد ليملأ المساحة فوق التذييل */
.tradesah-theme .tradesah-main {
    flex: 1 0 auto;
    width: 100%;
}
.tradesah-theme .tradesah-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
@media (min-width: 768px) {
    .tradesah-theme .tradesah-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* رأس صفحة داخلية (موحّد مع الهيرو بالألوان) */
.tradesah-theme .tradesah-page-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--tradesah-text);
    margin-bottom: 0.5rem;
    line-height: 1.25;
}
.tradesah-theme .tradesah-page-subtitle {
    font-size: 1rem;
    color: var(--tradesah-muted);
    font-weight: 500;
    max-width: 42rem;
}
.tradesah-theme .tradesah-breadcrumb .breadcrumb {
    --bs-breadcrumb-divider: '›';
    font-size: 0.9rem;
}
.tradesah-theme .tradesah-breadcrumb .breadcrumb-item a {
    color: var(--tradesah-primary);
    text-decoration: none;
    font-weight: 600;
}
.tradesah-theme .tradesah-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}
.tradesah-theme .tradesah-breadcrumb .breadcrumb-item.active {
    color: var(--tradesah-muted);
}

/* محتوى نصي (صفحات CMS) */
.tradesah-theme .tradesah-prose {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--tradesah-text);
}
.tradesah-theme .tradesah-prose p {
    margin-bottom: 1rem;
}

/* أهداف روابط جدول المحتويات — لا يختبئ العنوان تحت الشريط العلوي عند التمرير */
.tradesah-theme .tradesah-prose :is(h2, h3, h4, h5, h6)[id] {
    scroll-margin-top: 5.5rem;
}

/* ترقيم الصفحات — مرحلة 2: تمرير أفقي على الجوال، أهداف لمس أوضح */
.tradesah-theme .tradesah-pagination {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}
.tradesah-theme .tradesah-pagination .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0;
}
.tradesah-theme .tradesah-pagination .page-link {
    color: var(--tradesah-primary);
    border-radius: 0.5rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.5rem;
}
.tradesah-theme .tradesah-pagination .page-item.active .page-link {
    background-color: var(--tradesah-primary);
    border-color: var(--tradesah-primary);
    color: #fff;
}
.tradesah-theme .tradesah-pagination .page-item.disabled .page-link {
    color: var(--tradesah-muted);
    opacity: 0.65;
}
.tradesah-theme .pagination .page-link {
    color: var(--tradesah-primary);
    border-radius: 0.5rem;
}
.tradesah-theme .pagination .page-item.active .page-link {
    background-color: var(--tradesah-primary);
    border-color: var(--tradesah-primary);
}

/* حالة فارغة */
.tradesah-theme .tradesah-empty-state-icon {
    width: 4rem;
    height: 4rem;
}

/* شريط تنقل — أيقونة واضحة على خلفية فاتحة */
.tradesah-theme .navbar-tradesah.navbar-light .navbar-toggler {
    border-color: var(--tradesah-secondary);
}

.tradesah-theme .btn-tradesah-primary {
    color: #fff;
    background-color: var(--tradesah-primary);
    border-color: var(--tradesah-primary);
    border-radius: 0.625rem;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}
.tradesah-theme .btn-tradesah-primary.btn-sm {
    padding: 0.35rem 1rem;
    font-size: 0.875rem;
}
.tradesah-theme .btn-tradesah-secondary.btn-sm {
    padding: 0.35rem 1rem;
    font-size: 0.875rem;
}
.tradesah-theme .btn-tradesah-primary:hover {
    background-color: var(--tradesah-primary-hover);
    border-color: var(--tradesah-primary-hover);
    color: #fff;
}

.tradesah-theme .btn-tradesah-secondary {
    color: var(--tradesah-primary);
    background-color: transparent;
    border-color: transparent;
    border-radius: 0.625rem;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}
.tradesah-theme .btn-tradesah-secondary:hover {
    background-color: var(--tradesah-secondary);
    border-color: var(--tradesah-secondary);
    color: var(--tradesah-primary);
}

.tradesah-theme .btn-tradesah-yellow {
    color: #212529;
    background-color: var(--tradesah-yellow);
    border-color: var(--tradesah-yellow);
    border-radius: 0.625rem;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
}
.tradesah-theme .btn-tradesah-yellow:hover {
    opacity: 0.9;
    color: #212529;
}

/* Hero */
.tradesah-theme .hero-title {
    font-size: clamp(2rem, 5vw, 3.15rem);
    font-weight: 800;
    color: var(--tradesah-text);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.tradesah-theme .hero-title .tradesah-home-hero__brand {
    color: var(--tradesah-primary);
}
.tradesah-theme .hero-title2 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--tradesah-muted);
    font-weight: 500;
    margin-bottom: 2rem;
}
@media (min-width: 992px) {
    .tradesah-theme .hero-title2 {
        text-align: start;
    }
}

/* الصفحة الرئيسية — هيرو داخل إطار بزوايا 11px وخلفية من ألوان الهوية + شعار شفاف */
.tradesah-theme .tradesah-home-hero__shell {
    position: relative;
    z-index: 0;
    border-radius: 11px;
    overflow: hidden;
    padding: 1.5rem 1.25rem 1.75rem;
    background-color: var(--tradesah-surface);
    background-image: linear-gradient(
        145deg,
        color-mix(in srgb, var(--tradesah-primary) 16%, var(--tradesah-surface)),
        color-mix(in srgb, var(--tradesah-secondary) 32%, var(--tradesah-surface))
    );
    border: 1px solid var(--tradesah-border);
    box-shadow: 0 0.35rem 1.25rem color-mix(in srgb, var(--tradesah-primary) 14%, transparent);
}
html[data-bs-theme="dark"] .tradesah-theme .tradesah-home-hero__shell {
    background-image: linear-gradient(
        145deg,
        color-mix(in srgb, var(--tradesah-primary) 22%, var(--tradesah-surface)),
        color-mix(in srgb, var(--tradesah-secondary) 28%, var(--tradesah-bg))
    );
    box-shadow: 0 0.35rem 1.5rem rgba(0, 0, 0, 0.35);
}
.tradesah-theme .tradesah-home-hero__shell--has-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: var(--tradesah-hero-logo-url);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: min(52%, 17rem);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}
html[data-bs-theme="dark"] .tradesah-theme .tradesah-home-hero__shell--has-logo::before {
    opacity: 0.12;
}
.tradesah-theme .tradesah-home-hero__shell .tradesah-home-hero__grid {
    position: relative;
    z-index: 1;
}
.tradesah-theme .tradesah-home-hero__pitch {
    font-size: clamp(1rem, 2.2vw, 1.125rem);
    line-height: 1.75;
    font-weight: 500;
    color: var(--tradesah-text);
    max-width: 42rem;
    margin-inline: auto;
    opacity: 0.95;
}
@media (min-width: 992px) {
    .tradesah-theme .tradesah-home-hero__pitch {
        margin-inline: 0;
        text-align: start;
    }
}
@media (min-width: 42rem) {
    .tradesah-theme .tradesah-home-hero__shell {
        padding: 2rem 1.75rem 2.25rem;
    }
}

/* الصفحة الرئيسية — تخطيط كـ theqa.reviews (index.html) */
.tradesah-theme .tradesah-home-hero__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
    padding-top: 0;
}
@media (min-width: 42rem) {
    .tradesah-theme .tradesah-home-hero__grid {
        grid-template-columns: 7fr 5fr;
        gap: 0 2rem;
        padding-top: 2.5rem;
    }
    .tradesah-theme .tradesah-home-hero__intro .hero-title {
        text-align: start;
    }
}
.tradesah-theme .tradesah-home-broker-list {
    display: grid;
    gap: 0.25rem;
}
@media (min-width: 42rem) {
    .tradesah-theme .tradesah-home-broker-list {
        grid-row: 1 / -1;
        grid-column: 2 / 3;
    }
}
.tradesah-theme .tradesah-home-broker-list__item {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tradesah-theme .tradesah-home-broker-list__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background-color: var(--tradesah-row-muted);
    border-radius: 0.25rem;
    padding: 0.5rem;
    transition: background-color 0.3s ease, padding-inline-start 0.3s ease;
    min-height: 3.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--tradesah-text);
    text-decoration: none;
}
.tradesah-theme .tradesah-home-broker-list__link:hover {
    background-color: var(--tradesah-row-muted-hover);
    padding-inline-start: 1rem;
    color: var(--tradesah-primary);
}
.tradesah-theme .tradesah-home-broker-list__name {
    flex: 1 1 auto;
    min-width: 0;
    text-align: start;
}
.tradesah-theme .tradesah-home-broker-list__img {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    object-fit: contain;
    border-radius: 0.25rem;
    background: #fff;
}
.tradesah-theme .tradesah-home-broker-list__placeholder {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    border-radius: 0.25rem;
    background: var(--tradesah-secondary);
}
.tradesah-theme .tradesah-home-broker-list__arrow {
    font-size: 1rem;
    color: var(--tradesah-text);
    opacity: 0.85;
    flex-shrink: 0;
}
.tradesah-theme .hero-caption {
    color: var(--tradesah-emerald);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: block;
    margin-bottom: 0.5rem;
}

/* Cards - review style */
.tradesah-theme .tradesah-card {
    position: relative;
    padding: 0;
    border-radius: 1rem;
    border: 1px solid var(--tradesah-border);
    background-color: var(--tradesah-surface);
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.tradesah-theme .tradesah-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
html[data-bs-theme="dark"] .tradesah-theme .tradesah-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.tradesah-theme .tradesah-card a {
    color: inherit;
    text-decoration: none;
}
.tradesah-theme .tradesah-card a:hover {
    color: var(--tradesah-primary);
}

/* بطاقة مع صورة مميزة (المرحلة 3) */
.tradesah-theme .tradesah-card--has-media {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.tradesah-theme .tradesah-card__media {
    aspect-ratio: 16 / 9;
    background-color: var(--tradesah-secondary);
    flex-shrink: 0;
}
.tradesah-theme .tradesah-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tradesah-theme .tradesah-card__body {
    padding: 1rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* غلاف صفحة / صورة علوية (صفحة وسيط أو CMS) */
.tradesah-theme .tradesah-page-cover {
    border-radius: 1rem;
    overflow: hidden;
    background-color: var(--tradesah-secondary);
}
.tradesah-theme .tradesah-page-cover__img {
    width: 100%;
    max-height: 20rem;
    object-fit: cover;
    display: block;
}

/* Content cards */
.tradesah-theme .tradesah-content-card {
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    background: var(--tradesah-surface);
}
.tradesah-theme .tradesah-toc {
    padding: 1.25rem;
}
.tradesah-theme .tradesah-toc__toggle {
    color: var(--tradesah-text);
    cursor: pointer;
}
.tradesah-theme .tradesah-toc__toggle:focus-visible {
    outline: 2px solid var(--tradesah-primary);
    outline-offset: 3px;
    border-radius: 0.35rem;
}
.tradesah-theme .tradesah-toc__toggle .tradesah-toc__title {
    margin-bottom: 0;
}
.tradesah-theme .tradesah-toc__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--tradesah-text);
}
.tradesah-theme .tradesah-toc__chevron {
    transition: transform 0.2s ease;
    color: var(--tradesah-muted);
}
.tradesah-theme .tradesah-toc__toggle.collapsed .tradesah-toc__chevron {
    transform: rotate(-90deg);
}
.tradesah-theme .tradesah-toc__nav {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--tradesah-border);
}
.tradesah-theme .tradesah-toc__list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-inline-start: 1.15rem;
    margin-bottom: 0;
}
.tradesah-theme .tradesah-toc__item--child {
    margin-inline-start: 0.85rem;
}
.tradesah-theme .tradesah-toc__link {
    color: var(--tradesah-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}
.tradesah-theme .tradesah-toc__link:hover,
.tradesah-theme .tradesah-toc__link:focus {
    color: var(--tradesah-primary);
    text-decoration: underline;
}

/* Banner */
.tradesah-theme .tradesah-banner {
    background: linear-gradient(135deg, var(--tradesah-primary) 0%, var(--tradesah-primary-hover) 100%);
    padding: 2rem;
    border-radius: 1rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) {
    .tradesah-theme .tradesah-banner {
        padding: 3rem 4rem;
    }
}

/* شريط التنقل — أبيض + ظل (عكس خلفية اللوجو الداكنة) */
.tradesah-theme .navbar-tradesah.navbar-tradesah--reference {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: 4.5rem;
    background-color: var(--tradesah-nav-bg) !important;
    border-bottom: 1px solid rgba(15, 74, 42, 0.08);
    box-shadow: var(--tradesah-nav-shadow);
}
.tradesah-theme .navbar-tradesah--reference .navbar-brand {
    color: var(--tradesah-nav-text) !important;
    font-weight: 800;
    font-size: 1.5rem;
    padding-block: 0.65rem;
}
.tradesah-theme .navbar-tradesah--reference .tradesah-navbar-logo {
    max-height: 46px;
    width: auto;
    display: block;
}
.tradesah-site-logo--light {
    display: inline-block;
}
.tradesah-site-logo--dark {
    display: none;
}
html[data-bs-theme="dark"] .tradesah-site-logo--light {
    display: none;
}
html[data-bs-theme="dark"] .tradesah-site-logo--dark {
    display: inline-block;
}
.tradesah-theme .navbar-tradesah--reference .nav-link,
.tradesah-theme .navbar-tradesah--reference .dropdown-toggle {
    color: var(--tradesah-nav-text-muted) !important;
    font-weight: 700;
    font-size: 0.8125rem;
    border-bottom: 0.2rem solid transparent;
}
.tradesah-theme .navbar-tradesah--reference .nav-link:hover,
.tradesah-theme .navbar-tradesah--reference .nav-link:focus,
.tradesah-theme .navbar-tradesah--reference .nav-link.active,
.tradesah-theme .navbar-tradesah--reference .dropdown-toggle:hover,
.tradesah-theme .navbar-tradesah--reference .dropdown-toggle:focus,
.tradesah-theme .navbar-tradesah--reference .dropdown-toggle.show {
    color: var(--tradesah-nav-text) !important;
    border-bottom-color: var(--tradesah-primary);
    background: var(--tradesah-nav-accent);
}
.tradesah-theme .navbar-tradesah--reference .navbar-toggler {
    border-color: rgba(15, 74, 42, 0.15);
    color: var(--tradesah-nav-text);
}
.tradesah-theme .navbar-tradesah--reference .navbar-toggler-icon {
    filter: none;
}
.tradesah-theme .form-control-tradesah-nav {
    background-color: var(--tradesah-surface-alt);
    border: 1px solid rgba(15, 74, 42, 0.12);
    color: var(--tradesah-nav-text);
}
.tradesah-theme .form-control-tradesah-nav::placeholder {
    color: rgba(15, 74, 42, 0.45);
}
.tradesah-theme .form-control-tradesah-nav:focus {
    background-color: #fff;
    border-color: rgba(31, 170, 89, 0.45);
    color: var(--tradesah-nav-text);
    box-shadow: 0 0 0 0.2rem rgba(31, 170, 89, 0.12);
}
.tradesah-theme .btn-tradesah-nav-icon {
    border: 1px solid rgba(15, 74, 42, 0.14);
    color: var(--tradesah-nav-text);
    background: #fff;
}
.tradesah-theme .btn-tradesah-nav-icon:hover {
    background: var(--tradesah-primary);
    border-color: var(--tradesah-primary);
    color: #fff;
}
.tradesah-theme .navbar-tradesah--reference .tradesah-navbar-mega {
    width: min(100vw - 1.5rem, 58rem);
    max-height: min(80vh, 42rem);
    overflow-y: auto;
    background: var(--tradesah-surface);
    border-radius: 1rem;
}
.tradesah-theme .navbar-tradesah--reference .tradesah-navbar-mega__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0.55rem 0.7rem;
    color: var(--tradesah-text);
    background: var(--tradesah-surface-alt);
    border: 1px solid var(--tradesah-border);
    border-radius: 0.75rem;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
}
.tradesah-theme .navbar-tradesah--reference .tradesah-navbar-mega__link:hover {
    color: var(--tradesah-primary);
    border-color: rgba(var(--bs-primary-rgb), 0.35);
    background: rgba(var(--bs-primary-rgb), 0.06);
}
@media (min-width: 992px) {
    .tradesah-theme .navbar-tradesah--reference .tradesah-navbar-mega {
        inset-inline-start: 0;
        inset-inline-end: auto;
        margin-top: 0;
    }
}
@media (max-width: 991.98px) {
    .tradesah-theme .navbar-tradesah--reference .tradesah-navbar-mega {
        width: 100%;
        box-shadow: none !important;
    }
}

/* شريط التنقل — الوضع الداكن */
html[data-bs-theme="dark"] .tradesah-theme .navbar-tradesah.navbar-tradesah--reference {
    background-color: var(--tradesah-nav-bg) !important;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
html[data-bs-theme="dark"] .tradesah-theme .navbar-tradesah--reference .navbar-brand,
html[data-bs-theme="dark"] .tradesah-theme .navbar-tradesah--reference .nav-link,
html[data-bs-theme="dark"] .tradesah-theme .navbar-tradesah--reference .dropdown-toggle {
    color: var(--tradesah-nav-text-muted) !important;
}
html[data-bs-theme="dark"] .tradesah-theme .navbar-tradesah--reference .nav-link:hover,
html[data-bs-theme="dark"] .tradesah-theme .navbar-tradesah--reference .nav-link.active,
html[data-bs-theme="dark"] .tradesah-theme .navbar-tradesah--reference .dropdown-toggle:hover,
html[data-bs-theme="dark"] .tradesah-theme .navbar-tradesah--reference .dropdown-toggle.show {
    color: var(--tradesah-emerald-bright) !important;
    background: var(--tradesah-nav-accent);
}
html[data-bs-theme="dark"] .tradesah-theme .navbar-tradesah--reference .form-control-tradesah-nav {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}
html[data-bs-theme="dark"] .tradesah-theme .navbar-tradesah--reference .form-control-tradesah-nav::placeholder {
    color: rgba(255, 255, 255, 0.45);
}
html[data-bs-theme="dark"] .tradesah-theme .navbar-tradesah--reference .form-control-tradesah-nav:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(74, 222, 128, 0.35);
    color: #fff;
}
html[data-bs-theme="dark"] .tradesah-theme .btn-tradesah-nav-icon {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}
html[data-bs-theme="dark"] .tradesah-theme .btn-tradesah-nav-icon:hover {
    background: var(--tradesah-primary);
    border-color: var(--tradesah-primary);
    color: #fff;
}
html[data-bs-theme="dark"] .tradesah-theme .navbar-tradesah--reference .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* Footer — خلفية فاتحة عكس اللوجو الأخضر الغامق */
.tradesah-theme .footer-tradesah {
    flex-shrink: 0;
    width: 100%;
    background-color: var(--tradesah-footer-bg);
    color: var(--tradesah-footer-text);
    border-top: 1px solid var(--tradesah-footer-border);
    box-shadow: var(--tradesah-footer-shadow);
}
.tradesah-theme .footer-tradesah a {
    color: var(--tradesah-footer-link);
}
.tradesah-theme .footer-tradesah a:hover {
    color: var(--tradesah-primary);
}
.tradesah-theme .footer-tradesah hr {
    border-color: var(--tradesah-footer-border);
    opacity: 1;
}
.tradesah-theme .footer-tradesah .opacity-75 {
    opacity: 0.75 !important;
    color: var(--tradesah-footer-text-muted);
}
.tradesah-theme .footer-tradesah .opacity-50 {
    opacity: 0.55 !important;
    color: var(--tradesah-footer-text-muted);
}

.tradesah-theme .tradesah-footer-contact__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--tradesah-nav-accent);
    color: var(--tradesah-footer-text);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tradesah-theme .tradesah-footer-contact__link:hover {
    background: var(--tradesah-primary);
    color: #fff;
    transform: translateY(-1px);
}

html[data-bs-theme="dark"] .tradesah-theme .tradesah-footer-contact__link {
    background: rgba(255, 255, 255, 0.1);
    color: var(--tradesah-footer-link);
}
html[data-bs-theme="dark"] .tradesah-theme .tradesah-footer-contact__link:hover {
    background: var(--tradesah-primary);
    color: #fff;
}

.tradesah-theme .tradesah-footer-contact__link i {
    font-size: 1.15rem;
    line-height: 1;
}

/* Override Bootstrap primary for consistency */
.tradesah-theme .bg-primary-subtle {
    background-color: color-mix(in srgb, var(--tradesah-primary) 12%, var(--tradesah-surface)) !important;
}
.tradesah-theme .btn-primary {
    background-color: var(--tradesah-primary);
    border-color: var(--tradesah-primary);
    border-radius: 0.625rem;
    font-weight: 700;
}
.tradesah-theme .btn-primary:hover {
    background-color: var(--tradesah-primary-hover);
    border-color: var(--tradesah-primary-hover);
}
.tradesah-theme .btn-outline-primary {
    color: var(--tradesah-primary);
    border-color: var(--tradesah-primary);
    border-radius: 99em;
}
.tradesah-theme .btn-outline-primary:hover {
    background-color: var(--tradesah-secondary);
    border-color: var(--tradesah-secondary);
    color: var(--tradesah-primary);
}
.tradesah-theme .badge.bg-primary {
    background-color: var(--tradesah-primary) !important;
}
.tradesah-theme .text-primary {
    color: var(--tradesah-primary) !important;
}
.tradesah-theme .link-primary {
    color: var(--tradesah-primary) !important;
}
.tradesah-theme .link-primary:hover {
    color: var(--tradesah-primary-hover) !important;
}

/* أيقونة حالة الفراغ — بدل bg-light الثابت */
.tradesah-theme .tradesah-empty-state-icon-wrap {
    background-color: var(--tradesah-secondary) !important;
    color: var(--tradesah-primary) !important;
}

html[data-bs-theme="dark"] .tradesah-theme .btn-tradesah-yellow {
    color: #1a1a1a;
}

/* ——— الصفحة الرئيسية: أقسام إضافية (تنبيهات، مقالات، توصيات، فريق) ——— */
.tradesah-theme .tradesah-home-scam-item {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 0.75rem 1rem;
    align-items: start;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background-color: var(--tradesah-row-muted);
    border: 2px solid transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.tradesah-theme .tradesah-home-scam-item:hover {
    border-color: rgba(190, 18, 60, 0.28);
    background-color: var(--tradesah-row-muted-hover);
}
.tradesah-theme .tradesah-home-scam-item__icon {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.35rem;
    background: #fecdd3;
    flex-shrink: 0;
}
.tradesah-theme .tradesah-home-scam-item__title {
    color: inherit;
}
.tradesah-theme .tradesah-home-scam-item__title:hover {
    color: var(--tradesah-primary);
}
.tradesah-theme .tradesah-home-signals {
    background: linear-gradient(135deg, var(--tradesah-black) 0%, var(--tradesah-forest) 48%, var(--tradesah-primary) 100%);
    box-shadow: 0 12px 40px rgba(10, 10, 10, 0.22);
}
.tradesah-theme .tradesah-home-author-card {
    border: 1px solid var(--tradesah-secondary);
    background: var(--tradesah-surface);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    color: inherit;
}
.tradesah-theme .tradesah-home-author-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border-color: var(--tradesah-primary);
}
.tradesah-theme .tradesah-home-author-avatar {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.25rem;
}
.tradesah-theme .tradesah-home-review-card__logo {
    object-fit: contain;
    background: #fff;
}
.tradesah-theme .tradesah-home-review-card__logo-placeholder {
    width: 64px;
    height: 64px;
    background: var(--tradesah-secondary);
}
.tradesah-theme .tradesah-home-user-comment {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.tradesah-theme .tradesah-home-comparisons .list-group-item {
    background: var(--tradesah-surface);
}
.tradesah-theme .tradesah-home-comparisons a {
    color: var(--tradesah-text);
}
.tradesah-theme .tradesah-home-comparisons a:hover {
    color: var(--tradesah-primary);
}
.tradesah-theme .tradesah-landing-menu-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.65rem 0.8rem;
    color: var(--tradesah-text);
    background: var(--tradesah-surface-alt);
    border: 1px solid var(--tradesah-border);
    border-radius: 0.9rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.tradesah-theme .tradesah-landing-menu-link:hover {
    color: var(--tradesah-primary);
    border-color: rgba(var(--bs-primary-rgb), 0.35);
    background: rgba(var(--bs-primary-rgb), 0.06);
    transform: translateY(-1px);
}
.tradesah-theme .tradesah-landing-menu-link--wide {
    justify-content: flex-start;
}
html[data-bs-theme="dark"] .tradesah-theme .tradesah-landing-menu-link {
    background: rgba(255, 255, 255, 0.04);
}
.tradesah-theme .tradesah-broker-shortcode-table {
    --bs-table-bg: var(--tradesah-surface);
    --bs-table-color: var(--tradesah-text);
}
.tradesah-theme .tradesah-broker-shortcode-table th {
    color: var(--tradesah-muted);
    background: var(--tradesah-surface-alt);
    font-size: 0.85rem;
    white-space: nowrap;
}
html[data-bs-theme="dark"] .tradesah-theme .tradesah-home-scam-item {
    background-color: var(--tradesah-row-muted);
}
html[data-bs-theme="dark"] .tradesah-theme .tradesah-home-scam-item__icon {
    background: rgba(254, 205, 211, 0.15);
}
html[data-bs-theme="dark"] .tradesah-theme .tradesah-home-user-comment {
    box-shadow: none;
    border: 1px solid var(--tradesah-border);
}

.tradesah-theme .tradesah-articles-sidebar-sticky {
    top: 1rem;
    z-index: 2;
}

.tradesah-theme .tradesah-articles-sidebar-thumb {
    width: 3.5rem;
    height: 3.5rem;
}
.tradesah-theme .tradesah-articles-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tradesah-theme .tradesah-articles-sidebar-thumb--placeholder {
    background: var(--tradesah-surface-alt);
    border: 1px solid var(--tradesah-border);
}
.tradesah-theme .tradesah-articles-sidebar-item + .tradesah-articles-sidebar-item {
    margin-top: 1rem;
}
.tradesah-theme .tradesah-articles-sidebar-link:hover .tradesah-articles-sidebar-title {
    color: var(--tradesah-primary);
}

.tradesah-content-card tbody ,.tradesah-content-card tbody,.tradesah-content-card tfoot,.tradesah-content-card tr,.tradesah-content-card td,.tradesah-content-card th{

    border-width: 1px !important;
}
