/* ==========================================================================
   PpCine APK - Clean, Minimalist, Open & Structured Layout
   Theme: Pure Clean White / Soft Slate, Professional Minimal Typography,
   Zero Neon / Flashy Glows, Ample Breathing Room & Structured Whitespace.
   ========================================================================== */

/* Core Self-Hosted High-Speed Web Fonts (Zero-Blink & 100% Core Web Vitals) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/poppins-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/poppins-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Font Awesome Font-Display Swap Override (Eliminates Render Blocking & 30ms Lighthouse Audit) */
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/webfonts/fa-solid-900.woff2") format("woff2");
}
@font-face {
    font-family: "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/webfonts/fa-brands-400.woff2") format("woff2");
}

:root {
    --base-bg: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --brand-primary: #0f172a;
    --brand-accent: #2563eb;
    --brand-success: #16a34a;
    --brand-danger: #dc2626;

    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    /* Modern Multi-Layered Content Shadows - Prominent & Structured Elevation */
    --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04), 0 0 1px rgba(15, 23, 42, 0.18);
    --shadow-content: 0 12px 36px -4px rgba(15, 23, 42, 0.12), 0 4px 14px -2px rgba(15, 23, 42, 0.07), 0 0 1px rgba(15, 23, 42, 0.22);
    --shadow-elevated: 0 16px 42px -4px rgba(15, 23, 42, 0.14), 0 6px 16px -2px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 20px 42px -6px rgba(15, 23, 42, 0.16), 0 8px 18px -4px rgba(15, 23, 42, 0.08);
    --shadow-accent-glow: 0 12px 28px -4px rgba(37, 99, 235, 0.18), 0 4px 12px -2px rgba(15, 23, 42, 0.06);

    /* Device-Adaptive Typography Stack (100% Core Web Vitals & Search Console Compliant) */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
}

body.site-body {
    background-color: var(--base-bg);
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1.4rem;
    color: var(--text-body);
}

a {
    color: var(--brand-accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ==========================================================================
   Clean Content-Aligned Minimal Header & Navigation
   ========================================================================== */
.main-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.main-header .navbar {
    padding: 0.65rem 0 !important;
}

.header-nav-inner {
    width: 100%;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.45rem;
    color: var(--text-main) !important;
    letter-spacing: -0.4px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    border-radius: 8px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.navbar-brand:hover .brand-logo {
    transform: scale(1.04);
}

.brand-title {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1;
}

.brand-accent {
    color: var(--brand-accent);
}

/* Clean Nav Links */
.navbar-nav .nav-link {
    color: #475569 !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.86rem;
    padding: 0.40rem 0.55rem !important;
    border-radius: 6px;
    transition: all 0.15s ease;
    margin: 0 0.06rem;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: var(--brand-accent) !important;
    background-color: #f8fafc;
}

.navbar-nav .nav-link.active {
    color: var(--text-main) !important;
    background-color: #f1f5f9;
    font-weight: 600;
}


/* Clean Modern Language Dropdown Button */
.btn-clean-lang {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: #334155;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    line-height: 1;
    height: 38px;
    min-width: 68px;
    text-align: center;
    transition: all 0.15s ease;
    cursor: pointer;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn-clean-lang:hover, 
.btn-clean-lang:focus, 
.btn-clean-lang.show {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--text-main);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* Clean Modern Theme Toggle Button (Desktop & Mobile) */
.btn-clean-theme {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: #475569;
    padding: 0;
    border-radius: 8px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 38px;
    width: 38px;
    min-width: 38px;
    text-align: center;
    transition: all 0.15s ease;
    cursor: pointer;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn-clean-theme:hover, 
.btn-clean-theme:focus {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--text-main);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.btn-clean-lang .flag-icon {
    font-size: 1.05rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-clean-lang .lang-code {
    font-size: 0.80rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #1e293b;
}

.btn-clean-lang.dropdown-toggle::after {
    margin-left: 0.2rem;
    vertical-align: 0.1em;
    border-top: 0.32em solid currentColor;
    border-right: 0.28em solid transparent;
    border-left: 0.28em solid transparent;
    border-bottom: 0;
    transition: transform 0.2s ease;
}

.btn-clean-lang.dropdown-toggle[aria-expanded="true"]::after,
.btn-clean-lang.show::after {
    transform: rotate(180deg);
}

/* Language Dropdown Menu Styling */
.dropdown-menu-lang {
    min-width: 220px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
    padding: 0.4rem;
    z-index: 1060;
}

.dropdown-menu-lang .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease;
    font-weight: 500;
}

.dropdown-menu-lang .dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--text-main);
}

.dropdown-menu-lang .dropdown-item.active {
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
}

.dropdown-menu-lang .dropdown-item .lang-item-content {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu-lang .dropdown-item .badge {
    font-size: 0.70rem;
    font-weight: 600;
    padding: 0.22rem 0.45rem;
    border-radius: 4px;
}

/* Clean Minimal Mobile Toggler */
.custom-mobile-toggler {
    border: 1px solid var(--border-color) !important;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    background: #ffffff;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-around;
    height: 38px;
    width: 42px;
    cursor: pointer;
    box-shadow: none !important;
}

.toggler-icon-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.25s ease;
}

.custom-mobile-toggler.active .top-bar { transform: translateY(6px) rotate(45deg); }
.custom-mobile-toggler.active .middle-bar { opacity: 0; }
.custom-mobile-toggler.active .bottom-bar { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 991.98px) {
    .header-nav-inner {
        padding: 0 0.25rem;
    }
    .navbar-collapse {
        background: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 1rem 0.85rem;
        margin-top: 0.75rem;
        box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
        width: 100%;
        text-align: center;
    }
    .navbar-nav {
        text-align: center;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
        padding-left: 0;
        margin: 0 auto;
    }
    .navbar-nav .nav-item {
        width: 100%;
        text-align: center;
    }
    .navbar-nav .nav-link {
        padding: 0.65rem 1rem !important;
        border-bottom: 1px solid var(--border-light);
        text-align: center !important;
        justify-content: center !important;
        display: flex;
        align-items: center;
        width: 100%;
        border-radius: 8px;
    }
    .navbar-nav .nav-item:last-of-type .nav-link {
        border-bottom: none;
    }
    .header-mobile-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .navbar-nav .nav-item-lang {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin: 0.85rem auto 0.25rem auto !important;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-light);
        position: relative;
    }
    .navbar-nav .nav-item-lang .btn-clean-lang {
        min-width: 140px;
        justify-content: center;
    }
    .navbar-nav .nav-item-lang .dropdown-menu {
        position: static !important;
        float: none;
        margin: 0.5rem auto 0 auto !important;
        transform: none !important;
        width: 100%;
        max-width: 260px;
    }
    .header-mobile-actions .dropdown-menu {
        right: 0 !important;
        left: auto !important;
    }
    @media (max-width: 575.98px) {
        .dropdown-menu-lang {
            max-width: calc(100vw - 32px);
        }
    }
}

/* ==========================================================================
   Clean Content-Aligned Minimal Breadcrumbs
   ========================================================================== */
.breadcrumb-nav {
    margin-bottom: 1.25rem;
    width: 100%;
}

.custom-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.55rem 0.95rem;
    margin: 0;
    list-style: none;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    font-size: 0.85rem;
    line-height: 1.5;
}

.custom-breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    color: #64748b;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item {
    padding-left: 0.65rem;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.62rem;
    color: #94a3b8;
    padding-right: 0.65rem;
}

.custom-breadcrumb .breadcrumb-item a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s ease;
}

.custom-breadcrumb .breadcrumb-item a:hover {
    color: var(--brand-accent);
    text-decoration: underline;
}

.custom-breadcrumb .breadcrumb-item.active {
    color: var(--text-main);
    font-weight: 600;
}

.custom-breadcrumb .breadcrumb-item i {
    color: var(--brand-accent);
    font-size: 0.82rem;
}

@media (max-width: 576px) {
    .custom-breadcrumb {
        font-size: 0.78rem;
        padding: 0.45rem 0.75rem;
    }
    .custom-breadcrumb .breadcrumb-item + .breadcrumb-item {
        padding-left: 0.45rem;
    }
    .custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        padding-right: 0.45rem;
        font-size: 0.55rem;
    }
}

