/* ========================================================
   Trade Silo Stylesheet - Mad Amvaj Ariya
   Theme: Deep Blue (#0C4A6E), Cyan (#06B6D4), Amber (#FBBF24)
   Based on trade.html design system
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap');

/* =================================================================
   1. TOKENS & CSS VARIABLES
   ================================================================= */
:root {
    /* Brand Colors */
    --color-primary: #0C4A6E; /* Deep Blue */
    --color-secondary: #06B6D4; /* Cyan */
    --color-accent: #FBBF24; /* Amber/Gold */

    /* Hero & Glass */
    --hero-bg: #051e2e;
    --glass: rgba(12, 74, 110, 0.4);
    --text-light: #f0f9ff;

    /* Gradients, Buttons & Glows */
    --g1: #fbbf24;
    --g2: #f59e0b;
    --btn-fg: #1f1500;
    --link: #fbbf24;
    --glow: rgba(251, 191, 36, 0.4);
    --soft: rgba(251, 191, 36, 0.10);
    --nav-h1: rgba(251, 191, 36, 0.22);
    --nav-h2: rgba(245, 158, 11, 0.08);
    --sheen: rgba(255, 226, 140, 0.20);
    --sheen-orb: rgba(255, 255, 255, 0.65);

    /* Mobile Dock & Sheet (Dark) */
    --sheet-bg: #10314f;
    --sheet-fg: #e2e8f0;
    --item-border: rgba(255, 255, 255, 0.07);
    --orb-bg: radial-gradient(circle at 50% 30%, #14324d, #0a1628 72%);
    --bar-bg: linear-gradient(180deg, rgba(22, 66, 104, 0.96), rgba(10, 36, 60, 0.98));
    --bar-border: rgba(251, 191, 36, 0.25);
    --bar-fg: #cbd5e1;
    --bar-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);

    /* Page Redesign Tokens (Dark) */
    --slant: 34px;
    --t-sec1: #061a2c;
    --t-sec2: #08233b;
    --t-card: linear-gradient(160deg, #10375a, #0a2842);
    --t-card-bd: rgba(251, 191, 36, 0.22);
    --t-card-sh: 0 16px 38px rgba(0, 0, 0, 0.5);
    --t-title: #f8fafc;
    --t-text: #b8c7d9;
    --t-muted: #93a4b8;
    --t-acc: #fbbf24;
    --t-cyan: #22d3ee;
    --t-prim: #7dd3fc;
    --t-dot: rgba(125, 211, 252, 0.10);
    --t-glow1: rgba(251, 191, 36, 0.11);
    --t-glow2: rgba(34, 211, 238, 0.13);
    --t-input: #0a2236;
    --t-btn-fg: #2a1a00;
}

html[data-theme="light"] {
    --color-primary: #0C4A6E;
    --color-secondary: #0891b2;
    --color-accent: #d97706;

    --hero-bg: linear-gradient(160deg, #f8fbff 0%, #e4f0fa 55%, #fdf2d6 100%);
    --text-light: #0c2a40;

    --g1: #fbbf24;
    --g2: #f59e0b;
    --btn-fg: #2a1a00;
    --link: #b45309;
    --glow: rgba(217, 119, 6, 0.35);
    --soft: rgba(217, 119, 6, 0.08);
    --nav-h1: rgba(217, 119, 6, 0.17);
    --nav-h2: rgba(217, 119, 6, 0.05);
    --sheen: rgba(217, 119, 6, 0.15);
    --sheen-orb: rgba(217, 119, 6, 0.28);

    --sheet-bg: rgba(255, 255, 255, 0.98);
    --sheet-fg: #0f172a;
    --item-border: rgba(15, 23, 42, 0.08);
    --orb-bg: radial-gradient(circle at 50% 30%, #ffffff, #fdf1d6 80%);
    --bar-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(223, 242, 248, 0.94));
    --bar-border: rgba(217, 119, 6, 0.35);
    --bar-fg: #334155;
    --bar-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);

    --t-sec1: #eef3f9;
    --t-sec2: #ffffff;
    --t-card: #ffffff;
    --t-card-bd: rgba(12, 74, 110, 0.10);
    --t-card-sh: 0 14px 32px rgba(12, 74, 110, 0.10);
    --t-title: #0c2a40;
    --t-text: #475569;
    --t-muted: #64748b;
    --t-acc: #b45309;
    --t-cyan: #0891b2;
    --t-prim: #0c4a6e;
    --t-dot: rgba(12, 74, 110, 0.07);
    --t-glow1: rgba(251, 191, 36, 0.18);
    --t-glow2: rgba(6, 182, 212, 0.10);
    --t-input: #f8fafc;
}

@media(max-width: 768px) {
    :root { --slant: 18px; }
}

/* =================================================================
   2. BASE & UTILITIES
   ================================================================= */
body { font-family: 'Vazirmatn', sans-serif; }
.vazirmatn { font-family: 'Vazirmatn', sans-serif; }

html:not([data-theme="light"]) body {
    background: #051625 !important;
    color: #e2e8f0;
}
html[data-theme="light"] body {
    background: #f8fafc !important;
    color: #334155;
}

.bg-primary { background-color: var(--color-primary); }
.text-primary { color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.text-secondary { color: var(--color-secondary); }
.bg-accent { background-color: var(--color-accent); }
.text-accent { color: var(--color-accent); }

/* Logo invert behavior */
html:not([data-theme="light"]) .header .logo,
html:not([data-theme="light"]) .dh-logo img {
    filter: brightness(0) invert(1);
}
html[data-theme="light"] .header .logo,
html[data-theme="light"] .dh-logo img {
    filter: none;
}
html[data-theme="light"] .orb-face img {
    filter: brightness(0) invert(.12);
}
html[data-theme="light"] .logo-knowledge-wrapper img {
    filter: brightness(0) invert(.12) !important;
}

/* =================================================================
   3. HEADER STYLES (DESKTOP)
   ================================================================= */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    padding: 10px 30px;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header.scrolled {
    top: 15px;
    width: 85%;
    max-width: 1200px;
    padding: 8px 25px;
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 45px;
    margin-left: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.header.scrolled .logo {
    height: 38px;
    margin-left: 15px;
}

/* Phone Number Pill */
.header .phone-number {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
    padding: 5px 6px 5px 16px;
    border-radius: 30px;
    border: 1px solid var(--glow);
    background: linear-gradient(270deg, var(--g1) 0%, var(--g2) 33%, transparent 48%) 0% 50%/300% 100% no-repeat border-box, var(--soft);
    transition: background-position 0.55s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s, box-shadow 0.3s, border-color 0.3s;
    text-decoration: none;
}

.header.scrolled .phone-number {
    font-size: 16px;
    padding: 5px 6px 5px 14px;
}

.header .phone-number:hover {
    background: linear-gradient(270deg, var(--g1) 0%, var(--g2) 33%, transparent 48%) 100% 50%/300% 100% no-repeat border-box, var(--soft);
    color: var(--btn-fg);
    border-color: transparent;
    box-shadow: 0 8px 22px var(--glow);
}

.header .phone-number i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--btn-fg);
    background: linear-gradient(135deg, var(--g1), var(--g2));
    transition: background 0.3s;
}

.header .phone-number:hover i {
    background: rgba(255, 255, 255, 0.25);
    animation: phoneRing 0.7s ease;
}

.header .phone-number .pn {
    position: relative;
    top: 3px;
    line-height: 1;
    display: inline-block;
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-18deg); }
    40% { transform: rotate(16deg); }
    60% { transform: rotate(-10deg); }
    80% { transform: rotate(8deg); }
}

/* Nav Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #f8fafc;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(90deg, var(--g1), var(--g2)), linear-gradient(270deg, var(--nav-h1) 0%, var(--nav-h2) 33%, transparent 48%);
    background-repeat: no-repeat;
    background-size: 0% 2px, 300% 100%;
    background-position: right 14px bottom 5px, 0% 50%;
    transition: background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-position 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s;
}

.header.scrolled .nav-link {
    padding: 8px 12px;
    font-size: 15px;
}

.nav-link:hover {
    background-size: 58% 2px, 300% 100%;
    background-position: right 14px bottom 5px, 100% 50%;
    color: var(--link);
    transform: none;
    box-shadow: inset 0 0 0 1px var(--glow);
    text-shadow: none;
}

html:not([data-theme="light"]) .nav-link:hover {
    text-shadow: 0 0 14px var(--glow);
}

/* Active Nav Item State (No underline — matches Main, CCTV, Electronics) */
.nav-item.is-active > .nav-link,
.nav-link.is-active,
.nav-link.active {
    color: var(--link, #fbbf24) !important;
    background-color: rgba(251, 191, 36, 0.08) !important;
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.28) !important;
}

html[data-theme="light"] .nav-item.is-active > .nav-link,
html[data-theme="light"] .nav-link.is-active,
html[data-theme="light"] .nav-link.active {
    color: #b45309 !important;
    background-color: rgba(217, 119, 6, 0.08) !important;
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.28) !important;
}

