/*
 * HotDeals Namibia - 2026 Modern Enterprise Stylesheet
 * Premium dark theme with temptation-driven design language
 * Mobile-first responsive with interactive micro-animations
 */

/* Font Awesome 6 - loaded globally so icons render on every page & dashboard.
   (The business dashboard markup uses fa-* classes but never linked the library.) */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

/* ========================================
   CSS Variables & Design Tokens
   ======================================== */
:root {
    /* Primary - Deep Crimson (Temptation/Desire) */
    --primary: #DC2626;
    --primary-dark: #B91C1C;
    --primary-light: #EF4444;
    --primary-glow: rgba(220, 38, 38, 0.4);
    
    /* Secondary - Rich Gold (Premium/Reward) */
    --secondary: #F59E0B;
    --secondary-dark: #D97706;
    --secondary-light: #FBBF24;
    --secondary-glow: rgba(245, 158, 11, 0.3);
    
    /* Accent - Electric Violet (Addiction/Excitement) */
    --accent: #8B5CF6;
    --accent-dark: #7C3AED;
    --accent-light: #A78BFA;
    
    /* Background - Premium Dark */
    --bg-darkest: #050506;
    --bg-darker: #0A0A0C;
    --bg-dark: #0F0F12;
    --bg-card: #161619;
    --bg-elevated: #1C1C20;
    --bg-hover: #232328;
    --bg-glass: rgba(22, 22, 25, 0.85);
    
    /* Foreground */
    --text-primary: #FAFAFA;
    --text-secondary: #E4E4E7;
    --text-muted: #A1A1AA;
    --text-subtle: #71717A;
    --text-disabled: #52525B;
    
    /* Status Colors */
    --success: #10B981;
    --success-light: #34D399;
    --warning: #F59E0B;
    --warning-light: #FBBF24;
    --danger: #EF4444;
    --danger-light: #F87171;
    --info: #3B82F6;
    --info-light: #60A5FA;
    
    /* Borders & Lines */
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --border-active: rgba(220, 38, 38, 0.5);
    --divider: rgba(255, 255, 255, 0.05);
    
    /* Focus Ring */
    --ring: rgba(220, 38, 38, 0.4);
    --ring-offset: var(--bg-dark);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #DC2626 0%, #F59E0B 100%);
    --gradient-primary-hover: linear-gradient(135deg, #EF4444 0%, #FBBF24 100%);
    --gradient-dark: linear-gradient(180deg, #0F0F12 0%, #050506 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(220, 38, 38, 0.15) 0%, transparent 60%);
    --gradient-gold: linear-gradient(135deg, #F59E0B 0%, #FBBF24 50%, #F59E0B 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(220, 38, 38, 0.08) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(139, 92, 246, 0.06) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, rgba(245, 158, 11, 0.06) 0px, transparent 50%);
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.8);
    --shadow-glow-red: 0 0 60px rgba(220, 38, 38, 0.4);
    --shadow-glow-gold: 0 0 60px rgba(245, 158, 11, 0.3);
    --shadow-glow-violet: 0 0 60px rgba(139, 92, 246, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
    --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-hover);
    
    /* Border Radius */
    --radius-xs: 0.25rem;
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
    --transition-fast: 150ms var(--ease-smooth);
    --transition: 250ms var(--ease-smooth);
    --transition-slow: 400ms var(--ease-out);
    --transition-bounce: 500ms var(--ease-bounce);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-darker);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    pointer-events: none;
    z-index: -1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: transparent;
}

::selection {
    background: var(--primary);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-darkest);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-darkest);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-subtle);
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-wrap: balance;
}

h1 { 
    font-size: clamp(2.5rem, 8vw, 5rem); 
    font-weight: 800;
    letter-spacing: -0.03em;
}
h2 { 
    font-size: clamp(2rem, 5vw, 3.5rem); 
    font-weight: 700;
}
h3 { 
    font-size: clamp(1.5rem, 3vw, 2.25rem); 
}
h4 { 
    font-size: clamp(1.25rem, 2vw, 1.75rem); 
}
h5 { 
    font-size: 1.25rem; 
}
h6 { 
    font-size: 1rem; 
}

