* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-lighter: #f1f5f9;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: var(--bg-light);
    color: var(--text-color);
    min-height: 100vh;
    padding-bottom: 150px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
}

a.btn-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

a.btn-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

/* Disclosure Banner */
.disclosure-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 12px 20px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.4s ease-out;
    border-bottom: 1px solid #fcd34d;
}

.disclosure-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 0.9rem;
}

.close-btn {
    background: rgba(146, 64, 14, 0.1);
    border: none;
    color: #92400e;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.close-btn:hover {
    background: rgba(146, 64, 14, 0.2);
    transform: scale(1.1);
}

.disclosure-banner.hidden {
    display: none;
}

/* Accessibility Button */
.accessibility-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.accessibility-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

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

/* Header */
.header {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 16px 24px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border-color);
}

.header h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    text-align: center;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
    flex-wrap: wrap;
}

.header-controls {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: var(--bg-lighter);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--bg-light);
    transform: scale(1.05);
    border-color: var(--primary-color);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 80px;
    z-index: 90;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.filter-tab:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Products Container - TikTok Style */
.products-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
}

.products-container::-webkit-scrollbar {
    width: 6px;
}

.products-container::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.products-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.products-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* TikTok Style Product Cards */
.product-card {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    margin-bottom: 12px;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    touch-action: pan-y;
    border: 1px solid var(--border-color);
}

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

.product-card.swiping {
    transition: none;
}

