/* حالت شب سایت اصلی
   همه‌ی قوانین زیر فقط با html[data-theme="dark"] فعال می‌شوند و این فایل باید بعد از بقیه‌ی CSSها بارگذاری شود. */

/* —— دکمه‌ی تغییر حالت (در هر دو حالت) —— */
.nz-theme-btn .nz-theme-sun,
.nz-drawer-theme .nz-theme-sun {
    display: none;
}

html[data-theme="dark"] .nz-theme-btn .nz-theme-moon,
html[data-theme="dark"] .nz-drawer-theme .nz-theme-moon {
    display: none;
}

html[data-theme="dark"] .nz-theme-btn .nz-theme-sun,
html[data-theme="dark"] .nz-drawer-theme .nz-theme-sun {
    display: inline-block;
}

/* انتقال نرم رنگ‌ها فقط لحظه‌ی کلیک */
html.nz-theme-anim,
html.nz-theme-anim *,
html.nz-theme-anim *::before,
html.nz-theme-anim *::after {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease !important;
}

html[data-theme="dark"] {
    color-scheme: dark;

    --dk-bg: #0d1a26;
    --dk-bg-2: #112334;
    --dk-surface: #162b3d;
    --dk-surface-2: #1b3347;
    --dk-surface-3: #213d54;
    --dk-line: #28445a;
    --dk-line-soft: #1f3a4f;
    --dk-ink: #e6eef4;
    --dk-ink-2: #c2d1dc;
    --dk-muted: #8fa5b6;
    --dk-teal: #4fc3b1;
    --dk-teal-soft: rgba(79, 195, 177, 0.14);
    --dk-link: #7cc4ff;
    --dk-gold: #e0b94a;
    --dk-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.35);

    /* متغیرهای صفحه‌ی اصلی */
    /* --hv2-navy در گرادیان‌ها و دکمه‌ها پس‌زمینه است؛ برای متن‌ها در پایین‌تر جداگانه روشن می‌شود */
    --hv2-navy: #13547a;
    --hv2-navy-deep: #0a1620;
    --hv2-teal: #4fc3b1;
    --hv2-teal-soft: rgba(79, 195, 177, 0.14);
    --hv2-ink: #e6eef4;
    --hv2-muted: #8fa5b6;
    --hv2-line: #28445a;
    --hv2-surface: #112334;
    --hv2-gold: #e0b94a;
    --hv2-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.3);
    --hv2-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.4), 0 18px 36px rgba(0, 0, 0, 0.45);

    /* متغیرهای home-enhance و پروفایل اعضا */
    --nezam-surface: #112334;
    --nezam-ink: #e6eef4;
    --mp-navy: #e6eef4;
    --mp-muted: #8fa5b6;
    --mp-ink: #e6eef4;
    --mp-gold-light: rgba(224, 185, 74, 0.14);
}

/* —— پایه —— */
html[data-theme="dark"] body,
html[data-theme="dark"] body.nezam-site {
    background: var(--dk-bg) !important;
    color: var(--dk-ink-2);
}