p {
    line-height: 1.7;
    color: var(--text-muted);
}

.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Text Utilities */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-subtle { color: var(--text-subtle) !important; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

/* ========================================
   Layout & Container
   ======================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }
}

.section {
    padding: var(--space-24) 0;
    position: relative;
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-16) 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.section-label svg {
    width: 16px;
    height: 16px;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Spacing Utilities */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* ========================================
   Header & Navigation - Premium Glass Effect
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 12, 0.95);
    box-shadow: var(--shadow-lg);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 104px;
    gap: var(--space-8);
}

.header.scrolled .header-inner {
    height: 84px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.9;
}

.logo img {
    height: 88px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-text span:first-child {
    color: var(--primary);
}

.logo-text span:last-child {
    color: var(--text-primary);
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-muted);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-dropdown);
    list-style: none;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.dropdown-menu li a:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.dropdown-menu li a svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

/* Nav Buttons */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-toggle {
    cursor: pointer;
}

.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-dropdown);
}

.user-dropdown:hover .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.user-menu a:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.user-menu a svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.user-menu .divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-2) 0;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    flex-direction: column;
    gap: 5px;
    z-index: var(--z-fixed);
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: var(--space-8);
        gap: var(--space-2);
        overflow-y: auto;
        z-index: var(--z-fixed);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        padding: var(--space-4);
        font-size: 1.125rem;
        border-radius: var(--radius-lg);
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .has-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: var(--bg-elevated);
        margin-top: var(--space-2);
        box-shadow: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hide-mobile {
        display: none;
    }
}

/* ========================================
   Buttons - Modern Interactive Design
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.btn:active {
    transform: scale(0.98);
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
    border-radius: var(--radius-md);
}

.btn-sm svg {
    width: 16px;
    height: 16px;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: 1rem;
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: 1.125rem;
    border-radius: var(--radius-xl);
}

/* Primary Button */
.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-red);
}

.btn-primary svg {
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.3));
}

/* Secondary Button */
.btn-secondary {
    background: var(--secondary);
    color: var(--bg-darker);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    border-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-gold);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--text-subtle);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* White Button */
.btn-white {
    background: var(--text-primary);
    color: var(--bg-darker);
}

.btn-white:hover {
    background: var(--text-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Icon Button */
.btn-icon {
    padding: var(--space-3);
    width: 44px;
    height: 44px;
}

.btn-icon.btn-sm {
    padding: var(--space-2);
    width: 36px;
    height: 36px;
}

/* Shimmer Effect */
.btn-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: shimmer 2.5s infinite;
    z-index: -1;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Pulse Effect for CTAs */
.btn-pulse {
    animation: btn-pulse 2s ease-in-out infinite;
}

@keyframes btn-pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 var(--primary-glow);
    }
    50% { 
        box-shadow: 0 0 0 12px transparent;
    }
}

/* ========================================
   Hero Section - Immersive Full-Screen
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 104px;
    overflow: hidden;
    background: var(--bg-darker);
}

/* Animated Gradient Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(220, 38, 38, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: heroGradient 15s ease-in-out infinite alternate;
}

@keyframes heroGradient {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.1); }
}

/* Grid Pattern Overlay */
.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-16) var(--space-6);
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-8);
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.6s var(--ease-out);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--success);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

/* Hero Title */
.hero-title {
    max-width: 1000px;
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.hero-title .highlight {
    position: relative;
    display: inline;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    right: 0;
    height: 0.3em;
    background: var(--gradient-primary);
    opacity: 0.3;
    border-radius: var(--radius-sm);
    z-index: -1;
}

/* Hero Description */
.hero-description {
    max-width: 650px;
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-10);
    animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: var(--space-12);
    margin-top: var(--space-16);
    padding-top: var(--space-10);
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--space-2);
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-subtle);
    animation: bounce 2.5s infinite;
    cursor: pointer;
    transition: color var(--transition-fast);
    z-index: 10;
}

