/* =========================================
   Global Reset & Variables
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   Buttons & Placeholders
========================================= */
.btn {
    padding: 10px 30px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-align: center;
    display: inline-block;
}

.btn-outline {
    border: 1px solid #fff;
    color: #fff;
    background: transparent;
}

.btn-primary {
    background-color: #FFC32C;
    color: #00264D;
    border: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #e5af27;
    color: #00264D;
}

.btn-outline-dark {
    border: 1px solid #0b1d3a;
    color: #0b1d3a;
    background: transparent;
    padding: 8px 30px;
}

/* Hover effects for buttons */
.step-btn {
    transition: transform 0.3s ease;
}

.step-btn:hover {
    transform: translateY(-5px);
}

/* =========================================
   Header & Navigation
========================================= */
header {
    background-color: #00264D;
    color: #fff;
    position: relative;
    z-index: 1000;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #1a2a42;
}

.desktop-only-bg {
    background-color: #064F90;
    padding: 15px 0;
}

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

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #FFC32C !important;
}

.nav-links li a .nav-icon {
    width: 16px;
    height: 16px;
}

.mobile-auth {
    display: none;
    /* Hide mobile buttons on desktop */
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* =========================================
   Hero Sections (Shared)
========================================= */
.hero-outer-wrapper {
    background-color: #00264D;
    width: 100%;
}

.hero {
    background-color: #0b1d3a;
    color: #fff;
    position: relative;
    overflow: hidden;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.hero-home {
    background-size: cover;
    background-position: center left;
    aspect-ratio: 1440 / 400;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.hero-home-bg {
    background-image: url('assets/backgrounds/home.png');
}

.hero-products-bg {
    background-image: url('assets/backgrounds/products.png');
    background-color: #0b1d3a;
}

.hero-commission-bg {
    background-image: url('assets/backgrounds/commission.png');
    background-color: #0b1d3a;
}

.hero-faq-bg {
    background-image: url('assets/backgrounds/faq.png');
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: normal;
    line-height: 1.2;
}

.hero-text h1 strong {
    font-size: 3.5rem;
    display: block;
}

.responsive-hero-title {
    font-size: 36px;
}

.responsive-hero-strong {
    font-size: 56px;
    display: block;
}

.commission-hero-title {
    font-size: 32px;
}

.commission-hero-strong {
    font-size: 52px;
    display: block;
}

.commission-hero-sub {
    font-size: 24px;
}

/* =========================================
   Home & Features
========================================= */
.features {
    padding: 60px 0;
    background-color: #fcfcfc;
    text-align: center;
}

.features h2 {
    margin-bottom: 40px;
    font-size: 2rem;
}

.feature-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.card {
    background: #fff;
    border-radius: 8px;
    padding: 40px 20px;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card h3 {
    color: #007bff;
    margin: 20px 0 15px;
    font-size: 1.2rem;
}

.card p {
    color: #555;
    flex-grow: 1;
    margin-bottom: 20px;
}

.about {
    padding: 60px 0;
    background-color: #fff;
}

.about .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

/* =========================================
   Page: Products
========================================= */
.products-intro {
    padding: 40px 0;
    background: #fff;
}

.product-row {
    display: flex;
    align-items: center;
    background: #00264D;
    color: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: visible;
}

.product-row:nth-child(even) {
    flex-direction: row-reverse;
    background: #E8F3FC;
    color: #333;
    border: 1px solid #d0e5f5;
}

.product-info {
    flex: 1;
    padding: 40px;
}

/* =========================================
   Page: Commission & FAQ
========================================= */
.commission-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.step-btn {
    flex: 1;
    max-width: 320px;
    display: block;
    text-decoration: none;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 30px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th,
td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

th {
    background: #0b1d3a;
    color: #fff;
}

.faq-item {
    background: #fff;
    border: 1px solid #0b1d3a;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    background: #0b1d3a;
    color: #fff;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

.faq-answer {
    padding: 20px;
    color: #444;
}

/* =========================================
   Registration Form
========================================= */
.registration-main-bg {
    background-color: #ffffff;
    width: 100%;
}

.registration-wrap {
    display: flex;
    background: #eff4f8;
    /* Light blue desktop block background */
    margin: 40px auto;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.reg-form {
    flex: 1;
    padding: 40px 50px;
}

.reg-form h2 {
    font-size: 22px;
    color: #00264D;
    margin-bottom: 20px;
}

.reg-form h4 {
    margin: 20px 0 15px 0;
    font-size: 14px;
    color: #00264D;
    font-weight: 700;
}

.reg-form h4 .sub-heading {
    font-weight: 500;
    color: #556271;
    font-size: 12px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
}

.reg-form input[type="text"],
.reg-form input[type="email"],
.reg-form select,
.reg-form textarea {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #c4cdd5;
    border-radius: 4px;
    background-color: #ffffff;
    font-size: 20px;
    color: #333;
    outline: none;
}

.reg-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

.reg-form input::placeholder,
.reg-form textarea::placeholder {
    color: #8893a0;
}

.reg-form input:focus,
.reg-form select:focus,
.reg-form textarea:focus {
    border-color: #00264D;
}

/* Custom Radio & Checkbox Styling */
.website-info-section {
    display: flex;
    flex-direction: column;
}

.custom-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #00264D;
    cursor: pointer;
}

.custom-radio input[type="radio"] {
    accent-color: #007bff;
    width: 16px;
    height: 16px;
    margin: 0;
}

.text-danger {
    color: #e02020;
}

.mt-3 {
    margin-top: 10px;
}

.checklist-item {
    margin: 25px 0 20px 0;
}

.checklist-item label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.checklist-item input[type="checkbox"] {
    accent-color: #007bff;
    width: 16px;
    height: 16px;
}

.checklist-item a {
    color: #007bff;
    font-weight: 700;
}

/* Form Actions & Buttons */
.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn-group-center {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.form-btn {
    min-width: 140px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 2px;
    padding: 10px 30px;
}

.btn-primary.form-btn {
    color: #000000;
}

.btn-outline-dark.form-btn {
    border: 1px solid #000000;
    color: #000000;
    background: transparent;
}

.btn-outline-dark.form-btn:hover {
    background: #000000;
    color: #ffffff;
}

.login-redirect {
    font-size: 13px;
    color: #333;
}

.login-redirect a {
    color: #000;
}

/* =========================================
   Footer Areas (Desktop)
========================================= */
.main-footer {
    background-color: #00264D;
    color: #fff;
    padding: 60px 0 40px;
    font-size: 0.85rem;
}

.main-footer h4,
.footer-column h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-top-row {
    display: grid;
    grid-template-columns: 1.2fr 2fr 1fr;
    gap: 40px;
    margin-bottom: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-column {
    flex: 1;
}

.footer-links-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.footer-list li {
    margin-bottom: 16px;
}

.footer-promises {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-top: 20px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-license-row h4 {
    margin-top: 20px;
}

.promise-card img {
    height: 64px;
    margin: 0 auto 15px auto;
    display: block;
}

.promise-card h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.promise-card p {
    text-align: left;
    color: #ccc;
}

.footer-bottom-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-top: 30px;
}

.payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    max-width: 380px;
}

.payment-grid img {
    height: 40px;
    /* max-width: 85px; */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.payment-grid img:hover {
    transform: scale(1.05);
}

.social-icons,
.security-icons,
.responsible-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.social-icons img {
    width: 32px;
    /* height: 28px; */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-icons a:hover img {
    transform: scale(1.15);
}

.security-icons img {
    max-height: 40px;
    /* max-width: 90px; */
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.security-icons img:hover {
    opacity: 0.8;
}

.responsible-icons img {
    max-height: 40x;
    /* max-width: 90px; */
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.responsible-icons img:hover {
    opacity: 0.8;
}

.footer-certs .icon-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.footer-certs .icon-row img {
    max-height: 25px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.footer-certs .icon-row img:hover {
    opacity: 0.8;
}

.license-img {
    height: 48px;
    object-fit: contain;
}

/* Force Hide ALL carousel dots on Desktop */
.carousel-dots {
    display: none !important;
}


/* =========================================
   Mobile Login Page Specific Styles
========================================= */
.login-main {
    background-color: #ffffff;
    /* White background for the rest of the page */
    min-height: calc(100vh - 70px);
}

.login-container {
    background-color: #eff4f8;
    /* Light blue/grey background behind the form */
    padding: 20px;
}

.mobile-login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-login-form .input-group {
    position: relative;
    width: 100%;
}

.mobile-login-form input {
    width: 100%;
    padding: 15px;
    border: 1px solid #a0aab5;
    font-size: 14px;
    color: #333;
    outline: none;
    border-radius: 2px;
    /* Very slight rounding to match picture */
    background-color: #ffffff;
}

.mobile-login-form input::placeholder {
    color: #8893a0;
}

.mobile-login-form input:focus {
    border-color: #0b1d3a;
}

.password-group .toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #8893a0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-group .toggle-password svg {
    width: 20px;
    height: 20px;
    transition: color 0.3s;
}

.password-group .toggle-password:hover svg {
    color: #333;
}

.btn-login-submit {
    background-color: #00264D;
    color: #ffffff;
    padding: 15px;
    font-size: 16px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    margin-top: 5px;
}

.btn-login-submit:hover {
    background-color: #064F90;
}


.desktop-login-popup {
    display: none;
    /* Kept hidden until opened */
    position: absolute;
    top: calc(100% - 10px);
    /* Align directly beneath top bar container */
    right: 20px;
    width: 360px;
    background-color: #eff4f8;
    /* Matches the light blue panel tone */
    border: 1px solid #d0d8e0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    padding: 24px;
    z-index: 2000;
}

.desktop-login-popup.show {
    display: block;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popup-input-group {
    position: relative;
    width: 100%;
}

.popup-input-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #a2adb9;
    font-size: 14px;
    color: #333;
    background-color: #ffffff;
    outline: none;
    border-radius: 1px;
}

.popup-input-group input::placeholder {
    color: #8fa0b0;
}

.popup-input-group.password-wrapper .popup-toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #7f8e9d;
    display: flex;
    align-items: center;
}

.popup-input-group.password-wrapper svg {
    width: 18px;
    height: 18px;
}

/* Clear transparent button border format from reference photo */
.popup-actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 4px;
}

.btn-popup-submit {
    background: transparent;
    color: #00264D;
    border: 1px solid #00264D;
    padding: 8px 30px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.btn-popup-submit:hover {
    background-color: #00264D;
    color: #ffffff;
}


/* =========================================
   Mobile Responsiveness (Max Width: 768px)
========================================= */
@media (max-width: 768px) {

    /* --- Navbar Overrides --- */
    .desktop-only {
        display: none !important;
    }

    .desktop-only-bg {
        background-color: transparent;
        padding: 0;
    }

    .top-bar {
        flex-direction: row;
        /* Keep logo and menu side-by-side */
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: none;
    }

    .menu-toggle {
        display: flex;
        border: 1px solid rgba(255, 255, 255, 0.4);
        padding: 8px 10px;
        border-radius: 4px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        /* Drops right below top bar */
        left: 0;
        background-color: #064F90;
        /* Match dark background */
        height: calc(100vh - 70px);
        /* Fill the screen */
        padding: 30px 20px;
        gap: 30px;
        box-shadow: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: flex;
        justify-content: space-between;
        /* Icon left, Text right */
        font-size: 16px;
        font-weight: 500;
        flex-direction: row-reverse;
        /* Flips the order so text is right, icon is left */
    }

    .nav-links li a .nav-icon {
        width: 20px;
        height: 20px;
    }

    /* Auth buttons anchored at the bottom of the mobile menu */
    .mobile-auth {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: auto;
        /* Pushes buttons to the bottom */
        padding-bottom: 20px;
    }

    .mobile-auth .btn-block {
        width: 100%;
        text-align: center;
        padding: 15px;
        border-radius: 4px;
        font-size: 16px;
    }

    .mobile-auth .btn-primary {
        background-color: #FFC32C;
        color: #00264D;
        border: none;
    }

    .mobile-auth .btn-outline {
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
        background: transparent;
    }

    /* --- Forms & General Layout --- */
    .registration-main-bg {
        background-color: #ffffff;
    }

    .registration-wrap {
        flex-direction: column;
        background-color: #eff4f8;
        /* Light Blue Container background */
        box-shadow: none;
        margin: 0 -20px;
        /* Removes horizontal screen padding limits */
        border-radius: 0;
    }

    .reg-image {
        display: none !important;
        /* Hides image column completely on mobile */
    }

    .reg-form {
        padding: 20px 15px;
        /* Minimal padding container specification */
        width: 100%;
    }

    .reg-form h2 {
        font-size: 20px;
        text-align: center;
    }

    .form-row {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 0;
    }

    .reg-form input[type="text"],
    .reg-form input[type="email"],
    .reg-form select,
    .reg-form textarea {
        border-radius: 2px;
        /* Sharp modern borders exactly like login fields */
        padding: 14px 12px;
    }

    .btn-group-center {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn-group-center .form-btn {
        width: 100%;
        padding: 14px;
    }


    .hero {
        background-size: cover !important;
        background-position: right center !important;
        min-height: 150px !important;
        /* Changed from 260px to 200px */
        padding: 0px 0px !important;
        /* Reduced vertical padding so text fits nicely inside 200px */
        display: flex !important;
        align-items: center !important;
        font-size: 12px !important;
    }

    .hero .container {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        width: 100% !important;
    }

    .hero-text {
        max-width: 90% !important;
        background: linear-gradient(90deg, rgba(11, 29, 58, 0.85) 0%, rgba(11, 29, 58, 0.45) 100%) !important;
        padding: 5px !important;
        border-radius: 8px !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    }

    .hero-text h1 strong {
        font-size: 0.5rem;
    }

    .responsive-hero-title {
        font-size: 0.75rem !important;
    }

    .responsive-hero-strong {
        font-size: 1rem !important;
    }

    .commission-hero-title {
        font-size: 1rem !important;
    }

    .commission-hero-strong {
        font-size: 1rem !important;
    }

    .commission-hero-sub {
        font-size: 16px !important;
    }

    .about .container {
        flex-direction: column;
    }

    .about-image {
        display: none !important;
    }

    .about-text {
        text-align: center;
    }

    /* --- Product Rows Mobile --- */
    .product-row,
    .product-row:nth-child(even) {
        flex-direction: column;
    }

    .product-image-col {
        display: none !important;
    }

    .product-row {
        margin-bottom: 0 !important;
        padding: 40px 20px !important;
        min-height: auto !important;
        border-radius: 0 !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
        border-left: none !important;
        border-right: none !important;
    }


    /* =========================================
       UNIFIED MOBILE CAROUSEL FIX
    ========================================= */

    /* 1. Group all 4 horizontal containers together */
    .feature-cards,
    .footer-links-grid,
    .footer-promises,
    .commission-steps {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;

        /* The Magic Fixes */
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        gap: 20px !important;
        justify-content: flex-start !important;

        /* Hide scrollbars */
        scrollbar-width: none;
        -ms-overflow-style: none;

        /* The Padding Edge Fix */
        padding-bottom: 20px !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        scroll-padding-left: 20px !important;
    }

    .feature-cards::-webkit-scrollbar,
    .footer-links-grid::-webkit-scrollbar,
    .footer-promises::-webkit-scrollbar,
    .commission-steps::-webkit-scrollbar {
        display: none;
    }

    /* 2. Group all the individual items inside carousels */
    .feature-cards .card,
    .footer-column,
    .promise-card,
    .step-btn {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        scroll-snap-align: start !important;
    }

    /* 3. Specific UI Overrides */
    .footer-promises {
        border-bottom: none !important;
    }

    .commission-steps {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }

    .promise-card h2,
    .promise-card p {
        text-align: center;
    }


    /* --- Universal Carousel Dots Styles --- */
    .carousel-dots {
        display: flex !important;
        justify-content: center;
        gap: 10px;
        padding-bottom: 30px;
        margin-bottom: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .feature-dots,
    .footer-links-dots,
    .commission-dots {
        margin-top: 10px;
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    .dot {
        width: 10px;
        height: 10px;
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transition: background-color 0.3s ease;
    }

    .dot.active {
        background-color: #FFC32C;
    }


    /* --- Footer Layout Overrides --- */
    .footer-top-row,
    .footer-links-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-about p {
        max-width: 90%;
    }

    .footer-license-row h4 {
        margin-top: 20px;
    }

    .footer-bottom-info {
        flex-direction: column;
    }

    .payment-grid {
        /* justify-content: center; */
    }

    .desktop-login-popup {
        display: none !important;
    }
}

/* =========================================
   Language Selector (Real Custom Dropdown)
========================================= */
.language-selector-wrapper {
    position: relative;
    user-select: none;
    z-index: 1005;
}

.language-selected {
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.language-selected:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-selected .flag-icon {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    display: block;
    object-fit: cover;
}

.language-selected .arrow {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s;
}

.language-selected .arrow svg {
    display: block;
}

.language-selected.active .arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: #00264D;
    /* Matches primary dark navy */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 4px 0;
    min-width: 130px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    list-style: none;
    margin: 0;
}

.language-dropdown.show {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 14px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.lang-option:hover {
    background-color: #064F90;
    /* Matches brand blue */
}

.lang-option.active {
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
}

.lang-option .flag-icon {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    display: block;
    object-fit: cover;
}