/* Active Dropdown Item State (Clean highlight without colored bottom underline on list items) */
.dropdown-item.is-active {
    color: var(--link, #fbbf24) !important;
    background: rgba(251, 191, 36, 0.10) !important;
}
.dropdown-item.svc-card.is-active {
    border-color: rgba(251, 191, 36, 0.45) !important;
}
.dropdown-item.is-active b {
    color: var(--link, #fbbf24) !important;
}
html[data-theme="light"] .dropdown-item.is-active {
    color: #b45309 !important;
    background: rgba(217, 119, 6, 0.08) !important;
}
html[data-theme="light"] .dropdown-item.svc-card.is-active {
    border-color: rgba(217, 119, 6, 0.40) !important;
}
html[data-theme="light"] .dropdown-item.is-active b {
    color: #b45309 !important;
}

@media(min-width: 1181px) and (max-width: 1400px) {
    html:root .header { width: 94%; padding: 8px 22px; }
    html:root .nav-menu { gap: 2px; }
    html:root .nav-link { padding: 8px 10px; font-size: 14.5px; }
    html:root .phone-number { font-size: 15px; padding: 6px 12px; }
    html:root .logo { height: 40px; margin-left: 12px; }
}

@media (min-width: 1181px) {
    .nav-item:has(.dropdown) > .nav-link::after {
        content: '\f078';
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 10px;
        margin-right: 8px;
        transition: transform 0.3s;
    }
    .nav-item:hover > .nav-link::after {
        transform: rotate(180deg);
    }
}

/* Standard Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    min-width: 240px;
    background: rgba(15, 23, 42, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    overflow: hidden;
}

.nav-item:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 14px 22px;
    color: #f8fafc;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:not(.mega-card):hover {
    background: var(--soft);
    color: var(--link);
    box-shadow: inset -3px 0 0 var(--g1);
    padding-right: 28px;
}

/* =================================================================
   4. ENHANCED SHINY HUD MEGA MENU (DESKTOP)
   ================================================================= */
@media (min-width: 1181px) {
    @keyframes topShimmer {
        0% { -webkit-mask-position: -100% 0; mask-position: -100% 0; }
        100% { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
    }

    @keyframes diamondGlow {
        0% {
            box-shadow: 0 0 8px #fbbf24, 0 0 15px rgba(251, 191, 36, 0.8);
            transform: translateX(50%) rotate(45deg) scale(1);
        }
        100% {
            box-shadow: 0 0 20px #fbbf24, 0 0 35px #fbbf24, 0 0 10px #ffffff;
            transform: translateX(50%) rotate(45deg) scale(1.18);
        }
    }

    .dropdown.mega-menu {
        position: absolute;
        top: calc(100% + 18px);
        right: 50%;
        transform: translateX(calc(50% + var(--shift, 0px))) translateY(15px);
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.96) 100%);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(251, 191, 36, 0.25);
        border-radius: 20px;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(251, 191, 36, 0.15);
        padding: 22px 24px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        overflow: visible;
    }

    .dropdown.mega-menu::after {
        content: '';
        position: absolute;
        top: -1px;
        left: -1px;
        right: -1px;
        height: 22px;
        border-top: 2px solid #fbbf24;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
        -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.2) 100%);
        -webkit-mask-size: 200% 100%;
        mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.2) 100%);
        mask-size: 200% 100%;
        animation: topShimmer 3s infinite linear;
        pointer-events: none;
        z-index: 2;
    }

    .dropdown.mega-menu::before {
        content: '';
        position: absolute;
        top: -8px;
        right: calc(50% + var(--shift, 0px));
        transform: translateX(50%) rotate(45deg);
        width: 13px;
        height: 13px;
        background: #fbbf24;
        border: 1px solid #ffffff;
        animation: diamondGlow 1.8s infinite alternate ease-in-out;
        z-index: 3;
    }

    .nav-item:hover > .dropdown.mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(calc(50% + var(--shift, 0px))) translateY(0);
    }

    /* Submenus: bottom accent line mirrors top line */
    html:not([data-theme="light"]) .dropdown.mega-menu {
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(251, 191, 36, 0.15), inset 0 -2px 0 rgba(251, 191, 36, 0.55);
    }
    html:not([data-theme="light"]) .dropdown:not(.mega-menu) {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(251, 191, 36, 0.1), inset 0 -2px 0 rgba(251, 191, 36, 0.5);
    }

    /* SERVICES MEGA MENU (Desktop) */
    .dropdown.mega-menu.svc-mega { width: 900px; padding: 22px 24px 24px; }
    .svc-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--item-border); }
    .svc-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1rem; color: var(--sheet-fg); }
    .svc-title i { color: var(--link); }
    .svc-all { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 700; color: var(--link); transition: gap 0.3s; }
    .svc-all:hover { gap: 10px; }
    .svc-all i { font-size: 0.65rem; }
    .svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

    html:root .dropdown-item.svc-card,
    html:root .dropdown-item.svc-cta {
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px;
        margin: 0;
        border: 1px solid var(--item-border);
        border-radius: 18px;
        background: var(--soft);
        color: var(--sheet-fg);
        box-shadow: none;
        transform: none;
        transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), border-color 0.3s, box-shadow 0.3s;
    }
    html:root .dropdown-item.svc-card:hover {
        transform: translateY(-5px);
        border-color: var(--glow);
        color: var(--sheet-fg);
        background: var(--soft);
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22), 0 0 0 1px var(--glow);
    }
    .svc-card::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(115deg, transparent 40%, var(--sheen) 50%, transparent 60%);
        transform: translateX(120%);
        transition: transform 0.7s;
        pointer-events: none;
    }
    .svc-card:hover::after { transform: translateX(-120%); }
    .svc-ic {
        flex-shrink: 0;
        width: 52px;
        height: 52px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        color: var(--link);
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(245, 158, 11, 0.08));
        border: 1px solid var(--glow);
        transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .svc-card:hover .svc-ic {
        background: linear-gradient(135deg, var(--g1), var(--g2));
        color: var(--btn-fg);
        transform: rotate(-7deg) scale(1.1);
        box-shadow: 0 10px 22px var(--glow);
    }
    .svc-tx b { display: block; font-size: 0.95rem; font-weight: 800; line-height: 1.5; }
    .svc-tx small { display: block; margin-top: 3px; font-size: 0.78rem; line-height: 1.7; font-weight: 500; color: var(--bar-fg); }
    .svc-ar { margin-inline-start: auto; font-size: 0.8rem; color: var(--link); opacity: 0; transform: translateX(8px); transition: all 0.3s; }
    .svc-card:hover .svc-ar { opacity: 1; transform: none; }

    html:root .dropdown-item.svc-cta {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 4px;
        border-color: transparent;
        background: linear-gradient(135deg, var(--g1), var(--g2));
        color: var(--btn-fg);
        box-shadow: 0 12px 26px var(--glow);
    }
    html:root .dropdown-item.svc-cta:hover {
        color: var(--btn-fg);
        filter: brightness(1.07);
        transform: translateY(-5px);
        box-shadow: 0 18px 34px var(--glow);
    }
    /* Dark Mode: مشاوره رایگان Hover Text White */
    html[data-theme="dark"] .dropdown-item.svc-cta:hover,
    html:not([data-theme="light"]) .dropdown-item.svc-cta:hover,
    .dark .dropdown-item.svc-cta:hover {
        color: #ffffff !important;
        background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%) !important;
        border-color: rgba(34, 211, 238, 0.45) !important;
        box-shadow: 0 16px 34px rgba(6, 182, 212, 0.35) !important;
    }
    html[data-theme="dark"] .dropdown-item.svc-cta:hover b,
    html[data-theme="dark"] .dropdown-item.svc-cta:hover small,
    html[data-theme="dark"] .dropdown-item.svc-cta:hover i,
    html[data-theme="dark"] .dropdown-item.svc-cta:hover .svc-route::after,
    html:not([data-theme="light"]) .dropdown-item.svc-cta:hover b,
    html:not([data-theme="light"]) .dropdown-item.svc-cta:hover small,
    html:not([data-theme="light"]) .dropdown-item.svc-cta:hover i,
    html:not([data-theme="light"]) .dropdown-item.svc-cta:hover .svc-route::after,
    .dark .dropdown-item.svc-cta:hover b,
    .dark .dropdown-item.svc-cta:hover small,
    .dark .dropdown-item.svc-cta:hover i,
    .dark .dropdown-item.svc-cta:hover .svc-route::after {
        color: #ffffff !important;
    }
    .svc-cta > i { font-size: 1.7rem; margin-bottom: 4px; animation: ringWiggle 3s ease-in-out infinite; }
    .svc-cta b { font-size: 1.1rem; font-weight: 900; }
    .svc-cta small { font-size: 0.8rem; opacity: 0.85; font-weight: 600; }
    .svc-route { position: absolute; left: 16px; right: 16px; bottom: 12px; border-top: 1.5px dashed rgba(42, 26, 0, 0.35); }
    .svc-route::after {
        content: '\f21a';
        font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
        top: -11px;
        font-size: 0.85rem;
        color: rgba(42, 26, 0, 0.7);
        animation: shipGo 5s linear infinite;
    }
    @keyframes ringWiggle {
        0%, 86%, 100% { transform: rotate(0); }
        90% { transform: rotate(-14deg); }
        94% { transform: rotate(12deg); }
        98% { transform: rotate(-6deg); }
    }
    .nav-item.is-open .svc-card, .nav-item.is-open .svc-cta, .nav-item.is-open .med-post {
        animation: svcIn 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) backwards;
        animation-delay: calc(var(--i) * 55ms + 60ms);
    }
    @keyframes svcIn {
        from { opacity: 0; transform: translateY(16px) scale(0.92); }
    }

    /* MEDIA MEGA MENU (Desktop) */
    .dropdown.mega-menu.med-mega { width: 880px; padding: 22px 24px 24px; }
    .med-cats { grid-template-columns: repeat(3, 1fr); }
    .med-sub { display: flex; align-items: center; gap: 8px; margin: 22px 0 12px; font-weight: 800; font-size: 0.9rem; color: var(--link); }
    .med-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .med-post {
        position: relative;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 18px;
        background: var(--soft);
        border: 1px solid var(--item-border);
        color: var(--sheet-fg);
        text-decoration: none;
        transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), border-color 0.3s, box-shadow 0.3s;
    }
    a.med-post:hover {
        transform: translateY(-5px);
        border-color: var(--glow);
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22), 0 0 0 1px var(--glow);
    }
    .med-th { position: relative; display: block; height: 118px; overflow: hidden; background: rgba(127, 150, 175, 0.18); }
    .med-th img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
    a.med-post:hover .med-th img { transform: scale(1.08); }
    .med-th::after {
        content: '';
        position: absolute;
        inset: auto 0 0 0;
        height: 55%;
        background: linear-gradient(0deg, rgba(5, 22, 37, 0.55), transparent);
        pointer-events: none;
    }
    .med-bd { display: block; padding: 12px 14px 14px; }
    .med-bd b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.88rem; line-height: 1.75; font-weight: 800; min-height: 3.5em; }
    .med-bd small { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 0.74rem; color: var(--bar-fg); font-weight: 500; }
    .med-bd small .more { color: var(--link); font-weight: 700; transition: transform 0.3s; }
    a.med-post:hover .med-bd small .more { transform: translateX(-4px); }
    .med-skel {
        height: 196px;
        background: linear-gradient(100deg, var(--soft) 30%, rgba(255, 255, 255, 0.12) 50%, var(--soft) 70%);
        background-size: 300% 100%;
        animation: medShimmer 1.4s linear infinite;
    }
    @keyframes medShimmer {
        to { background-position: -300% 0; }
    }
}

