/*
Theme Name: ALMAWSOUL Secure
Description: Thème sur-mesure ultra-sécurisé pour ALMAWSOUL avec vidéo d'arrière-plan animée, logo officiel en salut des deux mains (handshake), favicons dynamiques et transition ultra-douce des messages du préchargeur. Aucun constructeur de page.
Author: ALMAWSOUL
Version: 31.0
*/

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

body {
    background-color: #050914; /* Dark background to blend edges if needed */
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden; /* Hide horizontal scroll only */
    overflow-y: auto; /* Allow vertical scrolling */
    display: block; /* For standard pages */
}

/* =========================================
   ALMAWSOUL LETTER-BY-LETTER PRELOADER
   ========================================= */
.almw-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #050914;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.almw-preloader.fade-out {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
}

.almw-preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 20px;
}

.almw-loader-icon-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.almw-loader-icon {
    font-size: 3.8rem;
    background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 35%, #a855f7 70%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: almwHandshakeBreath 2.6s infinite ease-in-out;
    filter: drop-shadow(0 0 18px rgba(0, 242, 254, 0.55));
    display: inline-block;
}

@keyframes almwHandshakeBreath {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 14px rgba(0, 242, 254, 0.45));
    }
    50% {
        transform: scale(1.08) translateY(-3px);
        filter: drop-shadow(0 0 26px rgba(168, 85, 247, 0.75));
    }
}

.almw-loader-letters {
    display: flex;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 8px;
}

.almw-letter {
    position: relative;
    color: rgba(255, 255, 255, 0.12); /* Silhouette vide */
    display: inline-block;
    user-select: none;
}

/* Remplissage progressif de chaque lettre en néon lumineux */
.almw-letter::before {
    content: attr(data-letter);
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    overflow: hidden;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.7));
}

.almw-letter.filled::before {
    width: 100%;
}

.almw-loader-bar-wrap {
    width: 220px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.almw-loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00f2fe, #4facfe, #f093fb);
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.9);
    transition: width 0.15s ease-out;
}

/* Slogans Multilingues Élégants (EN / FR / AR) */
.almw-loader-slogans-container {
    min-height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4px;
}

.almw-slogan-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 8px 22px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.almw-slogan-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00f2fe;
    box-shadow: 0 0 10px #00f2fe;
    animation: almwDotPulse 1.4s infinite ease-in-out;
}

@keyframes almwDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #00f2fe; }
    50% { opacity: 0.4; transform: scale(1.4); box-shadow: 0 0 14px #f093fb; }
}

