/* ===== RESET E VARIABILI ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colori principali biddo_web */
    --primary-red: #ee6148;
    --primary-light: #f17b66;
    --primary-dark: #d94a30;
    --accent-blue: #2196F3;
    --light-red: #ffebe8;
    --very-light-red: #fff5f3;
    
    /* Colori di supporto - Light Mode */
    --white: #FFFFFF;
    --background: #f8fafb;
    --background-elevated: #FFFFFF;
    --background-card: #FFFFFF;
    --gray-50: #f8fafb;
    --gray-100: #f0f0f0;
    --gray-200: #d9d9d9;
    --gray-300: #d8d8d8;
    --gray-400: #9CA3AF;
    --gray-500: #717171;
    --gray-600: #393939;
    --gray-700: #131313;
    --gray-800: #1F2937;
    --gray-900: #131313;
    --text-primary: #131313;
    --text-secondary: #717171;
    --text-tertiary: #9CA3AF;
    --border-color: #d9d9d9;
    
    /* Colori funzionali */
    --success: #4caf50;
    --warning: #F59E0B;
    --error: #EF4444;
    
    /* Shadow */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transizioni */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-theme='dark'] {
    /* Colori principali (invariati) */
    --primary-red: #ee6148;
    --primary-light: #f17b66;
    --primary-dark: #d94a30;
    --accent-blue: #2196F3;
    --light-red: rgba(238, 97, 72, 0.15);
    --very-light-red: rgba(238, 97, 72, 0.08);
    
    /* Colori di supporto - Dark Mode */
    --white: #1a1a1a;
    --background: #000000;
    --background-elevated: #1a1a1a;
    --background-card: #1f1f1f;
    --gray-50: #1a1a1a;
    --gray-100: #2a2a2a;
    --gray-200: #3a3a3a;
    --gray-300: #4a4a4a;
    --gray-400: #6B7280;
    --gray-500: #9CA3AF;
    --gray-600: #D1D5DB;
    --gray-700: #E5E7EB;
    --gray-800: #F3F4F6;
    --gray-900: #FFFFFF;
    --text-primary: #FFFFFF;
    --text-secondary: #D1D5DB;
    --text-tertiary: #9CA3AF;
    --border-color: #3a3a3a;
    
    /* Colori funzionali (invariati) */
    --success: #4caf50;
    --warning: #F59E0B;
    --error: #EF4444;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6, .headline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.75rem;
    line-height: 1.3;
}

h4 {
    font-size: 1.5rem;
    line-height: 1.4;
}

h5 {
    font-size: 1.25rem;
    line-height: 1.4;
}

h6 {
    font-size: 1rem;
    line-height: 1.5;
}

/* ===== RIPPLE EFFECT ===== */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
    transition: width 0s, height 0s;
}

/* ===== TOUCH FEEDBACK ===== */
.touch-feedback {
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    -webkit-tap-highlight-color: transparent;
}

.touch-feedback:active {
    transform: scale(0.97);
}

/* ===== SELECTION BORDER ===== */
.selectable {
    position: relative;
    transition: var(--transition);
}

.selectable::before {
    content: '';
    position: absolute;
    inset: -2px;
    border: 2px solid var(--primary-red);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.selectable:focus::before,
.selectable.selected::before {
    opacity: 1;
}

/* ===== GLASSMORPHISM ENHANCED ===== */
.glass {
    background: var(--background-elevated);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

[data-theme='dark'] .glass {
    background: rgba(26, 26, 26, 0.8);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER DESKTOP/MOBILE ===== */
.header {
    background: var(--background-elevated);
    color: var(--text-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--border-color);
    padding-top: env(safe-area-inset-top);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Dark Mode Header Shadow */
[data-theme='dark'] .header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    flex-shrink: 0;
    min-width: fit-content;
}

.logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-red);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    font-size: 24px;
}

/* Navigazione Desktop */
.nav-desktop {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
}

.nav-link i {
    font-size: 16px;
}

.nav-link:hover {
    background: var(--gray-100);
    color: var(--primary-red);
}

.nav-link.active {
    background: var(--light-red);
    color: var(--primary-red);
    font-weight: 600;
}

/* Search Bar */
.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 500px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--gray-500);
    font-size: 14px;
    pointer-events: none;
}

.search-bar input {
    flex: 1;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 14px;
    background: var(--gray-50);
    color: var(--text-primary);
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-red);
    background: var(--background-elevated);
    box-shadow: 0 0 0 3px rgba(238, 97, 72, 0.1);
}

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