/* =================================================================
   5. THEME TOGGLE (Sun / Moon)
   ================================================================= */
.theme-item {
    list-style: none;
    display: flex;
    align-items: center;
    margin-right: 6px;
}
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(251, 191, 36, 0.4);
    background: rgba(15, 23, 42, 0.6);
    color: #fbbf24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
    padding: 0;
}
.theme-toggle:hover {
    background: #fbbf24;
    color: #000;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
}
.theme-toggle .fa-moon { display: none; }
html[data-theme="light"] .theme-toggle .fa-sun { display: none; }
html[data-theme="light"] .theme-toggle .fa-moon { display: inline-block; }

html[data-theme="light"] .theme-toggle {
    background: rgba(12, 74, 110, 0.08);
    border-color: rgba(12, 74, 110, 0.28);
    color: #0c4a6e;
}
html[data-theme="light"] .theme-toggle:hover {
    background: #0c4a6e;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(12, 74, 110, 0.25);
}

.mobile-header-theme-toggle { display: none; }
.drawer-actions { display: flex; align-items: center; gap: 10px; }
.header-mobile-controls { display: none; align-items: center; gap: 12px; }

@media(max-width: 1180px) {
    .theme-item.desktop-theme-item { display: none !important; }
    .header-mobile-controls { display: flex !important; }
    .mobile-header-theme-toggle {
        display: inline-flex !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 0.95rem !important;
        border-color: rgba(251, 191, 36, 0.4) !important;
        z-index: 1100 !important;
    }
    .drawer-theme-toggle {
        display: inline-flex !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 0.95rem !important;
    }
    .theme-item {
        margin: 15px 0 0;
        justify-content: center;
        width: 100%;
        display: flex;
    }
}

/* =================================================================
   6. MOBILE MENU & DRAWER (Max 1180px)
   ================================================================= */
@media(max-width: 1180px) {
    html:root .header, html:root .header.scrolled {
        left: 0;
        right: 0;
        margin-inline: auto;
        transform: none;
        width: 95%;
        max-width: none;
        top: 12px;
        padding: 8px 15px;
        border-radius: 20px;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    html:root .header::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        z-index: -1;
        pointer-events: none;
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }
    html:root .header::after {
        content: '';
        position: fixed;
        inset: 0;
        z-index: 0;
        background: rgba(2, 6, 23, 0.55);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s, visibility 0.35s;
    }
    html:root .header:has(.nav-menu.active)::after {
        opacity: 1;
        visibility: visible;
    }
    html[data-theme="light"] .header::after {
        background: rgba(15, 23, 42, 0.38);
    }

    .header-container { justify-content: space-between; }
    .logo { height: 32px; margin-left: 10px; }
    html:root .header .phone-number { padding: 3px 5px 3px 11px; gap: 7px; font-size: 13px; }
    html:root .header .phone-number i { width: 24px; height: 24px; font-size: 11px; }

    /* Menu Toggle Button (3 Gold Bars) */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 1100;
    }
    .menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #fbbf24;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

    /* Nav Drawer */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(86vw, 340px);
        height: 100vh;
        height: 100dvh;
        background: rgba(30, 41, 59, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 84px 18px 28px;
        transform: translateX(100%);
        visibility: hidden;
        box-shadow: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    }
    .nav-item { width: 100%; margin-bottom: 5px; }
    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 12px 15px;
        border-radius: 8px;
        font-size: 14px;
    }

    /* Drawer Header */
    html:root .drawer-head {
        display: flex;
        align-items: center;
        gap: 12px;
        list-style: none;
        margin: -72px 0 14px;
        padding: 0 0 12px 44px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    html[data-theme="light"] .drawer-head { border-bottom-color: rgba(15, 23, 42, 0.1); }
    .dh-logo { display: block; flex-shrink: 0; }
    .dh-logo img { display: block; height: 46px; width: auto; }
    html:root .dh-phone { font-size: 15px; margin: 0; }

    /* Dropdown inside drawer */
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(20, 30, 48, 0.5);
        box-shadow: none;
        border: none;
        margin-top: 0;
        display: none;
        border-radius: 8px;
        padding-bottom: 5px;
        width: 100% !important;
    }
    .nav-item.active .dropdown { display: block; }
    .dropdown-item {
        padding: 10px 15px;
        margin-right: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 14px;
        font-weight: 700;
    }
    .dropdown-indicator {
        margin-right: auto;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s;
    }
    .nav-item.active .dropdown-indicator { transform: rotate(180deg); }

    /* Mega submenus inside drawer */
    .mega-header, .mega-footer, .mega-card-arrow, .mega-card-desc, .card-badge, .svc-head, .svc-tx small, .svc-ar, .svc-route, .med-posts {
        display: none !important;
    }
    .mega-body, .svc-grid { display: flex !important; flex-direction: column !important; }
    .mega-img-box { display: none !important; }
    .mega-card, html:root .dropdown-item.svc-card {
        padding: 10px 15px !important;
        border: none !important;
        background: transparent !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .svc-ic {
        flex-shrink: 0;
        width: 34px;
        height: 34px;
        border-radius: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        background: linear-gradient(135deg, var(--g1), var(--g2));
        color: var(--btn-fg);
    }
    html:root .dropdown-item.svc-cta {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 10px 10px 6px 0;
        padding: 11px 16px;
        border-radius: 14px;
        border: 0;
        background: linear-gradient(135deg, var(--g1), var(--g2));
        color: var(--btn-fg);
    }
    .svc-cta small { display: none; }
    .svc-cta b { font-size: 0.95rem; }
    html:root .nav-menu .mega-card:last-child { border-bottom: none !important; }
}

/* =================================================================
   7. LIGHT THEME OVERRIDES (Header & Nav)
   ================================================================= */
