/* ===== RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Dark Theme Only */
    --bg-primary: #0a0c10;
    --bg-secondary: #111316;
    --bg-tertiary: #1a1d23;
    --surface: #1e2128;
    --surface-hover: #2a2f3a;
    --text-primary: #ffffff;
    --text-secondary: #9aa3b8;
    --text-tertiary: #6b7280;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --primary-gradient: linear-gradient(135deg, #3b82f6, #2563eb);
    --success: #10b981;
    --success-gradient: linear-gradient(135deg, #10b981, #059669);
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.6), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.8), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    --shadow-glow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(30, 33, 40, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --glass-blur: blur(12px);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== GLASS EFFECT ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--shadow-md);
}

.glass-header {
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
}

/* ===== BUTTONS ===== */
.primary-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.primary-btn:hover::before {
    left: 100%;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5);
}

.secondary-btn {
    background: var(--surface);
    border: var(--glass-border);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.secondary-btn:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--surface);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== NOTIFICATION ===== */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 12px;
    background: var(--surface);
    border: var(--glass-border);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 350px;
    font-weight: 500;
    backdrop-filter: var(--glass-blur);
}

.notification.show {
    transform: translateX(0);
}

.notification.success { border-left: 4px solid var(--success); }
.notification.error { border-left: 4px solid var(--danger); }
.notification.warning { border-left: 4px solid var(--warning); }

/* ===== PURCHASE NOTIFICATION ===== */
.purchase-notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--surface);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9998;
    transform: translateX(-120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 320px;
    backdrop-filter: var(--glass-blur);
}

.purchase-notification.show {
    transform: translateX(0);
}

.purchase-notification i {
    font-size: 24px;
    color: var(--success);
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 24px;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: var(--glass-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1;
}

.close-modal:hover {
    background: var(--surface-hover);
    color: var(--danger);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, #9aa3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-header p {
    color: var(--text-secondary);
}

/* ===== INPUT GROUPS ===== */
.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 18px;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: var(--surface);
    border: var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.input-group input::placeholder {
    color: var(--text-tertiary);
}

.modal-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.modal-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
}

.modal-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.modal-link a:hover {
    text-decoration: underline;
}

/* ===== HEADER ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    animation: fadeInDown 0.5s ease;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo i {
    font-size: 28px;
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
}

.site-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, #9aa3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav {
    display: flex;
    gap: 24px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

/* ===== SEARCH ===== */
.search-container {
    position: relative;
    flex: 0 0 280px;
}

.search-container i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 16px;
}

.search-container input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--surface);
    border: var(--glass-border);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* ===== NAV SECTION ===== */
.nav-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cart-button {
    position: relative;
    background: var(--surface);
    border: var(--glass-border);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.cart-button:hover {
    background: var(--surface-hover);
    color: var(--primary);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary-gradient);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}

.auth-buttons {
    display: flex;
    gap: 8px;
}

.auth-btn {
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.login-btn {
    background: var(--surface);
    border: var(--glass-border);
    color: var(--text-primary);
}

.login-btn:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
}