.almw-slogan-text {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: linear-gradient(90deg, #ffffff 0%, #cbd5e1 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
                filter 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-block;
    white-space: nowrap;
}

.almw-slogan-text.is-arabic {
    font-size: 1.08rem;
    letter-spacing: 0;
    font-weight: 600;
    direction: rtl;
    background: linear-gradient(90deg, #f093fb 0%, #cbd5e1 50%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.almw-slogan-text.slogan-smooth-out {
    opacity: 0;
    transform: translateY(-6px);
    filter: blur(4px);
}

.almw-slogan-text.slogan-smooth-prep {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(4px);
    transition: none !important;
}

@media (max-width: 768px) {
    .almw-loader-letters {
        font-size: 1.8rem;
        gap: 5px;
        letter-spacing: 5px;
    }
    .almw-loader-icon {
        font-size: 2.6rem;
    }
    .almw-loader-bar-wrap {
        width: 180px;
    }
}

/* Specific layout for the Homepage mockup */
body.home, body.front-page {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Aligné en haut */
    background-color: #050914;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Container takes full width of screen on PC for an immersive display */
.mockup-container {
    position: relative;
    width: 100vw; /* Prend toute la largeur de l'écran sur PC */
    height: 100vw; /* Ratio carré 1:1 */
    max-width: 1800px; /* Grand format immersif pour PC */
    max-height: 1800px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.mockup-container picture {
    display: block;
    width: 100%;
    height: 100%;
}

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

/* =========================================
   VIDEO STORYTELLING & REVEAL ARCHITECTURE
   ========================================= */
.mockup-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 1;
}

.mockup-static-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.mockup-static-bg.is-active {
    opacity: 1;
}

/* =========================================
   PERMANENT INTERFACE CONTROLS (Always 100% Visible & Clickable)
   ========================================= */
.styled-main-btn,
.styled-btn-company,
.styled-btn-worker,
.styled-btn-login,
.styled-auth-pill,
.glass-nav-wrapper,
.styled-desktop-logo,
.styled-stat-pill,
.styled-footer-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 200 !important;
}

/* Quand une modale est ouverte, on masque les boutons pour ne jamais gêner le formulaire */
body.modal-open .styled-main-btn,
body.modal-open .styled-stat-pill,
body.modal-open .glass-nav-wrapper,
body.modal-open .styled-desktop-logo,
body.modal-open .styled-auth-pill,
body.modal-open .styled-footer-wrapper {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Version: 12.0 */

/* =========================================
   OVERLAY VISIBLE HTML BUTTONS
   ========================================= */

/* Official Site Logo Desktop (Le salut des deux mains) */
.styled-desktop-logo {
    position: absolute;
    top: 7.7%;
    left: 8.5%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.6vw;
    text-decoration: none;
    z-index: 1000;
    transition: transform 0.25s ease, filter 0.25s ease;
}
.styled-desktop-logo:hover {
    transform: translateY(-50%) scale(1.05);
    filter: drop-shadow(0 0 16px rgba(0, 242, 254, 0.6));
}
.styled-logo-hand-icon {
    font-size: 2.2vw;
    background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.4));
    line-height: 1;
}
.styled-logo-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.15vw;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, #ffffff 0%, #e2e8f0 60%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

/* Navigation Links inside top pill */
.glass-nav-wrapper {
    position: absolute;
    top: 7.7%;
    left: 35%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 1.8vw;
    z-index: 1000;
}
.glass-nav-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.05vw;
    cursor: pointer;
    padding: 0.4vw 0.8vw;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.glass-nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Login/Signup Button & Logged-in Auth Pill */
.styled-btn-login {
    position: absolute;
    top: 7.7%;
    left: 84%;
    transform: translate(-50%, -50%);
    background: linear-gradient(90deg, #d3f3fb 0%, #e0f8fc 100%);
    color: #0d172a;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1vw;
    padding: 0.6vw 1.6vw;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.styled-btn-login:hover {
    transform: translate(-50%, -54%);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.45);
}

.styled-auth-pill {
    position: absolute;
    top: 7.7%;
    left: 84%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 0.6vw;
    z-index: 1000;
}
.styled-btn-space {
    background: linear-gradient(90deg, #d3f3fb 0%, #e0f8fc 100%);
    color: #0d172a;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95vw;
    padding: 0.55vw 1.2vw;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.styled-btn-space:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.45);
    color: #0d172a;
}
.styled-btn-logout-head {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85vw;
    padding: 0.55vw 1vw;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    white-space: nowrap;
}
.styled-btn-logout-head:hover {
    background: rgba(239, 68, 68, 0.35);
    color: #ffffff;
    transform: translateY(-2px);
}

/* =========================================
   LIVE STATS PILLS (PRESTATAIRES & SOCIÉTÉS)
   ========================================= */
.styled-stat-pill {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.6vw;
    background: rgba(8, 14, 28, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.55vw 1.3vw;
    border-radius: 30px;
    color: #cbd5e1;
    font-family: 'Inter', sans-serif;
    font-size: 0.92vw;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    white-space: nowrap;
}
.styled-stat-pill strong {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05em;
}
.styled-stat-workers {
    top: 37.5%;
    left: 25.5%;
    transform: translate(-50%, -50%);
    border-color: rgba(16, 185, 129, 0.4);
}
.styled-stat-companies {
    top: 37.5%;
    left: 74.5%;
    transform: translate(-50%, -50%);
    border-color: rgba(0, 242, 254, 0.4);
}
.stat-dot {
    width: 0.55vw;
    height: 0.55vw;
    min-width: 8px;
    min-height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.pulse-emerald {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: almwPulse 2s infinite ease-in-out;
}
.pulse-cyan {
    background: #00f2fe;
    box-shadow: 0 0 10px #00f2fe;
    animation: almwPulse 2s infinite ease-in-out;
}
@keyframes almwPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(1.3); }
}

/* Main Action Buttons (FIND WORKERS / OPPORTUNITIES) */
.styled-main-btn {
    position: absolute;
    background: linear-gradient(90deg, #e0f8fc 0%, #dcf4f9 100%);
    color: #051622;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.15vw;
    letter-spacing: 0.5px;
    padding: 1.2vw 2.8vw;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.styled-main-btn:hover {
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.35);
}

.styled-btn-company {
    top: 31%;
    left: 25.5%;
    transform: translate(-50%, -50%);
}
.styled-btn-company:hover {
    transform: translate(-50%, -53%) scale(1.02);
}

.styled-btn-worker {
    top: 31%;
    left: 74.5%;
    transform: translate(-50%, -50%);
}
.styled-btn-worker:hover {
    transform: translate(-50%, -53%) scale(1.02);
}

/* Footer Links */
.styled-footer-wrapper {
    position: absolute;
    top: 93.1%;
    left: 9%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 2vw;
    z-index: 1000;
}
.styled-footer-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Inter', sans-serif;
    font-size: 1vw;
    font-weight: 500;
    cursor: pointer;
    padding: 0.4vw 0.8vw;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.styled-footer-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

/* =========================================
   MOBILE HEADER & MENU
   ========================================= */
.mobile-header {
    display: none;
    position: fixed; /* Keep it fixed at the top */
    top: 0;
    left: 0;
    width: 100vw;
    padding: 20px 25px;
    z-index: 1001; /* Above mockup container */
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(5, 9, 20, 0.8) 0%, transparent 100%); /* Make it visible */
}

.mobile-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.hamburger-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.mobile-slide-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden by default */
    width: 85vw;
    max-width: 320px;
    height: 100vh;
    background: rgba(20, 25, 40, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid rgba(255,255,255,0.1);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 80px 30px;
    display: flex;
    flex-direction: column;
}

.mobile-slide-menu.active {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

.mobile-slide-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-slide-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.2s;
    display: block;
}

.mobile-slide-menu ul li a:hover {
    color: #4facfe;
}

.menu-divider {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 10px 0;
}

.btn-menu-login {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    border-radius: 25px;
    text-align: center;
    font-weight: 600;
    margin-top: 10px;
}
.mobile-slide-menu ul li a.btn-menu-login:hover {
    color: white;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.5);
}

/* Mobile Stats Box */
.mobile-stats-box {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px 10px;
    margin: 5px 0;
}
.mobile-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.mstat-num {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}
.mstat-lbl {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}
.mobile-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
}