.scroll-indicator:hover {
    color: var(--text-muted);
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(12px); }
}

/* Hero Floating Cards */
.hero-floating-cards {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    gap: var(--space-4);
    z-index: 3;
}

@media (min-width: 1280px) {
    .hero-floating-cards {
        display: flex;
    }
}

.floating-card {
    width: 300px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
    cursor: pointer;
    transition: all var(--transition);
}

.floating-card:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-red);
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
    margin-left: var(--space-8);
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.floating-card-content {
    padding: var(--space-4);
}

.floating-card-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background: var(--primary);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.floating-card-title {
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: var(--space-1);
    color: var(--text-primary);
}

.floating-card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-container {
        padding: var(--space-10) var(--space-4);
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-6);
        width: 100%;
    }
    
    .hero-stat-value {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ========================================
   Deals Showcase - Infinite Scroll Marquee
   ======================================== */
.deals-showcase {
    position: relative;
    padding: var(--space-16) 0 var(--space-20);
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.deals-showcase::before,
.deals-showcase::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    z-index: 2;
    pointer-events: none;
}

.deals-showcase::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-dark), transparent);
}

.deals-showcase::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-dark), transparent);
}

.marquee-container {
    overflow: hidden;
    position: relative;
}

.marquee {
    display: flex;
    gap: var(--space-6);
    animation: marquee 60s linear infinite;
    width: fit-content;
}

.marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Showcase Card */
.showcase-card {
    flex-shrink: 0;
    width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
}

.showcase-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-red);
}

.showcase-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.showcase-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.showcase-card:hover .showcase-card-image img {
    transform: scale(1.1);
}

.showcase-card-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: var(--primary);
    color: white;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.showcase-card-badge.flash {
    background: var(--gradient-primary);
    animation: pulse 2s infinite;
}

.showcase-card-content {
    padding: var(--space-5);
}

.showcase-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary);
}

.showcase-card-business {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.showcase-card-business svg {
    width: 14px;
    height: 14px;
    color: var(--secondary);
}

.showcase-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}

.showcase-card-price {
    display: flex;
    flex-direction: column;
}

.showcase-card-price .original {
    font-size: 0.75rem;
    color: var(--text-subtle);
    text-decoration: line-through;
}

.showcase-card-price .current {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--secondary);
}

.showcase-card-cta {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.showcase-card-cta svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.showcase-card:hover .showcase-card-cta svg {
    transform: translateX(4px);
}

/* ========================================
   Search Section
   ======================================== */
.search-section {
    position: relative;
    z-index: 10;
    margin-top: calc(-1 * var(--space-12));
    padding-bottom: var(--space-8);
}

.search-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: var(--space-6);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-2xl);
    max-width: 1100px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: var(--space-4);
    align-items: stretch;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-wrapper svg {
    position: absolute;
    left: var(--space-5);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-subtle);
    width: 20px;
    height: 20px;
}

.search-input {
    width: 100%;
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-12);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition);
}

.search-input::placeholder {
    color: var(--text-subtle);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--ring);
}

.search-select {
    padding: var(--space-4) var(--space-10) var(--space-4) var(--space-4);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    background-size: 18px;
    min-width: 180px;
}

.search-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--ring);
}

.search-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }
    
    .search-box {
        margin: 0 var(--space-4);
        padding: var(--space-4);
    }
    
    .search-select {
        width: 100%;
    }
}

/* ========================================
   Category Cards
   ======================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: var(--space-8) var(--space-6);
    border-radius: var(--radius-2xl);
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-5);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.category-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-1);
    color: var(--text-primary);
}

.category-card span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   Deal Cards
   ======================================== */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1200px) {
    .deals-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .deals-grid {
        grid-template-columns: 1fr;
    }
}

