/* ==========================================================
   TINDA AI Platform — Comprehensive Design System v2.0
   ========================================================== */

/* ===== CSS VARIABLES / DESIGN TOKENS ===== */
:root {
    /* Primary Palette - Fiery Red Theme 🔥 */
    --primary: #DC143C;
    --primary-light: #FF4444;
    --primary-dark: #B22222;
    --primary-glow: rgba(220, 20, 60, 0.4);
    
    /* Accent Colors */
    --accent-green: #00C48C;
    --accent-green-dark: #00A374;
    --accent-orange: #FF6B35;
    --accent-red: #FF1744;
    --accent-blue: #1E88E5;
    --accent-gold: #FFC107;
    
    /* Background - Pure Black 🖤 */
    --bg-primary: #000000;
    --bg-secondary: #0A0A0A;
    --bg-card: #141414;
    --bg-card-hover: #1A1A1A;
    --bg-elevated: #1E1E1E;
    --bg-glass: rgba(20, 20, 20, 0.9);
    
    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #707070;
    --text-accent: #FF4444;
    
    /* Borders - Red Accents */
    --border: rgba(220, 20, 60, 0.12);
    --border-light: rgba(220, 20, 60, 0.2);
    --border-primary: rgba(220, 20, 60, 0.4);
    
    /* Gradients - Fiery Red 🔥 */
    --gradient-primary: linear-gradient(135deg, #DC143C, #FF1744);
    --gradient-success: linear-gradient(135deg, #00C48C, #00E5A0);
    --gradient-hero: linear-gradient(135deg, #000000 0%, #1A0505 50%, #000000 100%);
    --gradient-card: linear-gradient(145deg, rgba(220, 20, 60, 0.08), rgba(255, 23, 68, 0.05));
    
    /* Shadows - Red Glow */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 35px rgba(220, 20, 60, 0.3);
    --shadow-card: 0 4px 24px rgba(220, 20, 60, 0.15);
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Font */
    --font-primary: 'Cairo', sans-serif;
    
    /* Z-Index */
    --z-header: 100;
    --z-modal: 200;
    --z-ai-chat: 150;
    --z-fab: 120;
    --z-notification: 180;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: #000000;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(220, 20, 60, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 20, 60, 0.03) 0%, transparent 50%);
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-light {
    background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.section-header.light h2 {
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page {
    display: none;
    animation: fadeIn 0.4s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--border-primary);
    padding: 10px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: rgba(108, 99, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.05rem;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: var(--bg-card-hover);
    color: var(--primary-light);
    border-color: var(--border-primary);
}

.icon-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== HEADER ===== */
#mainHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-normal);
}

#mainHeader.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: var(--spacing-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.6rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(220, 20, 60, 0.3));
    animation: subtle-glow 3s ease-in-out infinite;
}

@keyframes subtle-glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(220, 20, 60, 0.3)); }
    50% { filter: drop-shadow(0 0 12px rgba(220, 20, 60, 0.5)); }
}

.logo-badge {
    background: var(--gradient-primary);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--primary-light);
    background: rgba(108, 99, 255, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
}

/* ===== STORE LINK STYLES ===== */
.nav-store-link {
    position: relative;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.15), rgba(255, 23, 68, 0.1)) !important;
    border: 1px solid rgba(220, 20, 60, 0.3);
    color: var(--primary-light) !important;
    font-weight: 600;
    padding: 8px 18px !important;
    animation: store-pulse 3s ease-in-out infinite;
}

.nav-store-link:hover {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.25), rgba(255, 23, 68, 0.2)) !important;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.3);
    transform: translateY(-2px);
}

.store-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #FF1744, #DC143C);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.5);
    animation: badge-bounce 2s ease-in-out infinite;
}

@keyframes store-pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(220, 20, 60, 0);
    }
    50% { 
        box-shadow: 0 0 15px 5px rgba(220, 20, 60, 0.2);
    }
}

@keyframes badge-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.05); }
}

.btn-store-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-store-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-store-header:hover::before {
    width: 300px;
    height: 300px;
}

.btn-store-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 20, 60, 0.5);
}

.btn-store-header span {
    position: relative;
    z-index: 1;
}

.btn-store-header i {
    position: relative;
    z-index: 1;
    animation: shopping-bag-swing 2s ease-in-out infinite;
}

@keyframes shopping-bag-swing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 160px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15), transparent 70%);
    transform: translateX(-50%);
    z-index: -1;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid var(--border-primary);
    color: var(--primary-light);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    animation: fadeIn 0.6s ease;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: var(--spacing-lg);
    animation: fadeIn 0.8s ease;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
    animation: fadeIn 1s ease;
}

