
:root {
    --primary: #FACC15; /* Renault Yellow */
    --primary-light: #FDE047; /* Bright Yellow */
    --secondary: #FDE047;
    --accent: rgba(255, 255, 255, 0.08);

    --bg-main: #121212; /* Anthracite grey background */
    --bg-alt: #0D0D0D; /* Deep black background */
    --card-bg: #1C1C1E; /* Card background */

    --text-primary: #FFFFFF; /* White */
    --text-secondary: #E2E8F0; /* Light gray */

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.25s ease-out;
    --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
}

.dark-mode {
    --primary: #FDE047; /* Bright Yellow */
    --primary-light: #FACC15; /* Renault Yellow */
    --secondary: #FACC15;
    --accent: rgba(255, 255, 255, 0.12);

    --bg-main: #0D0D0D; /* Deep black background */
    --bg-alt: #121212; /* Anthracite grey background */
    --card-bg: #181818; /* Card background */

    --text-primary: #FFFFFF;
    --text-secondary: #E2E8F0;

    --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, .section-header h2, .hero-content h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary) !important;
    line-height: 1.2;
}

h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary) !important;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; margin-bottom: 1.5rem; letter-spacing: -1px; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
p { color: var(--text-secondary); margin-bottom: 1.25rem; font-size: 1.1rem; }


.navbar {
    position: fixed;
    top: 0; width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--accent);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0px;
    color: var(--primary);
}
.logo-accent { color: var(--secondary); margin-right: 2px;}

.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--secondary);
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: var(--bg-alt);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    flex-shrink: 0;
    box-shadow: var(--shadow-subtle);
}
.theme-toggle-btn:hover {
    transform: scale(1.05);
    border-color: rgba(0, 0, 0, 0.45);
}
body.dark-mode .theme-toggle-btn {
    border-color: rgba(255, 255, 255, 0.25);
    background: var(--bg-alt);
    color: var(--text-primary);
}
body.dark-mode .theme-toggle-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.2rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: #121212 !important;
}
.btn-primary:hover {
    background: var(--primary-light);
    color: #121212 !important;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--primary);
}
.btn-secondary:hover {
    background: rgba(245, 158, 11, 0.1);
    color: var(--primary);
    border-color: var(--primary-light);
}

.btn-accent {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-accent:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}



main { padding-top: 80px; }

.page-section {
    display: none;
    min-height: calc(100vh - 80px);
    padding: 5rem 5%;
    animation: fadeIn 0.4s ease-out;
}
.page-section.active-page { display: block; }

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}
.section-header h2 { margin-bottom: 0.5rem; }


.bg-light { background-color: var(--bg-alt); border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }


#home.active-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 5rem;
    padding: 6rem 5% 4rem 5%;
}
.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    width: 100%;
}
.hero-content { flex: 1; max-width: 650px; }
.hero-content h1 {
    font-size: 3.75rem;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}
.hero-content h1 strong { color: var(--secondary); font-weight: 855; }
.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}
.cta-group { display: flex; gap: 1.25rem; margin-top: 2rem; }
.hero-visual { flex: 0 0 380px; width: 100%; }
.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 2420 / 1728;
    height: auto;
    background: url('../uploads/layout/photo_acceuil_real.png') top center/cover no-repeat;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.02);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}
.hero-image-placeholder:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.2);
}


.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--accent);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
}
.pricing-card:hover {
    box-shadow: var(--shadow-card);
    border-color: #CBD5E1;
    transform: translateY(-4px);
}
.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.02);
}
.pricing-card.featured:hover { transform: scale(1.02) translateY(-4px); }

.badge {
    position: absolute !important;
    top: -12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: var(--primary);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-header h3 { color: var(--primary-light); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem;}
.pricing-header .price {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
    line-height: 1;
}
.pricing-header .price span { font-size: 1rem; font-weight: 500; color: var(--text-secondary); }

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    flex-grow: 1;
    border-top: 1px solid var(--accent);
    padding-top: 1.5rem;
}
.pricing-features li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li::before {
    content: "✓";
    color: var(--secondary);
    font-weight: 800;
}

.pricing-card button { width: 100%; }


.car-viewer-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    background-color: transparent;
    cursor: ew-resize;
    user-select: none;
    aspect-ratio: 660 / 440;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: none;
}
.car-viewer-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.loading-overlay {
    position: absolute;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 1.2rem;
}
.drag-hint {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.color-picker {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
}
.color-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.color-btn.active { box-shadow: 0 0 0 2px var(--primary); transform: scale(1.1); }


.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.feature-card {
    background: var(--bg-alt);
    border: 1px solid var(--accent);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    transition: var(--transition);
    text-align: left;
    box-shadow: var(--shadow-subtle);
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: var(--shadow-card);
}
.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(75, 85, 99, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}
.feature-icon {
    width: 30px;
    height: 30px;
}
.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}