.deal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Animated gradient edge that lights up on hover for the "wow" factor */
.deal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    z-index: 3;
}

.deal-card:hover {
    transform: translateY(-10px);
    border-color: transparent;
    box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(245, 158, 11, 0.15);
}

.deal-card:hover::before {
    opacity: 1;
}

.deal-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    flex: 1;
}

.deal-image {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.deal-card:hover .deal-image img {
    transform: scale(1.08);
}

.deal-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

.deal-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 16px -4px var(--primary-glow);
    z-index: 2;
}

.deal-badge svg { width: 14px; height: 14px; }

.deal-badge.flash {
    background: var(--gradient-primary);
    animation: pulse 2s infinite;
}

.deal-savings {
    position: absolute;
    bottom: var(--space-4);
    left: var(--space-4);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    color: var(--secondary-light);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    z-index: 2;
}

.deal-favorite {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all var(--transition);
    z-index: 4;
}

.deal-favorite:hover,
.deal-favorite.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.deal-favorite.active svg {
    fill: currentColor;
}

.deal-favorite svg {
    width: 18px;
    height: 18px;
}

.deal-content {
    padding: var(--space-5);
}

.deal-content-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.deal-category {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.deal-category svg {
    width: 14px;
    height: 14px;
}

.deal-business-sep {
    margin: 0 0.15rem;
    color: var(--text-subtle);
}

.deal-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary);
}

.deal-business {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.deal-business svg {
    width: 14px;
    height: 14px;
}

.deal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}

.deal-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.deal-price .original {
    font-size: 0.8rem;
    color: var(--text-subtle);
    text-decoration: line-through;
}

.deal-price .special {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}

/* ---- Enterprise card extras: flags, stats, price ---- */
.deal-flag {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(245, 158, 11, 0.95);
    color: #1a1300;
    box-shadow: 0 6px 16px -6px rgba(0,0,0,0.5);
}
.deal-flag svg { width: 13px; height: 13px; }
/* When a featured flag is present, nudge the discount badge down a touch */
.deal-card--enterprise .deal-flag--featured ~ .deal-card-link .deal-badge { top: calc(var(--space-4) + 36px); }

.deal-price-off {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(220, 38, 38, 0.12);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

.deal-stats {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
}
.deal-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-subtle);
}
.deal-stat svg { width: 14px; height: 14px; }

/* ---- Card action bar: like / comments / share / remind ---- */
.deal-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-5) var(--space-5);
    margin-top: auto;
}

.deal-act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-secondary, var(--text-muted));
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}
.deal-act svg { width: 17px; height: 17px; }

.deal-like:hover { border-color: var(--primary); color: var(--primary); background: rgba(220, 38, 38, 0.08); }
.deal-comments:hover { border-color: var(--secondary); color: var(--secondary); background: rgba(245, 158, 11, 0.08); }
.deal-share { padding: 0.55rem; }
.deal-share:hover { border-color: var(--accent, #3B82F6); color: var(--accent, #3B82F6); background: rgba(59, 130, 246, 0.08); }
.deal-share.copied { border-color: #22c55e; color: #22c55e; }

.deal-like.active {
    background: rgba(220, 38, 38, 0.14);
    border-color: var(--primary);
    color: var(--primary);
}
.deal-like.active svg { fill: currentColor; }

.deal-like.pop { animation: likePop 0.35s ease; }
@keyframes likePop {
    0% { transform: scale(1); }
    40% { transform: scale(1.28); }
    100% { transform: scale(1); }
}

/* Impressive, glowing gradient Remind Me button */
.deal-actions .deal-remind {
    position: relative;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.6rem 0.9rem;
    border: none;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 8px 20px -6px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.25);
    transition: transform var(--transition), box-shadow var(--transition);
}
.deal-actions .deal-remind svg { width: 16px; height: 16px; position: relative; z-index: 1; }
.deal-actions .deal-remind .remind-label { position: relative; z-index: 1; white-space: nowrap; }
.deal-actions .deal-remind:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -6px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.3);
}
.deal-actions .deal-remind:hover svg { animation: bellRing 0.7s ease; }
/* Sliding sheen */
.deal-actions .deal-remind .remind-glow {
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-20deg);
    z-index: 0;
}
.deal-actions .deal-remind:hover .remind-glow { animation: remindSheen 0.9s ease; }
/* Flash-sale deals get a permanent pulsing call-to-action */
.deal-actions .deal-remind.is-flash { animation: remindPulse 2.2s ease-in-out infinite; }
.deal-actions .deal-remind.active {
    background: rgba(34, 197, 94, 0.16);
    color: #22c55e;
    box-shadow: none;
    animation: none;
}
.deal-actions .deal-remind.active svg { fill: none; }

