:root {
    --primary: #0052FF; /* Fintech Blue */
    --primary-hover: #0041CC;
    --secondary: #0F172A; /* Deep Navy */
    --accent: #0052FF; /* Replaced orange with blue as per user request */
    --accent-hover: #0041CC;
    --dark: #0F172A;
    --text: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-grey: #F1F5F9;
    --border: #E2E8F0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1280px;
    --section-padding: 10rem;
    --section-padding-mobile: 5rem;
    
    /* Icon Colors */
    --icon-orange: rgba(0, 82, 255, 0.1);
    --icon-purple: rgba(155, 81, 224, 0.1);
    --icon-green: rgba(39, 174, 96, 0.1);
    --icon-blue: rgba(0, 82, 255, 0.1);
    --icon-indigo: rgba(86, 204, 242, 0.1);
    --icon-red: rgba(235, 87, 87, 0.1);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

body {
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    position: relative;
    width: 100%;
}

/* Scroll Lock for Mobile Menu */
body.scroll-lock {
    overflow: hidden !important;
    height: 100% !important;
    width: 100% !important;
    position: fixed !important; /* Most reliable way for iOS */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 4rem;
    width: 100%;
}

.section {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
}

.subsection-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.subsection-title-white {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--white);
}

.card-dark-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    opacity: 0.6;
}

.card-dark-footer p {
    margin-bottom: 0.5rem;
}

.info-card {
    background: var(--bg-light);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    border: 1px solid var(--border);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    color: var(--primary);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    width: 40px;
    height: 40px;
}

.info-text h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.info-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .info-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2.5rem 1.5rem;
    }
}

.dark-border {
    border-color: var(--dark) !important;
}

.cards-features {
    margin-top: 4rem;
}

/* Professions Libérales */
.pro-hero-btns {
    margin-top: 3rem;
}

.promo-banner-pro {
    margin-top: 4rem;
}

.pro-promo {
    padding: 4rem;
    text-align: center;
    grid-template-columns: 1fr !important;
}

.pro-promo-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.pro-promo-price {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.pro-promo-footer {
    margin-top: 3rem;
    font-size: 0.85rem;
    opacity: 0.6;
    line-height: 1.6;
}

.section-description {
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
}

.app-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-card-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}

.app-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.app-stat {
    text-align: center;
}

.app-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.app-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.app-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-btn {
    justify-content: center;
    gap: 0.8rem;
    border-color: rgba(255,255,255,0.2) !important;
    color: var(--white) !important;
}

.pro-plus-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

.pro-plus-badge {
    background: rgba(255,102,0,0.15) !important;
    color: var(--primary) !important;
}

.pro-plus-title {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.pro-plus-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.pro-plus-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
}

.pro-plus-features i {
    color: var(--primary);
}

.promo-features-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-floating-wrapper {
    padding: 3rem;
    background: rgba(255,255,255,0.03);
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
}

.icon-floating-wrapper i {
    width: 80px;
    height: 80px;
    color: var(--primary);
    opacity: 0.6;
}

.expert-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 6rem;
    align-items: center;
}

.advisor-card-modern {
    background: var(--bg-light);
    padding: 3.5rem;
    border-radius: 32px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.advisor-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.advisor-image-wrapper {
    width: 120px;
    height: 120px;
    background: var(--white);
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
    color: #cbd5e1;
}

.advisor-image-wrapper i {
    width: 60px;
    height: 60px;
}

.advisor-name {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.advisor-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.advisor-quote {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.full-width {
    width: 100%;
}

.dark-card {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    color: var(--white) !important;
}

.dark-card:hover {
    background: rgba(255,255,255,0.05) !important;
}

.dark-card h3 {
    color: var(--white);
}

.dark-card p {
    color: rgba(255,255,255,0.6);
}

.source-hint-light {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-top: 4rem;
}

@media (max-width: 1200px) {
    .expert-grid {
        gap: 3rem;
        grid-template-columns: 1fr 350px;
    }
}

@media (max-width: 992px) {
    .expert-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .expert-text {
        max-width: 700px;
        margin: 0 auto;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img, video, canvas, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6, p, span {
    overflow-wrap: break-word;
    text-wrap: pretty;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.2);
}

.btn-blue {
    background-color: var(--primary);
    color: var(--white);
}

.btn-blue:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 82, 255, 0.2);
}


.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--text);
    background-color: rgba(0,0,0,0.02);
}

