/**
 * XAF-Finance - Design Premium Bancaire
 * Palette: Vert finance (#10B981), Noir (#0F172A), Blanc (#FFFFFF)
 */

:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #34D399;
    --secondary: #0F172A;
    --secondary-light: #1E293B;
    --accent: #F59E0B;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-800: #1F2937;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header Premium */
.header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--gray-300);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 100%);
    color: var(--white);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-300);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Converter Card */
.converter-section {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.converter-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--gray-200);
}

.converter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gray-100);
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: var(--gray-100);
    color: var(--secondary);
}

.tab-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--white);
    color: var(--secondary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' 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 1rem center;
    background-size: 1.5rem;
    padding-right: 3rem;
}

.amount-input {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'SF Mono', Monaco, monospace;
}

/* Currency Row */
.currency-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.swap-btn {
    width: 48px;
    height: 48px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.swap-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: rotate(180deg);
}

/* Result Display */
.result-box {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.result-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.result-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: 'SF Mono', Monaco, monospace;
}

.result-rate {
    color: var(--gray-300);
    font-size: 0.875rem;
}

/* Mobile Money Calculator */
.mm-calculator {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 2px solid var(--gray-200);
}

.mm-provider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.provider-card {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    background: var(--white);
}

.provider-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.provider-card.active {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.provider-logo {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.provider-name {
    font-weight: 700;
    color: var(--secondary);
}

.fee-breakdown {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.fee-row:last-child {
    border-bottom: none;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.125rem;
}

/* Features Grid */
.features {
    padding: 4rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
    background: var(--gray-50);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--secondary);
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* AdSense Zones */
.ad-container {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 1rem;
    margin: 2rem 0;
    text-align: center;
    border: 1px dashed var(--gray-300);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.ad-label {
    display: block;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--gray-300);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-title {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid var(--secondary-light);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .currency-row {
        grid-template-columns: 1fr;
    }
    
    .swap-btn {
        transform: rotate(90deg);
        margin: 0 auto;
    }
    
    .mm-provider {
        grid-template-columns: 1fr;
    }
    
    /* Empêcher tout débordement horizontal sur mobile */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Header : forcer le logo à céder la place au hamburger */
    .header-content {
        padding: 0 1rem !important;
        max-width: 100% !important;
        width: 100%;
        box-sizing: border-box;
        gap: 0.5rem;
    }
    
    /* Réduire la taille du logo sur mobile pour laisser la place */
    .logo {
        font-size: 1.1rem !important;
        gap: 0.5rem !important;
        min-width: 0;
        flex-shrink: 1;
    }
    
    .logo-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.1rem !important;
        flex-shrink: 0;
    }
    
    /* Sur mobile : cacher la nav desktop, afficher le hamburger */
    .nav-desktop {
        display: none !important;
    }
    
    .nav-hamburger {
        display: flex !important;
        margin-left: auto;
    }
    
    .converter-card {
        padding: 1.5rem;
    }
}

/* ==============================================
   MENU HAMBURGER + DRAWER LATÉRAL MOBILE
   ============================================== */

/* Bouton hamburger - caché par défaut (desktop) */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    padding: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animation du hamburger en X quand ouvert */
.nav-hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Overlay sombre derrière le drawer */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Drawer latéral */
.nav-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.nav-drawer.open {
    right: 0;
}

.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    flex-shrink: 0;
}

.nav-drawer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-drawer-logo .logo-icon {
    font-size: 1.5rem;
}

.nav-drawer-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.nav-drawer-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Liste des liens du drawer */
.nav-drawer-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0.75rem 0;
}

.nav-drawer-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    color: var(--gray-800, #1e293b);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
    border-left: 3px solid transparent;
}

.nav-drawer-link:hover,
.nav-drawer-link:active {
    background: #f1f5f9;
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 1.5rem;
}

.nav-drawer-link-small {
    font-size: 0.92rem;
    padding: 0.65rem 1.25rem 0.65rem 1.5rem;
    color: var(--gray-700, #334155);
    font-weight: 400;
}

.nav-drawer-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.nav-drawer-separator {
    height: 1px;
    background: #e2e8f0;
    margin: 0.75rem 1.25rem;
}

.nav-drawer-section-title {
    padding: 0.5rem 1.25rem 0.3rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500, #64748b);
    font-weight: 700;
}

.nav-drawer-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.85rem;
    color: var(--gray-500, #64748b);
    text-align: center;
    flex-shrink: 0;
}

.nav-drawer-footer p {
    margin: 0;
}

/* Bloquer le scroll du body quand le drawer est ouvert */
body.nav-drawer-open {
    overflow: hidden;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--secondary);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--error);
}
/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--secondary);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-xl);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--error); }

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

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.hidden {
    display: none !important;
}

/* Tab Panel visibility */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--primary);
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Blog Article Styles */
.blog-post {
    max-width: 800px;
    margin: 4rem auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.post-meta {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.post-content h2 {
    margin: 2rem 0 1rem;
    color: var(--secondary);
}

.post-content p {
    margin-bottom: 1.5rem;
    color: var(--gray-800);
    font-size: 1.125rem;
}

.post-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

/* Switch Envoi/Retrait Mobile Money */
[data-mm-type] {
    transition: all 0.2s ease;
    color: var(--gray-600);
}
[data-mm-type].active {
    background: var(--white) !important;
    color: var(--secondary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
[data-mm-type]:hover:not(.active) {
    color: var(--secondary);
}

/* ================================================================

/* ================================================================
   Sélecteur de devise personnalisé avec drapeau à gauche
   ================================================================ */
.currency-select-wrapper {
    position: relative;
    width: 100%;
}

.currency-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    color: var(--secondary);
    transition: all 0.2s ease;
    text-align: left;
}

.currency-btn:hover,
.currency-btn:focus {
    border-color: var(--primary);
    outline: none;
}

.currency-flag {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.currency-flag-emoji {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.currency-code {
    font-weight: 700;
    color: var(--secondary);
}

.currency-name {
    flex: 1;
    color: var(--gray-600);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.currency-chevron {
    color: var(--gray-600);
    font-size: 0.75rem;
    margin-left: auto;
}

.currency-list {
    display: none;
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 50;
}

.currency-list.open {
    display: block;
}

.currency-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.currency-item:hover {
    background: var(--gray-50);
}

.currency-item + .currency-item {
    border-top: 1px solid var(--gray-100);
}

/* Switch Envoi/Retrait Mobile Money */
[data-mm-type] {
    transition: all 0.2s ease;
    color: var(--gray-600);
}
[data-mm-type].active {
    background: var(--white) !important;
    color: var(--secondary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
[data-mm-type]:hover:not(.active) {
    color: var(--secondary);
}
