/**
 * Kheweul Theme - Custom CSS
 * Child theme for WHMCS Twenty-One
 * Inspired by OVHcloud & Namecheap best practices
 * Documentation: https://docs.whmcs.com/8-13/customization/client-area-customization/
 */

/* ==========================================================================
   Kheweul Brand Colors
   Primary Orange: #E89548 | Dark: #2C3E50 | Light: #f7f9fa
   Success: #27ae60 | Danger: #e74c3c | Warning: #f39c12 | Info: #3498db
   ========================================================================== */

/* ==========================================================================
   FLUID DESIGN TOKENS (HOSTINGER STYLE)
   ========================================================================== */
:root {
    /* ==========================================================================
       THEME COLOR SYSTEM — Light Mode (default)
       ========================================================================== */
    --kw-primary: #E89548;
    --kw-primary-hover: #d4812e;
    --kw-primary-text: #c47a2a;       /* WCAG AA: 4.5:1 on white */
    --kw-primary-light: rgba(232, 149, 72, 0.1);
    --kw-bg: #ffffff;
    --kw-bg-alt: #f7f9fa;
    --kw-bg-card: #ffffff;
    --kw-text: #334155;
    --kw-text-heading: #0f172a;
    --kw-text-muted: #64748b;
    --kw-border: #e2e8f0;
    --kw-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --kw-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
    color-scheme: light;

    /* Fluid Typography */
    --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --fs-base: clamp(1rem, 0.95vw + 0.75rem, 1.125rem);
    --fs-lg: clamp(1.125rem, 1vw + 0.875rem, 1.25rem);
    --fs-xl: clamp(1.25rem, 2vw + 0.75rem, 1.75rem);
    --fs-2xl: clamp(1.5rem, 3vw + 0.75rem, 2.5rem);
    --fs-3xl: clamp(2rem, 5vw + 1rem, 3.5rem);
    --fs-4xl: clamp(2.5rem, 6vw + 1rem, 4.5rem);

    /* Spacing System */
    --spacing-1: clamp(0.25rem, 0.2vw + 0.2rem, 0.5rem);
    --spacing-2: clamp(0.5rem, 0.5vw + 0.375rem, 0.75rem);
    --spacing-3: clamp(0.75rem, 1vw + 0.5rem, 1.25rem);
    --spacing-4: clamp(1rem, 1.5vw + 0.625rem, 1.5rem);
    --spacing-5: clamp(1.5rem, 2vw + 1rem, 2.5rem);
    --spacing-6: clamp(2rem, 3vw + 1.25rem, 3.5rem);

    /* UI Elements */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    /* ==========================================================================
       SYSTÈME DE BREAKPOINTS UNIFIÉ — RÉFÉRENCE OFFICIELLE KHEWEUL
       Utiliser UNIQUEMENT ces valeurs dans toutes les media queries.
       Note: les variables CSS ne fonctionnent pas dans @media, elles servent
       de documentation et de référence pour le JavaScript.
       --------------------------------------------------------------------------
       Breakpoint  | Valeur          | Cibles
       ------------|-----------------|------------------------------------------
       xs          | max-width 479px | Très petits mobiles (iPhone SE old)
       sm          | max-width 767px | Mobiles portrait (< 768px)
       md          | max-width 991px | Tablettes portrait (< 992px)
       lg          | max-width 1199px| Tablettes paysage / petits laptops
       xl          | min-width 1200px| Bureau / grand écran
       ========================================================================== */
    --kw-bp-xs:  479px;
    --kw-bp-sm:  767px;
    --kw-bp-md:  991px;
    --kw-bp-lg: 1199px;
    --kw-bp-xl: 1200px;
}

/* ==========================================================================
   GLOBAL TYPOGRAPHY & BASE STYLES
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: var(--fs-base, 1rem);
    line-height: 1.6;
    color: var(--kw-text, #334155);
    background-color: var(--kw-bg, #ffffff);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   THEME SWITCH TRANSITIONS — smooth light ↔ dark transition
   Disabled during initial load, enabled after first paint
   ========================================================================== */
body.kw-theme-ready,
body.kw-theme-ready *,
body.kw-theme-ready *::before,
body.kw-theme-ready *::after {
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700;
    color: var(--kw-text-heading, #0f172a);
    line-height: 1.2;
    margin-bottom: var(--spacing-3);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-base); }

a {
    color: var(--kw-primary-text);
    transition: color 0.2s ease;
}
a:hover {
    color: var(--kw-primary-hover);
}
a:focus-visible {
    outline: 2px solid var(--kw-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ==========================================================================
   LIGHT MODE — Base component styles using CSS variables
   ========================================================================== */

.card,
.panel {
    background-color: var(--kw-bg-card);
    border-color: var(--kw-border);
    box-shadow: var(--kw-shadow);
}

.card-header {
    background-color: var(--kw-bg-alt);
    border-bottom-color: var(--kw-border);
    color: var(--kw-text-heading);
}

hr {
    border-top-color: var(--kw-border);
}

.table {
    color: var(--kw-text);
}
.table td,
.table th {
    border-top-color: var(--kw-border);
}
.table thead th {
    border-bottom-color: var(--kw-border);
    color: var(--kw-text-heading);
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--kw-bg-alt);
}

.form-control,
.custom-select {
    background-color: var(--kw-bg);
    border-color: var(--kw-border);
    color: var(--kw-text);
}
.form-control:focus,
.custom-select:focus {
    border-color: var(--kw-primary);
    box-shadow: 0 0 0 3px var(--kw-primary-light);
}

.list-group-item {
    background-color: var(--kw-bg-card);
    border-color: var(--kw-border);
    color: var(--kw-text);
}

.nav-tabs {
    border-bottom-color: var(--kw-border);
}

.pagination .page-link {
    background-color: var(--kw-bg-card);
    border-color: var(--kw-border);
    color: var(--kw-text);
}
.pagination .page-item.active .page-link {
    background-color: var(--kw-primary);
    border-color: var(--kw-primary);
}

.badge-primary,
.badge-warning {
    background-color: var(--kw-primary) !important;
}

.dropdown-menu {
    background-color: var(--kw-bg-card);
    border-color: var(--kw-border);
    box-shadow: var(--kw-shadow-lg);
}
.dropdown-item {
    color: var(--kw-text);
}
.dropdown-item:hover {
    background-color: var(--kw-bg-alt);
    color: var(--kw-primary);
}

.modal-content {
    background-color: var(--kw-bg-card);
    border-color: var(--kw-border);
}
.modal-header {
    border-bottom-color: var(--kw-border);
}
.modal-footer {
    border-top-color: var(--kw-border);
}

blockquote {
    border-left: 4px solid var(--kw-primary);
    background-color: var(--kw-bg-alt);
    padding: 15px 20px;
    border-radius: 0 4px 4px 0;
    color: var(--kw-text);
}

pre {
    background-color: var(--kw-bg-alt);
    border: 1px solid var(--kw-border);
    color: var(--kw-text);
    padding: 15px;
    border-radius: 6px;
}
code {
    background-color: var(--kw-bg-alt);
    color: #c7254e;
    padding: 2px 5px;
    border-radius: 3px;
}
pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.progress {
    background-color: var(--kw-bg-alt);
}
.progress-bar {
    background-color: var(--kw-primary);
}

.tooltip-inner {
    background-color: #0f172a;
    color: #fff;
}

/* ==========================================================================
   NAVBAR DROPDOWN FIX
   ========================================================================== */

.navbar .dropdown-menu {
    margin-top: 0 !important;
}

/* Fix dropdown hover gap by adding an invisible bridge */
.navbar .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

/* Keep dropdown visible when hovering between trigger and menu */
.navbar .dropdown:hover>.dropdown-menu {
    display: block;
}

/* Add slight delay before closing dropdown */
.navbar .dropdown-menu {
    transition: opacity 0.2s ease-in-out;
}

/* Ensure dropdown stays open on hover */
.navbar .dropdown-menu:hover {
    display: block !important;
}

/* Align navbar items to the right */
.navbar .navbar-nav.mr-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

/* Override any default WHMCS overflow: hidden on header/navbar */
.header,
.kheweul-header,
.main-navbar,
.navbar-collapse,
.navbar-nav {
    overflow: visible !important;
}

/* Ensure Mon compte dropdown appears properly */
.navbar .dropdown-menu-right {
    right: 0;
    left: auto;
}

/* ULTRA-SPECIFIC OVERRIDES FOR NAVBAR & TOPBAR VISIBILITY ON WHITE BACKGROUND */
body.primary-bg-color.kheweul-theme #header.kheweul-header .main-navbar .navbar-nav>li>a,
body.primary-bg-color.kheweul-theme #header.kheweul-header .main-navbar .nav-link,
.main-navbar .navbar-nav>li>a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    color: #334155 !important;
    padding: 10px 18px !important;
    margin: 0 2px !important;
    border-radius: 8px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.primary-bg-color.kheweul-theme #header.kheweul-header .main-navbar .navbar-nav>li>a:hover,
body.primary-bg-color.kheweul-theme #header.kheweul-header .main-navbar .nav-link:hover,
.main-navbar .navbar-nav>li>a:hover {
    color: #E89548 !important;
    background: rgba(232, 149, 72, 0.06) !important;
    transform: translateY(-1px) !important;
}

body.primary-bg-color.kheweul-theme #header.kheweul-header .topbar-modern {
    background: #f8fafc !important;
}

body.primary-bg-color.kheweul-theme #header.kheweul-header .topbar-modern .topbar-link,
.topbar-modern .topbar-link {
    color: #475569 !important;
    text-decoration: none !important;
}

body.primary-bg-color.kheweul-theme #header.kheweul-header .topbar-modern .topbar-link:hover,
.topbar-modern .topbar-link:hover {
    color: #0f172a !important;
    background: rgba(15, 23, 42, 0.04) !important;
}

body.primary-bg-color.kheweul-theme #header.kheweul-header .topbar-modern .topbar-register,
.topbar-modern .topbar-register {
    color: #E89548 !important;
}

body.primary-bg-color.kheweul-theme #header.kheweul-header .topbar-modern .topbar-register:hover,
.topbar-modern .topbar-register:hover {
    background: rgba(232, 149, 72, 0.1) !important;
    color: #c47a2a !important;
}

/* Dark mode overrides for WHMCS body class */
body.dark-mode.primary-bg-color.kheweul-theme #header.kheweul-header .topbar-modern {
    background: #1e293b !important;
}

body.dark-mode .topbar-modern .topbar-link {
    color: #94a3b8 !important;
}

body.dark-mode .topbar-modern .topbar-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

/* ===========================================================================
   MINIMAL PROFESSIONAL TOPBAR
   =========================================================================== */
.topbar-minimal {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 8px 0 !important;
    font-size: 0.75rem !important;
    /* Crisper, smaller typography */
    color: #475569 !important;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
    position: relative;
    z-index: 1040;
    /* Ensure dropdowns appear above sticky header (1030) */
}

/* ===========================================================================
   WHMCS LANGUAGE / CURRENCY MODAL FIX
   =========================================================================== */
.modal-localisation .item-selector .item {
    display: block;
    padding: 10px;
    margin-bottom: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #475569;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.modal-localisation .item-selector .item:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.modal-localisation .item-selector .item.active {
    background: #e9f2ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    font-weight: 600;
    box-shadow: 0 0 0 1px #3b82f6;
}

.topbar-minimal .topbar-item {
    display: inline-flex;
    align-items: center;
    color: #475569;
    font-weight: 600;
}

/* Accent Colors for Trust Indicators */
.text-primary-light {
    color: #3b82f6 !important;
}

.text-success {
    color: #10b981 !important;
}

.text-info {
    color: #0ea5e9 !important;
}

.topbar-minimal .topbar-item i {
    font-size: 0.85rem;
}

.topbar-minimal .topbar-separator {
    width: 1px;
    height: 12px;
    background-color: #e2e8f0;
    margin: 0 18px;
    display: inline-block;
}

.topbar-minimal .topbar-link {
    color: #334155 !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.topbar-minimal .topbar-link i {
    color: #64748b;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.topbar-minimal .topbar-link:hover {
    color: #0f172a !important;
    background: transparent !important;
}

.topbar-minimal .topbar-link:hover i {
    color: #0f172a;
}

.topbar-minimal .topbar-signin {
    color: #f59e0b !important;
    /* Subtle accent color for login */
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
}

.topbar-minimal .topbar-signin i {
    color: #f59e0b !important;
}

.topbar-minimal .topbar-signin:hover {
    color: #b45309 !important;
    background: rgba(245, 158, 11, 0.2) !important;
}

.topbar-minimal .topbar-signin:hover i {
    color: #b45309 !important;
}

/* Ensure currency dropdown looks good in minimal topbar */
.topbar-minimal .kw-currency-btn {
    color: #334155 !important;
    font-weight: 600 !important;
    padding: 0 !important;
}

.topbar-minimal .kw-currency-btn:hover {
    color: #0f172a !important;
    background: transparent !important;
}

body.primary-bg-color.kheweul-theme #header.kheweul-header .topbar-modern .topbar-signin,
.topbar-modern .topbar-signin {
    color: #ffffff !important;
}

/* Dark mode topbar items */
body.dark-mode .topbar-minimal .topbar-item {
    color: #94a3b8;
}

body.dark-mode .topbar-minimal .topbar-separator {
    background-color: #334155;
}

body.dark-mode .topbar-minimal .topbar-link {
    color: #94a3b8 !important;
}

body.dark-mode .topbar-minimal .topbar-link:hover {
    color: #ffffff !important;
}

body.dark-mode .topbar-minimal .kw-currency-btn {
    color: #94a3b8 !important;
}

body.dark-mode .topbar-minimal .kw-currency-btn:hover {
    color: #ffffff !important;
}

/* --- Nav Login Button (migré depuis header.tpl inline) --- */
.kw-nav-login {
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
}
.kw-nav-login:hover {
    background: rgba(15, 23, 42, 0.04);
    color: #E89548 !important;
}
html.dark-mode .kw-nav-login {
    color: #cbd5e1;
}
html.dark-mode .kw-nav-login:hover {
    background: rgba(232, 149, 72, 0.1);
    color: #E89548 !important;
}

/* --- WhatsApp Link in Topbar (migré depuis header.tpl inline) --- */
.topbar-whatsapp-link {
    color: #475569 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.topbar-whatsapp-link:hover {
    color: #25D366 !important;
}
html.dark-mode .topbar-whatsapp-link {
    color: #94a3b8 !important;
}

/* ==========================================================================
   HERO SECTION - Namecheap Full Width Style
   ========================================================================== */

.kheweul-hero-fullwidth {
    position: relative !important;
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%) !important;
    padding: 100px 0 150px !important;
    margin: 0 !important;
    width: 100% !important;
    margin-bottom: 60px !important;
    overflow: hidden !important;
    min-height: 500px !important;
    display: block !important;
}

.hero-content {
    position: relative !important;
    z-index: 10 !important;
}

