/* Reset and Base Styles */
/* ZUBID Orange-Blue Premium Theme - Modern & Vibrant Design - 2025 */

/* ============================================
   UNIVERSAL RESPONSIVE FIX - ALL DEVICES
   ============================================ */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure images and media scale properly */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

:root {
    /* 🔥 Orange-Blue Gradient Color Palette - Vibrant & Premium */
    --primary-color: #f97316;        /* Vibrant Orange */
    --primary-dark: #ea580c;         /* Deep Orange */
    --primary-light: #fb923c;        /* Soft Orange */
    --primary-bright: #fdba74;       /* Bright Orange */
    --primary-glow: rgba(249, 115, 22, 0.5);
    --primary-glow-strong: rgba(249, 115, 22, 0.7);

    --secondary-color: #1e40af;      /* Deep Blue */
    --secondary-dark: #1e3a8a;       /* Navy Blue */
    --secondary-light: #3b82f6;      /* Bright Blue */
    --secondary-glow: rgba(30, 64, 175, 0.5);

    --accent-color: #0ea5e9;         /* Sky Blue */
    --accent-dark: #0284c7;          /* Deep Sky Blue */
    --accent-light: #38bdf8;         /* Bright Sky Blue */
    --accent-bright: #7dd3fc;        /* Electric Sky Blue */
    --accent-glow: rgba(14, 165, 233, 0.5);

    /* Vibrant Action Colors */
    --success-color: #22c55e;        /* Vivid Green */
    --error-color: #ef4444;          /* Vibrant Red */
    --warning-color: #f59e0b;        /* Amber Warning */
    --info-color: #3b82f6;           /* Blue Info */

    /* 🌈 Orange-Blue Gradient Colors */
    --gradient-start: #f97316;       /* Orange */
    --gradient-mid: #f59e0b;         /* Amber */
    --gradient-end: #0ea5e9;         /* Sky Blue */
    --gradient-orange: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fdba74 100%);
    --gradient-blue: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #0ea5e9 100%);
    --gradient-orange-blue: linear-gradient(135deg, #f97316 0%, #f59e0b 25%, #3b82f6 75%, #0ea5e9 100%);
    --gradient-orange-blue-vibrant: linear-gradient(135deg, #ea580c 0%, #f97316 30%, #0284c7 70%, #0ea5e9 100%);
    --gradient-sunset: linear-gradient(135deg, #f97316 0%, #ef4444 25%, #8b5cf6 75%, #3b82f6 100%);

    /* Text Colors */
    --text-color: #1e293b;           /* Dark Slate */
    --text-secondary: #475569;       /* Slate Gray */
    --text-light: #94a3b8;           /* Soft Slate */
    --text-white: #ffffff;
    --text-inverse: #ffffff;

    /* Background Colors */
    --bg-color: #fefefe;             /* Pure White */
    --bg-light: #f8fafc;             /* Light Gray */
    --bg-dark: #0f172a;              /* Deep Navy */
    --bg-gradient: linear-gradient(135deg, #f97316 0%, #f59e0b 30%, #3b82f6 70%, #0ea5e9 100%);
    --bg-gradient-secondary: linear-gradient(135deg, #1e40af 0%, #1e3a8a 50%, #0f172a 100%);
    --bg-gradient-warm: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
    --bg-gradient-cool: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #1e40af 100%);
    --bg-gradient-rainbow: linear-gradient(135deg, #f97316, #f59e0b, #22c55e, #0ea5e9, #3b82f6);
    --bg-gradient-radial: radial-gradient(circle at center, rgba(249, 115, 22, 0.1) 0%, rgba(14, 165, 233, 0.05) 50%, transparent 70%);
    --bg-gradient-mesh: linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, rgba(245, 158, 11, 0.03) 30%, rgba(59, 130, 246, 0.03) 70%, rgba(14, 165, 233, 0.05) 100%);

    /* Enhanced Shadows with Orange-Blue Tints */
    --shadow-sm: 0 2px 8px rgba(30, 64, 175, 0.06);
    --shadow: 0 4px 16px rgba(30, 64, 175, 0.08);
    --shadow-md: 0 8px 32px rgba(30, 64, 175, 0.1);
    --shadow-lg: 0 16px 48px rgba(30, 64, 175, 0.12);
    --shadow-xl: 0 24px 64px rgba(30, 64, 175, 0.15);
    --shadow-primary: 0 8px 32px rgba(249, 115, 22, 0.35), 0 0 0 1px rgba(249, 115, 22, 0.1);
    --shadow-secondary: 0 8px 32px rgba(30, 64, 175, 0.25);
    --shadow-accent: 0 8px 32px rgba(14, 165, 233, 0.35), 0 0 0 1px rgba(14, 165, 233, 0.1);
    --shadow-glow: 0 0 40px rgba(249, 115, 22, 0.4), 0 0 80px rgba(14, 165, 233, 0.2);
    --shadow-glow-strong: 0 0 60px rgba(249, 115, 22, 0.6), 0 0 120px rgba(14, 165, 233, 0.3);
    --shadow-colorful: 0 20px 60px rgba(249, 115, 22, 0.2), 0 10px 30px rgba(14, 165, 233, 0.15);
    --shadow-orange: 0 8px 32px rgba(249, 115, 22, 0.3);
    --shadow-blue: 0 8px 32px rgba(59, 130, 246, 0.3);

    /* Premium Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(30, 64, 175, 0.08);
    --glass-dark: rgba(15, 23, 42, 0.9);
    --glass-colorful: rgba(249, 115, 22, 0.05);
    --glass-orange: rgba(249, 115, 22, 0.1);
    --glass-blue: rgba(59, 130, 246, 0.1);

    /* Border Colors */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-primary: rgba(249, 115, 22, 0.3);
    --border-primary-strong: rgba(249, 115, 22, 0.6);
    --border-secondary: rgba(30, 64, 175, 0.2);
    --border-glow: rgba(249, 115, 22, 0.3);
    --border-gradient: linear-gradient(135deg, rgba(249, 115, 22, 0.5), rgba(14, 165, 233, 0.5));

    /* Smooth Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* 📱 Enhanced Mobile Design Tokens */
    --mobile-nav-height: 64px;
    --mobile-bottom-nav-height: 68px;
    --mobile-safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --mobile-safe-area-top: env(safe-area-inset-top, 0px);
    --mobile-safe-area-left: env(safe-area-inset-left, 0px);
    --mobile-safe-area-right: env(safe-area-inset-right, 0px);
    --mobile-touch-target: 48px;
    --mobile-spacing-xs: 0.5rem;
    --mobile-spacing-sm: 0.75rem;
    --mobile-spacing-md: 1rem;
    --mobile-spacing-lg: 1.5rem;
    --mobile-spacing-xl: 2rem;
    --mobile-radius-sm: 12px;
    --mobile-radius-md: 16px;
    --mobile-radius-lg: 24px;
    --mobile-radius-xl: 32px;
    --mobile-radius-full: 9999px;

    /* Premium Card Shadows with Orange-Blue */
    --card-shadow-premium: 0 4px 20px rgba(249, 115, 22, 0.08), 0 8px 40px rgba(59, 130, 246, 0.06);
    --card-shadow-hover: 0 12px 40px rgba(249, 115, 22, 0.15), 0 8px 24px rgba(59, 130, 246, 0.1);
    --card-shadow-active: 0 2px 8px rgba(249, 115, 22, 0.15);

    /* Premium Blur Effects */
    --blur-sm: 8px;
    --blur-md: 16px;
    --blur-lg: 24px;
    --blur-xl: 40px;

    /* Font Sizes - Mobile Optimized */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
}

/* 🌙 DARK MODE THEME - Orange-Blue */
[data-theme="dark"] {
    /* Dark mode background colors */
    --bg-color: #0f172a;
    --bg-light: #1e293b;
    --bg-dark: #020617;
    --bg-gradient-radial: radial-gradient(circle at center, rgba(249, 115, 22, 0.15) 0%, rgba(14, 165, 233, 0.1) 50%, transparent 70%);
    --bg-gradient-mesh: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(245, 158, 11, 0.08) 30%, rgba(59, 130, 246, 0.08) 70%, rgba(14, 165, 233, 0.1) 100%);

    /* Dark mode text colors */
    --text-color: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-light: #64748b;

    /* Dark mode glassmorphism with orange-blue tints */
    --glass-bg: rgba(30, 41, 59, 0.9);
    --glass-border: rgba(249, 115, 22, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --glass-dark: rgba(2, 6, 23, 0.95);
    --glass-colorful: rgba(249, 115, 22, 0.1);
    --glass-orange: rgba(249, 115, 22, 0.15);
    --glass-blue: rgba(59, 130, 246, 0.15);

    /* Dark mode border colors */
    --border-color: #334155;
    --border-light: #1e293b;
    --border-primary: rgba(249, 115, 22, 0.4);
    --border-secondary: rgba(59, 130, 246, 0.3);

    /* Enhanced dark mode shadows with orange-blue glow */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 40px rgba(249, 115, 22, 0.5), 0 0 80px rgba(14, 165, 233, 0.3);
    --shadow-primary: 0 8px 32px rgba(249, 115, 22, 0.4);
    --shadow-accent: 0 8px 32px rgba(14, 165, 233, 0.4);

    /* Dark mode cards */
    --card-bg: rgba(30, 41, 59, 0.8);
    --card-border: rgba(71, 85, 105, 0.3);
    --card-shadow-premium: 0 4px 20px rgba(249, 115, 22, 0.1), 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* Dark mode element overrides */
[data-theme="dark"] .auction-card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .auction-card:hover {
    background: var(--bg-light);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(249, 115, 22, 0.2);
}

[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .user-dropdown {
    background: var(--bg-light);
    border-color: rgba(249, 115, 22, 0.2);
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .user-dropdown-item:hover {
    background: rgba(249, 115, 22, 0.15);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(14, 165, 233, 0.1) 100%);
}

[data-theme="dark"] .footer {
    background: var(--bg-dark);
    border-top-color: var(--border-color);
}

[data-theme="dark"] .toast {
    background: var(--bg-light);
    color: var(--text-color);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-light);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    background-image:
        var(--bg-gradient-radial),
        var(--bg-gradient-mesh),
        linear-gradient(180deg, rgba(249, 115, 22, 0.02) 0%, rgba(14, 165, 233, 0.01) 50%, transparent 100%);
    background-attachment: fixed;
    background-size: 100% 100%, 200% 200%, 100% 100%;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Creative Orange-Blue Background Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 20% 30%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
    animation: creativePulse 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.03) 0%, rgba(14, 165, 233, 0.02) 50%, transparent 70%);
    animation: floatingOrb 25s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes creativePulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.05) rotate(1deg);
        opacity: 0.9;
    }
    50% {
        transform: scale(1) rotate(-1deg);
        opacity: 0.95;
    }
    75% {
        transform: scale(1.03) rotate(0.5deg);
        opacity: 0.92;
    }
}

@keyframes floatingOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-5%, 5%) scale(1.1);
    }
    66% {
        transform: translate(5%, -5%) scale(0.9);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Modern Creative Navigation - Orange-Blue Theme */
.navbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(254, 243, 235, 0.95) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 4px 30px rgba(249, 115, 22, 0.08), 0 1px 3px rgba(30, 64, 175, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(249, 115, 22, 0.15);
    transition: all var(--transition-base);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f97316 0%, #f59e0b 25%, #3b82f6 75%, #0ea5e9 100%);
    background-size: 300% 100%;
    animation: gradientFlow 4s ease-in-out infinite;
    opacity: 1;
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 80px;
}

.nav-brand a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-brand h1 {
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Inter', 'Arial Black', sans-serif;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    background-size: 200% 200%;
    animation: brandGradient 5s ease-in-out infinite;
}

@keyframes brandGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.brand-tagline {
    font-size: 0.65rem;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex: 1;
    justify-content: space-between;
    margin-left: 3rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    position: relative;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon {
    opacity: 0.7;
    transition: all var(--transition-base);
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    opacity: 1;
    transform: translateY(-2px);
    color: var(--primary-color);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(14, 165, 233, 0.06) 100%);
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.dropdown-arrow {
    transition: transform var(--transition-base);
    opacity: 0.6;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-weight: 500;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(14, 165, 233, 0.06) 100%);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.dropdown-item.active {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(14, 165, 233, 0.1) 100%);
    color: var(--primary-color);
    font-weight: 600;
}

.dropdown-item svg {
    opacity: 0.7;
    transition: all var(--transition-base);
}

.dropdown-item:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 🌙 Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.05);
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    color: var(--text-color);
}

.theme-toggle:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.theme-toggle .moon-icon {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

/* 🔔 Notifications Button */
.notifications-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.05);
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    color: var(--text-color);
}

.notifications-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badgePulse 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.notification-badge:empty,
.notification-badge[data-count="0"] {
    display: none;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Notifications Dropdown Panel */
.notifications-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-height: 480px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 1000;
    overflow: hidden;
}

.notifications-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.notifications-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notifications-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mark-all-read-btn {
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.mark-all-read-btn:hover {
    background: rgba(99, 102, 241, 0.1);
}

.notifications-list {
    max-height: 360px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(99, 102, 241, 0.05);
}

.notification-item.unread {
    background: rgba(99, 102, 241, 0.08);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-icon.bid { background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%); }
.notification-icon.win { background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%); }
.notification-icon.outbid { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%); }
.notification-icon.payment { background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%); }
.notification-icon.system { background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%); }

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.notification-message {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 0.35rem;
}

.notifications-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

.notifications-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.notifications-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.view-all-notifications-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.view-all-notifications-btn:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* Notifications wrapper for positioning */
.notifications-wrapper {
    position: relative;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* User Menu */
.nav-user {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.user-menu-toggle:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.nav-user:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-weight: 500;
    font-size: 0.9rem;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}

.user-dropdown-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
    color: var(--primary-color);
}

.logout-btn:hover {
    background: rgba(211, 47, 47, 0.05);
    color: var(--error-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Settings Dropdown (for guests) */
.settings-dropdown {
    position: relative;
}

.settings-toggle {
    padding: 0.5rem !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.settings-toggle .nav-icon {
    margin: 0 !important;
}

.settings-menu {
    min-width: 220px;
}

/* Theme Toggle in Dropdown */
.theme-toggle-dropdown {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.theme-toggle-dropdown .sun-icon,
.theme-toggle-dropdown .moon-icon {
    flex-shrink: 0;
}

[data-theme="dark"] .theme-toggle-dropdown .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle-dropdown .moon-icon {
    display: block;
}

.theme-toggle-dropdown .moon-icon {
    display: none;
}

/* Language Menu Item with Submenu */
.language-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.language-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.language-menu-item:hover .language-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.language-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.language-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* RTL Language Submenu */
[dir="rtl"] .language-submenu {
    left: auto;
    right: 100%;
    transform: translateX(10px);
}

[dir="rtl"] .language-menu-item:hover .language-submenu {
    transform: translateX(0);
}

/* Dark mode styles for language submenu */
[data-theme="dark"] .language-submenu {
    background: var(--bg-light);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

[data-theme="dark"] .language-btn:hover {
    background: rgba(249, 115, 22, 0.2);
}

/* Mobile adjustments for language submenu */
@media (max-width: 767px) {
    .language-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0.5rem;
        margin-left: 1rem;
        background: transparent;
    }

    .language-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Modern Creative Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #f59e0b 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35), 0 0 0 1px rgba(249, 115, 22, 0.1);
    font-weight: 700;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.45), 0 0 60px rgba(249, 115, 22, 0.2);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #f59e0b 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-outline:hover::before {
    left: 0;
}

.btn-outline:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
    border-color: transparent;
}

/* Blue Outline Button Variant */
.btn-outline-blue {
    background: transparent;
    color: var(--secondary-light);
    border: 2px solid var(--secondary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-outline-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #0ea5e9 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-outline-blue:hover::before {
    left: 0;
}

.btn-outline-blue:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
    border-color: transparent;
}

/* Blue Primary Button */
.btn-blue {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #0ea5e9 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.btn-blue:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.45);
    filter: brightness(1.1);
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-icon {
    padding: 0.625rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all var(--transition-base);
}

.btn-icon.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

/* Hero Section / Carousel - Orange-Blue Theme */
.hero {
    margin-bottom: 4rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-xl), 0 8px 32px rgba(249, 115, 22, 0.2), 0 4px 16px rgba(14, 165, 233, 0.15);
    border: 3px solid transparent;
    background-image: linear-gradient(var(--bg-color), var(--bg-color)), linear-gradient(135deg, #f97316 0%, #f59e0b 30%, #3b82f6 70%, #0ea5e9 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.carousel {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--bg-gradient);
    min-height: 400px;
    /* Enhanced image quality settings */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimize-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -ms-interpolation-mode: bicubic;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 50%, transparent 100%);
    color: white;
    padding: 2rem 2rem 1.5rem;
}

.carousel-overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.carousel-overlay p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.carousel-btn.prev {
    left: 24px;
}

.carousel-btn.next {
    right: 24px;
}

.carousel-btn:hover {
    background: var(--bg-gradient);
    color: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: transparent;
}

.carousel-indicators {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-base);
}

.indicator.active {
    background: white;
    transform: scale(1.3);
}

/* Search Section */
.search-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem 0;
    margin-bottom: 4rem;
    border-radius: 24px;
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
    background: var(--glass-bg);
}