.product-image {
    width: 100%;
    height: 60%;
    min-height: 400px;
    object-fit: cover;
    background: linear-gradient(135deg, #e0e7ff, #ddd6fe);
    flex-shrink: 0;
}

.product-info {
    padding: 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.4;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-type {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.type-money {
    background: #dbeafe;
    color: #1e40af;
}

.type-trade {
    background: #fef3c7;
    color: #92400e;
}

.type-free {
    background: #d1fae5;
    color: #065f46;
}

.product-actions {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    pointer-events: none;
}

.delete-action {
    background: var(--danger-color);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    pointer-events: auto;
    box-shadow: var(--shadow-lg);
}

/* FAB */
.fab {
    position: fixed;
    bottom: 100px;
    left: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success-color), #059669);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: var(--shadow-xl);
}

.fab:active {
    transform: scale(0.95) rotate(90deg);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.close-modal {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.close-modal:hover {
    color: var(--danger-color);
    background: var(--bg-light);
    transform: scale(1.1);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 700;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px;
    transition: all 0.2s ease;
    font-family: inherit;
    background: var(--bg-light);
}

.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--card-bg);
}

.modal-content textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

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

.btn-secondary {
    background: var(--bg-lighter);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
    color: var(--text-light);
    grid-column: 1 / -1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* TikTok Style - Mobile Optimized */
@media (max-width: 768px) {
    .products-container {
        height: calc(100vh - 160px);
        padding: 0;
    }
    
    .product-card {
        min-height: calc(100vh - 160px);
        margin-bottom: 8px;
        border-radius: 0;
    }
    
    .product-card:first-child {
        border-top-left-radius: var(--radius-xl);
        border-top-right-radius: var(--radius-xl);
    }
    
    .product-card:last-child {
        border-bottom-left-radius: var(--radius-xl);
        border-bottom-right-radius: var(--radius-xl);
    }
    
    .product-image {
        min-height: 50vh;
        height: 50vh;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .user-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-tabs {
        top: 70px;
        padding: 12px 16px;
    }
    
    .filter-tab {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Desktop Grid View Toggle */
.products-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    height: auto;
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
    overflow-y: visible;
    scroll-snap-type: none;
}

.products-container.grid-view .product-card {
    min-height: auto;
    max-width: none;
    margin: 0;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
}

.products-container.grid-view .product-image {
    height: 200px;
    min-height: 200px;
}

/* View Toggle Button */
.view-toggle {
    position: fixed;
    bottom: 170px;
    left: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.high-contrast {
    --primary-color: #000000;
    --secondary-color: #000000;
    --bg-color: #ffffff;
    --text-color: #000000;
    --card-bg: #ffffff;
}

.large-text {
    font-size: 1.2em;
}

.large-text h1 {
    font-size: 2.5rem;
}

.large-text .product-title {
    font-size: 1.5rem;
}

/* Dark Mode */
body.dark-mode {
    --primary-color: #818cf8;
    --secondary-color: #a78bfa;
    --text-color: #f1f5f9;
    --text-light: #cbd5e1;
    --bg-color: #0f172a;
    --bg-light: #1e293b;
    --bg-lighter: #334155;
    --card-bg: #1e293b;
    --border-color: #334155;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    background: var(--bg-color);
    color: var(--text-color);
}

body.dark-mode .header {
    background: rgba(30, 41, 59, 0.8);
    border-bottom-color: var(--border-color);
}

body.dark-mode .filter-tabs {
    background: var(--card-bg);
    border-bottom-color: var(--border-color);
}

body.dark-mode .filter-tab {
    background: var(--bg-light);
    color: var(--text-color);
    border-color: var(--border-color);
}

body.dark-mode .filter-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

body.dark-mode .product-card {
    background: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

body.dark-mode .modal-content {
    background: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

body.dark-mode .modal-content input,
body.dark-mode .modal-content textarea,
body.dark-mode .modal-content select {
    background: var(--bg-light);
    color: var(--text-color);
    border-color: var(--border-color);
}

body.dark-mode .btn-secondary {
    background: var(--bg-lighter);
    color: var(--text-color);
    border-color: var(--border-color);
}

body.dark-mode .loading {
    color: var(--text-light);
}

/* Donation Footer */
.donation-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 16px 20px;
    text-align: center;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.donation-content {
    max-width: 1200px;
    margin: 0 auto;
}

.donation-content p {
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.donation-form {
    display: inline-block;
    margin: 8px 0;
}

.btn-donate,
a.btn-donate {
    background: #ffc439;
    color: #003087;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.btn-donate:hover,
a.btn-donate:hover {
    background: #ffd700;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.donation-note {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 8px;
}

body.dark-mode .donation-footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

body.dark-mode .btn-donate,
body.dark-mode a.btn-donate {
    background: #ffc439;
    color: #003087;
}

/* Language Menu */
.language-menu {
    position: fixed;
    bottom: 90px;
    left: 20px;
    background: var(--card-bg);
    padding: 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    min-width: 180px;
    border: 1px solid var(--border-color);
}

.language-menu h3 {
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
}

.language-option {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 4px 0;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-weight: 500;
}

.language-option:hover {
    background: var(--secondary-color);
    transform: translateX(-2px);
}

body.dark-mode .language-menu {
    background: var(--card-bg);
    border-color: var(--border-color);
}

body.dark-mode .language-menu h3 {
    color: var(--text-color);
}

/* Advanced Photo Upload Styles */
.upload-section {
    margin: 16px 0;
}

.upload-area {
    position: relative;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 24px;
    border: 2px dashed var(--primary-color);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.upload-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.upload-label:hover::before {
    left: 100%;
}

.upload-label:hover {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.upload-area.drag-over .upload-label {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    animation: bounce 2s infinite;
}

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

.upload-text {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Upload Progress */
.upload-progress {
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-lighter);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    display: block;
}

/* Images Preview Grid */
.images-preview {
    display: none;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.image-preview-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
}

.image-preview-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-preview-item .remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    opacity: 0;
}

.image-preview-item:hover .remove-image {
    opacity: 1;
}

.image-preview-item .remove-image:hover {
    background: var(--danger-color);
    transform: scale(1.1);
}

.image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 4px 8px;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-hint {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 12px;
}

body.dark-mode .upload-label {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.1), rgba(167, 139, 250, 0.1));
}

body.dark-mode .upload-area.drag-over .upload-label {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
}

body.dark-mode .upload-hint {
    color: var(--text-light);
}

body.dark-mode .upload-progress {
    background: var(--bg-light);
    border-color: var(--border-color);
}

/* Professional Enhancements */
.header {
    backdrop-filter: blur(10px);
}

.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-xl);
}

.modal-content {
    backdrop-filter: blur(10px);
}

/* Fun Interactive Elements */
.fab {
    animation: pulse 2s infinite;
}

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

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s;
}

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

/* Security Badge */
.security-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(16, 185, 129, 0.95);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.security-badge::before {
    content: '🔒';
    font-size: 1rem;
}

/* Loading Animation */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 3px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Enhanced Buttons */
.btn-primary, .btn-secondary, .btn-danger {
    position: relative;
    overflow: hidden;
}

.btn-primary::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-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Fun hover effects */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.product-card:hover::after {
    width: 300px;
    height: 300px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Better focus states */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