.indicator-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    align-items: center;
    background: var(--card-bg);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--accent);
    box-shadow: var(--shadow-subtle);
    cursor: pointer;
    transition: var(--transition);
}
.indicator-card:hover { border-color: var(--secondary); }
.indicator-icon-wrapper {
    width: 45px; height: 45px;
    background: #334155;
    border-radius: 8px;
    display: flex; justify-content: center; align-items: center;
    flex-shrink: 0;
}
.indicator-icon {
    width: 35px; height: 35px;
    object-fit: contain;
}
.indicator-text {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    text-align: left;
}
.indicator-desc {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 1rem;
    border-top: 1px solid var(--accent);
    padding-top: 0.75rem;
}


.location-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}
.info-block {
    margin-bottom: 2.5rem;
}
.info-block h3 { color: var(--primary); margin-bottom: 0.5rem; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.info-block p { font-size: 1rem; color: var(--text-secondary); line-height: 1.8;}

.map-grid {
    display: grid;
    grid-template-rows: 250px 300px;
    gap: 1.5rem;
}
.map-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--accent);
    box-shadow: var(--shadow-subtle);
}
.map-wrapper iframe { width: 100%; height: 100%; border: 0;}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    #home.active-page { flex-direction: column; text-align: center; }
    .location-container { grid-template-columns: 1fr; }
    h1 { font-size: 2.2rem; }
    .cta-group { justify-content: center; flex-wrap: wrap; }


    .navbar {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 1.25rem;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    .theme-switch-wrapper {
        margin-left: 0 !important;
    }
    .logo-img {
        height: 36px !important;
    }


    .hero-visual {
        width: 100%;
    }
    .hero-image-placeholder {
        width: 100%;
        min-height: 250px;
        height: auto;
    }
    .hero-container {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .cta-group {
        flex-direction: column;
        width: 100%;
    }
    .cta-group .btn {
        width: 100%;
    }
    .pricing-card {
        padding: 1.5rem;
    }
    .formation-explorer {
        padding: 1.5rem 1rem !important;
    }
}


.theme-switch-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 1.5rem;
    padding: 2px 0;
}

.theme-switch-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.ios-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.ios-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ios-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    transition: .3s ease;
    border-radius: 24px;
}

.ios-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .ios-slider:before {
    transform: translateX(20px);
}

body.dark-mode {
    --bg-main: #0D0D0D;
    --bg-alt: #121212;
    --card-bg: #181818;
    --text-primary: #FFFFFF;
    --text-secondary: #E2E8F0;
    --accent: rgba(255, 255, 255, 0.08);
    --primary: #FDE047;
    --primary-light: #FACC15;
    --secondary: #FACC15;

    background-image: radial-gradient(circle at top, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    background-color: var(--bg-main);
    background-attachment: fixed;
}

body.dark-mode .ios-slider {
    background-color: #3A3A3C;
}

body.dark-mode .indicator-icon-wrapper {
    width: 45px; height: 45px;
    background: #334155;
    border-radius: 8px;
    display: flex; justify-content: center; align-items: center;
    flex-shrink: 0;
}

body.dark-mode .navbar {
    background: rgba(28, 28, 30, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .pricing-card,
body.dark-mode .indicator-card,
body.dark-mode .code-card,
body.dark-mode .code-price-card,
body.dark-mode .team-card,
body.dark-mode .formation-explorer,
body.dark-mode .explorer-container {
    background: #1C1C1E;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}
body.dark-mode .pricing-card:hover,
body.dark-mode .indicator-card:hover,
body.dark-mode .code-card:hover,
body.dark-mode .code-price-card:hover,
body.dark-mode .team-card:hover,
body.dark-mode .formation-explorer:hover,
body.dark-mode .explorer-container:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}
body.dark-mode .btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
body.dark-mode .btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1) !important;
    border-color: var(--primary-light) !important;
    color: var(--primary-light) !important;
}
body.dark-mode .btn-primary {
    background: var(--primary);
    color: #121212 !important;
}
body.dark-mode .btn-primary:hover {
    background: var(--primary-light);
    color: #121212 !important;
}
body.dark-mode .badge {
    background: var(--secondary);
    color: white;
}
body.dark-mode .modal-icon-container {
    background: #1C1C1E;
}
body.dark-mode .theme-toggle-btn {
    background: var(--bg-alt);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.25);
}
body.dark-mode .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.6);
}