/* ==========================================================================
   Spacious, Open Content Container ("Clean and Open Layout")
   ========================================================================== */
.main-content-card,
.main-content-card.shadow-sm,
article.main-content-card,
div.main-content-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 3.5rem 3rem;
    box-shadow: 0 12px 36px -4px rgba(15, 23, 42, 0.12), 0 4px 14px -2px rgba(15, 23, 42, 0.07), 0 0 1px rgba(15, 23, 42, 0.22) !important;
    margin-bottom: 3rem;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

@media (max-width: 768px) {
    .main-content-card,
    .main-content-card.shadow-sm,
    article.main-content-card,
    div.main-content-card {
        padding: 2rem 1.25rem !important;
        border-radius: 14px !important;
        box-shadow: 0 6px 20px -2px rgba(15, 23, 42, 0.11), 0 2px 6px -1px rgba(15, 23, 42, 0.06), 0 0 1px rgba(15, 23, 42, 0.18) !important;
    }
    .article-content h2 {
        font-size: clamp(1.25rem, 4.8vw, 1.55rem) !important;
        margin-top: 2.2rem !important;
        margin-bottom: 1.1rem !important;
        padding-left: 0.75rem !important;
    }
    .article-content h3 {
        font-size: 1.15rem !important;
        margin-top: 1.6rem !important;
        margin-bottom: 0.65rem !important;
    }
    .article-content p {
        font-size: 0.98rem;
        line-height: 1.75;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .main-content-card,
    .main-content-card.shadow-sm,
    article.main-content-card,
    div.main-content-card {
        padding: 1.6rem 1rem !important;
        border-radius: 12px !important;
    }
    .article-content h2 {
        border-left-width: 3.5px !important;
        padding-left: 0.65rem !important;
    }
    .hero-main-title {
        font-size: clamp(1.45rem, 6.2vw, 1.95rem) !important;
        line-height: 1.3 !important;
    }
    .hero-subtitle {
        font-size: 0.98rem !important;
        line-height: 1.65 !important;
        margin: 1rem auto 1.5rem !important;
    }
}

/* ==========================================================================
   Table of Contents (Clean, Minimalist & Content-Aligned)
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

.toc-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 1.15rem 1.4rem;
    margin: 2rem 0;
    box-shadow: 0 6px 20px -3px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    contain: layout style;
    content-visibility: auto;
    contain-intrinsic-size: 1px 70px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.toc-box:hover {
    border-color: #94a3b8;
    box-shadow: 0 10px 24px -3px rgba(15, 23, 42, 0.1);
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 0.15rem 0;
    background: transparent;
    border: none;
    width: 100%;
}

.toc-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-toggle-btn {
    font-size: 0.80rem;
    font-weight: 600;
    color: var(--brand-accent, #2563eb);
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    pointer-events: none;
}

.toc-toggle-btn i {
    font-size: 0.72rem;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.toc-header[aria-expanded="true"] .toc-toggle-btn,
.toc-box.toc-open .toc-toggle-btn {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.toc-header[aria-expanded="true"] .toc-toggle-btn i,
.toc-box.toc-open .toc-toggle-btn i {
    transform: rotate(180deg);
}

.toc-header:hover .toc-toggle-btn {
    background: #ffffff;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Fast GPU-Friendly Collapsible Container */
#tocContent.collapsing {
    transition: height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: height;
}

.toc-list {
    margin: 1.15rem 0 0.25rem 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1.75rem;
}

.toc-list li {
    font-size: 0.90rem;
    line-height: 1.45;
    margin: 0;
    min-width: 0;
}

.toc-list li a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: baseline;
    padding: 0.15rem 0;
    transition: color 0.15s ease;
    word-break: break-word;
}

.toc-list li a:hover {
    color: var(--brand-accent, #2563eb);
    text-decoration: underline;
}

.toc-num {
    font-size: 0.80rem;
    font-weight: 700;
    color: #94a3b8;
    margin-right: 0.45rem;
    flex-shrink: 0;
}

/* Tablet Layout (768px - 991px) */
@media (max-width: 991.98px) {
    .toc-list {
        gap: 0.55rem 1.25rem;
    }
}

/* Mobile Layout (< 768px) */
@media (max-width: 767.98px) {
    .toc-box {
        padding: 1rem 1.15rem;
        border-radius: 12px;
        margin: 1.5rem 0;
    }
    .toc-title {
        font-size: 1rem;
    }
    .toc-list {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        margin-top: 0.9rem;
    }
    .toc-list li {
        font-size: 0.88rem;
    }
    .toc-list li a {
        display: flex;
        align-items: center;
        padding: 0.45rem 0.5rem;
        border-radius: 6px;
        background: transparent;
        transition: background 0.15s ease, color 0.15s ease;
    }
    .toc-list li a:active,
    .toc-list li a:hover {
        background: #f1f5f9;
        color: var(--brand-accent, #2563eb);
        text-decoration: none;
    }
}

/* Clean, Structured Section Headings (No gaudy ribbons, no heavy black borders) */
.section-heading-ribbon, 
.article-content h2 {
    background: transparent !important;
    color: var(--text-main) !important;
    border: none !important;
    border-left: 4px solid #2563eb !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
    padding: 0.35rem 0 0.75rem 0.85rem !important;
    margin-top: 3.25rem !important;
    margin-bottom: 1.5rem !important;
    display: flex !important;
    align-items: center;
    font-size: 1.65rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    width: 100%;
    scroll-margin-top: 85px;
}

.article-content h3 {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.3rem;
    margin-top: 2.2rem;
    margin-bottom: 0.85rem;
}

.article-content h4 {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.15rem;
    margin-top: 1.8rem;
    margin-bottom: 0.75rem;
}

/* Hero Section */
.hero-section {
    padding: 1.5rem 0 2rem;
    background: transparent;
}

.hero-main-title {
    font-size: clamp(1.85rem, 3.8vw, 2.6rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-app-icon-img {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    margin: 1.5rem auto;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-app-icon-img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.hero-subtitle {
    font-size: 1.12rem;
    color: var(--text-muted);
    max-width: 820px;
    margin: 1.25rem auto 2rem;
    line-height: 1.8;
}

/* Clean, High-Contrast Action Download Button (Fully Responsive across ALL Devices) */
.download-btn-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
}

.btn-cta-download, 
.btn-black-orange {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 1.02rem !important;
    padding: 0.65rem 1.6rem !important;
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    letter-spacing: -0.01em;
    max-width: 95% !important;
    width: auto !important;
    box-sizing: border-box !important;
    text-align: center;
    line-height: 1.35;
    white-space: normal !important;
    word-break: normal;
}

.btn-cta-download:hover, 
.btn-black-orange:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.38) !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}

.btn-cta-download:active, 
.btn-black-orange:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
}

.btn-cta-download .btn-icon-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.btn-cta-download:hover .btn-icon-bubble {
    transform: translateY(2px);
}

/* Responsive Button Adaptation for Tablets and Mobile Devices */
@media (max-width: 767.98px) {
    .btn-cta-download,
    .btn-black-orange {
        width: auto !important;
        max-width: 92% !important;
        padding: 0.65rem 1.35rem !important;
        font-size: 0.96rem !important;
        border-radius: 12px !important;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .download-btn-wrap {
        margin: 1rem 0;
    }

    .btn-cta-download,
    .btn-black-orange {
        width: auto !important;
        min-width: 240px;
        max-width: 96% !important;
        padding: 0.6rem 1.15rem !important;
        font-size: 0.9rem !important;
        gap: 0.5rem !important;
        border-radius: 10px !important;
        box-shadow: 0 3px 10px rgba(37, 99, 235, 0.22) !important;
    }
    
    .btn-cta-download .btn-icon-bubble {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 0.78rem;
        border-radius: 6px;
    }
}

@media (max-width: 360px) {
    .btn-cta-download,
    .btn-black-orange {
        font-size: 0.84rem !important;
        padding: 0.55rem 0.9rem !important;
        min-width: 210px;
    }
}

.btn-cta-secondary {
    background: #ffffff !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    font-weight: 500;
    padding: 0.85rem 1.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.15s ease;
}

.btn-cta-secondary:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    text-decoration: none;
}

/* ==========================================================================
   Clean Tables & Data Layouts
   ========================================================================== */
.overview-table-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
    margin: 2.2rem 0;
}