/* Header Actions */
.header-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.btn-icon {
    position: relative;
    background: transparent;
    border: none;
    padding: 10px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    font-size: 18px;
    -webkit-tap-highlight-color: transparent;
}

.btn-icon:hover {
    background: var(--gray-100);
    color: var(--primary-red);
}

.btn-icon:active {
    transform: scale(0.95);
}

/* Notification button - dimensione aumentata */
#notificationBtn {
    font-size: 22px;
}

#notificationBtn i {
    font-size: 22px;
}

/* Cart mobile button - stessa dimensione delle notifiche */
#cartBtnMobile {
    font-size: 22px;
}

#cartBtnMobile i {
    font-size: 22px;
}

.btn-icon .badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--primary-red);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.btn-profile-desktop,
.btn-theme-desktop {
    display: none;
}

.btn-cart-mobile {
    display: block;
}

/* Nav Main legacy - rimosso */

/* ===== HERO SECTION COMPATTA PWA ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 24px 16px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="60" height="60" fill="none"/><circle cx="30" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 11px;
    opacity: 0.9;
}

/* ===== FILTRI RAPIDI ===== */
.quick-filters {
    background: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: calc(56px + env(safe-area-inset-top));
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-chips::-webkit-scrollbar {
    height: 4px;
}

.filter-chips::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}

.chip {
    padding: 8px 16px;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.chip:hover {
    background: var(--light-red);
    color: var(--primary-red);
    border-color: var(--light-red);
}

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

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 16px 0 80px;
    margin-bottom: env(safe-area-inset-bottom);
}

.section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 16px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 22px;
    color: var(--primary-red);
}

.section-link {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    white-space: nowrap;
}

.section-link:hover {
    color: var(--primary-dark);
}

/* ===== GRIGLIA ITEMS (CARTE) ===== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 0 16px;
    align-items: start;
}

.card-item {
    background: var(--background-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-red);
}

.card-item:active {
    transform: translateY(-2px) scale(0.98);
}

/* Animazione highlight quando prezzo/offerte cambiano */
.card-highlight-pulse {
    animation: cardHighlight 1s ease-in-out !important;
    position: relative;
    z-index: 10;
}

@keyframes cardHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(238, 97, 72, 0.9);
        border-color: var(--primary-red);
        background-color: var(--background-card);
        transform: scale(1);
    }
    25% {
        box-shadow: 0 0 20px 8px rgba(238, 97, 72, 0.7);
        border-color: var(--primary-red);
        background-color: rgba(238, 97, 72, 0.05);
        transform: scale(1.03);
    }
    50% {
        box-shadow: 0 0 40px 15px rgba(238, 97, 72, 0.5);
        border-color: var(--primary-red);
        background-color: rgba(238, 97, 72, 0.08);
        transform: scale(1.03);
    }
    75% {
        box-shadow: 0 0 20px 8px rgba(238, 97, 72, 0.3);
        border-color: var(--primary-red);
        background-color: rgba(238, 97, 72, 0.03);
        transform: scale(1.01);
    }
    100% {
        box-shadow: var(--shadow);
        border-color: transparent;
        background-color: var(--background-card);
        transform: scale(1);
    }
}

[data-theme='dark'] .card-item {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme='dark'] .card-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] .card-highlight-pulse {
    animation: cardHighlightDark 1s ease-in-out !important;
}

@keyframes cardHighlightDark {
    0% {
        box-shadow: 0 0 0 0 rgba(238, 97, 72, 1);
        border-color: var(--primary-red);
        background-color: var(--background-card);
        transform: scale(1);
    }
    25% {
        box-shadow: 0 0 25px 10px rgba(238, 97, 72, 0.8);
        border-color: var(--primary-red);
        background-color: rgba(238, 97, 72, 0.1);
        transform: scale(1.03);
    }
    50% {
        box-shadow: 0 0 50px 20px rgba(238, 97, 72, 0.6);
        border-color: var(--primary-red);
        background-color: rgba(238, 97, 72, 0.15);
        transform: scale(1.03);
    }
    75% {
        box-shadow: 0 0 25px 10px rgba(238, 97, 72, 0.4);
        border-color: var(--primary-red);
        background-color: rgba(238, 97, 72, 0.08);
        transform: scale(1.01);
    }
    100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        border-color: transparent;
        background-color: var(--background-card);
        transform: scale(1);
    }
}