.indicator-desc {
    display: none;
}




.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--bg-main);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.modal-overlay.show .modal-content {
    transform: translateY(0);
}
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #94A3B8;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close-btn:hover {
    color: var(--text-primary);
}
.modal-icon-container {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem auto;
}
.modal-icon-container img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}
#modal-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    padding-right: 30px;
    padding-left: 30px;
}
#modal-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

body.dark-mode .modal-content {
    background: var(--bg-alt);
}
body.dark-mode #modal-title {
    color: #F8FAFC;
}
body.dark-mode .modal-close-btn {
    color: #475569;
}
body.dark-mode .modal-close-btn:hover {
    color: #F8FAFC;
}



.manual-chapter-card {
    text-decoration: none;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--accent);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.manual-chapter-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}
.chapter-title {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.chapter-link-text {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
}
body.dark-mode .manual-chapter-card {
    background: var(--bg-alt);
}
body.dark-mode .manual-chapter-card:hover {
    border-color: #475569;
}
body.dark-mode .chapter-title {
    color: #F8FAFC;
}


.explorer-container {
    width: 100%;
    max-width: 1400px;
    margin: 3rem auto 0 auto;
    background: var(--bg-alt);
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
}

.explorer-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}



.explorer-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.5rem 0.25rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.explorer-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: var(--transition);
}

.explorer-tab-btn:hover {
    color: var(--secondary);
}

.explorer-tab-btn.active {
    color: var(--secondary);
}

.explorer-tab-btn.active::after {
    width: 100%;
}

.explorer-actions {
    display: flex;
    gap: 1rem;
}

.explorer-action-btn {
    background: var(--bg-main);
    border: 1px solid var(--accent);
    color: var(--text-secondary);
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.explorer-action-btn:hover {
    background: var(--bg-alt);
    border-color: #CBD5E1;
    color: var(--secondary);
}

.explorer-search-box {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
}

.explorer-search-input {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 2.75rem;
    border: 1px solid var(--accent);
    background: var(--bg-alt);
    color: var(--text-primary);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.explorer-search-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(75, 85, 99, 0.15);
}

.explorer-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}


.manual-chapter-card.technical-card {
    border-left: 4px solid var(--primary);
}

.manual-chapter-card.technical-card:hover {
    border-color: var(--primary-light);
}

.notice-badge {
    align-self: flex-start;
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.notice-ref {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-alt);
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.notice-summary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1rem;
}


.explorer-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--accent);
}

.pagination-btn {
    background: var(--card-bg);
    border: 1px solid var(--accent);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.pagination-btn:hover {
    background: var(--bg-alt);
    border-color: #CBD5E1;
    color: var(--secondary);
}

.pagination-btn.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}


body.dark-mode .explorer-container {
    background: var(--bg-alt);
}

body.dark-mode .explorer-action-btn,
body.dark-mode .explorer-search-input,
body.dark-mode .pagination-btn {
    background: var(--bg-main);
    border-color: var(--accent);
    color: var(--text-primary);
}

body.dark-mode .explorer-action-btn:hover,
body.dark-mode .pagination-btn:hover {
    background: #2C2C2E;
    color: var(--secondary);
}

body.dark-mode .notice-badge {
    background: rgba(250, 204, 21, 0.15);
    color: #FDE047;
}

body.dark-mode .notice-ref {
    background: var(--bg-main);
    color: #E2E8F0;
}

body.dark-mode .manual-chapter-card.technical-card {
    border-left-color: var(--primary);
}

.explorer-view-div {
    width: 100%;
    animation: fadeIn 0.3s ease-out;
}


.interactive-explorer-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .interactive-explorer-layout {
        grid-template-columns: 1fr;
    }
}


.explorer-menu-col {
    background: var(--bg-main);
    border: 1px solid var(--accent);
    border-radius: 16px;
    height: 480px;
    overflow-y: auto;
    box-shadow: var(--shadow-subtle);
    padding: 0.85rem;
}

body.dark-mode .explorer-menu-col {
    background: var(--bg-alt);
}


.explorer-menu-col::-webkit-scrollbar {
    width: 6px;
}
.explorer-menu-col::-webkit-scrollbar-track {
    background: transparent;
}
.explorer-menu-col::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.explorer-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


.explorer-menu-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: var(--text-primary);
}

body.dark-mode .explorer-menu-item {
    background: transparent;
}

.explorer-menu-item:hover {
    background: rgba(75, 85, 99, 0.05);
    border-color: rgba(75, 85, 99, 0.1);
    transform: translateX(4px);
}