.search-box {
    display: flex;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 1.125rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    font-size: 1rem;
    transition: all var(--transition-base);
    background: white;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--shadow-md);
    transform: translateY(-2px);
}

.search-btn {
    padding: 1.125rem 2rem;
}

/* Categories Section */
.categories-section {
    margin-bottom: 4rem;
}

.categories-section h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 1rem;
}

.categories-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--bg-gradient);
    border-radius: 2px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-colorful);
    border-color: rgba(99, 102, 241, 0.2);
    background: white;
}

.category-card h3 {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Auctions Section */
.auctions-section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--bg-gradient);
    border-radius: 2px;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all:hover {
    gap: 1rem;
}

.auctions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 200px;
}

/* Ensure section is visible */
.auctions-list-section {
    padding: 2rem 0;
    min-height: 400px;
}

.auction-card {
    background: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.08), 0 2px 8px rgba(14, 165, 233, 0.06);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid rgba(249, 115, 22, 0.1);
    position: relative;
    max-width: 320px;
}

.auction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316 0%, #f59e0b 30%, #3b82f6 70%, #0ea5e9 100%);
    background-size: 200% 200%;
    transform: scaleX(0);
    transition: transform var(--transition-base);
    z-index: 1;
    animation: gradientShift 4s ease infinite;
}

.auction-card:hover::before {
    transform: scaleX(1);
}

.auction-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.18), 0 10px 30px rgba(14, 165, 233, 0.12);
    border-color: rgba(249, 115, 22, 0.25);
    background: white;
}

.auction-card .auction-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.auction-card .auction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    background: #f8f8f8;
    /* Prevent flickering */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Video Button on Auction Cards */
.video-button {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(99, 102, 241, 0.8);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: inherit;
}

.video-button:hover {
    background: rgba(99, 102, 241, 0.9);
    border-color: rgba(99, 102, 241, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.video-button .video-icon {
    font-size: 1.1rem;
    display: inline-block;
}

.video-button:active {
    transform: translateY(0);
}

.auction-card .auction-image img[src=""],
.auction-card .auction-image img:not([src]),
.auction-card .auction-image img[src="null"],
.auction-card .auction-image img[src="undefined"] {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZmY2NjAwIi8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIyNCIgZmlsbD0iI2ZmZmZmZiIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPk5vIEltYWdlPC90ZXh0Pjwvc3ZnPg==');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.auction-card:hover .auction-image img {
    transform: scale(1.05);
}

.auction-card-content {
    padding: 1rem;
}

.auction-card-content h3 {
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.125rem;
}

/* Auction card description - truncated for listings */
.auction-card-content .auction-description,
.auction-list-content .auction-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.auction-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat .price {
    font-size: 1.375rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 2px 8px var(--primary-glow);
    filter: drop-shadow(0 0 4px var(--primary-glow));
}

/* Market Price styling */
.stat .market-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #10b981;
    text-decoration: line-through;
    opacity: 0.8;
}

/* Real Price / Buy It Now styling */
.stat .real-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Real Price Stat Box - Make it stand out */
.real-price-stat {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.1), rgba(251, 191, 36, 0.1));
    border: 2px solid rgba(255, 102, 0, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1rem !important;
    margin-top: 0.5rem;
}

.real-price-stat label {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

/* Buy Now Section */
.buy-now-section {
    margin-bottom: 1.5rem;
}

.buy-now-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 1.5rem;
    border: 2px solid rgba(255, 102, 0, 0.3);
    box-shadow: 0 10px 40px rgba(255, 102, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.buy-now-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.1) 0%, transparent 70%);
    animation: buyNowPulse 3s ease-in-out infinite;
}

@keyframes buyNowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.buy-now-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.buy-now-icon {
    font-size: 1.5rem;
    animation: flashIcon 1.5s ease-in-out infinite;
}

@keyframes flashIcon {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.buy-now-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.buy-now-content {
    position: relative;
    z-index: 1;
}

.buy-now-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.buy-now-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.buy-now-price .price-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.buy-now-price .price-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6600, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-buy-now {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff6600 0%, #fbbf24 100%);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-buy-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 102, 0, 0.5);
}

.btn-buy-now:active {
    transform: translateY(-1px);
}

.btn-buy-now:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-buy-now .btn-icon {
    font-size: 1.25rem;
}

.buy-now-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0.75rem 0 0;
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.3), transparent);
}

.section-divider span {
    padding: 0 1rem;
    color: rgba(255, 102, 0, 0.6);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.time-left {
    color: var(--warning-color);
    font-weight: 700;
    font-size: 1.125rem;
}

/* Auction Card Price Tags */
.auction-prices {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border-color);
}

.market-price-tag {
    font-size: 0.75rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.market-price-tag s {
    color: #ef4444;
}

.real-price-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Filters Section */
.filters-section {
    background: white;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem 0;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.filters-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    gap: 0.75rem;
}

.filter-input,
.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    background: var(--bg-light);
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Auction List View */
.auctions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auction-list-item {
    background: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 2rem;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.auction-list-item:hover {
    transform: translateX(8px) scale(1.01);
    box-shadow: var(--shadow-colorful);
    border-color: rgba(99, 102, 241, 0.2);
}

.auction-list-image {
    width: 220px;
    height: 160px;
    overflow: hidden;
    border-radius: 16px;
}

.auction-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
    background: var(--bg-gradient);
    min-height: 160px;
}

.auction-list-image img[src=""],
.auction-list-image img:not([src]),
.auction-list-image img[src="null"],
.auction-list-image img[src="undefined"] {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjE1MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZmY2NjAwIi8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIyMCIgZmlsbD0iI2ZmZmZmZiIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPk5vIEltYWdlPC90ZXh0Pjwvc3ZnPg==');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.auction-list-item:hover .auction-list-image img {
    transform: scale(1.08);
}

.auction-list-content h3 {
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.auction-list-stats {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin-top: 1rem;
}

/* Auction Detail */
.auction-detail-section {
    margin: 3rem 0;
}

.auction-detail-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start; /* Align items to start to prevent layout shift */
}

.auction-images {
    background: white;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    align-self: start;
}

.main-image {
    width: 100%;
    height: 550px;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
}

.thumbnail {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.auction-info {
    background: white;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 2rem;
    align-self: start;
    height: fit-content;
}

.auction-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.auction-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-badge,
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.category-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--primary-color);
}

.status-badge.active {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.ended {
    background: var(--secondary-color);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
}

.auction-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 20px;
}

.countdown-timer {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-gradient);
    background-size: 200% 200%;
    color: white;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg), var(--shadow-primary);
    position: relative;
    overflow: hidden;
    animation: gradientShift 3s ease infinite;
}

.countdown-timer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.countdown-timer label {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
    font-weight: 600;
}

.timer {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    transition: all 0.3s ease;
}

.timer-normal {
    color: var(--success-color);
}

.timer-warning {
    color: var(--warning-color);
    font-weight: 600;
}

.timer-critical {
    color: var(--error-color);
    font-weight: bold;
}

.timer.ended {
    color: var(--text-light);
    font-weight: normal;
}

/* Pulse animation for critical countdown */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Auction detail page description - full display */
.auction-images .auction-description,
.auction-detail-main .auction-description {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 2px solid var(--border-primary);
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-primary);
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    overflow: visible !important;
    -webkit-box-orient: unset !important;
    box-shadow: var(--shadow-md);
    /* Ensure description doesn't affect sibling layout */
    min-height: 0; /* Allow shrinking */
    /* Prevent layout shift when expanding */
    will-change: max-height; /* Optimize animation */
}

.auction-images .auction-description .description-header,
.auction-detail-main .auction-description .description-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-primary);
    transition: all 0.3s ease;
}

.auction-images .auction-description .description-header:hover,
.auction-detail-main .auction-description .description-header:hover {
    opacity: 0.8;
}

.auction-images .auction-description h3,
.auction-detail-main .auction-description h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.auction-images .auction-description .description-toggle-icon,
.auction-detail-main .auction-description .description-toggle-icon {
    font-size: 1rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    user-select: none;
}

.auction-images .auction-description .description-content.description-expanded .description-toggle-icon,
.auction-detail-main .auction-description .description-content.description-expanded .description-toggle-icon {
    transform: rotate(180deg);
}

.auction-images .auction-description .description-content,
.auction-detail-main .auction-description .description-content {
    position: relative;
    transition: max-height 0.3s ease;
    overflow: hidden;
    /* Ensure description expansion doesn't affect parent layout */
    contain: layout style;
}

.auction-images .auction-description .description-content.description-minimized::after,
.auction-detail-main .auction-description .description-content.description-minimized::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--glass-bg));
    pointer-events: none;
}

.auction-images .auction-description p,
.auction-detail-main .auction-description p {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.05rem;
    margin: 1rem 0;
    padding: 0;
}

.auction-warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 87, 34, 0.1) 100%);
    border: 2px solid rgba(255, 152, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.auction-warning .warning-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.auction-warning .warning-header .warning-icon {
    font-size: 1.5rem;
}

.auction-warning .warning-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ff9800;
}

.auction-warning .warning-content {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1rem;
}

.auction-warning .warning-content p {
    margin: 0.5rem 0;
}

.auction-warning .warning-content ul,
.auction-warning .warning-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.auction-warning .warning-content li {
    margin: 0.5rem 0;
}

.seller-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Bidding Section */
.bidding-section {
    background: white;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 4rem;
    border: 1px solid var(--border-color);
}

.bidding-section h2 {
    margin-bottom: 2rem;
    font-weight: 800;
}

.bidding-form {
    max-width: 550px;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="datetime-local"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.125rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    font-size: 1.05rem;
    font-family: inherit;
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--shadow-md);
    transform: translateY(-2px);
}

.form-group small {
    display: block;
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Enhanced Registration Form Styles */
.register-modal {
    max-width: 1100px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 255, 0.98) 100%);
    border-radius: 32px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.1);
    position: relative;
    padding: 0;
}

.register-modal .modal-content {
    padding: 3.5rem 4rem 3rem;
}

.register-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
    border-radius: 24px 24px 0 0;
}

.modal-header {
    text-align: center;
    margin-bottom: 3.5rem;
    padding-bottom: 2rem;
    position: relative;
}

.header-icon {
    font-size: 4rem;
    margin-bottom: 0.75rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.modal-header h2 {
    margin-bottom: 0.75rem;
    font-size: 2.75rem;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.75px;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin: 0;
    font-weight: 500;
}

.form-section {
    margin-bottom: 2.5rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(250, 250, 255, 0.9) 100%);
    border-radius: 24px;
    border: 2px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-section:hover::before {
    opacity: 1;
}

.form-section:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

/* Modern Photo Upload Section */
.photo-section {
    padding: 3.5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: 28px;
    transition: all 0.3s ease;
}

.photo-section:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(6, 182, 212, 0.06) 100%);
}

.photo-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.photo-preview-wrapper {
    position: relative;
}

.photo-preview {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: var(--bg-gradient);
    border: 6px solid white;
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.25);
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.35);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 0.75rem;
}

.photo-placeholder svg {
    opacity: 0.8;
}

.photo-placeholder-text {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.9;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-preview:hover .photo-overlay {
    opacity: 1;
}

.photo-remove-btn {
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.photo-remove-btn:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

.photo-upload-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.photo-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 2.25rem;
    background: var(--bg-gradient);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}

.photo-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-color) 100%);
}

.photo-upload-btn:active {
    transform: translateY(0);
}

.photo-upload-btn svg {
    width: 20px;
    height: 20px;
}

.photo-hint {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-icon {
    font-size: 1.75rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.required {
    color: #ef4444;
    font-weight: bold;
    margin-left: 2px;
}

.required.critical {
    color: #dc2626;
    font-size: 1.1em;
    animation: pulse-critical 2s infinite;
}

@keyframes pulse-critical {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.05rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0a0c0;
    opacity: 0.7;
}

.form-group input:required:invalid,
.form-group textarea:required:invalid {
    border-color: var(--border-color);
}

/* Input Wrapper Styles */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    font-size: 1.25rem;
    z-index: 1;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-icon-textarea {
    top: 1rem;
    transform: translateY(-50%);
}

.form-group input,
.form-group textarea {
    padding-left: 3.5rem !important;
    transition: all 0.3s ease;
}

.form-group input:focus ~ .input-icon,
.form-group textarea:focus ~ .input-icon {
    transform: scale(1.2);
}

.form-group textarea {
    padding-top: 1.125rem;
    padding-left: 3.5rem !important;
    min-height: 100px;
}

.input-wrapper .password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.input-wrapper .password-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.1);
}

.eye-icon {
    font-size: 1.1rem;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    border-radius: 2px;
    background: var(--border-light);
    overflow: hidden;
    transition: all 0.3s ease;
}

.password-strength::after {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.password-strength.weak::after {
    width: 33%;
    background: #ef4444;
}

.password-strength.medium::after {
    width: 66%;
    background: #f59e0b;
}

.password-strength.strong::after {
    width: 100%;
    background: #10b981;
}

/* Password Requirements List */
.password-requirements {
    margin-top: 0.75rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Language Switcher - Enhanced */
.language-switcher {
    position: relative;
    display: inline-block;
}

.language-switcher-btn {
    background: rgba(99, 102, 241, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all var(--transition-base);
    position: relative;
    font-weight: 600;
}

.language-switcher-btn:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.language-switcher-btn svg {
    opacity: 0.7;
}

.language-switcher-btn span {
    font-weight: 600;
}

/* Loading state for language switcher */
.language-switcher.loading .language-switcher-btn {
    opacity: 0.7;
    cursor: wait;
}

.language-switcher.loading .language-switcher-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 8px;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 1000;
}

[dir="rtl"] .language-dropdown {
    right: auto;
    left: 0;
}

.language-switcher.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

[dir="rtl"] .language-option {
    text-align: right;
}

.language-option:hover {
    background: var(--bg-light);
}

.language-option.active {
    background: var(--primary-color);
    color: white;
}

.language-option:first-child {
    border-radius: 8px 8px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 8px 8px;
}

/* Smooth page transitions */
body {
    transition: opacity 0.2s ease-in-out;
}

body.language-changing {
    opacity: 0.9;
}

/* Prevent flash of unstyled content during language change */
.i18n-loading {
    visibility: hidden;
}

.i18n-ready {
    visibility: visible;
}

.requirement-item.met {
    color: #10b981;
}

.requirement-item.met .requirement-icon {
    background: #10b981;
    color: white;
}

.requirement-text {
    flex: 1;
}

.form-group input:required:valid,
.form-group textarea:required:valid {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.02);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input:focus:required:invalid,
.form-group textarea:focus:required:invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-actions {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 3px solid rgba(99, 102, 241, 0.1);
}

.form-navigation {
    display: flex;
    gap: 12px;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    justify-content: flex-end;
}

.form-navigation .btn {
    flex: 1;
    max-width: 150px;
}

.form-navigation .btn-block {
    max-width: 100%;
}

.submit-btn {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--bg-gradient);
    border: none;
    padding: 1.375rem 2.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
    letter-spacing: 0.3px;
    color: white;
    cursor: pointer;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: scale(1.2) rotate(10deg);
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-footer .link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.form-footer .link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.form-footer .link:hover::after {
    width: 100%;
}

.biometric-btn {
    padding: 1.25rem;
    font-size: 1rem;
    border-radius: 14px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(6, 182, 212, 0.05));
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.biometric-btn:hover {
    background: var(--bg-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    border-color: transparent;
}

/* Critical field highlight */
.critical-field {
    position: relative;
}

.critical-field::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 4px 0 0 4px;
}

/* Fallback for browsers that support :has() */
.form-group:has(.required.critical) {
    position: relative;
}

.form-group:has(.required.critical)::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 4px 0 0 4px;
}

/* Modern Birthday Selector Styles */
.birthday-selector-wrapper {
    position: relative;
    width: 100%;
}

.birthday-selector-wrapper input[type="date"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 3;
    top: 0;
    left: 0;
}

.birthday-selector-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    color: transparent;
    background: transparent;
    cursor: pointer;
}