.btn-menu-account {
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: #38bdf8 !important;
    font-weight: 600 !important;
}
.btn-menu-logout {
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: #fca5a5 !important;
    font-weight: 600 !important;
}

/* =========================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ========================================= */
@media (max-width: 768px) {
    body.home, body.front-page {
        align-items: stretch;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .mockup-container {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        max-height: none;
        overflow: hidden;
    }
    
    .mockup-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .center-hands-video-wrapper {
        width: 82%;
        height: 38%;
        top: 48%;
        left: 50%;
        transform: translate(-50%, -50%);
        -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 90%);
        mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 90%);
    }
    
    .mobile-header {
        display: flex;
    }

    .mobile-logo-icon {
        font-size: 1.6rem;
        color: #00f2fe;
        filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.6));
        vertical-align: middle;
        margin-right: 4px;
    }
    
    /* Reposition buttons for mobile background */
    .glass-nav-wrapper,
    .styled-desktop-logo,
    .styled-btn-login,
    .styled-auth-pill,
    .styled-footer-wrapper {
        display: none !important;
    }

    /* Top Card button (FIND WORKERS) */
    .styled-btn-company {
        top: 24%;
        left: 50%;
        transform: translateX(-50%);
        font-size: 3.8vw;
        padding: 3.2vw 7vw;
        width: auto;
        min-width: 60%;
        text-align: center;
        border-radius: 40px;
        white-space: nowrap;
    }
    .styled-stat-workers {
        top: 31.8%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 3.2vw;
        padding: 1.8vw 4.5vw;
        gap: 1.8vw;
        border-radius: 25px;
    }
    
    /* Bottom Card button (FIND OPPORTUNITIES) */
    .styled-btn-worker {
        top: 75.5%;
        left: 50%;
        transform: translateX(-50%);
        font-size: 3.8vw;
        padding: 3.2vw 7vw;
        width: auto;
        min-width: 60%;
        text-align: center;
        border-radius: 40px;
        white-space: nowrap;
    }
    .styled-stat-companies {
        top: 83.2%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 3.2vw;
        padding: 1.8vw 4.5vw;
        gap: 1.8vw;
        border-radius: 25px;
    }
    .stat-dot {
        width: 8px;
        height: 8px;
    }
}