body.dark-mode .explorer-menu-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.explorer-menu-item.active-menu-item {
    background: var(--secondary) !important;
    color: white !important;
    border-color: var(--secondary);
    box-shadow: 0 4px 12px rgba(75, 85, 99, 0.25);
}

body.dark-mode .explorer-menu-item.active-menu-item {
    background: var(--secondary) !important;
    color: white !important;
    box-shadow: 0 4px 20px rgba(75, 85, 99, 0.4);
}

.menu-item-icon {
    width: 28px;
    height: 28px;
    background: rgba(75, 85, 99, 0.08);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.explorer-menu-item:hover .menu-item-icon {
    background: var(--secondary);
    color: white;
}

.menu-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

.menu-item-arrow {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: transform 0.25s ease;
}

.explorer-menu-item:hover .menu-item-arrow {
    color: var(--secondary);
    transform: translateX(2px);
}


.explorer-viewer-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
}

.explorer-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    border: 1px solid var(--accent);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
}

body.dark-mode .explorer-image-wrapper {
    background: var(--bg-alt);
}

.explorer-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
}


.hotspots-group {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}


.hotspot-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #F5DA14;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 10;
    padding: 0;
    margin: 0;
    outline: none;
}

.hotspot-dot::before {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border: 2px solid #F5DA14;
    border-radius: 50%;
    opacity: 0;
    animation: hotspotPulse 2s infinite;
}

@keyframes hotspotPulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

.hotspot-dot:hover {
    transform: scale(1.3);
    background: var(--secondary);
    border-color: white;
}

.hotspot-dot:hover::before {
    border-color: var(--secondary);
}

.hotspot-dot.active-hotspot {
    background: var(--secondary);
    transform: scale(1.4);
    box-shadow: 0 0 15px rgba(75, 85, 99, 0.6);
}


.explorer-slider-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.slider-arrow {
    background: var(--card-bg);
    border: 1px solid var(--accent);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: var(--shadow-subtle);
    transition: all 0.25s ease;
    outline: none;
}

body.dark-mode .slider-arrow {
    background: #2D2D2D;
}

.slider-arrow:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
}

.slider-dot.active {
    background: var(--secondary);
    transform: scale(1.2);
}


.hotspot-tooltip {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    z-index: 100;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -130%);
    transition: all 0.2s ease-out;
}


#view-pdf {
    width: 100%;
    margin-top: 1rem;
}

.pdf-iframe {
    width: 100%;
    height: 750px;
    border: 1px solid var(--accent);
    border-radius: 12px;
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

body.dark-mode .pdf-iframe {
    background: var(--bg-alt);
    border-color: var(--accent);
}


#home.active-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6rem;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.home-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: -3rem;
    width: 100%;
}

.stat-item {
    background: var(--bg-main);
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}



.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: var(--secondary);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    text-align: center;
    width: 100%;
}

.stat-divider {
    display: none !important;
}

.home-features-section,
.home-testimonials-section {
    width: 100%;
}

.sub-section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.sub-section-desc {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-main);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}

.feature-icon-wrapper {
    width: 46px;
    height: 46px;
    background: rgba(75, 85, 99, 0.08);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--secondary);
    color: white;
}

.feature-card h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

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

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-main);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-card);
    border-color: #CBD5E1;
}

.testimonial-rating {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--accent);
    padding-top: 1.25rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.author-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}


body.dark-mode .hero-image-placeholder {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .stat-item {
    background: var(--bg-alt);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .stat-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}



body.dark-mode .stat-number {
    background: linear-gradient(135deg, #9ca3af 30%, #6b7280 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    filter: drop-shadow(0 2px 10px rgba(107, 114, 128, 0.45));
}

body.dark-mode .feature-card,
body.dark-mode .testimonial-card {
    background: var(--bg-alt);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .testimonial-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}


@media (max-width: 900px) {
    .home-stats-bar {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 0;
        margin-top: 2rem;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }
}


.pricing-toggle-container {
    display: inline-flex;
    background: var(--bg-alt);
    border: 1px solid var(--accent);
    padding: 4px;
    border-radius: 30px;
    margin-top: 1.5rem;
}

.pricing-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.6rem 1.4rem;
    border-radius: 25px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.pricing-toggle-btn.active {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 10px rgba(75, 85, 99, 0.25);
}

.simulator-container {
    background: var(--bg-main);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-card);
    max-width: 1400px;
    margin: 4rem auto 0 auto;
    width: 100%;
}

.simulator-header-bar {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
}

.simulator-header-bar h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.simulator-header-bar p {
    margin-bottom: 0;
}

.simulator-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.simulator-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sim-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sim-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sim-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.sim-radio-card {
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-alt);
}