.card-image {
    position: relative !important;
    width: 100%;
    padding-top: 75%; /* Aspect ratio 4:3 (più rettangolare) */
    background: var(--gray-100);
    overflow: hidden;
    display: block;
    flex-shrink: 0;
    flex-grow: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    z-index: 1;
    pointer-events: none;
    max-width: 100%;
    max-height: 100%;
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.badge-auction {
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    color: var(--white);
}

.badge-buy-now {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: var(--white);
}

.badge-graded {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: var(--white);
}

.badge-sealed {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: var(--white);
}

.card-timer {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--gray-900);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Animazione timer urgente (sotto 1 minuto) */
.card-timer-urgent {
    animation: timerUrgent 1s ease-in-out infinite;
}

@keyframes timerUrgent {
    0%, 100% {
        background: rgba(239, 68, 68, 0.9);
        transform: scale(1);
    }
    50% {
        background: rgba(239, 68, 68, 1);
        transform: scale(1.05);
    }
}

.card-info {
    padding: 16px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 2 !important;
    background: var(--background-card) !important;
    width: 100% !important;
    min-height: 100px !important;
    box-sizing: border-box !important;
    flex-shrink: 0;
    flex-grow: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.card-badges-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    min-height: 28px; /* Altezza minima per evitare scalini quando non ci sono badge */
}

.card-badges-info .card-badge {
    position: relative;
    top: auto;
    left: auto;
    display: inline-block;
}

.card-meta {
    font-size: 11px;
    color: var(--text-secondary);
}

.card-price-section {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.card-price-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-red);
}

.card-bids {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.card-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.btn-primary {
    flex: 1;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(238, 97, 72, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-red));
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(238, 97, 72, 0.4);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(238, 97, 72, 0.2);
}

.btn-secondary {
    padding: 8px;
    background: var(--gray-100);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 36px;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--primary-red);
    border-color: var(--primary-red);
    transform: scale(1.05);
}

.btn-secondary:active {
    transform: scale(0.95);
}

/* ===== GRIGLIA NEGOZI ===== */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.store-card {
    background: var(--background-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    -webkit-tap-highlight-color: transparent;
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-red);
}

.store-card:active {
    transform: translateY(-2px) scale(0.98);
}

[data-theme='dark'] .store-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme='dark'] .store-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.store-banner {
    height: 120px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-light) 100%);
    position: relative;
}

.store-content {
    padding: 20px;
    position: relative;
}

.store-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--background-elevated);
    border: 4px solid var(--background-card);
    position: absolute;
    top: -40px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: var(--shadow-lg);
}

.store-header {
    margin-top: 48px;
    margin-bottom: 12px;
}

.store-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.store-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--primary-red);
    font-weight: 600;
}

.store-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.store-stats {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
}

.store-stat {
    flex: 1;
    text-align: center;
}

.store-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.store-stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== FOOTER MINIMALE PWA ===== */
.footer {
    background: var(--gray-50);
    color: var(--text-secondary);
    padding: 24px 16px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: none; /* Nascosto su app mobile */
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 16px;
    font-size: 12px;
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
}

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

.social-links,
.footer-column {
    display: none; /* Nascosto per PWA */
}

/* ===== MODAL APP-STYLE ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--background-elevated);
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

[data-theme='dark'] .modal-content {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Dark mode: timer della card più visibile */
[data-theme='dark'] .card-timer {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-weight: 500;
}

