@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;600;700;800;900&display=swap');

* { -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: hidden; }
body {
    font-family: 'Poppins', sans-serif;
    background: #0B0F1A;
    color: #fff;
    min-height: 100vh;
    position: relative;
}
body::before {
    content: "";
    position: fixed; inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(124,58,237,.55), transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(236,72,153,.45), transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(59,130,246,.45), transparent 50%),
        radial-gradient(circle at 100% 80%, rgba(245,158,11,.35), transparent 45%);
    z-index: -2;
    animation: gradientShift 12s ease infinite;
    background-size: 200% 200%;
}
body::after {
    content: "";
    position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 44px 44px;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(circle at 50% 40%, black, transparent 80%);
}

.glass {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255,255,255,.15);
}
.glass-dark {
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255,255,255,.08);
}

.modern-preloader { position: fixed; inset: 0; background: rgba(5,8,20,.85); z-index: 10000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(12px); }
.modern-preloader.active { display: flex; }
.spinner { width: 72px; height: 72px; margin: 0 auto 22px; background: conic-gradient(from 0deg, #7C3AED, #EC4899, #F59E0B, #7C3AED); border-radius: 50%; animation: spin 1.2s linear infinite; position: relative; }
.spinner::after { content:""; position:absolute; inset:8px; background:#0B0F1A; border-radius:50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.preloader-text { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 8px; letter-spacing: .5px; }
.preloader-subtext { font-size: 14px; color: rgba(255,255,255,.7); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:.6} 50%{opacity:1} }

.swal2-container { z-index: 10001 !important; }
.swal2-popup { border-radius: 22px !important; font-family: 'Poppins', sans-serif !important; }

.quantity-btn {
    position: relative; overflow: hidden; border-radius: 18px;
    transition: transform .25s cubic-bezier(.2,.9,.3,1.4), box-shadow .25s ease, background .3s ease;
    background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
    border: 1.5px solid rgba(255,255,255,.18);
    color: #fff;
    box-shadow: 0 8px 22px -8px rgba(124,58,237,.5), inset 0 1px 0 rgba(255,255,255,.1);
}
.quantity-btn::before {
    content:""; position:absolute; inset:0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
    background-size: 200% 100%; opacity: 0; transition: opacity .3s;
}
.quantity-btn:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 14px 30px -10px rgba(124,58,237,.7); }
.quantity-btn:hover::before { opacity: 1; animation: shine 1.4s linear infinite; }
.quantity-btn.selected {
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    border-color: #fff;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 18px 40px -10px rgba(236,72,153,.75), 0 0 0 2px rgba(255,255,255,.15) inset;
}
.tick-icon {
    position: absolute; top: -8px; right: -8px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff; border-radius: 50%;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center; font-size: 12px;
    opacity: 0; transform: scale(0) rotate(-90deg);
    transition: all .35s cubic-bezier(.2,.9,.3,1.6);
    box-shadow: 0 4px 12px rgba(16,185,129,.6);
}
.quantity-btn.selected .tick-icon { opacity: 1; transform: scale(1) rotate(0); }
.custom-btn {
    background: linear-gradient(145deg, rgba(245,158,11,.15), rgba(236,72,153,.12));
    border: 1.5px dashed rgba(245,158,11,.55);
    color: #FCD34D;
}

.buy-btn {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #EC4899, #7C3AED, #F59E0B);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    box-shadow: 0 14px 38px -10px rgba(236,72,153,.75);
    transition: transform .25s ease, box-shadow .3s ease;
}
.buy-btn::before {
    content:""; position:absolute; inset:0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
    background-size: 200% 100%; animation: shine 3s linear infinite;
}
.buy-btn:not(:disabled):hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 46px -10px rgba(236,72,153,.9); }
.buy-btn:disabled { opacity: .55; cursor: not-allowed; }