html[data-theme="dark"] body.nezam-site .main_wrap {
    background: transparent;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .h1,
html[data-theme="dark"] .h2,
html[data-theme="dark"] .h3,
html[data-theme="dark"] .h4 {
    color: var(--dk-ink);
}

html[data-theme="dark"] a {
    color: var(--dk-link);
}

html[data-theme="dark"] hr {
    border-color: var(--dk-line);
}

html[data-theme="dark"] ::selection {
    background: rgba(79, 195, 177, 0.35);
    color: #fff;
}

html[data-theme="dark"] .text-dark,
html[data-theme="dark"] .text-body {
    color: var(--dk-ink) !important;
}

html[data-theme="dark"] .text-muted {
    color: var(--dk-muted) !important;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-light {
    background-color: var(--dk-surface) !important;
}

html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-left,
html[data-theme="dark"] .border-right {
    border-color: var(--dk-line) !important;
}

/* —— کارت‌ها و باکس‌ها —— */
html[data-theme="dark"] .card,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .list-group-item,
html[data-theme="dark"] .pcountry,
html[data-theme="dark"] .thumb-post {
    background-color: var(--dk-surface);
    border-color: var(--dk-line);
    color: var(--dk-ink-2);
}

html[data-theme="dark"] .card-header,
html[data-theme="dark"] .card-footer {
    background-color: var(--dk-surface-2);
    border-color: var(--dk-line);
}

html[data-theme="dark"] .shadow,
html[data-theme="dark"] .shadow-sm,
html[data-theme="dark"] .demo2 .shadow-sm {
    box-shadow: var(--dk-shadow) !important;
}

html[data-theme="dark"] .bright,
html[data-theme="dark"] .bg-light.bright {
    background-color: var(--dk-surface-2) !important;
    color: var(--dk-ink);
}

html[data-theme="dark"] .breadcrumb {
    background: var(--dk-surface);
    border: 1px solid var(--dk-line);
}

html[data-theme="dark"] .breadcrumb a,
html[data-theme="dark"] .breadcrumb li {
    color: var(--dk-ink-2);
}

html[data-theme="dark"] .breadcrumb a.current {
    color: var(--dk-teal);
}

/* نوار رنگی بالای صفحه‌های داخلی */
html[data-theme="dark"] .bg-purple {
    background-image: linear-gradient(119deg, #0e5a60, #0a2f4a) !important;
}

/* —— فرم‌ها —— */
html[data-theme="dark"] .form-control,
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background-color: var(--dk-bg-2);
    border-color: var(--dk-line);
    color: var(--dk-ink);
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus {
    background-color: var(--dk-bg-2);
    border-color: var(--dk-teal);
    color: var(--dk-ink);
    box-shadow: 0 0 0 3px rgba(79, 195, 177, 0.18);
}

html[data-theme="dark"] ::placeholder {
    color: var(--dk-muted) !important;
    opacity: 1;
}

html[data-theme="dark"] label {
    color: var(--dk-ink-2);
}

html[data-theme="dark"] .btn-light,
html[data-theme="dark"] .btn-default,
html[data-theme="dark"] .btn-outline-secondary {
    background-color: var(--dk-surface-2);
    border-color: var(--dk-line);
    color: var(--dk-ink);
}

/* —— جدول‌ها و محتوای ادیتور —— */
html[data-theme="dark"] table,
html[data-theme="dark"] .table {
    color: var(--dk-ink-2);
}

html[data-theme="dark"] .table td,
html[data-theme="dark"] .table th,
html[data-theme="dark"] table td,
html[data-theme="dark"] table th {
    border-color: var(--dk-line) !important;
}

html[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] blockquote {
    background: var(--dk-surface-2);
    border-color: var(--dk-teal);
    color: var(--dk-ink-2);
}

html[data-theme="dark"] pre,
html[data-theme="dark"] code {
    background: var(--dk-bg-2);
    color: var(--dk-ink-2);
}

/* محتوای نوشته‌شده با ادیتور: رنگ‌های ثابت (سیاه و سفید) خوانا می‌شوند */
html[data-theme="dark"] .card [style*="color:#000"],
html[data-theme="dark"] .card [style*="color: #000"],
html[data-theme="dark"] .card [style*="color:black"],
html[data-theme="dark"] .card [style*="color: black"],
html[data-theme="dark"] .card [style*="rgb(0, 0, 0)"],
html[data-theme="dark"] .card [style*="color:#333"],
html[data-theme="dark"] .card [style*="color: #333"] {
    color: var(--dk-ink-2) !important;
}

html[data-theme="dark"] .card [style*="background-color:#fff"],
html[data-theme="dark"] .card [style*="background-color: #fff"],
html[data-theme="dark"] .card [style*="background:#fff"],
html[data-theme="dark"] .card [style*="background: #fff"],
html[data-theme="dark"] .card [style*="background-color: rgb(255, 255, 255)"],
html[data-theme="dark"] .card [style*="background: rgb(255, 255, 255)"],
html[data-theme="dark"] .card [style*="background-color:white"],
html[data-theme="dark"] .card [style*="background-color: white"] {
    background-color: transparent !important;
}

/* تصویرها کمی ملایم‌تر شوند تا در زمینه‌ی تیره چشم را نزنند */
html[data-theme="dark"] img:not(.nz-logo img):not([src$=".svg"]):not(.nz-drawer-logo img) {
    filter: brightness(0.9) contrast(1.02);
}

/* —— منوی بالای سایت —— */
html[data-theme="dark"] .nz-header {
    --nz-navy: #e6eef4;
    --nz-ink: #dbe6ee;
    --nz-muted: #8fa5b6;
    --nz-teal: #4fc3b1;
    --nz-teal-soft: rgba(79, 195, 177, 0.14);
    --nz-line: #28445a;
    --nz-surface: #1b3347;
    --nz-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
    --nz-drop-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .nz-bar,
html[data-theme="dark"] .nz-search,
html[data-theme="dark"] .nz-header .nz-drop-list {
    background: #12263a;
    border-color: #28445a;
}

html[data-theme="dark"] .nz-drop:not(.nz-drop--side) > .nz-drop-list::before {
    background: #12263a;
    border-color: #28445a;
}

html[data-theme="dark"] .nz-header.is-stuck .nz-bar-wrap {
    background: rgba(13, 26, 38, 0.92);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .nz-header.is-stuck .nz-bar {
    background: transparent;
}

html[data-theme="dark"] .nz-logo {
    border-left-color: #28445a;
}

/* لوگوی سازمان (SVG تیره) روی زمینه‌ی تیره روی یک زمینه‌ی روشن ملایم می‌نشیند */
html[data-theme="dark"] .nz-logo img,
html[data-theme="dark"] .nz-drawer-logo img {
    padding: 4px 8px;
    border-radius: 10px;
    background: #eef3f7;
}

html[data-theme="dark"] .nz-sub-link::before {
    background: #3a566c;
}

html[data-theme="dark"] .nz-icon-btn:hover,
html[data-theme="dark"] .nz-header.is-search .nz-search-toggle {
    background: #4fc3b1;
    border-color: #4fc3b1;
    color: #08202a;
}

html[data-theme="dark"] .nz-search-submit {
    background: linear-gradient(119deg, #1aa79f, #0b5f8a);
}

html[data-theme="dark"] .nz-bar-wrap {
    background: transparent;
}

@media (max-width: 991.98px) {
    html[data-theme="dark"] .nz-bar-wrap {
        background: #12263a;
        box-shadow: 0 1px 0 #28445a, 0 6px 18px rgba(0, 0, 0, 0.4);
    }

    html[data-theme="dark"] .nz-burger {
        background: #4fc3b1;
        border-color: #4fc3b1;
        color: #08202a;
    }
}

/* —— منوی کشویی موبایل —— */
html[data-theme="dark"] .nz-drawer {
    --nz-navy: #e6eef4;
    --nz-ink: #dbe6ee;
    --nz-muted: #8fa5b6;
    --nz-teal: #4fc3b1;
    --nz-teal-soft: rgba(79, 195, 177, 0.14);
    --nz-line: #28445a;
    --nz-surface: #1b3347;
    background: #12263a;
    box-shadow: -24px 0 48px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .nz-drawer-head {
    border-bottom-color: #28445a;
}

html[data-theme="dark"] .nz-drawer .nz-icon-btn,
html[data-theme="dark"] .nz-drawer-search input {
    background: #1b3347;
    border-color: #28445a;
    color: #e6eef4;
}

html[data-theme="dark"] .nz-drawer-search button {
    background: #4fc3b1;
    color: #08202a;
}

html[data-theme="dark"] .nz-m-menu > li {
    border-bottom-color: #1f3a4f;
}

html[data-theme="dark"] .nz-drawer-foot {
    background: #0f2030;
    border-top-color: #28445a;
}

html[data-theme="dark"] .nz-drawer-contact {
    color: #dbe6ee !important;
}

html[data-theme="dark"] .nz-drawer-contact i,
html[data-theme="dark"] .nz-drawer-social a {
    background: #1b3347;
    border-color: #28445a;
}

html[data-theme="dark"] .nz-drawer-social a {
    color: #e6eef4 !important;
}

html[data-theme="dark"] .nz-backdrop {
    background: rgba(0, 0, 0, 0.62);
}

/* ============ صفحه‌ی اصلی ============ */
html[data-theme="dark"] .hv2-title,
html[data-theme="dark"] .hv2-panel-more,
html[data-theme="dark"] .hv2-post-date,
html[data-theme="dark"] .hv2-tabs .nav-link:hover {
    color: var(--dk-ink) !important;
}

html[data-theme="dark"] .hv2-title::after {
    background: linear-gradient(90deg, var(--dk-teal), #2f7fa8);
}

html[data-theme="dark"] .hv2-panel-more {
    background: var(--dk-surface-2);
    border-color: var(--dk-line);
}

html[data-theme="dark"] .hv2-panel-more:hover {
    background: var(--dk-teal);
    border-color: var(--dk-teal);
    color: #06222b !important;
}

html[data-theme="dark"] .hv2-daynote {
    background: rgba(18, 38, 58, 0.96);
    border-color: var(--dk-line);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .hv2-daynote-text,
html[data-theme="dark"] .hv2-daynote p {
    color: var(--dk-ink);
}

html[data-theme="dark"] .hv2-quicknav-link,
html[data-theme="dark"] .hv2-iconcard,
html[data-theme="dark"] .hv2-syscard,
html[data-theme="dark"] .hv2-post,
html[data-theme="dark"] .hv2-panel {
    background: var(--dk-surface);
    border-color: var(--dk-line);
}

html[data-theme="dark"] .hv2-quicknav-link:hover {
    background: #1d6a8f;
    color: #fff !important;
}

html[data-theme="dark"] .hv2-quicknav-link--accent {
    background: linear-gradient(135deg, #13547a, #1a7a6d);
    border-color: transparent;
}

html[data-theme="dark"] .hv2-iconcard-icon {
    background: radial-gradient(circle at 30% 30%, #eef4f8 0%, #c9dde6 75%);
    border-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .hv2-iconcard-title,
html[data-theme="dark"] .hv2-iconcard a,
html[data-theme="dark"] .hv2-iconcard h3,
html[data-theme="dark"] .hv2-iconcard h4,
html[data-theme="dark"] .hv2-iconcard span {
    color: var(--dk-ink) !important;
}

html[data-theme="dark"] .hv2-systems {
    background: linear-gradient(180deg, var(--dk-bg-2) 0%, var(--dk-bg) 100%);
}

html[data-theme="dark"] .hv2-syscard-list li a,
html[data-theme="dark"] body.nezam-site .home-systems-panel.mylinks ul li a,
html[data-theme="dark"] body.nezam-site .mylinks.home-systems-panel ul li a {
    color: var(--dk-ink-2) !important;
}

html[data-theme="dark"] .hv2-syscard-list li a:hover {
    background: var(--dk-teal-soft);
    color: var(--dk-teal) !important;
}

html[data-theme="dark"] .home-systems-panel {
    background: var(--dk-surface) !important;
    box-shadow: var(--dk-shadow);
}

html[data-theme="dark"] .hv2-panel-head {
    background: linear-gradient(180deg, var(--dk-surface-2), var(--dk-surface));
    border-color: var(--dk-line);
}

html[data-theme="dark"] .hv2-post h3,
html[data-theme="dark"] .hv2-post h4,
html[data-theme="dark"] .hv2-post-title,
html[data-theme="dark"] .hv2-post a {
    color: var(--dk-ink) !important;
}

html[data-theme="dark"] .hv2-post p,
html[data-theme="dark"] .hv2-post-excerpt {
    color: var(--dk-muted);
}

html[data-theme="dark"] .hv2-post-date {
    background: rgba(13, 26, 38, 0.9);
    color: var(--dk-ink) !important;
}

html[data-theme="dark"] .hv2-tabs .nav-link {
    color: var(--dk-muted) !important;
}

html[data-theme="dark"] .hv2-tabs .nav-link.active {
    background: #1d6a8f !important;
    color: #fff !important;
}

/* کارت ریاست سازمان */
html[data-theme="dark"] .home-intro .executive-card {
    --primary-navy: #e6eef4;
    --secondary-navy: #8fc3e0;
    --gold-light: rgba(224, 185, 74, 0.16);
    --text-muted: #8fa5b6;
    background: var(--dk-surface);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .home-intro .executive-card .action-btn {
    background: var(--dk-surface-2) !important;
    color: var(--dk-ink) !important;
    border-color: var(--dk-line) !important;
}

html[data-theme="dark"] .home-intro .executive-card .avatar-glow + img,
html[data-theme="dark"] .home-intro .executive-card img {
    border-color: var(--dk-surface);
    background: var(--dk-surface);
}

/* اسلایدر و فلش‌ها */
html[data-theme="dark"] .owl-nav button,
html[data-theme="dark"] .owl-carousel .owl-nav button.owl-prev,
html[data-theme="dark"] .owl-carousel .owl-nav button.owl-next {
    background: var(--dk-surface-2) !important;
    color: var(--dk-ink) !important;
    border: 1px solid var(--dk-line) !important;
}

html[data-theme="dark"] .owl-dots .owl-dot span {
    background: #3a566c;
}

html[data-theme="dark"] .owl-dots .owl-dot.active span {
    background: var(--dk-teal);
}

html[data-theme="dark"] .home-intro .executive-card .card-banner {
    background: linear-gradient(135deg, #132742 0%, #1f3c64 100%);
}

html[data-theme="dark"] .hv2-section .owl-carousel .owl-nav button.owl-prev,
html[data-theme="dark"] .hv2-section .owl-carousel .owl-nav button.owl-next {
    background: var(--dk-surface-2) !important;
    color: var(--dk-ink) !important;
    border-color: var(--dk-line) !important;
}

html[data-theme="dark"] .hv2-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] .hv2-panel .tab-content,
html[data-theme="dark"] .hv2-panel-body,
html[data-theme="dark"] .hv2-panel .tab-pane,
html[data-theme="dark"] .hv2-panel .card-body {
    background: transparent;
    color: var(--dk-ink-2);
}

/* —— اصلاحات تکمیلی بعد از ممیزی —— */
html[data-theme="dark"] .owl-carousel .owl-prev,
html[data-theme="dark"] .owl-carousel .owl-next,
html[data-theme="dark"] .owl-carousel div.owl-prev,
html[data-theme="dark"] .owl-carousel div.owl-next {
    background: var(--dk-surface-2) !important;
    color: var(--dk-ink) !important;
    border: 1px solid var(--dk-line) !important;
}

html[data-theme="dark"] .role-badge {
    color: var(--dk-gold) !important;
}

html[data-theme="dark"] a.text-primary,
html[data-theme="dark"] .text-primary {
    color: var(--dk-link) !important;
}

html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .breadcrumb.shadow-sm {
    background: var(--dk-surface) !important;
    border: 1px solid var(--dk-line);
}

html[data-theme="dark"] .breadcrumb a {
    color: var(--dk-ink-2) !important;
}

html[data-theme="dark"] .breadcrumb a.current {
    color: var(--dk-teal) !important;
}

/* —— پروفایل اعضا —— */
html[data-theme="dark"] .member-profile-card {
    background: var(--dk-surface);
    border-color: var(--dk-line);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .member-profile-avatar {
    background: var(--dk-surface);
    border-color: var(--dk-surface);
}

html[data-theme="dark"] .member-profile-name,
html[data-theme="dark"] .member-profile-bio h2,
html[data-theme="dark"] .member-profile-info .value,
html[data-theme="dark"] .member-profile-info .value a {
    color: var(--dk-ink) !important;
}

html[data-theme="dark"] .member-profile-org,
html[data-theme="dark"] .member-profile-info .label,
html[data-theme="dark"] .member-profile-bio-text {
    color: var(--dk-muted);
}

html[data-theme="dark"] .member-profile-info {
    background: var(--dk-surface-2);
    border-color: var(--dk-line);
}

html[data-theme="dark"] .member-profile-badge {
    background: rgba(224, 185, 74, 0.14);
    border-color: rgba(224, 185, 74, 0.35);
    color: var(--dk-gold);
}

html[data-theme="dark"] .member-profile-btn--ghost {
    background: var(--dk-surface-2);
    border-color: var(--dk-line);
    color: var(--dk-ink) !important;
}

html[data-theme="dark"] .member-profile-btn--primary {
    background: var(--dk-teal);
    color: #06222b !important;
}

html[data-theme="dark"] .member-profile-breadcrumb a {
    color: var(--dk-ink-2);
}

html[data-theme="dark"] .member-profile-body {
    border-color: var(--dk-line);
}

/* —— فهرست اعضا —— */
html[data-theme="dark"] .team-boxed,
html[data-theme="dark"] .our-team,
html[data-theme="dark"] .bg-lighten {
    background: transparent !important;
}

html[data-theme="dark"] .our-team .box,
html[data-theme="dark"] .team-boxed .box {
    background: var(--dk-surface);
    border: 1px solid var(--dk-line);
    box-shadow: var(--dk-shadow);
}

html[data-theme="dark"] .our-team .box h3.name,
html[data-theme="dark"] .our-team .box .name {
    color: var(--dk-ink) !important;
}

html[data-theme="dark"] .our-team .box .title,
html[data-theme="dark"] .our-team .box p {
    color: var(--dk-muted) !important;
}

html[data-theme="dark"] .img-thumbnail {
    background-color: var(--dk-surface-2);
    border-color: var(--dk-line);
}

/* —— دکمه‌ها و هشدارها (Bootstrap) —— */
html[data-theme="dark"] .btn-warning,
html[data-theme="dark"] .btn-warning.text-dark {
    color: #1f1700 !important;
}

html[data-theme="dark"] .alert-primary,
html[data-theme="dark"] .alert-info {
    background-color: rgba(79, 160, 230, 0.14);
    border-color: rgba(79, 160, 230, 0.35);
    color: #b9dcf7;
}

html[data-theme="dark"] .alert-success {
    background-color: rgba(79, 195, 177, 0.14);
    border-color: rgba(79, 195, 177, 0.35);
    color: #b5ebe2;
}

html[data-theme="dark"] .alert-warning {
    background-color: rgba(224, 185, 74, 0.14);
    border-color: rgba(224, 185, 74, 0.35);
    color: #f1dc9c;
}

html[data-theme="dark"] .alert-danger {
    background-color: rgba(235, 100, 100, 0.14);
    border-color: rgba(235, 100, 100, 0.35);
    color: #f6b9b9;
}

html[data-theme="dark"] .pagination .page-link {
    background: var(--dk-surface);
    border-color: var(--dk-line);
    color: var(--dk-ink-2);
}

html[data-theme="dark"] .pagination .page-item.active .page-link {
    background: var(--dk-teal);
    border-color: var(--dk-teal);
    color: #06222b;
}

html[data-theme="dark"] .badge-light {
    background: var(--dk-surface-3);
    color: var(--dk-ink);
}

/* —— نقشه‌ی تماس با ما (Leaflet) —— */
html[data-theme="dark"] .leaflet-container {
    background: #1a2a38;
}

html[data-theme="dark"] .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.88);
}

html[data-theme="dark"] .leaflet-popup-content-wrapper,
html[data-theme="dark"] .leaflet-popup-tip {
    background: var(--dk-surface);
    color: var(--dk-ink);
}

html[data-theme="dark"] .leaflet-popup-content b,
html[data-theme="dark"] .leaflet-popup-content a {
    color: var(--dk-ink);
}

html[data-theme="dark"] .leaflet-bar a {
    background-color: var(--dk-surface-2);
    border-color: var(--dk-line);
    color: var(--dk-ink);
}

html[data-theme="dark"] .leaflet-control-attribution {
    background: rgba(13, 26, 38, 0.8) !important;
    color: var(--dk-muted);
}

html[data-theme="dark"] .leaflet-control-attribution a {
    color: var(--dk-link);
}

/* —— صفحه‌ی آمار آنلاین —— */
html[data-theme="dark"] .amar-card {
    background: var(--dk-surface);
    border-color: var(--dk-line);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .amar-card h1 {
    color: var(--dk-ink);
}

html[data-theme="dark"] .amar-card p,
html[data-theme="dark"] .amar-note {
    color: var(--dk-muted);
}

/* —— آیکن‌های بخش‌ها —— */
html[data-theme="dark"] .icon.ml-lg-3,
html[data-theme="dark"] .section-icon {
    background: var(--dk-teal-soft) !important;
}

html[data-theme="dark"] .home-intro .executive-card .role-badge,
html[data-theme="dark"] span.role-badge {
    color: var(--dk-gold) !important;
    background: rgba(224, 185, 74, 0.14) !important;
}

html[data-theme="dark"] button.btn.btn-warning,
html[data-theme="dark"] button.btn.btn-warning.text-dark {
    background-color: #f2b705;
    border-color: #f2b705;
    color: #1f1700 !important;
}

/* —— صفحه‌ی تماس با ما —— */
html[data-theme="dark"] .form-control,
html[data-theme="dark"] textarea.form-control,
html[data-theme="dark"] input.form-control {
    border-color: var(--dk-line) !important;
}

html[data-theme="dark"] .form-control:focus {
    border-color: var(--dk-teal) !important;
}

html[data-theme="dark"] #map {
    background: #1a2a38 !important;
}

html[data-theme="dark"] .contact-shape img {
    filter: brightness(0.2) saturate(0.6) !important;
    opacity: 0.9;
}