.birthday-selector {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 255, 0.98) 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.birthday-selector::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.15), transparent);
    transition: left 0.6s ease;
}

.birthday-selector:hover::before {
    left: 100%;
}

.birthday-selector:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(250, 250, 255, 1) 100%);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.birthday-selector:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.birthday-selector-wrapper input[type="date"]:focus + .birthday-selector,
.birthday-selector-wrapper input[type="date"]:focus-visible + .birthday-selector {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

.birthday-selector-wrapper input[type="date"]:valid + .birthday-selector {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.birthday-selector-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.birthday-icon-wrapper {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 12px;
    transition: all 0.3s ease;
}

.birthday-selector:hover .birthday-icon-wrapper {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
    transform: scale(1.1) rotate(5deg);
}

.birthday-selector-wrapper input[type="date"]:valid + .birthday-selector .birthday-icon-wrapper {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
}

.birthday-icon {
    font-size: 1.75rem;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.birthday-selector:hover .birthday-icon {
    transform: scale(1.15);
    animation: celebrate 0.6s ease;
}

@keyframes celebrate {
    0%, 100% {
        transform: scale(1.15) rotate(0deg);
    }
    25% {
        transform: scale(1.25) rotate(-10deg);
    }
    75% {
        transform: scale(1.25) rotate(10deg);
    }
}

.birthday-text-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.birthday-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.birthday-selector:hover .birthday-label {
    color: var(--primary-color);
}

.birthday-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.birthday-selector-wrapper input[type="date"]:valid + .birthday-selector .birthday-value {
    color: #10b981;
    font-weight: 700;
}

.birthday-arrow-wrapper {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.birthday-selector:hover .birthday-arrow-wrapper {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(2px);
}

.birthday-selector-wrapper input[type="date"]:valid + .birthday-selector .birthday-arrow-wrapper {
    background: rgba(16, 185, 129, 0.2);
}

.birthday-arrow {
    font-size: 0.875rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    display: inline-block;
}

.birthday-selector:hover .birthday-arrow {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.birthday-selector-wrapper input[type="date"]:valid + .birthday-selector .birthday-arrow {
    color: #10b981;
}

/* Responsive adjustments for birthday selector */
@media (max-width: 768px) {
    .birthday-selector {
        padding: 1rem 1.25rem;
    }

    .birthday-icon-wrapper {
        width: 44px;
        height: 44px;
    }

    .birthday-icon {
        font-size: 1.5rem;
    }

    .birthday-value {
        font-size: 0.95rem;
    }

    .birthday-arrow-wrapper {
        width: 32px;
        height: 32px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .register-modal {
        max-width: 95%;
        margin: 1rem;
    }

    .register-modal .modal-content {
        padding: 2rem 1.5rem 1.5rem;
    }

    .form-section {
        padding: 1.75rem;
        margin-bottom: 1.75rem;
    }

    .modal-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .modal-header h2 {
        font-size: 2rem;
    }

    .header-icon {
        font-size: 3rem;
    }

    .section-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group input[type="number"],
    .form-group input[type="tel"],
    .form-group input[type="datetime-local"],
    .form-group textarea,
    .form-group select {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .submit-btn {
        padding: 1.125rem 2rem;
        font-size: 1.05rem;
    }

    .photo-section {
        padding: 2rem;
    }

    .photo-preview {
        width: 180px;
        height: 180px;
    }

    .date-picker-btn {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .date-picker-icon {
        font-size: 1.1rem;
    }
}

.error-message {
    color: var(--error-color);
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.bidding-closed {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* Bid History */
.bid-history-section {
    background: white;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.bid-history-section h2 {
    margin-bottom: 2rem;
    font-weight: 800;
}

.bid-history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bid-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: 16px;
    transition: all var(--transition-base);
}

.bid-history-item:hover {
    transform: translateX(8px);
}

.bid-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bid-amount {
    font-size: 1.375rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 2px 8px var(--primary-glow);
    filter: drop-shadow(0 0 4px var(--primary-glow));
}

.auto-bid-badge {
    padding: 0.375rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bid-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Winner/Losing Bid Styles */
.winner-bid {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: 2px solid #10b981;
}

.winner-bid .bid-amount {
    color: white;
    font-weight: 800;
}

.losing-bid {
    background-color: rgba(239, 68, 68, 0.08);
    border-left: 4px solid var(--error-color);
}

.current-user-bid {
    border: 2px solid var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.winner-badge {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-left: 0.5rem;
}

.losing-badge {
    background-color: var(--error-color);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-left: 0.5rem;
}

.your-bid-badge {
    background: var(--bg-gradient);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.bid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.bid-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.current-winner-display {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.current-winner-display h3 {
    margin-bottom: 0.75rem;
    color: white;
    font-weight: 800;
}

.current-winner-display p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.95);
}

.current-winner-display .congratulations {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fbbf24;
}

.current-winner-display .outbid-notice {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.your-winner {
    border: 3px solid #fbbf24;
    animation: pulse-winner 2s infinite;
}

@keyframes pulse-winner {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(251, 191, 36, 0);
    }
}

.winner-announcement-final {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 2rem;
    box-shadow: var(--shadow-xl);
}

.winner-announcement-final h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 800;
}

.winner-announcement-final p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.winner-announcement-final .congratulations {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fbbf24;
    margin-top: 1rem;
}

.current-bid-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Pagination */
.pagination {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-controls span {
    padding: 0 0.75rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    overflow: auto;
}

.modal-content {
    background: white;
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    margin: 5% auto;
    padding: 3rem;
    border-radius: 24px;
    max-width: 550px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(99, 102, 241, 0.1);
    position: relative;
    border: 1px solid var(--border-color);
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-base);
}

.close:hover {
    color: var(--text-color);
}

/* Welcome Modal */
.modal-large {
    max-width: 600px;
}

.welcome-message {
    padding: 1.5rem 0;
    line-height: 1.8;
    color: var(--text-color);
}

.welcome-message p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.welcome-message p:last-child {
    margin-bottom: 0;
}

.welcome-message strong {
    color: var(--primary-color);
    font-weight: 600;
}

.modal-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Toast */
.toast {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1.25rem 2rem;
    background: var(--secondary-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(99, 102, 241, 0.2);
    z-index: 3000;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.toast.success {
    background: var(--bg-gradient-cool);
    background-size: 200% 200%;
    box-shadow: var(--shadow-xl), var(--shadow-secondary);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1), gradientShift 3s ease infinite;
}

.toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: var(--shadow-xl), 0 8px 32px rgba(239, 68, 68, 0.4);
}

.toast.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: var(--shadow-xl), 0 8px 32px rgba(59, 130, 246, 0.4);
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading */
.loading {
    text-align: center;
    padding: 4rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1.5rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-container p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.no-results {
    text-align: center;
    padding: 4rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Profile Section */
/* Profile Photo Styles */
.profile-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.profile-photo-container {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.profile-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient);
    color: white;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.placeholder-text {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
}

.profile-photo-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.photo-option-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.btn-danger {
    background: var(--error-color);
    color: white;
    border: 2px solid var(--error-color);
}

.btn-danger:hover {
    background: #b71c1c;
    border-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
}

/* Avatar Selector Modal */
.avatar-modal-content {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.avatar-selector-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.avatar-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 1rem;
}

.avatar-tab:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.avatar-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.avatar-section {
    padding: 1rem 0;
}

/* Avatars Grid */
.avatars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
    max-height: 400px;
    overflow-y: auto;
}

.avatar-option {
    aspect-ratio: 1;
    border-radius: 16px;
    border: 3px solid var(--border-color);
    background: var(--bg-light);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.avatar-option:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-colorful);
    background: rgba(99, 102, 241, 0.1);
}

.avatar-option.selected {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: var(--shadow-colorful);
    transform: scale(1.1);
}

.avatar-option.selected::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.avatar-emoji {
    font-size: 3rem;
    line-height: 1;
    transition: transform var(--transition-base);
}

.avatar-option:hover .avatar-emoji {
    transform: scale(1.1);
}

/* Custom Upload Section */
.custom-upload-area {
    padding: 1rem 0;
}

.upload-zone {
    border: 3px dashed var(--border-primary);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--bg-light);
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.upload-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.profile-section {
    margin: 3rem 0;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.profile-card {
    background: white;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--bg-gradient);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.profile-card h2 {
    margin-bottom: 2rem;
    font-weight: 800;
}

.profile-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    margin-bottom: -2px;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    margin-bottom: 2rem;
    font-weight: 800;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-container {
    max-width: 850px;
    margin: 0 auto;
    background: white;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.auction-form-section {
    margin: 2.5rem 0;
}

/* ==========================================
   PREMIUM QR SCANNER SECTION STYLES
   ========================================== */
.qr-scanner-section {
    margin-bottom: 2.5rem;
    padding: 0;
    background: linear-gradient(145deg, #1a1207 0%, #2d1f0a 50%, #1a1207 100%);
    border-radius: 24px;
    border: 1px solid rgba(249, 115, 22, 0.3);
    overflow: hidden;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(249, 115, 22, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.qr-scanner-header {
    text-align: center;
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.15) 0%, transparent 100%);
    border-bottom: 1px solid rgba(249, 115, 22, 0.15);
}

.qr-scanner-header h3 {
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.qr-scanner-header h3 .qr-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.qr-scanner-hint {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

.qr-scanner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    position: relative;
}

/* Scanner Mode Tabs */
.qr-scanner-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 12px;
}

.qr-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-tab:hover {
    color: #fff;
    background: rgba(249, 115, 22, 0.2);
}

.qr-tab.active {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* Upload Section */
.qr-upload-section {
    width: 100%;
    max-width: 400px;
}

.qr-upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border: 2px dashed rgba(249, 115, 22, 0.4);
    border-radius: 16px;
    background: rgba(249, 115, 22, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-upload-dropzone:hover,
.qr-upload-dropzone.dragover {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.1);
    transform: scale(1.02);
}

.qr-upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.qr-upload-text {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.qr-upload-hint {
    color: #64748b;
    font-size: 0.85rem;
}

.qr-upload-preview {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(249, 115, 22, 0.3);
}

.qr-upload-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.qr-clear-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qr-clear-btn:hover {
    background: #ef4444;
    transform: scale(1.1);
}

/* Camera Section */
.qr-camera-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hidden temp element for file scanning */
#qr-reader-file-temp {
    display: none !important;
}

/* Scanner Viewport */
.qr-scanner-viewport {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow:
        0 0 0 4px rgba(249, 115, 22, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 60px rgba(249, 115, 22, 0.1);
}

/* Scanner Frame Corners */
.qr-scanner-viewport::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 3px solid transparent;
    border-radius: 16px;
    background: linear-gradient(135deg, #f97316, #fbbf24) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 10;
    pointer-events: none;
    opacity: 0.6;
}

/* Corner Markers */
.qr-scanner-corners {
    position: absolute;
    inset: 15px;
    z-index: 11;
    pointer-events: none;
}

.qr-scanner-corners::before,
.qr-scanner-corners::after,
.qr-scanner-corners span::before,
.qr-scanner-corners span::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 4px solid #f97316;
}

.qr-scanner-corners::before {
    top: 0; left: 0;
    border-right: none; border-bottom: none;
    border-radius: 8px 0 0 0;
}

.qr-scanner-corners::after {
    top: 0; right: 0;
    border-left: none; border-bottom: none;
    border-radius: 0 8px 0 0;
}

.qr-scanner-corners span::before {
    bottom: 0; left: 0;
    border-right: none; border-top: none;
    border-radius: 0 0 0 8px;
}

.qr-scanner-corners span::after {
    bottom: 0; right: 0;
    border-left: none; border-top: none;
    border-radius: 0 0 8px 0;
}

/* Scanning Line Animation */
.qr-scanner-line {
    position: absolute;
    left: 25px;
    right: 25px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f97316, #fbbf24, #f97316, transparent);
    border-radius: 2px;
    z-index: 12;
    box-shadow: 0 0 20px #f97316, 0 0 40px #fbbf24;
    animation: scanLine 2.5s ease-in-out infinite;
    opacity: 0;
}

.qr-scanner-viewport.scanning .qr-scanner-line {
    opacity: 1;
}

@keyframes scanLine {
    0% { top: 25px; }
    50% { top: calc(100% - 28px); }
    100% { top: 25px; }
}

/* Pulse Effect on Corners when scanning */
.qr-scanner-viewport.scanning .qr-scanner-corners::before,
.qr-scanner-viewport.scanning .qr-scanner-corners::after,
.qr-scanner-viewport.scanning .qr-scanner-corners span::before,
.qr-scanner-viewport.scanning .qr-scanner-corners span::after {
    animation: cornerPulse 1.5s ease-in-out infinite;
}

@keyframes cornerPulse {
    0%, 100% { border-color: #f97316; }
    50% { border-color: #fbbf24; }
}

#qr-reader {
    width: 100% !important;
    height: 100% !important;
    border-radius: 16px;
    overflow: hidden;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

#qr-reader video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

/* Hide default html5-qrcode UI elements */
#qr-reader #qr-reader__scan_region {
    min-height: unset !important;
}

#qr-reader #qr-reader__dashboard {
    display: none !important;
}

#qr-reader #qr-reader__header_message,
#qr-reader #qr-reader__status_span {
    display: none !important;
}

#qr-reader img[alt="Info icon"] {
    display: none !important;
}

/* Scanner Actions */
.qr-scanner-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.qr-scanner-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.qr-scanner-btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
}

.qr-scanner-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.5);
}

.qr-scanner-btn-primary:active {
    transform: translateY(0);
}

.qr-scanner-btn-stop {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.qr-scanner-btn-stop:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.5);
}

.qr-scanner-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.qr-scanner-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.qr-scanner-btn .btn-icon {
    font-size: 1.25rem;
}

/* Scanner Status */
.qr-scanner-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 50px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.qr-scanner-status.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.qr-scanner-status .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
}

.qr-scanner-status.active .status-dot {
    animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Success Result */
#qr-reader-results {
    width: 100%;
    max-width: 400px;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    text-align: center;
    animation: resultSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes resultSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.qr-result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.qr-result-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.qr-result-title {
    color: #10b981;
    font-size: 1.1rem;
    font-weight: 700;
}

#qr-scanned-data {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 0.75rem;
    word-break: break-word;
}

/* Scanner Features List */
.qr-scanner-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.qr-feature-item .feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(249, 115, 22, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Camera Selection */
.qr-camera-select {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qr-camera-select label {
    color: #94a3b8;
    font-size: 0.9rem;
}

.qr-camera-select select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.qr-camera-select select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Scanner Placeholder */
.qr-scanner-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
    z-index: 5;
    transition: opacity 0.3s ease;
}

.qr-scanner-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
}

.qr-placeholder-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.4);
}

.qr-placeholder-text {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.qr-placeholder-hint {
    color: #64748b;
    font-size: 0.9rem;
}

/* Product Info Section */
.qr-scanner-info {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 16px;
}

.qr-info-title {
    color: #f97316;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.qr-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.qr-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #d1d5db;
    font-size: 0.8rem;
    white-space: nowrap;
}

.qr-info-item span {
    font-size: 1rem;
}

/* Dark mode adjustments */
[data-theme="dark"] .qr-scanner-section {
    background: linear-gradient(145deg, #1a0f07 0%, #2d1a0a 50%, #1a0f07 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .qr-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .qr-scanner-section {
        border-radius: 16px;
    }

    .qr-scanner-header {
        padding: 1.5rem 1rem 1rem;
    }

    .qr-scanner-header h3 {
        font-size: 1.35rem;
    }

    .qr-scanner-container {
        padding: 1.5rem 1rem;
    }

    .qr-scanner-viewport {
        max-width: 300px;
    }

    .qr-scanner-actions {
        flex-direction: column;
        width: 100%;
    }

    .qr-scanner-btn {
        width: 100%;
        justify-content: center;
    }

    .qr-scanner-features {
        grid-template-columns: 1fr;
    }

    .qr-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .qr-info-item {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }
}

/* Biometric Capture Styles */
.biometric-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    transition: all var(--transition-base);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.biometric-status.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

.biometric-status.capturing {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    color: var(--info-color);
    border: 2px solid var(--info-color);
    animation: pulse-capture 1.5s infinite;
}

.biometric-status.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    color: var(--error-color);
    border: 2px solid var(--error-color);
}

@keyframes pulse-capture {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

#captureBiometric {
    transition: all var(--transition-base);
}

#captureBiometric:hover {
    transform: translateY(-2px);
}

#captureBiometric.captured {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    border-color: transparent;
}

#captureBiometric.captured #biometricIcon {
    animation: success-bounce 0.6s;
}

@keyframes success-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3) rotate(10deg); }
}