html[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.16);
}
html[data-theme="light"] .phone-number {
    color: #0f172a;
    background: rgba(217, 119, 6, 0.12);
    border-color: rgba(217, 119, 6, 0.35);
}
html[data-theme="light"] .phone-number i { color: #d97706; }
html[data-theme="light"] .nav-link { color: #0f172a; }
html[data-theme="light"] .nav-link:hover {
    color: #b45309;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
    text-shadow: none;
}
html[data-theme="light"] .dropdown {
    background: #ffffff;
    border-color: rgba(217, 119, 6, 0.4);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.18), inset 0 -2px 0 rgba(217, 119, 6, 0.55);
}
html[data-theme="light"] .dropdown-item {
    color: #0f172a;
    border-bottom-color: rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .dropdown-item:hover {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
}
html[data-theme="light"] .dropdown.mega-menu {
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
    border-color: rgba(217, 119, 6, 0.45);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.22), inset 0 -2px 0 rgba(217, 119, 6, 0.6);
}
html[data-theme="light"] .dropdown.mega-menu::after {
    border-top-color: #d97706;
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
}
html[data-theme="light"] .dropdown.mega-menu::before {
    background: #d97706;
    border-color: #ffffff;
}
html[data-theme="light"] .menu-toggle span { background: #d97706; }

@media(max-width: 1180px) {
    html[data-theme="light"] .nav-menu {
        background: rgba(255, 255, 255, 0.98);
        border-left-color: rgba(15, 23, 42, 0.1);
    }
    html[data-theme="light"] .nav-menu.active {
        box-shadow: 0 0 50px rgba(15, 23, 42, 0.3);
    }
    html[data-theme="light"] .dropdown { background: rgba(15, 23, 42, 0.04); }
    html[data-theme="light"] .dropdown-item { border-bottom-color: rgba(15, 23, 42, 0.08); }
}

/* =================================================================
   8. MOBILE DOCK, ORB & FAN (Bottom Navigation)
   ================================================================= */
.dock, .dock-orb, .dock-scrim, .dock-sheet, .fan { display: none; }

@media(max-width: 768px) {
    html:root section[id] { scroll-margin-top: 88px; }
    html:root .footer-bottom { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

    /* ---- DOCK ---- */
    .dock {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        z-index: 900;
        height: 64px;
        display: grid;
        grid-template-columns: 1fr 1fr 92px 1fr 1fr;
        padding: 0 4px;
        border-radius: 26px;
        background: linear-gradient(180deg, rgba(22, 36, 62, 0.92), rgba(8, 15, 30, 0.95));
        -webkit-backdrop-filter: blur(22px) saturate(1.7);
        backdrop-filter: blur(22px) saturate(1.7);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6), 0 0 28px rgba(251, 191, 36, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        animation: dockIn 0.85s cubic-bezier(0.34, 1.3, 0.64, 1) 0.25s backwards;
    }
    html[data-theme="light"] .dock {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(223, 242, 248, 0.94));
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2), 0 0 24px rgba(217, 119, 6, 0.16), inset 0 1px 0 #fff;
    }
    .dk-gap { display: block; }
    .dock::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        background: linear-gradient(115deg, transparent 35%, var(--sheen) 50%, transparent 65%) no-repeat;
        background-size: 250% 100%;
        background-position: -30% 0;
        animation: dockSheen 7s ease-in-out infinite;
    }
    .dock::after, .dock-sheet::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1px;
        pointer-events: none;
        background: linear-gradient(135deg, var(--g1), transparent 38%, transparent 62%, var(--g2));
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    }
    @keyframes dockSheen {
        0%, 45% { background-position: -30% 0; }
        100% { background-position: 130% 0; }
    }
    @keyframes dockIn {
        from { transform: translateY(140%); opacity: 0; }
    }

    .dk {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        height: 100%;
        padding: 0;
        background: none;
        border: 0;
        border-radius: 18px;
        color: var(--bar-fg);
        font-family: inherit;
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
        text-decoration: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: color 0.25s;
        overflow: hidden;
    }
    .dk i { font-size: 18px; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
    .dk:active i { transform: scale(0.85); }
    .dk[aria-expanded="true"] { color: var(--link); }
    .dk[aria-expanded="true"] i { animation: dkPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
    @keyframes dkPop {
        0% { transform: translateY(0) scale(1); }
        45% { transform: translateY(-8px) scale(1.4); }
        100% { transform: translateY(-3px) scale(1.08); }
    }

    /* Fixed Active Dock Item (Orange / Amber Glow Pill) */
    .dock .dk.is-active {
        color: #fbbf24 !important;
        position: relative;
        background: linear-gradient(160deg, rgba(251, 191, 36, 0.24), rgba(245, 158, 11, 0.08)) !important;
        border: 1px solid rgba(251, 191, 36, 0.45) !important;
        border-radius: 18px !important;
        box-shadow: 0 4px 16px rgba(251, 191, 36, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
        height: calc(100% - 10px) !important;
        margin: auto 3px !important;
    }
    .dock .dk.is-active i {
        transform: translateY(-2px) scale(1.08) !important;
        color: #fbbf24 !important;
    }
    .dock .dk.is-active span,
    .dock .dk.is-active .dk-lbl {
        color: #fbbf24 !important;
        font-weight: 800 !important;
    }
    html[data-theme="light"] .dock .dk.is-active {
        color: #b45309 !important;
        background: linear-gradient(160deg, rgba(217, 119, 6, 0.18), rgba(217, 119, 6, 0.05)) !important;
        border-color: rgba(217, 119, 6, 0.45) !important;
        box-shadow: 0 4px 14px rgba(217, 119, 6, 0.16), inset 0 1px 0 #ffffff !important;
    }
    html[data-theme="light"] .dock .dk.is-active i,
    html[data-theme="light"] .dock .dk.is-active span,
    html[data-theme="light"] .dock .dk.is-active .dk-lbl {
        color: #b45309 !important;
    }

    /* Sliding Highlight Pill */
    .dock-hl {
        position: absolute;
        top: 7px;
        bottom: 7px;
        left: var(--hx, 0);
        width: var(--hw, 0);
        border-radius: 18px;
        pointer-events: none;
        opacity: 0;
        transform: scale(0.6);
        background: linear-gradient(160deg, rgba(251, 191, 36, 0.26), rgba(245, 158, 11, 0.08));
        border: 1px solid rgba(251, 191, 36, 0.35);
        box-shadow: 0 6px 18px rgba(251, 191, 36, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.16);
        transition: left 0.45s cubic-bezier(0.34, 1.3, 0.64, 1), width 0.45s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.3s, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .dock.has-hl .dock-hl { opacity: 1; transform: none; }
    .dock.hl-snap .dock-hl { transition: opacity 0.3s, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
    html[data-theme="light"] .dock-hl {
        background: linear-gradient(160deg, rgba(217, 119, 6, 0.20), rgba(217, 119, 6, 0.06));
        border-color: rgba(217, 119, 6, 0.35);
        box-shadow: 0 6px 16px rgba(217, 119, 6, 0.2), inset 0 1px 0 #fff;
    }

    /* Ripple */
    .rp {
        position: absolute;
        width: 96px;
        height: 96px;
        margin: -48px 0 0 -48px;
        border-radius: 50%;
        pointer-events: none;
        background: radial-gradient(circle, rgba(251, 191, 36, 0.5), transparent 70%);
        transform: scale(0);
        animation: rp 0.6s ease-out forwards;
    }
    html[data-theme="light"] .rp { background: radial-gradient(circle, rgba(217, 119, 6, 0.4), transparent 70%); }
    @keyframes rp { to { transform: scale(2.6); opacity: 0; } }

    /* ---- LOGO ORB ---- */
    .dock-orb {
        position: fixed;
        left: 50%;
        bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        width: 76px;
        height: 76px;
        margin-left: -38px;
        z-index: 905;
        display: block;
        border: 0;
        padding: 0;
        background: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s, visibility 0.3s;
        animation: orbIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s backwards;
    }
    .dock-orb:active { transform: scale(0.93); }
    .orb-face {
        position: absolute;
        inset: 0;
        border-radius: 50%;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        background: radial-gradient(circle at 50% 28%, #0e3f5e, #06192a 74%);
        border: 1.5px solid rgba(251, 191, 36, 0.6);
        box-shadow: 0 10px 26px rgba(251, 191, 36, 0.35), 0 0 0 6px rgba(251, 191, 36, 0.10), inset 0 0 18px rgba(251, 191, 36, 0.18);
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    }
    .dock-orb[aria-expanded="true"] .orb-face { transform: scale(1.07); }
    .orb-face img {
        position: relative;
        width: 50px;
        height: 40px;
        object-fit: contain;
        filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.7));
    }
    html[data-theme="light"] .orb-face {
        background: radial-gradient(circle at 50% 28%, #fff, #fdf1d6 78%);
        border-color: rgba(217, 119, 6, 0.6);
        box-shadow: 0 10px 26px rgba(217, 119, 6, 0.35), 0 0 0 6px rgba(217, 119, 6, 0.10), inset 0 0 18px rgba(217, 119, 6, 0.10);
    }
    @keyframes orbIn {
        from { transform: scale(0) rotate(-120deg); opacity: 0; }
    }

    /* ---- RADIAL FAN ---- */
    .fan {
        display: block;
        position: fixed;
        left: 50%;
        bottom: calc(96px + env(safe-area-inset-bottom, 0px));
        width: 0;
        height: 0;
        z-index: 902;
        pointer-events: none;
        visibility: hidden;
        transition: visibility 0s 0.45s;
    }
    .fan.open { visibility: visible; transition-delay: 0s; }
    .fan-dome {
        position: absolute;
        bottom: -20px;
        left: calc(var(--D, 336px) / -2);
        width: var(--D, 336px);
        height: calc(var(--D, 336px) / 2 + 20px);
        border-radius: calc(var(--D, 336px) / 2) calc(var(--D, 336px) / 2) 20px 20px;
        background: radial-gradient(ellipse at 50% 100%, rgba(251, 191, 36, 0.24), transparent 70%), var(--sheet-bg);
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 30px rgba(251, 191, 36, 0.16);
        transform: scale(0.25);
        transform-origin: 50% 100%;
        opacity: 0;
        transition: transform 0.55s cubic-bezier(0.34, 1.25, 0.64, 1), opacity 0.3s;
    }
    .fan.open .fan-dome { transform: none; opacity: 1; }
    .fan-dome::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1px;
        pointer-events: none;
        background: linear-gradient(180deg, var(--g1), transparent 45%, transparent 70%, var(--g2));
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    }
    .fan-dome::after {
        content: '';
        position: absolute;
        inset: 50px 50px 20px;
        border: 1.5px dashed var(--glow);
        border-bottom: 0;
        border-radius: 999px 999px 0 0;
        opacity: 0.6;
        pointer-events: none;
    }
    html[data-theme="light"] .fan-dome {
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2), 0 0 26px rgba(217, 119, 6, 0.16);
        background: radial-gradient(ellipse at 50% 100%, rgba(217, 119, 6, 0.16), transparent 70%), var(--sheet-bg);
    }
    .fan-item {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 0;
        display: block;
        text-decoration: none;
        pointer-events: none;
        transform: translate(0, 0) scale(0.2);
        opacity: 0;
        transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d, 0ms), opacity 0.25s var(--d, 0ms);
    }
    .fan.open .fan-item { pointer-events: auto; transform: translate(var(--x, 0), var(--y, 0)) scale(1); opacity: 1; }
    .fi-b {
        position: absolute;
        left: -27px;
        top: -27px;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        background: linear-gradient(145deg, rgba(251, 191, 36, 0.22), rgba(245, 158, 11, 0.06)), #0e1c33;
        border: 1px solid rgba(251, 191, 36, 0.55);
        color: #fbbf24;
        box-shadow: 0 8px 20px rgba(251, 191, 36, 0.25), inset 0 0 12px rgba(251, 191, 36, 0.12);
        transition: transform 0.2s;
    }
    .fi-b svg { width: 27px; height: 27px; fill: currentColor; }
    .fi-l {
        position: absolute;
        left: -48px;
        top: 33px;
        width: 96px;
        text-align: center;
        font-size: 10.5px;
        font-weight: 800;
        line-height: 1.45;
        color: var(--sheet-fg);
    }
    .fan-item.main .fi-b { background: linear-gradient(135deg, var(--g1), var(--g2)); color: var(--btn-fg); border-color: transparent; box-shadow: 0 8px 22px var(--glow); }
    .fan-item.current .fi-b { box-shadow: 0 0 0 3px var(--glow), 0 8px 20px var(--glow); }
    .fan-item.current .fi-l { color: var(--link); }
    html[data-theme="light"] .fi-b { background: linear-gradient(145deg, #fff, #fdf1d6); border-color: rgba(217, 119, 6, 0.45); color: #b45309; box-shadow: 0 8px 18px rgba(217, 119, 6, 0.2); }

    /* ---- DOCK SCRIM & BOTTOM SHEET ---- */
    .dock-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 880;
        background: rgba(2, 6, 23, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }
    html[data-theme="light"] .dock-scrim { background: rgba(15, 23, 42, 0.25); }
    .dock-scrim.show { opacity: 1; visibility: visible; }

    .dock-sheet {
        display: block;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + 64px + 30px + env(safe-area-inset-bottom, 0px));
        z-index: 890;
        padding: 14px;
        border-radius: 24px;
        background: var(--sheet-bg);
        border: 1px solid rgba(251, 191, 36, 0.5);
        box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.18), 0 22px 54px rgba(0, 0, 0, 0.6), 0 0 46px rgba(251, 191, 36, 0.18);
        opacity: 0;
        visibility: hidden;
        transform: translateY(22px) scale(0.9);
        transform-origin: var(--cx, 50%) 100%;
        transition: opacity 0.25s, transform 0.5s cubic-bezier(0.34, 1.35, 0.64, 1), visibility 0.25s;
    }
    .dock-sheet.open { opacity: 1; visibility: visible; transform: none; }
    .dock-sheet::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: var(--cx, 50%);
        width: 18px;
        height: 18px;
        background: var(--sheet-bg);
        border-right: 1.5px solid rgba(251, 191, 36, 0.9);
        border-bottom: 1.5px solid rgba(251, 191, 36, 0.9);
        transform: translateX(-50%) rotate(45deg);
        border-bottom-right-radius: 5px;
        filter: drop-shadow(0 5px 6px rgba(251, 191, 36, 0.35));
        transition: left 0.4s cubic-bezier(0.34, 1.3, 0.64, 1);
    }
    html[data-theme="light"] .dock-sheet {
        border-color: rgba(217, 119, 6, 0.5);
        box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.12), 0 20px 46px rgba(15, 23, 42, 0.22), 0 0 30px rgba(217, 119, 6, 0.14);
    }
    html[data-theme="light"] .dock-sheet::after {
        border-right-color: rgba(217, 119, 6, 0.85);
        border-bottom-color: rgba(217, 119, 6, 0.85);
        filter: drop-shadow(0 5px 6px rgba(217, 119, 6, 0.25));
    }

    .ds-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
    .ds-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--sheet-fg); }
    .ds-title i { color: var(--link); }
    .ds-link { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--link); text-decoration: none; white-space: nowrap; }
    .ds-link[hidden] { display: none; }
    .ds-link i { font-size: 9px; }

    .ds-body {
        display: grid;
        gap: 10px;
        max-height: min(520px, calc(100dvh - 270px));
        overflow-y: auto;
        overscroll-behavior: contain;
        overflow-x: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .ds-body::-webkit-scrollbar { display: none; width: 0; height: 0; }
    .ds-body.cards { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ds-card {
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 9px;
        padding: 13px 12px 12px;
        border-radius: 18px;
        text-decoration: none;
        color: var(--sheet-fg);
        background: var(--soft);
        border: 1px solid var(--item-border);
        -webkit-tap-highlight-color: transparent;
        animation: dsItem 0.55s cubic-bezier(0.34, 1.45, 0.64, 1) backwards;
        animation-delay: calc(var(--i) * 70ms + 90ms);
        transition: transform 0.2s, border-color 0.2s;
    }
    .ds-card:active { transform: scale(0.96); border-color: var(--glow); }
    .ds-card.feat {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding: 15px 14px 22px;
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(245, 158, 11, 0.06));
        border-color: var(--glow);
    }
    .dc-ic {
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 19px;
        background: linear-gradient(135deg, var(--g1), var(--g2));
        color: var(--btn-fg);
        box-shadow: 0 8px 18px var(--glow);
    }
    .feat .dc-ic { width: 54px; height: 54px; font-size: 24px; border-radius: 17px; }
    .dc-tx b { display: block; font-size: 12.5px; font-weight: 800; line-height: 1.5; }
    .dc-tx small { display: block; margin-top: 3px; font-size: 10.5px; line-height: 1.7; font-weight: 500; color: var(--bar-fg); }
    .feat .dc-tx b { font-size: 14px; }
    .dc-route { position: absolute; left: 14px; right: 14px; bottom: 9px; border-top: 1.5px dashed var(--glow); height: 0; }
    .dc-route::after {
        content: '\f21a';
        font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
        top: -10px;
        font-size: 0.8rem;
        color: var(--link);
        animation: shipGo 4.5s linear infinite;
    }

    /* Media Sheet */
    .ds-body.media { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .ds-tile, .ds-post {
        position: relative;
        overflow: hidden;
        text-decoration: none;
        color: var(--sheet-fg);
        background: var(--soft);
        border: 1px solid var(--item-border);
        -webkit-tap-highlight-color: transparent;
        animation: dsItem 0.55s cubic-bezier(0.34, 1.45, 0.64, 1) backwards;
        animation-delay: calc(var(--i) * 70ms + 90ms);
        transition: transform 0.2s, border-color 0.2s;
    }
    .ds-tile:active, .ds-post:active { transform: scale(0.96); border-color: var(--glow); }
    .ds-tile { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 6px 12px; border-radius: 18px; text-align: center; }
    .ds-tile b { font-size: 12.5px; font-weight: 800; line-height: 1.4; }
    .ds-tile small { font-size: 10px; line-height: 1.6; font-weight: 500; color: var(--bar-fg); }
    .ds-sub { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 11.5px; font-weight: 800; color: var(--link); }
    .ds-sub i { font-size: 11px; }
    .ds-post { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; }
    .dp-th { flex-shrink: 0; width: 68px; height: 58px; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25); }
    .dp-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .dp-tx { flex: 1; min-width: 0; }
    .dp-tx b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.7; font-weight: 800; }
    .dp-tx small { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; color: var(--link); }
    .ds-post > i { font-size: 10px; color: var(--bar-fg); }

    /* Hide dock when typing or drawer active */
    body:has(.nav-menu.active) .dock, body:has(.nav-menu.active) .dock-sheet, body:has(.nav-menu.active) .dock-orb,
    body:has(input:focus, textarea:focus, select:focus) .dock,
    body:has(input:focus, textarea:focus, select:focus) .dock-sheet,
    body:has(input:focus, textarea:focus, select:focus) .dock-orb {
        transform: translateY(160%);
        opacity: 0;
        visibility: hidden;
    }
    body:has(.nav-menu.active) .fan,
    body:has(input:focus, textarea:focus, select:focus) .fan {
        display: none;
    }
}