.sim-radio-card input {
    margin-right: 8px;
    accent-color: var(--secondary);
}

.sim-radio-span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.sim-radio-card:has(input:checked) {
    border-color: var(--secondary);
    background: rgba(75, 85, 99, 0.05);
    box-shadow: 0 0 0 2px rgba(75, 85, 99, 0.1);
}

.sim-select {
    width: 100%;
    max-width: 100%;
    padding: 0.85rem 1.25rem;
    border: 1px solid var(--accent);
    background: var(--bg-alt);
    color: var(--text-primary);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.sim-select:focus {
    border-color: var(--secondary);
}

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

.sim-slider-cost {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.sim-slider {
    width: 100%;
    height: 6px;
    background: var(--accent);
    border-radius: 3px;
    outline: none;
    accent-color: var(--secondary);
    cursor: pointer;
}

.sim-slider-ticks {
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.sim-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sim-check-card {
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    background: var(--bg-alt);
    transition: var(--transition);
}

.sim-check-card input {
    margin-top: 4px;
    accent-color: var(--secondary);
}

.sim-check-span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sim-check-span strong {
    font-size: 0.925rem;
    color: var(--text-primary);
    font-weight: 600;
}

.sim-check-span small {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.sim-check-card:has(input:checked) {
    border-color: var(--secondary);
    background: rgba(75, 85, 99, 0.05);
}

.sim-check-card:has(input:disabled),
.sim-check-card.disabled-card {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    user-select: none;
}

.sim-check-card:has(input:disabled) input,
.sim-check-card.disabled-card input {
    cursor: not-allowed !important;
    pointer-events: none !important;
}


.simulator-result-panel {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 2.5rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--accent);
}



.result-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.result-price-box {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
}

.result-price-val {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

body.dark-mode .result-price-val {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.result-currency {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-left: 2px;
    color: var(--text-primary);
}

body.dark-mode .result-currency {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-left: 2px;
    color: var(--text-primary);
}

.result-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1.5rem;
}

.result-payment-options {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-box-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.payment-box-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.payment-box-item {
    background: var(--bg-main);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-box-months {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.payment-box-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

body.dark-mode .payment-box-price {
    color: var(--text-primary);
}

.payment-cpf-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: #10B981;
    margin-top: 1rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    width: 100%;
}

body.dark-mode .payment-cpf-tag {
    color: #34D399;
    background: rgba(52, 211, 153, 0.15);
}


body.dark-mode .simulator-container {
    background: #1E1E1E;
}

body.dark-mode .sim-radio-card,
body.dark-mode .sim-check-card {
    background: #2D2D2D;
}

body.dark-mode .sim-radio-card:has(input:checked),
body.dark-mode .sim-check-card:has(input:checked) {
    background: rgba(75, 85, 99, 0.1);
}

@media (max-width: 900px) {
    .simulator-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .simulator-container {
        padding: 1.5rem 1rem !important;
        margin-top: 2rem;
    }

    .simulator-result-panel {
        background: var(--bg-alt);
        border-radius: 12px;
        padding: 1.5rem !important;
        color: var(--text-primary);
        box-shadow: var(--shadow-card);
        position: static !important;
        top: auto !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        border: 1px solid var(--accent);
        width: 100%;
        max-width: 100%;
    }

    .formation-explorer {
        padding: 1.5rem 1rem !important;
        margin-top: 2rem;
    }

    .pricing-card {
        padding: 1.5rem !important;
    }

    .financing-badges-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .simulator-container {
        padding: 1rem 0.75rem !important;
    }

    .simulator-result-panel {
        padding: 1.25rem 0.75rem !important;
    }

    .sim-radio-group {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .payment-box-row {
        grid-template-columns: 1fr !important;
        gap: 0.6rem !important;
    }
}


.location-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.location-details-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.location-card-info,
.location-card-checklist,
.contact-form-card {
    background: var(--bg-main);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.location-card-checklist h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.75rem;
}

.documents-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.documents-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.documents-checklist li span {
    font-size: 1.2rem;
    flex-shrink: 0;
}


.contact-form-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-label-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.form-input-field,
.form-select-field,
.form-textarea-field {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--accent);
    background: var(--bg-alt);
    color: var(--text-primary);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-input-field:focus,
.form-select-field:focus,
.form-textarea-field:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(75, 85, 99, 0.15);
}

.form-textarea-field {
    resize: none;
}


.form-success-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-main);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    text-align: center;
    gap: 1rem;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.form-success-overlay h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.form-success-overlay p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}


.location-maps-row {
    max-width: 1400px;
    margin: 5rem auto 0 auto;
    width: 100%;
}

.maps-section-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.maps-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.map-frame-wrapper {
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--accent);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
}

.map-frame-wrapper:hover {
    box-shadow: var(--shadow-card);
}

.map-frame-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}


body.dark-mode .location-card-info,
body.dark-mode .location-card-checklist,
body.dark-mode .contact-form-card,
body.dark-mode .form-success-overlay {
    background: #1E1E1E;
}

body.dark-mode .form-input-field,
body.dark-mode .form-select-field,
body.dark-mode .form-textarea-field {
    background: #2D2D2D;
}


@media (max-width: 900px) {
    .location-grid-layout,
    .maps-grid-layout,
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


.code-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}
.code-info-col, .code-pricing-col {
    width: 100%;
}
.code-card, .code-price-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--accent);
}
.code-card h3, .code-price-card h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}
.code-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}
.code-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.code-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 16px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.code-step:hover {
    background: var(--bg-alt);
    transform: translateX(8px);
}
.step-icon {
    font-size: 1.5rem;
    background: rgba(75, 85, 99, 0.06);
    color: var(--secondary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.code-step:hover .step-icon {
    background: var(--secondary);
    color: white;
}
.code-step:hover .step-icon svg {
    color: white !important;
}
.step-content h4 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.step-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.code-price-card {
    position: relative;
    border-top: none;
    text-align: center;
}
.price-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(75, 85, 99, 0.08);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.code-price-box {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 2rem 0 0.5rem;
    line-height: 1;
}
.code-currency {
    font-size: 1.75rem;
    font-weight: 600;
    margin-left: 2px;
}
.code-price-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.code-pricing-features {
    list-style: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
    border-top: 1px solid var(--accent);
    padding-top: 1.5rem;
}
.code-pricing-features li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.code-pricing-features li span {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.15rem;
}


.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}
.team-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--accent);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
}
.team-avatar-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.team-name {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.team-role {
    font-size: 0.875rem;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}
.team-desc {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.6;
}


body.dark-mode .code-card,
body.dark-mode .code-price-card,
body.dark-mode .team-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.65), rgba(45, 45, 45, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}
body.dark-mode .code-price-card {
    border-top: 4px solid var(--secondary);
}
body.dark-mode .step-icon {
    background: rgba(75, 85, 99, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
    box-shadow: 0 0 15px rgba(107, 114, 128, 0.25);
}
body.dark-mode .step-content p {
    color: #94A3B8;
}
body.dark-mode .code-price-box {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #9ca3af 30%, #6b7280 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 12px rgba(107, 114, 128, 0.5));
    margin-bottom: 0.5rem;
}
body.dark-mode .code-pricing-features li {
    color: #CBD5E1;
}
body.dark-mode .code-pricing-features li span {
    color: #10B981 !important;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}
body.dark-mode .price-badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.25));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #FBBF24;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.35);
}