/* Camera Capture Modal Styles */
#cameraModal .modal-content {
    max-width: 800px;
}

#videoStream {
    width: 100%;
    max-height: 400px;
    border-radius: 12px;
    background: #000;
    object-fit: cover;
}

#cameraPlaceholder {
    text-align: center;
    padding: 3rem;
    background: #1a1a2e;
    border-radius: 12px;
    border: 2px dashed rgba(147, 51, 234, 0.3);
}

/* Image Management Styles for Multiple Images */
.image-preview-item {
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.image-number-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(99, 102, 241, 0.9);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.image-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.image-remove-btn:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

.image-move-controls {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 10;
}

.image-move-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.image-move-btn:hover {
    background: rgba(99, 102, 241, 0.9);
    transform: scale(1.1);
}

.image-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    backdrop-filter: blur(2px);
}

#imagePreviews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

#imagePreviewContainer {
    margin-top: 1rem;
}

.captured-image-preview {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    vertical-align: top;
}

.captured-image-preview img {
    max-width: 150px;
    max-height: 100px;
    border-radius: 8px;
    border: 2px solid var(--success-color);
    object-fit: cover;
}

.captured-image-preview small {
    display: block;
    margin-top: 0.25rem;
    color: var(--success-color);
    font-weight: 600;
}

.capture-step {
    transition: all 0.3s ease;
}

.capture-step.completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    border: 2px solid var(--success-color);
}

.capture-step.active {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(126, 34, 206, 0.2));
    border: 2px solid var(--primary-color);
}

#captureControls {
    text-align: center;
    margin-top: 1.5rem;
}

#captureControls button {
    margin: 0 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav-container {
        padding: 0 1rem;
        height: 70px;
    }

    .nav-brand h1 {
        font-size: 1.5rem;
    }

    .brand-tagline {
        font-size: 0.6rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        display: none;
        gap: 1rem;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-link {
        width: 100%;
        padding: 1rem;
        justify-content: flex-start;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        margin-top: 0.5rem;
        margin-left: 1rem;
        display: none;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .nav-auth {
        flex-direction: column;
        width: 100%;
    }

    .nav-auth .btn {
        width: 100%;
    }

    .user-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0.5rem;
        display: none;
    }

    .nav-user.active .user-dropdown {
        display: block;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .carousel-container {
        height: 300px;
    }

    .carousel-overlay h2 {
        font-size: 1.5rem;
    }

    .carousel-overlay p {
        font-size: 1rem;
    }

    .auction-detail-main {
        grid-template-columns: 1fr;
    }

    .auction-info {
        position: relative; /* Remove sticky on mobile */
        top: auto;
    }

    .auction-list-item {
        grid-template-columns: 1fr;
    }

    .auction-list-image {
        width: 100%;
        height: 250px;
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-input,
    .filter-select {
        width: 100%;
    }

    .search-box {
        flex-direction: column;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .auctions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .auction-stats {
        grid-template-columns: 1fr;
    }

    .categories-section h2,
    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* Payments Section Styles */
.payments-section {
    padding: 4rem 0;
    min-height: 80vh;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Payment Tabs */
.payment-tabs-container {
    margin: 2.5rem 0 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.payment-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.payment-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.payment-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.payment-tab:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary-color);
    border-color: var(--border-primary);
    transform: translateY(-2px);
}

.payment-tab:hover::before {
    transform: scaleX(1);
}

.payment-tab.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm), 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.payment-tab.active::before {
    transform: scaleX(1);
    background: var(--bg-gradient);
}

.tab-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.tab-label {
    font-size: 1rem;
    font-weight: 600;
}

.tab-count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.payment-tab.active .tab-count {
    background: var(--primary-dark);
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.5);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* ========================================
   PREMIUM INVOICE CARD STYLES
   Compact Design for Half A4 Paper
   ======================================== */

.invoice-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.08);
    transition: all 0.3s ease;
    position: relative;
    max-width: 520px;
    font-size: 12px;
}

.invoice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
}

.invoice-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.12);
}

/* Invoice Brand Header - Compact */
.invoice-brand-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 0.625rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invoice-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.invoice-brand-logo .logo-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.invoice-brand-logo .logo-text {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.invoice-brand-logo .logo-subtitle {
    font-size: 0.5rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.invoice-number-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
}

/* Invoice Main Header - Compact */
.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(6, 182, 212, 0.02) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
    gap: 0.75rem;
}

.invoice-item-info {
    display: flex;
    gap: 0.75rem;
    flex: 1;
}

.invoice-item-image {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    flex-shrink: 0;
}

.invoice-item-image:hover {
    transform: scale(1.05);
}

.invoice-item-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.invoice-item-details h3 {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.invoice-meta {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.invoice-id {
    color: #6366f1;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.invoice-id::before {
    content: '#';
    font-weight: 800;
}

.invoice-date {
    color: #64748b;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.invoice-date::before {
    content: '📅';
    font-size: 0.6rem;
}

.invoice-auction-link {
    color: #06b6d4;
    font-size: 0.65rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.invoice-auction-link:hover {
    color: #6366f1;
}

.invoice-auction-link::before {
    content: '🔗';
    font-size: 0.6rem;
}

.invoice-status {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.375rem;
}

/* Status Badges - Compact */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-pending {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
    border: 1px solid #f59e0b;
}

.status-pending::before {
    content: '⏳';
    font-size: 0.55rem;
}

.status-paid {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #047857;
    border: 1px solid #10b981;
}

.status-paid::before {
    content: '✅';
    font-size: 0.55rem;
}

.status-failed {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #b91c1c;
    border: 1px solid #ef4444;
}

.status-failed::before {
    content: '❌';
    font-size: 0.55rem;
}

/* Invoice Body - Compact */
.invoice-body {
    padding: 0.875rem 1rem;
}

/* Invoice Content Grid - Compact */
.invoice-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0.875rem;
}

/* Invoice Breakdown - Compact */
.invoice-breakdown {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.invoice-breakdown-header {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #cbd5e1;
}

.invoice-breakdown-header h4 {
    font-size: 0.7rem;
    font-weight: 700;
    color: #334155;
    margin: 0;
}

.invoice-breakdown-header .icon {
    font-size: 0.75rem;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.7rem;
}

.invoice-row:last-child {
    border-bottom: none;
}

.invoice-row .label {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.invoice-row .value {
    font-weight: 600;
    color: #1e293b;
}

.invoice-row.total {
    margin-top: 0.375rem;
    padding-top: 0.5rem;
    border-top: 2px solid #6366f1;
    border-bottom: none;
    font-size: 0.8rem;
}

.invoice-row.total .label {
    color: #1e293b;
    font-weight: 700;
}

.invoice-row.total .value {
    color: #6366f1;
    font-weight: 800;
    font-size: 0.95rem;
}

/* Cashback Styles on Invoice */
.invoice-row.cashback {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    margin: 0.25rem -0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.invoice-row.cashback .label {
    color: #10b981;
    font-weight: 600;
}

.cashback-value {
    color: #10b981 !important;
    font-weight: 700 !important;
}

.invoice-row.pending-cashback {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.1), rgba(251, 191, 36, 0.05));
    margin: 0.25rem -0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px dashed rgba(255, 102, 0, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.invoice-row.pending-cashback:hover {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.15), rgba(251, 191, 36, 0.1));
    border-color: rgba(255, 102, 0, 0.6);
}

.invoice-row.pending-cashback .label {
    color: #ff6600;
    font-weight: 600;
}

.pending-cashback-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pending-cashback-value .cashback-amount {
    color: #ff6600;
    font-weight: 700;
}

.apply-cashback-btn {
    background: linear-gradient(135deg, #ff6600, #fbbf24);
    border: none;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.apply-cashback-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(255, 102, 0, 0.4);
}

/* QR Code Section - Compact */
.invoice-qr-section {
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    padding: 0.625rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.invoice-qr-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
}

.qr-section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.qr-section-header h4 {
    font-size: 0.7rem;
    font-weight: 700;
    color: #334155;
    margin: 0;
}

.qr-section-header .icon {
    font-size: 0.75rem;
}

.qr-code-wrapper {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 0.375rem;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}

.qr-code-image {
    width: 80px;
    height: 80px;
    border: 2px solid white;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
    background: white;
    padding: 0.25rem;
}

.qr-code-image:hover {
    transform: scale(1.05);
}

.qr-product-info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
}

.qr-product-name {
    font-size: 0.6rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.qr-auction-id {
    font-size: 0.5rem;
    color: #6366f1;
    font-weight: 500;
    margin-bottom: 0.125rem;
}

.qr-code-hint {
    color: #64748b;
    font-size: 0.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.qr-error-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 6px;
    color: #64748b;
}

.qr-error-placeholder span {
    font-size: 1.5rem;
    opacity: 0.5;
}

.qr-error-placeholder small {
    font-size: 0.5rem;
    margin-top: 0.25rem;
}

.qr-code-placeholder {
    padding: 1rem;
    color: #64748b;
    text-align: center;
}

.qr-loading-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.qr-loading-text {
    font-size: 0.65rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #475569;
}

.qr-code-placeholder small {
    font-size: 0.55rem;
    color: #94a3b8;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.qr-code-hint::before {
    content: '📱';
    font-size: 0.5rem;
}

/* Invoice Actions - Compact */
.invoice-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.invoice-actions {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.invoice-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.invoice-action-btn.primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.invoice-action-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.invoice-action-btn.secondary {
    background: white;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.invoice-action-btn.secondary:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.invoice-action-btn.print {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
}

.invoice-action-btn.print:hover {
    background: linear-gradient(135deg, #1e293b, #334155);
}

/* Invoice Paid Info - Compact */
.invoice-paid-info {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 6px;
    color: #047857;
    font-weight: 600;
    font-size: 0.6rem;
    border: 1px solid #10b981;
}

.invoice-paid-info::before {
    content: '✅';
    font-size: 0.7rem;
}

/* Invoice Payment Method Badge - Compact */
.invoice-payment-method {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    color: #6366f1;
    font-size: 0.55rem;
    font-weight: 600;
}

/* Invoice Footer - Compact */
.invoice-footer {
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.55rem;
    color: #64748b;
}

.invoice-footer-left {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.invoice-footer-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.invoice-watermark {
    opacity: 0.5;
    font-weight: 600;
}

/* Print Styles for Half A4 */
@media print {
    .invoice-card {
        box-shadow: none !important;
        border: 1px solid #cbd5e1 !important;
        page-break-inside: avoid;
        max-width: 100% !important;
        width: 148mm !important;
        margin: 0 auto !important;
    }

    .invoice-card::before {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .invoice-actions-bar {
        display: none !important;
    }

    .invoice-brand-header,
    .invoice-qr-section,
    .status-badge,
    .invoice-breakdown {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .invoice-action-btn {
        display: none !important;
    }

    @page {
        size: A4;
        margin: 10mm;
    }
}

/* Responsive Invoice Card */
@media (max-width: 768px) {
    .invoice-content-grid {
        grid-template-columns: 1fr;
    }

    .invoice-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .invoice-status {
        align-items: flex-start;
        width: 100%;
    }

    .invoice-item-info {
        flex-direction: column;
        text-align: center;
    }

    .invoice-item-image {
        margin: 0 auto;
    }

    .invoice-item-details {
        align-items: center;
    }

    .invoice-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .invoice-actions {
        justify-content: center;
    }

    .invoice-brand-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ============================================
   PREMIUM INVOICE CARD - NEW DESIGN
   ============================================ */

.premium-invoice-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    max-width: 600px;
}

.premium-invoice-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899, #6366f1);
    background-size: 300% 100%;
    animation: gradientShift 4s ease infinite;
}

/* Premium Invoice Header */
.premium-invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.invoice-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.5));
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-tag {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.invoice-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.5rem 0.85rem;
    border-radius: 20px;
}

.badge-icon {
    font-size: 0.85rem;
}

.badge-text {
    color: #a5b4fc;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'SF Mono', monospace;
}

/* Product Showcase Section */
.product-showcase {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
}

.product-image-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image-wrapper:hover .product-image {
    transform: scale(1.1);
}

.product-image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.fallback-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image-wrapper:hover .image-overlay {
    opacity: 1;
}

.view-auction-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    text-decoration: none;
    backdrop-filter: blur(4px);
}

.view-auction-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Product Details */
.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-name {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.meta-icon {
    font-size: 0.85rem;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.premium-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.premium-status-badge .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.premium-status-badge.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.premium-status-badge.status-pending .status-dot {
    background: #fbbf24;
}

.premium-status-badge.status-paid {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.premium-status-badge.status-paid .status-dot {
    background: #22c55e;
}

.premium-status-badge.status-failed {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.premium-status-badge.status-failed .status-dot {
    background: #ef4444;
}

.payment-method-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.35rem 0.7rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* Premium Price Section */
.premium-price-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.2);
}

.price-breakdown-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1rem;
}

.breakdown-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-icon {
    font-size: 1rem;
}

.breakdown-header h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.breakdown-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
}

.row-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.row-icon {
    font-size: 0.85rem;
    opacity: 0.8;
}

.row-value {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.breakdown-row.cashback-row {
    background: rgba(34, 197, 94, 0.1);
    margin: 0 -0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
}

.breakdown-row.cashback-row .row-value {
    color: #22c55e;
}

.breakdown-row.pending-row {
    background: rgba(245, 158, 11, 0.1);
    margin: 0 -0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.breakdown-row.pending-row:hover {
    background: rgba(245, 158, 11, 0.2);
}

.breakdown-row.pending-row .row-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fbbf24;
}

.apply-btn {
    background: #fbbf24;
    color: #000;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.breakdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid rgba(99, 102, 241, 0.3);
}

.total-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
}

.total-value {
    color: #22c55e;
    font-size: 1.35rem;
    font-weight: 800;
}

/* QR Code Card */
.qr-code-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 130px;
}

.qr-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.qr-icon {
    font-size: 0.9rem;
}

.qr-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 600;
}

.qr-image-container {
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
    margin-bottom: 0.5rem;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6366f1;
}

.qr-hint {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6rem;
    text-align: center;
    margin: 0;
}

.qr-generating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1rem;
}

.generating-icon {
    font-size: 1.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.qr-generating small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
}

/* Premium Actions Bar */
.premium-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.action-btn .btn-icon {
    font-size: 0.9rem;
}

.action-btn.pay-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.action-btn.pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.action-btn.print-btn,
.action-btn.download-btn {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn.print-btn:hover,
.action-btn.download-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.paid-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    padding: 0.5rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Premium Invoice Footer */
.premium-invoice-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
}

.footer-security {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand .brand-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-brand .year {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
}

/* Responsive Premium Invoice */
@media (max-width: 640px) {
    .premium-invoice-card {
        max-width: 100%;
    }

    .product-showcase {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-image-wrapper {
        width: 180px;
        height: 180px;
    }

    .product-meta {
        justify-content: center;
    }

    .status-row {
        justify-content: center;
    }

    .premium-price-section {
        grid-template-columns: 1fr;
    }

    .qr-code-card {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .qr-header {
        margin-bottom: 0;
    }

    .premium-actions-bar {
        flex-direction: column;
        gap: 0.75rem;
    }

    .action-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Payment Method Modal Styles */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.payment-method-btn {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.payment-method-btn:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.payment-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.payment-method-info h3 {
    margin-bottom: 0.25rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.payment-method-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.invoice-summary {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--text-color);
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.2rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--border-light);
    color: var(--primary-color);
}

/* Payment Modal Styles */
.payment-modal-content {
    background: white;
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    margin: 2% auto;
    padding: 0;
    border-radius: 32px;
    max-width: 700px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(99, 102, 241, 0.1);
    position: relative;
    border: 1px solid var(--border-color);
}

.payment-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--bg-gradient);
    background-size: 200% 200%;
    border-radius: 32px 32px 0 0;
    animation: gradientShift 3s ease infinite;
}

.payment-modal-header {
    text-align: center;
    padding: 3rem 3rem 2rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.1);
    position: relative;
}

.payment-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
}

.payment-modal-header h2 {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.payment-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.payment-modal-body {
    padding: 2.5rem 3rem;
}

.payment-invoice-summary {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    border: 2px solid rgba(99, 102, 241, 0.1);
    box-shadow: var(--shadow-sm);
}

.payment-invoice-summary h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-invoice-summary .summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
}

.payment-invoice-summary .summary-item:last-child {
    border-bottom: none;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--border-light);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.payment-methods-section {
    margin-bottom: 2.5rem;
}

.payment-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--bg-gradient);
    border-radius: 2px;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.payment-method-option {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.payment-method-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-gradient);
    background-size: 200% 200%;
    transform: scaleX(0);
    transition: transform var(--transition-base);
    animation: gradientShift 3s ease infinite;
}

.payment-method-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--shadow-primary);
}