/* ===== SMART SEARCH ===== */
.hero-search {
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
    animation: fadeIn 1.2s ease;
}

.search-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.search-tab {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 6px;
    gap: 4px;
    transition: border-color var(--transition-fast);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
}

.search-input-wrapper i {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    padding: 12px 0;
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.search-camera {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.search-camera:hover {
    color: var(--primary-light);
    background: rgba(108, 99, 255, 0.1);
}

.search-suggestions {
    margin-top: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.search-suggestions span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-suggestions a {
    background: var(--bg-card);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.search-suggestions a:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(108, 99, 255, 0.1);
}

/* ===== HERO STATS ===== */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
    flex-wrap: wrap;
    animation: fadeIn 1.4s ease;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

/* ===== TRUST BANNER ===== */
.trust-banner {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-top: 1px solid rgba(220, 20, 60, 0.2);
    border-bottom: 1px solid rgba(220, 20, 60, 0.2);
    padding: 2rem 0;
    margin-bottom: 3rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.trust-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.trust-item strong {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.trust-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-card);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.service-badge {
    display: inline-block;
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary-light);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.service-badge.hot {
    background: rgba(255, 107, 107, 0.15);
    color: var(--accent-red);
}

/* ===== AI FEATURES ===== */
.ai-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.ai-feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all var(--transition-normal);
}

.ai-feature:hover {
    border-color: var(--border-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.ai-feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.ai-feature h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.ai-feature p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ===== AUCTIONS GRID ===== */
.auctions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.auction-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all var(--transition-normal);
    position: relative;
}

.auction-card:hover {
    border-color: var(--border-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.auction-timer {
    display: inline-block;
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary-light);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.auction-timer.hot {
    background: rgba(255, 107, 107, 0.15);
    color: var(--accent-red);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.auction-image {
    font-size: 4rem;
    text-align: center;
    margin: var(--spacing-md) 0;
}

.auction-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.auction-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.current-bid {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-green);
}

.bid-count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== REVIEWS ===== */
.reviews-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.review-card .stars {
    margin-bottom: var(--spacing-md);
}

.review-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.reviewer strong {
    color: var(--text-primary);
}

.reviewer span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== CTA ===== */
.cta-section {
    background: var(--gradient-hero);
    text-align: center;
    padding: var(--spacing-3xl) 0;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* ===== MARKETPLACE ===== */
.page-container {
    padding-top: 100px;
    padding-bottom: var(--spacing-3xl);
}

.page-header {
    margin-bottom: var(--spacing-2xl);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.page-header p {
    color: var(--text-secondary);
}

.marketplace-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-xl);
}

.filters-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.filters-sidebar h3 {
    margin-bottom: var(--spacing-lg);
    font-size: 1rem;
}

.filter-group {
    margin-bottom: var(--spacing-lg);
}

.filter-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.filter-group select,
.filter-group input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
}

.price-range {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.price-range input {
    flex: 1;
}

.price-range span {
    color: var(--text-muted);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-lg);
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
}

.product-card:hover {
    border-color: var(--border-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(108, 99, 255, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-badge.original {
    background: rgba(0, 196, 140, 0.9);
}

.product-image {
    font-size: 4rem;
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--gradient-card);
}

.product-info {
    padding: var(--spacing-lg);
}

.product-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: 4px;
}

.vendor-name {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.ai-match {
    color: var(--accent-green);
    font-size: 0.8rem;
    font-weight: 600;
}

.product-price {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.product-price .price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-green);
}

.product-price .old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.product-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.view-all {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== AI CHAT - PROFESSIONAL REDESIGN ===== */

/* --- FAB Button --- */
.ai-fab {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DC143C 0%, #B71C1C 100%);
    color: white;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: var(--z-fab);
    box-shadow: 0 6px 24px rgba(220, 20, 60, 0.45), 0 0 0 4px rgba(220, 20, 60, 0.1);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fabFloat 4s ease-in-out infinite;
}

.ai-fab-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    display: block;
}

@keyframes fabFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.ai-fab:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 40px rgba(220, 20, 60, 0.6), 0 0 0 6px rgba(220, 20, 60, 0.15);
}

.ai-pulse {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid #DC143C;
    opacity: 0;
    animation: ai-pulse-anim 3s ease-in-out infinite;
}

@keyframes ai-pulse-anim {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
}

/* --- Chat Panel Container --- */
.ai-chat-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 420px;
    height: 92vh;
    max-height: 760px;
    background: #0d0d0d;
    border: 1px solid rgba(220, 20, 60, 0.15);
    border-radius: 20px;
    z-index: var(--z-ai-chat);
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(220, 20, 60, 0.08);
    animation: slideUpPro 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.3s ease;
}

/* Animated Background Particles */
.ai-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.ai-particles span {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(220, 20, 60, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(220, 20, 60, 0.5);
    animation: particleFloat 20s linear infinite;
    bottom: -10px;
    left: calc(var(--i) * 14.28%);
}

@keyframes particleFloat {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translateY(-800px) rotate(360deg); opacity: 0; }
}

.ai-particles span:nth-child(1) { animation-delay: 0s; animation-duration: 14s; }
.ai-particles span:nth-child(2) { animation-delay: 2s; animation-duration: 18s; width: 4px; height: 4px; }
.ai-particles span:nth-child(3) { animation-delay: 4s; animation-duration: 22s; }
.ai-particles span:nth-child(4) { animation-delay: 6s; animation-duration: 16s; width: 5px; height: 5px; }
.ai-particles span:nth-child(5) { animation-delay: 8s; animation-duration: 20s; }
.ai-particles span:nth-child(6) { animation-delay: 3s; animation-duration: 25s; width: 2px; height: 2px; }
.ai-particles span:nth-child(7) { animation-delay: 7s; animation-duration: 19s; }

.ai-chat-panel.active {
    display: flex;
}

@keyframes slideUpPro {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Chat Header --- */
.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(180deg, rgba(220, 20, 60, 0.08) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.ai-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.ai-avatar {
    font-size: 2.2rem;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(220, 20, 60, 0.3));
}

.ai-online-dot {
    position: absolute;
    bottom: 0;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #0d0d0d;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

.ai-header-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 0.2px;
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: #22c55e;
    font-weight: 500;
    margin-top: 2px;
}

.ai-status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
}

.ai-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-header-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.ai-header-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

/* --- Welcome Card --- */
.ai-welcome-card {
    text-align: center;
    padding: 28px 20px 16px;
}

.ai-welcome-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.ai-welcome-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
}

.ai-welcome-subtitle {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* --- Quick Actions Grid --- */
.ai-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 4px 16px 16px;
}

.ai-quick-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: right;
    font-family: var(--font-primary);
    position: relative;
    overflow: hidden;
}

.ai-quick-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 14px;
}

.ai-quick-card:hover::before { opacity: 1; }

.ai-quick-card:hover {
    border-color: rgba(220, 20, 60, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.12);
}

.ai-quick-card:active { transform: translateY(0) scale(0.98); }

.ai-quick-icon {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 2px;
}

.ai-quick-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 1;
}

