/* ==========================================================================
   1. BASIC SETUP (Website ki safai)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent; /* 📱 NAYA: Mobile par black tap shadow hatane ke liye */
}

html { scroll-behavior: smooth; }

body {
    background-color: #f8fafc; 
    color: #0f172a; 
}

/* ==========================================================================
   2. NAVBAR DESIGN (Sabse Upar Ki Patti)
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%; 
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); 
    position: sticky; 
    top: 0;
    z-index: 100;
}

.logo-link { text-decoration: none; }
.logo h2 { font-weight: 800; font-size: 1.8rem; color: #1e293b; margin: 0; }
.logo span { color: #f97316; }

/* Navbar Links */
.nav-links { display: flex; align-items: center; }
.nav-links a.desktop-link { text-decoration: none; color: #64748b; margin: 0 1.2rem; font-weight: 600; transition: 0.3s ease; }
.nav-links a.desktop-link:hover { color: #f97316; }

/* 🌟 NAYA: Today's Deals Premium Button Style */
.nav-links a.premium-link {
    background: #fff7ed;
    color: #f97316;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid #ffedd5;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a.premium-link:hover {
    background: #f97316;
    color: #ffffff;
}

/* Navbar Buttons */
.nav-buttons { display: flex; align-items: center; gap: 15px; }
.nav-buttons button { padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; font-size: 0.95rem; transition: 0.3s; white-space: nowrap; }
.btn-telegram { background: #eff6ff; color: #3b82f6; }
.btn-telegram:hover { background: #dbeafe; }
.btn-login { background: #0f172a; color: #ffffff; }
.btn-login:hover { background: #1e293b; }

/* Premium Profile Pictures (Navbar) */
.profile-pic-large { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #f97316; padding: 2px; background: #fff; box-shadow: 0 3px 8px rgba(249, 115, 22, 0.15); cursor: pointer; object-fit: cover; transition: 0.2s; }
.profile-pic-large:hover { transform: scale(1.08); box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3); }

.profile-pic-small { width: 35px; height: 35px; border-radius: 50%; border: 2px solid #f97316; padding: 2px; background: #fff; cursor: pointer; object-fit: cover; }

/* ==========================================================================
   2.1 DESKTOP DROPDOWN MENU STYLING
   ========================================================================== */
.profile-dropdown-wrapper { position: relative; display: flex; align-items: center; }

.profile-dropdown-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    width: 230px;
    padding: 10px 0;
    display: none; /* JS isko show karega */
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 200;
    border: 1px solid #e2e8f0;
}

.profile-dropdown-menu.show { 
    display: block; 
    opacity: 1; 
}

.dropdown-header { 
    padding: 10px 20px; 
    border-bottom: 1px solid #e2e8f0; 
    margin-bottom: 5px; 
}
.dropdown-header .user-name { font-weight: 700; color: #1e293b; margin: 0; font-size: 1rem; }
.dropdown-header .user-email { font-size: 0.8rem; color: #64748b; margin: 0; }

.profile-dropdown-menu a, .btn-logout-dropdown {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px; color: #334155; text-decoration: none; 
    font-weight: 500; border: none; background: transparent; 
    width: 100%; text-align: left; cursor: pointer; font-size: 0.95rem;
}

.profile-dropdown-menu a:hover, .btn-logout-dropdown:hover { 
    background: #f8fafc; color: #f97316; 
}

.btn-logout-dropdown { color: #ef4444; }
.btn-logout-dropdown:hover { color: #dc2626; background: #fef2f2; }

.hidden { display: none !important; }

/* Desktop pe mobile items chhupana */
.mobile-nav-right, .mobile-extra-links, .mobile-only-buttons, .close-sidebar, .sidebar-overlay, .mobile-profile-header {
    display: none;
}

/* ==========================================================================
   2.2 MOBILE RESPONSIVE (SIDEBAR DRAWER)
   ========================================================================== */
@media (max-width: 768px) {
    /* Desktop cheezein chhupao */
    .desktop-only { display: none !important; }
    .nav-links a.desktop-link { display: none; } /* Normal desktop link hide */
    
    /* Mobile Top Icons */
    .mobile-nav-right { display: flex; align-items: center; gap: 12px; }
    .mobile-menu-btn { background: none; border: none; font-size: 1.6rem; cursor: pointer; color: #1e293b; }
    .btn-login-mobile { background: #0f172a; color: white; padding: 6px 14px; border-radius: 6px; border: none; font-weight: 600; }
    
    /* Overlay Background */
    .sidebar-overlay {
        display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(0,0,0,0.6); z-index: 999; opacity: 0; transition: opacity 0.3s;
    }
    
    /* Premium Side Drawer */
    .nav-links {
        position: fixed; top: 0; right: 0; height: 100vh; width: 280px;
        background: #ffffff; flex-direction: column; align-items: flex-start;
        padding: 20px; box-shadow: -5px 0 25px rgba(0,0,0,0.15);
        transform: translateX(100%); /* Screen ke bahar */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }
    
    /* JS Class to open drawer */
    .nav-links.active { transform: translateX(0); }
    
    /* Close Button */
    .close-sidebar { display: block; background: none; border: none; font-size: 2.2rem; line-height: 1; align-self: flex-end; cursor: pointer; color: #64748b; margin-bottom: 15px; }
    
    /* Profile Header in Mobile */
    .mobile-profile-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #e2e8f0; width: 100%; }
    #mobileSidebarPic { width: 50px; height: 50px; border-radius: 50%; border: 2px solid #f97316; }
    .profile-text h4 { margin: 0; color: #1e293b; font-size: 1.1rem; }
    .profile-text p { margin: 0; font-size: 0.85rem; color: #64748b; }
    
    /* Premium Button inside mobile menu */
    .nav-links a.premium-link { display: flex; margin: 0 0 20px 0; width: 100%; justify-content: center; padding: 10px; font-size: 1.05rem; }
    
    /* Mobile Menu Links */
    .mobile-extra-links { display: flex; flex-direction: column; width: 100%; gap: 18px; margin-bottom: 25px; border-bottom: 1px solid #e2e8f0; padding-bottom: 25px; }
    .mobile-extra-links a { text-decoration: none; color: #334155; font-weight: 600; display: flex; align-items: center; gap: 12px; font-size: 1.05rem; }
    .mobile-extra-links a i { font-size: 1.2rem; color: #64748b; width: 20px; text-align: center; }
    .mobile-extra-links a.pro-link { color: #f59e0b; }
    .mobile-extra-links a.pro-link i { color: #f59e0b; }
    
    /* Bottom Buttons */
    .mobile-only-buttons { display: flex; flex-direction: column; width: 100%; gap: 12px; }
    .mobile-only-buttons a, .mobile-only-buttons button { 
        width: 100%; text-align: center; justify-content: center; display: flex; 
        align-items: center; gap: 8px; padding: 12px; border-radius: 8px; 
        border: none; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; 
    }
    .btn-logout-mobile { background: #fee2e2; color: #ef4444; }
}

/* ==========================================================================
   3. HERO SECTION (Clean Spacing)
   ========================================================================== */
.hero-section {
    min-height: auto; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem 5% 1.5rem; /* 🔥 FIX: Top aur Bottom ka extra gap kam kar diya */
    background: #ffffff;
}

.hero-content h1 { font-size: 3rem; font-weight: 800; margin-bottom: 0.8rem; line-height: 1.2; letter-spacing: -1px; }
.highlight { color: #f97316; }
.hero-subtitle { font-size: 1.05rem; color: #64748b; max-width: 650px; margin: 0 auto 1.5rem; line-height: 1.5; }

/* ==========================================================================
   4. THE MAGIC SEARCH BOX (Premium App Feel Fixes)
   ========================================================================== */
.search-box {
    display: flex; 
    align-items: center; 
    background: #ffffff; 
    padding: 6px; /* 🌟 FIX: Uniform padding jisse button bahar na nikle */
    border-radius: 50px; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06); 
    max-width: 650px; 
    margin: 0 auto 1.5rem; 
    border: 1px solid #e2e8f0;
    cursor: text; /* 🌟 FIX: Box pe kahin bhi click karo text cursor dikhega */
    position: relative;
    overflow: hidden; /* 🌟 FIX: Button ko box ke andar lock rakhega */
}

/* Icon ki padding theek ki taaki click na roke */
.search-icon { 
    color: #94a3b8; 
    padding: 0 12px 0 18px; 
    font-size: 1.2rem; 
    pointer-events: none; /* 🌟 FIX: Icon par click hone se block nahi hoga */
}

.search-box input { 
    flex: 1; 
    border: none; 
    outline: none; 
    font-size: 1.05rem; 
    padding: 10px 0; /* 🌟 FIX: Caret (blinker) ab ekdum center me aayega */
    color: #334155; 
    background: transparent;
    height: 100%;
    line-height: 1.5;
}

.btn-search {
    background: #f97316; 
    color: white; 
    padding: 12px 28px; 
    border-radius: 40px;
    font-weight: 700; 
    font-size: 1.05rem; 
    border: none; 
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4); 
    transition: 0.3s; 
    white-space: nowrap;
    margin-left: 8px;
}

.btn-search:hover { background: #ea580c; transform: translateY(-2px); }
.btn-search:active { transform: translateY(2px); box-shadow: none; }

/* Trust Tags */
.trust-tags { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; }
.trust-tags span {
    display: flex; align-items: center; gap: 0.5rem; color: #475569; font-weight: 600;
    font-size: 0.95rem; background: #f8fafc; padding: 8px 16px; border-radius: 50px; border: 1px solid #e2e8f0;
}
.trust-tags i { color: #f97316; font-size: 1.1rem; }

/* ==========================================================================
   5. DEALS SECTION & ULTRA-PREMIUM FILTERS (Left-Right Split)
   ========================================================================== */
.deals-section { 
    padding: 1rem 5% 5rem; /* 🔥 SAFE: Aapka purana spacing fix */
    max-width: 1250px; 
    margin: 0 auto; 
    scroll-margin-top: 85px; /* 🔥 SAFE: Navbar click hide fix */
}

/* 🌟 ULTRA-PREMIUM DEALS HEADER (Gap Fix & Line Removed) */
.deals-header-premium {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 15px; /* 🔥 Gap ko 30px se aadha (15px) kar diya */
    padding-bottom: 0px; /* 🔥 Padding zero kar di */
    border-bottom: none; /* 🌟 Line hata di taaki Cards aur Title connected feel hon */
}

/* Left Side: Title */
.header-left h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 500; 
    color: #475569;
    letter-spacing: -0.5px;
    margin: 0;
}

/* 🔥 SAFE: Aapka purana Text Gradient Effect */
.header-left h2 strong {
    font-weight: 800;
    color: #0f172a;
    background: linear-gradient(90deg, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Chhota aur Elegant Red Dot */
.pulse-dot-mini {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-red-mini 2s infinite;
}

@keyframes pulse-red-mini {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Right Side: Filters */
.header-right {
    overflow-x: auto; 
    scrollbar-width: none; 
}
.header-right::-webkit-scrollbar { display: none; }

.filter-track {
    display: flex;
    position: relative;
    background: #f1f5f9; 
    padding: 6px;
    border-radius: 12px;
    gap: 5px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03); /* 🔥 SAFE: Purana Shadow */
}

/* 🔥 SAFE: Aapka purana sliding, hover aur active effect ekdum safe hai */
.filter-tab {
    position: relative;
    z-index: 2; 
    background: transparent;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-tab i.fa-bolt { color: #f59e0b; }
.filter-tab i.fa-crown { color: #eab308; }

.filter-tab:hover {
    color: #0f172a;
}

.filter-tab.active {
    color: #0f172a;
}

.filter-highlight {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    width: 60px; 
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); 
    z-index: 1;
}

/* 📱 MOBILE VIEW ADJUSTMENTS (Crop Fix) */
@media (max-width: 768px) {
    .deals-header-premium { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 15px; 
    }
    .header-right { 
        width: 100%; 
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch; 
        padding-bottom: 5px;
    }
    .filter-track { 
        width: max-content; 
        padding-right: 30px; /* 🌟 FIX: PRO button ke baad extra jagah jisse crop na ho */
    }
}
/* ==========================================================================
   6. DEAL CARDS & GRID SYSTEM (Responsive 2-to-Full Columns - Clean Edition)
   ========================================================================== */
/* Mobile par hamesha 2 columns, Desktop par max 5 columns */
.deals-grid { 
    display: grid; 
    grid-template-columns: 1fr; /* 🔥 FIXED: Ab phone me ek line me ek hi card aayega */
    gap: 15px; 
    width: 100%;
}

/* 📱 Badi screen wale phone (Landscape mode): 2 cards */
@media (min-width: 480px) { 
    .deals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; } 
}

/* 💻 Tablet: 3 cards */
@media (min-width: 768px) { 
    .deals-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } 
}

/* 🖥️ Laptop, Desktop, TV: Max 4 cards */
@media (min-width: 1024px) { 
    .deals-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.8rem; } 
}

.deal-card {
    background: #ffffff; 
    border-radius: 14px; 
    padding: 16px; /* Padding thodi badhayi taaki bada card acha lage */
    border: 1px solid #e2e8f0;
    cursor: pointer; 
    transition: all 0.3s ease; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    min-width: 0; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    position: relative;
    overflow: hidden;
}
.deal-card:hover { transform: translateY(-5px); border-color: #f97316; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.deal-badge {
    position: absolute; top: 15px; left: 15px; padding: 3px 8px; border-radius: 6px;
    font-size: 0.7rem; font-weight: 800; color: white; z-index: 10; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}
.deal-badge.discount { background: #ef4444; }

/* Image Setup for perfect framing */
.deal-card img { 
    width: 100%; 
    height: 180px; 
    object-fit: contain; /* Image kategi nahi, puri dikhegi */
    padding: 5px; 
    background: transparent; 
}
.deal-info { 
    padding: 10px 0 0 0; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}

.deal-info h3 {
    color: #334155; font-size: 0.85rem; line-height: 1.4; font-weight: 600;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; 
    margin-bottom: 8px; 
    min-height: 2.8em; /* 🔥 FIXED: 2 lines ka strict space reserved hai layout break nahi hoga */
}

/* Base Wrapper for structural stability */
.price-row { 
    display: flex; 
    align-items: baseline; 
    gap: 8px; 
    margin-top: auto; /* 🔥 FIXED: Pure bottom section (Price + Button) ko niche lock rakhega */
    padding-top: 4px;
}
.deal-price { font-size: 1.15rem; font-weight: 800; color: #10b981; } 
.mrp-price { font-size: 0.8rem; color: #94a3b8; text-decoration: line-through; }

/* ==========================================================================
   Enhanced Premium 3D Card Button (Buy On Amazon)
   ========================================================================== */
.btn-buy-card {
    width: 100%; 
    padding: 10px 8px; 
    margin-top: 12px; 
    background: #f8fafc; 
    color: #0f172a;
    border: 1px solid #cbd5e1; 
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 0.85rem;
    text-align: center; 
    text-decoration: none; 
    display: block; 
    transition: all 0.15s ease; /* 🌟 0.2s ko 0.15s kiya taaki button snappy lage */
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* 🌟 THE MAGIC: 3D Shadow (Niche ki taraf solid shadow) */
    box-shadow: 0 4px 0 #94a3b8, 0 5px 15px rgba(0,0,0,0.05);
    transform: translateY(0);
}

/* Hover trigger updates link cleanly */
.deal-card:hover .btn-buy-card, .btn-buy-card:hover { 
    background: #f97316; 
    color: white; 
    border-color: #ea580c; 
    /* 🌟 Hover hone par shadow orange match karegi aur button thoda upar uthega */
    box-shadow: 0 4px 0 #c2410c, 0 8px 20px rgba(249, 115, 22, 0.2);
    transform: translateY(-2px);
}

/* 🌟 THE REAL FEEL: Jab user ungli se click/press karega (Active state) */
.btn-buy-card:active {
    transform: translateY(4px) !important; /* Button pura screen ke andar dab jayega */
    box-shadow: 0 0 0 #c2410c, 0 2px 4px rgba(0,0,0,0.1) !important; /* Shadow gayab ho jayegi */
    background: #ea580c !important; /* Dabaate hi thoda solid/dark orange hoga */
    border-color: #ea580c !important;
    color: white !important; /* 🌟 FIX: Text white hona chahiye dabaane par */
}

/* 📱 MOBILE FIX: Blue Highlight rokna aur text selection block karna */
.deal-card, .btn-buy-card, .filter-tab {
    -webkit-tap-highlight-color: transparent !important; /* Blue box hatayega */
    user-select: none; /* App ki tarah text copy nahi hoga */
    -webkit-user-select: none;
}

.modal-rating-count { color: #64748b; font-size: 0.85rem; font-weight: 500; }

/* ==========================================================================
   7. FOOTER SECTION 
   ========================================================================== */
.site-footer { background: #0f172a; color: white; padding: 4rem 5% 2rem; margin-top: 4rem; }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-content { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #334155; padding-bottom: 2rem; margin-bottom: 2rem; }
.footer-logo h2 { font-weight: 800; font-size: 1.8rem; }
.footer-logo span { color: #f97316; }
.footer-logo p { color: #94a3b8; margin-top: 10px; font-size: 0.95rem; max-width: 400px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #cbd5e1; text-decoration: none; font-size: 0.95rem; transition: 0.3s; }
.footer-links a:hover { color: #f97316; }
.footer-bottom { text-align: center; color: #64748b; font-size: 0.9rem; }

/* ==========================================================================
   8. PROFILE DROPDOWN (Desktop)
   ========================================================================== */
.profile-dropdown-wrapper { position: relative; display: flex; align-items: center; }
.profile-dropdown-menu {
    position: absolute; top: 55px; right: 0; background: #ffffff; width: 260px;
    border-radius: 14px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15); border: 1px solid #e2e8f0;
    display: none; flex-direction: column; z-index: 1000; overflow: hidden; padding: 6px; 
}
.profile-dropdown-menu.show { display: flex; animation: premiumSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes premiumSlide { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.dropdown-header { padding: 12px 14px; background: #f8fafc; border-radius: 10px; margin-bottom: 6px; text-align: left; }
.dropdown-header .user-name { font-weight: 700; color: #0f172a; font-size: 0.95rem; }
.dropdown-header .user-email { font-size: 0.8rem; color: #64748b; margin-top: 2px; word-break: break-all; }
.profile-dropdown-menu a { padding: 10px 12px; color: #334155; text-decoration: none; font-size: 0.9rem; font-weight: 500; display: flex; align-items: center; gap: 10px; border-radius: 8px; transition: 0.2s; }
.profile-dropdown-menu a:hover { background: #f1f5f9; color: #f97316; }
.btn-logout-dropdown { background: none; border: none; width: 100%; text-align: left; padding: 10px 12px; color: #ef4444; font-weight: 600; font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; gap: 10px; border-radius: 8px; margin-top: 4px; }
.btn-logout-dropdown:hover { background: #fef2f2; }

/* ==========================================================================
   9. POPUPS & MODALS (Light Theme Premium Fix)
   ========================================================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(8px); /* Premium Blur Background */
    display: flex; justify-content: center; align-items: center; z-index: 9999;
}

/* Base Modal Style */
.light-modal {
    background: #ffffff; padding: 2.5rem; border-radius: 20px; width: 90%; max-width: 400px;
    position: relative; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    border: 1px solid #e2e8f0; animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Universal Close Button */
.close-btn {
    position: absolute; top: 15px; right: 20px; font-size: 1.8rem; background: #f1f5f9;
    border: none; color: #64748b; cursor: pointer; transition: 0.2s;
    width: 35px; height: 35px; border-radius: 50%; display: flex; justify-content: center; align-items: center; z-index: 10;
}
.close-btn:hover { color: #ef4444; background: #fee2e2; }

/* Login Modal Specifics */
.modal-body h2 { font-size: 1.6rem; color: #0f172a; margin-bottom: 0.5rem; font-weight: 800; }
.modal-body p { color: #64748b; font-size: 0.95rem; margin-bottom: 1.8rem; line-height: 1.5; }
.btn-google {
    width: 100%; padding: 0.8rem; border-radius: 10px; border: 1px solid #cbd5e1;
    background: #ffffff; color: #0f172a; font-weight: 700; font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s;
}
.btn-google:hover { background: #f8fafc; border-color: #94a3b8; }

/* 🌟 Deal Preview Modal (Bada Wala Popup) */
.deal-preview-modal { 
    max-width: 450px !important; /* Thoda patla kiya taaki elegant lage */
    padding: 0 !important; 
    overflow: hidden; 
    border-radius: 16px !important; /* Sleek curves */
}
.deal-preview-body { padding: 0; text-align: left; }

/* Image Section: Height ko responsive banaya */
.modal-img-container { 
    background: #ffffff; 
    width: 100%; 
    height: 250px; /* Badi height ko kam kiya (300px -> 250px) */
    padding: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-bottom: 1px solid #f1f5f9; 
}
.modal-img-container img { width: 100%; height: 100%; object-fit: contain; }

/* Details Section */
.modal-details-container { padding: 20px 25px; background: #f8fafc; }

/* Title: Device Responsive Size */
.modal-deal-title { 
    font-size: 1.15rem; /* Desktop par thoda chhota aur neat */
    font-weight: 700; 
    line-height: 1.4; 
    margin-bottom: 12px; 
    color: #0f172a; 
    display: -webkit-box; 
    -webkit-line-clamp: 3; /* Sirf 3 line dikhegi, lamba text truncate hoga */
    -webkit-box-orient: vertical; 
    overflow: hidden;
}

/* Meta Data (Rating & Time) */
.modal-deal-meta { 
    display: flex; 
    align-items: center;
    flex-wrap: wrap; /* Agar space kam ho toh niche aaye */
    gap: 12px; 
    font-size: 0.85rem; 
    color: #64748b; 
    font-weight: 600; 
    margin-bottom: 15px; 
}
.modal-rating { color: #f59e0b; }

/* Pricing Row */
.modal-deal-prices { 
    display: flex; 
    align-items: baseline; 
    gap: 10px; 
    margin-bottom: 20px; 
    flex-wrap: wrap;
}
.modal-price { font-size: 1.6rem; font-weight: 800; color: #10b981; }
.modal-mrp { text-decoration: line-through; color: #94a3b8; font-size: 0.95rem; font-weight: 500; }
.modal-discount { background: #ef4444; color: #ffffff; padding: 4px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 800; }

/* ==========================================================================
   100% SAME AS CARD: Premium 3D Popup Button (.btn-buy-amazon)
   ========================================================================== */
/* Buy Button */
.btn-buy-amazon {
    display: flex; justify-content: center; align-items: center; gap: 8px;
    background: #ffffff; color: #0f172a; border: 1px solid #cbd5e1;
    padding: 12px 15px; border-radius: 10px; font-weight: 800; 
    text-decoration: none; font-size: 1rem; width: 100%;
    transition: all 0.15s ease; cursor: pointer; text-transform: uppercase;
    box-shadow: 0 4px 0 #cbd5e1, 0 5px 15px rgba(0,0,0,0.03);
    transform: translateY(0);
}

.btn-buy-amazon:hover { 
    background: #f97316; color: white; border-color: #ea580c;
    transform: translateY(-2px); box-shadow: 0 4px 0 #c2410c, 0 8px 20px rgba(249, 115, 22, 0.2); 
}
.btn-buy-amazon:active {
    transform: translateY(4px) !important; box-shadow: 0 0 0 #c2410c !important; 
    background: #ea580c !important; border-color: #ea580c !important; color: white !important;
}

/* ==========================================================================
   🌟 NEW: THUMBNAILS & SCORE BAR STYLING
   ========================================================================== */
/* Thumbnails Gallery */
.sg-thumbnail-row { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 15px; padding-bottom: 5px; scrollbar-width: none; }
.sg-thumbnail-row::-webkit-scrollbar { display: none; }
.sg-thumb { width: 55px; height: 55px; border: 2px solid transparent; border-radius: 8px; cursor: pointer; object-fit: contain; padding: 3px; background: #f8fafc; transition: all 0.2s ease; flex-shrink: 0; }
.sg-thumb:hover { border-color: #cbd5e1; }
.sg-thumb.active { border-color: #f97316; background: #ffffff; box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2); }

/* Deal Score Bar */
.sg-score-container { margin-bottom: 20px; background: #f8fafc; padding: 15px; border-radius: 10px; border: 1px solid #e2e8f0; width: 100%; box-sizing: border-box; }
.sg-score-header { display: flex; justify-content: space-between; font-size: 0.95rem; font-weight: 700; color: #334155; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.sg-score-bar-bg { width: 100%; height: 8px; background: #e2e8f0; border-radius: 10px; overflow: hidden; }
.sg-score-fill { height: 100%; width: 0%; background: #10b981; border-radius: 10px; transition: width 0.8s ease-out, background 0.3s ease; }


/* ==========================================================================
   10. MOBILE & DESKTOP RESPONSIVE ENGINE (Final Fix)
   ========================================================================== */

/* 🖥️ 1. DESKTOP VIEW FIX (Laptop me mobile ka kachra hide karna) */
@media (min-width: 769px) {
    .mobile-extra-links, 
    .close-sidebar, 
    .mobile-profile-header, 
    .btn-logout-mobile,
    .mobile-only-buttons,
    .sidebar-overlay,
    .mobile-nav-right {
        display: none !important; /* Laptop pe in sabko chhupa do */
    }
    
    /* Navbar normal flex rahe desktop pe */
    .nav-links {
        display: flex;
        align-items: center;
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
        width: auto;
    }
}

/* 📱 2. TABLET VIEW (Slight adjustment) */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 2.4rem; } 
    .hero-subtitle { font-size: 0.95rem; padding: 0 10px; }
    .navbar { padding: 1rem 2%; }
    .nav-links a.desktop-link { margin: 0 0.5rem; font-size: 0.9rem; }
    .nav-buttons { gap: 10px; }
    .nav-buttons button { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
    .trust-tags { gap: 1.2rem; }
    .trust-tags span { font-size: 0.85rem; }
}

/* 📱 3. ULTRA-COMPACT MOBILE VIEW & FLOATING MENU */
@media (max-width: 768px) {
    /* Hero Compact */
    .hero-section { padding: 1.5rem 5% 1rem; }
    .hero-content h1 { font-size: 1.7rem; line-height: 1.2; margin-bottom: 0.3rem; }
    .hero-subtitle { font-size: 0.85rem; margin-bottom: 1rem; line-height: 1.3; padding: 0 5px; }
    
    /* Search Box Sleek */
    .search-box { flex-direction: row; border-radius: 50px; padding: 4px; margin-bottom: 1rem; }
    .search-box input { width: 100%; margin-bottom: 0; font-size: 0.85rem; padding: 4px 10px; }
    .btn-search { padding: 0.6rem 1rem; font-size: 0.85rem; }

    /* Tiny Trust Tags */
    .trust-tags { gap: 6px; margin-top: 0.5rem; }
    .trust-tags span { font-size: 0.65rem; padding: 4px 10px; gap: 4px; border-radius: 8px; }
    .trust-tags i { font-size: 0.75rem; }

    /* Deals Pull Up */
    .deals-section { padding-top: 2rem; margin-top: -15px; border-top-left-radius: 20px; border-top-right-radius: 20px; }
    .section-title { font-size: 1.4rem; margin-bottom: 1rem; }
    .filter-container { margin-bottom: 1.5rem; }
    .filter-btn-chip { padding: 6px 16px; font-size: 0.85rem; }

    /* Mobile Navbar Mechanics */
    .navbar { justify-content: space-between; padding: 1rem 5%; position: relative; }
    .desktop-only { display: none !important; } 
    .desktop-link { display: none !important; } 
    .mobile-nav-right { display: flex; align-items: center; gap: 15px; }
    .mobile-menu-btn { background: none; border: none; font-size: 1.6rem; color: #0f172a; cursor: pointer; }
    .btn-login-mobile { background: #0f172a; color: #ffffff; border: none; padding: 6px 14px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
    
   /* 🌟 FLOATING SIDE MENU (Bug Fixes) */
    
    /* 🔥 NAYA FIX: Screen ko right side khisakne se rokne ke liye */
    body { overflow-x: hidden; }

    .sidebar-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px);
        z-index: 999; display: none; opacity: 0; transition: opacity 0.3s ease;
    }
    .sidebar-overlay.active { display: block; opacity: 1; }

    .nav-links {
        display: flex; flex-direction: column; 
        position: fixed; top: 15px; right: -100%; /* Fix: Screen se poora bahar fek diya */
        width: 280px; /* Fix: Width lock kar di taaki menu patla aur premium dikhe */
        height: max-content; 
        max-height: calc(100vh - 30px);
        background: #ffffff; box-shadow: -5px 10px 40px rgba(0,0,0,0.2);
        padding: 1.5rem; transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
        z-index: 1000; overflow-y: auto; overflow-x: hidden; /* Niche ka scrollbar gayab */
        border-radius: 20px; 
    }
    .nav-links.show-menu { right: 15px; }

    .close-sidebar {
        position: absolute; top: 15px; right: 15px; font-size: 1.8rem; background: none; border: none; color: #94a3b8; cursor: pointer; transition: 0.2s;
    }
    .close-sidebar:hover { color: #ef4444; }

    /* 🌟 PROFILE INSIDE MENU (Smart Text Truncation) */
    .mobile-profile-header {
        display: flex; align-items: center; gap: 12px; 
        padding-bottom: 1.2rem; border-bottom: 1px solid #e2e8f0; 
        margin-bottom: 1rem; margin-top: 5px;
        padding-right: 25px; /* X button se duri */
        width: 100%; overflow: hidden; /* Fix: Text bahar na nikle */
    }
    .mobile-profile-header.hidden { display: none !important; }
    
    .mobile-profile-header img { 
        width: 45px; height: 45px; border-radius: 50%; 
        border: 2px solid #f97316; flex-shrink: 0; /* Image pichke na */
    }
    
    .profile-text {
        display: flex; flex-direction: column; width: 100%; overflow: hidden;
    }
    
    .profile-text h4 { 
        font-size: 0.95rem; /* Naam chhota kiya */
        color: #0f172a; margin: 0; font-weight: 700; 
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
    }
    
    .profile-text p { 
        font-size: 0.75rem; /* Email chhota kiya */
        color: #64748b; margin: 0; 
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis; /* Fix: Lamba email newway... me badal jayega */
    }

    /* Links Design inside Sidebar */
    .mobile-extra-links { display: flex; flex-direction: column; width: 100%; margin-top: 0; }
    .nav-links a { margin: 2px 0; padding: 12px 10px; font-size: 0.95rem; color: #334155; display: flex; align-items: center; gap: 12px; font-weight: 600; text-decoration: none; border-radius: 8px; transition: 0.2s; }
    .nav-links a i { color: #94a3b8; width: 20px; }
    .nav-links a:hover { background: #f8fafc; color: #f97316; }

    .mobile-only-buttons { display: flex; flex-direction: column; margin-top: 15px; padding-top: 15px; border-top: 1px solid #e2e8f0; }
    .mobile-only-buttons button { width: 100%; padding: 12px; border-radius: 12px; border: none; font-weight: 600; font-size: 0.95rem; cursor: pointer; }
    
    .btn-logout-mobile { background: #fef2f2 !important; color: #ef4444 !important; border: 1px solid #fecaca !important; margin-top: 10px; display: flex; justify-content: center; align-items: center; gap: 8px; }
    .btn-logout-mobile:hover { background: #fee2e2 !important; }
    .btn-logout-mobile.hidden { display: none !important; }
    
    .footer-content { flex-direction: column; text-align: center; gap: 1.5rem; }
    .footer-links { flex-direction: column; gap: 10px; }
}

/* ==========================================================================
   11. BOXED DASHBOARD UI (STRICT OVERRIDE - NO SQUEEZING)
   ========================================================================== */
.dashboard-section { padding: 2rem 5%; max-width: 1200px; margin: 0 auto; font-family: 'Inter', sans-serif; width: 100%; box-sizing: border-box; }

.sg-dash-header { display: flex; align-items: center; gap: 15px; margin-bottom: 2rem; }
.sg-back-btn { background: #ffffff; border: 1px solid #cbd5e1; padding: 6px 12px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 5px; font-weight: 500; font-size: 0.95rem; }
.sg-back-btn:hover { background: #f1f5f9; }
.sg-dash-header h2 { margin: 0; font-size: 1.6rem; color: #0f172a; font-weight: 800; }

/* 🌟 2-Column Main Layout */
.sg-main-grid { display: grid; grid-template-columns: 340px 1fr; gap: 25px; align-items: start; width: 100%; }

/* 📦 LEFT COLUMN: Product Card Box */
.sg-product-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); box-sizing: border-box; display: flex; flex-direction: column; }

/* Image Box with Relative Positioning */
.sg-img-box { position: relative; background: #ffffff; border-radius: 10px; border: 1px solid #f1f5f9; padding: 15px; height: 220px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; box-sizing: border-box; }
.sg-img-box img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* 🌟 Home Page Jaisa Top-Left Badge */
.sg-badge-top { position: absolute; top: 10px; left: 10px; background: #ef4444; color: #ffffff; padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 800; z-index: 2; box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3); }

/* Tighter Text Spacing */
.sg-title { font-size: 1.15rem; font-weight: 700; color: #0f172a; margin: 0 0 10px 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sg-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 0.85rem; color: #64748b; font-weight: 600; }
.sg-rating .stars { color: #f59e0b; letter-spacing: 1px; }

.sg-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 15px; flex-wrap: wrap; }
.sg-price-current { font-size: 2.2rem; font-weight: 800; color: #10b981; line-height: 1; }
.sg-price-mrp { font-size: 1.05rem; color: #94a3b8; text-decoration: line-through; font-weight: 500; }

/* 🌟 Home Page Jaisa 3D Button */
.sg-buy-btn-3d { 
    width: 100%; 
    background: #ffffff; 
    color: #0f172a; 
    border: 1px solid #cbd5e1; 
    padding: 12px; 
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 1.05rem; 
    cursor: pointer; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 8px; 
    box-shadow: 0 4px 0px #cbd5e1; /* 3D Shadow Line */
    transition: all 0.1s ease; 
    margin-top: auto; /* Box ke sabse neeche lock rahega */
}

/* Jab click hoga toh 3D effect aayega */
.sg-buy-btn-3d:active { 
    transform: translateY(4px); 
    box-shadow: 0 0px 0px #cbd5e1; 
}
/* 📊 RIGHT COLUMN: Analytics Stack */
.sg-analytics-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; width: 100%; }

/* 🤖 AI Scanner Master Box (Forced to stay vertical stacked) */
.sg-scanner-card { 
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    padding: 25px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    box-sizing: border-box;
    width: 100% !important;
}

/* Header Grid Row: Full Width Layout */
.sg-card-header { 
    display: flex !important; 
    flex-direction: row !important;
    justify-content: space-between !important; 
    align-items: center !important; 
    margin-bottom: 20px !important; 
    width: 100% !important;
    gap: 10px; 
    box-sizing: border-box;
}
.sg-header-title { font-size: 1.25rem; font-weight: 800; color: #0f172a; }
.sg-status-badge { background: #dcfce7; color: #166534; padding: 6px 14px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; white-space: nowrap; }

/* Stats Row Grid Layout: Full width span below header */
.sg-stats-row { 
    display: grid !important; 
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 15px !important; 
    width: 100% !important;
    box-sizing: border-box;
}

.sg-stat-item { border: 1px solid #e2e8f0; border-radius: 10px; padding: 18px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; background: #fafaf9; box-sizing: border-box; }
.sg-stat-label { font-size: 0.95rem; font-weight: 600; color: #64748b; }
.sg-stat-item strong { font-size: 1.5rem; font-weight: 800; }
.text-red { color: #ef4444; } .text-orange { color: #f59e0b; } .text-green { color: #10b981; }

/* 📉 Price History Card Layout */
.sg-graph-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); box-sizing: border-box; width: 100%; }
.sg-graph-filters { display: flex; border: 1px solid #e2e8f0; border-radius: 6px; overflow: hidden; }
.sg-graph-filters button { background: #ffffff; border: none; border-right: 1px solid #e2e8f0; padding: 6px 14px; cursor: pointer; font-weight: 600; color: #64748b; font-size: 0.85rem; }
.sg-graph-filters button:last-child { border-right: none; }
.sg-graph-filters button.active { background: #f8fafc; color: #0f172a; font-weight: 700; }

.sg-chart-area { width: 100%; box-sizing: border-box; }

/* =========================================================
   12. 📱 COMBINED RESPONSIVE RULES (Tablet & Mobile Fixes)
   ========================================================= */
@media (max-width: 900px) {
    .sg-main-grid { grid-template-columns: 1fr; }
    .sg-product-card { max-width: 500px; margin: 0 auto; width: 100%; }
}

@media (max-width: 600px) {
    /* Layout & Header Fixes */
    .dashboard-section { padding: 1.5rem 4%; }
    .dashboard-header h2 { font-size: 1.2rem; }
    
    /* Product Card Mobile Fixes */
    .sg-img-box { height: 200px; }
    .sg-price-current { font-size: 1.8rem; }
    
    /* Stats Row Horizontal Scroll Fix */
    .sg-stats-row { display: flex !important; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
    .sg-stats-row::-webkit-scrollbar { display: none; }
    .sg-stat-item { min-width: 130px; flex: 1; }
    
    /* Graph Mobile Height Fix */
    .chart-wrapper { height: 220px; } 
}
/* ==========================================================================
  13. FOOTER & LEGAL PAGES CSS
   ========================================================================== */
.premium-footer { background: #0f172a; color: #f1f5f9; padding: 4rem 5% 1rem; margin-top: 4rem; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 2fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand h2 { font-size: 1.8rem; color: #ffffff; margin-bottom: 1rem; }
.footer-brand h2 span { color: #f97316; }
.footer-brand p { color: #94a3b8; line-height: 1.6; margin-bottom: 1rem; font-size: 0.95rem; }
.affiliate-disclosure { font-size: 0.8rem !important; color: #64748b !important; background: rgba(255,255,255,0.05); padding: 10px; border-radius: 8px; border-left: 3px solid #f97316; }

.footer-links-group { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer-col h4 { color: #ffffff; font-size: 1.1rem; margin-bottom: 1.2rem; font-weight: 600; }
.footer-col a { display: block; color: #94a3b8; text-decoration: none; margin-bottom: 0.8rem; transition: 0.3s; font-size: 0.95rem; }
.footer-col a:hover { color: #f97316; padding-left: 5px; }
.social-link i { margin-right: 8px; font-size: 1.1rem; }

.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid #1e293b; color: #64748b; font-size: 0.85rem; }

/* Legal Pages Template CSS */
.legal-page-header { background: #f8fafc; padding: 4rem 5% 2rem; text-align: center; border-bottom: 1px solid #e2e8f0; }
.legal-page-header h1 { font-size: 2.5rem; color: #0f172a; margin-bottom: 10px; }
.legal-page-header p { color: #64748b; font-size: 1.1rem; }
.legal-content { max-width: 800px; margin: 3rem auto; padding: 0 5%; font-size: 1.05rem; line-height: 1.8; color: #334155; }
.legal-content h2 { font-size: 1.5rem; color: #0f172a; margin: 2rem 0 1rem; border-bottom: 2px solid #f1f5f9; padding-bottom: 8px; }
.legal-content h3 { font-size: 1.2rem; color: #0f172a; margin: 1.5rem 0 0.5rem; }
.legal-content ul { padding-left: 20px; margin-bottom: 1.5rem; }
.legal-content li { margin-bottom: 10px; }

@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }
    .footer-links-group { flex-direction: column; gap: 1.5rem; }
}

/* ==========================================================================
   HEART BUTTON & TIME DISPLAY (Card Enhancements)
   ========================================================================== */
.btn-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    font-size: 1.1rem;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.btn-favorite:hover { transform: scale(1.1); color: #ef4444; }
.btn-favorite.active { color: #ef4444; }
.btn-favorite.active i { font-weight: 900; } /* fa-solid ban jayega */

/* ==========================================================================
   PREMIUM PAGINATION & TIME UI (Mobile-First Fixed Edition)
   ========================================================================== */
.deal-meta-top {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
}
.deal-time { display: inline-flex; align-items: center; gap: 5px; }

/* Pagination Controls Layout Framework */
.pagination-container {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 12px; /* Compact structural padding */
    margin: 30px auto 10px; /* 🔥 FIXED: Bottom margin drastically optimized to close footer gap */
    width: 100%; 
    grid-column: 1 / -1;
}
.page-btn {
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    padding: 10px 18px;
    border-radius: 8px; 
    font-weight: 600; 
    color: #0f172a; 
    cursor: pointer;
    transition: 0.2s; 
    display: flex; 
    align-items: center; 
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    white-space: nowrap;
}
.page-btn:hover:not(:disabled) { background: #f8fafc; border-color: #cbd5e1; transform: translateY(-1px); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.page-num {
    font-weight: 700; 
    color: #f97316; 
    background: #fff5f0;
    padding: 10px 16px; 
    border-radius: 8px; 
    border: 1px solid #fdba74;
    white-space: nowrap; /* 🔥 FIXED: Micro viewports me numbers ko stack hone se roke gaa */
    text-align: center;
}

/* Responsive Adaptive Optimization for Small Mobile Screens */
@media (max-width: 480px) {
    .pagination-container {
        gap: 6px; 
        margin: 25px auto 5px;
    }
    .page-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 4px;
    }
    .page-num {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   ✅14. GAP FIX: PAGINATION AUR FOOTER KE BEECH KI KHALI JAGAH KO KAM KARNA
   ========================================================================== */
/* 1. Deals section ke niche ki extra padding khatam karna */
#dealsSection, .deals-section {
    padding-bottom: 20px !important; 
}

/* 2. Pagination buttons ke niche ka faltu margin hatana */
.pagination-container {
    margin-top: 30px !important;
    margin-bottom: 20px !important; 
}

/* 3. Footer ke upar jo white space dhakka de raha tha usko zero karna */
footer, .premium-footer {
    margin-top: 0 !important;
    padding-top: 40px !important; /* Footer ke andar ka text safe rahega */
}

/* ==========================================================================
   15. PREMIUM FLOATING NOTIFICATION BELL (Instagram Style)
   ========================================================================== */
.floating-bell-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.floating-bell-container.hidden {
    transform: scale(0); /* Jab koi deal na ho toh chhupa rahega */
    opacity: 0;
    pointer-events: none;
}

/* Bell ka gol (circle) button */
.bell-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 2px solid #f8fafc;
    transition: transform 0.2s;
}

.bell-icon-wrapper:active {
    transform: scale(0.9) translateY(4px); /* Click hone par dabega */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.bell-icon-wrapper i {
    font-size: 1.8rem;
    color: #f59e0b; /* Premium Golden/Orange Bell Color */
    transform-origin: top center;
}

/* 🌟 Ringing Animation */
.bell-icon-wrapper i.ring {
    animation: bell-shake 0.8s cubic-bezier(.36,.07,.19,.97) both;
}

/* 🌟 PREMIUM ALERT BELL BADGE (Auto-Expanding Pill Shape) */
#bellBadge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    min-width: 20px; /* Circle ke liye kam se kam itna choda */
    height: 20px;
    padding: 0 6px; /* Bada number aane par ye side se jagah dega */
    border-radius: 12px; /* Pill/Capsule shape */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
    box-sizing: border-box; /* Padding ko width ke andar rakhega */
}

.bell-badge.pop {
    transform: scale(1);
}

/* Text Bubble (New Deal!) */
.bell-tooltip {
    background: #0f172a;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.bell-tooltip.show {
    opacity: 1;
    transform: translateX(0);
}

@keyframes bell-shake {
    0% { transform: rotate(0); }
    15% { transform: rotate(25deg); }
    30% { transform: rotate(-25deg); }
    45% { transform: rotate(15deg); }
    60% { transform: rotate(-15deg); }
    75% { transform: rotate(5deg); }
    85% { transform: rotate(-5deg); }
    100% { transform: rotate(0); }
}

/* ==========================================================================
   PREMIUM 3D NAVBAR TELEGRAM BUTTON (Anchor Link Fix)
   ========================================================================== */
a.btn-telegram { 
    background: #eff6ff !important; 
    color: #2563eb !important; 
    border: 1px solid #bfdbfe !important;
    padding: 8px 18px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    display: inline-flex !important; /* Ye icon aur text ko ek line me perfect set karega */
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important; /* 🌟 Ye aapki wo ajeeb blue underline hata dega */
    transition: all 0.15s ease;
    cursor: pointer;
    box-shadow: 0 4px 0 #bfdbfe !important; 
    transform: translateY(0);
    white-space: nowrap; /* Text ko tutne nahi dega */
}

a.btn-telegram:hover {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 0 #1d4ed8, 0 8px 15px rgba(37, 99, 235, 0.2) !important;
    transform: translateY(-2px);
}

a.btn-telegram:active {
    transform: translateY(4px) !important;
    box-shadow: 0 0 0 #1d4ed8 !important;
    background: #2563eb !important;
    color: #ffffff !important;
}

/* ==========================================================================
   16. UTILITY CLASSES (Hamesha file ke end me)
   ========================================================================== */
.hidden { display: none !important; }

/* ==========================================================================
   🌟 17. PREMIUM UI ENHANCEMENTS (Glow, Skeletons, Empty States)
   ========================================================================== */

/* 1. Search Bar Premium Glow Effect */
.search-box:focus-within {
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15), 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* 2. Skeleton Loading Animation (Myntra/Flipkart Style) */
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 8px;
}
.skeleton-card {
    background: #ffffff; border-radius: 14px; padding: 12px; border: 1px solid #e2e8f0; 
    height: 340px; display: flex; flex-direction: column; gap: 10px;
}
.skel-img { height: 160px; width: 100%; border-radius: 8px; }
.skel-title { height: 15px; width: 90%; margin-top: 10px; }
.skel-title-short { height: 15px; width: 60%; }
.skel-price { height: 25px; width: 40%; margin-top: auto; }
.skel-btn { height: 40px; width: 100%; border-radius: 8px; margin-top: 10px; }

/* 3. Empty State Illustrations */
.empty-state-box {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 50px 20px; text-align: center; width: 100%; grid-column: 1 / -1;
}
.empty-state-img { width: 140px; opacity: 0.9; margin-bottom: 20px; }
.empty-state-box h3 { color: #0f172a; font-size: 1.4rem; margin-bottom: 8px; font-weight: 800; }
.empty-state-box p { color: #64748b; font-size: 0.95rem; max-width: 400px; line-height: 1.5; }

/* ==========================================================================
   📊 APEXCHARTS SEGMENTED CONTROLS & LUXURY GRAPH STYLING
   ========================================================================== */
.sg-graph-filters {
    display: flex;
    background: #f1f5f9; /* Matte light grey container base */
    padding: 4px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.chart-range-btn {
    background: transparent;
    border: none;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-radius: 7px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Elevated dynamic active state look */
.chart-range-btn.active {
    background: #ffffff;
    color: #f97316; /* SastiGali Brand Orange */
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
}

#sgPriceApexChart {
    margin-top: 15px;
    width: 100%;
}

/* ApexCharts custom internal overrides for absolute clean typography */
.apexcharts-tooltip {
    font-family: 'Inter', sans-serif !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* ==========================================================================
   🌟 18. PREMIUM RESPONSIVE FIXES (AI Scanner & Prices)
   ========================================================================== */

/* Header Text ko limit karna taaki overlap na ho */
.sg-header-title { 
    font-size: 1.05rem !important; 
    font-weight: 800; 
    color: #0f172a; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

/* Price Boxes ko fix karna (Text bahar na bhage) */
.sg-stats-row { gap: 10px !important; }
.sg-stat-item { 
    padding: 12px 6px !important; /* Padding kam ki taaki price ko jagah mile */
    min-width: 0; /* Important: Box ko phatne se rokega */
    overflow: hidden;
}
.sg-stat-label { 
    font-size: 0.8rem !important; 
    white-space: nowrap; 
}
.sg-stat-item strong { 
    font-size: 1.15rem !important; /* Price ka font chhota aur premium kiya */
    white-space: nowrap; 
    text-overflow: ellipsis; 
    overflow: hidden; 
    max-width: 100%; 
    display: inline-block; 
}

/* Mobile par layout ekdum makhan jaisa */
@media (max-width: 600px) {
    .sg-stat-item strong { font-size: 1.05rem !important; }
    .sg-stat-label { font-size: 0.75rem !important; }
}

/* ==========================================================================
   🌟 19. PREMIUM LOGO SIZING (Navbar & Footer)
   ========================================================================== */

/* Navbar Logo Size */
.nav-logo-img {
    height: 45px; /* Standard premium navbar logo height */
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.logo-link:hover .nav-logo-img {
    transform: scale(1.03); /* Hover par halka sa bada hoga */
}

/* Footer Logo Size */
.footer-logo-img {
    height: 55px; /* Footer me logo thoda bada accha lagta hai */
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 15px;
}

/* Mobile responsive scaling */
@media (max-width: 768px) {
    .nav-logo-img { height: 38px; }
    .footer-logo-img { height: 45px; margin: 0 auto 15px auto; }
}

/* ==========================================================================
   🌟 20. FORCE MOBILE RESPONSIVE FIX (100% Anti-Break)
   ========================================================================== */

/* --- 1. FORCE THUMBNAIL GALLERY FIX --- */
.sg-thumbnail-row { 
    display: flex !important; 
    flex-wrap: nowrap !important; /* 🔥 FIXED: Image ko ek hi line me force karega */
    overflow-x: auto !important; 
    gap: 12px !important; 
    margin-bottom: 15px !important; 
    padding: 4px 4px 10px 4px !important; /* Padding fix jisse active border na kate */
    scrollbar-width: none !important; 
    -webkit-overflow-scrolling: touch !important; 
}
.sg-thumbnail-row::-webkit-scrollbar { display: none !important; }

.sg-thumb { 
    flex: 0 0 60px !important; /* 🔥 THE MAGIC FIX: Ye image ko kisi bhi haalat me 60px se chhota nahi hone dega */
    width: 60px !important; 
    height: 60px !important; 
    border: 1px solid #e2e8f0 !important; 
    border-radius: 8px !important; 
    object-fit: contain !important; 
    background: #ffffff !important; 
}
.sg-thumb.active { 
    border: 2px solid #f97316 !important; 
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25) !important; 
}

/* --- 2. FORCE AI SCANNER BOXES FIX --- */
@media (max-width: 600px) {
    /* Stats row ko strictly 3-column grid me lock karna */
    .sg-stats-row { 
        display: grid !important; 
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important; /* 🔥 FORCE 3 columns, chahe jo ho jaye */
        gap: 6px !important; 
        width: 100% !important;
    }
    
    /* Box ke padding aur border lock */
    .sg-stat-item { 
        min-width: 0 !important; 
        width: 100% !important;
        padding: 10px 2px !important; 
        overflow: hidden !important;
    }
    
    /* Text ko screen ke hisaab se chhota karna */
    .sg-stat-item strong { 
        font-size: 0.9rem !important; /* Font aur chhota kiya taaki fate na */
        white-space: nowrap !important;
    }
    .sg-stat-label { 
        font-size: 0.65rem !important; 
        margin-bottom: 4px !important;
        white-space: nowrap !important;
    }
}

/* ==========================================================================
   🚨 21. MASTER OVERFLOW LOCK (White Space / Right Shift Killer)
   ========================================================================== */

/* 1. HTML aur Body ko screen par strict lock karna */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

/* 2. Har bade section ko maximum 100% width limit dena */
.premium-footer, 
.navbar, 
.hero-section, 
.deals-section, 
.dashboard-section,
.site-footer {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

/* 3. Tracker ke boxes ko parent ke bahar nikalne se rokna */
.sg-main-grid, 
.sg-product-card, 
.sg-analytics-col, 
.sg-scanner-card,
.sg-graph-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important; /* Ye flexbox ko fatne se roki rakhta hai */
    box-sizing: border-box !important;
}

/* 4. Thumbnail Gallery width constraint */
.sg-thumbnail-row {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   🌟 22. PREMIUM AUTH MODALS (ChatGPT Style)
   ========================================================================== */
.premium-auth-modal {
    background: #ffffff; 
    border-radius: 16px;
    padding: 32px 24px 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-auth-modal .close-btn {
    top: 12px; right: 12px; background: transparent; color: #64748b; font-size: 1.5rem;
}

.auth-modal-header h2 { font-size: 1.6rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.auth-modal-header p { font-size: 0.95rem; color: #64748b; margin-bottom: 24px; }

/* Providers Button */
.btn-auth-provider {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #cbd5e1;
    background: #ffffff; color: #0f172a; font-size: 1.05rem; font-weight: 600;
    cursor: pointer; transition: 0.2s; margin-bottom: 15px;
}
.btn-auth-provider:hover { background: #f8fafc; border-color: #94a3b8; }
.btn-auth-provider img { width: 22px; height: 22px; }

/* Logout Actions */
.auth-modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.btn-auth-primary { background: #0f172a; color: white; padding: 12px; border-radius: 8px; border: none; font-weight: 600; cursor: pointer; transition: 0.2s; font-size: 1rem; }
.btn-auth-primary:hover { background: #1e293b; }
.btn-auth-secondary { background: transparent; color: #0f172a; border: 1px solid #cbd5e1; padding: 12px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; font-size: 1rem; }
.btn-auth-secondary:hover { background: #f8fafc; }

/* ==========================================================================
   🌟 23. ULTRA-PREMIUM PROFILE MODAL (2026 CLEAN EDITION)
   ========================================================================== */
.profile-modal-2026 {
    background: #ffffff;
    border-radius: 24px; /* Extra smooth corners */
    padding: 0;
    width: 92%;
    max-width: 400px; 
    text-align: left; 
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    overflow: visible; /* Dropdown bahar aane ke liye */
    position: relative;
    animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    border: 1px solid rgba(255,255,255,0.5);
}

.profile-modal-2026 .close-btn {
    top: 15px; right: 15px; 
    background: rgba(15, 23, 42, 0.05); color: #0f172a;
    border-radius: 50%; width: 32px; height: 32px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 1.2rem; z-index: 20; transition: 0.2s;
    position: absolute; border: none; cursor: pointer;
}
.profile-modal-2026 .close-btn:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; transform: scale(1.05); }

/* Minimalist Cover */
.profile-cover-2026 {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    height: 110px;
    width: 100%;
    border-radius: 24px 24px 0 0; 
    position: relative;
    overflow: hidden;
}
.profile-cover-2026::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 40px;
    background: linear-gradient(to top, rgba(255,255,255,1), transparent);
}

/* Floating Avatar */
.profile-avatar-wrap-2026 {
    margin-top: -55px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}
.avatar-ring-2026 {
    padding: 4px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.15);
}
.avatar-ring-2026 img {
    width: 95px; height: 95px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.profile-form-2026 { padding: 15px 25px 30px; }

/* Modern Filled Inputs */
.input-box-2026 { margin-bottom: 18px; }
.input-box-2026 label {
    display: block; font-size: 0.75rem; font-weight: 700; color: #64748b; 
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.input-box-2026 input {
    width: 100%; padding: 14px 16px; 
    background: #f8fafc; border: 2px solid transparent; 
    border-radius: 12px; font-size: 1.05rem; color: #0f172a; 
    font-weight: 600; outline: none; transition: all 0.2s ease;
}
.input-box-2026 input:focus { background: #ffffff; border-color: #f97316; box-shadow: 0 4px 15px rgba(249, 115, 22, 0.1); }

/* Locked Email State */
.locked-box input { color: #94a3b8; font-weight: 500; padding-right: 40px; }
.locked-inner { position: relative; }
.locked-inner i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #cbd5e1; font-size: 0.9rem; }

/* 🌟 The Ultimate Country Pill & Phone Wrap */
.phone-wrapper-2026 {
    display: flex; align-items: center; background: #f8fafc;
    border-radius: 12px; border: 2px solid transparent; transition: 0.2s;
    padding: 4px;
}
.phone-wrapper-2026:focus-within { background: #ffffff; border-color: #f97316; box-shadow: 0 4px 15px rgba(249, 115, 22, 0.1); }

.country-pill-2026 {
    display: flex; align-items: center; gap: 6px; padding: 10px 12px;
    background: #ffffff; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-weight: 700; color: #0f172a; cursor: pointer; position: relative;
    user-select: none; transition: 0.2s;
}
.country-pill-2026:hover { background: #f1f5f9; }
.country-pill-2026 .arrow-icon { font-size: 0.7rem; color: #94a3b8; transition: 0.3s; margin-left: 2px; }
.country-pill-2026.open .arrow-icon { transform: rotate(180deg); }

.phone-wrapper-2026 input {
    border: none; background: transparent; padding: 10px 12px; 
    box-shadow: none; flex: 1; min-width: 0;
}
.phone-wrapper-2026 input:focus { border: none; box-shadow: none; background: transparent; }

/* Glassmorphism Dropdown Menu */
.country-menu-2026 {
    position: absolute; top: calc(100% + 8px); left: 0; width: 220px;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    border: 1px solid #e2e8f0; border-radius: 12px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15); 
    padding: 6px; margin: 0; z-index: 1000; 
    display: none; opacity: 0; transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.country-pill-2026.open .country-menu-2026 { display: block; opacity: 1; transform: translateY(0); }

.c-option {
    padding: 10px 12px; display: flex; align-items: center; gap: 10px;
    font-size: 0.95rem; color: #334155; font-weight: 600; cursor: pointer; 
    border-radius: 8px; transition: 0.2s;
}
.c-option:hover { background: #fff7ed; color: #ea580c; }
.c-option .f-emoji { font-size: 1.2rem; }

/* 2026 Save Button */
.btn-save-2026 {
    width: 100%; background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white; border: none; padding: 15px; border-radius: 12px;
    font-weight: 800; font-size: 1.05rem; cursor: pointer; transition: all 0.2s;
    margin-top: 10px; box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
}
.btn-save-2026:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(249, 115, 22, 0.35); }
.btn-save-2026:active { transform: translateY(2px); box-shadow: 0 2px 10px rgba(249, 115, 22, 0.2); }

/* ==========================================================================
   🌟 ULTRA-PREMIUM CUSTOM COUNTRY DROPDOWN
   ========================================================================== */
.phone-input-wrapper {
    display: flex; align-items: center; border: 1px solid #cbd5e1;
    border-radius: 8px; background: #ffffff; transition: 0.3s ease; position: relative;
}
.phone-input-wrapper:focus-within {
    border-color: #f97316; box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.custom-country-selector { position: relative; cursor: pointer; user-select: none; }

.selected-country {
    display: flex; align-items: center; gap: 6px; padding: 12px 14px;
    background: #f8fafc; border-right: 1px solid #e2e8f0; border-radius: 8px 0 0 8px;
    font-weight: 700; color: #0f172a; transition: 0.2s; height: 100%;
}
.selected-country:hover { background: #f1f5f9; }

/* Jab dropdown open hoga, arrow ghumega */
.custom-country-selector.open .selected-country i { transform: rotate(180deg); }

.country-dropdown-list {
    position: absolute; top: calc(100% + 8px); left: 0; width: 230px;
    background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15); list-style: none; padding: 8px 0;
    margin: 0; z-index: 1000; display: none; opacity: 0; transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Open Animation */
.custom-country-selector.open .country-dropdown-list {
    display: block; opacity: 1; transform: translateY(0);
}

.country-option {
    padding: 10px 16px; display: flex; align-items: center; gap: 12px;
    font-size: 0.95rem; color: #334155; font-weight: 600; cursor: pointer; transition: 0.2s;
}
.country-option:hover { background: #fff7ed; color: #ea580c; }
.country-option .flag-emoji { font-size: 1.3rem; }

.phone-input-wrapper input {
    border: none; outline: none; padding: 12px 15px; flex: 1; border-radius: 0 8px 8px 0;
    font-size: 1.05rem; color: #0f172a; font-weight: 500; width: 100%; background: transparent;
}