.overview-table th {
    background: #f8fafc;
    color: var(--text-main);
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    width: 38%;
}

.overview-table td {
    background: #ffffff;
    color: var(--text-body);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

/* Comparison Table */
.comparison-table-wrap {
    margin: 2.2rem 0;
    overflow-x: auto;
}

.comparison-table-custom {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

.comparison-table-custom th {
    background: #f8fafc;
    color: var(--text-main);
    padding: 1rem 1.1rem;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table-custom th:first-child {
    text-align: left;
}

.comparison-table-custom td {
    padding: 0.95rem 1.1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.92rem;
    color: var(--text-body);
}

.comparison-table-custom td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-main);
}

.comparison-table-custom tr:nth-child(even) td {
    background-color: #fafbfc;
}

/* ==========================================================================
   Clean Feature Cards (No Pink Glow, No Loud Neon)
   ========================================================================== */
.feature-card-kadence {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: var(--shadow-subtle);
    transition: all 0.2s ease;
}

.feature-card-kadence:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.feature-card-kadence h3 {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    text-align: left;
}

.feature-card-kadence p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.7;
}

.pink-mini-separator {
    display: none !important;
}

/* Clean Pros & Cons Boxes */
.kadence-pro-col {
    background-color: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
    box-shadow: none !important;
}

.kadence-pro-col h3 {
    color: #166534;
    font-weight: 700;
    text-align: left;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}

.kadence-con-col {
    background-color: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
    box-shadow: none !important;
}

.kadence-con-col h3 {
    color: #991b1b;
    font-weight: 700;
    text-align: left;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}

.kadence-pro-col ul, .kadence-con-col ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.kadence-pro-col li, .kadence-con-col li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-body);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.kadence-pro-col li:last-child, .kadence-con-col li:last-child {
    border-bottom: none;
}

@media (max-width: 575.98px) {
    .kadence-pro-col, .kadence-con-col {
        padding: 1.25rem 1rem !important;
    }
}

/* Screenshots Gallery Grid (Premium Device Showcase) */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 2.2rem 0;
    width: 100%;
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    width: 100%;
    min-width: 0;
}

.screenshot-device {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 475 / 1007;
}

.screenshot-device img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border: none;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.16));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.screenshot-item:hover .screenshot-device img {
    transform: translateY(-7px) scale(1.025);
    filter: drop-shadow(0 18px 30px rgba(13, 110, 253, 0.28));
}

.screenshot-info {
    margin-top: 0.85rem;
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.screenshot-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.80rem;
    font-weight: 600;
    color: var(--text-heading, #1e293b);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.65rem;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    letter-spacing: 0.01em;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tablet & Intermediate Screen Adaptation (576px - 991.98px) */
@media (min-width: 576px) and (max-width: 991.98px) {
    .screenshot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.5rem;
        max-width: 560px;
        margin: 2rem auto;
    }
    .screenshot-device {
        max-width: 230px;
    }
    .screenshot-badge {
        font-size: 0.82rem;
        padding: 0.35rem 0.75rem;
    }
}

/* Mobile Screen Adaptation (< 576px) */
@media (max-width: 575.98px) {
    .screenshot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem 0.75rem;
        margin: 1.5rem auto;
    }
    .screenshot-device {
        max-width: 175px;
    }
    .screenshot-badge {
        font-size: 0.72rem;
        padding: 0.25rem 0.45rem;
    }
}

/* Extra Small Mobile (< 380px) */
@media (max-width: 380px) {
    .screenshot-grid {
        gap: 1rem 0.5rem;
    }
    .screenshot-device {
        max-width: 145px;
    }
    .screenshot-badge {
        font-size: 0.68rem;
        padding: 0.2rem 0.35rem;
    }
}

/* Regional Apps Grid (Clean Minimal Cards) */
.country-app-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem 0.85rem;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.country-app-card:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.country-app-logo {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 18px;
    margin: 0 auto 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease;
}

.country-app-card:hover .country-app-logo {
    transform: scale(1.08);
}

.country-name {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.country-lang {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
    display: block;
}

.btn-regional-download {
    background: var(--brand-primary);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
}

.btn-regional-download:hover {
    background: #1d4ed8;
    color: #ffffff !important;
    transform: translateY(-1px);
    text-decoration: none;
}



/* Download 2nd Page Card */
.download-countdown-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 28px -4px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
}

.timer-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f8fafc;
    border: 3px solid var(--brand-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 1.5rem 0;
}

.checksum-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.85rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: #334155;
    word-break: break-all;
    text-align: left;
}

/* Accordion FAQ */
.accordion-item {
    background-color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    margin-bottom: 0.95rem;
    overflow: hidden;
    box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02) !important;
    transition: all 0.25s ease;
}

.accordion-item:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.07) !important;
}

.accordion-button {
    background-color: #ffffff !important;
    color: var(--text-main) !important;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: none !important;
    padding: 1.1rem 1.35rem;
}

.accordion-button:not(.collapsed) {
    background-color: #f8fafc !important;
    color: var(--brand-accent) !important;
    border-bottom: 1px solid var(--border-color);
}

.accordion-body {
    background-color: #ffffff;
    color: var(--text-body);
    font-size: 0.96rem;
    line-height: 1.8;
    padding: 1.35rem;
}

/* ==========================================================================
   Ad Containers (Clean, Centered & Perfectly Responsive Across All Devices)
   ========================================================================== */
.ad-top-wrapper {
    width: 100%;
    background: transparent;
}

.ad-top-wrapper:empty {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ad-banner-wrapper {
    margin: 1.25rem auto;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0;
}

.ad-content-container,
.responsive-ad-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

/* Fluid responsive rules for all third-party ad tags and scripts */
.ad-banner-wrapper img,
.ad-banner-wrapper picture,
.ad-banner-wrapper video,
.ad-banner-wrapper svg,
.ad-banner-wrapper canvas {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
}

.ad-banner-wrapper iframe {
    max-width: 100% !important;
    border: 0;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
}

.ad-banner-wrapper ins.adsbygoogle {
    display: block !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    box-sizing: border-box;
}

.ad-banner-wrapper a {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
}

.ad-label {
    letter-spacing: 0.08em;
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    display: block;
}

/* Individual Slot Width Containers matching site grid (100% Fluid & Content-Aligned) */
.ad-banner-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.ad-content-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.ad-slot-header_top,
.ad-slot-in_content,
.ad-slot-download_cta,
.ad-slot-side_left,
.ad-slot-side_right,
.ad-slot-footer_banner {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
}

.ad-top-wrapper,
.ad-footer-wrapper {
    width: 100% !important;
}

/* ==========================================================================
   Desktop Left & Right Side Rail / Skyscraper Ads (Fixed in Screen Gutters)
   ========================================================================== */
.desktop-side-rail {
    display: none;
    position: fixed;
    top: 95px;
    z-index: 95;
    width: 160px;
    max-width: 160px;
    box-sizing: border-box;
    text-align: center;
    pointer-events: auto;
}

.desktop-side-rail .side-rail-inner {
    width: 100%;
    position: relative;
}

.ad-side-rail-wrapper {
    width: 160px;
    max-width: 100%;
    margin: 0 auto;
}

.demo-ad-side-rail {
    width: 160px !important;
    max-width: 100% !important;
    min-height: 520px;
    border-radius: 14px !important;
}

/* Position Left & Right Rails exclusively on wide desktop viewports (1400px+) */
@media (min-width: 1400px) {
    .desktop-side-rail {
        display: block !important;
    }
    .desktop-side-rail-left {
        right: calc(50% + 500px) !important;
        left: auto !important;
    }
    .desktop-side-rail-right {
        left: calc(50% + 500px) !important;
        right: auto !important;
    }
}

/* Completely suppress on viewports < 1400px (tablets, phones, standard laptops) */
@media (max-width: 1399.98px) {
    .desktop-side-rail {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

.demo-ad-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
    transition: all 0.2s ease-in-out;
}

.demo-ad-box:hover {
    transform: translateY(-1px);
}

/* Mobile & Tablet Specific Ad Adaptations (100% Fluid & Zero Overflow) */
@media (max-width: 767.98px) {
    .ad-banner-wrapper {
        margin: 0.85rem auto;
        padding: 0;
        width: 100% !important;
        max-width: 100% !important;
    }
    .ad-slot-header_top,
    .ad-slot-in_content,
    .ad-slot-download_cta,
    .ad-slot-side_left,
    .ad-slot-side_right,
    .ad-slot-footer_banner {
        width: 100% !important;
        max-width: 100% !important;
    }
    .demo-ad-box {
        padding: 14px 16px !important;
        border-radius: 14px !important;
    }
}

/* Disabled Sticky Mobile Ad Popup */
.mobile-sticky-ad {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* ==========================================================================
   WP Dashboard Custom Toggle Switch & Ad Management Controls
   ========================================================================== */
.wp-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    vertical-align: middle;
    margin: 0;
    cursor: pointer;
}
.wp-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.wp-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: 0.22s ease;
    border-radius: 24px;
}
.wp-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.22s ease;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.28);
}
.wp-toggle-switch input:checked + .wp-toggle-slider {
    background-color: #00a32a;
}
.wp-toggle-switch input:checked + .wp-toggle-slider:before {
    transform: translateX(20px);
}
.ad-status-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
}
.ad-status-badge.status-active {
    background: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
}
.ad-status-badge.status-paused {
    background: #f1f3f4;
    color: #5f6368;
    border: 1px solid #dadce0;
}