@keyframes bellRing {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(14deg); }
    40% { transform: rotate(-12deg); }
    60% { transform: rotate(8deg); }
    80% { transform: rotate(-6deg); }
}
@keyframes remindSheen {
    0% { left: -120%; }
    100% { left: 130%; }
}
@keyframes remindPulse {
    0%, 100% { box-shadow: 0 8px 20px -6px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.25); }
    50% { box-shadow: 0 10px 30px -4px var(--primary-glow), 0 0 0 4px rgba(220, 38, 38, 0.18); }
}

/* =========================================================================
   Comment Popup Modal (enterprise)
   ========================================================================= */
.comment-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
@media (min-width: 640px) {
    .comment-modal { align-items: center; }
}
.comment-modal.open { visibility: visible; opacity: 1; }

.comment-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.comment-modal__panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    box-shadow: 0 -20px 60px rgba(0,0,0,0.5);
    transform: translateY(40px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
@media (min-width: 640px) {
    .comment-modal__panel { border-radius: var(--radius-2xl); transform: scale(0.94); }
}
.comment-modal.open .comment-modal__panel { transform: translateY(0); }
@media (min-width: 640px) {
    .comment-modal.open .comment-modal__panel { transform: scale(1); }
}

.comment-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-5);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-glass), transparent);
}
.comment-modal__title { font-size: 1.15rem; font-weight: 800; margin: 0; color: var(--text-primary); }
.comment-modal__subtitle { font-size: 0.82rem; color: var(--text-muted); margin: 0.15rem 0 0; }
.comment-modal__close {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.comment-modal__close:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.comment-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4) var(--space-5);
}

.comment-list { display: flex; flex-direction: column; gap: var(--space-4); }

.comment-loading, .comment-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-8) var(--space-4);
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9rem;
}
.comment-empty svg { width: 40px; height: 40px; opacity: 0.5; }
.comment-spinner {
    width: 18px; height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.comment-item { display: flex; gap: var(--space-3); animation: commentIn 0.3s ease; }
@keyframes commentIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.comment-avatar {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
}
.comment-body {
    flex: 1;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.6rem 0.8rem;
}
.comment-meta { display: flex; align-items: center; gap: var(--space-2); margin-bottom: 0.25rem; }
.comment-author { font-weight: 700; font-size: 0.85rem; color: var(--text-primary); }
.comment-time { font-size: 0.72rem; color: var(--text-subtle); }
.comment-delete {
    margin-left: auto;
    background: none; border: none; cursor: pointer;
    color: var(--text-subtle);
    padding: 0.15rem;
    display: inline-flex;
    transition: color var(--transition);
}
.comment-delete:hover { color: var(--primary); }
.comment-delete svg { width: 15px; height: 15px; }
.comment-text { font-size: 0.9rem; line-height: 1.5; color: var(--text-secondary, var(--text-muted)); word-break: break-word; }

.comment-modal__foot {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border);
    background: var(--bg-glass);
}
.comment-form__input {
    display: flex;
    align-items: flex-end;
    gap: var(--space-2);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 0.4rem 0.4rem 0.4rem 0.9rem;
    transition: border-color var(--transition);
}
.comment-form__input:focus-within { border-color: var(--primary); }
.comment-form__input textarea {
    flex: 1;
    border: none;
    background: none;
    resize: none;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.4;
    padding: 0.4rem 0;
    max-height: 140px;
}
.comment-form__submit {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition), opacity var(--transition);
}
.comment-form__submit:hover { transform: scale(1.08); }
.comment-form__submit:disabled { opacity: 0.5; cursor: not-allowed; }
.comment-form__submit svg { width: 18px; height: 18px; }
.comment-form__meta { text-align: right; font-size: 0.7rem; color: var(--text-subtle); margin-top: 0.3rem; padding-right: 0.3rem; }
.comment-login-cta { justify-content: center; }

