@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --fmb-bg-dark: #070b14;
    --fmb-panel-dark: #0f172a;
    --fmb-panel-card: #131c31;
    --fmb-emerald: #10b981;
    --fmb-cyan: #06b6d4;
    --fmb-amber: #f59e0b;
    --fmb-rose: #f43f5e;
    --fmb-indigo: #6366f1;
    --fmb-border-glow: rgba(16, 185, 129, 0.25);
    --fmb-text-light: #f8fafc;
    --fmb-text-muted: #94a3b8;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif;
    background-color: var(--fmb-bg-dark);
    color: var(--fmb-text-light);
    min-height: 100vh;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

/* Background Animated Gradient Mesh */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 8%, rgba(16, 185, 129, 0.15), transparent 32%),
        radial-gradient(circle at 90% 15%, rgba(6, 182, 212, 0.14), transparent 35%),
        radial-gradient(circle at 50% 85%, rgba(245, 158, 11, 0.12), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.12), transparent 35%),
        var(--fmb-bg-dark);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, black 20%, transparent 95%);
}

body > * {
    position: relative;
    z-index: 1;
}

/* Scrollbar Hide Utility */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Glassmorphic Classes */
.fmb-glass {
    background: rgba(15, 23, 42, 0.88) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
}

.fmb-glass-card {
    background: linear-gradient(145deg, rgba(19, 28, 49, 0.92), rgba(11, 16, 32, 0.96)) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform;
}

.fmb-glass-card:hover {
    transform: translateY(-4px) scale(1.01) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 20px 45px rgba(16, 185, 129, 0.2) !important;
}

/* Glowing Neon Buttons */
.btn-emerald-glow {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4) !important;
    transition: all 0.22s ease !important;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}

.btn-emerald-glow:active {
    transform: scale(0.97) !important;
}

.btn-emerald-glow:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.6) !important;
    filter: brightness(1.1) !important;
}

.btn-amber-glow {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4) !important;
    transition: all 0.22s ease !important;
    touch-action: manipulation;
}

.btn-amber-glow:active {
    transform: scale(0.97) !important;
}

.btn-amber-glow:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.6) !important;
    filter: brightness(1.1) !important;
}

.btn-wa-glow {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4) !important;
    transition: all 0.22s ease !important;
    touch-action: manipulation;
}

.btn-wa-glow:active {
    transform: scale(0.97) !important;
}

.btn-glass-pill {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    touch-action: manipulation;
}

.btn-glass-pill:hover,
.btn-glass-pill:active {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #34d399 !important;
}

.btn-glass-pill.active {
    background: linear-gradient(135deg, #10b981, #06b6d4) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.5) !important;
}

/* Glowing Search Input */
.fmb-search-input {
    background: rgba(15, 23, 42, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #f8fafc !important;
    backdrop-filter: blur(12px) !important;
    transition: all 0.22s ease !important;
}

.fmb-search-input:focus {
    border-color: #10b981 !important;
    background: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.35) !important;
    outline: none !important;
}

/* Product Card Elements */
.product-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.product-card img {
    transition: transform 0.4s ease !important;
}

.product-card:hover img {
    transform: scale(1.08) !important;
}

/* Text Gradient Glow */
.text-gradient-emerald {
    background: linear-gradient(135deg, #34d399 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
    background: linear-gradient(135deg, #fbbf24 0%, #f87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #070b14;
}

::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.3);
    border-radius: 999px;
}

/* Modal Animations */
.modal-anim-enter {
    animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
    0% { opacity: 0; transform: scale(0.94) translateY(16px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* 📱 Mobile Responsive Special Enhancements */
@media (max-width: 640px) {
    .touch-target-min {
        min-height: 48px !important;
        min-width: 48px !important;
    }

    /* Transform Modals into Mobile Bottom-Sheets */
    #product-modal .fmb-glass-card,
    #checkout-modal .fmb-glass-card,
    #auth-modal .fmb-glass-card {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-top-left-radius: 2rem !important;
        border-top-right-radius: 2rem !important;
        margin-bottom: 0 !important;
        max-height: 92vh !important;
    }

    #product-modal,
    #checkout-modal,
    #auth-modal {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    /* Compact 2-column mobile product cards */
    .product-card {
        margin: 0 !important;
    }

    .product-card .p-4 {
        padding: 0.75rem !important;
    }
}