.payment-method-option:hover::before {
    transform: scaleX(1);
}

.payment-method-option.selected {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: var(--shadow-md), var(--shadow-colorful);
}

.payment-method-option.selected::before {
    transform: scaleX(1);
}

.payment-method-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.payment-method-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.payment-method-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.payment-form-container {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 2rem;
    border: 2px solid var(--border-primary);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.payment-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient-warm);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.payment-form-container .form-group {
    margin-bottom: 1.75rem;
}

.payment-form-container .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.payment-form-container .form-group .required {
    color: var(--error-color);
    font-weight: 700;
}

.payment-form-container .form-group .optional {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.85rem;
}

.payment-form-container .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.payment-form-container .input-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.25rem;
    z-index: 1;
    pointer-events: none;
}

.payment-form-container .input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all var(--transition-base);
    background: white;
    color: var(--text-color);
}

.payment-form-container .input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--shadow-sm);
    background: white;
}

.payment-form-container .input-wrapper input::placeholder {
    color: var(--text-light);
}

.payment-form-container .card-brand-icon {
    position: absolute;
    right: 1rem;
    width: 40px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.payment-form-container .card-brand-icon.visible {
    opacity: 1;
}

.payment-form-container .card-brand-icon.visa {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32'%3E%3Crect fill='%231A1F71' width='48' height='32' rx='4'/%3E%3Cpath fill='%23FFFFFF' d='M18 10h12v12H18z'/%3E%3C/svg%3E");
}

.payment-form-container .card-brand-icon.mastercard {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32'%3E%3Crect fill='%23EB001B' width='48' height='32' rx='4'/%3E%3Ccircle fill='%23F79E1B' cx='16' cy='16' r='8'/%3E%3C/svg%3E");
}

.payment-form-container .card-brand-icon.amex {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32'%3E%3Crect fill='%230066CC' width='48' height='32' rx='4'/%3E%3Cpath fill='%23FFFFFF' d='M12 12h24v8H12z'/%3E%3C/svg%3E");
}

.payment-form-container .error-message {
    display: block;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.payment-form-container .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .payment-form-container .form-row {
        grid-template-columns: 1fr;
    }
}

/* FIB Bank Form Styles */
.fib-info-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #1a5f7a 0%, #2e8b57 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: white;
}

.fib-info-banner .fib-icon {
    font-size: 2rem;
}

.fib-info-banner p {
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
}

/* FIB Receive Account Box */
.fib-receive-account {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.fib-receive-account .receive-label {
    font-size: 0.85rem;
    color: #0369a1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.fib-receive-account .receive-number-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 0.5rem 0;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
}

.fib-receive-account .receive-icon {
    font-size: 1.5rem;
}

.fib-receive-account .receive-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0c4a6e;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.fib-receive-account .copy-btn {
    background: #0ea5e9;
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.fib-receive-account .copy-btn:hover {
    background: #0284c7;
    transform: scale(1.05);
}

.fib-receive-account .copy-btn:active {
    transform: scale(0.95);
}

.fib-receive-account .receive-hint {
    font-size: 0.8rem;
    color: #0369a1;
    font-weight: 500;
}

.input-hint {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

.fib-instructions {
    background: rgba(26, 95, 122, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    border-left: 4px solid #1a5f7a;
}

.fib-instructions h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a5f7a;
    margin-bottom: 0.75rem;
}

.fib-instructions ol {
    margin: 0;
    padding-left: 1.25rem;
}

.fib-instructions ol li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.fib-instructions ol li strong {
    color: #0c4a6e;
    font-weight: 700;
}

/* FIB Request Sent Modal */
.fib-request-modal {
    text-align: center;
    padding: 2.5rem;
    max-width: 420px;
}

.fib-request-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.fib-request-modal h2 {
    color: #059669;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.fib-request-message {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.fib-request-details {
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.fib-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #bbf7d0;
}

.fib-detail-row:last-child {
    border-bottom: none;
}

.fib-detail-row .label {
    color: #166534;
    font-weight: 500;
}

.fib-detail-row .value {
    color: #14532d;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.fib-request-instructions {
    background: #fefce8;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.fib-request-instructions p {
    margin: 0.5rem 0;
    color: #713f12;
    font-size: 0.95rem;
}

.fib-request-instructions strong {
    color: #854d0e;
}

.payment-info-section {
    margin-top: 2rem;
}

.info-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(6, 182, 212, 0.03));
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(99, 102, 241, 0.15);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.info-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 0.5rem 0;
    color: var(--text-color);
    font-weight: 500;
}

.payment-modal-footer {
    padding: 2.5rem 3rem;
    border-top: 2px solid var(--border-primary);
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(99, 102, 241, 0.02) 100%);
    border-radius: 0 0 32px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.05);
}

.payment-total-display {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.total-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.total-amount {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 2px 12px var(--primary-glow);
    filter: drop-shadow(0 0 6px var(--primary-glow));
}

.payment-actions {
    display: flex;
    gap: 1rem;
}

.payment-security {
    text-align: center;
    padding: 1.5rem 3rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-top: 1px solid var(--border-light);
    background: rgba(99, 102, 241, 0.02);
    font-weight: 500;
}

.payment-security .security-icon {
    font-size: 1.25rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.security-icon {
    font-size: 1.1rem;
}

.card-brand-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card-brand-icon.visible {
    opacity: 1;
}

.card-brand-icon.visa {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32'%3E%3Crect fill='%231A1F71' width='48' height='32' rx='4'/%3E%3Cpath fill='%23FFFFFF' d='M20 12h-4l-2.5 8h4l2.5-8zm8 0l-3 8h-4l3-8h4zm6 5.5c0-1.5-1-2.5-2.5-2.5-1.5 0-2.5 1-2.5 2.5 0 1.5 1 2.5 2.5 2.5 1.5 0 2.5-1 2.5-2.5zm-2.5-5.5c-2 0-3.5 1-4.5 2.5l-1.5 5.5h4l.5-1.5c.5-1 1-1.5 2-1.5.5 0 1 .5 1 1.5 0 1-1 1.5-2 1.5-1.5 0-2.5-.5-3-1l-1 2.5c.5.5 1.5 1 3 1 2.5 0 4-1.5 4-3.5 0-2-1.5-3-3.5-3z'/%3E%3C/svg%3E");
}

.card-brand-icon.mastercard {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32'%3E%3Crect fill='%23EB001B' width='24' height='32' rx='4'/%3E%3Crect fill='%23F79E1B' x='24' width='24' height='32' rx='4'/%3E%3C/svg%3E");
}

.card-brand-icon.amex {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32'%3E%3Crect fill='%2300659F' width='48' height='32' rx='4'/%3E%3C/svg%3E");
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.optional {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.9em;
}

/* Responsive adjustments for payments */
@media (max-width: 768px) {
    .invoice-header {
        flex-direction: column;
        gap: 1rem;
    }

    .invoice-item-info {
        flex-direction: column;
    }

    .invoice-item-image {
        width: 80px;
        height: 80px;
    }

    .payment-method-btn {
        padding: 1.25rem;
    }

    .payment-icon {
        font-size: 2rem;
    }

    .payment-modal-content {
        margin: 5% auto;
        max-width: 95%;
        padding: 0;
    }

    .payment-modal-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .payment-modal-body {
        padding: 1.5rem;
    }

    .payment-modal-footer {
        padding: 1.5rem;
        flex-direction: column;
        align-items: stretch;
    }

    .payment-actions {
        width: 100%;
    }

    .payment-actions .btn {
        flex: 1;
    }

    .payment-methods-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
    }

    .payment-tabs {
        flex-direction: column;
    }

    .payment-tab {
        width: 100%;
        justify-content: space-between;
    }

    .payment-tabs-container {
        padding: 0.75rem;
    }

    .payment-modal-content {
        margin: 5% auto;
        width: 98%;
        max-height: 90vh;
    }

    .payment-modal-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .payment-modal-body {
        padding: 1.5rem;
    }

    .payment-modal-footer {
        padding: 1.5rem;
        flex-direction: column;
        align-items: stretch;
    }

    .payment-total-display {
        width: 100%;
        margin-bottom: 1rem;
    }

    .payment-actions {
        width: 100%;
    }

    .payment-actions .btn {
        flex: 1;
    }
}

/* ============================================
   PREMIUM PAYMENT MODAL STYLES
   ============================================ */

/* Premium Modal Container */
.premium-modal {
    backdrop-filter: blur(8px);
    overflow-y: auto !important;
}

.premium-payment-modal {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 2vh auto;
    display: flex;
    flex-direction: column;
}

.premium-payment-modal .payment-modal-body {
    flex: 1;
    overflow-y: auto;
    max-height: 55vh;
}

.premium-payment-modal::before {
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899, #6366f1) !important;
    height: 3px;
    animation: gradientShift 4s ease infinite;
}

/* Premium Header - Compact */
.premium-header {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2) !important;
    padding: 1rem 1.5rem !important;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.payment-header-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 0;
    flex-shrink: 0;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.payment-icon-large {
    font-size: 2rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 20px rgba(99, 102, 241, 0.5));
}

.premium-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.15rem;
    letter-spacing: -0.5px;
}