/* Dark mode: frecce carousel visibili */
[data-theme='dark'] .modal-carousel-nav {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

[data-theme='dark'] .modal-carousel-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Dark mode: carousel container e dots visibili */
[data-theme='dark'] .modal-carousel {
    background: var(--gray-800);
}

[data-theme='dark'] .modal-carousel-dot {
    background: rgba(255, 255, 255, 0.3);
}

[data-theme='dark'] .modal-carousel-dot.active {
    background: var(--primary-red);
}

/* Layout orizzontale per browser/desktop */
@media (min-width: 769px) {
    .modal {
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    
    .modal-content {
        max-width: 1000px;
        width: 90vw;
        max-height: 80vh;
        overflow: hidden;
        margin: auto;
    }
    
    #modalBody {
        display: flex;
        flex-direction: row;
        height: 100%;
    }
    
    .modal-carousel {
        flex: 0 0 45%;
        max-width: 45%;
        border-radius: var(--radius-xl) 0 0 var(--radius-xl);
        height: 100%;
        max-height: 80vh;
        display: flex;
        flex-direction: column;
        background: var(--gray-50);
    }
    
    .modal-carousel-track {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-carousel-slide {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 40px 20px 40px;
    }
    
    .modal-carousel-slide img {
        width: 100%;
        height: 100%;
        max-height: 600px;
        object-fit: contain;
    }
    
    .modal-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: visible;
        background: var(--background-elevated);
    }
    
    .modal-info-section {
        padding: 24px 28px;
        overflow: visible;
    }
    
    .modal-title {
        font-size: 24px;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .modal-badge {
        margin-bottom: 12px;
    }
    
    .modal-price-box {
        padding: 20px;
        margin: 16px 0;
    }
    
    .modal-price {
        font-size: 32px;
    }
    
    .modal-price-label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .modal-meta {
        margin: 12px 0;
    }
    
    .modal-meta-label {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .modal-meta-value {
        font-size: 14px;
    }
    
    .modal-description {
        margin: 12px 0;
        padding: 14px;
    }
    
    .modal-description-text {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .modal-actions {
        background: var(--background-elevated);
        border-top: 1px solid var(--border-color);
        margin-top: auto;
        padding: 20px 28px;
        display: flex;
        gap: 12px;
        flex-shrink: 0;
    }
    
    .modal-btn-primary,
    .modal-btn-secondary {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .modal-btn-primary {
        flex: 1.5;
    }
    
    .modal-btn-secondary {
        flex: 1;
    }
    
    /* Timer/Countdown box ottimizzato per desktop */
    .modal-info-section > div[style*="background: #FEF3C7"],
    .modal-info-section > div[style*="background:#FEF3C7"] {
        padding: 10px !important;
        margin: 12px 0 !important;
    }
    
    .modal-info-section > div[style*="background: #FEF3C7"] div,
    .modal-info-section > div[style*="background:#FEF3C7"] div {
        font-size: 13px !important;
    }
    
    /* Carosello desktop: controlli sotto l'immagine */
    .modal-carousel-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 16px 0 20px 0;
        background: var(--gray-50);
    }
    
    .modal-carousel-nav {
        position: static;
        transform: none;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .modal-carousel-nav:hover {
        transform: scale(1.1);
    }
    
    .modal-carousel-prev,
    .modal-carousel-next {
        position: static;
        left: auto;
        right: auto;
    }
    
    /* Dots container in riga con le frecce */
    .modal-carousel-dots {
        position: static;
        bottom: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0;
    }
    
    .modal-close {
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 28px;
    }
    
    /* Dark mode per carousel controls desktop */
    [data-theme='dark'] .modal-carousel {
        background: var(--gray-800);
    }
    
    [data-theme='dark'] .modal-carousel-controls {
        background: var(--gray-800);
    }
    
    [data-theme='dark'] .modal-carousel-nav {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: var(--white);
    }
    
    [data-theme='dark'] .modal-carousel-nav:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }
    
    [data-theme='dark'] .modal-carousel-dot {
        background: rgba(255, 255, 255, 0.3);
    }
    
    [data-theme='dark'] .modal-carousel-dot.active {
        background: var(--primary-red);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--background-elevated);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
    -webkit-tap-highlight-color: transparent;
}

.modal-close:hover {
    background: var(--gray-100);
    transform: scale(1.1);
}

.modal-close:active {
    transform: scale(0.95);
}

/* Carosello Immagini */
.modal-carousel {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: hidden;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.modal-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.modal-carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.modal-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
    color: var(--gray-700);
    box-shadow: var(--shadow-md);
}

.modal-carousel-nav:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.modal-carousel-prev {
    left: 12px;
}

.modal-carousel-next {
    right: 12px;
}

.modal-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
}

.modal-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}

.modal-carousel-dot.active {
    background: var(--primary-red);
    width: 24px;
    border-radius: 4px;
}

/* Modal Body */
.modal-body {
    padding: 0;
}

.modal-info-section {
    padding: 20px;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.modal-badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: white;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.modal-price-box {
    background: var(--gray-50);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin: 16px 0;
    border: 1px solid var(--border-color);
}

.modal-price-label {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-red);
}

.modal-stock {
    color: var(--success);
    font-size: 13px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.modal-meta {
    margin: 16px 0;
}

.modal-meta-label {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-meta-value {
    font-weight: 600;
    font-size: 15px;
    color: var(--gray-900);
}

.modal-description {
    margin: 16px 0;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary-red);
}

.modal-description-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-700);
    margin: 0;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding: 20px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.modal-btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--success);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-btn-primary:hover {
    background: #3d9142;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.modal-btn-secondary {
    width: 100%;
    padding: 14px;
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    border-radius: var(--radius-lg);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-btn-secondary:hover {
    background: var(--gray-200);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .modal {
        padding: 0;
        align-items: flex-end;
    }
    
    .modal-content {
        flex-direction: column !important;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        max-height: 95vh;
        width: 100%;
        max-width: 100%;
        animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes modalSlideUp {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
    
    .modal-carousel {
        flex: none !important;
        max-width: 100% !important;
        border-radius: 0;
        min-height: 300px;
        max-height: 400px;
    }
    
    .modal-carousel-slide img {
        max-height: 400px !important;
        height: auto !important;
    }
    
    .modal-body {
        overflow-y: visible !important;
        max-height: none !important;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-price {
        font-size: 28px;
    }
    
    .modal-info-section {
        padding: 16px;
    }
    
    .modal-actions {
        padding: 16px;
        position: sticky;
        bottom: 0;
        background: var(--white);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
}

/* ===== BOTTOM NAVIGATION ISLAND (Mobile Only) ===== */
.bottom-nav-island {
    display: none; /* Nascosto su desktop */
    position: fixed;
    bottom: max(2px, env(safe-area-inset-bottom, 2px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.bottom-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90vw;
    max-width: 600px;
    gap: 0;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 3px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 12px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: background-color 0.3s ease;
}

[data-theme='dark'] .bottom-nav-content {
    background: rgba(26, 26, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 2px 12px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--radius);
    position: relative;
    min-width: 50px;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item i {
    font-size: 18px;
    transition: var(--transition);
}

.bottom-nav-item:active {
    transform: scale(0.95);
}

.bottom-nav-item.active {
    color: var(--primary-red);
}

.bottom-nav-item .nav-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    text-align: center;
    line-height: 1;
}

.bottom-nav-item .nav-badge {
    position: absolute;
    top: 4px;
    right: 6px;
    background: var(--primary-red);
    color: var(--white);
    font-size: 8px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 8px;
    min-width: 12px;
    text-align: center;
}

/* HOME Button Centrale FAB */
.bottom-nav-home {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(238, 97, 72, 0.35),
                0 2px 6px rgba(238, 97, 72, 0.25);
    margin: 0 12px;
    position: relative;
    top: -6px;
    flex-shrink: 0;
}

.bottom-nav-home i {
    font-size: 20px;
}

.bottom-nav-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(238, 97, 72, 0.45),
                0 4px 10px rgba(238, 97, 72, 0.35);
}

.bottom-nav-home:active {
    transform: translateY(0) scale(0.95);
}

/* ===== MOBILE DRAWER (Menu Laterale) ===== */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-drawer {
    position: fixed;
    top: 50%;
    transform: translateY(-75%);
    left: -100%;
    width: 180px;
    max-width: 85vw;
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 12px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    z-index: 9999;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    margin-left: 8px;
}

.mobile-drawer.active {
    left: 0;
}

[data-theme='dark'] .mobile-drawer {
    background: rgba(26, 26, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 2px 12px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.mobile-drawer-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.mobile-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-drawer-close:hover {
    background: var(--gray-200);
    transform: scale(1.05);
}

.mobile-drawer-close:active {
    transform: scale(0.95);
}

.mobile-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    border-radius: 0 0 20px 20px;
    min-height: 0;
}

.mobile-drawer-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    border-left: 3px solid transparent;
}

.mobile-drawer-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.mobile-drawer-item:hover,
.mobile-drawer-item:active {
    background: var(--gray-100);
    border-left-color: var(--primary-red);
}

.mobile-drawer-item:hover i,
.mobile-drawer-item:active i {
    color: var(--primary-red);
}

.mobile-drawer-item span {
    flex: 1;
}

.mobile-drawer-badge {
    background: var(--primary-red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

/* Animazione slide-in */
@keyframes drawerSlideIn {
    from {
        left: -100%;
    }
    to {
        left: 0;
    }
}

/* ===== RESPONSIVE ===== */

/* Desktop (> 768px) */
@media (min-width: 769px) {
    .nav-desktop {
        display: flex;
    }
    
    .bottom-nav-island {
        display: none;
    }
    
    .mobile-drawer,
    .mobile-drawer-overlay {
        display: none !important;
    }
    
    .btn-profile-desktop,
    .btn-theme-desktop {
        display: block;
    }
    
    .btn-cart-mobile {
        display: none;
    }
    
    .footer {
        margin-bottom: 0;
    }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
    .header-top {
        flex-wrap: nowrap;
        padding: 8px 12px;
        gap: 8px;
    }
    
    .logo h1 {
        font-size: 16px;
    }
    
    .logo i {
        font-size: 18px;
    }
    
    /* Nascondi menu desktop */
    .nav-desktop {
        display: none;
    }
    
    /* Mostra bottom nav island */
    .bottom-nav-island {
        display: block;
    }
    
    /* Search bar compatta inline */
    .search-bar {
        flex: 1;
        max-width: none;
        min-width: 0;
    }
    
    .search-icon {
        left: 8px;
        font-size: 12px;
    }
    
    .search-bar input {
        font-size: 13px;
        padding: 6px 8px 6px 28px;
    }
    
    /* Header actions compatti */
    .header-actions {
        gap: 0;
        flex-shrink: 0;
    }
    
    .btn-icon {
        padding: 6px;
        font-size: 16px;
    }
    
    /* Notification button aumentato anche su mobile */
    #notificationBtn {
        font-size: 20px;
    }
    
    #notificationBtn i {
        font-size: 20px;
    }
    
    /* Cart mobile button - stessa dimensione delle notifiche */
    #cartBtnMobile {
        font-size: 20px;
    }
    
    #cartBtnMobile i {
        font-size: 20px;
    }
    
    .btn-icon .badge {
        top: 2px;
        right: 2px;
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .btn-profile-desktop {
        display: none;
    }
    
    /* Hero */
    .hero-title {
        font-size: 20px;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    /* Section Container - Come products-section di store.html */
    .section {
        background: var(--background-card);
        border-radius: 12px;
        border: 1px solid var(--border-color);
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .section-header {
        padding: 0;
        margin-bottom: 12px;
    }
    
    /* Grid - Come products-grid di store.html */
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0;
    }
    
    .stores-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer con margine per island */
    .footer {
        margin-bottom: 90px;
    }
}

/* ===== ANIMAZIONI ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-item {
    animation: fadeIn 0.4s ease-out;
}

.store-card {
    animation: fadeIn 0.4s ease-out;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== SKELETON LOADER ===== */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--gray-100) 0%,
        var(--gray-200) 50%,
        var(--gray-100) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius);
}

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

.skeleton-card {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
}

.skeleton-text {
    height: 16px;
    width: 100%;
    margin: 8px 0;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin: 12px 0;
}

/* ===== SMOOTH TRANSITIONS ===== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== HAPTIC FEEDBACK ANIMATION ===== */
@keyframes haptic-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.haptic-feedback {
    animation: haptic-pulse 0.2s ease-in-out;
}

/* ===== BADGE PULSATING ===== */
@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.badge {
    animation: badge-pulse 2s ease-in-out infinite;
}

/* ===== FLOATING ANIMATION ===== */
@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);
    }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

/* ===== SUBTLE SHINE EFFECT ===== */
@keyframes shine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shine 3s infinite;
}

/* ===== FOCUS VISIBLE (Accessibility) ===== */
:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* ===== SCROLL BEHAVIOR ===== */
html {
    scroll-behavior: smooth;
}

/* ===== SELECTION COLOR ===== */
::selection {
    background: var(--primary-red);
    color: white;
}

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

/* ===== SCROLLBAR STYLING (WebKit) ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

[data-theme='dark'] ::-webkit-scrollbar-track {
    background: var(--gray-100);
}

[data-theme='dark'] ::-webkit-scrollbar-thumb {
    background: var(--gray-400);
}

/* ===== PAGINE AUTENTICAZIONE ===== */
.auth-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--background-elevated);
}