.hero-title {
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.hero-subtitle {
    font-size: 1.25rem !important;
    margin-bottom: 2rem !important;
    color: #ffffff !important;
}

.kheweul-trust-badges .badge-kheweul {
    background-color: rgba(232, 149, 72, 0.2);
    border: 1px solid #E89548;
    color: #fff;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    font-size: 0.9rem;
    border-radius: 20px;
}

.kheweul-domain-search-box {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.kheweul-domain-search-box h3 {
    color: #2C3E50;
    font-weight: 700;
}

.kheweul-popular-tlds {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tld-badge {
    background-color: #f7f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #2C3E50;
}

.tld-badge strong {
    color: #E89548;
    font-weight: 700;
}

/* ==========================================================================
   SECTIONS - OVHcloud Style
   ========================================================================== */

.kheweul-deals-section,
.kheweul-why-section,
.kheweul-trust-section {
    padding: 4rem 0;
    background-color: #f7f9fa;
}

.kheweul-why-section {
    background-color: #fff;
}

.kheweul-section-badge {
    display: inline-block;
    background-color: #E89548;
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.kheweul-section-title {
    color: #2C3E50;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   CARDS - Enhanced with OVHcloud & Namecheap patterns
   ========================================================================== */

.kheweul-card {
    border: 1px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    background: #fff;
}

.kheweul-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #E89548;
}

.kheweul-card-featured {
    border: 2px solid #E89548;
    background: linear-gradient(135deg, #fff 0%, #fff9f5 100%);
    position: relative;
}

.kheweul-badge-new {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #e74c3c;
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.kheweul-card-icon {
    margin-bottom: 1.5rem;
}

.kheweul-card-title {
    color: #2C3E50;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.kheweul-features-list {
    text-align: left;
    padding-left: 1rem;
}

.feature-item {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #555;
}

.feature-item i {
    margin-right: 0.5rem;
}

.kheweul-price-tag {
    background-color: #f7f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.price-from {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.price-amount {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #E89548;
}

.price-period {
    font-size: 1rem;
    color: #666;
}

/* ==========================================================================
   BUTTONS - Namecheap Style
   ========================================================================== */

.btn-kheweul-primary {
    background-color: #E89548;
    border-color: #E89548;
    color: #fff;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-kheweul-primary:hover {
    background-color: #d17f3a;
    border-color: #d17f3a;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(232, 149, 72, 0.3);
}

.btn-kheweul-outline {
    background-color: transparent;
    border: 2px solid #E89548;
    color: #E89548;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-kheweul-outline:hover {
    background-color: #E89548;
    border-color: #E89548;
    color: #fff;
    transform: scale(1.05);
}

/* ==========================================================================
   PAYMENT GATEWAY BUTTONS
   ========================================================================== */
.kw-btn-wave {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #1DC3F0, #0DA5D0);
    color: #fff !important;
    text-decoration: none !important;
    padding: 14px 36px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(29, 195, 240, 0.35);
    transition: all 0.3s ease;
    border: none;
}

.kw-btn-wave:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 195, 240, 0.5);
    color: #fff !important;
}

body.dark-mode .kw-btn-wave {
    box-shadow: 0 4px 15px rgba(29, 195, 240, 0.2);
}

body.dark-mode .kw-btn-wave:hover {
    box-shadow: 0 6px 20px rgba(29, 195, 240, 0.4);
}

.kw-btn-wave.kw-btn-wave-full {
    width: 100%;
    margin-top: 10px;
}

.kw-btn-wave.kw-loading {
    opacity: 0.8 !important;
    pointer-events: none !important;
    transform: scale(0.98) !important;
}

/* --- Wave Checkout Form (Frontend) --- */
.kw-wave-checkout-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    max-width: 420px;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.kw-wave-checkout-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.kw-wave-logo-circle {
    background: linear-gradient(135deg, #1DC3F0, #0DA5D0);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(29, 195, 240, 0.3);
}

.kw-wave-checkout-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
}

.kw-wave-instruction {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.kw-wave-input-wrapper {
    display: flex;
    align-items: stretch;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.kw-wave-input-wrapper:focus-within {
    border-color: #1DC3F0;
    box-shadow: 0 0 0 3px rgba(29, 195, 240, 0.15);
    background: #ffffff;
}

.kw-wave-prefix {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    font-size: 1rem;
    border-right: 1px solid #e2e8f0;
    gap: 8px;
}

.kw-wave-prefix .fflag {
    font-size: 1.2rem;
}

.kw-wave-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    outline: none;
    width: 100%;
}

.kw-wave-input::placeholder {
    color: #cbd5e1;
    font-weight: 500;
}

.kw-wave-test-badge {
    text-align: center;
    margin-top: 12px;
    color: #f59e0b;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Dark Mode Overrides for Wave Form */
body.dark-mode .kw-wave-checkout-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .kw-wave-checkout-header {
    border-color: #334155;
}

body.dark-mode .kw-wave-checkout-header h4 {
    color: #f1f5f9;
}

body.dark-mode .kw-wave-instruction {
    color: #94a3b8;
}

body.dark-mode .kw-wave-input-wrapper {
    background: #0f172a;
    border-color: #334155;
}

body.dark-mode .kw-wave-input-wrapper:focus-within {
    border-color: #1DC3F0;
    background: #1e293b;
}

body.dark-mode .kw-wave-prefix {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}

body.dark-mode .kw-wave-input {
    color: #f1f5f9;
}

body.dark-mode .kw-wave-input::placeholder {
    color: #475569;
}

/* ==========================================================================
   STATS CARDS - OVHcloud Style
   ========================================================================== */

.kheweul-stat-card {
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.kheweul-stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    margin-bottom: 1rem;
}

.stat-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 0.75rem;
}

.stat-desc {
    color: #666;
    font-size: 0.95rem;
}

/* ==========================================================================
   ACTION CARDS - Modernized
   ========================================================================== */

.kheweul-action-card {
    display: block;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    background: #fff;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.kheweul-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #E89548, #f1b574);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.kheweul-action-card:hover::before {
    transform: scaleX(1);
}

.kheweul-action-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    border-color: #E89548;
}

.kheweul-action-card .ico-container {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.action-label {
    display: block;
    font-weight: 600;
    color: #2C3E50;
    font-size: 1rem;
}

/* Colored action cards */
.kheweul-card-teal {
    background-color: #1abc9c;
    color: #fff;
}

.kheweul-card-teal .action-label {
    color: #fff;
}

.kheweul-card-red {
    background-color: #e74c3c;
    color: #fff;
}

.kheweul-card-red .action-label {
    color: #fff;
}

.kheweul-card-yellow {
    background-color: #f39c12;
    color: #fff;
}

.kheweul-card-yellow .action-label {
    color: #fff;
}

.kheweul-card-gray {
    background-color: #95a5a6;
    color: #fff;
}

.kheweul-card-gray .action-label {
    color: #fff;
}

.kheweul-card-green {
    background-color: #27ae60;
    color: #fff;
}

.kheweul-card-green .action-label {
    color: #fff;
}

.kheweul-account-card {
    background: linear-gradient(135deg, #2C3E50 0%, #34495e 100%);
    color: #fff;
}

.kheweul-account-card:hover {
    background: linear-gradient(135deg, #E89548 0%, #f1b574 100%);
}

.kheweul-account-card .ico-container {
    color: #E89548;
}

/* ==========================================================================
   DARK MODE — kheweul-child-theme
   Activé par la classe `dark-mode` sur <html> et <body>
   Mémorisé dans localStorage['kwTheme'] (auto / light / dark)
   ========================================================================== */

/* Anti-flash: applied on <html> before body renders */
html.dark-mode {
    background-color: #1a202c !important;
    color-scheme: dark;
}

body.dark-mode {
    --kw-primary: #E89548;
    --kw-primary-hover: #f0a55e;
    --kw-primary-text: #f0a55e;       /* Conserves WCAG AA */
    --kw-primary-light: rgba(232, 149, 72, 0.15);
    --kw-bg: #1a202c;
    --kw-bg-alt: #232c3a;
    --kw-bg-card: #232c3a;
    --kw-text: #e2e8f0;
    --kw-text-heading: #e2e8f0;
    --kw-text-muted: #94a3b8;         /* Softened text to reduce glare */
    --kw-border: #354153;
    --kw-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1);
    --kw-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.35);
    background-color: #1a202c !important;
    color: #e2e8f0 !important;
}

body.dark-mode .kheweul-header,
body.dark-mode #header.kheweul-header {
    background: rgba(15, 23, 42, 0.97) !important;
    border-bottom-color: rgba(255, 255, 255, 0.07) !important;
}

body.dark-mode .main-navbar .nav-link,
body.dark-mode .main-navbar .navbar-nav>li>a {
    color: #cbd5e1 !important;
}

body.dark-mode .main-navbar .nav-link:hover,
body.dark-mode .main-navbar .navbar-nav>li>a:hover {
    color: #E89548 !important;
    background: rgba(232, 149, 72, 0.1) !important;
}

/* ============================================================================
   PREMIUM DARK MODE — MEGA MENU (Glassmorphism + Glow Design)
   Inspired by Vercel, Linear, Stripe dark mode navigation
   ============================================================================ */

/* --- PANEL: Glassmorphism floating card --- */
body.dark-mode .dropdown-menu,
body.dark-mode .megamenu-content,
body.dark-mode .dropdown-menu.megamenu-content {
    background: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-top: 2px solid rgba(232, 149, 72, 0.6) !important;
    border-radius: 16px !important;
    box-shadow:
        0 0 0 1px rgba(232, 149, 72, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 24px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

/* --- COLUMN DIVIDERS: Subtle lines --- */
body.dark-mode .megamenu-column {
    border-right: 1px solid rgba(255, 255, 255, 0.04) !important;
}

body.dark-mode .megamenu-column:last-child {
    border-right: none !important;
}

/* --- COLUMN TITLES: Orange with subtle glow --- */
body.dark-mode .megamenu-title {
    color: #E89548 !important;
    border-bottom: 1px solid rgba(232, 149, 72, 0.15) !important;
    text-shadow: 0 0 20px rgba(232, 149, 72, 0.15) !important;
    letter-spacing: 1.5px !important;
}

/* --- LINK ITEMS: Card style with transitions --- */
body.dark-mode .dropdown-item,
body.dark-mode .megamenu-list a {
    color: #94a3b8 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Link titles — high contrast */
body.dark-mode .kheweul-megamenu .megamenu-list a strong,
body.dark-mode .megamenu-list a strong {
    color: #f1f5f9 !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
}

/* Icons — will glow on hover */
body.dark-mode .kheweul-megamenu .megamenu-list a strong i,
body.dark-mode .megamenu-list a strong i {
    transition: all 0.25s ease !important;
    filter: brightness(0.85) !important;
}

/* Descriptions — readable but subdued */
body.dark-mode .megamenu-list a .megamenu-desc {
    color: #64748b !important;
    transition: color 0.25s ease !important;
}

/* --- HOVER STATE: Glowing card effect --- */
body.dark-mode .dropdown-item:hover,
body.dark-mode .megamenu-list a:hover {
    background: linear-gradient(135deg, rgba(232, 149, 72, 0.08), rgba(232, 149, 72, 0.03)) !important;
    border-color: rgba(232, 149, 72, 0.15) !important;
    box-shadow: 0 2px 12px rgba(232, 149, 72, 0.06) !important;
    transform: translateX(2px) !important;
}

body.dark-mode .megamenu-list a:hover strong {
    color: #E89548 !important;
    text-shadow: 0 0 12px rgba(232, 149, 72, 0.2) !important;
}

body.dark-mode .megamenu-list a:hover strong i {
    filter: brightness(1.3) drop-shadow(0 0 4px currentColor) !important;
}

body.dark-mode .megamenu-list a:hover .megamenu-desc {
    color: #94a3b8 !important;
}

/* --- CTA BOXES: Gradient glow --- */
body.dark-mode .megamenu-column div[style*="background:rgba(232,149,72"],
body.dark-mode .megamenu-column div[style*="background:linear-gradient"] {
    background: rgba(232, 149, 72, 0.06) !important;
    border: 1px solid rgba(232, 149, 72, 0.2) !important;
    box-shadow: 0 0 16px rgba(232, 149, 72, 0.05) !important;
}

body.dark-mode .megamenu-column div[style*="background:rgba(232,149,72"] a,
body.dark-mode .megamenu-column div[style*="background:linear-gradient"] a {
    color: #E89548 !important;
    text-shadow: 0 0 12px rgba(232, 149, 72, 0.2) !important;
}

body.dark-mode .megamenu-column div[style*="background:linear-gradient"] span {
    color: #94a3b8 !important;
}

/* --- NAVBAR LINKS: Premium hover --- */
body.dark-mode .kheweul-megamenu>a.nav-link {
    color: #cbd5e1 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

body.dark-mode .kheweul-megamenu>a.nav-link:hover,
body.dark-mode .kheweul-megamenu.mega-open>a.nav-link {
    color: #E89548 !important;
    text-shadow: 0 0 16px rgba(232, 149, 72, 0.3) !important;
}

/* Chevron — animated rotation */
body.dark-mode .kheweul-megamenu>a .fa-chevron-down {
    opacity: 0.3 !important;
    transition: all 0.3s ease !important;
}

body.dark-mode .kheweul-megamenu:hover>a .fa-chevron-down,
body.dark-mode .kheweul-megamenu.mega-open>a .fa-chevron-down {
    opacity: 0.7 !important;
    color: #E89548 !important;
}

/* --- MOBILE DARK MODE --- */
@media (max-width: 991px) {
    body.dark-mode .megamenu-column {
        border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
        border-right: none !important;
    }

    body.dark-mode .megamenu-column:first-child {
        border-top: none !important;
    }

    body.dark-mode .megamenu-content,
    body.dark-mode .dropdown-menu.megamenu-content {
        background: rgba(15, 23, 42, 0.98) !important;
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    body.dark-mode .navbar-collapse {
        background: #0f172a !important;
        border-color: rgba(255, 255, 255, 0.06) !important;
    }
}

/* --- STANDARD DROPDOWN DARK MODE --- */
body.dark-mode .navbar-nav .dropdown-menu {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .navbar-nav .dropdown-item::before {
    background: #E89548 !important;
}

body.dark-mode .navbar-nav .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(232, 149, 72, 0.1) 0%, transparent 100%) !important;
    color: #E89548 !important;
}














body.dark-mode .kw-card,
body.dark-mode .kw-pricing-card,
body.dark-mode .kw-service-card,
body.dark-mode .kw-spec-card,
body.dark-mode .kw-feature-item,
body.dark-mode .panel,
body.dark-mode .card {
    background: var(--kw-bg-card) !important;
    border-color: var(--kw-border) !important;
    color: var(--kw-text) !important;
}

body.dark-mode .kw-section-title,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #f1f5f9 !important;
}

body.dark-mode .kw-section-subtitle,
body.dark-mode p,
body.dark-mode .text-muted {
    color: var(--kw-text-muted) !important;
}

body.dark-mode .kw-section-alt {
    background: #1e293b !important;
}

body.dark-mode .kw-combo {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode .kw-cta-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: #334155 !important;
}

body.dark-mode .kw-footer {
    background: #020917 !important;
}

body.dark-mode .kw-footer-col h4,
body.dark-mode .kw-footer-col a {
    color: #94a3b8 !important;
}

body.dark-mode .kw-footer-col a:hover {
    color: #E89548 !important;
}

body.dark-mode .kw-footer-bottom {
    border-top-color: #1e293b !important;
    color: #64748b !important;
}

body.dark-mode .form-control,
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* Kheweul Specific Sections Dark Mode */
body.dark-mode .kheweul-navbar,
body.dark-mode .kheweul-logo-section,
body.dark-mode .main-navbar-wrapper,
body.dark-mode .kheweul-trust-section,
body.dark-mode .main-navbar-wrapper .navbar-nav .nav-link,
body.dark-mode .main-navbar-wrapper .navbar-nav li>a {
    background-color: #0f172a !important;
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

body.dark-mode .main-navbar-wrapper .navbar-nav .nav-link,
body.dark-mode .main-navbar-wrapper .navbar-nav li>a {
    color: #cbd5e1 !important;
}

body.dark-mode .main-navbar-wrapper .navbar-nav .nav-link:hover,
body.dark-mode .main-navbar-wrapper .navbar-nav li>a:hover {
    background-color: rgba(232, 149, 72, 0.1) !important;
    color: #E89548 !important;
}

body.dark-mode .kheweul-cart {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
}

body.dark-mode .form-control:focus,
body.dark-mode input:focus {
    border-color: #E89548 !important;
    box-shadow: 0 0 0 3px rgba(232, 149, 72, 0.15) !important;
}

body.dark-mode .table,
body.dark-mode .table td,
body.dark-mode .table th {
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

body.dark-mode .table-striped tbody tr:nth-of-type(odd) {
    background: #1e293b !important;
}

body.dark-mode .alert-info {
    background: #0f2744 !important;
    border-color: #1d4ed8 !important;
    color: #93c5fd !important;
}

body.dark-mode .alert-success {
    background: #052e16 !important;
    border-color: #16a34a !important;
    color: #86efac !important;
}

body.dark-mode .alert-warning {
    background: #1c1a00 !important;
    border-color: #ca8a04 !important;
    color: #fde68a !important;
}

body.dark-mode .alert-danger {
    background: #2d0a0a !important;
    border-color: #dc2626 !important;
    color: #fca5a5 !important;
}

body.dark-mode .master-breadcrumb {
    background-color: #0f172a !important;
    border-color: #334155 !important;
}

body.dark-mode .breadcrumb {
    background: #1e293b !important;
}

body.dark-mode .breadcrumb-item.active,
body.dark-mode .breadcrumb-item a {
    color: #94a3b8 !important;
}

/* ---------- Tooltips ---------- */
body.dark-mode .tooltip-inner {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border: 1px solid #334155;
}
body.dark-mode .bs-tooltip-top .arrow::before,
body.dark-mode .bs-tooltip-auto[x-placement^="top"] .arrow::before {
    border-top-color: #1e293b !important;
}
body.dark-mode .bs-tooltip-bottom .arrow::before,
body.dark-mode .bs-tooltip-auto[x-placement^="bottom"] .arrow::before {
    border-bottom-color: #1e293b !important;
}

/* ---------- Popovers ---------- */
body.dark-mode .popover {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}
body.dark-mode .popover-header {
    background-color: #0f172a !important;
    border-bottom-color: #334155 !important;
    color: #f1f5f9 !important;
}
body.dark-mode .popover-body {
    color: #e2e8f0 !important;
}
body.dark-mode .bs-popover-top > .arrow::after,
body.dark-mode .bs-popover-auto[x-placement^="top"] > .arrow::after {
    border-top-color: #1e293b !important;
}
body.dark-mode .bs-popover-bottom > .arrow::after,
body.dark-mode .bs-popover-auto[x-placement^="bottom"] > .arrow::after {
    border-bottom-color: #1e293b !important;
}

/* ---------- Code blocks ---------- */
body.dark-mode pre {
    background-color: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #e2e8f0 !important;
}
body.dark-mode code {
    background-color: #1e293b !important;
    color: #E89548 !important;
    border-radius: 3px;
    padding: 2px 5px;
}
body.dark-mode pre code {
    background: transparent !important;
    color: #e2e8f0 !important;
    padding: 0;
}
body.dark-mode kbd {
    background-color: #334155 !important;
    color: #f1f5f9 !important;
    border-color: #475569 !important;
}

/* ---------- Pagination ---------- */
body.dark-mode .pagination .page-link {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}
body.dark-mode .pagination .page-link:hover {
    background-color: #334155 !important;
    color: #E89548 !important;
}
body.dark-mode .pagination .page-item.active .page-link {
    background-color: #E89548 !important;
    border-color: #E89548 !important;
    color: #fff !important;
}
body.dark-mode .pagination .page-item.disabled .page-link {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #475569 !important;
}

/* ---------- Dropdown menus ---------- */
body.dark-mode .dropdown-menu {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
body.dark-mode .dropdown-item {
    color: #e2e8f0 !important;
}
body.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:focus {
    background-color: #334155 !important;
    color: #E89548 !important;
}
body.dark-mode .dropdown-item.active,
body.dark-mode .dropdown-item:active {
    background-color: #E89548 !important;
    color: #fff !important;
}
body.dark-mode .dropdown-divider {
    border-top-color: #334155 !important;
}

/* ---------- Modals ---------- */
body.dark-mode .modal-content {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
body.dark-mode .modal-header {
    border-bottom-color: #334155 !important;
}
body.dark-mode .modal-header .modal-title {
    color: #f1f5f9 !important;
}
body.dark-mode .modal-footer {
    border-top-color: #334155 !important;
}
body.dark-mode .modal-backdrop.show {
    opacity: 0.7;
}

/* ---------- Badges ---------- */
body.dark-mode .badge-secondary {
    background-color: #334155 !important;
    color: #e2e8f0 !important;
}
body.dark-mode .badge-light {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border: 1px solid #334155;
}
body.dark-mode .badge-dark {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}

/* ---------- Progress bars ---------- */
body.dark-mode .progress {
    background-color: #334155 !important;
    border: 1px solid #475569;
}
body.dark-mode .progress-bar {
    background-color: #E89548 !important;
}

/* ---------- List groups ---------- */
body.dark-mode .list-group-item {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
body.dark-mode .list-group-item:hover {
    background-color: #334155 !important;
}
body.dark-mode .list-group-item.active {
    background-color: #E89548 !important;
    border-color: #E89548 !important;
    color: #fff !important;
}
body.dark-mode .list-group-item-action:focus {
    background-color: #334155 !important;
}

/* ---------- Nav tabs & pills ---------- */
body.dark-mode .nav-tabs {
    border-bottom-color: #334155 !important;
}
body.dark-mode .nav-tabs .nav-link {
    color: #94a3b8 !important;
}
body.dark-mode .nav-tabs .nav-link:hover {
    border-color: #334155 #334155 transparent !important;
    color: #E89548 !important;
}
body.dark-mode .nav-tabs .nav-link.active {
    background-color: #1e293b !important;
    border-color: #334155 #334155 #1e293b !important;
    color: #E89548 !important;
}
body.dark-mode .nav-pills .nav-link {
    color: #94a3b8 !important;
}
body.dark-mode .nav-pills .nav-link:hover {
    background-color: #334155 !important;
    color: #E89548 !important;
}
body.dark-mode .nav-pills .nav-link.active {
    background-color: #E89548 !important;
    color: #fff !important;
}
body.dark-mode .tab-content {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

/* ---------- Accordion / Card headers ---------- */
body.dark-mode .accordion .card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}
body.dark-mode .accordion .card-header,
body.dark-mode .card-header {
    background-color: #0f172a !important;
    border-bottom-color: #334155 !important;
    color: #f1f5f9 !important;
}
body.dark-mode .accordion .card-header a,
body.dark-mode .accordion .card-header button {
    color: #e2e8f0 !important;
}
body.dark-mode .accordion .card-header a:hover,
body.dark-mode .accordion .card-header button:hover {
    color: #E89548 !important;
}

/* ---------- Horizontal rules ---------- */
body.dark-mode hr {
    border-top-color: #334155 !important;
}

/* ---------- Blockquotes ---------- */
body.dark-mode blockquote {
    border-left: 4px solid #E89548 !important;
    background-color: #1e293b !important;
    padding: 15px 20px;
    color: #e2e8f0 !important;
    border-radius: 0 4px 4px 0;
}

/* ---------- Terms of Service page ---------- */
body.dark-mode .terms-of-service h2 {
    color: #E89548 !important;
    border-bottom-color: #E89548 !important;
}
body.dark-mode .terms-of-service ul li {
    color: #cbd5e1 !important;
}
body.dark-mode .terms-of-service a {
    color: #E89548 !important;
}

/* ---------- Knowledge Base articles ---------- */
body.dark-mode .article-content,
body.dark-mode .kbarticle {
    color: #e2e8f0 !important;
}
body.dark-mode .article-content img {
    opacity: 0.9;
    border-radius: 4px;
}

/* ==========================================================================
   WCAG ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

/* Focus-visible for keyboard navigation (all interactive elements) */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.page-link:focus-visible,
.list-group-item:focus-visible,
.dropdown-item:focus-visible {
    outline: 2px solid var(--kw-primary) !important;
    outline-offset: 2px;
    box-shadow: none !important;
}

/* Ensure dark mode links have sufficient contrast */
body.dark-mode a {
    color: var(--kw-primary-text);
}
body.dark-mode a:hover {
    color: var(--kw-primary-hover);
}

/* Reduced motion: disable transitions and animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Screen reader only utility */
.sr-only,
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ==========================================================================
   THEME TOGGLE — 3-mode switcher (Auto / Light / Dark)
   Adapts its own appearance to the current theme
   ========================================================================== */
#kw-theme-toggle {
    position: fixed;
    bottom: 110px;
    right: 24px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 2px;
    border-radius: 50px;
    padding: 3px;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

#kw-theme-toggle:hover {
    transform: translateY(-2px);
}

#kw-theme-toggle .kw-toggle-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

/* Tooltip labels on hover */
#kw-theme-toggle .kw-toggle-btn::after {
    content: attr(data-label);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
#kw-theme-toggle .kw-toggle-btn:hover::after {
    opacity: 1;
}

/* ========================
   LIGHT MODE — toggle
   ======================== */
#kw-theme-toggle {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
#kw-theme-toggle:hover {
    box-shadow: 0 6px 20px rgba(232, 149, 72, 0.25);
}
#kw-theme-toggle .kw-toggle-btn {
    color: #94a3b8;
}
#kw-theme-toggle .kw-toggle-btn:hover {
    color: #E89548;
    background: rgba(232, 149, 72, 0.08);
}
/* Auto active — light mode: bleu doux */
#kw-theme-toggle .kw-toggle-btn[data-theme="auto"].active {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}
/* Light active — light mode: orange chaud */
#kw-theme-toggle .kw-toggle-btn[data-theme="light"].active {
    background: linear-gradient(135deg, #f59e0b, #E89548);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}
/* Dark active — light mode: slate sombre */
#kw-theme-toggle .kw-toggle-btn[data-theme="dark"].active {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.35);
}
/* Tooltips — light */
#kw-theme-toggle .kw-toggle-btn::after {
    background: #0f172a;
    color: #fff;
}

/* ========================
   DARK MODE — toggle
   ======================== */
body.dark-mode #kw-theme-toggle {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
body.dark-mode #kw-theme-toggle:hover {
    box-shadow: 0 6px 20px rgba(232, 149, 72, 0.3);
}
body.dark-mode #kw-theme-toggle .kw-toggle-btn {
    color: #475569;
}
body.dark-mode #kw-theme-toggle .kw-toggle-btn:hover {
    color: #E89548;
    background: rgba(232, 149, 72, 0.12);
}
/* Auto active — dark mode: bleu lumineux */
body.dark-mode #kw-theme-toggle .kw-toggle-btn[data-theme="auto"].active {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}
/* Light active — dark mode: jaune/orange soleil */
body.dark-mode #kw-theme-toggle .kw-toggle-btn[data-theme="light"].active {
    background: linear-gradient(135deg, #f59e0b, #E89548);
    color: #fff;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}
/* Dark active — dark mode: violet/indigo nuit */
body.dark-mode #kw-theme-toggle .kw-toggle-btn[data-theme="dark"].active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}
/* Tooltips — dark */
body.dark-mode #kw-theme-toggle .kw-toggle-btn::after {
    background: #0f172a;
    border: 1px solid #334155;
    color: #e2e8f0;
}

/* Mobile: slightly smaller */
@media (max-width: 767px) {
    #kw-theme-toggle {
        bottom: 95px;
        right: 16px;
        padding: 2px;
    }
    #kw-theme-toggle .kw-toggle-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

.kheweul-account-card:hover .ico-container {
    color: #fff;
}

.kheweul-account-card .action-label {
    color: #fff;
}

/* ==========================================================================
   TRUST SECTION - Namecheap Style
   ========================================================================== */

.kheweul-trust-section {
    background: linear-gradient(135deg, #f7f9fa 0%, #e9ecef 100%);
}

.kheweul-trust-stat {
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #E89548;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #2C3E50;
    font-weight: 600;
}

/* ==========================================================================
   HEADER CUSTOMIZATION — SPRINT 1 FIX
   Forces header visible (WHMCS parent JS sets top:-192px)
   ========================================================================== */

.kheweul-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

/* Override ANY inline style set by parent theme JS */
#header.kheweul-header {
    top: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Scrolled state: compact header with stronger shadow */
.kheweul-header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* Hide the topbar when scrolled (desktop only) */
.kheweul-header.scrolled .topbar-modern {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border: none;
    opacity: 0;
    transition: all 0.3s ease;
}

/* NOTE: .topbar-modern principal est dans la section PREMIUM TOPBAR (~ligne 3214) */

/* ==========================================================================
   MOBILE OVERFLOW FIX
   ========================================================================== */

html,
body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

@media (max-width: 991px) {

    /* ===== TOPBAR: HIDDEN ON MOBILE ===== */
    .topbar-modern {
        display: none !important;
    }

    /* ===== HEADER MOBILE ===== */
    .kheweul-header {
        position: relative !important;
    }

    .kheweul-navbar .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .kheweul-brand .logo-img {
        max-height: 40px !important;
    }

    /* ===== HAMBURGER BUTTON FIX ===== */
    .navbar-toggler {
        border: none !important;
        padding: 8px !important;
        z-index: 1050 !important;
        position: relative !important;
    }

    /* ===== SIDEBAR HIDDEN ON MOBILE ===== */
    .sidebar,
    .col-md-3.col-sm-4 {
        display: none !important;
    }
}

/* ===== TLD PRICING TABLE — MOBILE RESPONSIVE ===== */
@media (max-width: 767px) {

    /* Make pricing table scrollable horizontally on mobile */
    .table-responsive,
    .domain-pricing-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Reduce table cell padding */
    .domain-pricing table th,
    .domain-pricing table td {
        padding: 8px 10px !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
    }

    /* Category filter pills wrap */
    .domain-categories,
    .tld-filter-group {
        flex-wrap: wrap !important;
        gap: 6px;
    }

    .domain-categories .btn,
    .tld-filter-group .btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    /* Hero search bar adjustments */
    .hero-form-responsive {
        flex-direction: column !important;
    }

    .hero-input-responsive {
        font-size: 0.9rem !important;
    }

    /* Reduce section padding */
    section,
    .section-padding {
        padding: 2rem 0 !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }
}

/* ===== VERY SMALL SCREENS ===== */
@media (max-width: 480px) {

    /* Compact everything further */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .navbar-nav .nav-link {
        padding: 12px 16px !important;
        font-size: 0.95rem !important;
    }

    /* Footer stacks columns */
    .footer .col-md-3,
    .footer .col-md-4,
    .footer .col-lg-3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 1.5rem;
    }
}


/* ==========================================================================
   TOPBAR - User Information Bar
   ========================================================================== */

.kheweul-topbar {
    background: #f8fafc;
    color: #475569;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

body.dark-mode .kheweul-topbar {
    background: #1e293b;
    color: #cbd5e1;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.topbar-container {
    max-width: 100%;
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

.topbar-content {
    width: 100%;
    justify-content: flex-end;
}

.kheweul-topbar::before {
    display: none;
}

.kheweul-topbar .btn {
    color: #475569;
    transition: all 0.3s ease;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.kheweul-topbar .btn:hover {
    background-color: rgba(232, 149, 72, 0.1);
    color: #E89548;
    transform: translateY(-1px);
}

.kheweul-topbar .input-group-text {
    background-color: rgba(232, 149, 72, 0.08);
    border-color: rgba(232, 149, 72, 0.2);
    color: #c47a2a;
    font-weight: 600;
}

.kheweul-topbar .btn-active-client {
    background-color: rgba(232, 149, 72, 0.1);
    border: 1px solid rgba(232, 149, 72, 0.3);
    color: #c47a2a;
    font-weight: 600;
}

.kheweul-topbar .btn-active-client:hover {
    background-color: #E89548;
    border-color: #E89548;
    color: #fff;
}

/* Notifications popover styling */
#accountNotifications {
    position: relative;
}

#accountNotifications .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    animation: pulse 2s infinite;
}

/* ==========================================================================
   NAVBAR - Logo and Search Bar
   ========================================================================== */

.kheweul-navbar {
    background-color: #fff;
    padding: 1.25rem 0;
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 100%;
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

.kheweul-header.scrolled .kheweul-navbar {
    padding: 0.75rem 0;
}

/* ————————————
   Kheweul Logo Section (Desktop)
   ———————————— */
.kheweul-logo-section {
    background-color: #ffffff;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.kheweul-logo-section .kheweul-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ————————————
   Kheweul Custom Navbar (CTA focus)
   ———————————— */
.main-navbar-wrapper {
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    padding: 0;
    width: 100%;
    box-shadow: none;
    height: 122px;
    display: flex;
    align-items: center;
    overflow: visible;
}

.navbar-container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.main-navbar-wrapper .navbar-container-fluid {
    width: 100%;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-navbar-wrapper .navbar-nav {
    width: auto;
    gap: 0.75rem;
    overflow: visible !important;
}

/* Navigation links - Modern & Elegant */
.main-navbar-wrapper .navbar-nav .nav-link,
.main-navbar-wrapper .navbar-nav li>a {
    color: #2f2f2f !important;
    font-weight: 600;
    padding: 1rem 1.5rem !important;
    transition: all 0.25s ease;
    font-size: 1.1rem;
    letter-spacing: 0.1px;
    border-radius: 10px;
    position: relative;
    text-transform: none;
    background-color: transparent;
}

.main-navbar-wrapper .navbar-nav .nav-link:hover,
.main-navbar-wrapper .navbar-nav li>a:hover {
    color: #E89548 !important;
    background-color: rgba(232, 149, 72, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.main-navbar-wrapper .navbar-nav .nav-link::after,
.main-navbar-wrapper .navbar-nav li>a::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.main-navbar-wrapper .navbar-nav .nav-link:hover::after,
.main-navbar-wrapper .navbar-nav li>a:hover::after {
    border-color: rgba(232, 149, 72, 0.25);
    box-shadow: 0 8px 24px rgba(232, 149, 72, 0.12);
}

/* Icons in navigation */
.main-navbar-wrapper .navbar-nav i {
    font-size: 1.1rem;
    margin-right: 8px;
    color: #E89548;
}

.kheweul-navbar .navbar-brand img,
.kheweul-navbar .kheweul-logo-text {
    height: 45px;
    font-size: 1.6rem;
    font-weight: 800;
    color: #E89548;
}

.kheweul-navbar .navbar-nav .nav-link {
    color: #E89548 !important;
    font-weight: 600;
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.kheweul-navbar .navbar-nav .nav-link:hover {
    color: #2C3E50 !important;
    text-decoration: none;
    background-color: rgba(232, 149, 72, 0.08);
    border-radius: 8px;
}

.btn-kheweul-cta {
    background-color: #E89548;
    color: #fff !important;
    font-weight: 700;
    padding: 0.75rem 1.8rem;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(232, 149, 72, 0.3);
}

.btn-kheweul-cta:hover {
    background-color: #d17f3a;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(232, 149, 72, 0.4);
}

.kheweul-cart-badge {
    position: absolute;
    top: -4px;
    right: -9px;
    font-size: 0.7rem;
    background-color: #dc3545;
    color: #fff;
    padding: 2px 5px;
    border-radius: 50%;
}

.kheweul-brand {
    font-weight: 800;
    font-size: 1.75rem;
    color: #E89548 !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.kheweul-brand:hover {
    color: #d17f3a !important;
    transform: scale(1.05);
    text-decoration: none;
}

.kheweul-brand .logo-img {
    max-height: 50px;
    transition: all 0.3s ease;
}

.main-navbar-wrapper .nav-logo {
    padding: 0;
    margin-right: 1.25rem;
}

.main-navbar-wrapper .nav-logo .logo-img {
    max-height: 46px;
}

.kheweul-header.scrolled .kheweul-brand .logo-img {
    max-height: 40px;
}

.kheweul-logo-text {
    color: #E89548;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

/* Search box styling */
.kheweul-navbar .search {
    position: relative;
}

.kheweul-navbar .search .form-control {
    border: 2px solid #e9ecef;
    border-left: none;
    padding: 0.75rem 1.25rem;
    border-radius: 0 25px 25px 0;
    transition: all 0.3s ease;
    width: 300px;
}

.kheweul-navbar .search .form-control:focus {
    border-color: #E89548;
    box-shadow: 0 0 0 0.2rem rgba(232, 149, 72, 0.15);
    outline: none;
}

.kheweul-search-btn {
    background-color: #E89548;
    border-color: #E89548;
    color: #fff;
    border-radius: 25px 0 0 25px;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    border: 2px solid #E89548;
}

.kheweul-search-btn:hover {
    background-color: #d17f3a;
    border-color: #d17f3a;
    color: #fff;
    transform: scale(1.05);
}

.kheweul-search-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(232, 149, 72, 0.25);
}

/* Cart button */
.kheweul-cart {
    position: relative;
    background-color: #f7f9fa;
    border-radius: 25px;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.kheweul-cart:hover {
    background-color: rgba(232, 149, 72, 0.1);
    border-color: #E89548;
    transform: translateY(-2px);
}

.kheweul-cart i {
    color: #2C3E50;
    font-size: 1.25rem;
}

.kheweul-cart:hover i {
    color: #E89548;
}

.kheweul-badge {
    background-color: #E89548 !important;
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

/* Mobile menu toggle */
.kheweul-navbar .btn-link {
    color: #2C3E50;
    font-size: 1.5rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.kheweul-navbar .btn-link:hover {
    color: #E89548;
    transform: rotate(90deg);
}

/* ===== HAMBURGER MENU (Mobile/Tablet) ===== */

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    background: transparent;
    position: relative;
    z-index: 1050;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.kheweul-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    cursor: pointer;
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: #2C3E50;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover .hamburger-bar {
    background-color: #E89548;
}

.navbar-toggler[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: #E89548;
}

.navbar-toggler[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: #E89548;
}

/* Mobile navbar brand */
.navbar-brand.d-xl-none {
    display: flex !important;
    align-items: center;
    gap: 0;
    padding: 0;
    margin-right: 1rem;
}

.navbar-brand.d-xl-none .logo-img {
    transition: all 0.3s ease;
    margin: 0;
    vertical-align: middle;
}

.navbar-brand.d-xl-none .kheweul-logo-text {
    margin: 0;
    padding: 0;
    line-height: 1;
    vertical-align: middle;
}

/* Collapsed menu styling — s'applique uniquement quand le menu est réduit (< 992px) */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 1.5rem 1rem;
        margin-top: 1rem;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border-top: 3px solid #E89548;
    }

    .navbar-nav {
        width: 100%;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(232, 149, 72, 0.1);
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .main-navbar-wrapper .navbar-nav .nav-link,
    .main-navbar-wrapper .navbar-nav li>a {
        padding: 1rem !important;
        width: 100%;
        border-left: 3px solid transparent;
        border-radius: 0;
    }

    .main-navbar-wrapper .navbar-nav .nav-link:hover,
    .main-navbar-wrapper .navbar-nav li>a:hover {
        border-left-color: #E89548;
        transform: translateY(0);
        padding-left: 1.25rem !important;
    }

    .main-navbar-wrapper .navbar-nav .nav-link::after,
    .main-navbar-wrapper .navbar-nav li>a::after {
        display: none;
    }

    /* Dropdown menus in mobile */
    .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        background: rgba(232, 149, 72, 0.05);
        margin-left: 1rem;
        border-left: 2px solid #E89548;
        border-radius: 8px;
        padding: 0.5rem 0;
    }

    .navbar-nav .dropdown-menu .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   MAIN NAVIGATION - Primary Menu Bar
   ========================================================================== */

.kheweul-main-nav {
    background-color: #fff;
    border-top: none;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: none;
    position: relative;
}

.kheweul-main-nav::before {
    display: none;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.kheweul-main-nav .navbar-nav .nav-link {
    color: #4a4a4a;
    font-weight: 500;
    padding: 1rem 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    text-transform: none;
    font-size: 0.95rem;
    letter-spacing: 0;
}

.kheweul-main-nav .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #E89548;
    transition: all 0.3s ease;
}

.kheweul-main-nav .navbar-nav .nav-link:hover::before {
    width: 100%;
}

.kheweul-main-nav .navbar-nav .nav-link:hover {
    color: #E89548;
    background-color: transparent;
}

/* Navigation Dropdown Menus - Enhanced */
.kheweul-main-nav .navbar-nav .dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kheweul-main-nav .dropdown-menu .dropdown-item {
    padding: 0.75rem 1.5rem;
    color: #2C3E50;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.kheweul-main-nav .dropdown-menu .dropdown-item i {
    margin-right: 0.75rem;
    color: #E89548;
    width: 20px;
    text-align: center;
}

.kheweul-main-nav .dropdown-menu .dropdown-item:hover {
    background-color: rgba(232, 149, 72, 0.1);
    color: #E89548;
    padding-left: 2rem;
}

.kheweul-main-nav .dropdown-menu .dropdown-item:hover i {
    transform: scale(1.2);
}

/* Active menu item */
.kheweul-main-nav .navbar-nav .nav-item.active>.nav-link,
.kheweul-main-nav .navbar-nav .nav-link.active {
    color: #E89548;
    background-color: rgba(232, 149, 72, 0.15);
    border-bottom: 3px solid #E89548;
}

/* Dropdown badges */
.kheweul-main-nav .dropdown-menu .dropdown-item .badge {
    float: right;
    margin-left: 1rem;
}

/* Menu separators */
.kheweul-main-nav .dropdown-divider {
    border-top: 1px solid rgba(232, 149, 72, 0.2);
    margin: 0.5rem 0;
}

/* Dropdown headers */
.kheweul-main-nav .dropdown-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #E89548;
    padding: 1rem 1.5rem 0.5rem;
    letter-spacing: 0.5px;
}

/* Secondary navbar customization */
.navbar .navbar-nav .nav-item.account-menu .dropdown-menu {
    min-width: 280px;
    max-width: 320px;
}

.navbar .navbar-nav .nav-item.account-menu .dropdown-item {
    white-space: normal;
}

/* Badge styling in navigation */
.navbar-nav .badge {
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.navbar-nav .badge-info {
    background-color: #3498db !important;
    color: #fff;
}

.navbar-nav .badge-danger {
    background-color: #e74c3c !important;
    color: #fff;
    animation: none;
}

.navbar-nav .badge-warning {
    background-color: #E89548 !important;
    color: #fff;
}

/* Mobile navigation improvements */
@media (max-width: 1199px) {
    .kheweul-main-nav .navbar-collapse {
        background-color: #fff;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .kheweul-main-nav .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-left: 3px solid transparent;
    }

    .kheweul-main-nav .navbar-nav .nav-link:hover,
    .kheweul-main-nav .navbar-nav .nav-link.active {
        border-left-color: #E89548;
        border-bottom: none;
    }

    .kheweul-main-nav .dropdown-menu {
        box-shadow: none;
        border-left: 2px solid rgba(232, 149, 72, 0.3);
        margin-left: 1rem;
    }
}

/* ==========================================================================
   FOOTER CUSTOMIZATION - OVHcloud Inspired (Enhanced)
   ========================================================================== */

.kheweul-footer {
    background: #0B1120 !important;
    color: #f8fafc;
    padding: 4rem 0 2rem;
    margin-top: 3rem;
    border-top: 3px solid #E89548;
    position: relative;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.kheweul-footer .container-fluid {
    padding-left: 3rem;
    padding-right: 3rem;
}

@media (max-width: 768px) {
    .kheweul-footer .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.kheweul-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(232, 149, 72, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.kheweul-footer-top {
    position: relative;
    z-index: 1;
    padding-bottom: 2rem;
}

.kheweul-footer-title {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Inter', sans-serif;
    position: relative;
    padding-bottom: 10px;
}

.kheweul-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #E89548;
    border-radius: 1px;
}

.kheweul-footer-title i {
    margin-right: 0.5rem;
}

.kheweul-footer-desc {
    color: #94a3b8 !important;
    font-size: 0.9rem;
    line-height: 1.7;
}

.kheweul-footer-links,
.kheweul-footer .list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kheweul-footer-links li,
.kheweul-footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

.kheweul-footer-links a,
.kheweul-footer .list-unstyled a {
    color: #94a3b8 !important;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none !important;
    padding: 2px 0;
}

.kheweul-footer-links a i {
    margin-right: 0.5rem;
    color: #475569;
    transition: color 0.2s ease;
}

.kheweul-footer-links a:hover,
.kheweul-footer .list-unstyled a:hover {
    color: #E89548 !important;
    transform: translateX(3px);
    text-decoration: none !important;
}

.kheweul-footer-links a:hover i {
    color: #E89548;
}

.badge-footer-kheweul {
    background-color: rgba(232, 149, 72, 0.2);
    border: 1px solid rgba(232, 149, 72, 0.5);
    color: #E89548;
    padding: 0.4rem 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.badge-footer-kheweul i {
    margin-right: 0.3rem;
}

.kheweul-contact-info {
    border-top: 1px solid rgba(236, 240, 241, 0.2);
    padding-top: 1rem;
}

.kheweul-contact-info p {
    font-size: 0.9rem;
}

.kheweul-contact-info a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.kheweul-contact-info a:hover {
    color: #E89548;
}

.kheweul-contact-info i {
    width: 20px;
    margin-right: 0.5rem;
}

.kheweul-footer-divider {
    border-top: 1px solid rgba(236, 240, 241, 0.2);
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.kheweul-footer-bottom {
    position: relative;
    z-index: 1;
}

.kheweul-footer-legal {
    margin: 0;
}

.kheweul-footer-legal .nav-link {
    color: #ecf0f1;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.kheweul-footer-legal .nav-link:hover {
    color: #E89548;
}

.kheweul-footer .list-inline {
    margin-bottom: 0;
}

.kheweul-footer .list-inline-item a {
    color: #ecf0f1;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.kheweul-footer .list-inline-item a:hover {
    color: #E89548;
    transform: translateY(-3px);
}

.kheweul-lang-btn {
    background-color: rgba(232, 149, 72, 0.15);
    color: #ecf0f1;
    border: 2px solid rgba(232, 149, 72, 0.3);
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.kheweul-lang-btn:hover {
    background-color: #E89548;
    color: #fff;
    border-color: #E89548;
    transform: scale(1.05);
}

.kheweul-copyright {
    color: #ecf0f1;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.kheweul-copyright strong {
    color: #E89548;
    font-weight: 700;
    font-size: 1.05rem;
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.kheweul-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #E89548 0%, #f1b574 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(232, 149, 72, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* ==========================================================================
   PREMIUM TOPBAR (GLASSMORPHISM & ELEGANT TYPOGRAPHY)
   ========================================================================== */

.topbar-modern {
    background: #f8fafc !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 6px 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    position: relative;
    z-index: 1040;
    max-height: 60px;
    opacity: 1;
    transition: all 0.3s ease;
}

/* Dark mode topbar */
body.dark-mode .topbar-modern {
    background: #1e293b !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.topbar-modern-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-link-elegant {
    color: #475569;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.topbar-link-elegant i {
    font-size: 0.9rem;
    color: #64748b;
    transition: color 0.2s ease;
}

.topbar-link-elegant:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.04);
}

.topbar-link-elegant:hover i {
    color: #E89548;
    text-decoration: none;
}

/* Dark mode elegant links */
body.dark-mode .topbar-link-elegant {
    color: #cbd5e1;
}

body.dark-mode .topbar-link-elegant i {
    color: #94a3b8;
}

body.dark-mode .topbar-link-elegant:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Auth specific styling in topbar */
.topbar-signin-wrapper {
    position: relative;
}

/* Quick Login Dropdown styling */
.topbar-login-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.topbar-signin-wrapper:hover .topbar-login-dropdown {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 5px);
}

.login-dropdown-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-dropdown-header h6 {
    color: #0B1120;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.login-dropdown-header p {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

.topbar-login-form .form-control {
    border-radius: 8px;
    padding: 10px 15px 10px 40px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.topbar-login-form .input-with-icon {
    position: relative;
    margin-bottom: 12px;
}

.topbar-login-form .input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.topbar-currency-btn {
    background: transparent;
    border: none;
    outline: none;
}

/* Cart Badge */
.topbar-cart {
    position: relative;
}

.topbar-cart-badge {
    position: absolute;
    top: -2px;
    left: 20px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    line-height: 1;
}

.btn-login-submit {
    background: linear-gradient(135deg, #E89548 0%, #d17f3a 100%);
    color: white !important;
    border: none;
    border-radius: 8px;
    width: 100%;
    padding: 10px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(232, 149, 72, 0.3);
    transition: all 0.2s ease;
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(232, 149, 72, 0.4);
}

.login-dropdown-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 0.8rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.login-dropdown-footer a {
    color: #64748b;
    text-decoration: none;
}

.login-dropdown-footer a:hover {
    color: #E89548;
}



.kheweul-back-to-top:hover {
    background: linear-gradient(135deg, #d17f3a 0%, #E89548 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(232, 149, 72, 0.6);
}

.kheweul-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.kheweul-back-to-top:focus {
    outline: none;
}

@media (max-width: 768px) {
    .kheweul-back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 991px) {
    .kheweul-hero-title {
        font-size: 2.5rem;
    }

    .kheweul-section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .kheweul-hero-banner {
        padding: 3rem 0;
    }

    .kheweul-hero-title {
        font-size: 2rem;
    }

    .kheweul-hero-subtitle {
        font-size: 1.1rem;
    }

    .kheweul-section-title {
        font-size: 1.75rem;
    }

    .kheweul-domain-search-box {
        margin-top: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .kheweul-trust-badges .badge-kheweul {
        display: block;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .kheweul-hero-title {
        font-size: 1.75rem;
    }

    .kheweul-popular-tlds {
        flex-direction: column;
    }

    .tld-badge {
        width: 100%;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.bg-kheweul-orange {
    background-color: #E89548 !important;
}

.bg-kheweul-dark {
    background-color: #2C3E50 !important;
}

.bg-kheweul-light {
    background-color: #f7f9fa !important;
}

.text-kheweul-orange {
    color: #E89548 !important;
}

.text-kheweul-dark {
    color: #2C3E50 !important;
}

.border-kheweul-orange {
    border-color: #E89548 !important;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.kheweul-card,
.kheweul-action-card,
.kheweul-stat-card {
    animation: fadeInUp 0.6s ease-out;
}

.animated-arrow {
    animation: pulse 0.5s ease-in-out;
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Loading spinner for external links */
a[target="_blank"]:hover i.fa-external-link-alt {
    transform: translateX(2px) translateY(-2px);
    transition: transform 0.3s ease;
}

/* ==========================================================================
   ADDITIONAL ENHANCEMENTS
   ========================================================================== */

/* Input focus states */
.kheweul-domain-search-box input:focus {
    border-color: #E89548;
    box-shadow: 0 0 0 0.2rem rgba(232, 149, 72, 0.25);
}

/* Card hover glow effect */
.kheweul-card-featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(232, 149, 72, 0.1), transparent);
    pointer-events: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better link styling */
a.text-kheweul-orange:hover {
    color: #d17f3a !important;
    text-decoration: underline;
}

/* ===== MEGA MENU STYLING — PREMIUM REDESIGN ===== */

.kheweul-megamenu {
    position: relative !important;
    overflow: visible !important;
}

.kheweul-megamenu>a {
    font-weight: 600;
    color: #334155 !important;
    letter-spacing: 0.2px;
}

.kheweul-megamenu>a:hover {
    color: #E89548 !important;
}

/* --- BASE MEGAMENU PANEL --- */
.megamenu-content,
.dropdown-menu.megamenu-content {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-top: 3px solid #E89548 !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    padding: 20px !important;
    display: none !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0 !important;
    z-index: 9999 !important;
    margin-top: 0 !important;
    overflow: visible !important;
    min-width: auto !important;
    float: none !important;
}

/* Invisible bridge connecting navbar link to the megamenu */
.megamenu-content::before {
    content: '' !important;
    position: absolute !important;
    top: -15px !important;
    left: 0 !important;
    width: 100% !important;
    height: 18px !important;
    background: transparent !important;
    z-index: 1 !important;
}

/* ===== VISIBILITY — JS-ONLY CONTROL ===== */

.megamenu-content,
.dropdown-menu.megamenu-content {
    display: none !important;
}

.kheweul-megamenu.mega-open>.megamenu-content,
.kheweul-megamenu.mega-open>.dropdown-menu.megamenu-content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
}

.kheweul-megamenu.show .megamenu-content,
.kheweul-megamenu .dropdown-menu.show {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
}

/* --- CONSTRAINED WIDTHS PER MENU TYPE --- */
.megamenu-content.megamenu-domains {
    width: 900px !important;
    max-width: 92vw !important;
}

.megamenu-content.megamenu-hosting {
    width: 850px !important;
    max-width: 92vw !important;
}

.megamenu-content.megamenu-security {
    width: 550px !important;
    max-width: 92vw !important;
}

/* Default width for other megamenus (email, cloud, etc.) */
.megamenu-content {
    width: 750px !important;
    max-width: 92vw !important;
}

@media (max-width: 1199px) {

    .megamenu-content.megamenu-domains,
    .megamenu-content.megamenu-hosting,
    .megamenu-content.megamenu-security,
    .megamenu-content {
        width: auto !important;
        min-width: 350px !important;
        max-width: 92vw !important;
    }
}

/* ===== STANDARD DROPDOWN HOVER ===== */

.navbar-nav .dropdown:hover>.dropdown-menu {
    display: block;
    animation: fadeInDown 0.3s ease-out;
}

.navbar-nav .dropdown-menu {
    display: none;
    margin-top: 0 !important;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: none;
}

.navbar-nav .dropdown.show>.dropdown-menu {
    display: block;
}

/* ===== MEGAMENU COLUMNS — PREMIUM CARD DESIGN ===== */

.megamenu-column {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    padding: 16px 14px;
    border-right: 1px solid #f1f5f9;
    box-sizing: border-box;
    overflow: hidden;
}

.megamenu-column:last-child {
    border-right: none;
}

.megamenu-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: #E89548 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    margin-top: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(232, 149, 72, 0.12);
    white-space: normal;
    font-family: 'Inter', sans-serif;
}

.megamenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.megamenu-list li {
    margin-bottom: 2px;
}

/* --- CARD ITEMS --- */
.megamenu-list a {
    display: block;
    color: #475569 !important;
    text-decoration: none !important;
    font-size: 0.82rem;
    transition: all 0.2s ease;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 400;
    line-height: 1.4;
    background: transparent;
    border: 1px solid transparent;
}

.megamenu-list a strong {
    display: flex;
    font-weight: 600;
    color: #1e293b !important;
    margin-bottom: 1px;
    white-space: normal;
    word-break: break-word;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    line-height: 1.3;
    font-size: 0.82rem;
    font-family: 'Inter', sans-serif;
}

.megamenu-list a strong i {
    color: #cbd5e1;
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.megamenu-list a .megamenu-desc {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8 !important;
    line-height: 1.3;
    font-weight: 400;
    padding-left: 26px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* HOVER EFFECT */
.megamenu-list a:hover {
    background: rgba(232, 149, 72, 0.06) !important;
    border-color: rgba(232, 149, 72, 0.1) !important;
}

.megamenu-list a:hover strong {
    color: #E89548 !important;
}

.megamenu-list a:hover strong i {
    color: #E89548 !important;
}

.megamenu-list a:hover .megamenu-desc {
    color: #64748b !important;
}

/* Responsive mega menu */
@media (max-width: 1199px) {
    .megamenu-content {
        min-width: 350px;
    }

    .megamenu-column {
        min-width: 150px;
        padding: 20px 15px;
    }
}

@media (max-width: 768px) {
    .megamenu-content {
        min-width: 280px;
    }

    .megamenu-column {
        min-width: 140px;
        padding: 15px 10px;
    }

    .megamenu-title {
        font-size: 0.75rem;
    }

    .megamenu-list a {
        font-size: 0.85rem;
    }
}

/* Mobile-friendly mega menu layout */
@media (max-width: 991px) {
    .kheweul-megamenu {
        position: static;
    }

    .kheweul-megamenu>a {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
    }

    .megamenu-content {
        position: relative;
        display: none;
        width: 100%;
        min-width: 100%;
        box-shadow: none;
        border-radius: 12px;
        padding: 0.5rem 0;
        margin-top: 0.5rem;
    }

    .kheweul-megamenu.show .megamenu-content,
    .kheweul-megamenu .dropdown-menu.show {
        display: block;
    }

    .megamenu-column {
        width: 100%;
        min-width: 100%;
        padding: 0.75rem 0;
        border-right: 0;
        border-top: 1px solid #f0f0f0;
    }

    .megamenu-column:first-child {
        border-top: 0;
    }

    .megamenu-title {
        padding: 0 1rem 0.5rem;
        margin: 0;
    }

    .megamenu-list a {
        padding: 0.75rem 1.25rem;
    }
}

/* ================================================
   NAVBAR SUBMENU RESPONSIVE ENHANCEMENTS
   ================================================ */

/* Desktop Submenu Styles (1200px+) */
@media (min-width: 1200px) {

    /* Enhanced dropdown menu */
    .navbar-nav .dropdown-menu {
        min-width: 260px;
        border: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border-radius: 10px;
        padding: 0.75rem 0;
        margin-top: 0.75rem;
        animation: fadeInDown 0.3s ease;
        max-height: 500px;
        overflow-y: auto;
    }

    .navbar-nav .dropdown-item {
        padding: 0.875rem 1.75rem;
        transition: all 0.2s ease;
        font-weight: 500;
        font-size: 0.95rem;
        position: relative;
    }

    .navbar-nav .dropdown-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: #E89548;
        transform: scaleY(0);
        transition: transform 0.2s ease;
    }

    .navbar-nav .dropdown-item:hover {
        background: linear-gradient(90deg, rgba(30, 58, 138, 0.05) 0%, transparent 100%);
        color: #1e3a8a;
        padding-left: 2.25rem;
    }

    .navbar-nav .dropdown-item:hover::before {
        transform: scaleY(1);
    }

    .navbar-nav .dropdown-item:active {
        background: rgba(30, 58, 138, 0.1);
        color: #1e3a8a;
    }

    /* Nested dropdown */
    .navbar-nav .dropdown-submenu {
        position: relative;
    }

    .navbar-nav .dropdown-submenu .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -0.75rem;
        margin-left: 0.125rem;
    }

    .navbar-nav .dropdown-submenu:hover>.dropdown-menu {
        display: block;
    }

    /* Dropdown arrow indicator */
    .navbar-nav .dropdown-submenu>a::after {
        content: '\f105';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        float: right;
        margin-left: 0.5rem;
        transition: transform 0.2s ease;
    }

    .navbar-nav .dropdown-submenu:hover>a::after {
        transform: translateX(3px);
    }
}

/* Tablet Styles (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {

    /* Collapsed navbar on tablet */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        margin-top: 0.75rem;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-nav {
        padding: 1.25rem 0;
    }

    .navbar-nav .nav-item {
        padding: 0 1rem;
        border-bottom: 1px solid #f3f4f6;
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link {
        padding: 1rem 1.25rem;
        border-radius: 8px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-nav .nav-link:hover {
        background: #f9fafb;
        color: #1e3a8a;
        padding-left: 1.75rem;
    }

    /* Dropdown styling for tablet */
    .navbar-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none;
        box-shadow: none;
        background: #f9fafb;
        border-radius: 8px;
        margin: 0.5rem 1rem;
        padding: 0.5rem;
    }

    .navbar-nav .dropdown-item {
        padding: 0.875rem 1rem;
        border-radius: 6px;
        font-size: 0.95rem;
        transition: all 0.2s ease;
    }

    .navbar-nav .dropdown-item:hover {
        background: white;
        color: #1e3a8a;
        padding-left: 1.75rem;
    }

    /* Dropdown toggle indicator */
    .navbar-nav .dropdown-toggle::after {
        float: right;
        margin-top: 0.5rem;
        border: none;
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        transition: transform 0.3s ease;
    }

    .navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }

    /* Nested dropdowns on tablet */
    .navbar-nav .dropdown-submenu .dropdown-menu {
        background: #f3f4f6;
        margin-left: 1rem;
        border-left: 2px solid #E89548;
    }
}

/* Mobile Styles (max-width: 767px) */
@media (max-width: 767px) {

    /* Mobile navbar container */
    .kheweul-main-nav {
        position: relative;
    }

    /* Brand adjustments */
    .navbar-brand {
        font-size: 1.25rem;
        padding: 0.5rem 0;
    }

    .navbar-brand img {
        max-height: 40px;
    }

    /* Hamburger button */
    .navbar-toggler {
        border: none;
        padding: 0.75rem;
        border-radius: 8px;
        transition: background 0.2s ease;
    }

    .navbar-toggler:focus {
        box-shadow: none;
        background: rgba(30, 58, 138, 0.08);
    }

    /* Hamburger animation */
    .kheweul-hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 26px;
    }

    .hamburger-bar {
        display: block;
        height: 3px;
        background: #1e3a8a;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .navbar-toggler[aria-expanded="true"] .hamburger-bar:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
        background: #E89548;
    }

    .navbar-toggler[aria-expanded="true"] .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggler[aria-expanded="true"] .hamburger-bar:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
        background: #E89548;
    }

    /* Collapsed menu */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        margin-top: 0.75rem;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1000;
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .navbar-nav .nav-item {
        padding: 0;
        border-bottom: 1px solid #f3f4f6;
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link {
        padding: 1.125rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        color: #1f2937;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:active {
        background: linear-gradient(90deg, #dbeafe 0%, transparent 100%);
        color: #1e3a8a;
        padding-left: 2rem;
    }

    .navbar-nav .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: #E89548;
        transform: scaleY(0);
        transition: transform 0.2s ease;
    }

    .navbar-nav .nav-link:hover::before {
        transform: scaleY(1);
    }

    /* Mobile Dropdown */
    .navbar-nav .dropdown-toggle {
        position: relative;
    }

    .navbar-nav .dropdown-toggle::after {
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 0.875rem;
        transition: transform 0.3s ease;
    }

    .navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .navbar-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none;
        box-shadow: none;
        background: #f9fafb;
        border-radius: 0;
        padding: 0;
        margin: 0;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            max-height: 0;
            opacity: 0;
        }

        to {
            max-height: 600px;
            opacity: 1;
        }
    }

    .navbar-nav .dropdown-item {
        padding: 1rem 1.5rem 1rem 3.5rem;
        font-size: 0.95rem;
        color: #4b5563;
        transition: all 0.2s ease;
        position: relative;
    }

    .navbar-nav .dropdown-item::before {
        content: '';
        position: absolute;
        left: 2.25rem;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        background: #E89548;
        border-radius: 50%;
        transition: all 0.2s ease;
    }

    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:active {
        background: white;
        color: #1e3a8a;
        padding-left: 4rem;
    }

    .navbar-nav .dropdown-item:hover::before {
        background: #1e3a8a;
        transform: translateY(-50%) scale(1.4);
    }

    /* Nested dropdown on mobile */
    .navbar-nav .dropdown-submenu .dropdown-menu {
        background: #f3f4f6;
        padding-left: 0;
        border-left: 3px solid #E89548;
        margin-left: 1.5rem;
    }

    .navbar-nav .dropdown-submenu .dropdown-item {
        padding-left: 4.5rem;
    }

    /* Secondary navbar (account menu) */
    .navbar-nav.ml-auto {
        border-top: 2px solid #e5e7eb;
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .navbar-nav.ml-auto .nav-item {
        border-bottom: none;
        margin: 0.5rem 1rem;
    }

    .navbar-nav.ml-auto .nav-link {
        background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
        color: white !important;
        border-radius: 10px;
        text-align: center;
        padding: 1rem 1.5rem;
        font-weight: 700;
    }

    .navbar-nav.ml-auto .nav-link:hover {
        background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
    }

    .navbar-nav.ml-auto .nav-link::before {
        display: none;
    }
}

/* Small Mobile (max-width: 375px) */
@media (max-width: 375px) {
    .navbar-nav .nav-link {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .navbar-nav .dropdown-item {
        padding: 0.875rem 1.25rem 0.875rem 3rem;
        font-size: 0.9rem;
    }

    .navbar-nav .dropdown-item::before {
        left: 1.75rem;
        width: 5px;
        height: 5px;
    }
}

/* Smooth transitions for collapsing */
@media (max-width: 1199px) {
    .navbar-collapse.collapsing {
        transition: height 0.35s ease;
    }

    .navbar-collapse.show {
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }
}

/* Accessibility improvements */
.navbar-nav .nav-link:focus,
.navbar-nav .dropdown-item:focus {
    outline: 2px solid #E89548;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {

    .navbar-nav .nav-link,
    .navbar-nav .dropdown-item {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

@media (max-width: 1199px) {
    .navbar-collapse.show~* {
        pointer-events: none;
    }
}

/* ==========================================================================
   PRODUCT CATEGORIES SECTION - Tabs Navigation (Namecheap Style)
   ========================================================================== */

.kheweul-categories-section {
    background: white;
    padding: 4rem 0;
    display: block !important;
    width: 100% !important;
    position: relative !important;
    z-index: 10 !important;
}

.kheweul-categories-section .section-header {
    margin-bottom: 2.5rem;
}

.kheweul-categories-section .section-title {
    color: #2C3E50;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

/* Categories Navigation */
.categories-nav-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.categories-nav {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0.5rem;
}

/* Category Tab Button - Clean Minimal Style */
.category-tab {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background: transparent;
    border: none;
    color: #666666;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
    border-radius: 6px;
}

.category-tab:hover {
    color: #2C3E50;
    background: rgba(232, 149, 72, 0.05);
}

/* Active State - Orange highlight */
.category-tab.active {
    background: white;
    color: #E89548;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Deals Section */
.deals-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e9ecef;
}

.deals-title {
    color: #2C3E50;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.deals-subtitle {
    color: #666666;
    font-size: 1rem;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .kheweul-categories-section {
        padding: 2.5rem 0;
    }

    .kheweul-categories-section .section-title {
        font-size: 1.5rem;
    }

    .categories-nav {
        gap: 0;
        padding: 0.25rem;
    }

    .category-tab {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }

    .deals-section {
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .deals-title {
        font-size: 1.25rem;
    }

    .deals-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .categories-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        margin: 0 -1rem;
        padding: 0.5rem 1rem;
        border-radius: 0;
    }

    .category-tab {
        padding: 0.65rem 1rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .kheweul-categories-section .section-title {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   PAGE DE CONNEXION — PREMIUM MOCKUP
   ========================================================================== */

.kw-login-wrapper {
    display: flex;
    min-height: calc(100vh - 140px);
    /* Adjust based on header height */
    margin: -2rem -15px 0;
    border-radius: 0;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    /* Soft shadow if contained, but it's full width */
    background: #ffffff;
}

/* ── Panneau gauche : brand ── */
.kw-login-brand {
    flex: 0 0 45%;
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

/* Premium glows */
.kw-login-brand::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 149, 72, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.kw-login-brand::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -150px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.kw-login-brand-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 380px;
    width: 100%;
}

.kw-login-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    text-decoration: none;
}

.kw-login-logo-img {
    height: 48px;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

.kw-login-logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.kw-logo-k {
    color: #E89548;
}

.kw-brand-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.kw-brand-accent {
    color: #E89548;
}

.kw-brand-subtitle {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.kw-brand-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 1rem;
}

.kw-brand-stat {
    text-align: center;
    flex: 1;
}

.kw-brand-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #E89548;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.kw-brand-stat-label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.kw-brand-stat-divider {
    width: 1px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Illustration SVG Afrique */
.kw-africa-illustration {
    width: 200px;
    margin: 0 auto 3rem;
    opacity: 0.85;
}

.kw-africa-illustration svg {
    width: 100%;
    height: auto;
    animation: kw-float 8s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

@keyframes kw-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ── Panneau droit : formulaire ── */
.kw-login-form-panel {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
}

.kw-login-form-inner {
    width: 100%;
    max-width: 420px;
}

.kw-login-form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.kw-login-wave-icon {
    font-size: 3rem;
    color: #E89548;
    margin-bottom: 1rem;
    line-height: 1;
    background: rgba(232, 149, 72, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.kw-login-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem;
    letter-spacing: -0.5px;
}

.kw-login-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

/* Champs */
.kw-form-group {
    margin-bottom: 1.5rem;
}

.kw-form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.kw-form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.kw-forgot-link {
    font-size: 0.85rem;
    color: #E89548;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.kw-forgot-link:hover {
    color: #D07B30;
    text-decoration: underline;
}

.kw-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.kw-input-icon {
    position: absolute;
    left: 1.2rem;
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.kw-input {
    width: 100%;
    padding: 0.9rem 3rem 0.9rem 3rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.kw-input:focus {
    border-color: #E89548;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(232, 149, 72, 0.15);
}

/* Fix browser autofill background */
.kw-input:-webkit-autofill,
.kw-input:-webkit-autofill:hover,
.kw-input:-webkit-autofill:focus,
.kw-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #0f172a !important;
    transition: background-color 5000s ease-in-out 0s;
}

.kw-input::placeholder {
    color: #94a3b8;
    opacity: 0.8;
}

.kw-pw-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    transition: color 0.2s;
    z-index: 2;
}

.kw-pw-toggle:hover {
    color: #E89548;
}

/* Options (se souvenir) */
.kw-form-options {
    margin-bottom: 1.5rem;
}

.kw-remember {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.kw-remember-check {
    width: 18px;
    height: 18px;
    accent-color: #E89548;
    cursor: pointer;
    border-radius: 4px;
}

.kw-remember-label {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

/* Captcha */
.kw-captcha-wrap {
    margin-bottom: 1.5rem;
}

/* Bouton connexion */
.kw-btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #E89548 0%, #d97706 100%);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 149, 72, 0.3);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.kw-btn-login:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 8px 25px rgba(232, 149, 72, 0.4);
    transform: translateY(-2px);
}

.kw-btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(232, 149, 72, 0.3);
}

/* Sécurité SSL */
.kw-login-security {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.kw-login-security i {
    color: #10b981;
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Pied */
.kw-login-footer {
    text-align: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.kw-login-footer p {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 1rem;
}

.kw-register-link {
    color: #E89548;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.kw-register-link:hover {
    color: #d97706;
    text-decoration: underline;
}

.kw-login-payment-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.kw-payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    /* Slightly squarish pills instead of fully round */
    padding: 0.4rem 0.8rem;
    transition: all 0.2s ease;
}

.kw-payment-badge:hover {
    background: #ffffff;
    border-color: #E89548;
    color: #E89548;
    box-shadow: 0 2px 5px rgba(232, 149, 72, 0.1);
    transform: translateY(-1px);
}

.kw-payment-badge i {
    color: #E89548;
    font-size: 0.9rem;
}

/* Responsive login */
@media (max-width: 991px) {
    .kw-login-wrapper {
        flex-direction: column;
        margin: -1rem -15px 0;
    }

    .kw-login-brand {
        flex: 0 0 auto;
        padding: 3rem 2rem;
    }

    .kw-africa-illustration {
        width: 140px;
        margin-bottom: 1.5rem;
    }

    .kw-brand-title {
        font-size: 1.75rem;
    }

    .kw-login-form-panel {
        padding: 3rem 2rem;
    }
}

@media (max-width: 576px) {
    .kw-brand-title {
        font-size: 1.5rem;
    }

    .kw-brand-subtitle {
        font-size: 0.95rem;
    }

    .kw-brand-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .kw-brand-stat-divider {
        width: 100%;
        height: 1px;
    }

    .kw-login-form-panel {
        padding: 2.5rem 1.5rem;
    }

    .kw-login-wave-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .kw-login-title {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   LOGIN — Dark Mode
   Toutes les propriétés utilisent !important pour battre les règles
   globales dark mode (body.dark-mode input { ... !important })
   ========================================================================== */

/* Conteneurs page — élimine la bande claire entre navbar et login */
body.dark-mode section#main-body {
    background: transparent !important;
    padding-top: 0 !important;
}

body.dark-mode.primary-bg-color {
    background-color: #0f172a !important;
}

/* Panneau formulaire */
body.dark-mode .kw-login-form-panel {
    background: #1e293b !important;
}

body.dark-mode .kw-login-form-inner {
    background: transparent !important;
}

/* Textes en-tête */
body.dark-mode .kw-login-title {
    color: #e2e8f0 !important;
}

body.dark-mode .kw-login-subtitle {
    color: #94a3b8 !important;
}

/* Labels */
body.dark-mode .kw-form-label {
    color: #cbd5e1 !important;
}

/* Inputs — !important obligatoire pour battre body.dark-mode input */
body.dark-mode .kw-input-wrap {
    background: #0f172a !important;
    border-color: #334155 !important;
}

body.dark-mode .kw-input {
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

body.dark-mode .kw-input::placeholder {
    color: #64748b !important;
}

body.dark-mode .kw-input:focus {
    background: #1e293b !important;
    border-color: #E89548 !important;
    box-shadow: 0 0 0 3px rgba(232, 149, 72, 0.15) !important;
}

body.dark-mode .kw-input-icon {
    color: #64748b !important;
}

/* Toggle mot de passe (icône œil) */
body.dark-mode .kw-pw-toggle,
body.dark-mode .btn-reveal-pw {
    color: #64748b !important;
}

body.dark-mode .kw-pw-toggle:hover,
body.dark-mode .btn-reveal-pw:hover {
    color: #E89548 !important;
}

/* Options formulaire */
body.dark-mode .kw-form-options label {
    color: #94a3b8 !important;
}

body.dark-mode .kw-remember-label {
    color: #94a3b8 !important;
}

/* Badge sécurité SSL */
body.dark-mode .kw-login-security {
    color: #64748b !important;
}

/* Pied de formulaire */
body.dark-mode .kw-login-footer {
    background: transparent !important;
    border-top-color: #334155 !important;
}

body.dark-mode .kw-login-footer p {
    color: #94a3b8 !important;
}

/* Badges paiement (Wave, Orange Money, Carte bancaire) */
body.dark-mode .kw-payment-badge {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

/* ==========================================================================
   DASHBOARD CLIENT — Phase 5
   ========================================================================== */

/* Barre d'alerte */
.kw-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.kw-alert-warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.kw-alert-icon {
    font-size: 1.2rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.kw-alert-content {
    flex: 1;
}

.kw-alert-content strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.kw-alert-sub {
    font-size: 0.82rem;
    opacity: 0.75;
}

.kw-alert-btn {
    flex-shrink: 0;
    padding: 0.45rem 1rem;
    background: #f59e0b;
    color: #fff;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.kw-alert-btn:hover {
    background: #d97706;
    color: #fff;
    text-decoration: none;
}

/* En-tête dashboard */
.kw-dash-header {
    margin-bottom: 1.75rem;
}

.kw-dash-greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.kw-dash-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.kw-dash-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.kw-dash-brand {
    color: #E89548;
    font-weight: 600;
}

.kw-dash-header-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.kw-dash-action-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.kw-btn-primary {
    background: linear-gradient(135deg, #E89548, #D07B30);
    color: #fff;
    box-shadow: 0 3px 10px rgba(208, 123, 48, 0.3);
}

.kw-btn-primary:hover {
    background: linear-gradient(135deg, #D07B30, #b86820);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(208, 123, 48, 0.4);
    transform: translateY(-1px);
}

.kw-btn-ghost {
    background: transparent;
    color: #475569;
    border: 1.5px solid #e2e8f0;
}

.kw-btn-ghost:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
    text-decoration: none;
}

/* Grille statistiques */
.kw-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.kw-stat-tile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.kw-stat-tile:hover {
    border-color: #E89548;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.kw-stat-tile--urgent {
    border-color: #fca5a5;
    background: #fff5f5;
}

.kw-stat-tile--active {
    border-color: #fed7aa;
    background: #fffaf5;
}

.kw-stat-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.kw-icon-blue {
    background: #eff6ff;
    color: #3b82f6;
}

.kw-icon-green {
    background: #f0fdf4;
    color: #10b981;
}

.kw-icon-red {
    background: #fff5f5;
    color: #ef4444;
}

.kw-icon-orange {
    background: #fff7ed;
    color: #f97316;
}

.kw-icon-slate {
    background: #f8fafc;
    color: #94a3b8;
}

.kw-stat-tile-body {
    flex: 1;
    min-width: 0;
}

.kw-stat-tile-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.kw-text-red {
    color: #ef4444 !important;
}

.kw-stat-tile-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 0.15rem;
}

.kw-stat-tile-arrow {
    color: #cbd5e1;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.kw-stat-badge-urgent {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kw-stat-badge-active {
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    background: #f97316;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.35rem;
    flex-shrink: 0;
}

/* Section titre */
.kw-section {
    margin-bottom: 2rem;
}

.kw-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kw-section-icon {
    color: #E89548;
    font-size: 0.95rem;
}

/* Grille actions rapides */
.kw-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.kw-quick-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.kw-quick-card:hover {
    border-color: #E89548;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.kw-quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.kw-icon-bg-blue {
    background: #eff6ff;
    color: #3b82f6;
}

.kw-icon-bg-green {
    background: #f0fdf4;
    color: #10b981;
}

.kw-icon-bg-orange {
    background: #fff7ed;
    color: #f97316;
}

.kw-icon-bg-purple {
    background: #faf5ff;
    color: #8b5cf6;
}

.kw-icon-bg-red {
    background: #fff5f5;
    color: #ef4444;
}

.kw-icon-bg-teal {
    background: #f0fdfa;
    color: #14b8a6;
}

.kw-quick-body {
    flex: 1;
    min-width: 0;
}

.kw-quick-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.kw-quick-desc {
    display: block;
    font-size: 0.77rem;
    color: #94a3b8;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kw-quick-arrow {
    color: #cbd5e1;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Panneaux natifs WHMCS — restyling */
.kw-panels-section {
    margin-bottom: 2rem;
}

.kw-panel-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.kw-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.kw-panel-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kw-panel-icon-native {
    color: #E89548;
    font-size: 0.9rem;
}

.kw-panel-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    background: #E89548;
    color: #fff;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
}

.kw-panel-badge-sm {
    padding: 0.15rem 0.45rem;
    font-size: 0.68rem;
}

.kw-panel-body {
    padding: 1rem 1.25rem;
    font-size: 0.88rem;
    color: #475569;
}

.kw-panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kw-panel-list-item {
    border-bottom: 1px solid #f8fafc;
}

.kw-panel-list-item:last-child {
    border-bottom: none;
}

.kw-panel-list-link {
    display: flex;
    align-items: center;
    padding: 0.7rem 1.25rem;
    font-size: 0.88rem;
    color: #334155;
    text-decoration: none;
    transition: background 0.15s ease;
    cursor: pointer;
}

.kw-panel-list-link:hover,
.kw-panel-list-link.active {
    background: #fafafa;
    color: #E89548;
    text-decoration: none;
}

.kw-list-icon {
    color: #94a3b8;
    width: 16px;
    text-align: center;
}

.kw-panel-footer {
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
}

/* Bannière support WhatsApp */
.kw-support-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #10b981;
    border-radius: 12px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.kw-support-banner-icon {
    font-size: 2rem;
    color: #059669;
    line-height: 1;
    flex-shrink: 0;
}

.kw-support-banner-text {
    flex: 1;
    color: #065f46;
    font-size: 0.9rem;
    line-height: 1.5;
}

.kw-support-banner-text strong {
    display: block;
    color: #064e3b;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.kw-support-banner-btn {
    flex-shrink: 0;
    padding: 0.65rem 1.4rem;
    background: #10b981;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.kw-support-banner-btn:hover {
    background: #059669;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

/* === DARK MODE : Bannière support WhatsApp === */
html.dark-mode .kw-support-banner {
    background: linear-gradient(135deg, rgba(6, 95, 70, 0.4), rgba(4, 120, 87, 0.2));
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

html.dark-mode .kw-support-banner-icon {
    color: #34d399;
}

html.dark-mode .kw-support-banner-text {
    color: rgba(255, 255, 255, 0.85);
}

html.dark-mode .kw-support-banner-text strong {
    color: #ffffff;
}

html.dark-mode .kw-support-banner-btn {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: none;
}

html.dark-mode .kw-support-banner-btn:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

/* Responsive dashboard */
@media (max-width: 1100px) {
    .kw-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kw-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kw-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .kw-quick-grid {
        grid-template-columns: 1fr;
    }

    .kw-dash-greeting {
        flex-direction: column;
        align-items: flex-start;
    }

    .kw-dash-title {
        font-size: 1.3rem;
    }

    .kw-support-banner {
        flex-direction: column;
        text-align: center;
    }

    .kw-quick-desc {
        display: none;
    }

    .kw-stat-tile-value {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .kw-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .kw-alert {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* ========================================
   FOOTER PAYMENT ICONS
   ======================================== */
.kw-footer-payments {
    gap: 0.75rem;
    align-items: center;
}

/* Visa — bleu officiel */
.kw-pay-visa {
    color: #1A1F71 !important;
    background: #fff;
    border-radius: 6px;
    padding: 2px 4px;
    font-size: 2rem !important;
    line-height: 1 !important;
}

/* Mastercard — rouge officiel */
.kw-pay-mastercard {
    color: #EB001B !important;
    background: #fff;
    border-radius: 6px;
    padding: 2px 4px;
    font-size: 2rem !important;
    line-height: 1 !important;
}

/* Wave logo image */
.payment-icon-img {
    height: 28px;
    width: auto;
    background: #fff;
    border-radius: 6px;
    padding: 3px 6px;
    object-fit: contain;
}

/* Badge texte Orange Money */
.kw-pay-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    line-height: 1.6;
    letter-spacing: 0.2px;
}

.kw-pay-orange {
    background: #FF6600;
    color: #fff;
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */
.kw-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none !important;
    animation: kw-wa-pulse 2s infinite;
}

.kw-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    animation: none;
}

@keyframes kw-wa-pulse {

    0%,
    100% {
        box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6);
    }
}

@media (max-width: 768px) {
    .kw-whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }

    .kw-whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* ========================================
   FOOTER INFO BAR
   ======================================== */
.kw-footer-info-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.kw-footer-info-item {
    color: #94a3b8;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kw-footer-info-item a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kw-footer-info-item a:hover {
    color: #E89548;
}

.kw-footer-info-item i {
    color: #E89548;
}

/* ==========================================================================
   PAGE INSCRIPTION — clientregister.tpl
   ========================================================================== */

/* Panneau inscription plus large (formulaire long) */
.kw-register-panel {
    overflow-y: auto;
}

.kw-register-inner {
    max-width: 560px;
    padding: 40px 48px;
}

/* Sections du formulaire */
.kw-register-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.kw-register-section:last-of-type {
    border-bottom: none;
}

.kw-register-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 20px;
}

.kw-register-step {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #E89548, #d07b30);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Champ requis / optionnel */
.kw-required {
    color: #ef4444;
    font-weight: 600;
}

.kw-optional {
    color: #94a3b8;
    font-size: 0.8em;
    font-weight: 400;
}

/* Select wrapper */
.kw-select-wrap {
    position: relative;
}

.kw-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px !important;
    cursor: pointer;
}

.kw-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 0.75rem;
}

/* Force mot de passe */
.kw-password-strength-wrap {
    margin-top: 4px;
    margin-bottom: 8px;
}

.kw-strength-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 6px;
    margin-bottom: 10px;
}

.kw-generate-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kw-generate-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* CGU */
.kw-register-tos {
    margin: 16px 0;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.kw-tos-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    font-size: 0.875rem;
    color: #475569;
    font-weight: 400;
}

.kw-tos-check {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #E89548;
}

.kw-tos-link {
    color: #E89548;
    font-weight: 600;
    text-decoration: none;
}

.kw-tos-link:hover {
    text-decoration: underline;
}

/* Marketing opt-in */
.kw-register-optin {
    margin: 14px 0;
}

.kw-optin-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.kw-optin-check {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #E89548;
}

.kw-optin-text {
    font-size: 0.875rem;
    color: #64748b;
}

/* Avantages dans panneau gauche */
.kw-register-benefits {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 28px 0 32px;
}

.kw-register-benefit {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.kw-benefit-icon {
    width: 36px;
    height: 36px;
    background: rgba(232, 149, 72, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E89548;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.kw-benefit-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kw-benefit-text strong {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
}

.kw-benefit-text span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
}

.kw-field-help {
    font-size: 0.78rem;
    color: #94a3b8;
    display: block;
    margin-top: 4px;
}

/* ==========================================================================
   INSCRIPTION — Groupes de champs (kw-rg-group)
   Remplace les sections numérotées par des groupes compacts
   ========================================================================== */

.kw-rg-group {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.kw-rg-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.kw-rg-group-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 14px;
}

/* Réduction de l'espacement entre champs dans le formulaire register */
.kw-register-form .kw-form-group {
    margin-bottom: 12px;
}

/* Indicateur de force : barre et bouton sur même ligne */
.kw-strength-bar-track {
    margin-bottom: 6px;
}

/* Dark mode — variables CSS pour la barre de force */
body.dark-mode {
    --kw-strength-track: #334155;
}

/* ==========================================================================
   INSCRIPTION — Dark Mode
   ========================================================================== */

body.dark-mode .kw-rg-group {
    border-bottom-color: #334155 !important;
}

body.dark-mode .kw-rg-group-label {
    color: #64748b !important;
}

body.dark-mode .kw-register-section-title {
    color: #e2e8f0 !important;
}

body.dark-mode .kw-register-section {
    border-bottom-color: #334155 !important;
}

body.dark-mode .kw-register-tos {
    background: #0f172a !important;
    border-color: #334155 !important;
}

body.dark-mode .kw-tos-label {
    color: #94a3b8 !important;
}

body.dark-mode .kw-tos-link {
    color: #E89548 !important;
}

body.dark-mode .kw-generate-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

body.dark-mode .kw-generate-btn:hover {
    background: #334155 !important;
    color: #e2e8f0 !important;
}

body.dark-mode .kw-strength-label {
    color: #64748b !important;
}

body.dark-mode .kw-field-help {
    color: #64748b !important;
}

body.dark-mode .kw-register-optin {
    color: #94a3b8 !important;
}

body.dark-mode .kw-optin-text {
    color: #94a3b8 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .kw-register-inner {
        padding: 28px 20px;
    }
}

/* ==========================================================================
   OFF-CANVAS MOBILE MENU (HOSTINGER STYLE)
   ========================================================================== */
@media (max-width: 991px) {
    #navbarNav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: #ffffff;
        z-index: 1050;
        padding: 24px;
        overflow-y: auto;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: block !important;
        box-shadow: 10px 0 50px rgba(0,0,0,0.15);
    }

    body.dark-mode #navbarNav {
        background: #0f172a;
        box-shadow: 10px 0 50px rgba(0,0,0,0.5);
    }

    /* Open State */
    #navbarNav.kw-offcanvas-open {
        left: 0 !important;
    }

    /* ===================================================================
       FORCE COULEURS VISIBLES — surcharge le CSS dynamique WHMCS
       Le sélecteur ID (#navbarNav) donne une spécificité maximale
       pour écraser toute couleur héritée (blanc sur blanc)
       =================================================================== */
    #navbarNav,
    #navbarNav * {
        box-sizing: border-box;
    }

    /* Texte principal de l'off-canvas — fond blanc donc texte sombre */
    #navbarNav .nav-link,
    #navbarNav .navbar-nav .nav-link,
    #navbarNav .navbar-nav li > a,
    #navbarNav a {
        color: #1e293b !important;
    }

    #navbarNav .nav-link:hover,
    #navbarNav .navbar-nav .nav-link:hover,
    #navbarNav a:hover {
        color: #E89548 !important;
        background: rgba(232, 149, 72, 0.06) !important;
    }

    /* Titres et textes secondaires dans les colonnes megamenu */
    #navbarNav .megamenu-title,
    #navbarNav .megamenu-title * {
        color: #64748b !important;
    }

    #navbarNav .megamenu-list a strong,
    #navbarNav .megamenu-list strong {
        color: #1e293b !important;
    }

    #navbarNav .megamenu-desc {
        color: #94a3b8 !important;
    }

    /* Dark mode : inverser les couleurs */
    body.dark-mode #navbarNav .nav-link,
    body.dark-mode #navbarNav .navbar-nav .nav-link,
    body.dark-mode #navbarNav a {
        color: #f1f5f9 !important;
    }

    body.dark-mode #navbarNav .megamenu-list a strong,
    body.dark-mode #navbarNav .megamenu-list strong {
        color: #e2e8f0 !important;
    }

    body.dark-mode #navbarNav .megamenu-desc {
        color: #94a3b8 !important;
    }

    /* ===================================================================
       STRUCTURE DES LIENS DU MENU PRINCIPAL
       =================================================================== */
    #navbarNav .main-navbar .nav-link {
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    body.dark-mode #navbarNav .main-navbar .nav-link {
        border-bottom-color: rgba(255,255,255,0.06) !important;
    }

    /* ===================================================================
       MEGAMENU EN ACCORDÉON (mobile)
       =================================================================== */
    .kheweul-megamenu .megamenu-content {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        background: #f8fafc !important;
        border-radius: 12px !important;
        padding: 8px 12px !important;
        margin-top: 4px !important;
        margin-bottom: 8px !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        backdrop-filter: none !important;
    }

    body.dark-mode .kheweul-megamenu .megamenu-content {
        background: rgba(255,255,255,0.04) !important;
    }

    /* Accordéon ouvert via la classe .show (ajoutée par kheweul-theme.js) */
    .kheweul-megamenu.show .megamenu-content {
        display: block !important;
    }

    .megamenu-column {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
        padding: 12px 0 !important;
        margin-bottom: 0 !important;
    }

    .megamenu-column:last-child {
        border-bottom: none !important;
    }

    body.dark-mode .megamenu-column {
        border-bottom-color: rgba(255,255,255,0.05) !important;
    }

    .megamenu-title {
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.08em !important;
        color: #94a3b8 !important;
        margin-bottom: 6px !important;
        padding: 0 4px !important;
    }

    .megamenu-list {
        padding-left: 0 !important;
        list-style: none !important;
        margin: 0 !important;
    }

    .megamenu-list li {
        margin-bottom: 2px !important;
    }

    /* Item simplifié : icône + label sur une ligne, sans description */
    .megamenu-list a {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 10px 12px !important;
        background: #ffffff !important;
        border-radius: 8px !important;
        text-decoration: none !important;
        transition: background 0.15s ease !important;
        min-height: 44px !important; /* Touch target minimum */
    }

    .megamenu-list a:hover,
    .megamenu-list a:active {
        background: rgba(232, 149, 72, 0.1) !important;
    }

    .megamenu-list a strong {
        display: block !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        color: #1e293b !important;
    }

    /* Cacher les descriptions sur mobile — trop verbeux, manque de place */
    .megamenu-desc {
        display: none !important;
    }

    body.dark-mode .megamenu-list a {
        background: rgba(255,255,255,0.05) !important;
    }

    body.dark-mode .megamenu-list a:hover {
        background: rgba(232,149,72,0.12) !important;
    }

    body.dark-mode .megamenu-list a strong {
        color: #f1f5f9 !important;
    }

    /* ===================================================================
       BACKDROP OFF-CANVAS
       =================================================================== */
    .kw-offcanvas-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15,23,42,0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .kw-offcanvas-backdrop.show {
        opacity: 1;
        visibility: visible;
    }
}

/* ==========================================================================
   MOBILE FOOTER ACCORDIONS (HOSTINGER STYLE)
   ========================================================================== */
@media (max-width: 767px) {
    .kw-footer-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    /* Target columns that contain expandable lists */
    .kw-footer-col:has(ul.kw-footer-list) {
        border-bottom: 1px solid rgba(0,0,0,0.06);
        padding: 16px 0;
    }
    
    body.dark-mode .kw-footer-col:has(ul.kw-footer-list) {
        border-bottom-color: rgba(255,255,255,0.06);
    }
    
    .kw-footer-col h4 {
        margin-bottom: 0 !important;
        cursor: pointer;
        padding: 4px 0;
        font-size: 1.05rem;
    }
    
    ul.kw-footer-list {
        display: none;
        padding-top: 16px;
        margin-bottom: 0;
        padding-left: 0;
    }
    
    .kw-footer-col.active ul.kw-footer-list {
        display: block;
        animation: fadeIn 0.3s ease-in-out;
    }
    
    .kw-footer-chevron {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 0.85rem;
        opacity: 0.6;
    }
    
    .kw-footer-col.active .kw-footer-chevron {
        transform: rotate(180deg);
    }
    
    .kw-footer-col ul li {
        margin-bottom: 12px;
    }
    
    /* Make the info bar more compact on mobile */
    .kw-footer-info-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px 0;
    }
}

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

/* ==========================================================================
   FLUID GRIDS (CLIENT AREA DASHBOARD)
   ========================================================================== */
.kw-fluid-grid {
    display: grid;
    gap: 20px;
    align-items: stretch;
}
.kw-fluid-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.kw-fluid-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (max-width: 576px) {
    .kw-fluid-grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
}

/* ==========================================================================
   DATA TABLES TO CARDS (MOBILE RESPONSIVE)
   ========================================================================== */
@media (max-width: 768px) {
    .table-container table.table-list, 
    .table-container table.table-list thead, 
    .table-container table.table-list tbody, 
    .table-container table.table-list th, 
    .table-container table.table-list td, 
    .table-container table.table-list tr {
        display: block;
        width: 100%;
    }
    .table-container table.table-list thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .table-container table.table-list tr {
        margin-bottom: 16px;
        background: var(--kw-app-card, #ffffff);
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        border: 1px solid var(--kw-app-border-light, #f1f5f9);
    }
    body.dark-mode .table-container table.table-list tr {
        background: #1e293b;
        border-color: #334155;
    }
    .table-container table.table-list td {
        border: none;
        border-bottom: 1px solid var(--kw-app-border-light, #f1f5f9);
        position: relative;
        padding-left: 0 !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        text-align: left !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    body.dark-mode .table-container table.table-list td {
        border-bottom-color: rgba(255,255,255,0.05);
    }
    .table-container table.table-list td:last-child {
        border-bottom: 0;
    }
    /* Expand inner contents flexibly */
    .table-container table.table-list td > * {
        flex: 1 1 auto;
    }
    .table-container table.table-list td .label.status {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 8px;
        font-size: 0.85rem;
    }
    .table-container table.table-list td .btn {
        width: 100%;
        margin-top: 8px;
    }
}

/* ==========================================================================
   OFF-CANVAS LIGHT MODE — CORRECTIF SPÉCIFICITÉ MAXIMALE
   Utilise le double-ID (#header + #navbarNav) pour battre tous les sélecteurs
   concurrents (max 1 ID dans les autres règles).
   Placé EN FIN de fichier pour gagner aussi sur l'ordre cascade.
   ========================================================================== */
@media (max-width: 991px) {

    /* Fond blanc explicite en mode light */
    body:not(.dark-mode) #header #navbarNav {
        background: #ffffff !important;
        color: #1e293b !important;
    }

    /* Tous les liens visibles en mode light */
    body:not(.dark-mode) #header #navbarNav .nav-link,
    body:not(.dark-mode) #header #navbarNav .navbar-nav li > a,
    body:not(.dark-mode) #header #navbarNav a {
        color: #1e293b !important;
        opacity: 1 !important;
        visibility: visible !important;
        background-color: transparent !important;
    }

    body:not(.dark-mode) #header #navbarNav .nav-link:hover,
    body:not(.dark-mode) #header #navbarNav a:hover {
        color: #E89548 !important;
        background-color: rgba(232, 149, 72, 0.06) !important;
    }

    /* Titres de colonnes megamenu */
    body:not(.dark-mode) #header #navbarNav .megamenu-title,
    body:not(.dark-mode) #header #navbarNav .megamenu-title * {
        color: #64748b !important;
        background-color: transparent !important;
    }

    /* Liens forts megamenu */
    body:not(.dark-mode) #header #navbarNav .megamenu-list a strong,
    body:not(.dark-mode) #header #navbarNav .megamenu-list strong {
        color: #1e293b !important;
    }

    /* Descriptions megamenu */
    body:not(.dark-mode) #header #navbarNav .megamenu-desc {
        color: #94a3b8 !important;
    }

    /* Séparateur bas de chaque item */
    body:not(.dark-mode) #header #navbarNav .main-navbar .nav-link {
        border-bottom-color: #f1f5f9 !important;
    }
}

/* ===========================================================================
   WHMCS LANGUAGE / CURRENCY MODAL FIX (NEW)
   =========================================================================== */
.kw-modal-glass {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(0,0,0,0.15);
}

.kw-modal-header {
    background: #ffffff;
    padding: 24px 32px 10px;
}

.kw-modal-footer {
    background: rgba(248, 250, 252, 0.5);
    padding: 24px 32px;
}

.kw-modal-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #64748b;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.kw-selection-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.kw-selection-grid::-webkit-scrollbar { width: 4px; }
.kw-selection-grid::-webkit-scrollbar-track { background: transparent; }
.kw-selection-grid::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.kw-select-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    background: transparent;
}

.kw-select-card:hover {
    background: #f8fafc;
}

.kw-select-card.active {
    background: rgba(232,149,72,0.06);
    border-color: rgba(232,149,72,0.2);
}

.kw-card-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.kw-flag-icon {
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.kw-curr-icon {
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.kw-select-card.active .kw-curr-icon {
    background: rgba(232,149,72,0.15);
    color: #E89548;
}

.kw-card-title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
    transition: color 0.2s;
}

.kw-select-card.active .kw-card-title {
    color: #E89548;
}

.kw-check-indicator {
    color: #E89548;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.3rem;
}

.kw-select-card.active .kw-check-indicator {
    opacity: 1;
    transform: scale(1);
}

/* ===========================================================================
   DARK MODE OVERRIDES FOR MODAL
   =========================================================================== */
body.dark-mode .kw-modal-glass { background: #0f172a; box-shadow: 0 30px 60px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05); }
body.dark-mode .kw-modal-header { background: #0f172a; }
body.dark-mode .modal-title { color: #f8fafc !important; }
body.dark-mode .close.text-muted { color: #f8fafc !important; opacity: 0.4; }
body.dark-mode .kw-modal-footer { background: rgba(15,23,42,0.9) !important; border-top: 1px solid rgba(255,255,255,0.05) !important; }
body.dark-mode .kw-select-card { background: transparent; }
body.dark-mode .kw-select-card:hover { background: rgba(255,255,255,0.03); }
body.dark-mode .kw-select-card.active { background: rgba(232,149,72,0.1); border-color: rgba(232,149,72,0.3); }
body.dark-mode .kw-card-title { color: #cbd5e1; }
body.dark-mode .kw-select-card.active .kw-card-title { color: #E89548; }
body.dark-mode .kw-curr-icon { background: rgba(255,255,255,0.05); color: #94a3b8; }
body.dark-mode .kw-select-card.active .kw-curr-icon { background: rgba(232,149,72,0.15); color: #E89548; }
body.dark-mode .kw-modal-subtitle { color: #94a3b8; }

/* ===========================================================================
   MODAL LANGUE & DEVISE — .kw-pref-*
   =========================================================================== */

/* Fond overlay */
.kw-pref-modal .modal-backdrop,
.kw-pref-modal + .modal-backdrop { z-index: 1040; }
.kw-pref-modal { z-index: 1050; }

/* Boîte du modal */
.kw-pref-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2), 0 8px 20px rgba(0,0,0,0.1);
    background: #fff;
}

/* Dialog centré, largeur raisonnable */
.kw-pref-dialog {
    max-width: 480px;
}

/* En-tête */
.kw-pref-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
}
.kw-pref-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.kw-pref-header-icon {
    width: 42px;
    height: 42px;
    background: rgba(232,149,72,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #E89548;
    flex-shrink: 0;
}
.kw-pref-title {
    margin: 0 0 2px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.kw-pref-desc {
    margin: 0;
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.2;
}
.kw-pref-close {
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 8px;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
    padding: 0;
}
.kw-pref-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* Corps */
.kw-pref-body {
    padding: 20px 24px;
    background: #fff;
}

/* Section (langue ou devise) */
.kw-pref-section + .kw-pref-divider { margin: 12px 0; }
.kw-pref-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.kw-pref-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 16px 0;
}

/* Grille de cartes */
.kw-pref-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Carte individuelle */
.kw-pref-card {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 180px;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    background: #f8fafc;
    position: relative;
}
.kw-pref-card:hover {
    border-color: #E89548;
    background: #fff8f0;
    box-shadow: 0 2px 8px rgba(232,149,72,0.12);
}
.kw-pref-card.active {
    border-color: #E89548;
    background: #fff3e0;
    box-shadow: 0 2px 12px rgba(232,149,72,0.18);
}

/* Drapeau dans carte langue */
.kw-pref-card-flag {
    width: 28px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 3px;
}

/* Badge devise (code ex: XOF, EUR) */
.kw-pref-card-badge {
    width: 42px;
    height: 42px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    color: #475569;
    flex-shrink: 0;
    letter-spacing: 0.03em;
    transition: background 0.2s, color 0.2s;
}
.kw-pref-card.active .kw-pref-card-badge {
    background: rgba(232,149,72,0.15);
    color: #E89548;
}

/* Infos textuelles */
.kw-pref-card-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.kw-pref-card-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kw-pref-card-sub {
    font-size: 0.73rem;
    color: #94a3b8;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kw-pref-card.active .kw-pref-card-name { color: #b45309; }

/* Coche de sélection */
.kw-pref-card-check {
    color: #E89548;
    font-size: 1rem;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.kw-pref-card.active .kw-pref-card-check { opacity: 1; transform: scale(1); }

/* Pied du modal */
.kw-pref-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 24px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}
.kw-pref-btn-cancel {
    background: transparent;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.kw-pref-btn-cancel:hover { border-color: #94a3b8; color: #334155; background: #f1f5f9; }
.kw-pref-btn-save {
    background: linear-gradient(135deg, #E89548 0%, #d4782a 100%);
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(232,149,72,0.35);
}
.kw-pref-btn-save:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(232,149,72,0.45); }

/* Z-index global pour Bootstrap modal sur toutes les pages */
.modal.kw-pref-modal { z-index: 9999 !important; }
.modal-backdrop { z-index: 9998 !important; }

/* ===========================================================================
   RTL — SUPPORT ARABE (body.kw-rtl)
   =========================================================================== */

/* Police arabe — chargée uniquement si RTL est actif */
body.kw-rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', 'Inter', sans-serif;
}

/* Flexbox inversé */
body.kw-rtl .d-flex:not(.flex-column):not(.flex-column-reverse) { flex-direction: row-reverse; }
body.kw-rtl .navbar-nav { flex-direction: row-reverse; }
body.kw-rtl .dropdown-menu { text-align: right; }

/* Marges et paddings Bootstrap inversés */
body.kw-rtl .ml-auto  { margin-left: 0 !important; margin-right: auto !important; }
body.kw-rtl .mr-auto  { margin-right: 0 !important; margin-left: auto !important; }
body.kw-rtl .ml-2     { margin-left: 0 !important; margin-right: 0.5rem !important; }
body.kw-rtl .ml-3     { margin-left: 0 !important; margin-right: 1rem !important; }
body.kw-rtl .mr-2     { margin-right: 0 !important; margin-left: 0.5rem !important; }
body.kw-rtl .mr-3     { margin-right: 0 !important; margin-left: 1rem !important; }
body.kw-rtl .pl-3     { padding-left: 0 !important; padding-right: 1rem !important; }
body.kw-rtl .pr-3     { padding-right: 0 !important; padding-left: 1rem !important; }

/* Bordure gauche → droite */
body.kw-rtl .border-left  { border-left: none !important; border-right: 1px solid !important; }
body.kw-rtl .kw-info-box  { border-left: none; border-right: 4px solid var(--kw-blue, #3b82f6); }

/* Header / Navbar */
body.kw-rtl .kheweul-header .navbar-brand { margin-right: 0; margin-left: 1rem; }
body.kw-rtl .kheweul-header .navbar-toggler { margin-left: 0; margin-right: auto; }
body.kw-rtl .kw-header-actions { flex-direction: row-reverse; }
body.kw-rtl .dropdown-menu-right { right: auto !important; left: 0 !important; }
body.kw-rtl .mega-menu { left: auto; right: 0; }

/* Footer */
body.kw-rtl .kw-footer-grid { direction: rtl; }
body.kw-rtl .kw-footer-social { flex-direction: row-reverse; }
body.kw-rtl .kw-footer-list  { padding-right: 0; }

/* Breadcrumb */
body.kw-rtl .breadcrumb-item + .breadcrumb-item::before { float: right; padding-left: 0.5rem; padding-right: 0; }

/* Formulaires */
body.kw-rtl input, body.kw-rtl textarea, body.kw-rtl select { text-align: right; }
body.kw-rtl .input-group > .form-control:not(:last-child) { border-radius: 0 0.375rem 0.375rem 0; }
body.kw-rtl .input-group > .input-group-append { border-radius: 0.375rem 0 0 0.375rem; }

/* Icônes dans les listes */
body.kw-rtl .kw2-feature-item { flex-direction: row-reverse; text-align: right; }
body.kw-rtl .kw-hcard-features li { flex-direction: row-reverse; text-align: right; }

/* Modal langue & devise */
body.kw-rtl .kw-pref-header { flex-direction: row-reverse; }
body.kw-rtl .kw-pref-header-left { flex-direction: row-reverse; }
body.kw-rtl .kw-pref-card { flex-direction: row-reverse; }
body.kw-rtl .kw-pref-footer { flex-direction: row-reverse; }
body.kw-rtl .kw-pref-section-label { flex-direction: row-reverse; }

/* Espace client — sidebar */
body.kw-rtl .kw-app-layout { flex-direction: row-reverse; }
body.kw-rtl .kw-app-sidebar { border-right: none; border-left: 1px solid var(--kw-border, #e2e8f0); }

/* Hero hosting page */
body.kw-rtl .kw2-hero-chips { direction: rtl; }
body.kw-rtl .kw2-hero-chip  { flex-direction: row-reverse; }
body.kw-rtl .kw2-cta-btns   { flex-direction: row-reverse; }

/* Police arabe — import Google Fonts uniquement si RTL */
body.kw-rtl { font-feature-settings: 'kern' 1; }

@media screen {
    body.kw-rtl h1, body.kw-rtl h2, body.kw-rtl h3,
    body.kw-rtl h4, body.kw-rtl h5, body.kw-rtl h6,
    body.kw-rtl p, body.kw-rtl a, body.kw-rtl span,
    body.kw-rtl li, body.kw-rtl label, body.kw-rtl button {
        letter-spacing: 0 !important; /* L'arabe n'utilise pas de letter-spacing */
    }
}