/**
 * Premium UX Enhancements
 * BangHotDeals - Ultra Modern Design System
 * Makes WordPress compete with React-based sites
 * Version: 1.0.0
 */

/* ============================================
   CSS CUSTOM PROPERTIES - DESIGN TOKENS
   ============================================ */
:root {
    /* Primary Palette */
    --ux-primary: #667eea;
    --ux-primary-dark: #5a67d8;
    --ux-primary-light: #818cf8;
    --ux-secondary: #764ba2;
    --ux-accent: #f59e0b;
    --ux-success: #10b981;
    --ux-danger: #ef4444;

    /* Neutral Palette */
    --ux-gray-50: #f9fafb;
    --ux-gray-100: #f3f4f6;
    --ux-gray-200: #e5e7eb;
    --ux-gray-300: #d1d5db;
    --ux-gray-400: #9ca3af;
    --ux-gray-500: #6b7280;
    --ux-gray-600: #4b5563;
    --ux-gray-700: #374151;
    --ux-gray-800: #1f2937;
    --ux-gray-900: #111827;

    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-dark: rgba(17, 24, 39, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: 20px;

    /* Shadows - Layered for depth */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
    --shadow-glow-accent: 0 0 40px rgba(245, 158, 11, 0.3);

    /* Transitions - Smooth & Natural */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    --transition-fast: 150ms var(--ease-out-expo);
    --transition-normal: 300ms var(--ease-out-expo);
    --transition-slow: 500ms var(--ease-out-expo);
    --transition-bounce: 500ms var(--ease-spring);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* 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;
}

/* ============================================
   GLOBAL SMOOTH SCROLLING & SELECTION
   ============================================ */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================
   PAGE TRANSITION OVERLAY
   ============================================ */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--ux-primary), var(--ux-secondary));
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-transition-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

body.page-loading .page-transition-overlay {
    opacity: 1;
}

/* Page enter animation */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body:not(.page-loading) main,
body:not(.page-loading) .site-main {
    animation: pageEnter 0.6s var(--ease-out-expo);
}

/* ============================================
   PREMIUM GLASSMORPHISM HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Header logo animation */
.site-header .site-logo {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.site-header .site-logo:hover {
    transform: scale(1.05);
}

/* Mobile Menu Logo */
.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2em;
}

.mobile-menu-logo span {
    font-size: 1.5em;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.mobile-menu-btn {
    display: block;
    text-align: center;
    width: 100%;
    margin-bottom: 0.75rem;
}

.mobile-menu-btn:last-child {
    margin-bottom: 0;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue, #2563EB);
    color: var(--primary-blue, #2563EB);
}

.btn-outline:hover {
    background: var(--primary-blue, #2563EB);
    color: white;
}

/* Mobile Responsive Header */
@media (max-width: 768px) {
    .header-top-right {
        display: none;
    }

    .header-main .container {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .header-actions {
        display: none;
    }

    .main-navigation {
        display: none;
    }

    .nav-quick-links {
        display: none;
    }
}

/* ============================================
   SKELETON LOADING SYSTEM
   ============================================ */
.skeleton {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg,
        var(--ux-gray-200) 0%,
        var(--ux-gray-100) 50%,
        var(--ux-gray-200) 100%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

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

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: var(--radius-sm);
}

.skeleton-text:last-child {
    width: 70%;
}

.skeleton-image {
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
}

.skeleton-button {
    height: 44px;
    width: 120px;
    border-radius: var(--radius-full);
}

/* Card skeleton */
.skeleton-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.skeleton-card .skeleton-image {
    margin-bottom: 1rem;
}

/* ============================================
   TOAST NOTIFICATION SYSTEM
   ============================================ */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--glass-border);
    pointer-events: auto;
    max-width: 380px;
    transform: translateX(120%);
    opacity: 0;
    transition: all var(--transition-bounce);
}

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

.toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

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

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--ux-danger);
}

.toast-info .toast-icon {
    background: rgba(102, 126, 234, 0.15);
    color: var(--ux-primary);
}

.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--ux-accent);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ux-gray-800);
    margin-bottom: 0.125rem;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--ux-gray-500);
}

.toast-close {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--ux-gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.toast-close:hover {
    background: var(--ux-gray-100);
    color: var(--ux-gray-600);
}

/* Toast progress bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--ux-primary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    animation: toastProgress 4s linear forwards;
}

.toast-success .toast-progress { background: var(--ux-success); }
.toast-error .toast-progress { background: var(--ux-danger); }
.toast-warning .toast-progress { background: var(--ux-accent); }

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* ============================================
   PREMIUM CARD SYSTEM - 3D Effects
   ============================================ */
.premium-card {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg,
        rgba(255,255,255,0.4) 0%,
        rgba(255,255,255,0) 50%
    );
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
    z-index: 1;
}

.premium-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

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

/* Card shine effect on hover */
.premium-card-shine {
    position: relative;
    overflow: hidden;
}

.premium-card-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.premium-card-shine:hover::after {
    left: 150%;
}