.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--background-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.auth-header-content {
    text-align: center;
    margin-bottom: 32px;
}

.auth-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.auth-icon-2fa {
    background: linear-gradient(135deg, var(--accent-blue), #42a5f5);
}

.auth-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: var(--text-secondary);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    background: var(--background-elevated);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(238, 97, 72, 0.1);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary-red);
}

.form-error {
    font-size: 12px;
    color: var(--error);
    display: none;
    margin-top: 4px;
}

.form-error.show {
    display: block;
}

.form-help {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.form-help i {
    font-size: 12px;
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: var(--error);
    transition: var(--transition);
    border-radius: 2px;
}

.strength-fill.weak {
    width: 33%;
    background: var(--error);
}

.strength-fill.medium {
    width: 66%;
    background: var(--warning);
}

.strength-fill.strong {
    width: 100%;
    background: var(--success);
}

.strength-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text {
    flex: 1;
    line-height: 1.4;
}

.btn-auth {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-spinner {
    position: absolute;
}

.btn-text {
    transition: opacity 0.2s;
}

.btn-auth:disabled .btn-text {
    opacity: 0;
}

.btn-secondary {
    background: var(--background-elevated);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

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

.auth-divider span {
    padding: 0 16px;
}

.btn-social {
    width: 100%;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius);
    border: 2px solid var(--border-color);
    background: var(--background-elevated);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-social:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-google {
    border-color: var(--border-color);
}

.btn-google i {
    font-size: 18px;
    color: #4285F4;
}

.auth-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.auth-footer.auth-footer {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.auth-success-message,
.auth-error-message {
    text-align: center;
    padding: 32px 24px;
}

.success-icon,
.error-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.success-icon {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
}

.error-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.auth-success-message h3,
.auth-error-message h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.auth-success-message p,
.auth-error-message p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.success-note {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 16px;
}

.code-input-container {
    display: flex;
    justify-content: center;
}

.code-input {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 8px;
    font-family: 'Roboto Mono', monospace;
    max-width: 280px;
    padding: 16px;
}

.auth-2fa-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-modal {
    max-width: 400px;
    padding: 32px;
}

/* Responsive Auth Pages */
@media (max-width: 768px) {
    .auth-container {
        padding: 20px 16px;
        min-height: calc(100vh - 120px);
    }

    .auth-card {
        padding: 32px 24px;
        border-radius: var(--radius-lg);
    }

    .auth-title {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .code-input {
        font-size: 28px;
        letter-spacing: 6px;
        padding: 14px;
    }

    .auth-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 20px;
    }

    .auth-title {
        font-size: 22px;
    }

    .auth-subtitle {
        font-size: 13px;
    }

    .code-input {
        font-size: 24px;
        letter-spacing: 4px;
    }
}

/* ===== MODAL LOGIN RICHIESTO ===== */
.login-required-modal {
    max-width: 450px !important;
    width: 90vw;
    text-align: center;
    animation: modalSlideInScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-color);
}

.login-required-modal .modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    margin-bottom: 0;
}

.login-required-modal .modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    margin: 0;
}

.login-required-modal .modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--text-secondary);
    border: none;
    transition: all 0.2s ease;
}