.theme-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    background: var(--bg-main);
    color: var(--text-primary);
    border: 1px solid var(--accent);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-subtle);
}
.theme-badge:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
}
.theme-badge-icon {
    color: var(--secondary);
}
.code-tip-card {
    position: relative;
    background: var(--bg-main);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-subtle);
}
.code-tip-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
.tip-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
}
.tip-card-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}
.code-tip-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}
.tip-exam {
    border-left: 4px solid #10B981;
}
.error-avoid {
    border-left: 4px solid #EF4444;
}
body.dark-mode .code-tip-card {
    background: var(--bg-alt);
    border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .theme-badge {
    background: var(--bg-alt);
    border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .theme-badge:hover {
    border-color: var(--secondary);
}

@media (max-width: 900px) {
    .code-tips-container {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 900px) {
    .code-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


.formation-explorer {
    max-width: 1400px;
    margin: 4rem auto 0 auto;
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--accent);
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: var(--shadow-card);
    overflow: visible;
}

.formation-explorer h3.explorer-title {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.formation-explorer p.explorer-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.formation-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 2.5rem;
}

.formation-tabs::-webkit-scrollbar {
    height: 4px;
}
.formation-tabs::-webkit-scrollbar-thumb {
    background-color: var(--secondary);
    border-radius: 2px;
}

.formation-tab-btn {
    white-space: nowrap;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--text-secondary);
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.formation-tab-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(75, 85, 99, 0.05);
}

.formation-tab-btn.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    box-shadow: 0 4px 15px rgba(75, 85, 99, 0.2);
}

.formation-panels {
    position: relative;
}

.formation-panel {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.formation-panel.active {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 4rem;
}

.formation-desc-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.formation-desc-col h4, .formation-flow-col h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.formation-desc-col p.hero-p {
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 600;
    line-height: 1.4;
}

.formation-desc-col p.main-desc {
    font-size: 0.975rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.formation-flow-col {
    border-left: none;
    padding-left: 0;
}

.flow-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
    padding-left: 1.25rem;
}

.flow-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--secondary) 0%, var(--accent) 100%);
}

