
        /* Existing CSS Variables & Base Styles provided by user */
        :root { 
            --accent: #198754; 
            --accent-dark: #157347;
            --accent-light: #e8f5e9;
            --bg: #f4f7f9; 
            --gray: #495057; 
            --dark-blue: #0f172a;
            --card-shadow: 0 10px 40px rgba(0,0,0,0.06);
        }
        
        body { 
            background-color: var(--bg); 
            font-family: 'Poppins', 'Tajawal', 'Segoe UI', Tahoma, sans-serif; 
            display: flex; 
            flex-direction: column; 
            min-height: 100vh; 
            margin: 0; 
            padding: 0; 
            box-sizing: border-box; 
            color: #212529;
            scroll-behavior: smooth;
        }

        .main-content { 
            flex: 1; 
            display: flex; 
            flex-direction: column; 
            justify-content: flex-start; 
            align-items: center; 
            margin-top: 85px !important;
            width: 100%;
            max-width: 950px;
            margin-left: auto;
            margin-right: auto;
            padding: 0 15px 40px 15px;
            box-sizing: border-box;
            gap: 25px;
        }

        .card { 
            background: white; 
            padding: 40px; 
            border-radius: 25px; 
            box-shadow: var(--card-shadow); 
            width: 100%; 
            max-width: 950px; 
            text-align: left; 
            border-top: 6px solid var(--accent); 
            box-sizing: border-box; 
            position: relative; 
        }

        @media (max-width: 600px) {
            .card {
                padding: 25px 20px;
                border-radius: 20px;
            }
        }

        /* Sticky Horizontal Table of Contents Bar */
        .doc-toc-sticky {
            position: sticky;
            top: 70px;
            z-index: 950;
            width: 100%;
            max-width: 950px;
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid #e2e8f0;
            border-radius: 18px;
            padding: 8px 14px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.05);
            margin-bottom: 10px;
            box-sizing: border-box;
        }

        .toc-scroll-wrapper {
            display: flex;
            align-items: center;
            gap: 8px;
            overflow-x: auto;
            white-space: nowrap;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .toc-scroll-wrapper::-webkit-scrollbar {
            display: none;
        }

        .toc-badge {
            font-size: 13px;
            font-weight: 700;
            color: var(--accent);
            display: flex;
            align-items: center;
            gap: 6px;
            padding-right: 10px;
            border-right: 2px solid #e2e8f0;
            flex-shrink: 0;
        }

        .toc-pill {
            display: inline-flex;
            align-items: center;
            padding: 7px 14px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
            color: #4b5563;
            text-decoration: none;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .toc-pill:hover {
            background: var(--accent-light);
            color: var(--accent-dark);
        }

        .toc-pill.active {
            background: var(--accent);
            color: white;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(25, 135, 84, 0.25);
        }

        /* Documentation Cards Stack */
        .doc-stack {
            display: flex;
            flex-direction: column;
            gap: 30px;
            width: 100%;
            max-width: 950px;
        }

        .doc-card {
            text-align: left;
            scroll-margin-top: 90px;
        }

        .badge-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--accent-light);
            color: var(--accent-dark);
            padding: 6px 14px;
            border-radius: 30px;
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .section-title {
            font-size: 26px;
            font-weight: 700;
            color: #0f172a;
            margin: 0 0 12px 0;
            line-height: 1.35;
        }

        .section-subtitle {
            font-size: 15px;
            color: #475569;
            line-height: 1.6;
            margin-bottom: 25px;
        }

        /* Hero Action Row */
        .hero-actions {
            display: flex;
            gap: 15px;
            margin-top: 25px;
            flex-wrap: wrap;
        }

        .hero-btn-primary {
            background-color: var(--accent);
            color: white !important;
            padding: 14px 28px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 16px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(25, 135, 84, 0.25);
            border: none;
            cursor: pointer;
        }

        .hero-btn-primary:hover {
            background-color: var(--accent-dark);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(25, 135, 84, 0.35);
        }

        .hero-btn-secondary {
            background-color: #f1f5f9;
            color: #334155 !important;
            padding: 14px 28px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 16px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            border: 1px solid #cbd5e1;
            cursor: pointer;
        }

        .hero-btn-secondary:hover {
            background-color: #e2e8f0;
            color: #0f172a !important;
            transform: translateY(-2px);
        }

        /* Excel Illustration Container */
        .excel-illustration {
            margin-top: 30px;
            background: #ffffff;
            border: 2px solid #e2e8f0;
            border-radius: 18px;
            overflow: hidden;
            box-shadow: 0 15px 35px rgba(0,0,0,0.08);
        }

        .excel-ribbon {
            background: #107c41; /* Microsoft Excel Green */
            color: white;
            padding: 10px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 13px;
            font-weight: 600;
        }

        .excel-ribbon-tabs {
            display: flex;
            gap: 18px;
            opacity: 0.9;
        }

        .excel-formula-bar {
            background: #f8fafc;
            border-bottom: 1px solid #e2e8f0;
            padding: 8px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            font-family: 'Fira Code', monospace;
            font-size: 13px;
            color: #334155;
        }

        .excel-formula-fx {
            font-weight: bold;
            color: #107c41;
            font-style: italic;
        }

        .excel-grid {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }

        .excel-grid th {
            background: #f1f5f9;
            color: #64748b;
            font-weight: 600;
            padding: 8px 12px;
            border: 1px solid #e2e8f0;
            text-align: center;
        }

        .excel-grid td {
            padding: 12px 16px;
            border: 1px solid #e2e8f0;
            color: #1e293b;
        }

        .excel-cell-active {
            background: #e8f5e9;
            border: 2px solid #107c41 !important;
            font-weight: 600;
            color: #0d5a2d !important;
        }

        /* Feature Cards Grid (Pourquoi une API) */
        .benefits-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 18px;
            margin-top: 20px;
        }

        .benefit-card {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 20px;
            transition: all 0.3s ease;
        }

        .benefit-card:hover {
            border-color: var(--accent);
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(25, 135, 84, 0.08);
            background: #ffffff;
        }

        .benefit-icon {
            width: 36px;
            height: 36px;
            background: var(--accent-light);
            color: var(--accent);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 18px;
            margin-bottom: 12px;
        }

        .benefit-title {
            font-size: 16px;
            font-weight: 700;
            color: #1e293b;
            margin: 0 0 8px 0;
        }

        .benefit-desc {
            font-size: 13.5px;
            color: #64748b;
            margin: 0;
            line-height: 1.5;
        }

        /* Timeline 4 Steps */
        .timeline-container {
            display: flex;
            flex-direction: column;
            gap: 20px;
            position: relative;
            margin-top: 25px;
        }

        .timeline-step {
            display: flex;
            gap: 20px;
            align-items: flex-start;
            background: #f8fafc;
            border-radius: 16px;
            padding: 20px;
            border: 1px solid #e2e8f0;
            position: relative;
            transition: all 0.3s ease;
        }

        .timeline-step:hover {
            background: white;
            border-color: var(--accent);
            box-shadow: 0 8px 25px rgba(0,0,0,0.04);
        }

        .step-number {
            width: 44px;
            height: 44px;
            background: var(--accent);
            color: white;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: 700;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
        }

        .step-content h3 {
            margin: 0 0 6px 0;
            font-size: 17px;
            color: #0f172a;
        }

        .step-content p {
            margin: 0;
            font-size: 14px;
            color: #475569;
            line-height: 1.5;
        }

        .step-badge {
            display: inline-block;
            margin-top: 8px;
            background: #e2e8f0;
            color: #334155;
            padding: 4px 10px;
            border-radius: 6px;
            font-family: 'Fira Code', monospace;
            font-size: 12.5px;
        }

        /* Code Block Container */
        .code-box {
            background: #0f172a;
            border-radius: 16px;
            overflow: hidden;
            margin-top: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        }

        .code-header {
            background: #1e293b;
            padding: 10px 18px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #334155;
        }

        .code-tabs {
            display: flex;
            gap: 8px;
            overflow-x: auto;
        }

        .code-tab {
            background: transparent;
            border: none;
            color: #94a3b8;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .code-tab.active {
            background: #334155;
            color: #38bdf8;
            font-weight: 600;
        }

        .copy-code-btn {
            background: #334155;
            border: none;
            color: #e2e8f0;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 12.5px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s ease;
        }

        .copy-code-btn:hover {
            background: var(--accent);
            color: white;
        }

        pre {
            margin: 0;
            padding: 20px;
            overflow-x: auto;
            font-family: 'Fira Code', monospace;
            font-size: 13.5px;
            line-height: 1.6;
            color: #f8fafc;
        }

        .code-keyword { color: #f472b6; }
        .code-string { color: #a5f3fc; }
        .code-func { color: #38bdf8; }
        .code-comment { color: #64748b; font-style: italic; }

        /* Interactive Simulator Table */
        .sim-form {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 15px;
            background: #f8fafc;
            padding: 20px;
            border-radius: 16px;
            border: 1px solid #e2e8f0;
            margin-bottom: 20px;
        }

        .sim-field {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .sim-label {
            font-size: 13px;
            font-weight: 600;
            color: #334155;
        }

        .sim-input, .sim-select {
            padding: 10px 14px;
            border: 1px solid #cbd5e1;
            border-radius: 10px;
            font-size: 14px;
            outline: none;
            transition: all 0.2s;
        }

        .sim-input:focus, .sim-select:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.15);
        }

        /* Supported Languages Cards */
        .grid-languages {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            gap: 12px;
            margin-top: 15px;
        }

        .lang-card {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 12px;
            text-align: center;
            font-weight: 600;
            color: #1e293b;
            font-size: 14px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .lang-card:hover {
            background: white;
            border-color: var(--accent);
            color: var(--accent);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }

        /* Supported Currencies Chips */
        .currency-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 15px;
        }

        .currency-chip {
            background: white;
            border: 1px solid #cbd5e1;
            padding: 8px 16px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 14px;
            color: #334155;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s;
        }

        .currency-chip:hover {
            border-color: var(--accent);
            background: var(--accent-light);
            color: var(--accent-dark);
        }

        /* API Features Grid */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 18px;
            margin-top: 20px;
        }

        .feature-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 22px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.03);
            transition: all 0.3s ease;
        }

        .feature-card:hover {
            border-color: var(--accent);
            box-shadow: 0 10px 30px rgba(25, 135, 84, 0.1);
            transform: translateY(-3px);
        }

        .feature-icon-box {
            width: 42px;
            height: 42px;
            background: var(--accent-light);
            color: var(--accent);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            margin-bottom: 14px;
        }

        .feature-card h3 {
            margin: 0 0 8px 0;
            font-size: 17px;
            color: #0f172a;
        }

        .feature-card p {
            margin: 0;
            font-size: 13.5px;
            color: #64748b;
            line-height: 1.5;
        }

        /* FAQ Accordion */
        .faq-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 20px;
        }

        .faq-item {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 14px;
            overflow: hidden;
            transition: all 0.2s ease;
        }

        .faq-item[open] {
            background: white;
            border-color: var(--accent);
            box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        }

        .faq-summary {
            padding: 16px 20px;
            font-weight: 600;
            font-size: 15.5px;
            color: #1e293b;
            cursor: pointer;
            list-style: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            user-select: none;
        }

        .faq-summary::-webkit-details-marker {
            display: none;
        }

        .faq-icon {
            font-weight: bold;
            font-size: 18px;
            color: var(--accent);
            transition: transform 0.3s ease;
        }

        .faq-item[open] .faq-icon {
            transform: rotate(45deg);
        }

        .faq-content {
            padding: 0 20px 20px 20px;
            color: #475569;
            font-size: 14.5px;
            line-height: 1.6;
            border-top: 1px dashed #e2e8f0;
            padding-top: 14px;
        }

        /* CTA Section Card */
        .cta-card {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            color: white;
            border-top: 6px solid var(--accent);
            text-align: center;
            padding: 50px 30px;
        }

        .cta-card h2 {
            color: white;
            font-size: 28px;
            margin-bottom: 12px;
        }

        .cta-card p {
            color: #cbd5e1;
            font-size: 16px;
            max-width: 600px;
            margin: 0 auto 30px auto;
        }

        /* Modal Styles */
        .api-modal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.7);
            backdrop-filter: blur(4px);
            justify-content: center;
            align-items: center;
        }

        .api-modal-content {
            background: white;
            border-radius: 20px;
            padding: 35px;
            max-width: 500px;
            width: 90%;
            position: relative;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            animation: modalFadeIn 0.3s ease;
        }

        @keyframes modalFadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .modal-close {
            position: absolute;
            right: 20px;
            top: 20px;
            font-size: 24px;
            cursor: pointer;
            color: #64748b;
            border: none;
            background: none;
        }

        /* Top Navigation Header Styling */
        .top-navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            width: 100%;
            height: 65px;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 3px solid var(--accent);
            border-bottom-left-radius: 18px;
            border-bottom-right-radius: 18px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
            z-index: 1000;
            box-sizing: border-box;
        }

        .nav-container {
            max-width: 1100px;
            margin: 0 auto;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            box-sizing: border-box;
        }

        .nav-center {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 14px;
            font-weight: 500;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .nav-links a {
            color: #334155;
            text-decoration: none;
            padding: 8px 14px;
            border-radius: 10px;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .nav-links a:hover {
            color: var(--accent-dark);
            background-color: var(--accent-light);
        }

        .nav-links a.active-link {
            color: var(--accent);
            font-weight: 600;
            background-color: var(--accent-light);
        }

        /* Dropdowns */
        .dropdown-item {
            position: relative;
            display: inline-block;
        }

        .dropdown-btn {
            background: transparent;
            border: none;
            font-size: 14px;
            font-weight: 500;
            color: #334155;
            padding: 8px 14px;
            border-radius: 10px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-family: inherit;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .dropdown-btn:hover, .dropdown-btn[aria-expanded="true"] {
            color: var(--accent-dark);
            background-color: var(--accent-light);
        }

        .dropdown-arrow {
            transition: transform 0.2s ease;
        }

        .dropdown-btn[aria-expanded="true"] .dropdown-arrow {
            transform: rotate(180deg);
        }

        .dropdown-menu {
            display: none;
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            background: white;
            min-width: 260px;
            border-radius: 14px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
            padding: 8px 0;
            z-index: 1050;
            box-sizing: border-box;
        }

        .dropdown-menu.show {
            display: flex;
            flex-direction: column;
            animation: dropdownFadeIn 0.2s ease forwards;
        }

        @keyframes dropdownFadeIn {
            from { opacity: 0; transform: translateY(-8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .dropdown-link {
            display: block;
            padding: 10px 18px;
            color: #334155;
            text-decoration: none;
            font-size: 13.5px;
            transition: all 0.15s ease;
            text-align: left;
            white-space: normal;
        }

        .dropdown-link:hover {
            background-color: var(--accent-light);
            color: var(--accent-dark);
        }

        .dropdown-link.active-link {
            font-weight: 600;
            color: var(--accent);
            background-color: var(--accent-light);
        }

        /* Mobile Menu Hamburger */
        .menu-icon {
            display: none;
            cursor: pointer;
            flex-direction: column;
            gap: 5px;
            padding: 8px;
            border-radius: 8px;
        }

        .menu-icon span {
            display: block;
            width: 22px;
            height: 2.5px;
            background-color: #334155;
            border-radius: 3px;
            transition: all 0.2s ease;
        }

        @media (max-width: 860px) {
            .menu-icon {
                display: flex;
            }

            .nav-links {
                display: none;
                position: absolute;
                top: 65px;
                left: 0;
                right: 0;
                background: white;
                flex-direction: column;
                align-items: stretch;
                padding: 16px 20px;
                border-bottom: 1px solid #e2e8f0;
                box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
                gap: 8px;
            }

            .nav-links.active {
                display: flex;
            }

            .dropdown-menu {
                position: static;
                box-shadow: none;
                border: 1px solid #f1f5f9;
                background: #f8fafc;
                margin-top: 6px;
                width: 100%;
            }
        }

        /* Footer & Rating Styles */
        .rating-section {
            width: 100%;
            max-width: 950px;
            margin: 40px auto 30px auto;
            padding: 30px 25px;
            background: white;
            border-radius: 22px;
            box-shadow: var(--card-shadow);
            text-align: center;
            border-top: 5px solid var(--accent);
            box-sizing: border-box;
        }

        .rating-section h2 {
            font-size: 22px;
            font-weight: 700;
            color: #0f172a;
            margin: 0 0 6px 0;
        }

        .rating-subtitle {
            font-size: 14px;
            color: #64748b;
            margin: 0 0 16px 0;
        }

        #rating-widget {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        .rating-stars {
            display: flex;
            justify-content: center;
            gap: 8px;
            font-size: 32px;
            cursor: pointer;
            color: #cbd5e1;
            user-select: none;
        }

        .rating-star:hover, .rating-star.active {
            color: #f59e0b;
        }

        .rating-summary {
            font-size: 14px;
            font-weight: 600;
            color: #334155;
        }

        .rating-message {
            display: none;
            font-size: 14px;
            color: var(--accent);
            font-weight: 600;
        }

        footer {
            width: 100%;
            background: var(--dark-blue);
            color: #94a3b8;
            text-align: center;
            padding: 24px 20px;
            margin-top: auto;
            font-size: 14px;
            box-sizing: border-box;
            border-top: 1px solid #1e293b;
        }

        footer p {
            margin: 0;
            color: #cbd5e1;
            font-weight: 500;
        }

        /* Generic Modal Dialogs (About, Privacy, Contact) */
        .modal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.6);
            backdrop-filter: blur(4px);
        }

        .modal-content {
            background-color: white;
            margin: 10% auto;
            padding: 30px;
            border-radius: 20px;
            width: 90%;
            max-width: 550px;
            position: relative;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
            box-sizing: border-box;
        }

        .close-btn {
            position: absolute;
            right: 20px;
            top: 20px;
            font-size: 24px;
            font-weight: bold;
            color: #64748b;
            cursor: pointer;
        }

        /* Toast Popup */
        #toast {
            visibility: hidden;
            min-width: 250px;
            background-color: #0f172a;
            color: #fff;
            text-align: center;
            border-radius: 12px;
            padding: 14px 24px;
            position: fixed;
            z-index: 11000;
            left: 50%;
            bottom: 30px;
            transform: translateX(-50%);
            font-size: 14px;
            font-weight: 500;
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
            opacity: 0;
            transition: opacity 0.3s, bottom 0.3s;
        }

        #toast.show {
            visibility: visible;
            opacity: 1;
            bottom: 40px;
        }