.login-required-modal .modal-close:hover {
    background: var(--gray-200);
    color: var(--text-primary);
    transform: rotate(90deg);
}

[data-theme='dark'] .login-required-modal .modal-close {
    background: var(--gray-100);
    color: var(--text-secondary);
}

[data-theme='dark'] .login-required-modal .modal-close:hover {
    background: var(--gray-200);
    color: var(--text-primary);
}

/* ===== MODAL ALERT GENERICO ===== */
.alert-modal-content {
    max-width: 450px;
    width: 90vw;
    text-align: center;
    animation: modalSlideInScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-color);
    padding: 0;
}

.alert-modal-header {
    position: relative;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.alert-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-light));
    color: white;
    box-shadow: 0 4px 12px rgba(238, 97, 72, 0.3);
}

.alert-modal-icon i {
    animation: iconPulse 2s ease-in-out infinite;
}

.alert-modal-icon.success {
    background: linear-gradient(135deg, var(--success), #66bb6a);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.alert-modal-icon.error {
    background: linear-gradient(135deg, var(--error), #f44336);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.alert-modal-icon.warning {
    background: linear-gradient(135deg, var(--warning), #ffb74d);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.alert-modal-icon.info {
    background: linear-gradient(135deg, var(--accent-blue), #42a5f5);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.alert-modal-header .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--text-secondary);
    border: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}

.alert-modal-header .modal-close:hover {
    background: var(--gray-200);
    color: var(--text-primary);
}

[data-theme='dark'] .alert-modal-header .modal-close {
    background: var(--gray-200);
    color: var(--text-secondary);
}

[data-theme='dark'] .alert-modal-header .modal-close:hover {
    background: var(--gray-300);
    color: var(--text-primary);
}

.alert-modal-body {
    padding: 1.5rem 2rem;
}

.alert-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.alert-modal-message {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    white-space: pre-line;
}

.alert-modal-actions {
    padding: 0 2rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.alert-modal-btn {
    min-width: 120px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.alert-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Animazioni */
@keyframes modalSlideInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .alert-modal-content {
        width: 95vw;
        max-width: none;
    }

    .alert-modal-header,
    .alert-modal-body,
    .alert-modal-actions {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .alert-modal-title {
        font-size: 1.125rem;
    }

    .alert-modal-message {
        font-size: 0.9375rem;
    }
}

/* ===== MODAL OFFERTA ASTA ===== */
.bid-modal-content {
    max-width: 500px;
    width: 90vw;
    animation: modalSlideInScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-color);
    padding: 0;
}

.bid-modal-header {
    position: relative;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bid-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bid-modal-title i {
    color: var(--primary-red);
}

.bid-modal-header .modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--text-secondary);
    border: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}

.bid-modal-header .modal-close:hover {
    background: var(--gray-200);
    color: var(--text-primary);
}

[data-theme='dark'] .bid-modal-header .modal-close {
    background: var(--gray-200);
    color: var(--text-secondary);
}

[data-theme='dark'] .bid-modal-header .modal-close:hover {
    background: var(--gray-300);
    color: var(--text-primary);
}

.bid-modal-body {
    padding: 2rem;
}

.bid-item-info {
    margin-bottom: 1rem;
}

.bid-item-name {
    font-size: 1.125rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    margin: 0 0 1rem;
    line-height: 1.4;
}

.bid-current-price {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-light));
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(238, 97, 72, 0.3);
}

.bid-item-description {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary-red);
}

[data-theme='dark'] .bid-item-description {
    background: var(--gray-100);
}

.bid-item-description p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.bid-price-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.bid-price-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.bid-input-group {
    margin-bottom: 1.5rem;
}

.bid-input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.bid-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--background-elevated);
    color: var(--text-primary);
    transition: all 0.2s ease;
    text-align: center;
}