.ai-quick-desc {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    position: relative;
    z-index: 1;
}

/* --- Smart Suggestions --- */
.ai-suggestions {
    padding: 0 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-suggestion-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 20, 60, 0.05);
    border: 1px solid rgba(220, 20, 60, 0.12);
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    text-align: right;
    width: 100%;
    animation: suggestionFadeIn 0.4s ease forwards;
    opacity: 0;
}

.ai-suggestion-btn:nth-child(1) { animation-delay: 0.1s; }
.ai-suggestion-btn:nth-child(2) { animation-delay: 0.2s; }
.ai-suggestion-btn:nth-child(3) { animation-delay: 0.3s; }

@keyframes suggestionFadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.ai-suggestion-btn:hover {
    background: rgba(220, 20, 60, 0.12);
    border-color: rgba(220, 20, 60, 0.3);
    color: #fff;
}

.ai-suggestion-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* --- Messages Area --- */
.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(220, 20, 60, 0.2) transparent;
    position: relative;
    z-index: 5;
}

.ai-chat-messages::-webkit-scrollbar { width: 4px; }
.ai-chat-messages::-webkit-scrollbar-track { background: transparent; }
.ai-chat-messages::-webkit-scrollbar-thumb { background: rgba(220, 20, 60, 0.2); border-radius: 10px; }
.ai-chat-messages::-webkit-scrollbar-thumb:hover { background: rgba(220, 20, 60, 0.4); }

.ai-message {
    display: flex;
    flex-direction: column;
    padding: 0 16px;
    animation: messageSlideIn 0.3s ease;
}

.ai-message.bot .message-content {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    padding: 14px 16px;
    font-size: 0.88rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    max-width: 88%;
    word-wrap: break-word;
}