/* =================================================================
   9. BUTTONS & ACTIONS
   ================================================================= */
html:root :is(.cta-primary, .submit-cta-btn, .mega-footer-btn, .btn-modern-primary) {
    background: linear-gradient(135deg, var(--g1), var(--g2)) !important;
    color: var(--btn-fg) !important;
    box-shadow: 0 10px 26px var(--glow) !important;
    transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
}
html:root :is(.cta-primary, .submit-cta-btn, .mega-footer-btn, .btn-modern-primary):hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 14px 34px var(--glow) !important;
    color: var(--btn-fg) !important;
}

html:root :is(.card-action-btn, .news-card-cta, .btn-modern-outline) {
    background: linear-gradient(270deg, var(--g1) 0%, var(--g2) 33%, transparent 48%) 0% 50%/300% 100% no-repeat border-box, var(--soft) !important;
    color: var(--link) !important;
    border-color: var(--glow) !important;
    transition: background-position 0.55s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
html:root :is(.card-action-btn, .news-card-cta, .btn-modern-outline):hover {
    background: linear-gradient(270deg, var(--g1) 0%, var(--g2) 33%, transparent 48%) 100% 50%/300% 100% no-repeat border-box, var(--soft) !important;
    color: var(--btn-fg) !important;
    border-color: transparent !important;
    box-shadow: 0 6px 18px var(--glow);
}

.btn-modern {
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* =================================================================
   10. UNIVERSAL SILO THEMING FOR ALL SUBPAGES
   ================================================================= */
main .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    margin-bottom: 14px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--t-acc);
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.32);
}
main .eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent);
}

main .section-title {
    position: relative;
    color: var(--t-title) !important;
}
main .section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
}
main .section-subtitle {
    color: var(--t-text) !important;
}

/* Adaptive Typography */
main .text-gray-900, main .text-gray-800, main .text-slate-900, main .text-slate-800,
main h1:not(.text-white):not([class*="text-"]),
main h2:not(.text-white):not([class*="text-"]),
main h3:not(.text-white):not([class*="text-"]),
main h4:not(.text-white):not([class*="text-"]) {
    color: var(--t-title) !important;
}
main .text-gray-700, main .text-gray-600, main .text-slate-700, main .text-slate-600 {
    color: var(--t-text) !important;
}
main .text-gray-500, main .text-gray-400, main .text-slate-500, main .text-slate-400 {
    color: var(--t-muted) !important;
}
main .text-primary { color: var(--t-prim) !important; }
main .text-secondary { color: var(--t-cyan) !important; }
main .text-accent { color: var(--t-acc) !important; }

/* Adaptive Cards across all trade subpages */
main :is(.bg-white, .bg-gray-50, .bg-slate-50, .bg-slate-800).rounded-xl,
main :is(.bg-white, .bg-gray-50, .bg-slate-50, .bg-slate-800).rounded-2xl,
main :is(.bg-white, .bg-gray-50, .bg-slate-50, .bg-slate-800).rounded-3xl,
main .step-card,
main .service-card,
main .feature-card,
main .contact-card,
main .featured-card,
main .blog-card,
main .stagger-card {
    background: var(--t-card) !important;
    box-shadow: var(--t-card-sh), 0 0 0 1px var(--t-card-bd) !important;
    color: var(--t-text);
}

main .border-gray-300, main .border-gray-200, main .border-gray-100, main .border-gray-200\/80, main .border-t {
    border-color: var(--t-card-bd) !important;
}

/* Section Backgrounds */
main section.bg-gray-100,
main section.bg-gray-50,
main section.bg-slate-900\/60,
main section.bg-slate-900 {
    background: var(--t-sec1) !important;
}
main section.bg-white,
main section.bg-slate-800 {
    background: var(--t-sec2) !important;
}

/* Subpage Hero sections */
.hero-wrapper {
    padding-top: 110px !important;
}
html:not([data-theme="light"]) .hero-wrapper {
    background-color: var(--hero-bg) !important;
}
html[data-theme="light"] .hero-wrapper {
    background: linear-gradient(160deg, #0c4a6e 0%, #073b59 60%, #052a40 100%) !important;
}

/* Inputs, Selects, Textareas */
main :is(input, select, textarea) {
    background-color: var(--t-input) !important;
    color: var(--t-title) !important;
    border-color: var(--t-card-bd) !important;
    transition: border-color 0.25s, box-shadow 0.25s;
}
main :is(input, select, textarea)::placeholder {
    color: var(--t-muted) !important;
    opacity: 0.8;
}
main :is(input, select, textarea):focus {
    outline: 0;
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.20) !important;
}