.deal-timer {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

.deal-timer svg {
    width: 14px;
    height: 14px;
}

.deal-location {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.75rem;
    color: var(--text-subtle);
    margin-top: var(--space-3);
}

.deal-location svg {
    width: 12px;
    height: 12px;
}

/* ========================================
   Flash Sale Section
   ======================================== */
.flash-sale-section {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.flash-sale-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--primary);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(100px);
    animation: pulse 4s ease-in-out infinite;
}

.flash-sale-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.flash-sale-title {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.flash-sale-title h2 {
    margin: 0;
}

.flash-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    box-shadow: var(--shadow-glow-red);
}

.flash-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    gap: var(--space-3);
}

.countdown-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-xl);
    text-align: center;
    min-width: 80px;
}

.countdown-item .value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.countdown-item .label {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-1);
}

@media (max-width: 768px) {
    .flash-sale-header {
        flex-direction: column;
        text-align: center;
    }
    
    .countdown-timer {
        justify-content: center;
    }
    
    .countdown-item {
        padding: var(--space-3) var(--space-4);
        min-width: 65px;
    }
    
    .countdown-item .value {
        font-size: 1.5rem;
    }
}

/* ========================================
   Trust/Features Section
   ======================================== */
.trust-section {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-12);
}

@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
}

.trust-item {
    text-align: center;
}

.trust-item-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-5);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.trust-item:hover .trust-item-icon {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-red);
}

.trust-item-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.trust-item h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.trust-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-3xl);
    padding: var(--space-20) var(--space-12);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: white;
    margin-bottom: var(--space-4);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 550px;
    margin: 0 auto var(--space-8);
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cta-card {
        padding: var(--space-12) var(--space-6);
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-darkest);
    border-top: 1px solid var(--border);
    padding-top: var(--space-20);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand p {
    color: var(--text-muted);
    margin: var(--space-6) 0;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: var(--space-4);
}

.footer-social a {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-social a svg {
    width: 20px;
    height: 20px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-6);
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    color: var(--text-muted);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    margin-top: var(--space-16);
    padding: var(--space-8) 0;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-6);
    align-items: center;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* ========================================
   Forms
   ======================================== */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-4);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-subtle);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--ring);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    font-size: 0.875rem;
    color: var(--danger);
    margin-top: var(--space-2);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-2);
}

/* ========================================
   Cards & Containers
   ======================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ========================================
   Badges
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-primary {
    background: rgba(220, 38, 38, 0.15);
    color: var(--primary);
}

.badge-secondary {
    background: rgba(245, 158, 11, 0.15);
    color: var(--secondary);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

/* ========================================
   Alerts
   ======================================== */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--info);
}

/* ========================================
   Modals
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: transform var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    padding: var(--space-6);
    border-top: 1px solid var(--border);
}

/* ========================================
   Tables
   ======================================== */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: var(--bg-elevated);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.table tbody tr:hover {
    background: var(--bg-hover);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-12);
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-weight: 500;
    transition: all var(--transition);
}

.pagination a:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ========================================
   Toasts
   ======================================== */