.ai-message.user .message-content {
    background: linear-gradient(135deg, #DC143C 0%, #a01030 100%);
    color: white;
    border-radius: 16px;
    border-bottom-right-radius: 4px;
    padding: 14px 16px;
    font-size: 0.88rem;
    line-height: 1.75;
    align-self: flex-end;
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.3);
    max-width: 88%;
    word-wrap: break-word;
}

@keyframes messageSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Quick actions inside messages (legacy support) */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.quick-actions button {
    background: rgba(220, 20, 60, 0.08);
    border: 1px solid rgba(220, 20, 60, 0.2);
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 14px;
    border-radius: 20px;
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-actions button:hover {
    background: rgba(220, 20, 60, 0.18);
    border-color: rgba(220, 20, 60, 0.4);
    transform: translateY(-1px);
}

/* --- Image Preview --- */
.ai-image-preview {
    display: none;
    padding: 8px 16px;
    background: rgba(220, 20, 60, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 10;
}

.ai-image-preview-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-image-preview-inner img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(220, 20, 60, 0.3);
}

.ai-image-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.ai-image-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    transition: color 0.2s;
    margin-right: auto;
}

.ai-image-remove:hover { color: #DC143C; }

/* --- Input Area --- */
.ai-chat-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.ai-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0 8px 0 14px;
    transition: all 0.25s ease;
}

.ai-input-wrapper:focus-within {
    border-color: rgba(220, 20, 60, 0.4);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.08);
}

.ai-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    font-family: var(--font-primary);
    font-size: 0.88rem;
    padding: 12px 0;
    outline: none;
    min-width: 0;
}

.ai-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.ai-input-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.ai-action-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.ai-action-btn:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

.ai-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #DC143C 0%, #a01030 100%);
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.35);
}

.ai-send-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.5);
}

.ai-send-btn:active { transform: scale(0.95); }

/* --- Powered By Footer --- */
.ai-powered-by {
    text-align: center;
    padding: 8px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

/* --- Typing Animation --- */
.ai-typing-dots {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 6px 0;
}

.ai-typing-dots span {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #DC143C 0%, #B71C1C 100%);
    border-radius: 50%;
    animation: typingBounceEnhanced 1.4s infinite ease-in-out;
    box-shadow: 0 0 8px rgba(220, 20, 60, 0.4);
}

.ai-typing-dots span:nth-child(1) { animation-delay: 0s; }
.ai-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounceEnhanced {
    0%, 60%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
    30% { transform: translateY(-10px) scale(1.15); opacity: 1; }
}

/* --- Tool Badge --- */
.ai-tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid rgba(220, 20, 60, 0.2);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin: 2px;
    animation: badgeFadeIn 0.4s ease;
}

@keyframes badgeFadeIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

.ai-tool-badge:hover {
    background: rgba(220, 20, 60, 0.18);
    transform: scale(1.03);
}

.ai-tool-badge-text {
    color: var(--primary-light);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.68rem;
    margin-bottom: 6px;
}

/* AI message markdown */
.ai-message.bot .message-content strong { color: #fff; font-weight: 700; }
.ai-message.bot .message-content code {
    background: rgba(220, 20, 60, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82em;
}

/* --- After-Response Suggestions --- */
.ai-response-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding: 0 16px 8px;
}

.ai-response-suggestion {
    background: rgba(220, 20, 60, 0.06);
    border: 1px solid rgba(220, 20, 60, 0.15);
    border-radius: 12px;
    padding: 7px 13px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-primary);
    animation: suggestionFadeIn 0.3s ease forwards;
    opacity: 0;
}

.ai-response-suggestion:hover {
    background: rgba(220, 20, 60, 0.15);
    border-color: rgba(220, 20, 60, 0.3);
    color: #fff;
}

/* ===== AI CHAT RESPONSIVE ===== */

/* Tablets */
@media (max-width: 768px) {
    .ai-chat-panel {
        width: calc(100% - 20px);
        left: 10px;
        bottom: 10px;
        height: 94vh;
        max-height: none;
        border-radius: 18px;
    }

    .ai-fab {
        bottom: 16px;
        left: 16px;
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    .ai-chat-header { padding: 12px 14px; }
    .ai-avatar { font-size: 1.8rem; }
    .ai-header-info h4 { font-size: 0.92rem; }
    .ai-chat-messages { gap: 4px; }
    .ai-message { padding: 0 12px; }
    .ai-message .message-content { max-width: 92%; font-size: 0.85rem; padding: 12px 14px; }
    .ai-quick-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 4px 12px 12px; }
    .ai-quick-card { padding: 12px 10px; }
    .ai-quick-icon { font-size: 1.2rem; }
    .ai-quick-label { font-size: 0.78rem; }
    .ai-quick-desc { font-size: 0.65rem; }
    .ai-chat-input { padding: 10px 12px; }
    .ai-send-btn { width: 40px; height: 40px; border-radius: 12px; }
    .ai-welcome-title { font-size: 1.05rem; }
    .ai-welcome-subtitle { font-size: 0.76rem; }
}