/* Process Section Animations */
#process .absolute.h-1 {
    height: 3px;
    opacity: 0.9;
    background: repeating-linear-gradient(90deg, var(--color-accent) 0 10px, transparent 10px 22px) !important;
    animation: dashMove 1.4s linear infinite;
    border-radius: 3px;
}
#process .absolute.h-1::after {
    content: '\f21a';
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: -17px;
    color: var(--color-accent);
    font-size: 1.4rem;
    animation: shipGo 9s linear infinite;
}
@keyframes dashMove { to { background-position: 22px 0; } }
@keyframes shipGo { from { right: 100%; } to { right: -4%; } }

/* Route Ticker */
.route-ticker {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    height: 48px;
    overflow: hidden;
    direction: ltr;
    border-top: 1px solid rgba(251, 191, 36, 0.2);
    background: linear-gradient(90deg, rgba(5, 22, 37, 0), rgba(5, 22, 37, 0.78) 10%, rgba(5, 22, 37, 0.78) 90%, rgba(5, 22, 37, 0));
}
.rt-track { display: flex; width: max-content; animation: rtMove 55s linear infinite; }
.route-ticker:hover .rt-track { animation-play-state: paused; }
.rt-track span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 26px;
    direction: rtl;
    white-space: nowrap;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 700;
}
.rt-track span i { color: var(--color-accent); }
.rt-track span::after {
    content: '';
    width: 6px;
    height: 6px;
    margin-inline-start: 26px;
    transform: rotate(45deg);
    background: rgba(251, 191, 36, 0.45);
}
@keyframes rtMove { to { transform: translateX(-50%); } }

/* Glass Cards (Hero) */
.glass-card {
    position: absolute;
    background: rgba(12, 74, 110, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 3px solid var(--color-accent);
    padding: 15px 20px;
    border-radius: 16px;
    color: white;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    direction: rtl;
}
.card-icon-box {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.4);
}
.gc-1 { bottom: 15%; left: 8%; }
.gc-2 { top: 25%; left: 15%; }

/* =================================================================
   11. FOOTER STYLES
   ================================================================= */
.main-footer {
    position: relative;
    background: linear-gradient(135deg, #041829, #082845);
    color: #cbd5e1;
    padding: 70px 0 0;
    overflow: hidden;
    border-top: 2px solid var(--color-accent);
    direction: rtl;
}
.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}
.logo-knowledge-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.logo-text-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.logo-company-name {
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
}
.logo-company-name span { color: var(--color-accent); }
.knowledge-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.35);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
    width: fit-content;
}
.company-slogan {
    font-size: 0.88rem;
    line-height: 1.85;
    color: #94a3b8;
    margin-bottom: 20px;
    text-align: justify;
}
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #e2e8f0;
}
.contact-info-item i { color: var(--color-accent); font-size: 1rem; }
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
}
.social-btn:hover {
    background: var(--color-accent);
    color: #04202e;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(251, 191, 36, 0.4);
}
.col-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 2px;
    background: var(--color-accent);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.3s;
    display: inline-block;
}
.footer-links a:hover {
    color: var(--color-accent);
    transform: translateX(-5px);
}
.footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
}
.footer-bottom a { color: var(--color-accent); text-decoration: none; }

/* Light Theme Footer */
html[data-theme="light"] .main-footer {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #0f172a;
    border-top-color: #d97706;
}
html[data-theme="light"] .footer-pattern {
    background-image: radial-gradient(rgba(12, 74, 110, 0.07) 1px, transparent 1px);
}
html[data-theme="light"] .logo-company-name,
html[data-theme="light"] .col-title {
    color: #0c4a6e;
}
html[data-theme="light"] .logo-company-name span { color: #b45309; }
html[data-theme="light"] .knowledge-badge {
    color: #b45309;
    background: rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.3);
    box-shadow: none;
}
html[data-theme="light"] .company-slogan,
html[data-theme="light"] .footer-links a {
    color: #475569;
}
html[data-theme="light"] .contact-info-item { color: #334155; }
html[data-theme="light"] .contact-info-item i { color: #b45309; }
html[data-theme="light"] .social-btn {
    background: #fff;
    color: #0c4a6e;
    border-color: rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .social-btn:hover { background: #d97706; color: #fff; }
html[data-theme="light"] .footer-links a:hover { color: #0c4a6e; }
html[data-theme="light"] .footer-bottom {
    background: rgba(15, 23, 42, 0.05);
    border-top-color: rgba(15, 23, 42, 0.1);
    color: #64748b;
}
html[data-theme="light"] .footer-bottom a { color: #b45309; }

@media(max-width: 991px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
    .about-col { grid-column: 1 / -1; }
}
@media(max-width: 576px) {
    .footer-top { grid-template-columns: 1fr; gap: 25px; }
}


/* =================================================================
   TRADE HOME HERO SECTION & MAP CANVAS (FROM trade.html)
   ================================================================= */
#hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 5% 0 5%;
    overflow: hidden;
    background-color: var(--hero-bg);
    color: var(--text-light);
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

#canvas-container canvas, #trade-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

#hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--hero-bg) 0%, rgba(5, 30, 46, 0.4) 50%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 55%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: right;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    width: fit-content;
    opacity: 1;
}

.hero-h1 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 900;
    color: white;
    opacity: 1;
}

@media (min-width: 1024px) {
    .hero-h1 { font-size: 4rem; }
}

.hero-h1 span {
    background: linear-gradient(90deg, #fbbf24, #fde68a, #f59e0b, #fbbf24);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    animation: goldShine 6s linear infinite;
}

@keyframes goldShine {
    to { background-position: 300% 0; }
}

.hero-p {
    font-size: 1.125rem;
    color: #cbd5e1;
    line-height: 1.8;
    max-width: 600px;
    opacity: 1;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    opacity: 1;
}

.btn-modern {
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-modern-primary {
    background: linear-gradient(135deg, var(--color-accent), #d97706);
    color: var(--hero-bg);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
    border: none;
}

.btn-modern-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.6);
}

.btn-modern-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(5px);
}

.btn-modern-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.glass-card {
    position: absolute;
    background: rgba(12, 74, 110, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 3px solid var(--color-accent);
    padding: 15px 20px;
    border-radius: 16px;
    color: white;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    opacity: 1;
    direction: rtl;
}

.card-icon-box {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.4);
}

.gc-1 { bottom: 15%; left: 8%; }
.gc-2 { top: 25%; left: 15%; }

#hero-section > .animate-bounce {
    bottom: 78px !important;
}

.route-ticker {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    height: 48px;
    overflow: hidden;
    direction: ltr;
    border-top: 1px solid rgba(251, 191, 36, 0.2);
    background: linear-gradient(90deg, rgba(5, 22, 37, 0), rgba(5, 22, 37, 0.78) 10%, rgba(5, 22, 37, 0.78) 90%, rgba(5, 22, 37, 0));
}

.rt-track {
    display: flex;
    width: max-content;
    animation: rtMove 55s linear infinite;
}

.route-ticker:hover .rt-track {
    animation-play-state: paused;
}

.rt-track span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 26px;
    direction: rtl;
    white-space: nowrap;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 700;
}

.rt-track span i {
    color: var(--color-accent);
}

.rt-track span::after {
    content: '';
    width: 6px;
    height: 6px;
    margin-inline-start: 26px;
    transform: rotate(45deg);
    background: rgba(251, 191, 36, 0.45);
}

@keyframes rtMove {
    to { transform: translateX(-50%); }
}

@media (max-width: 991px) {
    #hero-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
        padding-bottom: 50px;
    }
    #hero-overlay {
        background: linear-gradient(180deg, var(--hero-bg) 0%, rgba(5, 30, 46, 0.7) 100%);
    }
    .hero-content-wrapper { width: 100%; align-items: center; }
    .hero-badge { margin: 0 auto; }
    .hero-btns { justify-content: center; }
    .glass-card { display: none; }
    #canvas-container { opacity: 0.6; }
}