.toast-container {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transform: translateX(120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: auto;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-info { border-left: 4px solid var(--info); }

.toast-icon {
    flex-shrink: 0;
}

.toast-icon svg { 
    width: 20px; 
    height: 20px; 
}

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info .toast-icon { color: var(--info); }

.toast-message {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-subtle);
    padding: var(--space-1);
    transition: color var(--transition-fast);
}

.toast-close:hover { 
    color: var(--text-primary); 
}

.toast-close svg { 
    width: 16px; 
    height: 16px; 
}

/* ========================================
   Skeleton Loading
   ======================================== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-hover) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-8);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon svg {
    width: 40px;
    height: 40px;
    color: var(--text-subtle);
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}

/* ========================================
   Auth Pages
   ======================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-header .logo {
    display: inline-flex;
    margin-bottom: var(--space-6);
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-2);
}

.auth-header p {
    color: var(--text-muted);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    font-size: 0.875rem;
    color: var(--text-subtle);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-6);
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ========================================
   Interactive Effects
   ======================================== */
.interactive-scale {
    transition: all var(--transition-bounce);
}

.interactive-scale:hover {
    transform: scale(1.03) translateY(-5px);
}

.glow-red {
    box-shadow: var(--shadow-glow-red);
}

.glow-gold {
    box-shadow: var(--shadow-glow-gold);
}

/* ========================================
   Accessibility
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .marquee {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .header, .footer, .scroll-indicator, .floating-card {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ============================================================================
   THEME COMPATIBILITY + LIGHT / DARK MODE
   ---------------------------------------------------------------------------
   Several pages (login, register, admin, dashboards and inline page styles)
   reference token names that were never defined in :root, e.g. var(--text),
   var(--white), var(--bg) and the gray scale var(--gray-50..900). Undefined
   custom properties make those rules collapse, which is why the auth/admin
   screens looked "damaged". Here we (1) backfill those aliases and (2) provide
   a proper light theme via [data-theme="light"] so the toggle works.
   ============================================================================ */
:root {
    color-scheme: dark;

    /* Semantic aliases used across pages (dark defaults) */
    --bg: var(--bg-darker);
    --bg-body: var(--bg-darker);
    --surface: var(--bg-card);
    --text: var(--text-primary);
    --heading: var(--text-primary);
    --muted: var(--text-muted);

    /* White / black that adapt to theme */
    --white: #161619;          /* "card white" -> dark surface in dark mode */
    --black: #FAFAFA;

    /* Neutral gray scale (dark mode = inverted so light UI chrome still reads) */
    --gray-50:  #1C1C20;
    --gray-100: #232328;
    --gray-200: #2C2C33;
    --gray-300: #3A3A42;
    --gray-400: #71717A;
    --gray-500: #A1A1AA;
    --gray-600: #C4C4CC;
    --gray-700: #D4D4D8;
    --gray-800: #E4E4E7;
    --gray-900: #FAFAFA;
}

/* Smooth theme switching */
html, body, .header, .footer, .deal-card, .bento-item, .auth-card,
.category-card, input, select, textarea, .btn {
    transition: background-color var(--duration-normal) var(--ease-smooth),
                border-color var(--duration-normal) var(--ease-smooth),
                color var(--duration-normal) var(--ease-smooth);
}

/* ---------- LIGHT THEME ---------- */
[data-theme="light"] {
    color-scheme: light;

    --bg-darkest: #FFFFFF;
    --bg-darker:  #F8FAFC;
    --bg-dark:    #F1F5F9;
    --bg-card:    #FFFFFF;
    --bg-elevated:#FFFFFF;
    --bg-hover:   #F1F5F9;
    --bg-glass:   rgba(255, 255, 255, 0.85);

    --text-primary:   #0F172A;
    --text-secondary: #1E293B;
    --text-muted:     #64748B;
    --text-subtle:    #94A3B8;
    --text-disabled:  #CBD5E1;

    --border:        rgba(15, 23, 42, 0.10);
    --border-hover:  rgba(15, 23, 42, 0.20);
    --divider:       rgba(15, 23, 42, 0.06);

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 16px 48px rgba(15, 23, 42, 0.14);
    --shadow-2xl: 0 24px 64px rgba(15, 23, 42, 0.16);
    --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.08), 0 0 0 1px var(--border);
    --shadow-card-hover: 0 8px 24px rgba(15, 23, 42, 0.12), 0 0 0 1px var(--border-hover);

    --gradient-dark: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    --gradient-card: linear-gradient(180deg, rgba(15,23,42,0.02) 0%, transparent 100%);

    /* Aliases */
    --bg: var(--bg-darker);
    --surface: #FFFFFF;
    --text: var(--text-primary);
    --heading: var(--text-primary);
    --muted: var(--text-muted);
    --white: #FFFFFF;
    --black: #0F172A;

    --gray-50:  #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
}