/* Small phones */
@media (max-width: 420px) {
    .ai-chat-panel {
        width: 100%;
        left: 0;
        bottom: 0;
        border-radius: 18px 18px 0 0;
        height: 96vh;
    }

    .ai-fab {
        bottom: 12px;
        left: 12px;
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }

    .ai-quick-grid { grid-template-columns: repeat(2, 1fr); gap: 5px; padding: 2px 10px 10px; }
    .ai-quick-card { padding: 10px 8px; border-radius: 12px; }
    .ai-quick-icon { font-size: 1.1rem; }
    .ai-quick-label { font-size: 0.74rem; }
    .ai-quick-desc { font-size: 0.62rem; }
    .ai-welcome-icon { font-size: 2rem; }
    .ai-welcome-title { font-size: 0.95rem; }
    .ai-welcome-subtitle { font-size: 0.72rem; }
    .ai-message .message-content { font-size: 0.82rem; padding: 10px 12px; border-radius: 14px; }
    .ai-message.bot .message-content { border-bottom-left-radius: 4px; }
    .ai-message.user .message-content { border-bottom-right-radius: 4px; }
    .ai-action-btn { width: 30px; height: 30px; font-size: 0.8rem; }
    .ai-send-btn { width: 38px; height: 38px; font-size: 0.88rem; }
    .ai-input-wrapper input { font-size: 0.84rem; }
    .ai-powered-by { font-size: 0.6rem; padding: 6px; }
}

/* ===== NOTIFICATIONS ===== */
.notification-panel {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 380px;
    max-height: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    z-index: var(--z-notification);
    display: none;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.notification-panel.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

.notif-header h4 {
    font-size: 0.95rem;
}

.notif-header button {
    background: none;
    border: none;
    color: var(--primary-light);
    font-family: var(--font-primary);
    font-size: 0.8rem;
    cursor: pointer;
}

.notif-list {
    overflow-y: auto;
    max-height: 320px;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast);
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.notif-item.unread {
    background: rgba(108, 99, 255, 0.05);
}

.notif-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notif-content p {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.notif-content span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding-top: var(--spacing-3xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
}

.footer-brand p {
    color: var(--text-secondary);
    margin: var(--spacing-md) 0;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(108, 99, 255, 0.1);
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-right: 8px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.payment-methods {
    display: flex;
    gap: var(--spacing-sm);
    font-size: 1.2rem;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .hero-stats {
        gap: var(--spacing-xl);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .marketplace-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        gap: var(--spacing-lg);
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .services-grid,
    .ai-features,
    .auctions-grid,
    .reviews-carousel {
        grid-template-columns: 1fr;
    }
    
    .ai-chat-panel {
        width: calc(100% - 30px);
        left: 15px;
        bottom: 15px;
        height: calc(100vh - 100px);
        max-height: 650px;
        border-radius: 20px;
    }
    
    .ai-chat-header {
        padding: 16px 18px;
    }
    
    .ai-avatar {
        font-size: 2.2rem;
    }
    
    .ai-chat-header h4 {
        font-size: 1rem;
    }
    
    .ai-chat-messages {
        padding: 16px;
    }
    
    .ai-message.bot .message-content,
    .ai-message.user .message-content {
        max-width: 90%;
        font-size: 0.9rem;
        padding: 14px 16px;
    }
    
    .quick-actions button {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
    
    .ai-chat-input {
        padding: 14px 16px;
    }
    
    .ai-chat-input input {
        font-size: 0.9rem;
        padding: 12px 16px;
    }
    
    .ai-chat-input button {
        width: 40px;
        height: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    /* Store Button Mobile */
    .btn-store-header {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .btn-store-header span {
        display: none;
    }
    
    .nav-store-link .store-badge {
        display: none;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .search-tabs {
        flex-wrap: wrap;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

/* ===== LOADING & SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    min-width: 280px;
}

.toast.success {
    border-color: var(--accent-green);
}

.toast.error {
    border-color: var(--accent-red);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    padding: var(--spacing-2xl);
    animation: fadeIn 0.3s ease;
}