.blob { position: fixed; border-radius: 50%; filter: blur(80px); opacity: .35; z-index: -1; pointer-events: none; }

.card-hover { transition: transform .4s cubic-bezier(.2,.9,.3,1.2), box-shadow .4s ease; }
.card-hover:hover { transform: translateY(-8px); box-shadow: 0 24px 60px -20px rgba(124,58,237,.7); }

.instruction-item { transition: transform .3s ease, background .3s ease; border-radius: 16px; padding: 14px 16px; }
.instruction-item:hover { background: rgba(255,255,255,.08); transform: translateX(6px); }

.mobile-drawer {
    position: fixed; top: 0; right: -100%;
    width: 84%; max-width: 340px; height: 100vh;
    background: linear-gradient(160deg, #0F172A 0%, #1E1B4B 50%, #4C1D95 100%);
    z-index: 60;
    transition: right .45s cubic-bezier(.2,.9,.3,1.2);
    box-shadow: -20px 0 60px rgba(0,0,0,.6);
    display: flex; flex-direction: column; padding: 24px 20px; overflow-y: auto;
}
.mobile-drawer.open { right: 0; }
.drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.6);
    backdrop-filter: blur(6px); z-index: 55;
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer-link {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: 16px;
    color: #E5E7EB; font-weight: 600;
    transition: all .3s ease; border: 1px solid transparent;
    position: relative; overflow: hidden;
}
.drawer-link::before {
    content:""; position: absolute; left: 0; top: 0; height: 100%; width: 4px;
    background: linear-gradient(180deg, #EC4899, #7C3AED);
    transform: scaleY(0); transition: transform .3s; transform-origin: top;
}
.drawer-link:hover, .drawer-link.active {
    background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1);
    color: #fff; transform: translateX(4px);
}
.drawer-link:hover::before, .drawer-link.active::before { transform: scaleY(1); }
.drawer-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px; box-shadow: 0 8px 20px -6px rgba(0,0,0,.6);
}

.mobile-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 50;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
    background: rgba(15,23,42,.85);
    backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(255,255,255,.1);
    display: none;
}
@media (max-width: 768px) {
    .mobile-bottom-nav { display: flex; justify-content: space-around; }
    body { padding-bottom: 78px; }
    .desktop-nav { display: none !important; }
}
.bottom-nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 6px 12px; border-radius: 14px;
    color: #94A3B8; font-size: 11px; font-weight: 600;
    transition: all .25s ease; gap: 3px;
}
.bottom-nav-item.active, .bottom-nav-item:hover {
    color: #fff;
    background: linear-gradient(135deg, rgba(124,58,237,.35), rgba(236,72,153,.25));
    transform: translateY(-3px);
}
.bottom-nav-item i { font-size: 18px; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.9,.3,1.2); }
.reveal.in { opacity: 1; transform: translateY(0); }