/* ===== Trade Home Hero in Light Mode ===== */
html[data-theme="light"] #hero-section {
    background: linear-gradient(160deg, #f8fbff 0%, #e4f0fa 55%, #fdf2d6 100%);
    color: #0c2a40;
}
html[data-theme="light"] #hero-overlay {
    background: linear-gradient(270deg, rgba(248, 251, 255, 0.96) 0%, rgba(248, 251, 255, 0.65) 40%, rgba(248, 251, 255, 0) 78%), linear-gradient(0deg, rgba(238, 243, 249, 0.95), transparent 22%);
}
@media (max-width: 991px) {
    html[data-theme="light"] #hero-overlay {
        background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(248, 251, 255, 0.85) 34%, rgba(248, 251, 255, 0.12) 62%, rgba(238, 243, 249, 0.82) 100%);
    }
    html[data-theme="light"] .hero-h1 { text-shadow: none; }
}
html[data-theme="light"] .hero-h1 {
    color: #0c2a40;
    text-shadow: none;
}
html[data-theme="light"] .hero-h1 span {
    background: linear-gradient(90deg, #b45309, #d97706, #f59e0b, #b45309);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
html[data-theme="light"] .hero-p { color: #475569; }
html[data-theme="light"] .hero-badge {
    background: rgba(6, 182, 212, 0.12);
    color: #0e7490;
    border-color: rgba(8, 145, 178, 0.5);
}
html[data-theme="light"] .btn-modern-outline {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(12, 74, 110, 0.35);
    color: #0c4a6e;
}
html[data-theme="light"] .btn-modern-outline:hover {
    background: #fff;
    border-color: #d97706;
    color: #b45309;
}
html[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(12, 74, 110, 0.12);
    border-right-color: var(--color-accent);
    color: #0c2a40;
    box-shadow: 0 14px 30px rgba(12, 74, 110, 0.15);
}
html[data-theme="light"] .glass-card small { color: #64748b !important; }
html[data-theme="light"] .route-ticker {
    border-top-color: rgba(217, 119, 6, 0.3);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85) 10%, rgba(255, 255, 255, 0.85) 90%, rgba(255, 255, 255, 0));
}
html[data-theme="light"] .rt-track span { color: #334155; }
html[data-theme="light"] .rt-track span i { color: #d97706; }
html[data-theme="light"] #hero-section > .animate-bounce { color: rgba(12, 42, 64, 0.4); }

/* =================================================================
   TRADE SILO - SUBPAGE HERO ENHANCEMENTS (FULL-SCREEN & ANIMATED)
   ================================================================= */
.hero-wrapper,
#hero:not(#hero-section) {
    position: relative !important;
    overflow: hidden !important;
    min-height: 100vh !important;
    min-height: 100svh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 100px !important;
    padding-bottom: 50px !important;
    margin-top: 0 !important;
    box-sizing: border-box !important;
}

/* Fix flex child position: Absolute decoration must stay absolute! */
.hero-wrapper > [class*="absolute"],
#hero:not(#hero-section) > [class*="absolute"],
.hero-wrapper > .hero-pattern,
#hero:not(#hero-section) > .hero-pattern,
.hero-wrapper > .floating-icon,
#hero:not(#hero-section) > .floating-icon {
    position: absolute !important;
    pointer-events: none !important;
}

/* Hero Content Containers take full width and stay centered */
.hero-wrapper > .container,
#hero:not(#hero-section) > .container,
.hero-wrapper > .hero-content,
#hero:not(#hero-section) > .hero-content {
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Subpage Hero Dark Mode */
html:not([data-theme="light"]) .hero-wrapper,
html:not([data-theme="light"]) #hero:not(#hero-section) {
    background-color: #061a2c !important;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(12, 74, 110, 0.35) 0%, transparent 50%),
        radial-gradient(rgba(251, 191, 36, 0.08) 1.2px, transparent 1.4px),
        linear-gradient(135deg, #051625 0%, #08233b 60%, #051625 100%) !important;
    background-size: 100% 100%, 100% 100%, 28px 28px, 100% 100% !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2) !important;
}

/* Subpage Hero Light Mode - Rich Corporate Tint with Animated Ambient Glow & Moving Trade Grid */
html[data-theme="light"] .hero-wrapper,
html[data-theme="light"] #hero:not(#hero-section) {
    background: radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.15) 0%, transparent 45%),
                radial-gradient(circle at 50% 10%, rgba(12, 74, 110, 0.08) 0%, transparent 50%),
                linear-gradient(160deg, #f4f8fd 0%, #e5f0fa 50%, #fef5dc 100%) !important;
    border-bottom: 1px solid rgba(217, 119, 6, 0.28) !important;
    box-shadow: 0 10px 30px rgba(12, 74, 110, 0.05) !important;
    color: #0c2a40 !important;
}

/* Animated Ambient Light Orbs for Light Mode */
html[data-theme="light"] .hero-wrapper::before,
html[data-theme="light"] #hero:not(#hero-section)::before {
    content: '' !important;
    position: absolute !important;
    top: -25% !important;
    left: -25% !important;
    width: 150% !important;
    height: 150% !important;
    background: 
        radial-gradient(circle at 25% 25%, rgba(6, 182, 212, 0.24) 0%, transparent 42%),
        radial-gradient(circle at 75% 75%, rgba(245, 158, 11, 0.26) 0%, transparent 44%),
        radial-gradient(circle at 50% 45%, rgba(12, 74, 110, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.18) 0%, transparent 38%) !important;
    animation: tradeAmbientRotate 24s ease-in-out infinite alternate !important;
    pointer-events: none !important;
    z-index: 1 !important;
    filter: blur(45px) !important;
}

/* Drifting Trade Coordinates & Grid Layer */
html[data-theme="light"] .hero-wrapper::after,
html[data-theme="light"] #hero:not(#hero-section)::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(12, 74, 110, 0.14) 1.2px, transparent 1.5px),
        linear-gradient(to right, rgba(12, 74, 110, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(12, 74, 110, 0.04) 1px, transparent 1px) !important;
    background-size: 32px 32px, 64px 64px, 64px 64px !important;
    animation: tradeGridDrift 50s linear infinite !important;
    pointer-events: none !important;
    z-index: 2 !important;
    opacity: 0.85 !important;
}

@keyframes tradeAmbientRotate {
    0% { transform: scale(1) translate(0, 0) rotate(0deg); }
    50% { transform: scale(1.12) translate(-25px, 20px) rotate(6deg); }
    100% { transform: scale(1.05) translate(25px, -15px) rotate(-6deg); }
}

@keyframes tradeGridDrift {
    0% { background-position: 0 0, 0 0, 0 0; }
    100% { background-position: 64px 64px, 64px 64px, 64px 64px; }
}

/* Floating Glass Stat Badges (Modern SaaS style) */
.floating-badge-glass {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(12, 74, 110, 0.15);
    box-shadow: 0 16px 36px rgba(12, 74, 110, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.8);
    color: #0c2a40;
    z-index: 25;
    animation: fbgFloat 6s ease-in-out infinite alternate;
    pointer-events: auto;
    direction: rtl;
}

html:not([data-theme="light"]) .floating-badge-glass {
    background: rgba(16, 49, 79, 0.88);
    border-color: rgba(251, 191, 36, 0.35);
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(251, 191, 36, 0.15);
}

.fbg-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #06b6d4, #0c4a6e);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

.fbg-gold .fbg-icon {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #0c2a40;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.35);
}

.fbg-val {
    display: block;
    font-size: 0.95rem;
    font-weight: 850;
    line-height: 1.3;
}

.fbg-sub {
    display: block;
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 600;
}

html:not([data-theme="light"]) .fbg-sub {
    color: #94a3b8;
}

@keyframes fbgFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(4px); }
}

.fbg-top {
    top: -24px;
    right: -24px;
    animation-delay: 0s;
}

.fbg-bottom {
    bottom: -24px;
    left: -24px;
    animation-delay: -3s;
}

/* Typography & Elements on Trade Subpage Hero (Light Mode) */
html[data-theme="light"] #hero h1,
html[data-theme="light"] .hero-wrapper h1,
html[data-theme="light"] #hero .hero-title {
    color: #0c2a40 !important;
    text-shadow: none !important;
}

html[data-theme="light"] #hero h1 span.text-secondary {
    color: #0891b2 !important;
}

html[data-theme="light"] #hero p,
html[data-theme="light"] .hero-wrapper p,
html[data-theme="light"] #hero .hero-subtitle {
    color: #334155 !important;
    opacity: 1 !important;
}

/* Subpage Badges in Light Mode */
html[data-theme="light"] #hero .rounded-full.bg-white\/10,
html[data-theme="light"] .hero-wrapper .rounded-full.bg-white\/10 {
    background-color: rgba(6, 182, 212, 0.12) !important;
    border-color: rgba(8, 145, 178, 0.35) !important;
    color: #0e7490 !important;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.1) !important;
}

/* Subpage Buttons in Light Mode */
html[data-theme="light"] #hero a.border-white\/30,
html[data-theme="light"] #hero a.border-2,
html[data-theme="light"] .hero-wrapper a.border-white\/30,
html[data-theme="light"] .hero-wrapper a.border-2 {
    color: #0c4a6e !important;
    border-color: rgba(12, 74, 110, 0.35) !important;
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 14px rgba(12, 74, 110, 0.08) !important;
}

html[data-theme="light"] #hero a.border-white\/30:hover,
html[data-theme="light"] #hero a.border-2:hover,
html[data-theme="light"] .hero-wrapper a.border-white\/30:hover,
html[data-theme="light"] .hero-wrapper a.border-2:hover {
    color: #b45309 !important;
    border-color: #d97706 !important;
    background-color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.2) !important;
}

/* Floating Animated Icons on Trade Blog / News */
.floating-icon {
    position: absolute !important;
    opacity: 0.20 !important;
    will-change: transform, opacity !important;
    z-index: 3 !important;
    font-size: clamp(3rem, 6vw, 5.5rem) !important;
    animation: tradeIconFloat 9s ease-in-out infinite alternate !important;
    pointer-events: none !important;
}
.floating-icon:nth-of-type(1) { animation-delay: 0s; animation-duration: 8.5s; }
.floating-icon:nth-of-type(2) { animation-delay: -2s; animation-duration: 10s; }
.floating-icon:nth-of-type(3) { animation-delay: -4.5s; animation-duration: 11.5s; }
.floating-icon:nth-of-type(4) { animation-delay: -1.2s; animation-duration: 9.5s; }
.floating-icon:nth-of-type(5) { animation-delay: -3s; animation-duration: 8s; }

@keyframes tradeIconFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(10px) rotate(-4deg); }
}

html[data-theme="light"] #hero .floating-icon {
    color: rgba(12, 74, 110, 0.18) !important;
    opacity: 0.28 !important;
}
html[data-theme="light"] #hero .hero-main-icon {
    color: #d97706 !important;
    filter: drop-shadow(0 0 15px rgba(217, 119, 6, 0.2)) !important;
}


/* =================================================================
   REACTBITS-STYLE INTERACTIVE TRADE HERO BACKGROUND
   ================================================================= */
.trade-hero-bg-container {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* ReactBits Interactive Cyber Grid Pattern */
.trade-hero-bg-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(12, 74, 110, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(12, 74, 110, 0.07) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0.1) 75%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0.1) 75%, transparent 95%);
    pointer-events: none;
    z-index: 1;
}

html:not([data-theme="light"]) .trade-hero-bg-container::before {
    background-image: 
        linear-gradient(to right, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0.2) 75%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0.2) 75%, transparent 95%);
}

/* Giant Architectural Typography Watermark (MAD AMVAJ ARIYA) - Anchored at Bottom */
.trade-bg-watermark {
    position: absolute;
    bottom: 22px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    user-select: none;
    pointer-events: none;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    opacity: 0.85;
}

.tb-text-line1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.8rem, 4.6vw, 4.6rem);
    font-weight: 900;
    letter-spacing: clamp(4px, 1.2vw, 16px);
    text-transform: uppercase;
    line-height: 1.1;
    white-space: nowrap;
    -webkit-text-stroke: 1.2px rgba(12, 74, 110, 0.22);
    background: linear-gradient(115deg, rgba(12, 74, 110, 0.08) 0%, rgba(8, 145, 178, 0.26) 40%, rgba(217, 119, 6, 0.28) 60%, rgba(12, 74, 110, 0.08) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: tbTextShimmer 10s ease-in-out infinite alternate;
    text-shadow: 0 4px 18px rgba(12, 74, 110, 0.05);
}

