@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Inter:wght@400;500;700;800&display=swap');

:root {
    /* Base Colors - Dark Mode UI */
    --bg-base: #0f172a;
    --card-glass: rgba(30, 41, 59, 0.65);
    --nav-glass: rgba(15, 23, 42, 0.75);
    
    /* Text Colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Gradients */
    --grad-orange: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
    --grad-purple: linear-gradient(135deg, #8A2387 0%, #E94057 50%, #F27121 100%);
    --grad-green: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --grad-blue: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    
    /* Shadows */
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', 'Cairo', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   1. The Liquid Aurora Background
   ========================================= */
@keyframes fluidMove {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(5vw, -5vh) scale(1.1) rotate(120deg); }
    66% { transform: translate(-5vw, 5vh) scale(0.9) rotate(240deg); }
    100% { transform: translate(0, 0) scale(1) rotate(360deg); }
}

.background1 {
    position: fixed; width: 100vw; height: 100vh; top: 0; left: 0;
    z-index: -1; overflow: hidden; background: #020617;
}

.ball {
    position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.25;
    animation: fluidMove 25s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
.ball:nth-child(1) { width: 45vw; height: 45vw; top: -10%; left: -10%; background: #FF416C; animation-duration: 35s; }
.ball:nth-child(2) { width: 55vw; height: 55vw; top: 40%; right: -20%; background: #00c6ff; animation-duration: 40s; animation-direction: reverse; }
.ball:nth-child(3) { width: 40vw; height: 40vw; bottom: -10%; left: 20%; background: #F27121; animation-duration: 38s; }
.ball:nth-child(4) { width: 50vw; height: 50vw; top: 10%; right: 20%; background: #8A2387; animation-duration: 45s; }
.ball:nth-child(5) { width: 40vw; height: 40vw; bottom: 20%; right: 10%; background: #38ef7d; animation-duration: 32s; }
.ball:nth-child(6) { width: 35vw; height: 35vw; top: 50%; left: -5%; background: #E94057; animation-duration: 36s; }

/* =========================================
   2. Ultra-Glass Navbar
   ========================================= */
.navbar {
    background: var(--nav-glass);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    padding: 15px 5%; position: fixed; width: 100%; top: 0;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-glass); height: 78px;
}

.logo-container { display: flex; align-items: center; gap: 12px; }
.logo { width: 68px; height: 48px; background: var(--grad-orange); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 1.5rem; box-shadow: 0 8px 20px rgba(255, 65, 108, 0.4); }
.brand-name { font-size: 2rem; font-weight: 800; background: var(--grad-purple); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -1px; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-link { text-decoration: none; color: var(--text-main); font-weight: 700; font-size: 15px; transition: color 0.3s ease; }
.nav-link:hover { color: #FF416C; }

.contact-btn { background: #1e293b; color: white; padding: 10px 24px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.1); cursor: pointer; font-weight: 700; transition: all 0.3s ease; }
.contact-btn:hover { background: var(--grad-orange); border-color: transparent; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 65, 108, 0.3); }

.morocco-flag { width: 36px; height: 24px; background: url("https://upload.wikimedia.org/wikipedia/commons/2/2c/Flag_of_Morocco.svg") no-repeat center/cover; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.5); }

/* =========================================
   3. News Ticker
   ========================================= */
.news-ticker-container {
    width: 100%; background-color: #fbbf24; color: #000000; 
    overflow: hidden; white-space: nowrap; padding: 8px 0;
    position: fixed; top: 78px; z-index: 999; display: block;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.ticker-text {
    display: inline-block; white-space: nowrap; font-size: 15px; font-weight: 800;
    color: #1e293b; animation: scroll-ticker 25s linear infinite; 
}
.news-ticker-container:hover .ticker-text { animation-play-state: paused; }

@keyframes scroll-ticker { 100% { transform: translateX(100vw); } 0% { transform: translateX(-100%); } }

/* =========================================
   4. Premium Glass Coupon Cards
   ========================================= */
.banner-wrapper { max-width: 1200px; margin: 140px auto 0; padding: 0 20px; }
.banner-container { border-radius: 24px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.1); background: var(--card-glass); }
.banner { width: 100%; height: auto; display: block; object-fit: cover; opacity: 0.9; }

.coupon-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 35px; max-width: 1200px; margin: 40px auto 80px; padding: 0 20px; }

.coupon {
    width: 350px; background: var(--card-glass);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-radius: 24px; box-shadow: var(--shadow-glass);
    overflow: hidden; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; border: 1px solid rgba(255, 255, 255, 0.1);
}
.coupon:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.coupon-header { padding: 30px 20px 25px; color: white; position: relative; background: var(--grad-orange); }
.coupon-header.green { background: var(--grad-green); }
.coupon-header.purple { background: var(--grad-purple); }
.coupon-header.blue { background: var(--grad-blue); }

.store-badge, .coming-soon-badge {
    position: absolute; top: 20px; right: 20px;
    background: rgba(0, 0, 0, 0.2); backdrop-filter: blur(10px);
    padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 800; text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.2);
}
.coming-soon-badge { background: #FF416C; color: white; border: none; }

.logo-container { margin-bottom: 15px; }
.store-logo { height: 55px; width: auto; max-width: 130px; background: white; border-radius: 12px; padding: 10px; box-shadow: 0 8px 20px rgba(0,0,0,0.3); }

.discount { font-size: 38px; font-weight: 800; line-height: 1; margin-top: 10px; letter-spacing: -1px; }
.discount-tagline { font-size: 15px; font-weight: 600; opacity: 0.9; margin-top: 8px; }

.coupon-body { padding: 25px; }
.coupon-title { font-size: 22px; font-weight: 800; color: var(--text-main); margin-bottom: 10px; }
.coupon-description { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 25px; }

.coupon-details {
    display: flex; justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px; border-radius: 14px; margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.detail-item { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.detail-item strong { display: block; font-size: 15px; color: var(--text-main); font-weight: 800; margin-bottom: 4px; }

.action-button {
    display: block; width: 100%; padding: 18px;
    color: white; border: none; border-radius: 16px;
    font-size: 17px; font-weight: 800; cursor: pointer;
    transition: all 0.3s ease; text-align: center; text-decoration: none;
    background: var(--grad-orange); box-shadow: 0 10px 20px rgba(255, 65, 108, 0.3);
}
.action-button:hover { transform: scale(1.03); box-shadow: 0 15px 25px rgba(255, 65, 108, 0.4); }
.action-button.green { background: var(--grad-green); box-shadow: 0 10px 20px rgba(17, 153, 142, 0.3); }
.action-button.purple { background: var(--grad-purple); box-shadow: 0 10px 20px rgba(138, 35, 135, 0.3); }
.action-button.blue { background: var(--grad-blue); box-shadow: 0 10px 20px rgba(0, 114, 255, 0.3); }
.action-button.disabled { background: #334155; box-shadow: none; cursor: not-allowed; color: #94a3b8; }
.action-button.disabled:hover { transform: none; }

.icon-with-text { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 15px 0 0; background: rgba(0,0,0,0.2); padding: 12px; border-radius: 10px; }
.chrome-icon { width: 22px; height: auto; }
.icon-with-text h3 { font-size: 14px; color: var(--text-muted); font-weight: 700; margin: 0; }

.coupon-footer { padding: 15px 20px; background: rgba(0, 0, 0, 0.2); border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 13px; color: var(--text-muted); font-weight: 600; text-align: center; }

.coming-soon-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: center; z-index: 10; }
.coming-soon-text { font-size: 20px; font-weight: 800; color: #fff; padding: 15px 30px; background: rgba(255, 65, 108, 0.9); border-radius: 30px; box-shadow: 0 15px 35px rgba(0,0,0,0.3); text-transform: uppercase; letter-spacing: 1.5px; border: 1px solid rgba(255,255,255,0.2); }

/* =========================================
   5. Chat Widgets
   ========================================= */
.chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 1000; display: flex; flex-direction: column; gap: 15px; }
.chat-btn { padding: 14px 24px; border-radius: 30px; text-decoration: none; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 12px; color: white; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.chat-btn:hover { transform: translateY(-5px) scale(1.05); }
.whatsapp-btn { background: linear-gradient(135deg, #25D366, #128C7E); }

/* =========================================
   6. Footer
   ========================================= */
.footer { background: #020617; color: #f8fafc; padding: 70px 0 0; font-size: 15px; position: relative; z-index: 10; margin-top: 80px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; }
.footer-logo { font-weight: 800; font-size: 28px; color: white; letter-spacing: -1px; }
.footer-logo span { background: var(--grad-orange); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer-actions { display: flex; flex-direction: column; gap: 20px; min-width: 320px; }
.newsletter-input { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 15px 20px; width: 100%; color: white; margin-bottom: 10px; font-size: 15px; outline: none; transition: border 0.3s;}
.newsletter-input:focus { border-color: #FF416C; background: rgba(255, 255, 255, 0.08); }
.newsletter-button { background: var(--grad-orange); color: white; border: none; border-radius: 12px; padding: 15px 20px; font-weight: 800; cursor: pointer; width: 100%; transition: transform 0.2s, opacity 0.2s; font-size: 16px; }
.newsletter-button:hover { opacity: 0.9; transform: translateY(-2px); }
.whatsapp-contact { display: flex; align-items: center; gap: 12px; padding: 15px 20px; background: rgba(37, 211, 102, 0.1); border-radius: 12px; color: #f8fafc; text-decoration: none; border: 1px solid rgba(37, 211, 102, 0.2); font-weight: 600; transition: background 0.3s; }
.whatsapp-contact:hover { background: rgba(37, 211, 102, 0.2); }

.waffarx-footer { background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(12px); border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 1.5rem 2rem; text-align: center; color: #94a3b8; }
.footer-content { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; }
.location { display: flex; align-items: center; gap: 1rem; }
.location::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background-color: #475569; }
@media (max-width: 600px) { .location::before { display: none; } }

.inwi { display: flex; justify-content: center; margin-bottom: -30px; position: relative; z-index: 11; }
.img-inwi { height: auto; width: 200px; border-radius: 24px; box-shadow: 0 15px 35px rgba(0,0,0,0.5); border: 2px solid rgba(255,255,255,0.1); }

/* =========================================
   7. Popups & Loaders (Micro-animations)
   ========================================= */
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 6, 23, 0.7); backdrop-filter: blur(8px);
    opacity: 0; visibility: hidden; transition: all 0.4s ease; z-index: 1000;
}
.overlay.active { opacity: 1; visibility: visible; }

.loader {
    width: 50px; height: 50px;
    border: 4px solid rgba(255, 65, 108, 0.2);
    border-top-color: #FF416C; border-radius: 50%;
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
    z-index: 1002; opacity: 0; visibility: hidden; transition: opacity 0.3s;
}
.loader.active { opacity: 1; visibility: visible; }
@keyframes spin { 100% { transform: translate(-50%, -50%) rotate(360deg); } }

.popup {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -45%) scale(0.9);
    background: rgba(30, 41, 59, 0.9); backdrop-filter: blur(20px);
    padding: 40px; border-radius: 24px; width: 90%; max-width: 420px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.1);
    text-align: center; opacity: 0; visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 1001;
}
.popup.active { transform: translate(-50%, -50%) scale(1); opacity: 1; visibility: visible; }

.popup p { font-size: 18px; color: var(--text-main); font-weight: 700; margin: 20px 0 30px; line-height: 1.5; }
.accessdn { width: 120px; margin-bottom: 10px; border-radius: 16px; }
.btn-container { display: flex; gap: 12px; }
.popup-btn { padding: 14px 20px; border-radius: 12px; font-weight: 800; cursor: pointer; border: none; font-size: 15px; transition: all 0.3s ease; }
.confirm-btn { background: var(--grad-orange); color: white; flex: 2; box-shadow: 0 8px 20px rgba(255, 65, 108, 0.3); }
.confirm-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(255, 65, 108, 0.5); }
.close-btn { background: #334155; color: #f8fafc; flex: 1; border: 1px solid rgba(255,255,255,0.1); }
.close-btn:hover { background: #475569; }