.hero-badge {
    background: linear-gradient(135deg, #EF4444, #F59E0B);
    animation: float 4s ease-in-out infinite;
    box-shadow: 0 12px 30px -6px rgba(245,158,11,.7);
}

.shimmer-text {
    background: linear-gradient(90deg, #FCD34D 0%, #EC4899 30%, #7C3AED 60%, #FCD34D 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; animation: gradientShift 6s linear infinite;
}

#qrModal { position:fixed;inset:0;background:rgba(0,0,0,.75);z-index:9999;display:none;align-items:center;justify-content:center;padding:0;backdrop-filter: blur(10px);}
#qrModal .app-wrap { width:100%;max-width:450px;background:linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);height:100vh;max-height:680px;margin:0 auto;display:flex;flex-direction:column;position:relative;box-shadow:0 0 60px rgba(59,130,246,0.3);border-radius:24px;overflow:hidden;font-family:'Inter',sans-serif;border: 2px solid rgba(59,130,246,0.1);}
@media (max-width: 480px){ #qrModal .app-wrap{ height:100vh; max-height:100vh; border-radius:0; } }
#qrModal *{box-sizing:border-box;margin:0;padding:0;}
#qrModal header{background:linear-gradient(180deg, #ffffff 0%, #f0f4ff 100%);color:#111827;padding:15px 20px;border-bottom:1px solid #f2f2f2;flex-shrink:0;}
#qrModal .header-top{display:flex;align-items:center;justify-content:center;position:relative;margin-bottom:12px;}
#qrModal .back-arrow{position:absolute;left:0;width:24px;cursor:pointer;}
#qrModal .pg-logo{height:auto;font-weight:900;font-size:22px;color:#00baf2;}
#qrModal .header-sub{display:flex;justify-content:space-between;align-items:center;}
#qrModal .title-text{font-size:18px;font-weight:700;color:#111827;}
#qrModal .sop-row{display:flex;justify-content:space-between;padding-top:15px;font-weight:700;color:#111827;}
#qrModal .sop-label{font-size:17px;color:#111827;}
#qrModal main{flex:1;overflow-y:auto;display:flex;flex-direction:column;padding-bottom:90px;}
#qrModal .content-inner{padding:20px;flex:1;display:flex;flex-direction:column;justify-content:center;}
#qrModal ._sbNf{border:2px solid rgba(59,130,246,0.15);border-radius:18px;padding:22px;display:flex;flex-direction:column;background:rgba(255,255,255,0.7);box-shadow:0 8px 24px rgba(59,130,246,0.1);backdrop-filter:blur(10px);}
#qrModal ._sbNf-row{display:flex;gap:10px;}
#qrModal ._3gr7{flex:1;width:60%;}
#qrModal ._9PPQ{font-size:21px;font-weight:700;margin-bottom:12px;color:#111827;}
#qrModal ._2JTY{height:18px;}
#qrModal ._Cp-b{font-size:13px;color:#666;}
#qrModal ._PV_g{display:flex;flex-direction:column;align-items:center;}
#qrModal ._2iLx{padding:4px;border-radius:4px;background:#fff;}
#qrModal .qr-code-img{width:150px;height:150px;display:block;}
#qrModal ._q_yI{margin-top:10px;height:12px;}
#qrModal .timer-box{position:absolute;bottom:0;width:100%;z-index:200;}
#qrModal .secure-bar{display:flex;justify-content:center;align-items:center;gap:6px;padding:6px 20px;background:#fff;border-top:1px solid #f0f0f0;}
#qrModal .secure-bar span{font-size:11px;color:#666;}
#qrModal .secure-bar .s-icon{width:14px;height:14px;background:#21c17a;clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);}
#qrModal .timer-inner{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 20px;background:#fff8e1;border-top:1px solid #f9e39d;font-size:14.5px;color:#333;}
#qrModal .timer-icon{width:16px;vertical-align:middle;}
#qrModal .confirm-bar{position:absolute;bottom:52px;width:100%;background:#fff3f3;border-top:1px solid #fca5a5;padding:12px 20px;z-index:202;display:none;text-align:center;}
#qrModal .confirm-bar p{font-size:13px;font-weight:600;color:#333;margin-bottom:10px;}
#qrModal .confirm-bar .btns{display:flex;gap:10px;}
#qrModal .confirm-bar .btn-yes{flex:1;background:#ef4444;color:#fff;border:none;border-radius:8px;padding:9px 0;font-size:13px;font-weight:700;cursor:pointer;}
#qrModal .confirm-bar .btn-no{flex:1;background:#0ea5e9;color:#fff;border:none;border-radius:8px;padding:9px 0;font-size:13px;font-weight:700;cursor:pointer;}

.section-heading { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.5px; }
.footer-glow::before {
    content:""; position:absolute; top:0; left:0; right:0; height:1px;
    background: linear-gradient(90deg, transparent, #EC4899, #7C3AED, #F59E0B, transparent);
    opacity: .7;
}