/* Card Image Container */
.premium-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

/* Card badges */
.premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--ux-danger), #dc2626);
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    z-index: 2;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.premium-badge-success {
    background: linear-gradient(135deg, var(--ux-success), #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.premium-badge-accent {
    background: linear-gradient(135deg, var(--ux-accent), #d97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Card content */
.premium-card-content {
    padding: 1.5rem;
}

/* ============================================
   BUTTON SYSTEM - Premium Interactions
   ============================================ */
.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
}

/* Primary button */
.btn-primary-premium {
    background: linear-gradient(135deg, var(--ux-primary), var(--ux-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary-premium:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-primary-premium:active {
    transform: translateY(0) scale(0.98);
}

/* Success button */
.btn-success-premium {
    background: linear-gradient(135deg, var(--ux-success), #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-success-premium:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

/* Accent button */
.btn-accent-premium {
    background: linear-gradient(135deg, var(--ux-accent), #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-accent-premium:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

/* Glass button */
.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--ux-gray-800);
    border: 1px solid var(--glass-border);
}

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

/* Outline button */
.btn-outline-premium {
    background: transparent;
    border: 2px solid var(--ux-primary);
    color: var(--ux-primary);
}

.btn-outline-premium:hover {
    background: var(--ux-primary);
    color: white;
    transform: translateY(-2px);
}

/* Ripple effect */
.btn-premium .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Button loading state */
.btn-premium.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-premium.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: buttonSpinner 0.6s linear infinite;
    margin-left: 0.5rem;
}

@keyframes buttonSpinner {
    to { transform: rotate(360deg); }
}

/* ============================================
   ANIMATED COUNTERS
   ============================================ */
.counter-animated {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.counter-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.counter-value {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--ux-primary), var(--ux-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.counter-label {
    font-size: 0.9rem;
    color: var(--ux-gray-500);
    font-weight: 500;
}

/* ============================================
   SCROLL-TRIGGERED ANIMATIONS
   ============================================ */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}

.scroll-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s var(--ease-out-expo);
}

.scroll-animate-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s var(--ease-out-expo);
}

.scroll-animate-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s var(--ease-spring);
}

.scroll-animate-scale.in-view {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animations for grid items */
.scroll-animate-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out-expo);
}

.scroll-animate-stagger.in-view > *:nth-child(1) { transition-delay: 0ms; }
.scroll-animate-stagger.in-view > *:nth-child(2) { transition-delay: 100ms; }
.scroll-animate-stagger.in-view > *:nth-child(3) { transition-delay: 200ms; }
.scroll-animate-stagger.in-view > *:nth-child(4) { transition-delay: 300ms; }
.scroll-animate-stagger.in-view > *:nth-child(5) { transition-delay: 400ms; }
.scroll-animate-stagger.in-view > *:nth-child(6) { transition-delay: 500ms; }

.scroll-animate-stagger.in-view > * {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   MOBILE NAVIGATION - Premium Slide Menu
   ============================================ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: white;
    z-index: var(--z-modal);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    box-shadow: var(--shadow-2xl);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--ux-gray-200);
    background: linear-gradient(135deg, var(--ux-primary), var(--ux-secondary));
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.mobile-menu-nav {
    padding: 1rem 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--ux-gray-700);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
    background: var(--ux-gray-50);
    color: var(--ux-primary);
    border-left-color: var(--ux-primary);
}

.mobile-menu-item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Hamburger menu button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    flex-shrink: 0;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex !important;
        order: -1;
    }
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
    .hamburger-menu {
        display: none !important;
    }
}

/* ============================================
   PRICE TAG ANIMATIONS
   ============================================ */
.price-animated {
    display: inline-block;
    position: relative;
}

.price-animated .old-price {
    position: relative;
    color: var(--ux-gray-400);
    text-decoration: none;
}

.price-animated .old-price::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: var(--ux-danger);
    animation: strikethrough 0.5s ease forwards;
}

@keyframes strikethrough {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.price-animated .new-price {
    color: var(--ux-success);
    font-weight: 800;
    animation: priceReveal 0.5s var(--ease-spring);
}

@keyframes priceReveal {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   COUPON REVEAL ANIMATION
   ============================================ */
.coupon-reveal-container {
    position: relative;
    overflow: hidden;
}

.coupon-hidden {
    position: relative;
    padding: 1rem 1.5rem;
    background: repeating-linear-gradient(
        -45deg,
        var(--ux-gray-100),
        var(--ux-gray-100) 10px,
        var(--ux-gray-200) 10px,
        var(--ux-gray-200) 20px
    );
    border: 2px dashed var(--ux-gray-300);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.coupon-hidden:hover {
    border-color: var(--ux-primary);
    background: var(--ux-gray-100);
}

.coupon-code-revealed {
    position: relative;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid var(--ux-primary);
    border-radius: var(--radius-lg);
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: 4px;
    color: var(--ux-primary);
    animation: couponReveal 0.5s var(--ease-spring);
}

@keyframes couponReveal {
    0% {
        opacity: 0;
        transform: rotateX(90deg);
    }
    100% {
        opacity: 1;
        transform: rotateX(0);
    }
}

/* Copy success animation */
.copy-success {
    animation: copyPulse 0.3s ease;
}

@keyframes copyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================
   FLOATING ACTION BUTTON
   ============================================ */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: var(--z-fixed);
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1rem;
}

.fab-main {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--ux-primary), var(--ux-secondary));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    transition: all var(--transition-bounce);
}