.bid-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(238, 97, 72, 0.1);
}

.bid-input-hint {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
    text-align: center;
}

.bid-input-hint.error {
    color: var(--error);
}

.bid-input-hint.success {
    color: var(--success);
}

.bid-modal-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    justify-content: space-between;
    align-items: center;
}

.bid-quick-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: 2px solid var(--accent-blue);
    background: transparent;
    color: var(--accent-blue);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.bid-quick-btn:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.bid-quick-btn:active {
    transform: translateY(0);
}

.bid-modal-btn {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    box-shadow: 0 2px 8px rgba(238, 97, 72, 0.2);
}

.bid-modal-btn.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-light));
    color: white;
}

.bid-modal-btn.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-red));
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(238, 97, 72, 0.4);
}

.bid-modal-btn.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(238, 97, 72, 0.2);
}

.bid-modal-btn.btn-secondary {
    background: var(--gray-100);
    color: var(--text-primary);
}

.bid-modal-btn.btn-secondary:hover {
    background: var(--gray-200);
}

[data-theme='dark'] .bid-modal-btn.btn-secondary {
    background: var(--gray-200);
    color: var(--text-secondary);
}

[data-theme='dark'] .bid-modal-btn.btn-secondary:hover {
    background: var(--gray-300);
    color: var(--text-primary);
}

