/* ============================================================
   ShopCompare AI — Stylesheet
   Conversational AI shopping assistant
   ============================================================ */

:root {
    --clr-bg: #f0f2f5;
    --clr-surface: #ffffff;
    --clr-surface-alt: #f8fafc;
    --clr-primary: #4f46e5;
    --clr-primary-hover: #4338ca;
    --clr-accent: #f59e0b;
    --clr-accent-hover: #d97706;
    --clr-text: #1e293b;
    --clr-muted: #64748b;
    --clr-border: #e2e8f0;
    --clr-flipkart: #2874f0;
    --clr-amazon: #ff9900;
    --clr-myntra: #ff3e6c;
    --clr-firstcry: #fc799e;
    --clr-ajio: #4a90d9;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-lg: 0 4px 14px rgba(0,0,0,.1);
}

/* ---- DARK MODE ---- */
[data-theme="dark"] {
    --clr-bg: #0f172a;
    --clr-surface: #1e293b;
    --clr-surface-alt: #1a2332;
    --clr-primary: #818cf8;
    --clr-primary-hover: #6366f1;
    --clr-text: #e2e8f0;
    --clr-muted: #94a3b8;
    --clr-border: #334155;
    --shadow: 0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
    --shadow-lg: 0 4px 14px rgba(0,0,0,.4);
}
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #312e81 0%, #4c1d95 50%, #581c87 100%);
}
[data-theme="dark"] .chat-user .bubble-content {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
}
[data-theme="dark"] .chat-ai .bubble-avatar,
[data-theme="dark"] .chat-ai-thinking .bubble-avatar {
    background: linear-gradient(135deg, #1e293b, #334155);
}
[data-theme="dark"] .card-img-wrap { background: #0f172a; }
[data-theme="dark"] .deal-img { background: #0f172a; }
[data-theme="dark"] .share-opt:hover { background: #334155; }
[data-theme="dark"] .chat-quick-btn:hover { background: var(--clr-primary); color: #fff; }
[data-theme="dark"] .affiliate-footer { background: #0f172a; }
[data-theme="dark"] .seo-content-section { background: #1e293b; }
[data-theme="dark"] .faq-section { background: #0f172a; }
[data-theme="dark"] .faq-item { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .card-wishlist { background: rgba(30,41,59,.85); }
[data-theme="dark"] .filter-group select { background: var(--clr-surface); color: var(--clr-text); border-color: var(--clr-border); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--clr-bg);
    color: var(--clr-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ---- NAV BAR ---- */
.navbar {
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; }
.nav-brand { font-size: 1.3rem; font-weight: 800; color: var(--clr-primary); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav-logo { height: 34px; width: auto; }

/* Primary nav menu links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto 0 24px;
}
.nav-menu-link {
    color: var(--clr-muted);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    transition: color .2s, background .2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.nav-menu-link:hover {
    color: var(--clr-primary);
    background: rgba(79,70,229,.06);
}
.nav-menu-link.active {
    color: var(--clr-primary);
    background: rgba(79,70,229,.1);
    font-weight: 600;
}
.nav-menu-link .nav-link-icon { font-size: .95rem; }
/* Highlight badge for Coupons / Price Drops */
.nav-menu-link.nav-highlight {
    color: var(--clr-primary);
    font-weight: 600;
}
.nav-menu-link.nav-highlight-warm {
    color: #d97706;
    font-weight: 600;
}
.nav-menu-link.nav-highlight-warm:hover {
    background: rgba(217,119,6,.08);
    color: #b45309;
}
.nav-menu-link.nav-highlight-green {
    color: #059669;
    font-weight: 600;
}
.nav-menu-link.nav-highlight-green:hover {
    background: rgba(5,150,105,.08);
    color: #047857;
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    color: var(--clr-text);
    font-size: 1.2rem;
    transition: background .2s, border-color .2s;
    flex-shrink: 0;
}
.nav-hamburger:hover {
    background: rgba(79,70,229,.06);
    border-color: var(--clr-primary);
}
/* Hamburger icon bars */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 18px;
}
.hamburger-icon span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.nav-hamburger.open .hamburger-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-hamburger.open .hamburger-icon span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.open .hamburger-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile slide-down menu */
.nav-mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
}
.nav-mobile-menu.open {
    display: flex;
}
.nav-mobile-menu .nav-mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--clr-text);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: background .15s;
    border-bottom: 1px solid var(--clr-border);
}
.nav-mobile-menu .nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-menu .nav-mobile-link:hover,
.nav-mobile-menu .nav-mobile-link:active {
    background: rgba(79,70,229,.06);
}
.nav-mobile-menu .nav-mobile-link.active {
    color: var(--clr-primary);
    font-weight: 600;
    background: rgba(79,70,229,.06);
}
.nav-mobile-link-icon { font-size: 1.1rem; width: 22px; text-align: center; }
.nav-mobile-divider {
    height: 1px;
    background: var(--clr-border);
    margin: 4px 0;
}
[data-theme="dark"] .nav-mobile-menu {
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-contact-link {
    color: var(--clr-muted);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    transition: color .2s;
}
.nav-contact-link:hover { color: var(--clr-primary); }
.btn-new-chat {
    background: #f0eeff;
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.btn-new-chat:hover { background: #e0ddff; }
.nav-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-pill {
    background: var(--clr-bg);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .75rem;
    white-space: nowrap;
    color: var(--clr-muted);
}
.nav-pill strong { color: var(--clr-text); }
.pill-flipkart { color: var(--clr-flipkart); font-weight: 600; }
.pill-amazon { color: var(--clr-amazon); font-weight: 600; }
.pill-myntra { color: var(--clr-myntra); font-weight: 600; }
.pill-firstcry { color: var(--clr-firstcry); font-weight: 600; }
.pill-ajio { color: var(--clr-ajio); font-weight: 600; }

/* ---- HERO ---- */
.hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
    color: #fff;
    text-align: center;
    padding: 56px 0 44px;
    transition: padding .4s ease;
    overflow: hidden;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(251,191,36,.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168,85,247,.2) 0%, transparent 50%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-compact { padding: 20px 0 14px; }
.hero-compact .hero-title { font-size: 1.15rem; margin-bottom: 0; }
.hero-compact .hero-sub,
.hero-compact .example-chips,
.hero-compact .hero-search-wrap,
.hero-compact .hero-typing,
.hero-compact .hero-trust-bar,
.hero-compact .hero-stores { display: none; }

/* Trust bar */
.hero-trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.trust-item {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    opacity: .85;
    white-space: nowrap;
    background: rgba(255,255,255,.1);
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.hero-title { font-size: 2.8rem; font-weight: 800; line-height: 1.12; margin-bottom: 14px; }
.hero-title .highlight {
    color: #fbbf24;
    position: relative;
}
.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 6px;
    background: rgba(251,191,36,.3);
    border-radius: 3px;
    z-index: -1;
}
.hero-sub { font-size: 1.05rem; opacity: .88; margin-bottom: 28px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Hero inline search */
.hero-search-wrap {
    max-width: 680px;
    margin: 0 auto 18px;
}
.hero-search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.95);
    border-radius: 60px;
    padding: 6px 6px 6px 20px;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
    transition: box-shadow .25s, transform .2s;
}
.hero-search-form:focus-within {
    box-shadow: 0 8px 40px rgba(79,70,229,.3), 0 0 0 3px rgba(255,255,255,.3);
    transform: translateY(-1px);
}
.hero-search-icon { flex-shrink: 0; color: #94a3b8; }
.hero-search-icon svg { width: 20px; height: 20px; }
.hero-search-form input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: .95rem;
    font-family: inherit;
    padding: 12px 4px;
    outline: none;
    color: #1e293b;
    min-width: 0;
}
.hero-search-form input::placeholder { color: #94a3b8; }
.hero-search-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: .88rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(79,70,229,.35);
}
.hero-search-btn:hover { transform: scale(1.03); box-shadow: 0 6px 20px rgba(79,70,229,.45); }
.hero-search-btn:active { transform: scale(.97); }
.hero-search-btn svg { width: 16px; height: 16px; }

/* Hero mic button */
.hero-mic-btn {
    width: 42px; height: 42px; flex-shrink: 0;
    border-radius: 50%; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: #f1f5f9; color: #64748b;
    transition: background .2s, color .2s, transform .15s;
}
.hero-mic-btn:hover { background: #e2e8f0; color: var(--clr-primary); transform: scale(1.08); }
.hero-mic-btn svg { width: 20px; height: 20px; }
.hero-mic-btn .hidden { display: none; }
.hero-mic-btn.recording {
    background: #fee2e2; color: #ef4444;
    animation: mic-pulse 1s ease-in-out infinite;
}
.hero-mic-btn.recording .mic-icon { display: none; }
.hero-mic-btn.recording .mic-stop-icon { display: block; }
.hero-mic-btn.unsupported { display: none; }

/* Store badges in hero */
.hero-stores {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.hero-stores-label {
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .6;
    font-weight: 500;
}
.hero-store-badges { display: flex; gap: 10px; }
.store-badge {
    font-size: .75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: .02em;
}
.badge-flipkart { background: rgba(40,116,240,.2); color: #93c5fd; border: 1px solid rgba(40,116,240,.3); }
.badge-amazon { background: rgba(255,153,0,.2); color: #fcd34d; border: 1px solid rgba(255,153,0,.3); }
.badge-myntra { background: rgba(255,62,108,.2); color: #fda4af; border: 1px solid rgba(255,62,108,.3); }
.badge-firstcry { background: rgba(252,121,158,.2); color: #fda4af; border: 1px solid rgba(252,121,158,.3); }
.badge-ajio { background: rgba(74,144,217,.2); color: #93c5fd; border: 1px solid rgba(74,144,217,.3); }

/* Example chips */
.example-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}
.chip {
    background: rgba(255,255,255,.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: .85rem;
    cursor: pointer;
    transition: background .2s, transform .15s;
    white-space: nowrap;
}
.chip:hover { background: rgba(255,255,255,.3); transform: translateY(-2px); }

/* ---- CHAT THREAD ---- */
.chat-thread {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
    scroll-behavior: smooth;
}

/* Individual chat bubble row */
.chat-bubble {
    max-width: 82%;
    animation: fadeUp .3s cubic-bezier(.22,1,.36,1);
    display: flex;
    gap: 10px;
    align-items: flex-end;
}
.chat-user { align-self: flex-end; flex-direction: row-reverse; }
.chat-ai, .chat-ai-thinking { align-self: flex-start; }

/* Avatar circles */
.bubble-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.chat-user .bubble-avatar {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
}
.chat-ai .bubble-avatar,
.chat-ai-thinking .bubble-avatar {
    background: linear-gradient(135deg, #f0f9ff, #e0e7ff);
    color: var(--clr-primary);
    border: 1.5px solid var(--clr-border);
}

/* Bubble wrapper (content + timestamp) */
.bubble-wrap { min-width: 0; flex: 1; }

/* Bubble content */
.bubble-content {
    padding: 14px 18px;
    border-radius: 18px;
    font-size: .92rem;
    line-height: 1.6;
    word-break: break-word;
}
.chat-user .bubble-content {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #fff;
    border-bottom-right-radius: 6px;
    box-shadow: 0 2px 8px rgba(79,70,229,.2);
}
.chat-ai .bubble-content {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-bottom-left-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
}
.chat-ai-thinking .bubble-content {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-bottom-left-radius: 6px;
    color: var(--clr-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Sender name label */
.bubble-sender {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
    opacity: .85;
}
.chat-user .bubble-sender { color: rgba(255,255,255,.8); }
.chat-ai .bubble-sender { color: var(--clr-primary); }

/* Timestamp */
.bubble-time {
    display: block;
    font-size: .68rem;
    color: #94a3b8;
    margin-top: 5px;
    letter-spacing: .02em;
}
.chat-user .bubble-time { text-align: right; }

/* Typing indicator dots */
.typing-dots { display: inline-flex; gap: 4px; align-items: center; padding: 4px 0; }
.typing-dots span {
    width: 7px;
    height: 7px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* AI response sub-elements */
.rec-highlights {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rec-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4ff 100%);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--clr-primary);
    transition: background .2s, transform .15s;
}
.rec-item:hover {
    background: linear-gradient(135deg, #eef2ff 0%, #e8ecff 100%);
    transform: translateX(3px);
}
.rec-rank {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(79,70,229,.25);
}
.rec-info { flex: 1; min-width: 0; }
.rec-name { font-weight: 600; font-size: .88rem; margin-bottom: 4px; color: var(--clr-text); }
.rec-reason { font-size: .82rem; color: var(--clr-muted); margin-bottom: 6px; line-height: 1.5; }
.rec-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rec-tag {
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 3px 10px;
    border-radius: 20px;
}
.tag-top-pick { background: #fef3c7; color: #92400e; }
.tag-best-value { background: #d1fae5; color: #065f46; }
.tag-budget-friendly { background: #e0e7ff; color: #3730a3; }
.tag-premium { background: #fce7f3; color: #9d174d; }
.tag-highly-rated, .tag-top-rated { background: #fef9c3; color: #854d0e; }
.tag-great-deal { background: #dcfce7; color: #166534; }
.rec-score {
    font-size: .72rem;
    color: var(--clr-muted);
    font-weight: 500;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 20px;
}

.ai-tip {
    margin-top: 14px;
    font-size: .84rem;
    color: var(--clr-muted);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--clr-accent);
    line-height: 1.55;
}
.ai-mode-note {
    margin-top: 10px;
    font-size: .78rem;
    background: #eff6ff;
    color: #1e40af;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border-left: 3px solid #3b82f6;
}
.ai-mode-note code { background: #dbeafe; padding: 1px 5px; border-radius: 3px; font-size: .76rem; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- CHAT WELCOME ---- */
.chat-welcome {
    text-align: center;
    padding: 32px 20px;
    animation: fadeUp .4s ease;
}
.chat-welcome-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: block;
}
.chat-welcome h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: 6px;
}
.chat-welcome p {
    font-size: .85rem;
    color: var(--clr-muted);
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.55;
}

/* Quick action buttons inside chat */
.chat-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}
.chat-quick-btn {
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    padding: 7px 16px;
    font-size: .82rem;
    color: var(--clr-text);
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}
.chat-quick-btn:hover {
    background: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(79,70,229,.2);
}

/* ---- STICKY CHAT INPUT ---- */
.chat-input-bar {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, var(--clr-surface) 80%, transparent);
    padding: 16px 0 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 80;
}
.chat-form {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 820px;
    margin: 0 auto;
    padding: 8px 8px 8px 22px;
    background: var(--clr-surface);
    border: 1.5px solid var(--clr-border);
    border-radius: 60px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
    transition: border-color .25s, box-shadow .25s;
    position: relative;
}
.chat-form:focus-within {
    border-color: var(--clr-primary);
    box-shadow: 0 4px 24px rgba(79,70,229,.12), 0 0 0 3px rgba(79,70,229,.08);
}
.chat-form input {
    flex: 1;
    border: none;
    padding: 14px 4px;
    font-size: 1rem;
    font-family: inherit;
    background: transparent;
    outline: none;
    color: var(--clr-text);
    letter-spacing: -.01em;
    min-width: 0;
}
.chat-form input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}
.send-btn {
    background: var(--clr-primary);
    color: #fff;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .15s, box-shadow .2s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(79,70,229,.3);
}
.send-btn:hover { background: var(--clr-primary-hover); transform: scale(1.06); box-shadow: 0 4px 14px rgba(79,70,229,.35); }
.send-btn:active { transform: scale(.96); }
.send-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.send-btn svg { width: 20px; height: 20px; }

/* Mic button */
.mic-btn {
    background: transparent;
    color: #64748b;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, transform .15s;
    flex-shrink: 0;
    position: relative;
}
.mic-btn:hover { background: #f1f5f9; color: var(--clr-primary); transform: scale(1.06); }
.mic-btn svg { width: 20px; height: 20px; }
.mic-btn .hidden { display: none; }
.mic-btn.recording {
    color: #ef4444;
    background: rgba(239,68,68,.08);
    animation: mic-pulse 1.2s ease-in-out infinite;
}
.mic-btn.recording .mic-icon { display: none; }
.mic-btn.recording .mic-stop-icon { display: block; }
@keyframes mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.3); }
    50% { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
}
.mic-btn.unsupported { display: none; }
.mic-lang-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: .55rem;
    background: var(--clr-primary);
    color: #fff;
    padding: 1px 4px;
    border-radius: 6px;
    font-weight: 600;
    line-height: 1.3;
    pointer-events: none;
}
.input-hint {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    font-size: .74rem;
    color: #94a3b8;
    letter-spacing: .01em;
}
.input-hint span { display: flex; align-items: center; gap: 4px; }
.input-hint kbd {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 1px 5px;
    font-family: inherit;
    font-size: .7rem;
}

/* ---- FILTERS BAR ---- */
.filters-bar {
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    padding: 12px 0;
    position: sticky;
    top: 52px;
    z-index: 90;
}
.filters-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 6px; }
.filter-group label { font-size: .82rem; color: var(--clr-muted); font-weight: 500; }
.filter-group select {
    padding: 7px 10px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-size: .85rem;
    background: #fff;
    cursor: pointer;
}
.filter-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.results-count { font-size: .85rem; color: var(--clr-muted); white-space: nowrap; }

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: 7px 14px; font-size: .82rem; }
.btn-accent { background: var(--clr-accent); color: #fff; }
.btn-accent:hover { background: var(--clr-accent-hover); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---- PRODUCT GRID ---- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
    padding: 24px 0 20px;
}

/* ---- PAGINATION ---- */
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 16px 0 40px;
}
.page-btn {
    min-width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #e2e8f0; border-radius: 8px;
    background: var(--clr-surface); color: var(--clr-text);
    font-size: .88rem; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all .15s; padding: 0 12px;
}
.page-btn:hover:not(:disabled):not(.page-active) {
    background: #f1f5f9; border-color: var(--clr-primary); color: var(--clr-primary);
}
.page-btn.page-active {
    background: var(--clr-primary); color: #fff; border-color: var(--clr-primary);
    box-shadow: 0 2px 8px rgba(79,70,229,.3);
}
.page-btn:disabled {
    opacity: .4; cursor: not-allowed;
}
.page-prev, .page-next {
    font-weight: 600; padding: 0 14px; font-size: .82rem;
}
.page-dots {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; color: #94a3b8; font-size: .9rem;
}
.page-info {
    margin-left: 12px; font-size: .78rem; color: #94a3b8; white-space: nowrap;
}
[data-theme="dark"] .page-btn { border-color: #334155; background: #1e293b; }
[data-theme="dark"] .page-btn:hover:not(:disabled):not(.page-active) { background: #334155; }

/* ---- PRODUCT CARD ---- */
.product-card {
    background: var(--clr-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .15s;
    position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-card.selected { outline: 3px solid var(--clr-primary); }
.product-card.recommended { outline: 2px solid #a78bfa; }

.card-select {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    accent-color: var(--clr-primary);
    cursor: pointer;
    z-index: 2;
}

.card-site {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    z-index: 2;
}
.site-flipkart { background: var(--clr-flipkart); }
.site-amazon { background: var(--clr-amazon); }
.site-myntra { background: var(--clr-myntra); }
.site-firstcry { background: var(--clr-firstcry); }
.site-ajio { background: var(--clr-ajio); }

.card-rec-badge {
    position: absolute;
    top: 38px;
    right: 10px;
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    z-index: 2;
}

.card-img-wrap {
    height: 200px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card-img-wrap img { max-height: 100%; max-width: 100%; object-fit: contain; padding: 8px; }
.card-img-wrap .no-img { color: var(--clr-muted); font-size: .85rem; }

.card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-name {
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-price { font-size: 1.15rem; font-weight: 700; color: var(--clr-primary); }
.card-original { font-size: .82rem; color: var(--clr-muted); text-decoration: line-through; }
.card-discount { font-size: .8rem; color: #16a34a; font-weight: 600; }
.card-rating { font-size: .8rem; color: var(--clr-accent); }

/* Coupon & offer badges */
.card-coupon { margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.coupon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px dashed #d97706;
    cursor: pointer;
    transition: all .2s;
    letter-spacing: .03em;
}
.coupon-badge:hover { background: #fde68a; transform: scale(1.04); }
.coupon-text { font-size: .72rem; color: #92400e; font-weight: 500; }
.card-offers { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.offer-chip {
    display: inline-block;
    font-size: .68rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.offer-chip.bank { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.offer-chip.special { background: #faf5ff; color: #7c3aed; border: 1px solid #ddd6fe; }

.card-rec-reason {
    font-size: .78rem;
    color: #6d28d9;
    background: #f5f3ff;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    margin-top: 4px;
    line-height: 1.4;
}

.card-cta {
    display: block;
    text-align: center;
    padding: 12px 14px;
    background: var(--clr-primary);
    color: #fff;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    transition: background .2s;
}
.card-cta:hover { background: var(--clr-primary-hover); }

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--clr-muted); font-size: .95rem; }

/* ---- MODAL (Compare) ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal {
    background: var(--clr-surface);
    border-radius: var(--radius);
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--clr-border);
}
.modal-header h2 { font-size: 1.1rem; }
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--clr-muted);
    line-height: 1;
}
.modal-body { overflow: auto; padding: 16px 24px 24px; }

/* ---- COMPARE TABLE ---- */
.compare-table-wrap { overflow-x: auto; }
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}
.compare-table th, .compare-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--clr-border);
    vertical-align: top;
    min-width: 160px;
}
.compare-table th.attr-col { width: 100px; min-width: 100px; position: sticky; left: 0; background: var(--clr-surface); z-index: 1; }
.compare-table td img { max-height: 80px; border-radius: 6px; }
.compare-table .best-price { background: #ecfdf5; font-weight: 700; color: #065f46; padding: 4px 8px; border-radius: 4px; }
.cta-link { color: var(--clr-primary); font-weight: 600; text-decoration: none; }
.cta-link:hover { text-decoration: underline; }

/* ---- INDEXING BANNER ---- */
.indexing-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #eff6ff;
    color: #1e40af;
    text-align: center;
    padding: 10px 20px;
    font-size: .85rem;
    border-top: 1px solid #bfdbfe;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ---- HOME DEALS & SAVINGS SECTION ---- */
.home-deals-section {
    padding: 48px 0 40px;
    background: var(--clr-bg);
    border-top: 1px solid var(--clr-border);
}
.home-deals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 32px;
}
.home-deal-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 28px;
    background: var(--clr-surface);
    border-radius: 14px;
    border: 1px solid var(--clr-border);
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    box-shadow: var(--shadow);
}
.home-deal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.deal-card-coupons:hover { border-color: #d97706; }
.deal-card-drops:hover { border-color: #059669; }
.deal-card-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--clr-bg);
}
.deal-card-coupons .deal-card-icon { background: #fffbeb; }
.deal-card-drops .deal-card-icon { background: #ecfdf5; }
[data-theme="dark"] .deal-card-coupons .deal-card-icon { background: rgba(217,119,6,.15); }
[data-theme="dark"] .deal-card-drops .deal-card-icon { background: rgba(5,150,105,.15); }
.deal-card-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: 4px;
}
.deal-card-content p {
    font-size: .84rem;
    color: var(--clr-muted);
    line-height: 1.5;
    margin: 0;
}
.deal-card-arrow {
    font-size: 1.3rem;
    color: var(--clr-muted);
    flex-shrink: 0;
    margin-left: auto;
    transition: transform .2s, color .2s;
}
.home-deal-card:hover .deal-card-arrow {
    transform: translateX(4px);
    color: var(--clr-primary);
}

/* Live coupon preview strip */
.home-coupons-preview {
    max-width: 900px;
    margin: 0 auto;
    background: var(--clr-surface);
    border-radius: 14px;
    border: 1px solid var(--clr-border);
    padding: 20px 24px 16px;
    box-shadow: var(--shadow);
}
.preview-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: 14px;
}
.home-coupon-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.home-coupon-chip {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--clr-bg);
    border-radius: 10px;
    border: 1px dashed var(--clr-border);
    cursor: pointer;
    transition: border-color .2s, background .2s;
    max-width: 280px;
}
.home-coupon-chip:hover {
    border-color: #d97706;
    background: #fffbeb;
}
[data-theme="dark"] .home-coupon-chip:hover { background: rgba(217,119,6,.1); }
.coupon-chip-site {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    flex-shrink: 0;
}
.coupon-chip-site.site-Amazon { background: #ff9900; }
.coupon-chip-site.site-Flipkart { background: #2874f0; }
.coupon-chip-site.site-Myntra { background: #ff3e6c; }
.coupon-chip-site.site-FirstCry { background: #fc799e; }
.coupon-chip-site.site-Ajio { background: #4a90d9; }
.coupon-chip-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.coupon-chip-code {
    font-size: .82rem;
    font-weight: 700;
    color: #b45309;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
[data-theme="dark"] .coupon-chip-code { color: #fbbf24; }
.coupon-chip-name {
    font-size: .72rem;
    color: var(--clr-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-coupon-loading {
    color: var(--clr-muted);
    font-size: .85rem;
    padding: 8px 0;
}
.view-all-link {
    display: inline-block;
    margin-top: 10px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--clr-primary);
    text-decoration: none;
    transition: color .2s;
}
.view-all-link:hover { color: var(--clr-primary-hover); text-decoration: underline; }

@media (max-width: 768px) {
    .home-deals-grid { grid-template-columns: 1fr; gap: 12px; }
    .home-deal-card { padding: 16px 18px; gap: 14px; }
    .deal-card-icon { width: 44px; height: 44px; font-size: 1.6rem; border-radius: 10px; }
    .deal-card-content h3 { font-size: .95rem; }
    .deal-card-content p { font-size: .8rem; }
    .home-deals-section { padding: 32px 0 28px; }
    .section-title-center { font-size: 1.25rem; }
    .home-coupons-preview { padding: 14px 16px 12px; }
}

/* ---- SEO CONTENT SECTION ---- */
.seo-content-section { padding: 48px 0 24px; background: var(--clr-surface-alt); border-top: 1px solid var(--clr-border); }
.seo-text { max-width: 800px; margin: 0 auto; text-align: center; }
.seo-text p { color: var(--clr-muted); font-size: .95rem; line-height: 1.7; margin-bottom: 12px; }
.seo-text strong { color: var(--clr-text); font-weight: 600; }

/* ---- FAQ SECTION ---- */
.faq-section { padding: 40px 0 48px; background: var(--clr-bg); }
.faq-list { max-width: 760px; margin: 20px auto 0; }
.faq-item { background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; transition: box-shadow .2s; }
.faq-item[open] { box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.faq-question { padding: 16px 20px; font-weight: 600; font-size: .95rem; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; color: var(--clr-text); }
.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--clr-primary); font-weight: 700; transition: transform .2s; }
.faq-item[open] .faq-question::after { content: '−'; }
.faq-question::-webkit-details-marker { display: none; }
.faq-answer { padding: 0 20px 16px; color: var(--clr-muted); font-size: .9rem; line-height: 1.7; }

/* ---- FOOTER ---- */
/* ---- FOOTER / AFFILIATE DISCLOSURE ---- */
.footer { margin-top: auto; padding: 20px 0; text-align: center; color: var(--clr-muted); font-size: .8rem; }
.affiliate-footer {
    margin-top: auto;
    padding: 24px 0 100px;
    text-align: center;
    border-top: 1px solid var(--clr-border);
    background: #f8fafc;
    position: relative;
    z-index: 90;
}
.affiliate-disclosure {
    font-size: .78rem;
    color: var(--clr-muted);
    max-width: 700px;
    margin: 0 auto 8px;
    line-height: 1.6;
}
.affiliate-disclosure strong { color: var(--clr-text); }
.footer-copy { font-size: .75rem; color: #94a3b8; }
.footer-links { margin-top: 8px; font-size: .85rem; }
.footer-links .nav-contact-link { color: #818cf8; text-decoration: none; }
.footer-links .nav-contact-link:hover { text-decoration: underline; }
.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 12px 0;
    font-size: .85rem;
}
.footer-nav a {
    color: #818cf8;
    text-decoration: none;
    transition: color .2s;
}
.footer-nav a:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

/* ---- UTILITIES ---- */
.hidden { display: none !important; }
.error-msg { color: #dc2626; padding: 20px; text-align: center; }

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid #bfdbfe;
    border-top-color: #1e40af;
    border-radius: 50%;
    animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- WISHLIST HEART BUTTON ---- */
.card-wishlist {
    position: absolute;
    top: 10px;
    left: 38px;
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255,255,255,.85);
    border-radius: 50%;
    cursor: pointer;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform .2s, background .2s;
    filter: grayscale(1);
    opacity: .6;
}
.card-wishlist:hover { transform: scale(1.2); opacity: 1; filter: none; }
.card-wishlist.wishlisted { filter: none; opacity: 1; background: rgba(255,255,255,.95); }
.btn-wishlist-nav {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}

/* ---- CARD ACTIONS ROW ---- */
.card-actions {
    display: flex;
    align-items: stretch;
}
.card-actions .card-cta {
    flex: 1;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-share {
    width: 46px;
    border: none;
    background: var(--clr-primary-hover);
    color: #fff;
    cursor: pointer;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.card-share:hover { background: #3730a3; }

/* ---- SHARE MENU ---- */
.share-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.share-menu {
    background: var(--clr-surface);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.share-menu h3 { font-size: 1.1rem; margin-bottom: 16px; }
.share-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.share-opt {
    padding: 12px 16px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    background: var(--clr-bg);
    cursor: pointer;
    font-size: .9rem;
    font-family: inherit;
    transition: background .2s;
}
.share-opt:hover { background: #e0e7ff; }
.share-menu-close {
    background: none;
    border: none;
    color: var(--clr-muted);
    font-size: .85rem;
    cursor: pointer;
    font-family: inherit;
}

/* ---- AI FEEDBACK ---- */
.ai-feedback {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--clr-border);
}
.feedback-label { font-size: .76rem; color: var(--clr-muted); }
.feedback-btn {
    background: none;
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: .85rem;
    transition: background .2s, transform .15s;
}
.feedback-btn:hover { background: #f0f4ff; transform: scale(1.1); }
.feedback-btn.voted { background: #e0e7ff; border-color: var(--clr-primary); }
.feedback-btn:disabled { opacity: .5; cursor: default; transform: none; }

/* ---- RECENT SEARCHES ---- */
.recent-searches {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
    justify-content: center;
}
.recent-label { font-size: .78rem; color: rgba(255,255,255,.7); margin: 0; white-space: nowrap; }
.recent-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.chip-recent {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.2);
    font-size: .76rem;
    padding: 5px 12px;
}

/* ---- DAILY DEALS ---- */
.deals-section {
    padding: 24px 0;
}
.deals-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--clr-text);
}
.deals-site-groups {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.deals-site-group {
    background: var(--clr-surface);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--clr-border);
}
.deals-site-flipkart { border-left-color: var(--clr-flipkart); }
.deals-site-amazon   { border-left-color: var(--clr-amazon); }
.deals-site-myntra   { border-left-color: var(--clr-myntra); }
.deals-site-firstcry { border-left-color: var(--clr-firstcry); }
.deals-site-ajio { border-left-color: var(--clr-ajio); }
.deals-site-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.deals-site-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}
.deals-site-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}
.deals-site-count {
    margin-left: auto;
    font-size: .75rem;
    color: var(--clr-muted);
    font-weight: 500;
    background: var(--clr-bg);
    padding: 2px 10px;
    border-radius: 20px;
}
.deals-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

/* Flipkart Affiliate Widgets */
.fk-affiliate-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--clr-border);
}
.fk-affiliate-title {
    font-size: .9rem;
    font-weight: 600;
    color: var(--clr-flipkart);
    margin: 0 0 12px 0;
}
.fk-affiliate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.fk-affiliate-grid > div {
    min-height: 250px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f8fafc;
}
.deal-card {
    min-width: 200px;
    max-width: 220px;
    background: var(--clr-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .15s, box-shadow .2s;
}
.deal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.deal-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #dc2626;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}
.deal-img {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    overflow: hidden;
}
.deal-img img { max-height: 100%; max-width: 100%; object-fit: contain; padding: 6px; }
.deal-info { padding: 10px; flex: 1; }
.deal-name { font-size: .8rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.deal-price { font-size: .95rem; font-weight: 700; color: var(--clr-primary); }
.deal-original { font-size: .75rem; color: var(--clr-muted); text-decoration: line-through; margin-left: 4px; }
.deal-cta {
    display: block;
    text-align: center;
    padding: 8px;
    background: var(--clr-primary);
    color: #fff;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 600;
    transition: background .2s;
}
.deal-cta:hover { background: var(--clr-primary-hover); }
.deal-cta-flipkart { background: var(--clr-flipkart); }
.deal-cta-flipkart:hover { background: #1a5dc7; }
.deal-cta-amazon { background: var(--clr-amazon); color: #111; }
.deal-cta-amazon:hover { background: #e68a00; }
.deal-cta-myntra { background: var(--clr-myntra); }
.deal-cta-myntra:hover { background: #e0345c; }
.deal-cta-firstcry { background: var(--clr-firstcry); }
.deal-cta-firstcry:hover { background: #e8607f; }
.deal-cta-ajio { background: var(--clr-ajio); }
.deal-cta-ajio:hover { background: #3a7bc0; }

/* ---- COMPARE SUMMARY ---- */
.compare-summary {
    padding: 14px 24px;
    border-bottom: 1px solid var(--clr-border);
}
.compare-summary-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .85rem;
    color: var(--clr-muted);
}
.compare-summary-text {
    font-size: .88rem;
    line-height: 1.6;
    color: var(--clr-text);
}

/* ---- RESPONSIVE ---- */

/* Tablet & small desktop */
@media (max-width: 1024px) {
    .container { padding: 0 16px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
    .hero { padding: 50px 0 36px; }
    .hero-title { font-size: 2.2rem; }
    .nav-menu { gap: 2px; margin-left: 16px; }
    .nav-menu-link { font-size: .82rem; padding: 5px 10px; }
}

/* Mobile */
@media (max-width: 768px) {
    .container { padding: 0 12px; }

    /* Nav — show hamburger, hide desktop menu */
    .nav-hamburger { display: flex; }
    .nav-menu { display: none; }
    .navbar { position: sticky; }
    .nav-inner { flex-direction: row; text-align: center; gap: 8px; }
    .nav-actions { flex-wrap: wrap; justify-content: center; }
    .nav-actions > .nav-contact-link { display: none; }
    .nav-actions > .btn-dark-toggle { width: 28px; height: 28px; font-size: .8rem; padding: 0; }
    .nav-stats { justify-content: center; }
    .nav-pill { font-size: .7rem; padding: 3px 8px; }
    .nav-logo { height: 28px; }

    /* Hero */
    .hero { padding: 40px 0 30px; }
    .hero-title { font-size: 1.7rem; }
    .hero-sub { font-size: .9rem; margin-bottom: 18px; padding: 0 8px; }
    .hero-compact { padding: 16px 0 12px; }
    .hero-compact .hero-title { font-size: 1rem; }

    /* Example chips */
    .example-chips {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 8px;
        padding: 0 16px 10px;
        margin: 0 -12px;
        max-width: none;
        width: calc(100% + 24px);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .example-chips::-webkit-scrollbar { display: none; }
    .chip {
        padding: 7px 14px;
        font-size: .8rem;
        flex-shrink: 0;
    }
    .chip:hover { transform: none; }

    /* Chat input */
    .chat-input-bar { padding: 8px 0 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
    .chat-form { padding: 5px 5px 5px 12px; margin: 0 6px; gap: 4px; border-radius: 40px; }
    .chat-form input {
        padding: 10px 2px;
        font-size: .9rem;
        min-width: 0;
        text-overflow: ellipsis;
    }
    .chat-form input::placeholder {
        font-size: .76rem;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }
    /* Hide hint when typing on mobile to save space */
    .chat-form:focus-within ~ .input-hint { display: none; }
    .send-btn { width: 38px; height: 38px; }
    .send-btn svg { width: 18px; height: 18px; }
    .mic-btn { width: 34px; height: 34px; }
    .mic-btn svg { width: 16px; height: 16px; }
    .input-hint {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 10px;
        font-size: .62rem;
        justify-content: center;
        margin-top: 4px;
        transition: opacity .15s;
    }
    .input-hint .mic-hint {
        max-width: 240px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .input-hint kbd { font-size: .58rem; padding: 0 4px; }

    /* Chat thread */
    .chat-thread { padding: 16px 8px 8px; gap: 14px; }
    .chat-bubble { max-width: 96%; }
    .bubble-avatar { width: 28px; height: 28px; font-size: .72rem; }
    .bubble-content { padding: 10px 12px; font-size: .85rem; line-height: 1.5; }
    .rec-item { padding: 10px 10px; flex-direction: column; gap: 8px; }
    .rec-item:hover { transform: none; }
    .rec-rank { width: 26px; height: 26px; font-size: .7rem; }
    .rec-name { font-size: .84rem; }
    .rec-reason { font-size: .78rem; }
    .rec-tags { gap: 4px; }
    .rec-tag { font-size: .64rem; padding: 2px 8px; }
    .ai-tip { font-size: .8rem; padding: 8px 12px; }
    .ai-mode-note { font-size: .74rem; padding: 8px 12px; }
    .chat-quick-btn { padding: 6px 12px; font-size: .78rem; }

    /* Filters */
    .filters-bar { padding: 10px 0; top: auto; position: relative; }
    .filters-inner { flex-direction: column; align-items: stretch; gap: 10px; }
    .filter-group { width: 100%; }
    .filter-group select { flex: 1; width: 100%; }
    .filter-right { margin-left: 0; justify-content: space-between; }

    /* Product grid */
    .product-grid { grid-template-columns: 1fr; gap: 12px; padding: 16px 0 16px; }
    .card-img-wrap { height: 180px; }
    .card-body { padding: 12px; }
    .card-name { font-size: .85rem; }
    .card-price { font-size: 1.05rem; }
    .card-cta { padding: 10px 12px; font-size: .84rem; }

    /* Pagination mobile */
    .pagination-wrap { gap: 4px; padding: 12px 0 30px; }
    .page-btn { min-width: 34px; height: 34px; font-size: .8rem; padding: 0 8px; border-radius: 6px; }
    .page-prev, .page-next { padding: 0 10px; font-size: .76rem; }
    .page-info { margin-left: 4px; font-size: .72rem; }

    /* Compare modal */
    .modal-overlay { padding: 8px; }
    .modal { max-width: 100%; max-height: 95vh; border-radius: 10px; }
    .modal-header { padding: 14px 16px; }
    .modal-header h2 { font-size: 1rem; }
    .modal-body { padding: 12px 14px 18px; }
    .compare-table th, .compare-table td { padding: 8px 10px; min-width: 130px; font-size: .8rem; }

    /* Footer */
    .affiliate-footer { padding: 18px 0 110px; }
    .affiliate-disclosure { font-size: .72rem; padding: 0 8px; }
    .footer-copy { font-size: .72rem; }

    /* Deals */
    .deals-carousel { gap: 10px; }
    .deal-card { min-width: 160px; max-width: 180px; }
    .deal-img { height: 90px; }
    .deal-name { font-size: .72rem; }
    .deal-price { font-size: .85rem; }

    /* Share menu */
    .share-menu { padding: 18px; }

    /* Wishlist */
    .card-wishlist { left: 34px; width: 26px; height: 26px; font-size: .75rem; }
}

/* Small phones */
@media (max-width: 480px) {
    .hero { padding: 30px 0 22px; }
    .hero-title { font-size: 1.4rem; }
    .hero-sub { font-size: .84rem; }

    .nav-stats { display: flex; gap: 4px; justify-content: center; }
    .nav-pill { font-size: .65rem; padding: 2px 6px; }
    .nav-inner { flex-direction: row; }
    .nav-logo { height: 26px; }

    .chat-form { border-radius: 28px; padding: 4px 4px 4px 10px; margin: 0 4px; gap: 3px; }
    .chat-form input { font-size: .86rem; padding: 8px 2px; }
    .chat-form input::placeholder { font-size: .7rem; }
    .send-btn { width: 34px; height: 34px; }
    .send-btn svg { width: 16px; height: 16px; }
    .mic-btn { width: 30px; height: 30px; }
    .mic-btn svg { width: 14px; height: 14px; }
    .input-hint { display: none; }

    .product-grid { gap: 10px; padding: 12px 0 12px; }
    .card-img-wrap { height: 160px; }
    .card-rec-badge { font-size: .62rem; top: 34px; }

    .pagination-wrap { gap: 3px; padding: 10px 0 24px; }
    .page-btn { min-width: 30px; height: 30px; font-size: .75rem; padding: 0 6px; }
    .page-prev, .page-next { font-size: .72rem; padding: 0 8px; }
    .page-info { display: none; }

    .bubble-content { padding: 8px 10px; font-size: .82rem; }
    .rec-item { padding: 8px; }

    .chat-welcome h3 { font-size: .95rem; }
    .chat-welcome p { font-size: .8rem; }
    .chat-welcome-icon { font-size: 1.8rem; }

    .example-chips {
        gap: 6px;
        padding: 0 12px 8px;
        margin: 0 -10px;
        width: calc(100% + 20px);
    }
    .chip {
        padding: 6px 12px;
        font-size: .74rem;
    }

    .input-hint .mic-hint { max-width: 180px; }
    .input-hint { font-size: .6rem; gap: 4px 8px; }
}

/* ============================================================
   HOW IT WORKS, FEATURES, FOOTER STATS
   ============================================================ */

/* ---- HOW IT WORKS ---- */
.how-it-works {
    padding: 48px 0 32px;
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
}
.section-title-center {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-text);
    margin-bottom: 6px;
}
.section-subtitle {
    text-align: center;
    font-size: .9rem;
    color: var(--clr-muted);
    margin-bottom: 32px;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.step-card {
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--radius);
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    position: relative;
    transition: transform .25s, box-shadow .25s;
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(79,70,229,.1);
}
.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(79,70,229,.3);
}
.step-icon-wrap {
    margin-bottom: 12px;
}
.step-icon {
    font-size: 2.2rem;
    display: inline-block;
    animation: floatIcon 3s ease-in-out infinite;
}
.step-card:nth-child(2) .step-icon { animation-delay: .3s; }
.step-card:nth-child(3) .step-icon { animation-delay: .6s; }
@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.step-title {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--clr-text);
}
.step-desc {
    font-size: .82rem;
    color: var(--clr-muted);
    line-height: 1.55;
}

/* ---- FEATURE HIGHLIGHTS ---- */
.features-section {
    padding: 32px 0 16px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.feature-card {
    text-align: center;
    padding: 22px 14px;
    border-radius: var(--radius);
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    transition: transform .2s, border-color .2s;
}
.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--clr-primary);
}
.feature-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.feature-card h3 { font-size: .85rem; font-weight: 700; margin-bottom: 4px; color: var(--clr-text); }
.feature-card p { font-size: .76rem; color: var(--clr-muted); line-height: 1.45; }

/* ---- FOOTER STATS COUNTER ---- */
.footer-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--clr-border);
}
.stat-item { text-align: center; min-width: 0; }
.stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--clr-primary);
    line-height: 1.2;
    white-space: nowrap;
}
.stat-label {
    display: block;
    font-size: .75rem;
    color: var(--clr-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
    margin-top: 4px;
    white-space: nowrap;
}

/* ---- RESPONSIVE: NEW SECTIONS ---- */
@media (max-width: 768px) {
    .hero { padding: 40px 0 32px; }
    .hero-title { font-size: 1.8rem; }
    .hero-sub { font-size: .88rem; margin-bottom: 20px; }
    .hero-trust-bar { gap: 8px; }
    .trust-item { font-size: .68rem; padding: 3px 8px; }
    .hero-search-form { padding: 4px 4px 4px 12px; gap: 4px; }
    .hero-search-form input { font-size: .85rem; padding: 10px 2px; min-width: 0; }
    .hero-search-btn { padding: 10px 14px; font-size: .8rem; }
    .hero-search-btn-text { display: none; }
    .hero-mic-btn { width: 36px; height: 36px; }
    .hero-mic-btn svg { width: 16px; height: 16px; }
    .hero-store-badges { flex-wrap: wrap; justify-content: center; }
    .steps-grid { grid-template-columns: 1fr; gap: 28px; max-width: 340px; }
    .step-card { padding: 24px 16px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .feature-card { padding: 16px 10px; }
    .feature-icon { font-size: 1.5rem; }
    .feature-card h3 { font-size: .8rem; }
    .feature-card p { font-size: .72rem; }
    .footer-stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .stat-number { font-size: 1.3rem; }
}
@media (max-width: 480px) {
    .hero { padding: 28px 0 22px; }
    .hero-title { font-size: 1.5rem; }
    .hero-trust-bar { gap: 6px; margin-bottom: 14px; }
    .trust-item { font-size: .62rem; }
    .hero-search-btn { padding: 8px 10px; font-size: .76rem; }
    .hero-search-form { gap: 3px; padding: 3px 3px 3px 10px; }
    .hero-search-form input { font-size: .8rem; padding: 8px 2px; }
    .hero-mic-btn { width: 32px; height: 32px; }
    .hero-mic-btn svg { width: 14px; height: 14px; }
    .features-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .section-title-center { font-size: 1.2rem; }
    .section-subtitle { font-size: .8rem; }
}

/* ============================================================
   INTERACTIVE UI ENHANCEMENTS
   ============================================================ */

/* ---- DARK MODE TOGGLE ---- */
.btn-dark-toggle {
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s, background .2s;
}
.btn-dark-toggle:hover { transform: rotate(30deg) scale(1.1); }

/* ---- HERO TYPING ANIMATION ---- */
.hero-typing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px auto 0;
    font-size: 1rem;
    color: rgba(255,255,255,.85);
    min-height: 28px;
}
.typing-prefix {
    font-weight: 600;
    color: #fbbf24;
    font-size: .9rem;
}
.typing-text {
    font-style: italic;
    font-weight: 400;
    max-width: 400px;
    overflow: hidden;
    white-space: nowrap;
}
.typing-cursor {
    animation: blink .7s step-end infinite;
    font-weight: 200;
    color: #fbbf24;
}
@keyframes blink {
    50% { opacity: 0; }
}
.hero-compact .hero-typing { display: none; }

/* ---- POPULAR CATEGORIES ---- */
.categories-section {
    padding: 28px 0 12px;
}
.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--clr-text);
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}
.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: var(--clr-surface);
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    font-family: inherit;
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-primary);
}
.cat-card:active { transform: translateY(-1px) scale(.97); }
.cat-icon {
    font-size: 1.6rem;
    line-height: 1;
}
.cat-name {
    font-size: .75rem;
    font-weight: 600;
    color: var(--clr-text);
    text-align: center;
}

/* ---- SCROLL TO TOP ---- */
.scroll-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--clr-primary);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(79,70,229,.35);
    z-index: 150;
    transition: transform .2s, opacity .3s, visibility .3s;
    opacity: 0;
    visibility: hidden;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover { transform: scale(1.1) translateY(-2px); }
.scroll-top:active { transform: scale(.95); }

/* ---- TOAST NOTIFICATIONS ---- */
.toast-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    background: var(--clr-text);
    color: var(--clr-bg);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: .88rem;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
    animation: toastIn .35s cubic-bezier(.22,1,.36,1), toastOut .35s .65s forwards;
    white-space: nowrap;
    pointer-events: auto;
}
.toast-success { background: #059669; color: #fff; }
.toast-error { background: #dc2626; color: #fff; }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px) scale(.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-10px); }
}

/* ---- SKELETON LOADING ---- */
.skeleton-card {
    background: var(--clr-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.skeleton-img {
    height: 200px;
    background: linear-gradient(90deg, var(--clr-border) 25%, var(--clr-bg) 50%, var(--clr-border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.skeleton-body { padding: 14px; }
.skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--clr-border) 25%, var(--clr-bg) 50%, var(--clr-border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 10px;
}
.skeleton-line.short { width: 60%; }
.skeleton-line.price { width: 40%; height: 20px; }
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- STAGGERED CARD ENTRANCE ---- */
.product-card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardEnter .4s cubic-bezier(.22,1,.36,1) forwards;
}
.product-card:nth-child(1)  { animation-delay: .03s; }
.product-card:nth-child(2)  { animation-delay: .06s; }
.product-card:nth-child(3)  { animation-delay: .09s; }
.product-card:nth-child(4)  { animation-delay: .12s; }
.product-card:nth-child(5)  { animation-delay: .15s; }
.product-card:nth-child(6)  { animation-delay: .18s; }
.product-card:nth-child(7)  { animation-delay: .21s; }
.product-card:nth-child(8)  { animation-delay: .24s; }
.product-card:nth-child(9)  { animation-delay: .27s; }
.product-card:nth-child(10) { animation-delay: .30s; }
.product-card:nth-child(n+11) { animation-delay: .33s; }
@keyframes cardEnter {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- PRICE RANGE FILTER ---- */
.filter-price {
    min-width: 160px;
}
.filter-price input[type="range"] {
    width: 100px;
    accent-color: var(--clr-primary);
    cursor: pointer;
}
.price-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--clr-primary);
    min-width: 50px;
    text-align: center;
}

/* ---- SEARCH SUGGESTIONS ---- */
.search-suggestions {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 280px;
    overflow-y: auto;
    z-index: 90;
    margin-bottom: 6px;
}
.suggestion-item {
    padding: 10px 18px;
    font-size: .88rem;
    color: var(--clr-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .15s;
    border-bottom: 1px solid var(--clr-border);
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover, .suggestion-item.active { background: #f0f4ff; }
[data-theme="dark"] .suggestion-item:hover,
[data-theme="dark"] .suggestion-item.active { background: #334155; }
.suggestion-icon { font-size: .8rem; color: var(--clr-muted); }
.suggestion-text { flex: 1; }
.suggestion-type { font-size: .7rem; color: var(--clr-muted); font-weight: 500; text-transform: uppercase; }

/* ---- PRODUCT CARD IMAGE ZOOM ---- */
.card-img-wrap img {
    transition: transform .3s ease;
}
.product-card:hover .card-img-wrap img {
    transform: scale(1.08);
}

/* ---- CAT CARD MOBILE ---- */
@media (max-width: 768px) {
    .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .cat-card { padding: 10px 6px; }
    .cat-icon { font-size: 1.3rem; }
    .cat-name { font-size: .68rem; }
    .hero-typing { font-size: .85rem; }
    .typing-text { max-width: 220px; }
    .filter-price { min-width: 120px; }
    .filter-price input[type="range"] { width: 70px; }
    .scroll-top { bottom: 80px; right: 12px; width: 40px; height: 40px; font-size: 1rem; }
}
@media (max-width: 480px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-typing { font-size: .78rem; }
    .typing-text { max-width: 170px; }
}

/* =====================================================================
   STORE PAGE STYLES
   ===================================================================== */
.store-hero {
    background: linear-gradient(135deg, var(--store-color, #4f46e5) 0%, color-mix(in srgb, var(--store-color, #4f46e5) 70%, #000) 100%);
    color: #fff;
    padding: 48px 0 36px;
    text-align: left;
}
.store-hero-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}
.store-hero-icon {
    font-size: 3.5rem;
    flex-shrink: 0;
    background: rgba(255,255,255,.15);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.store-hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 6px;
}
.store-hero-sub {
    font-size: 1rem;
    opacity: .9;
    margin: 0;
    max-width: 600px;
}

/* Store filters bar */
.store-filters {
    position: sticky;
    top: 96px;
    z-index: 89;
    background: var(--clr-bg);
    border-bottom: 1px solid var(--clr-border);
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.store-filters-inner {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}
.store-search-input {
    padding: 8px 12px;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    font-size: .88rem;
    font-family: inherit;
    background: var(--clr-bg);
    color: var(--clr-text);
    width: 180px;
    transition: border-color .2s;
}
.store-search-input:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.category-filter-select {
    max-width: 220px;
    padding: 8px 12px;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    font-size: .88rem;
    font-family: inherit;
    background: var(--clr-bg);
    color: var(--clr-text);
    cursor: pointer;
    transition: border-color .2s;
}
.category-filter-select:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

/* Store main area */
.store-main {
    padding-top: 24px;
    padding-bottom: 60px;
    min-height: 60vh;
}

/* Loading state */
.store-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 0;
    color: var(--clr-muted);
}
.store-loading.hidden { display: none; }

/* Discount badge overlay on card */
.card-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: #dc2626;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: .02em;
}

/* Category tag in card */
.card-category {
    display: inline-block;
    font-size: .72rem;
    color: var(--clr-muted);
    background: var(--clr-border);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: capitalize;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Clickable category button inside card */
.card-category-btn {
    display: inline-block;
    font-size: .72rem;
    color: var(--clr-primary);
    background: rgba(79,70,229,.08);
    border: 1px solid rgba(79,70,229,.18);
    padding: 2px 10px;
    border-radius: 12px;
    text-transform: capitalize;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}
.card-category-btn:hover {
    background: var(--clr-primary);
    color: #fff;
}

/* Store nav link in navbar */
.store-nav-link {
    font-weight: 600;
}

/* =====================================================================
   MOBILE STORE TABS
   ===================================================================== */
.mobile-store-tabs {
    display: none;  /* hidden on desktop */
    background: var(--clr-bg);
    border-bottom: 1px solid var(--clr-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mobile-store-tabs::-webkit-scrollbar { display: none; }
.mobile-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 14px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--clr-muted);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all .2s;
}
.mobile-tab:hover, .mobile-tab:active {
    color: var(--clr-text);
    background: rgba(79,70,229,.04);
}
.mobile-tab.active {
    color: var(--clr-primary);
    border-bottom-color: var(--clr-primary);
}
.mobile-tab.tab-amazon.active {
    color: #ff9900;
    border-bottom-color: #ff9900;
}
.mobile-tab.tab-flipkart.active {
    color: #2874f0;
    border-bottom-color: #2874f0;
}
.mobile-tab.tab-firstcry.active {
    color: var(--clr-firstcry);
    border-bottom-color: var(--clr-firstcry);
}
.mobile-tab.tab-ajio.active {
    color: var(--clr-ajio);
    border-bottom-color: var(--clr-ajio);
}

/* =====================================================================
   STORE STATS ROW
   ===================================================================== */
.store-stats-row {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}
.store-stat-card {
    flex: 1;
    background: rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    backdrop-filter: blur(4px);
}
.store-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.store-stat-lbl {
    display: block;
    font-size: .75rem;
    opacity: .8;
    margin-top: 2px;
}

/* =====================================================================
   CATEGORY CHIPS BAR
   ===================================================================== */
.store-category-bar {
    position: sticky;
    top: 52px;
    z-index: 91;
    background: var(--clr-bg);
    border-bottom: 1px solid var(--clr-border);
    padding: 10px 0;
}
.category-chips-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.category-chips-scroll::-webkit-scrollbar { display: none; }
.category-chip {
    flex-shrink: 0;
    padding: 7px 16px;
    border: 1.5px solid var(--clr-border);
    border-radius: 20px;
    background: var(--clr-bg);
    color: var(--clr-text);
    font-size: .82rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-transform: capitalize;
    transition: all .2s;
    white-space: nowrap;
}
.category-chip:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
    background: rgba(79,70,229,.06);
}
.category-chip.active {
    background: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
    box-shadow: 0 2px 8px rgba(79,70,229,.3);
}

/* =====================================================================
   STORE CARD ENTRANCE ANIMATION
   ===================================================================== */
.store-card {
    animation: storeCardIn .4s ease both;
}
@keyframes storeCardIn {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.store-card .card-img-wrap img {
    transition: transform .3s ease;
}
.store-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

/* Rating num inside card */
.rating-num {
    font-weight: 600;
    font-size: .82rem;
    color: var(--clr-muted);
    margin-left: 2px;
}

/* =====================================================================
   TOAST
   ===================================================================== */
.toast {
    background: var(--clr-text);
    color: var(--clr-bg);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    opacity: 0;
    transform: translateY(12px);
    transition: all .3s ease;
    margin-top: 8px;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-error {
    background: #dc2626;
    color: #fff;
}

/* ---- Store page responsive ---- */
@media (max-width: 768px) {
    .mobile-store-tabs { display: flex; }
    .store-hero { padding: 24px 0 20px; }
    .store-hero-icon { font-size: 2.5rem; width: 60px; height: 60px; border-radius: 14px; }
    .store-hero-title { font-size: 1.5rem; }
    .store-hero-sub { font-size: .85rem; }
    .store-stats-row { gap: 8px; margin-top: 16px; }
    .store-stat-card { padding: 10px 8px; border-radius: 10px; }
    .store-stat-num { font-size: 1.15rem; }
    .store-stat-lbl { font-size: .65rem; }
    .store-category-bar { top: 92px; padding: 8px 0; }
    .category-chip { padding: 6px 12px; font-size: .76rem; }
    .store-filters { top: 138px; }
    .store-filters-inner { gap: 10px; }
    .store-search-input { width: 140px; }
}
@media (max-width: 480px) {
    .store-hero-inner { flex-direction: column; text-align: center; }
    .store-hero-title { font-size: 1.25rem; }
    .store-hero-sub { font-size: .8rem; }
    .store-stats-row { flex-wrap: wrap; gap: 6px; }
    .store-stat-card { flex: 1 1 42%; padding: 8px 6px; }
    .store-stat-num { font-size: 1rem; }
    .category-chip { padding: 5px 10px; font-size: .72rem; }
    .store-filters-inner { gap: 8px; }
    .store-search-input { width: 100%; }
    .store-filters .filter-group { flex: 1 1 45%; }
}

/* =====================================================================
   CARD ACTIONS ROW (Share + Alert buttons)
   ===================================================================== */
.card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-top: 1px solid rgba(0,0,0,.06);
    background: rgba(0,0,0,.01);
}
.card-actions .card-cta {
    flex: 1;
    display: inline-block;
    text-align: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--primary, #4f46e5), var(--primary-dark, #3730a3));
    color: #fff;
    font-weight: 600;
    font-size: .82rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}
.card-actions .card-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79,70,229,.3);
}
.card-share-btn, .card-alert-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(0,0,0,.04);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, transform .15s;
}
.card-share-btn:hover { background: rgba(37,211,102,.12); transform: scale(1.1); }
.card-alert-btn:hover { background: rgba(251,191,36,.15); transform: scale(1.1); }

[data-theme="dark"] .card-actions { border-top-color: rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
[data-theme="dark"] .card-share-btn, [data-theme="dark"] .card-alert-btn { background: rgba(255,255,255,.08); }

/* =====================================================================
   SHARE MODAL
   ===================================================================== */
.share-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn .2s;
}
.share-modal {
    background: #fff; border-radius: 16px; padding: 28px;
    width: 90%; max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    text-align: center;
}
.share-modal h3 { margin: 0 0 16px; font-size: 1.15rem; }
.share-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.share-opt {
    padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 10px;
    background: #fff; cursor: pointer; font-size: .92rem; font-weight: 500;
    transition: background .15s, border-color .15s; text-align: left;
}
.share-opt:hover { background: #f3f4f6; border-color: #d1d5db; }
.share-opt.whatsapp:hover { background: #dcf8c6; border-color: #25d366; }
.share-opt.twitter:hover { background: #e8f5fd; border-color: #1da1f2; }
.share-opt.telegram:hover { background: #e3f2fd; border-color: #0088cc; }
.share-close {
    padding: 8px 20px; border: none; border-radius: 8px;
    background: #f3f4f6; cursor: pointer; font-size: .85rem; color: #6b7280;
}
[data-theme="dark"] .share-modal { background: #1e1e2e; color: #e0e0e0; }
[data-theme="dark"] .share-opt { background: #2a2a3e; border-color: #3a3a5a; color: #e0e0e0; }
[data-theme="dark"] .share-opt:hover { background: #3a3a5a; }
[data-theme="dark"] .share-close { background: #2a2a3e; color: #a0a0b0; }

/* =====================================================================
   P1-P4 FEATURES: Price History, Category, Deal of Day, Login, Dashboard, Pricing
   ===================================================================== */

/* --- Price History Page --- */
.ph-stats-grid {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 24px;
}
.ph-stat-card {
    background: var(--clr-surface); border-radius: 12px; padding: 16px; text-align: center;
    border: 1px solid var(--clr-border);
}
.ph-stat-label { display: block; font-size: .75rem; color: var(--clr-muted); text-transform: uppercase; }
.ph-stat-value { display: block; font-size: 1.3rem; font-weight: 700; margin-top: 4px; }
.ph-stat-low { border-color: #22c55e; }
.ph-stat-low .ph-stat-value { color: #22c55e; }
.ph-verdict { padding: 20px; border-radius: 12px; margin-bottom: 24px; }
.ph-verdict h3 { margin: 0 0 6px; font-size: 1.1rem; }
.ph-verdict p { margin: 0; font-size: .9rem; color: var(--clr-muted); }
.ph-verdict-good { background: #ecfdf5; border: 1px solid #bbf7d0; }
.ph-verdict-wait { background: #fef9c3; border: 1px solid #fde68a; }
[data-theme="dark"] .ph-verdict-good { background: #052e16; border-color: #166534; }
[data-theme="dark"] .ph-verdict-wait { background: #422006; border-color: #854d0e; }
.ph-chart-wrap { background: var(--clr-surface); border-radius: 12px; padding: 20px; margin-bottom: 24px; border: 1px solid var(--clr-border); }
.ph-alert-cta {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); border-radius: 14px;
    padding: 28px; color: #fff; text-align: center; margin-top: 24px;
}
.ph-alert-cta h3 { margin: 0 0 12px; }
.ph-alert-form { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; }
.ph-alert-form input { flex: 1; padding: 10px 14px; border-radius: 8px; border: none; font-size: .9rem; }
.ph-alert-form button { padding: 10px 20px; border: none; border-radius: 8px; background: #fff; color: #4f46e5; font-weight: 600; cursor: pointer; }
.ph-alert-msg { margin-top: 8px; font-size: .85rem; }
@media (max-width:600px) { .ph-stats-grid { grid-template-columns: repeat(2,1fr); } .ph-alert-form { flex-direction: column; } }

/* --- Category Page --- */
.category-card-icon { font-size: 2.4rem; display: block; margin-bottom: 8px; }
.card-cashback { font-size: .75rem; color: #22c55e; margin-top: 4px; }

/* --- Deal of the Day --- */
.dotd-hero {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffcd02 100%);
    padding: 40px 0; text-align: center; color: #fff;
}
.dotd-hero h1 { font-size: 2rem; margin: 0 0 8px; }
.dotd-hero p { margin: 0 0 12px; opacity: .9; }
.dotd-timer { font-size: 1.1rem; font-weight: 700; background: rgba(0,0,0,.2); display: inline-block; padding: 6px 18px; border-radius: 20px; }
.dotd-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 20px; }
.dotd-card {
    background: var(--clr-surface); border-radius: 14px; overflow: hidden;
    border: 1px solid var(--clr-border); display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.dotd-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.dotd-card-header { display: flex; justify-content: space-between; padding: 12px 16px; align-items: center; }
.dotd-store-badge { font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 6px; background: var(--clr-primary); color: #fff; }
.dotd-discount-badge { font-size: .8rem; font-weight: 700; color: #ef4444; }
.dotd-card-img { height: 200px; display: flex; align-items: center; justify-content: center; padding: 12px; }
.dotd-card-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.dotd-card-body { padding: 0 16px 12px; flex: 1; }
.dotd-card-name { font-size: .95rem; font-weight: 600; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dotd-card-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.dotd-price { font-size: 1.2rem; font-weight: 700; color: #22c55e; }
.dotd-original { text-decoration: line-through; color: var(--clr-muted); font-size: .85rem; }
.dotd-coupon { font-size: .8rem; margin-bottom: 4px; color: var(--clr-primary); }
.dotd-cashback { font-size: .78rem; color: #22c55e; }
.dotd-cta {
    display: block; text-align: center; padding: 14px; background: var(--clr-primary); color: #fff;
    font-weight: 600; text-decoration: none; transition: background .2s;
}
.dotd-cta:hover { background: #3730a3; }

/* --- Login Page --- */
.login-card {
    background: var(--clr-surface); border-radius: 16px; padding: 32px;
    border: 1px solid var(--clr-border); box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.login-form { display: flex; flex-direction: column; gap: 10px; }
.login-form label { font-size: .82rem; font-weight: 600; color: var(--clr-muted); }
.login-form input {
    padding: 12px 14px; border: 1px solid var(--clr-border); border-radius: 10px;
    font-size: .95rem; background: var(--clr-bg); color: var(--clr-text);
}
.login-form input:focus { border-color: var(--clr-primary); outline: none; box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.login-form button {
    padding: 13px; border: none; border-radius: 10px; background: var(--clr-primary);
    color: #fff; font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 6px;
}
.login-form button:hover { background: #3730a3; }
.login-form button:disabled { opacity: .6; cursor: not-allowed; }
.login-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; padding: 10px; border-radius: 8px; font-size: .85rem; margin-bottom: 12px; text-align: center; }
.login-benefits { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--clr-border); }
.login-benefits h3 { font-size: .9rem; margin: 0 0 10px; }
.login-benefits ul { list-style: none; padding: 0; margin: 0; }
.login-benefits li { padding: 5px 0; font-size: .85rem; color: var(--clr-muted); }

/* --- Dashboard --- */
.dash-grid { display: flex; flex-direction: column; gap: 24px; }
.dash-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.dash-stat-card {
    background: var(--clr-surface); border-radius: 12px; padding: 18px; text-align: center;
    border: 1px solid var(--clr-border);
}
.dash-stat-icon { font-size: 1.8rem; display: block; }
.dash-stat-num { display: block; font-size: 1.5rem; font-weight: 700; margin: 4px 0 2px; }
.dash-stat-label { font-size: .75rem; color: var(--clr-muted); text-transform: uppercase; }
.dash-section { background: var(--clr-surface); border-radius: 14px; padding: 24px; border: 1px solid var(--clr-border); }
.dash-section h2 { margin: 0 0 16px; font-size: 1.1rem; }
.dash-alert-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--clr-border);
}
.dash-alert-item:last-child { border-bottom: none; }
.dash-alert-info strong { display: block; font-size: .88rem; }
.dash-alert-info span { font-size: .78rem; color: var(--clr-muted); }
.dash-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.dash-table th { text-align: left; padding: 8px; border-bottom: 2px solid var(--clr-border); font-size: .75rem; text-transform: uppercase; color: var(--clr-muted); }
.dash-table td { padding: 8px; border-bottom: 1px solid var(--clr-border); }
.dash-upgrade {
    background: linear-gradient(135deg, #4f46e5, #7c3aed); border-radius: 14px;
    padding: 28px; color: #fff; text-align: center;
}
.dash-upgrade h3 { margin: 0 0 8px; }
.dash-upgrade p { margin: 0 0 16px; opacity: .9; }
.dash-upgrade-btn {
    display: inline-block; padding: 10px 24px; background: #fff; color: #4f46e5;
    border-radius: 8px; font-weight: 600; text-decoration: none;
}
@media (max-width:600px) { .dash-stats { grid-template-columns: repeat(2,1fr); } }

/* --- Pricing Page --- */
.pricing-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 48px 0; text-align: center; color: #fff;
}
.pricing-hero h1 { font-size: 2rem; margin: 0 0 8px; }
.pricing-hero p { margin: 0; opacity: .9; }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 40px; }
.pricing-card {
    background: var(--clr-surface); border-radius: 16px; padding: 28px;
    border: 1px solid var(--clr-border); display: flex; flex-direction: column; position: relative;
}
.pricing-card-featured { border: 2px solid var(--clr-primary); box-shadow: 0 8px 30px rgba(79,70,229,.15); }
.pricing-card-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--clr-primary); color: #fff; padding: 3px 14px; border-radius: 12px;
    font-size: .75rem; font-weight: 600;
}
.pricing-badge-green { background: #22c55e; }
.pricing-card-header { text-align: center; margin-bottom: 20px; }
.pricing-card-header h2 { margin: 0 0 8px; font-size: 1.1rem; }
.pricing-card-price { font-size: 2.2rem; font-weight: 800; }
.pricing-period { font-size: .85rem; color: var(--clr-muted); }
.pricing-features { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.pricing-features li { padding: 6px 0; font-size: .88rem; border-bottom: 1px solid var(--clr-border); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-card-cta { text-align: center; }
.pricing-btn {
    display: inline-block; padding: 12px 28px; border: none; border-radius: 10px;
    font-size: .95rem; font-weight: 600; cursor: pointer; width: 100%;
}
.pricing-btn-primary { background: var(--clr-primary); color: #fff; }
.pricing-btn-primary:hover { background: #3730a3; }
.pricing-btn-secondary { background: transparent; border: 2px solid var(--clr-primary); color: var(--clr-primary); }
.pricing-btn-secondary:hover { background: var(--clr-primary); color: #fff; }
.pricing-faq { max-width: 700px; margin: 0 auto; }
.faq-item { margin-bottom: 16px; }
.faq-item strong { font-size: .95rem; }
.faq-item p { font-size: .85rem; color: var(--clr-muted); margin: 4px 0 0; }
@media (max-width:768px) { .pricing-grid { grid-template-columns: 1fr; } }

/* --- Guide / Newsletter shared --- */
.guide-newsletter {
    background: var(--clr-surface); border-radius: 14px; padding: 28px; text-align: center;
    border: 1px solid var(--clr-border);
}
.guide-newsletter h3 { margin: 0 0 6px; }
.guide-newsletter p { margin: 0 0 14px; font-size: .9rem; color: var(--clr-muted); }
.newsletter-inline { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; }
.newsletter-inline input { flex: 1; padding: 10px 14px; border: 1px solid var(--clr-border); border-radius: 8px; font-size: .9rem; background: var(--clr-bg); color: var(--clr-text); }
.newsletter-inline button { padding: 10px 20px; border: none; border-radius: 8px; background: var(--clr-primary); color: #fff; font-weight: 600; cursor: pointer; }
.guide-newsletter-note { font-size: .8rem; margin-top: 8px; color: var(--clr-muted); }
@media (max-width:500px) { .newsletter-inline { flex-direction: column; } }

/* =====================================================================
   PRICE ALERT MODAL
   ===================================================================== */
.alert-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn .2s;
}
.alert-modal {
    background: #fff; border-radius: 16px; padding: 28px;
    width: 90%; max-width: 400px; position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.alert-modal-close {
    position: absolute; top: 12px; right: 16px;
    border: none; background: none; font-size: 1.2rem; cursor: pointer; color: #9ca3af;
}
.alert-modal h3 { margin: 0 0 8px; font-size: 1.2rem; }
.alert-product-name {
    font-size: .85rem; color: #6b7280; margin: 0 0 4px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.alert-current-price { font-size: .9rem; margin: 0 0 16px; }
.alert-form { display: flex; flex-direction: column; gap: 8px; }
.alert-form label { font-size: .8rem; font-weight: 600; color: #374151; margin-bottom: -4px; }
.alert-form input {
    padding: 10px 12px; border: 1.5px solid #d1d5db; border-radius: 10px;
    font-size: .92rem; outline: none; transition: border-color .15s;
}
.alert-form input:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.alert-price-row { display: flex; align-items: center; gap: 4px; }
.alert-rupee { font-size: 1.1rem; font-weight: 700; color: #374151; }
.alert-price-row input { flex: 1; }
.alert-submit-btn {
    margin-top: 8px; padding: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff; border: none; border-radius: 10px;
    font-size: .95rem; font-weight: 700; cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
.alert-submit-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,158,11,.3); }
.alert-submit-btn:disabled { opacity: .7; cursor: not-allowed; }
.alert-note { margin: 12px 0 0; font-size: .75rem; color: #9ca3af; text-align: center; }

[data-theme="dark"] .alert-modal { background: #1e1e2e; color: #e0e0e0; }
[data-theme="dark"] .alert-form label { color: #c0c0d0; }
[data-theme="dark"] .alert-form input { background: #2a2a3e; border-color: #3a3a5a; color: #e0e0e0; }
[data-theme="dark"] .alert-form input:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(129,140,248,.15); }
[data-theme="dark"] .alert-rupee { color: #e0e0e0; }
[data-theme="dark"] .alert-product-name { color: #a0a0b0; }

/* =====================================================================
   EXIT-INTENT POPUP
   ===================================================================== */
.exit-popup-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,.6);
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn .25s;
}
.exit-popup {
    background: #fff; border-radius: 20px; padding: 32px 28px;
    width: 90%; max-width: 420px; position: relative;
    box-shadow: 0 24px 70px rgba(0,0,0,.3);
    text-align: center;
    animation: slideUp .3s ease-out;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.exit-popup-close {
    position: absolute; top: 12px; right: 16px;
    border: none; background: none; font-size: 1.3rem; cursor: pointer; color: #9ca3af;
}
.exit-popup-icon { font-size: 2.5rem; margin-bottom: 8px; }
.exit-popup-title { margin: 0 0 8px; font-size: 1.3rem; font-weight: 800; }
.exit-popup-sub { margin: 0 0 18px; font-size: .9rem; color: #6b7280; }
.exit-popup-form { display: flex; gap: 8px; margin-bottom: 16px; }
.exit-popup-email {
    flex: 1; padding: 10px 14px; border: 1.5px solid #d1d5db; border-radius: 10px;
    font-size: .9rem; outline: none;
}
.exit-popup-email:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.exit-popup-btn {
    padding: 10px 18px; white-space: nowrap;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff; border: none; border-radius: 10px;
    font-weight: 700; font-size: .88rem; cursor: pointer;
    transition: transform .15s;
}
.exit-popup-btn:hover:not(:disabled) { transform: translateY(-1px); }
.exit-popup-btn:disabled { opacity: .7; cursor: not-allowed; }
.exit-popup-coupons {
    display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
    margin-bottom: 12px; min-height: 28px;
}
.exit-coupon-chip {
    display: inline-block; padding: 5px 10px; font-size: .78rem;
    background: #fef3c7; color: #92400e; border-radius: 6px; font-weight: 500;
}
.exit-popup-note { margin: 0; font-size: .72rem; color: #9ca3af; }

[data-theme="dark"] .exit-popup { background: #1e1e2e; color: #e0e0e0; }
[data-theme="dark"] .exit-popup-sub { color: #a0a0b0; }
[data-theme="dark"] .exit-popup-email { background: #2a2a3e; border-color: #3a3a5a; color: #e0e0e0; }
[data-theme="dark"] .exit-coupon-chip { background: #3a3520; color: #fbbf24; }

/* =====================================================================
   ADSENSE BANNER
   ===================================================================== */
.ad-banner-wrap {
    padding: 20px 0;
    background: rgba(0,0,0,.02);
    border-top: 1px solid rgba(0,0,0,.06);
}
.ad-banner {
    min-height: 90px;
    text-align: center;
}
[data-theme="dark"] .ad-banner-wrap {
    background: rgba(255,255,255,.02);
    border-top-color: rgba(255,255,255,.06);
}

@media (max-width: 480px) {
    .exit-popup-form { flex-direction: column; }
    .exit-popup-btn { width: 100%; }
    .card-actions .card-cta { font-size: .78rem; padding: 7px 8px; }
    .card-share-btn, .card-alert-btn { width: 32px; height: 32px; font-size: .9rem; }
}