.flow-step {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    position: relative;
    transition: var(--transition);
}

.flow-step-num {
    position: absolute;
    left: -20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex-shrink: 0;
    transition: var(--transition);
    z-index: 2;
}

.flow-step:hover .flow-step-num {
    transform: scale(1.15);
    background: var(--secondary);
    color: white;
}

.flow-step-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
    padding-left: 1.5rem;
}



body.dark-mode .formation-explorer {
    background: #1C1C1E;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

body.dark-mode .formation-tab-btn {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.08);
    color: #A1A1A6;
}

body.dark-mode .formation-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .formation-tab-btn.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
    box-shadow: 0 0 20px rgba(75, 85, 99, 0.4);
}

body.dark-mode .flow-timeline::before {
    background: linear-gradient(to bottom, var(--secondary) 0%, rgba(255, 255, 255, 0.08) 100%);
}

body.dark-mode .flow-step-num {
    background: var(--bg-alt);
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .flow-step:hover .flow-step-num {
    background: var(--secondary);
    color: white;
}

body.dark-mode .flow-step-text {
    color: #CBD5E1;
}

@media (max-width: 900px) {
    .formation-panel.active {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .formation-flow-col {
        border-left: none;
        padding-left: 0;
        border-top: 1px dashed var(--accent);
        padding-top: 2rem;
    }
}


.svg-icon {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    vertical-align: -0.15em;
    margin-right: 0.4rem;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.pricing-toggle-btn .svg-icon,
.formation-tab-btn .svg-icon {
    width: 1.25em;
    height: 1.25em;
    margin-right: 0.5rem;
}

.sim-radio-span .svg-icon {
    width: 1.15em;
    height: 1.15em;
    margin-right: 0.4rem;
}


.testimonial-rating {
    color: #FBBF24;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}


.documents-checklist {
    list-style: none;
    padding-left: 0;
}

.documents-checklist li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
}

.documents-checklist li .svg-icon {
    position: absolute;
    left: 0;
    top: 0.2em;
    color: var(--secondary);
    margin-right: 0;
}


.ios-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.ios-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ios-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.08);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ios-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

input:checked + .ios-slider {
    background-color: #10B981;
    border-color: #10B981;
}

input:checked + .ios-slider:before {
    transform: translateX(20px);
}

body.dark-mode .ios-slider {
    background-color: #2D2D2D;
    border-color: #334155;
}


.testimonial-card-body {
    position: relative;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    line-height: 1.5;
}

.testimonial-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45px;
    background: linear-gradient(to top, var(--bg-card) 10%, transparent 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.show-more-btn {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-top: 0.5rem;
    outline: none;
    transition: color 0.2s ease;
    align-self: flex-start;
    z-index: 3;
}

.show-more-btn:hover {
    color: var(--primary);
}

body.dark-mode .show-more-btn:hover {
    color: #F8FAFC;
}

body.dark-mode .testimonial-fade-overlay {
    background: linear-gradient(to top, var(--bg-card) 15%, transparent 100%);
}


.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(18, 18, 18, 0.96);

    border-top: 1px solid var(--accent);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    transition: var(--transition);
    gap: 4px;
    width: 20%;
    height: 100%;
}

.mobile-nav-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.2;
}

.mobile-nav-link.active {
    color: var(--secondary);
}

body.dark-mode .mobile-bottom-nav {
    background: rgba(18, 18, 18, 0.96);
    border-top-color: var(--accent);
}

@media (max-width: 900px) {
    .mobile-bottom-nav {
        display: flex;
    }


    .navbar .nav-links {
        display: none !important;
    }


    .navbar {
        flex-direction: row !important;
        justify-content: space-between !important;
        padding: 0.75rem 5% !important;
        height: 60px;
    }


    body {
        padding-bottom: 70px;
    }

    main {
        padding-top: 60px !important;
    }

    .page-section {
        padding: 2.5rem 5% !important;
        min-height: calc(100vh - 130px) !important;
    }

    .hero-container {
        padding: 1.5rem 1rem 2.5rem 1rem !important;
    }
}


.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--accent);
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.site-footer a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.site-footer a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .site-footer {
        padding-bottom: 6.5rem;
    }
}