/* ==========================================================================
   Live Ad Preview & Mockup Stage Styling
   ========================================================================== */
.ad-preview-panel {
    transition: all 0.3s ease;
}
.ad-viewport-buttons .ad-device-btn {
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.18s ease;
}
.ad-viewport-buttons .ad-device-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #94a3b8;
}
.ad-viewport-buttons .ad-device-btn.active {
    background: #2271b1;
    color: #ffffff !important;
    border-color: #1a56db;
    box-shadow: 0 1px 4px rgba(34, 113, 177, 0.3);
}
.ad-mockup-frame {
    transition: max-width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}
.ad-mockup-frame.device-desktop {
    max-width: 100% !important;
}
.ad-mockup-frame.device-tablet {
    max-width: 768px !important;
}
.ad-mockup-frame.device-mobile {
    max-width: 375px !important;
}
.ad-mockup-frame.device-mobile .mockup-sidebar-grid {
    flex-direction: column !important;
}
.ad-mockup-frame.device-tablet .mockup-sidebar-grid {
    flex-direction: column !important;
}
.ad-mockup-frame.device-mobile .mockup-sidebar-col,
.ad-mockup-frame.device-tablet .mockup-sidebar-col {
    width: 100% !important;
}
.ad-simulated-adsense {
    background: #1e293b;
    border: 1px dashed #3b82f6;
    border-radius: 6px;
    padding: 18px 12px;
    text-align: center;
    color: #93c5fd;
    width: 100%;
    box-sizing: border-box;
}

/* Go to Top Menu / Back to Top Button (High Visibility, Never Blocked) */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0f172a;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    z-index: 9999 !important; /* Always on top of every element */
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.9);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: #1e293b;
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
}

.back-to-top:active {
    transform: translateY(0) scale(0.95);
}

@media (max-width: 767.98px) {
    .back-to-top {
        bottom: 20px;
        right: 18px;
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    }
}

/* ==========================================================================
   Clean, Modern Footer Matching Website Color Palette & Structure
   ========================================================================== */
.main-footer {
    background-color: #ffffff;
    color: var(--text-body);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.04);
}

.footer-brand-text {
    color: var(--text-main);
    font-weight: 700;
}

.footer-desc {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.65;
}