.bid-modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .bid-modal-content {
        width: 95vw;
        max-width: none;
    }

    .bid-modal-header,
    .bid-modal-body {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .bid-item-name {
        font-size: 1rem;
    }

    .bid-price-value {
        font-size: 1.75rem;
    }

    .bid-input {
        font-size: 1.125rem;
    }

    .bid-modal-actions {
        padding: 1.25rem 1.5rem;
    }

    .bid-modal-btn,
    .bid-quick-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
}

@keyframes modalSlideInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.login-required-content {
    padding: 3rem 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-required-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(238, 97, 72, 0.3);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(238, 97, 72, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(238, 97, 72, 0.4);
    }
}

.login-required-icon i {
    font-size: 2.5rem;
    color: white;
}

.login-required-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.02em;
}

.login-required-message {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.login-required-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
}

.login-required-actions .btn-secondary {
    flex: 1;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--background-card);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-required-actions .btn-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

[data-theme='dark'] .login-required-actions .btn-secondary {
    background: var(--background-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme='dark'] .login-required-actions .btn-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.login-required-actions .btn-primary {
    flex: 1;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(238, 97, 72, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-required-actions .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-red));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 97, 72, 0.4);
}

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

.login-required-actions .btn-primary i {
    font-size: 0.9rem;
}

/* Responsive per mobile */
@media (max-width: 480px) {
    .login-required-modal {
        max-width: 95vw !important;
        margin: 1rem;
    }
    
    .login-required-content {
        padding: 2.5rem 1.5rem 2rem;
    }
    
    .login-required-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
    }
    
    .login-required-icon i {
        font-size: 2rem;
    }
    
    .login-required-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .login-required-message {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .login-required-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .login-required-actions .btn-secondary,
    .login-required-actions .btn-primary {
        width: 100%;
        padding: 14px 20px;
    }
}