.formation-explorer, .formation-panels, .formation-panel {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}




.explorer-tabs .explorer-tab-btn, .witness-filter-bar .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

@media (max-width: 768px) {

}

@media (max-width: 480px) {

}


.cta-group, .pricing-toggle-container, .simulator-actions {
    display: flex;
    justify-content: center !important;
    align-items: center;
    margin-left: auto !important;
    margin-right: auto !important;
}
.pricing-toggle-container {
    display: inline-flex !important;
}

.indicators-grid, .manual-chapters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .indicators-grid, .manual-chapters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .indicators-grid, .manual-chapters-grid {
        grid-template-columns: 1fr;
    }
}


.btn, .show-more-btn {
    margin-left: auto !important;
    margin-right: auto !important;
}
.pricing-card .btn, .code-price-card .btn, .show-more-btn {
    align-self: center;
    display: inline-flex;
}

.explorer-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 2.5rem auto;
    justify-content: center;
}

.explorer-tabs .explorer-tab-btn {
    flex: 1;
    white-space: nowrap;
    text-align: center;
}

@media (max-width: 768px) {
    .explorer-tabs {
        flex-wrap: wrap;
    }
}


body.dark-mode .pricing-toggle-btn.active {
    background: var(--secondary) !important;
    color: #121212 !important;
}

body.dark-mode .formation-tab-btn.active {
    background: var(--secondary) !important;
    color: #121212 !important;
    border-color: var(--secondary) !important;
}

body.dark-mode .badge {
    background: var(--primary) !important;
    color: #121212 !important;
}

body.dark-mode .btn-primary:hover {
    background: var(--primary-light) !important;
    color: #121212 !important;
}

body.dark-mode .btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1) !important;
    color: var(--primary-light) !important;
    border-color: var(--primary-light) !important;
}


.severity-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}
.severity-critical {
    background: rgba(239, 68, 68, 0.08);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
}
.severity-warning {
    background: rgba(245, 158, 11, 0.08);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.15);
}
.severity-info {
    background: rgba(16, 185, 129, 0.08);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.15);
}
.severity-other {
    background: rgba(107, 114, 128, 0.08);
    color: #6B7280;
    border: 1px solid rgba(107, 114, 128, 0.15);
}
body.dark-mode .severity-other {
    color: #9CA3AF;
    border-color: rgba(156, 163, 175, 0.15);
}


.google-reviews-row {
    animation: fadeIn 0.4s ease-out;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid var(--accent);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--secondary);
}

body.dark-mode .testimonial-card {
    background: #1C1C1E;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .testimonial-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .google-widget-header {
        flex-direction: column;
        align-items: stretch !important;
        text-align: center;
        padding: 1.5rem !important;
    }
    .google-widget-header > div {
        flex-direction: column;
        align-items: center !important;
    }
    .google-stats-border {
        border-left: none !important;
        border-top: 1px solid var(--accent);
        padding-left: 0 !important;
        padding-top: 1rem;
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
    }
    #btn-write-review {
        width: 100%;
        justify-content: center;
    }
}


.modal-star {
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    display: inline-block;
}
.modal-star:hover {
    transform: scale(1.2);
}


.mobile-theme-btn {
    display: none;
}

@media (max-width: 900px) {
    .mobile-theme-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 1px solid rgba(0, 0, 0, 0.18);
        background: var(--bg-alt);
        color: var(--text-primary);
        cursor: pointer;
        transition: var(--transition);
        margin-left: auto;
        margin-right: 1rem;
        padding: 0;
        flex-shrink: 0;
        box-shadow: var(--shadow-subtle);
    }

    body.dark-mode .mobile-theme-btn {
        border-color: rgba(255, 255, 255, 0.25);
    }

    .mobile-theme-btn:active {
        transform: scale(0.95);
    }
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin-left: auto;
    aspect-ratio: 5 / 7;
    height: auto;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.hero-carousel:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
}

@media (max-width: 900px) {
    .hero-carousel {
        max-width: 340px;
        margin: 0 auto;
    }
}

.carousel-track-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.carousel-track {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
    background: #121212;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--secondary);
    color: var(--bg-main);
    border-color: var(--secondary);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn-prev {
    left: 1rem;
}

.carousel-btn-next {
    right: 1rem;
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--secondary);
    width: 24px;
    border-radius: 4px;
}