.footer-heading {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.footer-links-container {
    width: 100%;
}

.footer-links {
    margin-bottom: 0;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.55rem;
    list-style: none;
}

.footer-links a {
    color: #475569;
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.15s ease;
}

.footer-links a i {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.footer-links a:hover {
    color: var(--brand-accent);
    text-decoration: none;
    transform: translateX(3px);
}

.footer-social-section {
    margin-top: 0.75rem;
}

.footer-social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    color: #475569 !important;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.social-btn.whatsapp:hover { background: #25d366; border-color: #25d366; color: #fff !important; }
.social-btn.telegram:hover { background: #0088cc; border-color: #0088cc; color: #fff !important; }
.social-btn.facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff !important; }
.social-btn.twitter:hover { background: #0f172a; border-color: #0f172a; color: #fff !important; }



.footer-divider {
    border-color: var(--border-color);
    opacity: 0.7;
}

.footer-copy {
    color: #475569;
    font-size: 0.85rem;
}

.footer-disclaimer {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.6;
}

/* Tablet Layout Optimization (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .main-footer .footer-col {
        margin-bottom: 1.5rem !important;
    }
    .main-footer .footer-col-brand {
        text-align: left;
    }
}

/* Responsive & Mobile Structured Layout (< 768px) */
@media (max-width: 767.98px) {
    .main-footer {
        padding-top: 2.25rem !important;
        padding-bottom: 1.75rem !important;
    }
    
    .main-footer .footer-col-brand {
        text-align: center;
        margin-bottom: 1.25rem;
    }

    .main-footer .footer-brand {
        justify-content: center !important;
    }

    .main-footer .footer-desc {
        max-width: 380px;
        margin: 0 auto 0.85rem auto;
        text-align: center;
        font-size: 0.84rem;
    }

    .main-footer .footer-social-section {
        justify-content: center !important;
        margin-bottom: 0.5rem;
    }

    .main-footer .footer-social-grid {
        justify-content: center !important;
    }

    .main-footer .footer-heading {
        font-size: 0.90rem;
        margin-top: 0.25rem;
        margin-bottom: 0.65rem !important;
    }

    /* Links on mobile: clean aligned 2 columns */
    .main-footer .footer-links {
        text-align: left !important;
        padding-left: 0;
    }
    
    .main-footer .footer-links li {
        margin-bottom: 0.50rem;
    }

    .main-footer .footer-links a {
        display: inline-flex;
        align-items: center;
        font-size: 0.82rem;
        width: 100%;
        line-height: 1.4;
    }

    .main-footer .footer-links a i {
        width: 16px;
        text-align: center;
        flex-shrink: 0;
        margin-right: 0.45rem !important;
        font-size: 0.82rem;
    }

    .main-footer .footer-links a span {
        white-space: normal;
        word-break: break-word;
    }
}

/* ==========================================================================
   Modern Feature Cards & Badges
   ========================================================================== */
.feature-card-modern {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-subtle);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.feature-card-modern:hover {
    border-color: #94a3b8;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    transform: translateY(-3px);
}

.feature-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.feature-icon-badge.icon-blue { background: #eff6ff; color: #2563eb; }
.feature-icon-badge.icon-amber { background: #fffbeb; color: #d97706; }
.feature-icon-badge.icon-emerald { background: #ecfdf5; color: #059669; }
.feature-icon-badge.icon-purple { background: #faf5ff; color: #9333ea; }
.feature-icon-badge.icon-rose { background: #fff1f2; color: #e11d48; }
.feature-icon-badge.icon-teal { background: #f0fdfa; color: #0d9488; }

.feature-card-modern h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.6rem;
}

.feature-card-modern p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.feature-tag-pill {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    background: #f1f5f9;
    color: #475569;
}

/* ==========================================================================
   Step-by-Step Installation Workflow Cards
   ========================================================================== */
.step-workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.step-workflow-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.6rem;
    position: relative;
    box-shadow: var(--shadow-subtle);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.step-workflow-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: var(--shadow-card);
}

.step-workflow-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.step-workflow-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.step-workflow-card p {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.65;
}

/* ==========================================================================
   Modern Table Styling
   ========================================================================== */
.table-modern-wrapper {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
    margin: 2rem 0;
    width: 100%;
}

.table-modern {
    margin-bottom: 0;
    width: 100%;
    min-width: 500px;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background-color: #f8fafc;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid var(--border-color);
}

.table-modern tbody td,
.table-modern tbody th {
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    vertical-align: middle;
}

.table-modern tbody tr:last-child td,
.table-modern tbody tr:last-child th {
    border-bottom: none;
}

.table-modern tbody tr:hover td {
    background-color: #f8fafc;
}

/* Quick Platform Pills (Responsive Across All Mobile Devices) */
.platform-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 1.5rem 0;
    width: 100%;
}

.platform-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: #1e293b;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.15s ease;
    text-decoration: none;
    box-shadow: var(--shadow-subtle);
}

.platform-pill-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
    text-decoration: none;
    transform: translateY(-1px);
}

@media (max-width: 575.98px) {
    .platform-pill-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .platform-pill-btn {
        width: 100%;
        padding: 0.55rem 0.6rem;
    }
    
    /* Mobile Card Breathing Room */
    .main-content-card,
    article.main-content-card {
        padding-left: 1.15rem !important;
        padding-right: 1.15rem !important;
    }
}

@media (max-width: 360px) {
    .platform-pill-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   HIGH-SPEED CLOUD MIRROR HUB & DOWNLOAD HUB SYSTEM
   Modern, Interactive, 100% Fluid & Mobile-Fit UI (Zero Squished Elements)
   ========================================================================== */

.cloud-mirror-hub {
    margin: 1.75rem 0 2.5rem 0;
    width: 100%;
}

.mirror-hub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.mirror-hub-header-left {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.mirror-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    font-size: 1.15rem;
    flex-shrink: 0;
    margin: 0 !important;
}

.article-content .mirror-hub-title,
.main-content-card .mirror-hub-title,
.mirror-hub-title {
    color: #0f172a !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.25 !important;
    display: inline-flex;
    align-items: center;
}

.mirror-hub-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    gap: 0.5rem;
    line-height: 1 !important;
    margin: 0 !important;
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: livePulse 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
    flex-shrink: 0;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Mirror Cards List */
.mirror-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.mirror-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.15rem 1.35rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    position: relative;
    overflow: hidden;
}

.mirror-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.mirror-card-primary {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.mirror-card-primary:hover {
    border-color: #2563eb;
}

.mirror-card-body {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    min-width: 0;
    flex: 1 1 auto;
}

/* Branded Server Icons */
.mirror-icon-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.mirror-card:hover .mirror-icon-box {
    transform: scale(1.08);
}

.mirror-icon-cdn {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(59, 130, 246, 0.25) 100%);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.25);
}

.mirror-icon-drive {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(245, 158, 11, 0.25) 100%);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.mirror-icon-mediafire {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(249, 115, 22, 0.25) 100%);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.mirror-icon-telegram {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(56, 189, 248, 0.25) 100%);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.mirror-info {
    min-width: 0;
    flex: 1 1 auto;
}

.mirror-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.mirror-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.mirror-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.45;
}

.mirror-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.mirror-pill-recommended {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.mirror-pill-verified {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.mirror-pill-fast {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.mirror-pill-telegram {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

/* Mirror Action Buttons */
.mirror-action {
    flex-shrink: 0;
}

.btn-mirror-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.6rem 1.15rem;
    border-radius: 50px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-mirror-primary {
    background: #2563eb;
    color: #ffffff !important;
    border: 1px solid #2563eb;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.mirror-card:hover .btn-mirror-primary {
    background: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-mirror-secondary {
    background: #f8fafc;
    color: #1e293b !important;
    border: 1px solid #cbd5e1;
}

.mirror-card:hover .btn-mirror-secondary {
    background: #2563eb;
    color: #ffffff !important;
    border-color: #2563eb;
}

.btn-mirror-telegram {
    background: #0284c7;
    color: #ffffff !important;
    border: 1px solid #0284c7;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.mirror-card:hover .btn-mirror-telegram {
    background: #0369a1;
    border-color: #0369a1;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

/* Security Trust Badges & Chips */
.trust-badges-wrap {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.trust-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.82rem;
    font-weight: 500;
}

/* Checksums Section */
.checksum-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

/* Mobile & Tablet Layout for Mirrors */
@media (max-width: 767.98px) {
    .mirror-card {
        flex-direction: column;
        align-items: stretch;
        padding: 1.15rem 1rem;
        gap: 0.95rem;
    }

    .mirror-card-body {
        align-items: flex-start;
        gap: 0.85rem;
    }

    .mirror-icon-box {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 1.15rem;
    }

    .mirror-name {
        font-size: 0.96rem;
    }

    .mirror-desc {
        font-size: 0.82rem;
        margin-top: 0.2rem;
    }

    .mirror-action {
        width: 100%;
    }

    .btn-mirror-download {
        width: 100%;
        padding: 0.72rem 1rem;
        font-size: 0.92rem;
        min-height: 44px;
    }

    /* Fallback list-group responsive stacking */
    .list-group-item.d-flex {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.95rem !important;
    }

    .list-group-item.d-flex > div:first-child {
        width: 100%;
    }

    .list-group-item.d-flex .btn {
        width: 100% !important;
        text-align: center;
        padding: 0.65rem 1rem !important;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .trust-badges-wrap {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100%;
    }

    .trust-badge-chip {
        justify-content: center;
        width: 100%;
    }
}

/* ==========================================================================
   Content Area Structural Elevation & Sub-Card Shadows
   ========================================================================== */
.sidebar-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 20px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04), 0 0 1px rgba(15, 23, 42, 0.16) !important;
    transition: all 0.25s ease;
}

.sidebar-card:hover {
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06) !important;
    border-color: #cbd5e1 !important;
}



.main-content-card .bg-white.rounded-4.border,
.final-cta-card {
    box-shadow: 0 8px 24px -3px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
    border-color: #e2e8f0 !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.main-content-card .bg-white.rounded-4.border:hover,
.final-cta-card:hover {
    box-shadow: 0 14px 34px -4px rgba(15, 23, 42, 0.12) !important;
    border-color: #cbd5e1 !important;
}

/* ==========================================================================
   Lighthouse Accessibility & WCAG 2.1 Contrast Enhancements
   ========================================================================== */
/* 1. High-Contrast Text Warning on White/Light Backgrounds (WCAG AA Ratio >= 4.5:1) */
.text-warning,
.text-warning-emphasis,
h1.text-warning,
h2.text-warning,
h3.text-warning,
h4.text-warning,
h5.text-warning,
h6.text-warning {
    color: #b45309 !important; /* Deep Amber: 4.8:1 contrast ratio against #ffffff */
}

/* 2. Accessible Inline Article Links (WCAG 1.4.1 Distinguishable Links) */
.article-content p a:not(.btn):not(.btn-cta-download):not(.platform-pill-btn):not(.btn-regional-download),
.article-content li a:not(.btn):not(.btn-cta-download):not(.platform-pill-btn):not(.btn-regional-download),
.article-content td a:not(.btn):not(.btn-cta-download):not(.platform-pill-btn):not(.btn-regional-download),
.main-content-card p a:not(.btn):not(.btn-cta-download):not(.platform-pill-btn):not(.btn-regional-download),
.main-content-card li a:not(.btn):not(.btn-cta-download):not(.platform-pill-btn):not(.btn-regional-download) {
    color: #1d4ed8;
    text-decoration: underline;
    text-decoration-color: rgba(29, 78, 216, 0.45);
    text-underline-offset: 3px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.article-content p a:not(.btn):not(.btn-cta-download):not(.platform-pill-btn):not(.btn-regional-download):hover,
.article-content li a:not(.btn):not(.btn-cta-download):not(.platform-pill-btn):not(.btn-regional-download):hover,
.article-content td a:not(.btn):not(.btn-cta-download):not(.platform-pill-btn):not(.btn-regional-download):hover,
.main-content-card p a:not(.btn):not(.btn-cta-download):not(.platform-pill-btn):not(.btn-regional-download):hover,
.main-content-card li a:not(.btn):not(.btn-cta-download):not(.platform-pill-btn):not(.btn-regional-download):hover {
    color: #1e40af;
    text-decoration-color: #1e40af;
}

/* ==========================================================================
   SMART ZERO-BLINK DARK / NIGHT MODE SYSTEM
   Deep Slate-Navy Cinematic Palette (#0b0f19 / #111827 / #1e293b)
   WCAG 2.1 AAA High Contrast, 0 FOUC, 0 Invisible Words, 100% Page Coverage
   ========================================================================== */

html[data-theme="dark"],
[data-theme="dark"] {
    --base-bg: #0b0f19;
    --card-bg: #111827;
    --text-main: #f8fafc;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #64748b;

    --brand-primary: #3b82f6;
    --brand-accent: #60a5fa;
    --brand-success: #22c55e;
    --brand-danger: #ef4444;

    --border-color: #1e293b;
    --border-light: #162032;

    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 4px 16px -2px rgba(0, 0, 0, 0.5);
    --shadow-content: 0 12px 36px -4px rgba(0, 0, 0, 0.6);
    --shadow-elevated: 0 16px 42px -4px rgba(0, 0, 0, 0.7);
    --shadow-hover: 0 20px 42px -6px rgba(0, 0, 0, 0.75);

    /* Bootstrap 5 Core Variables Override */
    --bs-body-bg: #0b0f19;
    --bs-body-color: #cbd5e1;
    --bs-heading-color: #f8fafc;
    --bs-secondary-color: #94a3b8;
    --bs-border-color: #1e293b;
    --bs-card-bg: #111827;
    --bs-card-color: #cbd5e1;
    --bs-card-border-color: #1e293b;
    --bs-light-rgb: 22, 32, 50;
    --bs-dark-rgb: 248, 250, 252;
    --bs-primary-rgb: 59, 130, 246;

    color-scheme: dark;
}

[data-theme="dark"] body.site-body {
    background-color: var(--base-bg);
    color: var(--text-body);
}

/* --------------------------------------------------------------------------
   1. ZERO-INVISIBLE-TEXT OVERRIDES (Ensures 100% Readability & AAA Contrast)
   -------------------------------------------------------------------------- */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .hero-main-title,
[data-theme="dark"] .hero-heading,
[data-theme="dark"] .card-title,
[data-theme="dark"] .footer-heading,
[data-theme="dark"] .country-name,
[data-theme="dark"] .toc-title,
[data-theme="dark"] strong,
[data-theme="dark"] b,
[data-theme="dark"] .text-dark,
[data-theme="dark"] .text-black,
[data-theme="dark"] .text-body,
[data-theme="dark"] .text-dark-emphasis,
[data-theme="dark"] [class*="text-dark"],
[data-theme="dark"] [class*="text-black"] {
    color: #f8fafc !important;
}

[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] dd,
[data-theme="dark"] dt,
[data-theme="dark"] label,
[data-theme="dark"] .form-label,
[data-theme="dark"] td,
[data-theme="dark"] .article-content,
[data-theme="dark"] .article-content p,
[data-theme="dark"] .article-content li,
[data-theme="dark"] .card-body,
[data-theme="dark"] .accordion-body {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary,
[data-theme="dark"] .text-body-secondary,
[data-theme="dark"] small.text-muted,
[data-theme="dark"] .text-muted small,
[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .country-lang,
[data-theme="dark"] .footer-desc,
[data-theme="dark"] .footer-copy,
[data-theme="dark"] .footer-disclaimer,
[data-theme="dark"] .toc-num,
[data-theme="dark"] [class*="text-muted"],
[data-theme="dark"] [class*="text-secondary"] {
    color: #94a3b8 !important;
}

/* --------------------------------------------------------------------------
   2. ZERO-WHITE-BOX BACKGROUND OVERRIDES (Adapts all containers to dark palette)
   -------------------------------------------------------------------------- */
[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-body,
[data-theme="dark"] [class*="bg-white"] {
    background-color: #111827 !important;
    border-color: #1e293b !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .bg-light,
[data-theme="dark"] .bg-body-secondary,
[data-theme="dark"] .bg-body-tertiary,
[data-theme="dark"] [class*="bg-light"] {
    background-color: #162032 !important;
    border-color: #1e293b !important;
    color: #cbd5e1 !important;
}

/* Elevated Embedded & CTA Containers across all pages */
[data-theme="dark"] .p-4.bg-light,
[data-theme="dark"] .p-3.bg-light,
[data-theme="dark"] .p-4.bg-white,
[data-theme="dark"] .p-3.bg-white,
[data-theme="dark"] .p-3.border.rounded.bg-white,
[data-theme="dark"] .p-3.border.rounded-3.bg-light,
[data-theme="dark"] .p-4.bg-light.border,
[data-theme="dark"] .p-4.bg-light.border.rounded-4,
[data-theme="dark"] .p-4.bg-light.border.rounded-3,
[data-theme="dark"] .text-center.p-4.p-md-5.bg-white.rounded-4 {
    background-color: #131d31 !important;
    border-color: #1e293b !important;
    color: #cbd5e1 !important;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.4) !important;
}

/* Subtle Colored Badges & Callout Backgrounds */
[data-theme="dark"] .bg-primary-subtle {
    background-color: rgba(37, 99, 235, 0.18) !important;
    color: #93c5fd !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
}
[data-theme="dark"] .bg-secondary-subtle {
    background-color: rgba(148, 163, 184, 0.15) !important;
    color: #cbd5e1 !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
}
[data-theme="dark"] .bg-success-subtle {
    background-color: rgba(22, 163, 74, 0.18) !important;
    color: #86efac !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
}
[data-theme="dark"] .bg-warning-subtle {
    background-color: rgba(217, 119, 6, 0.18) !important;
    color: #fde047 !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
}
[data-theme="dark"] .bg-danger-subtle {
    background-color: rgba(220, 38, 38, 0.18) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}
[data-theme="dark"] .bg-info-subtle {
    background-color: rgba(14, 165, 233, 0.18) !important;
    color: #7dd3fc !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
}

/* --------------------------------------------------------------------------
   3. PROS & CONS BOXES (kadence-pro-col & kadence-con-col)
   -------------------------------------------------------------------------- */
[data-theme="dark"] .kadence-pro-col {
    background-color: rgba(34, 197, 94, 0.10) !important;
    border: 1px solid rgba(34, 197, 94, 0.30) !important;
    border-radius: 10px;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.4) !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .kadence-pro-col h3 {
    color: #4ade80 !important;
}

[data-theme="dark"] .kadence-pro-col li {
    color: #cbd5e1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .kadence-pro-col li i {
    color: #22c55e !important;
}

[data-theme="dark"] .kadence-con-col {
    background-color: rgba(239, 68, 68, 0.10) !important;
    border: 1px solid rgba(239, 68, 68, 0.30) !important;
    border-radius: 10px;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.4) !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .kadence-con-col h3 {
    color: #f87171 !important;
}

[data-theme="dark"] .kadence-con-col li {
    color: #cbd5e1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .kadence-con-col li i {
    color: #ef4444 !important;
}

/* --------------------------------------------------------------------------
   4. FEATURE CARDS & ICON BADGES
   -------------------------------------------------------------------------- */
[data-theme="dark"] .feature-card-kadence,
[data-theme="dark"] .feature-card-modern,
[data-theme="dark"] .sidebar-card {
    background: #111827 !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .feature-card-kadence:hover,
[data-theme="dark"] .feature-card-modern:hover {
    border-color: #3b82f6 !important;
    background: #131d31 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .feature-icon-badge.icon-blue {
    background: rgba(59, 130, 246, 0.18) !important;
    color: #60a5fa !important;
}
[data-theme="dark"] .feature-icon-badge.icon-amber {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #fbbf24 !important;
}
[data-theme="dark"] .feature-icon-badge.icon-emerald {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
}
[data-theme="dark"] .feature-icon-badge.icon-purple {
    background: rgba(168, 85, 247, 0.18) !important;
    color: #c084fc !important;
}
[data-theme="dark"] .feature-icon-badge.icon-rose {
    background: rgba(244, 63, 94, 0.18) !important;
    color: #fb7185 !important;
}
[data-theme="dark"] .feature-icon-badge.icon-teal {
    background: rgba(20, 184, 166, 0.18) !important;
    color: #2dd4bf !important;
}

[data-theme="dark"] .feature-tag-pill {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
    border: 1px solid #334155 !important;
}

/* --------------------------------------------------------------------------
   5. COMPARISON & OVERVIEW TABLES
   -------------------------------------------------------------------------- */
[data-theme="dark"] .overview-table-card,
[data-theme="dark"] .comparison-table-wrap,
[data-theme="dark"] .comparison-table-custom,
[data-theme="dark"] .table-modern-wrapper,
[data-theme="dark"] .table-responsive {
    background: #111827 !important;
    border-color: #1e293b !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] table,
[data-theme="dark"] .table,
[data-theme="dark"] .table-modern,
[data-theme="dark"] .overview-table,
[data-theme="dark"] .comparison-table-custom {
    --bs-table-bg: transparent !important;
    --bs-table-color: #cbd5e1 !important;
    --bs-table-border-color: #1e293b !important;
    border-color: #1e293b !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] table thead th,
[data-theme="dark"] .table thead th,
[data-theme="dark"] .table-modern thead th,
[data-theme="dark"] .overview-table th,
[data-theme="dark"] .comparison-table-custom th {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: #1e293b !important;
    border-bottom: 2px solid #1e293b !important;
}

[data-theme="dark"] table tbody td,
[data-theme="dark"] table tbody th,
[data-theme="dark"] .table tbody td,
[data-theme="dark"] .table tbody th,
[data-theme="dark"] .table-modern tbody td,
[data-theme="dark"] .table-modern tbody th,
[data-theme="dark"] .overview-table td,
[data-theme="dark"] .comparison-table-custom td {
    background-color: #111827 !important;
    color: #cbd5e1 !important;
    border-color: #1e293b !important;
    border-bottom: 1px solid #1e293b !important;
}

[data-theme="dark"] .comparison-table-custom td:first-child {
    color: #f8fafc !important;
    font-weight: 600 !important;
}

[data-theme="dark"] .comparison-table-custom tr:nth-child(even) td,
[data-theme="dark"] .table-modern tr:nth-child(even) td,
[data-theme="dark"] table tbody tr:nth-child(even) td {
    background-color: #162032 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] table tbody tr:hover td,
[data-theme="dark"] .table tbody tr:hover td,
[data-theme="dark"] .table-modern tbody tr:hover td,
[data-theme="dark"] .comparison-table-custom tr:hover td {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

/* --------------------------------------------------------------------------
   6. TABLE OF CONTENTS
   -------------------------------------------------------------------------- */
[data-theme="dark"] .toc-box {
    background: #0f172a !important;
    border-color: #1e293b !important;
}

[data-theme="dark"] .toc-header {
    border-bottom-color: #1e293b !important;
}

[data-theme="dark"] .toc-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .toc-toggle-btn,
[data-theme="dark"] .toc-header[aria-expanded="true"] .toc-toggle-btn,
[data-theme="dark"] .toc-box.toc-open .toc-toggle-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .toc-toggle-btn:hover,
[data-theme="dark"] .toc-header:hover .toc-toggle-btn {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

[data-theme="dark"] .toc-list li a {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .toc-list li a:hover,
[data-theme="dark"] .toc-list li a:active {
    color: #60a5fa !important;
    background-color: #1e293b !important;
}

[data-theme="dark"] .toc-num {
    background: #1e293b !important;
    color: #93c5fd !important;
}

/* --------------------------------------------------------------------------
   7. STEP WORKFLOW CARDS (Installation Guides on all OS pages)
   -------------------------------------------------------------------------- */
[data-theme="dark"] .step-workflow-card {
    background: #111827 !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .step-workflow-card:hover {
    border-color: #3b82f6 !important;
    background: #131d31 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .step-workflow-card h4,
[data-theme="dark"] .step-workflow-card h5 {
    color: #f8fafc !important;
}

[data-theme="dark"] .step-workflow-card p {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .step-workflow-number {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   8. REGIONAL COUNTRY APP CARDS & DOWNLOAD PAGE
   -------------------------------------------------------------------------- */
[data-theme="dark"] .country-app-card,
[data-theme="dark"] .download-countdown-card {
    background: #111827 !important;
    border-color: #1e293b !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .country-app-card:hover {
    border-color: #3b82f6 !important;
    background: #131d31 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .country-name {
    color: #f8fafc !important;
}

[data-theme="dark"] .country-lang {
    color: #94a3b8 !important;
}

[data-theme="dark"] .btn-regional-download {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .btn-regional-download:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

[data-theme="dark"] #waitingNotice {
    color: #f8fafc !important;
}

[data-theme="dark"] #downloadCountdown {
    color: #60a5fa !important;
}

[data-theme="dark"] .timer-circle {
    background: #0f172a !important;
    border-color: #3b82f6 !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .checksum-box {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .screenshot-badge {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* --------------------------------------------------------------------------
   9. BREADCRUMB, MAIN CONTENT CARDS & ELEVATIONS
   -------------------------------------------------------------------------- */
[data-theme="dark"] .custom-breadcrumb {
    background-color: #111827 !important;
    border-color: #1e293b !important;
}

[data-theme="dark"] .custom-breadcrumb .breadcrumb-item {
    color: #64748b !important;
}

[data-theme="dark"] .custom-breadcrumb .breadcrumb-item a {
    color: #94a3b8 !important;
}

[data-theme="dark"] .custom-breadcrumb .breadcrumb-item a:hover {
    color: #60a5fa !important;
}

[data-theme="dark"] .custom-breadcrumb .breadcrumb-item.active {
    color: #f8fafc !important;
}

[data-theme="dark"] .custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #475569 !important;
}

[data-theme="dark"] .main-content-card,
[data-theme="dark"] .main-content-card.shadow-sm,
[data-theme="dark"] article.main-content-card,
[data-theme="dark"] div.main-content-card,
[data-theme="dark"] .card {
    background: #111827 !important;
    border-color: #1e293b !important;
    box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .card-header {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .card-body {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .list-group-item {
    background-color: #111827 !important;
    border-color: #1e293b !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .border,
[data-theme="dark"] .border-top,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-start,
[data-theme="dark"] .border-end {
    border-color: #1e293b !important;
}

[data-theme="dark"] hr {
    border-color: #1e293b !important;
    opacity: 0.6;
}

[data-theme="dark"] .shadow-sm,
[data-theme="dark"] .shadow {
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.5) !important;
}

/* --------------------------------------------------------------------------
   10. HEADER, NAVIGATION & THEME CONTROLS
   -------------------------------------------------------------------------- */
[data-theme="dark"] .main-header {
    background-color: #0d1322 !important;
    border-bottom: 1px solid #1e293b !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .navbar-brand {
    color: #f8fafc !important;
}

[data-theme="dark"] .navbar-nav .nav-link {
    color: #94a3b8 !important;
}

[data-theme="dark"] .navbar-nav .nav-link:hover {
    color: #60a5fa !important;
    background-color: #1e293b;
}

[data-theme="dark"] .navbar-nav .nav-link.active {
    color: #f8fafc !important;
    background-color: #1e293b;
}

[data-theme="dark"] .navbar-collapse {
    background: #0d1322 !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .btn-clean-lang,
[data-theme="dark"] .btn-clean-theme {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .btn-clean-lang:hover,
[data-theme="dark"] .btn-clean-lang:focus,
[data-theme="dark"] .btn-clean-lang.show,
[data-theme="dark"] .btn-clean-theme:hover,
[data-theme="dark"] .btn-clean-theme:focus {
    background: #253349 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .btn-clean-lang .lang-code {
    color: #f8fafc !important;
}

[data-theme="dark"] .dropdown-menu-lang {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7) !important;
}

[data-theme="dark"] .dropdown-menu-lang .dropdown-item {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .dropdown-menu-lang .dropdown-item:hover {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .dropdown-menu-lang .dropdown-item.active {
    background-color: #1e3a8a !important;
    color: #93c5fd !important;
}

[data-theme="dark"] .dropdown-menu-lang .dropdown-item .badge {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .custom-mobile-toggler {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .custom-mobile-toggler .toggler-icon-bar {
    background-color: #f8fafc !important;
}

/* --------------------------------------------------------------------------
   11. ACCORDIONS & FAQ BLOCKS
   -------------------------------------------------------------------------- */
[data-theme="dark"] .accordion-item {
    background-color: #111827 !important;
    border-color: #1e293b !important;
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .accordion-item:hover {
    border-color: #334155 !important;
}

[data-theme="dark"] .accordion-button {
    background-color: #111827 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: #162032 !important;
    color: #60a5fa !important;
    border-bottom: 1px solid #1e293b !important;
}

[data-theme="dark"] .accordion-button::after {
    filter: invert(1) brightness(1.5);
}

[data-theme="dark"] .accordion-body {
    background-color: #111827 !important;
    color: #cbd5e1 !important;
}

/* --------------------------------------------------------------------------
   12. FORMS & CONTACT PAGE CONTROLS
   -------------------------------------------------------------------------- */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] textarea.form-control {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] textarea.form-control:focus {
    background-color: #0f172a !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25) !important;
}

[data-theme="dark"] .form-control::placeholder {
    color: #64748b !important;
}

[data-theme="dark"] .form-label {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .alert-success {
    background-color: rgba(34, 197, 94, 0.15) !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
    color: #86efac !important;
}

[data-theme="dark"] .alert-danger {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
}

[data-theme="dark"] .alert-warning {
    background-color: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: #fde047 !important;
}

[data-theme="dark"] .alert-info {
    background-color: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #93c5fd !important;
}

[data-theme="dark"] .btn-outline-secondary {
    color: #cbd5e1 !important;
    border-color: #334155 !important;
    background-color: transparent !important;
}

[data-theme="dark"] .btn-outline-secondary:hover {
    color: #ffffff !important;
    border-color: #60a5fa !important;
    background-color: #1e293b !important;
}

[data-theme="dark"] .btn-dark {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

/* --------------------------------------------------------------------------
   13. BADGES & PILLS
   -------------------------------------------------------------------------- */
[data-theme="dark"] .badge.bg-light,
[data-theme="dark"] .badge.bg-light.text-dark,
[data-theme="dark"] .badge.bg-light.text-muted,
[data-theme="dark"] .badge.border {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .section-eyebrow {
    background: rgba(37, 99, 235, 0.18) !important;
    color: #93c5fd !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
}

[data-theme="dark"] .platform-pill-btn {
    background: #111827 !important;
    border-color: #1e293b !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .platform-pill-btn:hover {
    background: #1e293b !important;
    border-color: #3b82f6 !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .platform-pill-btn i {
    color: #60a5fa !important;
}

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
[data-theme="dark"] .main-footer {
    background-color: #0b0f19 !important;
    border-top: 1px solid #1e293b !important;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4) !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .footer-brand-text {
    color: #f8fafc !important;
}

[data-theme="dark"] .footer-heading {
    color: #f8fafc !important;
}

[data-theme="dark"] .footer-links a {
    color: #94a3b8 !important;
}

[data-theme="dark"] .footer-links a:hover {
    color: #60a5fa !important;
}

[data-theme="dark"] .footer-divider {
    border-color: #1e293b !important;
}

[data-theme="dark"] .footer-copy {
    color: #94a3b8 !important;
}

[data-theme="dark"] .footer-copy strong {
    color: #f8fafc !important;
}

[data-theme="dark"] .footer-disclaimer {
    color: #64748b !important;
}

[data-theme="dark"] .social-btn {
    background: #111827 !important;
    border-color: #1e293b !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .social-btn:hover {
    background: #1e293b !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   15. ACCESSIBILITY COMPLIANCE (High-Contrast Links & Warnings)
   -------------------------------------------------------------------------- */
[data-theme="dark"] .article-content p a:not(.btn):not(.btn-cta-download):not(.platform-pill-btn):not(.btn-regional-download),
[data-theme="dark"] .article-content li a:not(.btn):not(.btn-cta-download):not(.platform-pill-btn):not(.btn-regional-download),
[data-theme="dark"] .article-content td a:not(.btn):not(.btn-cta-download):not(.platform-pill-btn):not(.btn-regional-download),
[data-theme="dark"] .main-content-card p a:not(.btn):not(.btn-cta-download):not(.platform-pill-btn):not(.btn-regional-download),
[data-theme="dark"] .main-content-card li a:not(.btn):not(.btn-cta-download):not(.platform-pill-btn):not(.btn-regional-download) {
    color: #60a5fa !important;
    text-decoration-color: rgba(96, 165, 250, 0.45) !important;
}

[data-theme="dark"] .article-content p a:not(.btn):not(.btn-cta-download):not(.platform-pill-btn):not(.btn-regional-download):hover,
[data-theme="dark"] .article-content li a:not(.btn):not(.btn-cta-download):not(.platform-pill-btn):not(.btn-regional-download):hover,
[data-theme="dark"] .article-content td a:not(.btn):not(.btn-cta-download):not(.platform-pill-btn):not(.btn-regional-download):hover,
[data-theme="dark"] .main-content-card p a:not(.btn):not(.btn-cta-download):not(.platform-pill-btn):not(.btn-regional-download):hover,
[data-theme="dark"] .main-content-card li a:not(.btn):not(.btn-cta-download):not(.platform-pill-btn):not(.btn-regional-download):hover {
    color: #93c5fd !important;
    text-decoration-color: #93c5fd !important;
}

[data-theme="dark"] .text-warning,
[data-theme="dark"] .text-warning-emphasis,
[data-theme="dark"] h1.text-warning,
[data-theme="dark"] h2.text-warning,
[data-theme="dark"] h3.text-warning,
[data-theme="dark"] h4.text-warning,
[data-theme="dark"] h5.text-warning,
[data-theme="dark"] h6.text-warning {
    color: #f59e0b !important;
}

/* --------------------------------------------------------------------------
   16. DECLARATIVE CSS & SVG ICON TOGGLE (Instant Display Switch, Zero Layout Shift)
   -------------------------------------------------------------------------- */
.theme-icon-dark {
    display: inline-block;
    color: #1e293b;
    stroke: #1e293b;
    vertical-align: middle;
}
.theme-icon-light {
    display: none;
    vertical-align: middle;
}

[data-theme="dark"] .theme-icon-dark {
    display: none !important;
}

[data-theme="dark"] .theme-icon-light {
    display: inline-block !important;
    color: #f59e0b !important;
    stroke: #f59e0b !important;
}

/* Ensure SVG icon sizing inside button */
.btn-clean-theme svg {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Hide fallback fontawesome if SVG is present and loaded */
.btn-clean-theme svg ~ i {
    display: none !important;
}

/* Dark Mode Overrides for Cloud Mirror Hub */
[data-theme="dark"] .mirror-card {
    background: #111827 !important;
    border-color: #1e293b !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .mirror-card:hover {
    border-color: #3b82f6 !important;
    background: #131d31 !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .mirror-card-primary {
    border-color: #1e3a8a !important;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
}

[data-theme="dark"] .mirror-name {
    color: #f8fafc !important;
}

[data-theme="dark"] .mirror-desc {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .article-content .mirror-hub-title,
[data-theme="dark"] .mirror-hub-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .mirror-hub-badge {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .mirror-header-icon {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .btn-mirror-secondary {
    background: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .mirror-card:hover .btn-mirror-secondary {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

[data-theme="dark"] .mirror-pill-recommended {
    background: rgba(37, 99, 235, 0.25) !important;
    color: #93c5fd !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}

[data-theme="dark"] .mirror-pill-verified {
    background: rgba(217, 119, 6, 0.25) !important;
    color: #fde047 !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
}

[data-theme="dark"] .mirror-pill-fast {
    background: rgba(220, 38, 38, 0.25) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}

[data-theme="dark"] .mirror-pill-telegram {
    background: rgba(14, 165, 233, 0.25) !important;
    color: #7dd3fc !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
}

[data-theme="dark"] .checksum-container {
    background: #0f172a !important;
    border-color: #1e293b !important;
}

[data-theme="dark"] .trust-badge-chip {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

/* --------------------------------------------------------------------------
   17. BUTTERY SMOOTH HARDWARE-ACCELERATED TRANSITIONS (Zero Jank)
   -------------------------------------------------------------------------- */
body.site-body,
.main-header,
.main-content-card,
.step-workflow-card,
.feature-card-modern,
.feature-card-kadence,
.kadence-pro-col,
.kadence-con-col,
.country-app-card,
.toc-box,
.btn-clean-lang,
.btn-clean-theme,
.accordion-item,
.main-footer {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}