html:not([data-theme="light"]) .tb-text-line1 {
    -webkit-text-stroke: 1.2px rgba(56, 189, 248, 0.32);
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.04) 0%, rgba(34, 211, 238, 0.28) 40%, rgba(251, 191, 36, 0.30) 60%, rgba(56, 189, 248, 0.16) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 25px rgba(6, 182, 212, 0.16);
}

.tb-text-line2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(0.62rem, 0.95vw, 0.82rem);
    font-weight: 800;
    letter-spacing: clamp(2px, 0.8vw, 10px);
    text-transform: uppercase;
    margin-top: 6px;
    padding: 3px 14px;
    border-radius: 9999px;
    color: rgba(12, 74, 110, 0.65);
    border: 1px solid rgba(12, 74, 110, 0.16);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
}

html:not([data-theme="light"]) .tb-text-line2 {
    color: rgba(226, 238, 250, 0.65);
    border: 1px solid rgba(34, 211, 238, 0.22);
    background: rgba(5, 22, 37, 0.55);
}

@media (max-width: 768px) {
    .trade-bg-watermark {
        bottom: 14px !important;
        opacity: 0.60 !important;
        padding: 0 10px !important;
    }
    .tb-text-line1 {
        font-size: clamp(1.2rem, 5.2vw, 1.8rem) !important;
        letter-spacing: 3px !important;
        -webkit-text-stroke: 1px rgba(12, 74, 110, 0.18) !important;
    }
    html:not([data-theme="light"]) .tb-text-line1 {
        -webkit-text-stroke: 1px rgba(56, 189, 248, 0.25) !important;
    }
    .tb-text-line2 {
        font-size: 0.55rem !important;
        letter-spacing: 2px !important;
        padding: 2px 8px !important;
        margin-top: 3px !important;
    }
}

@keyframes tbTextShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Canvas Layer */
.trade-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: block;
    pointer-events: none;
}

/* ReactBits Spotlight Glowing Cursor Aura */
.trade-hero-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 4;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(251, 191, 36, 0.12) 40%, transparent 70%);
    filter: blur(55px);
    opacity: 0;
    transition: opacity 0.4s ease;
    will-change: transform, left, top;
}

/* =================================================================
   MODERN PERSIAN PAGINATION COMPONENT
   ================================================================= */
/* =================================================================
   SOCIAL SHARE BUTTONS
   ================================================================= */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    user-select: none;
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.share-btn i {
    font-size: 1rem;
}

.share-telegram {
    background: rgba(34, 158, 217, 0.12);
    color: #229ed9;
    border-color: rgba(34, 158, 217, 0.30);
}
.share-telegram:hover {
    background: #229ed9;
    color: #ffffff !important;
    border-color: #229ed9;
    box-shadow: 0 6px 18px rgba(34, 158, 217, 0.40);
}

.share-whatsapp {
    background: rgba(37, 211, 102, 0.12);
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.30);
}
.share-whatsapp:hover {
    background: #25d366;
    color: #ffffff !important;
    border-color: #25d366;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.40);
}

.share-linkedin {
    background: rgba(10, 102, 194, 0.12);
    color: #0a66c2;
    border-color: rgba(10, 102, 194, 0.30);
}
.share-linkedin:hover {
    background: #0a66c2;
    color: #ffffff !important;
    border-color: #0a66c2;
    box-shadow: 0 6px 18px rgba(10, 102, 194, 0.40);
}

.share-x {
    background: rgba(15, 23, 42, 0.12);
    color: #334155;
    border-color: rgba(15, 23, 42, 0.25);
}
html:not([data-theme="light"]) .share-x {
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    border-color: rgba(255, 255, 255, 0.20);
}
.share-x:hover {
    background: #000000;
    color: #ffffff !important;
    border-color: #000000;
}
html:not([data-theme="light"]) .share-x:hover {
    background: #ffffff;
    color: #000000 !important;
    border-color: #ffffff;
}

.share-eitaa {
    background: rgba(242, 114, 30, 0.12);
    color: #f2721e;
    border-color: rgba(242, 114, 30, 0.30);
}
.share-eitaa:hover {
    background: #f2721e;
    color: #ffffff !important;
    border-color: #f2721e;
    box-shadow: 0 6px 18px rgba(242, 114, 30, 0.40);
}

.share-bale {
    background: rgba(0, 180, 136, 0.12);
    color: #00b488;
    border-color: rgba(0, 180, 136, 0.30);
}
.share-bale:hover {
    background: #00b488;
    color: #ffffff !important;
    border-color: #00b488;
    box-shadow: 0 6px 18px rgba(0, 180, 136, 0.40);
}

.share-copy {
    background: rgba(12, 74, 110, 0.08);
    color: #0c4a6e;
    border-color: rgba(12, 74, 110, 0.25);
    cursor: pointer;
}
html:not([data-theme="light"]) .share-copy {
    background: rgba(56, 189, 248, 0.10);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.30);
}
.share-copy:hover {
    background: #0c4a6e;
    color: #ffffff !important;
}
html:not([data-theme="light"]) .share-copy:hover {
    background: #0284c7;
    color: #ffffff !important;
}
.share-copy.copied {
    background: rgba(16, 185, 129, 0.20) !important;
    color: #10b981 !important;
    border-color: #10b981 !important;
}

.mad-pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    margin-top: 48px;
    margin-bottom: 32px;
}

.mad-pagination-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(6, 182, 212, 0.20);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .mad-pagination-inner {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(12, 74, 110, 0.15);
    box-shadow: 0 10px 25px rgba(12, 74, 110, 0.08);
}

.mad-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: all 0.25s ease;
    text-decoration: none;
    user-select: none;
}

.mad-page-btn:hover {
    background: rgba(6, 182, 212, 0.18);
    border-color: rgba(6, 182, 212, 0.40);
    color: #38bdf8;
    transform: translateY(-1px);
}

html[data-theme="light"] .mad-page-btn {
    color: #0c4a6e;
    background: rgba(12, 74, 110, 0.05);
    border-color: rgba(12, 74, 110, 0.12);
}

html[data-theme="light"] .mad-page-btn:hover {
    background: rgba(12, 74, 110, 0.12);
    border-color: rgba(12, 74, 110, 0.30);
    color: #0c4a6e;
}

.mad-page-first {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.30);
    color: #fbbf24;
}

.mad-page-first:hover {
    background: rgba(251, 191, 36, 0.25);
    border-color: #fbbf24;
    color: #fef08a;
}

html[data-theme="light"] .mad-page-first {
    background: rgba(217, 119, 6, 0.10);
    border-color: rgba(217, 119, 6, 0.25);
    color: #b45309;
}

html[data-theme="light"] .mad-page-first:hover {
    background: rgba(217, 119, 6, 0.18);
    border-color: #b45309;
    color: #78350f;
}

.mad-page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mad-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 0.92rem;
    font-weight: 700;
    color: #cbd5e1;
    background: transparent;
    transition: all 0.25s ease;
    text-decoration: none;
}

.mad-page-num:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #38bdf8;
    transform: scale(1.08);
}

html[data-theme="light"] .mad-page-num {
    color: #475569;
}

html[data-theme="light"] .mad-page-num:hover {
    background: rgba(12, 74, 110, 0.08);
    color: #0c4a6e;
}

.mad-page-num.is-active {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    color: #ffffff !important;
    font-weight: 900;
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

html[data-theme="light"] .mad-page-num.is-active {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(12, 74, 110, 0.30);
    border: 1px solid rgba(217, 119, 6, 0.50);
}

.mad-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 38px;
    color: #64748b;
    font-weight: 800;
    letter-spacing: 2px;
}

.mad-pagination-info {
    font-size: 0.78rem;
    color: #94a3b8;
    user-select: none;
}

html[data-theme="light"] .mad-pagination-info {
    color: #64748b;
}

.mad-pagination-info b {
    color: #e2e8f0;
    font-weight: 800;
}

html[data-theme="light"] .mad-pagination-info b {
    color: #0c4a6e;
}

@media (max-width: 640px) {
    .mad-pagination-inner {
        border-radius: 20px;
        padding: 8px 10px;
        gap: 6px;
    }
    .mad-page-num {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    .mad-page-btn {
        padding: 5px 12px;
        font-size: 0.78rem;
    }
}


/* ========================================================
   TRADE SILO BREADCRUMBS
   ======================================================== */
.trade-breadcrumb {
    transition: all 0.3s ease;
}
html:not([data-theme="light"]) .trade-breadcrumb {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
}
html:not([data-theme="light"]) .trade-breadcrumb a {
    color: #bae6fd !important;
}
html:not([data-theme="light"]) .trade-breadcrumb a:hover {
    color: #ffffff !important;
}
html:not([data-theme="light"]) .trade-breadcrumb [aria-current="page"] {
    color: #fde68a !important;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.35);
}
html:not([data-theme="light"]) .trade-breadcrumb .fa-home {
    color: #38bdf8 !important;
}
html:not([data-theme="light"]) .trade-breadcrumb .fa-chevron-left {
    color: rgba(56, 189, 248, 0.6) !important;
}

/* Light Mode Trade Breadcrumb */
html[data-theme="light"] .trade-breadcrumb {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(12, 74, 110, 0.2) !important;
    box-shadow: 0 4px 15px rgba(12, 74, 110, 0.08) !important;
}
html[data-theme="light"] .trade-breadcrumb a {
    color: #0c4a6e !important;
}
html[data-theme="light"] .trade-breadcrumb a:hover {
    color: #b45309 !important;
}
html[data-theme="light"] .trade-breadcrumb [aria-current="page"] {
    color: #b45309 !important;
}
html[data-theme="light"] .trade-breadcrumb .fa-home {
    color: #0284c7 !important;
}
html[data-theme="light"] .trade-breadcrumb .fa-chevron-left {
    color: rgba(12, 74, 110, 0.45) !important;
}