.register-btn {
    background: var(--primary-gradient);
    color: white;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 10px;
    background: var(--surface);
    border: var(--glass-border);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.user-profile:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.user-info span:first-child {
    font-size: 13px;
    font-weight: 600;
}

.user-balance {
    font-size: 11px;
    color: var(--success);
    font-weight: 600;
}

.mobile-profile-btn {
    display: none;
    background: var(--surface);
    border: var(--glass-border);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.mobile-profile-btn:hover {
    background: var(--surface-hover);
    color: var(--primary);
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
                var(--bg-primary);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: var(--glass-border);
    padding: 8px 20px;
    border-radius: 40px;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-secondary);
    animation: fadeInDown 0.8s ease;
}

#onlineCount {
    color: var(--success);
    font-weight: 700;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.1s both;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: clamp(1rem, 4vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta-container {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-cta {
    min-width: 200px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--surface);
    border: var(--glass-border);
    border-radius: 20px;
    transition: var(--transition);
}

.hero-stat:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
}

.hero-stat i {
    font-size: 32px;
    color: var(--primary);
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    padding: 80px 24px;
    background: var(--bg-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--surface);
    border: var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    animation: scaleIn 0.5s ease;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.category-image {
    height: 120px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-content {
    padding: 15px;
    text-align: center;
}

.category-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-count {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== MAIN LAYOUT ===== */
.main-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* ===== SIDEBAR ===== */
.fixed-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-content {
    padding: 24px;
    border-radius: 24px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: var(--glass-border);
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-filters {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.clear-filters:hover {
    color: var(--danger);
}

.filter-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: var(--glass-border);
}

.filter-group h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.price-range {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.price-slider-container {
    padding: 8px 0;
}

input[type="range"] {
    width: 100%;
    height: 4px;
    background: var(--surface-hover);
    border-radius: 2px;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-option:hover {
    background: var(--surface);
}

.filter-option input {
    display: none;
}

.filter-option .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-tertiary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    transition: var(--transition);
}

.filter-option input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.filter-option span:last-child {
    font-size: 14px;
}

.apply-filters-btn {
    width: 100%;
    margin-top: 16px;
}

/* ===== CONTENT (PRODUCTS) ===== */
.content {
    background: var(--surface);
    border: var(--glass-border);
    border-radius: 24px;
    padding: 30px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.sort-select {
    background: var(--bg-tertiary);
    border: var(--glass-border);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-toggle {
    display: none;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    align-items: center;
    gap: 8px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: var(--bg-tertiary);
    border: var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    animation: scaleIn 0.5s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-gradient);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}

.product-badge.sale { background: linear-gradient(135deg, #ef4444, #dc2626); }
.product-badge.bestseller { background: linear-gradient(135deg, #f59e0b, #d97706); }

.product-image {
    height: 140px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: 16px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-title span {
    font-size: 12px;
    color: var(--warning);
    display: flex;
    align-items: center;
    gap: 2px;
}

.product-platform {
    display: inline-block;
    padding: 2px 8px;
    background: var(--surface);
    border: var(--glass-border);
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 8px;
}

.product-description {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-currency {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--warning);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.original-price {
    font-size: 13px;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.add-to-cart-btn {
    width: 100%;
    padding: 8px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px -3px rgba(59, 130, 246, 0.4);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:not(:disabled):hover {
    background: var(--primary-gradient);
    transform: translateY(-2px);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-number {
    min-width: 40px;
    height: 40px;
    background: var(--surface);
    border: var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.page-number:hover {
    background: var(--surface-hover);
}

.page-number.active {
    background: var(--primary-gradient);
    border-color: transparent;
}

.page-dots {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    padding: 0 4px;
}

/* ===== PRODUCT DETAIL MODAL ===== */
.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.product-detail-image {
    width: 100%;
    border-radius: 20px;
}

.product-detail-info {
    padding: 20px 0;
}

.product-detail-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.stars {
    color: var(--warning);
    font-size: 18px;
}

.feature-list {
    list-style: none;
    margin: 20px 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--surface);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.feature-list i {
    color: var(--success);
}

.guarantee-box {
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
}

/* ===== USDT NETWORKS ===== */
.usdt-networks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.network-card {
    background: var(--surface);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.network-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.network-card.active {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.network-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--primary);
}

.network-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.network-fee {
    font-size: 11px;
    color: var(--text-secondary);
}

.amount-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 20px 0;
}

.amount-preset {
    padding: 12px;
    background: var(--surface);
    border: var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.amount-preset:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.custom-amount {
    position: relative;
    margin: 20px 0;
}

.custom-amount input {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface);
    border: var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
}

.custom-amount span {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.wallet-address-box {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: 12px;
    font-family: monospace;
    word-break: break-all;
    font-size: 13px;
    margin: 20px 0;
}

.copy-btn {
    width: 100%;
    padding: 12px;
    background: var(--surface);
    border: var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copy-btn:hover {
    background: var(--primary);
}

.qr-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.qr-container canvas {
    border-radius: 12px;
    padding: 10px;
    background: white;
}

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

/* ===== CART ===== */
.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 8px;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    overflow: hidden;
}

.cart-item-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-details {
    font-size: 12px;
    color: var(--text-secondary);
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    background: var(--danger);
    color: white;
}

.cart-summary {
    background: var(--surface);
    border-radius: 16px;
    padding: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    border-top: var(--glass-border);
    padding-top: 12px;
    margin-top: 12px;
}

.balance-info {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.success-color {
    color: var(--success);
    font-weight: 700;
}

.payment-options {
    margin: 20px 0;
}

.payment-title {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.payment-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ===== PROFILE ===== */
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    margin: 0 auto 20px;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.profile-stat {
    text-align: center;
    padding: 20px;
    background: var(--surface);
    border-radius: 16px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.profile-actions {
    display: grid;
    gap: 10px;
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--bg-secondary);
    border-top: var(--glass-border);
    padding: 60px 24px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 20px 0;
    font-size: 14px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo i {
    font-size: 28px;
    color: var(--primary);
}

.footer-logo span {
    font-size: 20px;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-links a,
.footer-contact a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: var(--glass-border);
    color: var(--text-tertiary);
    font-size: 13px;
}

/* ===== BOTTOM NAVIGATION (MOBILE) ===== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-top: var(--glass-border);
    padding: 8px 12px;
    z-index: 999;
    justify-content: space-around;
}

.bottom-nav-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 12px;
    position: relative;
}

.bottom-nav-item i {
    font-size: 20px;
}

.bottom-nav-item.active {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.bottom-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary-gradient);
    color: white;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 250px 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
        padding: 12px 16px;
    }
    
    .main-nav {
        order: 2;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    
    .search-container {
        order: 3;
        flex: 1;
        min-width: 200px;
    }
    
    .nav-section {
        order: 1;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-header .auth-buttons,
    .main-header .user-profile {
        display: none !important;
    }
    
    .mobile-profile-btn {
        display: flex;
    }
    
    .main-container {
        grid-template-columns: 1fr;
    }
    
    .fixed-sidebar {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 80vh;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        padding: 0 16px;
    }
    
    .fixed-sidebar.active {
        transform: translateY(0);
    }
    
    .filter-toggle {
        display: flex;
    }
    
    .sorting {
        margin-left: auto;
    }
    
    .content-header {
        flex-wrap: wrap;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-cta-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-cta {
        width: 100%;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-detail-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .bottom-nav {
        display: flex;
    }
    
    body {
        padding-bottom: 70px;
    }
    
    .notification {
        top: auto;
        bottom: 90px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
    
    .purchase-notification {
        left: 16px;
        right: 16px;
        max-width: none;
        bottom: 90px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .usdt-networks {
        grid-template-columns: 1fr;
    }
    
    .amount-presets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-buttons {
        grid-template-columns: 1fr;
    }
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* ===== ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ ПРОФИЛЯ ===== */

/* Кнопки в профиле */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.profile-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-btn.primary-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.profile-btn.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.5);
}

.profile-btn.logout-btn {
    background: var(--surface);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.profile-btn.logout-btn:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(239, 68, 68, 0.3);
}

/* Аватар в профиле */
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: white;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.3);
}

/* Статистика в профиле */
.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0;
}

.profile-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.profile-stat:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Имя и email в профиле */
#profileName {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5px;
    color: var(--text-primary);
}

#profileEmail {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}