.fab-main:hover {
    transform: scale(1.1) rotate(5deg);
}

.fab-main.active {
    transform: rotate(45deg);
}

.fab-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all var(--transition-normal);
}

.fab-container.expanded .fab-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fab-action {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-bounce);
}

.fab-action:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-xl);
}

.fab-action-label {
    position: absolute;
    right: 100%;
    margin-right: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--ux-gray-800);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-fast);
}

.fab-action:hover .fab-action-label {
    opacity: 1;
    transform: translateX(0);
}

/* Back to top button */
.back-to-top-premium {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--ux-primary), var(--ux-secondary));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-bounce);
    z-index: var(--z-fixed);
}

.back-to-top-premium.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* ============================================
   IMAGE LAZY LOAD EFFECT
   ============================================ */
.lazy-image {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.lazy-image.loaded {
    opacity: 1;
    transform: scale(1);
}

.lazy-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--ux-gray-100), var(--ux-gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ux-gray-400);
    font-size: 2rem;
}

/* ============================================
   SEARCH INPUT PREMIUM
   ============================================ */
.search-premium {
    position: relative;
}

.search-premium input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    border: 2px solid var(--ux-gray-200);
    border-radius: var(--radius-full);
    font-size: 1rem;
    background: white;
    transition: all var(--transition-fast);
}

.search-premium input:focus {
    outline: none;
    border-color: var(--ux-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.search-premium-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ux-gray-400);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.search-premium input:focus + .search-premium-icon {
    color: var(--ux-primary);
}

.search-premium-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--ux-gray-200);
    color: var(--ux-gray-500);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}

.search-premium input:not(:placeholder-shown) + .search-premium-icon + .search-premium-clear {
    display: flex;
}

.search-premium-clear:hover {
    background: var(--ux-gray-300);
}

/* ============================================
   COMPARISON TABLE ANIMATIONS
   ============================================ */
.comparison-table {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.comparison-row {
    display: grid;
    transition: all var(--transition-fast);
}

.comparison-row:hover {
    background: var(--ux-gray-50);
}

.comparison-cell-best {
    position: relative;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
}

.comparison-cell-best::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--ux-success);
}

/* ============================================
   DEAL COUNTDOWN TIMER
   ============================================ */
.countdown-premium {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.countdown-value {
    background: var(--ux-gray-800);
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-variant-numeric: tabular-nums;
    box-shadow: var(--shadow-md);
}

.countdown-value.urgent {
    background: linear-gradient(135deg, var(--ux-danger), #dc2626);
    animation: urgentPulse 1s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.countdown-label {
    font-size: 0.7rem;
    color: var(--ux-gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

.countdown-separator {
    color: var(--ux-gray-400);
    font-size: 1.5rem;
    font-weight: bold;
    align-self: flex-start;
    margin-top: 0.75rem;
}

/* ============================================
   FILTER CHIPS ANIMATION
   ============================================ */
.filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--ux-gray-200);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ux-gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-chip:hover {
    border-color: var(--ux-primary);
    color: var(--ux-primary);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--ux-primary), var(--ux-secondary));
    border-color: transparent;
    color: white;
    transform: scale(1.05);
}

.filter-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    background: var(--ux-gray-200);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
}

.filter-chip.active .filter-chip-count {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   MODAL SYSTEM
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: var(--radius-2xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-bounce);
    box-shadow: var(--shadow-2xl);
}

.modal-overlay.active + .modal-content,
.modal-content.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ux-gray-800);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--ux-gray-100);
    color: var(--ux-gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--ux-gray-200);
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* ============================================
   TOOLTIP SYSTEM
   ============================================ */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    padding: 0.5rem 0.75rem;
    background: var(--ux-gray-800);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: var(--z-tooltip);
    pointer-events: none;
}

[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--ux-gray-800);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: var(--z-tooltip);
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .toast-container {
        top: auto;
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .toast {
        max-width: 100%;
    }

    .fab-container {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .fab-main {
        width: 56px;
        height: 56px;
    }

    .premium-card:hover {
        transform: translateY(-4px);
    }

    .countdown-value {
        font-size: 1.25rem;
        padding: 0.5rem 0.75rem;
    }

    .counter-value {
        font-size: 2rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .toast-container,
    .fab-container,
    .back-to-top-premium,
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-animate,
    .scroll-animate-left,
    .scroll-animate-right,
    .scroll-animate-scale {
        opacity: 1;
        transform: none;
    }
}