/* =========================================
   MODAL STYLES (Unchanged)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 100000 !important;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 100000 !important;
}

.modal-glass {
    background: rgba(20, 25, 40, 0.88);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 35px 30px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    color: white;
}
.modal-glass::-webkit-scrollbar {
    width: 6px;
}
.modal-glass::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.auth-alert-box {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}
.auth-alert-box.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}
.auth-alert-box.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    position: absolute; top: 20px; right: 20px;
    background: transparent; border: none; color: rgba(255,255,255,0.6);
    font-size: 1.5rem; cursor: pointer; transition: color 0.2s;
}
.close-btn:hover { color: white; }
.modal-header { text-align: center; margin-bottom: 25px; }
.modal-header h2 { font-size: 1.7rem; margin-bottom: 5px; }
.modal-header p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.role-selector { display: flex; background: rgba(0, 0, 0, 0.4); border-radius: 12px; padding: 5px; margin-bottom: 20px; }
.role-btn { flex: 1; padding: 10px; border: none; background: transparent; color: rgba(255,255,255,0.6); border-radius: 8px; cursor: pointer; font-weight: 600;}
.role-btn.active { background: rgba(255, 255, 255, 0.15); color: white; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.input-group { position: relative; margin-bottom: 16px; }
.input-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.6); font-size: 1.2rem;}
.input-group input { width: 100%; padding: 14px 15px 14px 45px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; color: white; font-size: 0.95rem;}
.input-group input:focus { outline: none; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.1); }
.input-group select,
.modal-select {
    width: 100%;
    padding: 14px 15px 14px 45px;
    background: rgba(10, 15, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.2s;
}
.input-group select:focus,
.modal-select:focus {
    outline: none;
    border-color: rgba(79, 172, 254, 0.5);
    background: rgba(20, 25, 45, 0.95);
}
.input-group select option {
    background: #0d1326;
    color: #ffffff;
}
.btn-submit { width: 100%; padding: 15px; background: #fff; border: none; border-radius: 12px; color: #000; font-weight: 600; font-size: 1rem; cursor: pointer; margin-top: 10px; transition: 0.2s; }
.btn-submit:hover { box-shadow: 0 0 15px rgba(255,255,255,0.5); }
.switch-auth { text-align: center; margin-top: 20px; font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.switch-auth a { color: #fff; text-decoration: none; font-weight: 600; margin-left: 5px;}
.switch-auth a:hover { text-decoration: underline; }

/* Info Modal Content Styles */
.info-glass {
    max-width: 600px; /* Slightly wider for text content */
}
.info-content {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    font-size: 1rem;
}
.info-content h3 {
    color: #fff;
    margin-bottom: 8px;
}
.info-content p {
    margin-bottom: 15px;
}

/* =========================================
   STANDARD PAGE STYLES (For WooCommerce & Plugins)
   ========================================= */
.standard-header {
    background: #0d1326;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
}
.standard-header .logo { font-size: 1.5rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.standard-header a { color: white; text-decoration: none; font-weight: 500; }
.standard-header a:hover { color: #4facfe; }

.standard-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.standard-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}
.standard-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}
.standard-nav-logout {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5 !important;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}
.standard-nav-logout:hover {
    background: rgba(239, 68, 68, 0.3) !important;
    color: #ffffff !important;
}

.standard-main-content {
    padding: 40px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    color: white;
}
.page-content-wrapper {
    background: rgba(20, 25, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
}
.page-title {
    margin-bottom: 30px;
    font-size: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}
.page-body {
    line-height: 1.6;
}
.standard-footer {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.5);
    margin-top: 40px;
}

/* =========================================
   AUTOCOMPLÉTION ÉLASTIQUE ALMAWSOUL (NON-BLOQUANTE)
   ========================================= */
.almw-autocomplete-container {
    position: relative;
    width: 100%;
}
.almw-suggestions-box {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(13, 19, 38, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(79, 172, 254, 0.35);
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(79, 172, 254, 0.15);
    max-height: 250px;
    overflow-y: auto;
    z-index: 999999;
    padding: 6px;
    display: none;
    animation: almwFadeIn 0.2s ease-out;
}
@keyframes almwFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.almw-suggestions-box::-webkit-scrollbar {
    width: 5px;
}
.almw-suggestions-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
.almw-suggestion-item {
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.15s ease;
    font-size: 0.92rem;
    color: #e2e8f0;
}
.almw-suggestion-item:hover,
.almw-suggestion-item.active {
    background: rgba(79, 172, 254, 0.2);
    color: #ffffff;
    transform: translateX(3px);
}
.almw-suggestion-item .almw-match {
    color: #00f2fe;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.almw-suggestion-badge {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: 8px;
    white-space: nowrap;
}
.almw-suggestion-footer {
    padding: 6px 12px;
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
    text-align: right;
    font-style: italic;
}