.premium-header .payment-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Premium Invoice Summary */
.premium-invoice-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Premium Section */
.premium-section {
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.section-icon {
    font-size: 1.25rem;
}

.premium-section .payment-section-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* Premium Payment Methods Grid */
.premium-payment-methods-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Premium Payment Card */
.premium-payment-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.premium-payment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-payment-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.premium-payment-card:hover::before {
    opacity: 1;
}

.premium-payment-card.selected {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.premium-payment-card.popular {
    border-color: rgba(234, 179, 8, 0.4);
}

.premium-payment-card.popular.selected {
    border-color: #eab308;
    box-shadow: 0 0 30px rgba(234, 179, 8, 0.2);
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background: linear-gradient(135deg, #eab308, #f59e0b);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 0 0 8px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Payment Card Header */
.payment-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.payment-method-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.premium-payment-card .payment-method-icon {
    font-size: 1.75rem;
}

.payment-method-info {
    flex: 1;
}

.premium-payment-card .payment-method-name {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.premium-payment-card .payment-method-description {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Check Circle */
.payment-check-circle {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.payment-check-circle svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    color: #fff;
}

.premium-payment-card.selected .payment-check-circle {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
}

.premium-payment-card.selected .payment-check-circle svg {
    opacity: 1;
    transform: scale(1);
}

/* Payment Features */
.payment-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.feature-tag {
    background: rgba(99, 102, 241, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Premium FIB Form Container */
.premium-form-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.premium-form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.form-header-icon {
    font-size: 2rem;
}

.form-header-text h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.form-header-text p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* Premium FIB Banner */
.premium-fib-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.fib-banner-icon {
    width: 45px;
    height: 45px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.fib-banner-content h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.fib-banner-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin: 0;
}

/* Premium Receive Card */
.premium-receive-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.receive-card-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.label-icon {
    font-size: 1rem;
}

.receive-number-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.number-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.country-flag {
    font-size: 1.25rem;
}

.receive-number-display .receive-number {
    color: #22c55e;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', monospace;
    letter-spacing: 1px;
}

.premium-copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.premium-copy-btn:hover {
    background: rgba(34, 197, 94, 0.3);
    transform: scale(1.02);
}

.receive-card-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #22c55e;
    font-size: 0.8rem;
    font-weight: 600;
}

.receive-card-badge span {
    background: #22c55e;
    color: #000;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

/* Premium Form Fields */
.premium-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.premium-form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.required-star {
    color: #ef4444;
}

.premium-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 500;
}

.premium-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.premium-input.with-prefix {
    padding-left: 3.5rem;
}

.premium-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.premium-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.premium-form-group .input-hint {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin-top: 0.35rem;
}

/* Premium Instructions */
.premium-instructions {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem;
}

.instructions-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.instructions-icon {
    font-size: 1rem;
}

.instructions-header h4 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.instructions-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.step-number {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.step-text strong {
    color: #22c55e;
}

/* Premium COD Section */
.premium-cod-section {
    margin-top: 1rem;
}

.premium-cod-card {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(234, 179, 8, 0.25);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.cod-icon-wrapper {
    position: relative;
}

.cod-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.cod-icon {
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.cod-content h4 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.35rem 0;
}

.cod-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* COD Features */
.cod-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cod-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem;
}

.cod-feature .feature-icon {
    font-size: 1.5rem;
}

.cod-feature .feature-text {
    display: flex;
    flex-direction: column;
}

.cod-feature .feature-text strong {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.cod-feature .feature-text span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* COD Note */
.cod-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

.note-icon {
    font-size: 1.25rem;
}

.cod-note p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

/* Premium Modal Footer - Compact */
.premium-modal-footer {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-total-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.total-label-wrapper {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.total-icon {
    font-size: 0.9rem;
}

.premium-modal-footer .total-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.total-amount-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
}

.currency-symbol {
    color: #22c55e;
    font-size: 1rem;
    font-weight: 600;
}

.premium-modal-footer .total-amount {
    color: #22c55e;
    font-size: 1.25rem;
    font-weight: 800;
}

/* Premium Actions */
.premium-actions {
    display: flex;
    gap: 0.5rem;
}

.premium-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.submit-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.btn-arrow {
    transition: transform 0.2s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(3px);
}

.premium-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Premium Security Badge */
.premium-security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 20px 20px;
}

.security-icons {
    display: flex;
    gap: 0.35rem;
}

.premium-security-badge .security-icon {
    font-size: 1rem;
}

.security-text {
    display: flex;
    flex-direction: column;
}

.security-main {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
}

.security-sub {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

/* Premium Payment Modal Responsive */
@media (max-width: 640px) {
    .premium-payment-modal {
        margin: 2% auto;
        max-width: 95%;
    }

    .premium-header {
        padding: 2rem 1.5rem 1.5rem !important;
    }

    .payment-modal-body {
        padding: 1.25rem !important;
    }

    .premium-modal-footer {
        flex-direction: column;
        padding: 1.25rem;
    }

    .footer-total-section {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .premium-actions {
        width: 100%;
    }

    .premium-btn {
        flex: 1;
        justify-content: center;
    }

    .instructions-steps {
        grid-template-columns: 1fr;
    }

    .premium-payment-card {
        padding: 1rem;
    }

    .payment-method-icon-wrapper {
        width: 42px;
        height: 42px;
    }
}

/* RTL Support */
[dir="rtl"] .navbar .container {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .nav-auth,
[dir="rtl"] .nav-user {
    flex-direction: row-reverse;
}

[dir="rtl"] .container {
    direction: rtl;
}

[dir="rtl"] .section-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .btn {
    direction: rtl;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
}

.language-switcher-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all var(--transition-base);
}

.language-switcher-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.language-switcher-btn span {
    font-weight: 600;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 1000;
}

[dir="rtl"] .language-dropdown {
    right: auto;
    left: 0;
}

.language-switcher.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-option:hover {
    background: var(--bg-light);
}

.language-option.active {
    background: var(--primary-color);
    color: white;
}

.language-option:first-child {
    border-radius: 8px 8px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 8px 8px;
}

/* RTL adjustments for forms */
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select {
    text-align: right;
}

[dir="rtl"] .form-group label {
    text-align: right;
}

[dir="rtl"] .search-box {
    flex-direction: row-reverse;
}

[dir="rtl"] .modal-content {
    direction: rtl;
}

/* Enhanced Loading States */
.loading-skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 1rem;
}

.skeleton-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton Loading Placeholders */
.skeleton {
    background: linear-gradient(90deg, var(--bg-light) 25%, rgba(255, 255, 255, 0.5) 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    margin: 0.5rem 0;
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 12px;
}

.skeleton-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
}

/* Toast Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Enhanced Focus States for Accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to Content Link for Accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 8px 0;
}

.skip-to-content:focus {
    top: 0;
}

/* Image Lazy Loading Styles */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
    background: var(--bg-light);
}

img[data-src].loaded {
    opacity: 1;
}

/* Enhanced Button States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Enhanced Form Validation Styles */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-error::before {
    content: '⚠️';
    font-size: 1rem;
}

.form-success {
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-success::before {
    content: '✓';
    font-size: 1rem;
}

input.invalid,
select.invalid,
textarea.invalid {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

input.valid,
select.valid,
textarea.valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: var(--bg-light);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: width 0.3s, background-color 0.3s;
    border-radius: 2px;
}

.password-strength-weak {
    width: 25%;
    background: var(--error-color);
}

.password-strength-medium {
    width: 50%;
    background: var(--warning-color);
}

.password-strength-strong {
    width: 75%;
    background: #ff9800;
}

.password-strength-very-strong {
    width: 100%;
    background: var(--success-color);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .skeleton-card {
        padding: 1rem;
    }

    .toast {
        min-width: calc(100% - 40px);
        max-width: calc(100% - 40px);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .modal,
    .toast {
        display: none !important;
    }

    body {
        background: white;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
    }

    .btn {
        border: 2px solid currentColor;
    }
}

[dir="rtl"] .toast {
    right: auto;
    left: 20px;
}

@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0.5rem;
    }

    .language-switcher-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* ===== MODERN PROFESSIONAL SIGN-UP FORM ===== */

.modern-register-modal {
    max-width: 1000px !important;
    width: 95vw !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    padding: 0 !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    background: #ffffff !important;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: #f0f0f0;
    color: #000;
}

.register-container {
    display: flex;
    height: 100%;
    min-height: 600px;
}

.register-sidebar {
    flex: 0 0 40%;
    background: linear-gradient(135deg, #0f172a 0%, #6366f1 50%, #06b6d4 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 20px 0 0 20px;
    position: relative;
    overflow: hidden;
}

.register-sidebar::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.sidebar-content {
    position: relative;
    z-index: 2;
}

.sidebar-logo {
    margin-bottom: 50px;
}

.sidebar-logo h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.sidebar-logo p {
    font-size: 14px;
    opacity: 0.9;
    letter-spacing: 1px;
}

.benefits-list {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.benefit-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.benefit-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.benefit-text p {
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.4;
}

.sidebar-stats {
    display: flex;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}

.register-form-wrapper {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.form-header p {
    font-size: 14px;
    color: #666;
}

.form-step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.form-group .required {
    color: #d32f2f;
}

.modern-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.modern-input:focus-within {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.modern-input svg {
    color: #6366f1;
    flex-shrink: 0;
}

.modern-input input,
.modern-input textarea {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #000;
    outline: none;
    font-family: inherit;
}

.modern-input input::placeholder,
.modern-input textarea::placeholder {
    color: #999;
}

.modern-input textarea {
    resize: vertical;
    min-height: 80px;
}

.password-input {
    position: relative;
}

.password-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #6366f1;
}

.password-strength {
    margin-top: 8px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength.weak {
    background: #d32f2f;
}

.password-strength.fair {
    background: #ff9800;
}

.password-strength.good {
    background: #4caf50;
}

.password-strength.strong {
    background: #2196f3;
}

.password-requirements {
    margin-top: 12px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: #999;
    font-size: 12px;
}

.requirement-item.met .requirement-icon {
    color: #4caf50;
}

.form-group small {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.modern-actions {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #f97316, #fb923c, #f59e0b);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #000;
    flex: 1;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-success {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    flex: 1;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.form-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 20px;
}

.form-footer .link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-footer .link:hover {
    color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-register-modal {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }

    .register-container {
        flex-direction: column;
        min-height: auto;
    }

    .register-sidebar {
        flex: 0 0 auto;
        padding: 40px 30px;
        border-radius: 0;
        min-height: 300px;
    }

    .sidebar-logo h1 {
        font-size: 36px;
    }

    .register-form-wrapper {
        padding: 40px 30px;
        flex: 1;
    }

    .form-header h2 {
        font-size: 24px;
    }

    .modern-input {
        padding: 10px 12px;
    }

    .modern-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ==========================================
   DARK MODE - SIGN UP / REGISTER FORM
   ========================================== */
[data-theme="dark"] .modern-register-modal {
    background: #1e293b !important;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

[data-theme="dark"] .modal-close-btn {
    color: #94a3b8;
}

[data-theme="dark"] .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

[data-theme="dark"] .register-form-wrapper {
    background: #1e293b;
}

[data-theme="dark"] .form-header h2 {
    color: #f1f5f9;
}

[data-theme="dark"] .form-header p {
    color: #94a3b8;
}

[data-theme="dark"] .step-header {
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .step-title {
    color: #f1f5f9;
}

[data-theme="dark"] .form-group label {
    color: #e2e8f0;
}

[data-theme="dark"] .modern-input {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .modern-input:focus-within {
    background: #1e293b;
    border-color: #6366f1;
}

[data-theme="dark"] .modern-input input,
[data-theme="dark"] .modern-input textarea {
    color: #f1f5f9;
}

[data-theme="dark"] .modern-input input::placeholder,
[data-theme="dark"] .modern-input textarea::placeholder {
    color: #64748b;
}

[data-theme="dark"] .password-toggle {
    color: #94a3b8;
}

[data-theme="dark"] .password-toggle:hover {
    color: #f1f5f9;
}

[data-theme="dark"] .form-hint {
    color: #64748b;
}

[data-theme="dark"] .form-footer {
    color: #94a3b8;
}

[data-theme="dark"] .form-footer .link {
    color: #818cf8;
}

[data-theme="dark"] .form-footer .link:hover {
    color: #a5b4fc;
}

/* Dark mode for regular modal forms */
[data-theme="dark"] .modal-content {
    background: #1e293b !important;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

[data-theme="dark"] .modal-header h2 {
    color: #f1f5f9;
}

[data-theme="dark"] .modal-subtitle {
    color: #94a3b8;
}

[data-theme="dark"] .form-group input[type="text"],
[data-theme="dark"] .form-group input[type="email"],
[data-theme="dark"] .form-group input[type="password"],
[data-theme="dark"] .form-group input[type="number"],
[data-theme="dark"] .form-group input[type="tel"],
[data-theme="dark"] .form-group input[type="datetime-local"],
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
    background: #1e293b !important;
    border-color: #6366f1 !important;
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
    color: #64748b !important;
}

/* ==========================================
   PWA Install Prompt Styles
   ========================================== */
.pwa-install-prompt {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    justify-content: center;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(99, 102, 241, 0.3);
    max-width: 500px;
    width: 100%;
}

.pwa-install-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.pwa-install-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pwa-install-text strong {
    color: white;
    font-size: 1rem;
    font-weight: 700;
}

.pwa-install-text span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.pwa-install-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pwa-install-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.pwa-dismiss-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.pwa-dismiss-btn:hover {
    color: white;
}

@media (max-width: 480px) {
    .pwa-install-content {
        flex-wrap: wrap;
        padding: 15px;
        gap: 10px;
    }

    .pwa-install-icon {
        font-size: 2rem;
    }

    .pwa-install-text {
        flex: 1 1 calc(100% - 80px);
    }

    .pwa-install-text strong {
        font-size: 0.95rem;
    }

    .pwa-install-text span {
        font-size: 0.8rem;
    }

    .pwa-install-btn {
        flex: 1;
        text-align: center;
    }

    .pwa-dismiss-btn {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .pwa-install-content {
        position: relative;
    }
}

/* PWA Standalone Mode Adjustments */
@media (display-mode: standalone) {
    .pwa-install-prompt {
        display: none !important;
    }

    /* Add safe area padding for notched phones */
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .navbar {
        padding-top: env(safe-area-inset-top);
    }
}

/* ============================================
   PREMIUM CASHBACK MODAL STYLES
   ============================================ */
.cashback-modal {
    animation: fadeIn 0.3s ease;
}

.cashback-modal.active .cashback-modal-content {
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.cashback-modal-content {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 28px;
    max-width: 480px;
    width: 100%;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.cashback-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6600, #fbbf24, #10b981, #6366f1);
}

.cashback-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.cashback-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Confetti */
.cashback-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -20px;
    opacity: 0;
    animation: confettiFall 5s ease-in-out infinite;
}

@keyframes confettiFall {
    0% { opacity: 1; top: -20px; transform: rotate(0deg) translateX(0); }
    100% { opacity: 0; top: 100%; transform: rotate(720deg) translateX(100px); }
}

/* Header */
.cashback-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.cashback-trophy {
    font-size: 4rem;
    animation: bounce 1s ease infinite;
    filter: drop-shadow(0 0 20px rgba(255, 193, 7, 0.5));
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cashback-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0 0.25rem;
}

.cashback-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin: 0;
}

.cashback-auction-name {
    color: #fff;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Offer Card */
.cashback-offer-card {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.2), rgba(251, 191, 36, 0.1));
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.cashback-offer-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ff6600, #fbbf24);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.35rem 1rem;
    border-radius: 0 18px 0 12px;
    letter-spacing: 0.5px;
}

.cashback-amount-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.cashback-currency {
    font-size: 2rem;
    font-weight: 700;
    color: #fbbf24;
}

.cashback-amount {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: 0 0 40px rgba(255, 102, 0, 0.5);
}

.cashback-label {
    font-size: 1rem;
    font-weight: 700;
    color: #fbbf24;
    letter-spacing: 2px;
}

.cashback-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-align: center;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.cashback-description strong {
    color: #fff;
}

/* Progress Section */
.cashback-progress-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
}

.cashback-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cashback-progress-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.cashback-progress-count {
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.9rem;
}

.cashback-progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.cashback-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6600, #fbbf24);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.cashback-progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Share Section */
.cashback-share-section {
    margin-bottom: 1.5rem;
}

.cashback-share-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.cashback-share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

/* Premium Share Buttons */
.cashback-share-btn {
    position: relative;
    border: none;
    border-radius: 16px;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.cashback-share-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cashback-share-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.share-btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cashback-share-btn:hover .share-btn-bg {
    opacity: 1;
}

.share-btn-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0.75rem;
    gap: 0.35rem;
}

.share-btn-icon {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.share-btn-icon svg {
    width: 100%;
    height: 100%;
}

.cashback-share-btn:hover .share-btn-icon {
    transform: scale(1.1);
}

.share-btn-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.cashback-share-btn:hover .share-btn-name {
    color: #fff;
}

.share-btn-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 40px;
    height: 40px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.cashback-share-btn.shared .share-btn-check {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cashback-share-btn.shared .share-btn-content {
    opacity: 0.3;
}

.cashback-share-btn.shared {
    pointer-events: none;
    border-color: #10b981;
}

/* Success Status */
.cashback-success {
    display: none;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cashback-success.show {
    display: flex;
}

@keyframes successPop {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.cashback-success-icon {
    width: 48px;
    height: 48px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.cashback-success-content h4 {
    color: #10b981;
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
}

.cashback-success-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Footer Actions */
.cashback-footer {
    display: flex;
    gap: 1rem;
}

.cashback-btn-secondary {
    flex: 1;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cashback-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.cashback-btn-primary {
    flex: 1;
    padding: 1rem;
    border: none;
    background: linear-gradient(135deg, #ff6600, #fbbf24);
    color: #000;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.4);
}

.cashback-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 102, 0, 0.5);
}

/* Responsive */
@media (max-width: 480px) {
    .cashback-modal-content {
        padding: 1.5rem;
        border-radius: 24px 24px 0 0;
        position: fixed;
        bottom: 0;
        max-height: 90vh;
        overflow-y: auto;
    }

    .cashback-share-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cashback-amount {
        font-size: 3rem;
    }

    .cashback-title {
        font-size: 1.5rem;
    }
}


/* ============================================
   🎨 PREMIUM MOBILE APP DESIGN SYSTEM
   Professional & Premium Look and Feel
   ============================================ */

/* ===== REDESIGNED MOBILE BOTTOM NAVIGATION ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    padding-bottom: var(--mobile-safe-area-bottom);
}

[data-theme="dark"] .mobile-bottom-nav {
    background: rgba(15, 23, 42, 0.98);
    border-top-color: rgba(255, 255, 255, 0.08);
}

.mobile-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 8px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.2s ease;
    position: relative;
    min-width: 64px;
    min-height: 56px;
}

.mobile-nav-item::before {
    display: none;
}

.mobile-nav-item.active::before {
    display: none;
}

.mobile-nav-item:active {
    transform: scale(0.9);
    background: rgba(249, 115, 22, 0.06);
}

.mobile-nav-item.active {
    color: #f97316;
    background: rgba(249, 115, 22, 0.1);
}

.mobile-nav-item.active .mobile-nav-icon {
    transform: scale(1.1);
}

.mobile-nav-icon {
    font-size: 1.6rem;
    transition: transform 0.2s ease;
    line-height: 1;
}

.mobile-nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 2px;
}

/* Center Action Button (FAB style) */
.mobile-nav-item.mobile-nav-action {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin-top: -24px;
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.45);
    padding: 0;
    border: 4px solid white;
    min-width: 60px;
}

.mobile-nav-item.mobile-nav-action .mobile-nav-icon {
    font-size: 1.8rem;
}

.mobile-nav-item.mobile-nav-action .mobile-nav-label {
    display: none;
}

.mobile-nav-item.mobile-nav-action:active {
    transform: scale(0.92);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
}

/* Badge on nav items */
.mobile-nav-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    background: var(--error-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }

    /* Add padding to body for bottom nav */
    body {
        padding-bottom: calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-area-bottom));
    }

    /* Hide footer on mobile when bottom nav is present */
    .footer {
        padding-bottom: calc(var(--mobile-bottom-nav-height) + 2rem);
    }
}

/* ===== PREMIUM AUCTION CARDS - MOBILE OPTIMIZED ===== */
@media (max-width: 768px) {
    .auction-card {
        max-width: 100%;
        border-radius: var(--mobile-radius-lg);
        box-shadow: var(--card-shadow-premium);
        margin-bottom: var(--mobile-spacing-md);
        overflow: hidden;
    }

    .auction-card::before {
        height: 3px;
        border-radius: var(--mobile-radius-lg) var(--mobile-radius-lg) 0 0;
    }

    .auction-card:active {
        transform: scale(0.98);
        box-shadow: var(--card-shadow-active);
    }

    .auction-card .auction-image {
        height: 180px;
        border-radius: var(--mobile-radius-lg) var(--mobile-radius-lg) 0 0;
    }

    .auction-card-content {
        padding: var(--mobile-spacing-md);
    }

    .auction-card-content h3 {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: var(--mobile-spacing-sm);
    }

    .auction-stats {
        gap: var(--mobile-spacing-xs);
        margin-bottom: var(--mobile-spacing-md);
    }

    .stat label {
        font-size: 0.7rem;
    }

    .stat span {
        font-size: 0.9rem;
    }
}

/* ===== REDESIGNED BUTTONS - MOBILE ===== */
@media (max-width: 768px) {
    .btn {
        min-height: 52px !important;
        padding: 14px 24px !important;
        font-size: 1rem !important;
        border-radius: 14px !important;
        font-weight: 700 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .btn-primary {
        background: linear-gradient(135deg, #f97316, #fb923c) !important;
        box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4) !important;
    }

    .btn-primary:active {
        transform: scale(0.96) !important;
        box-shadow: 0 3px 10px rgba(249, 115, 22, 0.3) !important;
    }

    .btn-outline {
        border: 2px solid var(--primary-color) !important;
        color: var(--primary-color) !important;
        background: transparent !important;
    }

    .btn-outline:active {
        background: rgba(249, 115, 22, 0.08) !important;
    }

    .btn:active {
        transform: scale(0.96);
    }

    .btn-primary {
        box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
    }

    .btn-primary:active {
        box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
    }

    /* Full width buttons on mobile */
    .btn-block-mobile {
        width: 100%;
        justify-content: center;
    }
}

/* ===== PREMIUM FORM INPUTS - MOBILE ===== */
@media (max-width: 768px) {
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group input[type="number"],
    .form-group input[type="tel"],
    .form-group input[type="datetime-local"],
    .form-group textarea,
    .form-group select {
        min-height: var(--mobile-touch-target);
        padding: 0.875rem 1rem;
        font-size: 16px; /* Prevents iOS zoom */
        border-radius: var(--mobile-radius-md);
        border-width: 2px;
    }

    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: var(--mobile-spacing-xs);
    }
}

/* ===== COMPLETELY REDESIGNED MOBILE LAYOUT (DISABLED – keep desktop layout on all devices) ===== */

/* Mobile-First Base - disabled */
@media (max-width: 768px) {
	/* Intentionally left blank to keep global desktop base styles */
}

/* Premium hero section - mobile overrides disabled */
@media (max-width: 768px) {
	/* Intentionally left blank so hero/carousel use desktop styles */
}

/* Redesigned search section - mobile overrides disabled */
@media (max-width: 768px) {
	/* Intentionally left blank so search section uses desktop styles */
}

/* Redesigned categories section - mobile overrides disabled */
@media (max-width: 768px) {
	/* Intentionally left blank so categories use desktop styles */
}

/* Premium modals - mobile sheet style disabled */
@media (max-width: 768px) {
	/* Intentionally left blank so modals use desktop styles on all devices */
}

/* Premium toast notifications - mobile overrides disabled */
@media (max-width: 768px) {
	/* Intentionally left blank so toasts use desktop styles */
}

/* ===== PREMIUM SKELETON LOADERS ===== */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-light) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        var(--bg-light) 100%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: var(--mobile-radius-sm);
}

[data-theme="dark"] .skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-light) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        var(--bg-light) 100%
    );
    background-size: 200% 100%;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: var(--glass-bg);
    border-radius: var(--mobile-radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow-premium);
}

.skeleton-image {
    width: 100%;
    height: 180px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

/* ===== PREMIUM PULL TO REFRESH INDICATOR ===== */
.pull-to-refresh {
    position: fixed;
    top: var(--mobile-nav-height);
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-md));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow-premium);
    z-index: 100;
    transition: transform 0.3s var(--transition-spring);
}

.pull-to-refresh.visible {
    transform: translateX(-50%) translateY(20px);
}

.pull-to-refresh-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ===== PREMIUM FLOATING ACTION BUTTON ===== */
.fab {
    position: fixed;
    bottom: calc(var(--mobile-bottom-nav-height) + var(--mobile-spacing-lg));
    right: var(--mobile-spacing-md);
    width: 56px;
    height: 56px;
    background: var(--bg-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 99;
}

.fab:active {
    transform: scale(0.9);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.fab:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5);
}

@media (min-width: 769px) {
    .fab {
        display: none;
    }
}

/* ===== PREMIUM SWIPE ACTIONS ===== */
.swipe-container {
    overflow: hidden;
    position: relative;
}

.swipe-content {
    transition: transform 0.3s var(--transition-spring);
}

.swipe-actions {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    transform: translateX(100%);
}

.swipe-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    color: white;
    font-weight: 600;
}

.swipe-action.delete {
    background: var(--error-color);
}

.swipe-action.edit {
    background: var(--primary-color);
}

/* ===== PREMIUM IMAGE LAZY LOADING ===== */
.lazy-image {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

.image-placeholder {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--border-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 2rem;
}

/* ===== PREMIUM HAPTIC FEEDBACK VISUAL ===== */
@keyframes hapticPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.97); }
    100% { transform: scale(1); }
}

.haptic-feedback:active {
    animation: hapticPulse 0.15s ease;
}

/* ===== REDESIGNED SECTION HEADERS - MOBILE ===== */
@media (max-width: 768px) {
    .section-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 16px 16px !important;
        margin-bottom: 0 !important;
    }

    .section-header h2 {
        font-size: 1.35rem !important;
        font-weight: 700 !important;
        margin: 0 !important;
        background: linear-gradient(135deg, #f97316, #3b82f6) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }

    .section-header .view-all {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        padding: 10px 18px !important;
        border-radius: 12px !important;
        background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(59, 130, 246, 0.08)) !important;
        color: var(--primary-color) !important;
        text-decoration: none !important;
    }

    .section-header .view-all:active {
        transform: scale(0.95) !important;
    }

    /* Auctions Section spacing */
    .auctions-section {
        padding: 16px 0 24px !important;
        margin: 0 !important;
    }
}

/* ===== REDESIGNED AUCTION CARDS GRID - MOBILE ===== */
@media (max-width: 768px) {
    .auctions-grid {
        display: grid !important;
        grid-template-columns: 1fr !important; /* Single column for bigger cards */
        gap: 20px !important;
        padding: 0 16px !important;
    }

    .auction-card {
        max-width: 100% !important;
        border-radius: 20px !important;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1) !important;
        margin-bottom: 0 !important;
        overflow: hidden !important;
        background: white !important;
        border: 2px solid transparent !important;
        transition: all 0.2s ease !important;
    }

    .auction-card::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 4px !important;
        background: linear-gradient(90deg, #f97316, #3b82f6) !important;
        border-radius: 20px 20px 0 0 !important;
    }

    .auction-card:active {
        transform: scale(0.98) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    }

    .auction-card .auction-image,
    .auction-image {
        height: 220px !important;
        min-height: 220px !important;
        width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        object-fit: cover !important;
    }

    .auction-card-content {
        padding: 20px !important;
    }

    .auction-card-content h3,
    .auction-card h3 {
        font-size: 1.15rem !important;
        line-height: 1.4 !important;
        font-weight: 700 !important;
        margin-bottom: 12px !important;
        color: var(--text-color) !important;
    }

    .auction-card-content .auction-price,
    .auction-price,
    .current-bid {
        font-size: 1.3rem !important;
        font-weight: 800 !important;
        color: var(--primary-color) !important;
        margin-bottom: 10px !important;
    }

    .auction-card-content .auction-time,
    .auction-time,
    .time-left {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        color: var(--text-secondary) !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .auction-card .btn,
    .auction-card-content .btn {
        width: 100% !important;
        min-height: 50px !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        border-radius: 14px !important;
        margin-top: 14px !important;
    }
}

/* Two-column grid for tablets / larger phones */
@media (min-width: 500px) and (max-width: 768px) {
    .auctions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    .auction-card .auction-image,
    .auction-image {
        height: 180px !important;
        min-height: 180px !important;
    }

    .auction-card-content {
        padding: 16px !important;
    }

    .auction-card-content h3,
    .auction-card h3 {
        font-size: 1rem !important;
    }

    .auction-card-content .auction-price,
    .auction-price,
    .current-bid {
        font-size: 1.1rem !important;
    }
}

/* ===== PREMIUM CATEGORY PILLS - MOBILE ===== */
@media (max-width: 768px) {
    .categories-scroll {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding: 8px 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .categories-scroll::-webkit-scrollbar {
        display: none;
    }

    .category-pill {
        flex-shrink: 0;
        padding: 14px 22px;
        border-radius: 16px;
        background: white;
        border: 2px solid var(--border-color);
        font-size: 0.95rem;
        font-weight: 600;
        white-space: nowrap;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .category-pill.active {
        background: linear-gradient(135deg, #f97316, #fb923c);
        color: white;
        border-color: transparent;
        box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
    }

    .category-pill:active {
        transform: scale(0.95);
    }
}

/* ===== LEGACY AUCTION GRID - MOBILE (kept for compatibility) ===== */
@media (max-width: 768px) {
    .auctions-grid-legacy {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--mobile-spacing-md);
        padding: 0 var(--mobile-spacing-md);
    }

    /* Single column for very small screens */
    @media (max-width: 400px) {
        .auctions-grid {
            grid-template-columns: 1fr;
        }
    }
}

/* ===== REDESIGNED NAVBAR - MOBILE ===== */
@media (max-width: 768px) {
    .navbar {
        height: 60px !important;
        padding: 0 !important;
        padding-top: var(--mobile-safe-area-top) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        background: rgba(255, 255, 255, 0.95) !important;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08) !important;
        border-bottom: 1px solid rgba(249, 115, 22, 0.1) !important;
    }

    .nav-container {
        height: 100% !important;
        padding: 0 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .nav-brand h1 {
        font-size: 1.5rem !important;
        font-weight: 800 !important;
        background: linear-gradient(135deg, #f97316, #ea580c) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }

    .brand-tagline {
        display: none !important;
    }

    /* Hide nav menu on mobile - use bottom nav */
    .nav-menu {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        padding: 10px !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
    }

    .mobile-menu-toggle span {
        width: 24px !important;
        height: 3px !important;
        background: var(--primary-color) !important;
        border-radius: 2px !important;
        transition: all 0.2s ease !important;
    }

    .nav-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .nav-actions .btn {
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        min-height: 40px !important;
        border-radius: 12px !important;
    }

    .nav-auth .btn-outline {
        display: none !important; /* Hide login on mobile, keep sign up */
    }

    .nav-auth .btn-primary {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* ===== PREMIUM PAGE TRANSITIONS ===== */
.page-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s var(--transition-spring);
}

.page-exit {
    opacity: 1;
    transform: translateY(0);
}

.page-exit-active {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

/* ===== PREMIUM EMPTY STATE ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--mobile-spacing-xl);
    text-align: center;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--mobile-spacing-md);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--mobile-spacing-sm);
    color: var(--text-color);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: var(--mobile-spacing-lg);
}

/* ===== PREMIUM LOADING STATES ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(var(--blur-md));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

[data-theme="dark"] .loading-overlay {
    background: rgba(15, 23, 42, 0.9);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-dots {
    display: flex;
    gap: 8px;
}

.loading-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: loadingBounce 1.4s ease-in-out infinite both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }

@keyframes loadingBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== PREMIUM PRICE DISPLAY ===== */
.price-premium {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    font-feature-settings: 'tnum' on, 'lnum' on;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-currency {
    font-size: 0.7em;
    font-weight: 600;
    opacity: 0.8;
}

/* ===== PREMIUM COUNTDOWN TIMER - MOBILE ===== */
@media (max-width: 768px) {
    .countdown-timer {
        padding: var(--mobile-spacing-md);
        border-radius: var(--mobile-radius-md);
    }

    .timer {
        font-size: 1.75rem;
    }

    .countdown-timer label {
        font-size: 0.85rem;
    }
}

/* ===== PREMIUM BADGE STYLES ===== */
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-live {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.badge-new {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.badge-hot {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
}

/* ===== PREMIUM SCROLL SNAP FOR CAROUSELS ===== */
.carousel-premium {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--mobile-spacing-md);
    padding: var(--mobile-spacing-sm) var(--mobile-spacing-md);
}

.carousel-premium::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* ===== PREMIUM SAFE AREA HANDLING ===== */
@supports (padding: max(0px)) {
    .mobile-bottom-nav {
        padding-bottom: max(var(--mobile-safe-area-bottom), 8px);
    }

    body {
        padding-bottom: max(calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-area-bottom)), var(--mobile-bottom-nav-height));
    }
}

/* ===== PREMIUM TOUCH RIPPLE EFFECT ===== */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.ripple:active::after {
    width: 200%;
    height: 200%;
    opacity: 1;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

/* ===== PREMIUM AUCTION DETAIL - MOBILE ===== */
@media (max-width: 768px) {
    .auction-detail-main {
        grid-template-columns: 1fr;
        gap: var(--mobile-spacing-lg);
    }

    .auction-images {
        border-radius: var(--mobile-radius-lg);
        padding: var(--mobile-spacing-md);
    }

    .main-image {
        height: 300px;
        border-radius: var(--mobile-radius-md);
    }

    .auction-info {
        border-radius: var(--mobile-radius-lg);
        padding: var(--mobile-spacing-lg);
        position: relative;
        top: 0;
    }

    .auction-info h1 {
        font-size: 1.5rem;
    }

    .bidding-section {
        border-radius: var(--mobile-radius-lg);
        padding: var(--mobile-spacing-lg);
    }
}

/* ===== PREMIUM PROFILE PAGE - MOBILE ===== */
@media (max-width: 768px) {
    .profile-header {
        padding: var(--mobile-spacing-lg);
        border-radius: var(--mobile-radius-lg);
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--mobile-spacing-sm);
    }

    .profile-stat {
        padding: var(--mobile-spacing-md);
        border-radius: var(--mobile-radius-md);
    }
}

/* ===== PREMIUM FILTER CHIPS - MOBILE ===== */
@media (max-width: 768px) {
    .filter-chips {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: var(--mobile-spacing-xs);
        padding: var(--mobile-spacing-sm) 0;
        -webkit-overflow-scrolling: touch;
    }

    .filter-chip {
        flex-shrink: 0;
        padding: var(--mobile-spacing-xs) var(--mobile-spacing-md);
        border-radius: var(--mobile-radius-lg);
        background: var(--glass-bg);
        border: 1px solid var(--border-color);
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .filter-chip.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
}

/* ===== PREMIUM ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.4s var(--transition-spring) forwards;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.3s var(--transition-spring) forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.4s var(--transition-spring) forwards;
}

/* Staggered animations for lists */
.stagger-animation > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.3s; }

/* ================================================================
   COMPREHENSIVE AUTO-RESPONSIVE SYSTEM
   All elements auto-adjust based on screen size
   ================================================================ */

/* Fluid Typography - Text scales smoothly with viewport */
html {
    font-size: clamp(14px, 2.5vw, 18px);
}

/* Universal box sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Container auto-adjusts with max-widths */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ===== LARGE DESKTOP (1400px+) ===== */
@media (min-width: 1400px) {
    html { font-size: 18px; }
    .container { max-width: 1320px; }

    .auctions-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 24px !important;
    }

    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ===== DESKTOP (1024px - 1399px) ===== */
@media (min-width: 1024px) and (max-width: 1399px) {
    html { font-size: 17px; }
    .container { max-width: 1140px; }

    .auctions-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }

    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ===== TABLET LANDSCAPE (768px - 1023px) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
    html { font-size: 16px; }
    .container { max-width: 960px; padding: 0 1rem; }

    /* TABLET NAVBAR - Compact & Organized */
    .navbar {
        padding: 0.35rem 0.5rem !important;
    }

    .nav-container {
        padding: 0 0.5rem !important;
        gap: 0.5rem !important;
    }

    /* Hide brand tagline on tablet */
    .nav-brand .brand-tagline,
    .brand-tagline {
        display: none !important;
    }

    .nav-brand h1 {
        font-size: 1.3rem !important;
    }

    /* Nav menu compact */
    .nav-menu {
        gap: 0.5rem !important;
    }

    .nav-links {
        gap: 0.15rem !important;
    }

    /* Nav links - show icons only */
    .nav-link {
        padding: 0.5rem 0.65rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2px !important;
    }

    /* Make text smaller under icons */
    .nav-link:not(.dropdown-toggle) {
        font-size: 0.65rem !important;
    }

    .nav-link .nav-icon {
        width: 20px !important;
        height: 20px !important;
    }

    /* Nav dropdown buttons */
    .nav-dropdown .dropdown-toggle {
        padding: 0.5rem 0.5rem !important;
        font-size: 0.65rem !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2px !important;
    }

    .nav-dropdown .dropdown-toggle span {
        font-size: 0.65rem !important;
    }

    /* Hide dropdown arrows on tablet */
    .dropdown-arrow {
        display: none !important;
    }

    /* Nav actions compact */
    .nav-actions {
        gap: 0.25rem !important;
    }

    .theme-toggle {
        padding: 0.4rem !important;
        width: 36px !important;
        height: 36px !important;
    }

    .theme-toggle svg {
        width: 18px !important;
        height: 18px !important;
    }

    .notification-bell {
        padding: 0.4rem !important;
        width: 36px !important;
        height: 36px !important;
    }

    .notification-bell svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Language switcher compact */
    .language-switcher-btn {
        padding: 0.35rem 0.5rem !important;
        font-size: 0.75rem !important;
        gap: 0.25rem !important;
    }

    /* User menu compact */
    .nav-user .user-menu-toggle {
        gap: 0.35rem !important;
    }

    .nav-user .user-avatar {
        width: 32px !important;
        height: 32px !important;
    }

    .nav-user #userName {
        display: none !important;
    }

    /* Auth buttons compact */
    .nav-auth .btn {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.75rem !important;
    }

    .auctions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px !important;
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero h1 { font-size: 2.5rem !important; }
    .hero p { font-size: 1.1rem !important; }
}

/* ===== TABLET PORTRAIT / LARGE MOBILE (576px - 767px) ===== */
@media (min-width: 576px) and (max-width: 767px) {
    html { font-size: 15px; }
    .container { padding: 0 1.25rem; }

    .auctions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .auction-card .auction-image {
        height: 160px !important;
    }

    .hero h1 { font-size: 2rem !important; }
    .hero p { font-size: 1rem !important; }

    /* Two-column forms on tablet */
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MOBILE (480px - 575px) ===== */
@media (min-width: 480px) and (max-width: 575px) {
    html { font-size: 15px; }
    .container { padding: 0 1rem; }

    .auctions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .auction-card .auction-image {
        height: 140px !important;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .hero h1 { font-size: 1.75rem !important; }
}

/* ===== SMALL MOBILE (< 480px) ===== */
@media (max-width: 479px) {
    html { font-size: 14px; }
    .container { padding: 0 0.75rem; }

    .auctions-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .auction-card .auction-image {
        height: 200px !important;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .hero h1 { font-size: 1.5rem !important; }
    .hero p { font-size: 0.9rem !important; }

    /* Single column forms */
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== FLUID GRID SYSTEM ===== */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(12px, 3vw, 24px);
}

.grid-auto-fill {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: clamp(12px, 3vw, 24px);
}

/* ===== FLUID SPACING ===== */
.section {
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.section-header h2 {
    font-size: clamp(1.25rem, 4vw, 2rem);
    margin-bottom: clamp(1rem, 3vw, 2rem);
}

/* ===== FLUID CARDS ===== */
.card, .auction-card, .profile-card {
    border-radius: clamp(12px, 2vw, 20px);
    padding: clamp(1rem, 3vw, 1.5rem);
}

/* ===== FLUID BUTTONS ===== */
.btn {
    padding: clamp(0.5rem, 2vw, 0.875rem) clamp(1rem, 3vw, 1.5rem);
    font-size: clamp(0.875rem, 2vw, 1rem);
    border-radius: clamp(8px, 1.5vw, 12px);
    min-height: clamp(40px, 6vw, 48px);
}

.btn-lg {
    padding: clamp(0.75rem, 2.5vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
}

/* ===== FLUID IMAGES ===== */
img {
    max-width: 100%;
    height: auto;
}

.auction-image img,
.carousel-slide img,
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== FLUID MODALS ===== */
@media (min-width: 769px) {
    .modal-content {
        width: clamp(400px, 50vw, 600px);
        max-width: 90vw;
        margin: 5vh auto;
        border-radius: 20px;
    }
}

/* ===== TABLE RESPONSIVENESS ===== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    table {
        min-width: 600px;
    }

    /* Stack table cells on very small screens */
    .table-stack-mobile thead {
        display: none;
    }

    .table-stack-mobile tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 1rem;
    }

    .table-stack-mobile tbody td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border: none;
    }

    .table-stack-mobile tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
    }
}

/* ===== FORM RESPONSIVENESS ===== */
.form-group {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.form-group label {
    font-size: clamp(0.875rem, 2vw, 1rem);
    margin-bottom: clamp(0.25rem, 1vw, 0.5rem);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: clamp(0.625rem, 2vw, 0.875rem) clamp(0.75rem, 2vw, 1rem);
    font-size: clamp(0.875rem, 2vw, 1rem);
    border-radius: clamp(8px, 1.5vw, 12px);
}

/* ===== NAVIGATION RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .logo {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: none !important;
    }
}

/* ===== FOOTER RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-section {
        width: 100%;
    }
}

/* ===== AUCTION DETAIL RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .auction-detail-container {
        flex-direction: column;
    }

    .auction-gallery {
        width: 100%;
        max-height: 50vh;
    }

    .auction-info {
        width: 100%;
        padding: 1rem;
    }

    .bid-section {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-color);
        padding: 1rem;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        border-radius: 20px 20px 0 0;
        z-index: 100;
    }
}

/* ===== ADMIN DASHBOARD RESPONSIVENESS ===== */
@media (max-width: 1024px) {
    .admin-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .admin-sidebar.active {
        left: 0;
    }

    .admin-main {
        margin-left: 0;
        width: 100%;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PROFILE PAGE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
    }

    .profile-sidebar {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .profile-main {
        width: 100%;
    }

    .profile-photo-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-photo-container {
        width: 120px;
        height: 120px;
    }
}

/* ===== LANDSCAPE MODE OPTIMIZATION ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-content {
        max-height: 95vh;
        overflow-y: auto;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .carousel-container {
        height: 200px !important;
    }
}

/* ===== SAFE AREA SUPPORT (Notched Phones) ===== */
@supports (padding: max(0px)) {
    .navbar {
        padding-top: max(0.5rem, env(safe-area-inset-top));
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .mobile-bottom-nav {
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    }

    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* ===== TOUCH-FRIENDLY TARGETS ===== */
@media (pointer: coarse) {
    button, .btn, a, input, select, textarea {
        min-height: 44px;
    }

    .nav-link, .dropdown-item, .menu-item {
        padding: 12px 16px;
    }

    /* Increase spacing between clickable items */
    .nav-links a,
    .footer-links a {
        padding: 8px 12px;
    }
}

/* ===== HOVER STATES (Only on devices that support hover) ===== */
@media (hover: hover) {
    .btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .auction-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--card-shadow-hover);
    }

    .category-item:hover {
        transform: scale(1.05);
    }
}

/* Remove hover effects on touch devices */
@media (hover: none) {
    .btn:hover,
    .auction-card:hover,
    .category-item:hover {
        transform: none;
    }
}

/* ===== PRINT OPTIMIZATION ===== */
@media print {
    .navbar, .footer, .mobile-bottom-nav,
    .btn, .modal, .toast, .fab {
        display: none !important;
    }

    body {
        font-size: 12pt;
        background: white !important;
        color: black !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .auction-card, .profile-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================
   UNIVERSAL RESPONSIVE FIX - ALL DEVICES
   Ensures consistent display across all screens
   ============================================ */

/* Force all elements to respect container width */
section, article, div, main, aside, header, footer, nav {
    max-width: 100%;
}

/* Prevent any element from causing horizontal scroll */
.container > *,
.section > *,
main > * {
    max-width: 100%;
    overflow-x: hidden;
}

/* Fix for any fixed width elements */
table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Ensure all text wraps properly */
h1, h2, h3, h4, h5, h6, p, span, a, li {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fix for forms */
input, textarea, select, button {
    max-width: 100%;
}

/* Cards should fit container */
.auction-card,
.category-card,
.profile-card,
.card {
    max-width: 100%;
    width: 100%;
}

/* Grid fix - ensure grids don't overflow */
.auctions-grid,
.categories-grid,
.grid {
    width: 100%;
    max-width: 100%;
}

/* Mobile-specific width fixes */
@media (max-width: 768px) {
    /* Force single column on very small elements */
    .flex-row {
        flex-direction: column;
    }

    /* Ensure modals fit screen */
    .modal-content {
        max-width: 95vw !important;
        margin: 0 auto;
    }

    /* Fix hero section */
    .hero {
        padding: 1rem !important;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
    }

    .hero p {
        font-size: clamp(0.875rem, 3vw, 1.125rem) !important;
    }

    /* Carousel fix */
    .carousel-container,
    .carousel,
    .carousel-inner {
        max-width: 100vw;
        overflow: hidden;
    }

    /* Search section fix */
    .search-section {
        padding: 1rem !important;
    }

    .search-bar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-bar input {
        width: 100% !important;
    }

    .search-bar button {
        width: 100% !important;
    }
}

/* ============================================
   FORCE DESKTOP LAYOUT ON ALL DEVICES
   User requested: same layout on mobile as desktop
   This section MUST be at the end to override all other styles
   ============================================ */

/* Hide ALL mobile-only elements on ALL screen sizes */
.mobile-bottom-nav,
.mobile-menu-toggle,
.mobile-nav-item,
.mobile-nav-label,
.mobile-nav-icon {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* Remove body padding that was added for mobile nav */
body {
    padding-bottom: 0 !important;
    min-height: 100vh;
}

/* NAVBAR - Always show desktop style */
.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    padding: 0.5rem 1rem !important;
}

.nav-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important;
    width: 100% !important;
}

.nav-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    flex: 1 !important;
    justify-content: space-between !important;
}

.nav-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.25rem !important;
    flex-wrap: nowrap !important;
}

.nav-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;
}

/* Nav items always horizontal */
.nav-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    white-space: nowrap !important;
}

.nav-dropdown {
    position: relative !important;
}

.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
}

/* Grids - responsive columns */
.auctions-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 1rem !important;
}

.categories-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
    gap: 0.75rem !important;
}

/* Cards scale properly */
.auction-card,
.category-card {
    width: 100% !important;
    max-width: 100% !important;
}

/* Container max-width */
.container {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

/* Footer always visible */
.footer {
    padding-bottom: 2rem !important;
}

/* ===== SMALL SCREEN SCALING (keeps desktop layout, just smaller) ===== */
@media screen and (max-width: 900px) {
    .nav-container {
        gap: 0.5rem !important;
    }

    .nav-brand h1 {
        font-size: 1.2rem !important;
    }

    .brand-tagline {
        display: none !important;
    }

    .nav-link {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.75rem !important;
    }

    .nav-link span:not(.notification-badge) {
        font-size: 0.7rem !important;
    }

    .nav-icon {
        width: 16px !important;
        height: 16px !important;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 0.25rem 0.5rem !important;
    }

    .nav-brand h1 {
        font-size: 1rem !important;
    }

    /* Hide text labels, show only icons */
    .nav-link > span:not(.notification-badge),
    .dropdown-arrow {
        display: none !important;
    }

    .nav-link {
        padding: 0.35rem !important;
        min-width: 36px !important;
        justify-content: center !important;
    }

    .nav-icon {
        width: 18px !important;
        height: 18px !important;
    }

    /* Compact buttons */
    .nav-auth .btn {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.7rem !important;
    }

    .nav-auth .btn-outline {
        display: none !important;
    }

    /* Smaller user elements */
    .user-avatar {
        width: 30px !important;
        height: 30px !important;
    }

    #userName {
        display: none !important;
    }

    .notifications-btn,
    .settings-toggle {
        width: 34px !important;
        height: 34px !important;
        padding: 0.3rem !important;
    }

    /* Smaller grids */
    .auctions-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 0.75rem !important;
    }

    .container {
        padding: 0 0.5rem !important;
    }
}

@media screen and (max-width: 480px) {
    .nav-brand h1 {
        font-size: 0.9rem !important;
    }

    .nav-link {
        padding: 0.3rem !important;
        min-width: 32px !important;
    }

    .nav-icon {
        width: 16px !important;
        height: 16px !important;
    }

    .nav-auth .btn {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.65rem !important;
    }

    .user-avatar {
        width: 26px !important;
        height: 26px !important;
    }

    .notifications-btn,
    .settings-toggle {
        width: 30px !important;
        height: 30px !important;
    }

    .auctions-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 0.5rem !important;
    }

    .container {
        padding: 0 0.25rem !important;
    }

    /* Smaller cards */
    .auction-card {
        border-radius: 8px !important;
    }

    .auction-card-image {
        height: 120px !important;
    }

    .auction-card-content {
        padding: 0.5rem !important;
    }

    .auction-card h3 {
        font-size: 0.85rem !important;
    }
}

/* ===== MOBILE NAV: show only logo + Home + Auctions + My Bids + Notifications in top row ===== */
.mobile-more-dropdown {
    display: none;
}

@media screen and (max-width: 768px) {
	    /* Hide secondary dropdowns from the main nav row (My Account, Info, guest settings) */
	    .nav-links .nav-dropdown {
	        display: none !important;
	    }
	
	    /* Hide desktop auth/settings/user controls from the main row on small screens */
	    #navAuth,
	    #navUser,
	    #guestSettingsDropdown,
	    #paymentsNavLink {
	        display: none !important;
	    }
	
	    /* Show the mobile-only "More" dropdown */
	    .mobile-more-dropdown {
	        display: flex !important;
	    }
	
	    .mobile-more-dropdown .dropdown-menu {
	        right: 0;
	        left: auto;
	        min-width: 220px;
	    }
	}