/* Theme toggle button */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle svg { width: 18px; height: 18px; }

/* Enlarged, clearly visible logo (higher specificity so it always wins over `.logo img`) */
.logo .site-logo-img,
.footer .site-logo-img {
    height: 112px;
    width: auto;
    max-width: 360px;
    object-fit: contain;
    display: block;
}
.header.scrolled .logo .site-logo-img { height: 88px; }
.footer .site-logo-img { height: 132px; }
@media (max-width: 768px) {
    .logo .site-logo-img { height: 80px; max-width: 230px; }
    .footer .site-logo-img { height: 92px; }
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Remind Me button (deal cards + single deal page) */
.deal-remind {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    z-index: 5;
    transition: all var(--transition);
}
.deal-remind:hover { border-color: var(--secondary); color: var(--secondary); }
.deal-remind.active { background: var(--secondary); border-color: var(--secondary); color: #1a1300; }
.deal-remind svg { width: 15px; height: 15px; }

/* Inline (non-absolute) remind button used on the single deal page */
.deal-remind.inline {
    position: static;
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
}

/* ========================================
   User Dashboard
   ======================================== */
.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.user-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.25rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 14px);
    background: var(--bg-card);
    color: var(--heading);
    text-decoration: none;
    transition: transform var(--duration-fast, .15s) var(--ease-out, ease), border-color var(--duration-fast, .15s);
}
.user-stat:hover { transform: translateY(-3px); border-color: var(--primary); }
.user-stat svg { width: 22px; height: 22px; color: var(--primary); }
.user-stat .num { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.user-stat .lbl { font-size: 0.8rem; color: var(--muted); }

.dashboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.75rem;
}
.dashboard-tabs a {
    padding: 0.65rem 1rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: color var(--duration-fast, .15s);
}
.dashboard-tabs a:hover { color: var(--heading); }
.dashboard-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }

.dashboard-tab-content h2 { font-size: 1.25rem; margin: 0 0 1.25rem; }

.u-notif-list, .u-comment-list, .u-reminder-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.u-notif-list li, .u-reminder-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 10px);
    background: var(--bg-card);
}
.u-notif-list li svg, .u-reminder-list li svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.u-notif-list li > div, .u-reminder-list li > div { flex: 1; min-width: 0; }
.u-notif-list strong { display: block; }
.u-notif-list p, .u-comment-list p { margin: 0.2rem 0; color: var(--muted); font-size: 0.9rem; }
.u-notif-list small, .u-reminder-list small { color: var(--muted); font-size: 0.78rem; }
.u-notif-link { font-size: 0.82rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.u-reminder-list li a { font-weight: 600; color: var(--heading); text-decoration: none; display: block; }

.u-comment-list li {
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 10px);
    background: var(--bg-card);
}
.u-comment-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.35rem; }
.u-comment-head a { font-weight: 700; color: var(--heading); text-decoration: none; }

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full, 999px);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: capitalize;
}
.status-pill.approved, .status-pill.active, .status-pill.sent { background: rgba(16,185,129,.14); color: #059669; }
.status-pill.pending { background: rgba(245,158,11,.16); color: #b45309; }
.status-pill.rejected, .status-pill.cancelled { background: rgba(239,68,68,.14); color: #dc2626; }