.btn-dark {
    background-color: var(--dark);
    color: var(--white);
}

.btn-dark:hover {
    background-color: #222;
    transform: translateY(-2px);
}

.btn-link {
    background: transparent;
    color: var(--text-muted);
    gap: 0.5rem;
}

.btn-link:hover {
    color: var(--text);
}

.icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-link:hover .icon-circle {
    border-color: var(--text);
}

/* Header */
.header {
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.header .container {
    padding: 0 clamp(2rem, 4vw, 4rem);
    max-width: 1400px;
}

.header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-right: clamp(0.5rem, 1vw, 1.5rem);
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-icon {
    color: var(--primary);
    display: flex;
}

.logo-text {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: clamp(0.5rem, 2vw, 2.5rem);
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.nav-links a, .nav-links .nav-link {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.nav-links li {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover, .nav-links .nav-link:hover {
    color: var(--dark);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--dark);
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    user-select: none;
    min-width: 120px;
}

.lang-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-grey);
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-dropdown-trigger:hover {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.lang-dropdown-trigger.active {
    background: var(--white);
    border-color: var(--primary);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.lang-label-active {
    flex: 1;
    display: flex;
    align-items: center;
    line-height: 1;
}

.lang-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.lang-dropdown-trigger.active .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: none;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 2000;
}

.lang-dropdown-menu.active {
    display: block;
}

.lang-dropdown-menu li {
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    white-space: nowrap;
}

.lang-dropdown-menu li:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.lang-dropdown-menu li.selected {
    background: rgba(255, 102, 0, 0.05);
    color: var(--primary);
    font-weight: 700;
}

.lang-flag {
    font-style: normal;
    font-size: 1.2rem;
    width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-name {
    flex: 1;
    display: flex;
    align-items: center;
}


@media (max-width: 768px) {
    .lang-dropdown {
        min-width: 100%;
    }
}

/* Dropdown Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(10px);
    background: white;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 0.8rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--border);
    margin-top: 0.5rem;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    border: none;
}

.dropdown-menu a {
    display: block !important;
    padding: 0.7rem 1.5rem !important;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    border: none !important;
}

.dropdown-menu a:hover {
    background: #f8fafc;
    color: var(--primary) !important;
    padding-left: 1.8rem !important;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

.chevron-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.dropdown-toggle.active .chevron-icon {
    transform: rotate(180deg);
}

@media (max-width: 1024px) {
    .nav-links {
        justify-content: flex-start;
        flex: none;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 1.5rem;
        display: none;
        opacity: 1;
        visibility: visible;
        width: 100%;
        margin-top: 0;
        background: transparent;
    }

    .dropdown-menu.active {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding-top: 0;
        padding-bottom: 0.5rem;
    }

    .dropdown-menu li {
        border-bottom: none !important;
    }

    .dropdown-menu a {
        padding: 0.8rem 0 !important;
        border-bottom: none !important;
        font-weight: 500 !important;
        color: var(--text-muted) !important;
        font-size: 1rem !important;
    }

    .dropdown-menu a:hover {
        color: var(--primary) !important;
        padding-left: 0.5rem !important;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: space-between !important;
        padding: 1rem 0 !important;
        border-bottom: 1px solid var(--border) !important;
        font-size: 1rem !important;
    }
}

.nav-actions {
    display: flex;
    gap: clamp(0.4rem, 1vw, 1rem);
    flex-shrink: 0;
    align-items: center;
    margin-left: clamp(0.5rem, 1.5vw, 1.5rem);
}

.nav-actions .btn {
    padding: 0.7rem clamp(1rem, 1.5vw, 1.6rem);
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-only-actions {
    display: none;
}

/* RESPONSIVE HEADER ADAPTATION */
@media (max-width: 1280px) {
    .nav-links {
        gap: clamp(1rem, 1.5vw, 2rem);
    }
    
    .nav-actions {
        gap: 0.8rem;
        margin-left: 1rem;
    }

    .nav-links a, .nav-links .nav-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 1100px) {
    .nav-links {
        gap: 0.8rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }

    .nav-actions .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}


@media (max-width: 1024px) {
    .nav-links, .nav-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--bg-grey);
        border-radius: 10px;
        z-index: 2100;
        color: var(--dark);
        border: 1px solid var(--border);
        transition: var(--transition);
    }

    .mobile-menu-toggle:active {
        transform: scale(0.95);
        background: var(--border);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 380px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 1.5rem 3rem;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        box-shadow: -20px 0 60px rgba(0,0,0,0.15);
        display: flex !important;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a, .nav-links .nav-link {
        font-size: 1.1rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
        justify-content: flex-start;
        display: flex;
        align-items: center;
    }

    /* Remove separator for the last navigation item but skip the mobile actions section */
    .nav-links li:nth-last-child(2) a {
        border-bottom: none;
    }


    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        padding-left: 0.5rem;
        color: var(--primary);
    }

    /* Mobile menu actions section */
    .mobile-only-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 2.5rem;
        padding-top: 2.5rem;
        border-top: 2px solid var(--bg-grey);
        gap: 2rem;
    }

    .mobile-switcher {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .mobile-switcher .lang-dropdown {
        width: 100%;
        max-width: 280px;
    }

    .mobile-btns-wrapper {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
        margin-top: 0.5rem;
    }

    .mobile-btn {
        width: 100% !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        min-height: 54px;
        border-radius: 50px !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .mobile-btn.btn-outline {
        background-color: var(--white);
        border: 2px solid var(--border);
        color: var(--text);
    }

    .mobile-btn.btn-outline:hover {
        background-color: var(--bg-light);
        border-color: var(--text);
    }

    .mobile-btn.btn-primary {
        background-color: var(--primary);
        color: var(--white);
        border: 2px solid var(--primary);
    }

    .mobile-btn.btn-primary:hover {
        background-color: var(--primary-hover);
        transform: none;
        box-shadow: none;
    }
}

/* Hero Section */
.hero {
    padding: calc(var(--section-padding) + 4rem) 0 10rem;
    text-align: center;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('../assets/bank-hero.png') center/cover no-repeat;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: rgba(0, 82, 255, 0.1);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 82, 255, 0.1);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    max-width: 1200px;
    margin: 0 auto 2.5rem;
    letter-spacing: -0.05em;
    line-height: 1.05;
    font-weight: 800;
}

.hero-title span {
    color: var(--primary);
    display: block;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .hero-title {
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-title span {
        display: inline;
        margin-top: 0;
    }
}


.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 4rem;
    font-weight: 500;
    line-height: 1.6;
    text-align: justify;
    text-align-last: center;
}

.hero-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .hero-btns {
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 320px;
    }
}


/* Features Security */
.features-security {
    padding: var(--section-padding) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 8rem;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.2;
}

.section-subtitle-small {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 500px;
}

.feature-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-orange { background: #FFF0E6; color: #FF6600; }
.icon-purple { background: #F5E6FF; color: #9B51E0; }
.icon-green { background: #E6FFF0; color: #27AE60; }
.icon-blue { background: #E6F0FF; color: #2D9CDB; }
.icon-indigo { background: #E6E6FF; color: #56CCF2; }
.icon-orange-soft { background: #FFF9F5; color: #FF6600; }
.icon-red-soft { background: #FFF5F5; color: #EB5757; }

.feature-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.feature-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: justify;
}

/* Center utility for mobile */
@media (max-width: 768px) {
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }
}

.card-dark {
    background-color: var(--dark);
    color: var(--white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    height: 100%;
}

.card-dark h3 {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
}

.management-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.management-list li {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: var(--transition);
    cursor: pointer;
}

.management-list li:hover {
    color: var(--primary);
}

.list-icon {
    color: var(--primary);
}

.chevron {
    margin-left: auto;
    width: 18px;
    height: 18px;
    opacity: 0.5;
}

.security-footer {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid #333;
    padding-top: 2rem;
}

.security-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
}

.security-footer p {
    font-size: 0.85rem;
}

/* Promo Banner */
.promo-banner {
    padding: var(--section-padding) 0;
}

.promo-content {
    background-color: var(--dark);
    border-radius: 32px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

@media (max-width: 992px) {
    .promo-banner {
        padding: 6rem 0;
    }

    .promo-content {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .promo-text {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .promo-text h2 {
        font-size: 1.8rem;
    }

    .promo-text p {
        margin: 0 auto 1.5rem;
        font-size: 0.95rem;
    }

    .promo-image {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 1.5rem;
    }
    
    .bank-card-preview {
        max-width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .card-inner {
        width: 260px;
        height: 165px;
    }
}

.promo-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.promo-text h2 span {
    color: var(--primary);
}

.promo-text p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
    max-width: 400px;
}

.bank-card-preview {
    perspective: 1000px;
}

.card-inner {
    width: 380px;
    height: 240px;
    background: url('../assets/carte1.jpg') center/cover no-repeat;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transform: rotateY(-10deg) rotateX(10deg);
    transition: var(--transition);
    overflow: hidden;
}

.card-inner:hover {
    transform: rotateY(0deg) rotateX(0deg);
}


.card-chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #d4af37 0%, #f9d976 100%);
    border-radius: 6px;
    margin-bottom: 2rem;
}

.card-logo {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.card-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.card-holder {
    font-size: 0.8rem;
    opacity: 0.5;
    letter-spacing: 1px;
}

/* Services section */
.services {
    padding: var(--section-padding) 0;
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title-center {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.services-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: justify;
    text-align-last: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--icon-blue);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    flex-shrink: 0;
}

.service-icon i {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.service-card.grey-bg {
    background-color: var(--bg-light);
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px dashed var(--border);
}

@media (max-width: 768px) {
    .service-card {
        align-items: center;
        text-align: center;
        padding: 3rem 2rem;
    }
}

.service-card.grey-bg h3 {
    margin-bottom: 1.5rem;
}

.link-arrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4A90E2;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Final CTA */
.final-cta {
    padding: 8rem 0;
    text-align: center;
    background-color: var(--bg-light);
}

.final-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.gradient-text {
    font-size: clamp(1.8rem, 5vw, 3rem);
    background: linear-gradient(90deg, var(--primary), #9B51E0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 3rem;
    font-weight: 800;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 8rem 0 3rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr;
    gap: 5rem;
    margin-bottom: 6rem;
}

.footer-brand .logo {
    margin-bottom: 2rem;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--white);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.social-icon i {
    width: 18px;
    height: 18px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--primary);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-newsletter h4 {
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    color: var(--white);
    font-size: 0.9rem;
    flex: 1;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
}

.footer-newsletter p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 4rem;
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.footer-bottom {
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-bottom > p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.legal-links a:hover {
    color: var(--white);
}

/* Responsive Refinement */
/* Responsive Refinement */

/* Tablet / Mobile Transition (1024px) - Cleaned up to avoid conflicts with new structure */
@media (max-width: 1024px) {
    .features-grid, .promo-content, .footer-top, .about-grid, .group-content, .expert-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }
    
    .services-grid, .values-grid, .stats-grid, .figures-grid, .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(4px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        pointer-events: none;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* Tablet / Mobile Transition (768px) */
@media (max-width: 768px) {
    .services-grid, .values-grid, .stats-grid, .figures-grid, .team-grid {
        grid-template-columns: 1fr !important;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title, .section-title-center {
        font-size: 1.8rem !important;
        text-align: center;
    }

    .services-header p, .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }

    .info-section .feature-item {
        flex-direction: column !important;
        text-align: center;
        gap: 1.5rem !important;
        padding: 2.5rem 1.5rem !important;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .legal-links {
        justify-content: center;
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .section-title, .section-title-center {
        font-size: 1.6rem !important;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
    }

    /* Promo Banner Mobile Specific */
    .promo-banner {
        padding: 3rem 0;
    }

    .promo-content {
        padding: 3rem 1.5rem;
        margin-top: 1rem;
    }

    .promo-text h2 {
        font-size: 1.6rem;
    }

    .card-inner {
        width: 260px;
        height: 165px;
    }
}

/* About Page Specific Styles */
.page-header {
    background-color: var(--bg-light);
    padding: 10rem 0 6rem;
    text-align: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.breadcrumb i {
    width: 14px;
    height: 14px;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.about-intro {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.team-section {
    background-color: var(--dark);
    color: var(--white);
    padding: 6rem 0;
}

.team-section .section-title-center {
    color: var(--white);
    margin-bottom: 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.team-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
}

.team-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.team-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.team-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.group-entity {
    padding: 6rem 0;
}

.group-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.group-figures {
    background: var(--bg-light);
    padding: 4rem;
    border-radius: 30px;
}

.group-figures h3 {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.figures-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
}

.figure-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.figure-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
}

.figure-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.values-section {
    padding: 0 0 6rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    padding: 2rem;
}

.value-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.value-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.value-card p {
    color: var(--text-muted);
}

.source-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4rem;
    opacity: 0.6;
}
/* Contact Page Specific Styles */
.contact-form-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.form-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.form-header h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

.form-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-left: 0.5rem;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: #fcfcfc;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    color: var(--text);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: #ccc;
}

.input-group input:hover,
.input-group select:hover,
.input-group textarea:hover {
    border-color: #ddd;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 5px rgba(255, 102, 0, 0.05);
}

.form-footer {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.privacy-note {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 350px;
}

.privacy-note i {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.submit-btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 220px;
    justify-content: center;
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px) translateY(-5px);
}

.success-state {
    text-align: center;
    padding: 4rem 2rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon-wrapper {
    width: 100px;
    height: 100px;
    background: #E6FFF0;
    color: #27AE60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2.5rem;
}

.success-icon-wrapper i {
    width: 48px;
    height: 48px;
}

.success-state h3 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

.success-state p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.legal-notice {
    background: #fafafa;
    padding: 5rem 0;
    margin-top: 6rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.phone-info-card {
    background: #FAFAFA;
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    margin-bottom: 4rem;
    text-align: center;
}

.phone-number-link {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    display: block;
    margin: 1rem 0;
    line-height: 1.2;
}

.phone-hours {
    display: inline-block;
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

@media (max-width: 768px) {
    .phone-number-link {
        font-size: 1.6rem;
    }
    
    .contact-form-card {
        padding: 2rem 1rem;
    }
    
    .form-footer {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
    }
    
    .privacy-note {
        max-width: 100%;
        justify-content: center;
        font-size: 0.75rem;
    }

    h1 { font-size: 1.6rem !important; }
    h2 { font-size: 1.3rem !important; }
    
    .submit-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
        width: 100%;
        min-width: auto;
    }
}

/* Login Page Specific Styles */
/* Login Page Specific Styles */
.login-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem;
    background: radial-gradient(circle at top right, rgba(0, 82, 255, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(0, 82, 255, 0.02), transparent);
    min-height: calc(100vh - 80px);
}

.login-card {
    background: var(--white);
    width: 100%;
    max-width: 480px;
    padding: 3.5rem;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), #9B51E0);
}

.login-header {
    margin-bottom: 2.5rem;
}

.login-logo {
    width: 64px;
    height: 64px;
    background: var(--bg-grey);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.forgot-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.forgot-link:hover {
    text-decoration: underline;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1.25rem;
    width: 20px;
    height: 20px;
    color: #94A3B8;
    transition: var(--transition);
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3.5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg-light);
    transition: all 0.3s ease;
    color: var(--dark);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.05);
}

.input-wrapper:focus-within i {
    color: var(--primary);
}

.toggle-password {
    position: absolute;
    right: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #94A3B8;
    display: flex;
    align-items: center;
}

.login-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 1.1rem;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.login-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 82, 255, 0.15);
}

.login-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-footer a {
    color: var(--primary);
    font-weight: 700;
}


/* Registration Page Specific Styles */
.register-container {
    max-width: 800px;
    margin: 4rem auto 6rem;
    padding: 0 1rem;
}

.form-title-group {
    text-align: center;
    margin-bottom: 3.5rem;
}

.form-title-group h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.registration-card {
    background: var(--white);
    border-radius: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 4rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.registration-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.06);
}

.registration-form .form-section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #F3F4F6;
}

.section-header i {
    width: 20px;
    height: 20px;
    color: #9CA3AF;
}

.section-header h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9CA3AF;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group.half-width {
    grid-column: span 1;
}

.form-group {
    min-width: 0;
}

.registration-form .form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--dark);
    background: #FAFAFA;
    transition: var(--transition);
}

.registration-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.05);
}

.admin-validation {
    background-color: #EEF2FF;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.25rem;
    margin: 3rem 0;
}

.admin-validation i {
    color: #4F46E5;
    flex-shrink: 0;
}

.admin-validation-content h3 {
    font-size: 1rem;
    color: #4F46E5;
    margin-bottom: 0.5rem;
}

.admin-validation-content p {
    font-size: 0.9rem;
    color: rgba(79, 70, 229, 0.8);
    line-height: 1.6;
}

.submit-btn-large {
    width: 100%;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 16px;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn-large:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.form-footer-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.identifiez-vous {
    text-align: center;
    margin-top: 3rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    /* Fluid typography for headers */
    h1 { font-size: clamp(1.4rem, 6vw, 1.8rem) !important; }
    h2 { font-size: clamp(1.1rem, 5vw, 1.3rem); }
    h3 { font-size: clamp(1rem, 4.5vw, 1.1rem); }
    
    /* Numbered Section Headers (Small & Subtle) */
    .section-header h2 {
        font-size: 0.65rem !important;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    p, span, label, input, select { font-size: clamp(0.75rem, 3.2vw, 0.9rem) !important; }

    .login-main {
        padding: 1.5rem 0.75rem;
    }
    
    .login-card {
        padding: 1.75rem 1rem;
        border-radius: 16px;
    }

    .login-title-group h1 {
        font-size: 1.4rem;
    }

    .login-title-group p {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .login-btn {
        padding: 0.8rem;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-group.full-width,
    .form-group.half-width {
        grid-column: span 1;
    }

    .registration-card {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }

    .registration-form .form-section {
        margin-bottom: 2.5rem;
    }

    .section-header {
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }

    .submit-btn-large {
        padding: 1.25rem;
        font-size: 1rem;
        border-radius: 14px;
        margin-top: 1.5rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .admin-validation {
        padding: 1.25rem;
        gap: 1rem;
        margin: 2rem 0;
        border-radius: 16px;
        flex-direction: row;
        align-items: flex-start;
    }

    .admin-validation i {
        width: 20px;
        height: 20px;
        margin-top: 2px;
    }

    .admin-validation-content p {
        font-size: 0.8rem;
    }

    .register-container {
        margin: 2rem auto 4rem;
        padding: 0 0.75rem;
    }

    .form-title-group {
        margin-bottom: 2.5rem;
    }

    .form-title-group h1 {
        font-size: 1.6rem;
    }

    .form-title-group p {
        font-size: 0.85rem;
    }

    .login-control, .registration-form .form-control {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    /* Support for very small devices (under 360px) */
    @media (max-width: 360px) {
        body { font-size: 13px; }
        .login-card, .registration-card { padding: 1rem 0.75rem; }
        h1 { font-size: 1.2rem !important; }
        .login-btn, .submit-btn-large { font-size: 0.8rem; padding: 0.75rem; }
    }
}

.input-currency-wrapper {
    position: relative;
    width: 100%;
}

.currency-symbol {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-weight: 500;
}

/* Loader for submit buttons */
.loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.submit-btn-large:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: var(--primary-hover);
}

/* Utility for clean, justified text blocks */
.text-premium {
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.text-justify {
    text-align: justify;
    text-justify: inter-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-center {
    text-align: center;
}

.message-box {
    background: #fcfcfc;
    border-radius: 12px;
    padding: 2rem;
    border: 1px dashed var(--border);
    margin: 2rem 0;
}

/* Modal Premium System */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.custom-modal-overlay.active .custom-modal {
    transform: translateY(0);
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.modal-icon.success { background: #E6FFF0; color: #27AE60; }
.modal-icon.error { background: #FFE6E6; color: #EB5757; }
.modal-icon.info { background: #E6F0FF; color: #2F80ED; }

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.modal-text {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.modal-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}
