/* ============================================ */
/* ========== MARKETPLACE СТИЛИ ========== */
/* ============================================ */

/* ----- 1. ГЛАВНАЯ СТРАНИЦА МАРКЕТПЛЕЙСА ----- */
.marketplace-page {
    margin-top: 100px;
    padding: 0 0 60px;
    min-height: calc(100vh - 160px);
}

.marketplace-header {
    text-align: center;
    margin-bottom: 40px;
}

.marketplace-header h1 {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.marketplace-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ----- ПОИСКОВАЯ СТРОКА + КНОПКА ----- */
.marketplace-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.search-bar {
    flex: 1;
    position: relative;
}

.search-bar i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-primary);
    font-size: 18px;
}

.search-bar input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(125, 78, 255, 0.3);
    border-radius: 40px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all var(--transition-base);
}

.search-bar input:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 20px rgba(125, 78, 255, 0.3);
}

.add-listing-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 0 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.add-listing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(95, 59, 255, 0.6);
}

/* ----- ФИЛЬТРЫ (КАТЕГОРИИ) ----- */
.marketplace-filters {
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(20, 20, 30, 0.8);
    border: 2px solid rgba(125, 78, 255, 0.3);
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(95, 59, 255, 0.4);
}

/* ----- СЕТКА ТОВАРОВ ----- */
.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Карточка товара */
.listing-card {
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(125, 78, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.listing-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(125, 78, 255, 0.4);
}

.listing-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-card:hover .listing-image {
    transform: scale(1.05);
}

.listing-info {
    padding: 18px;
}

.listing-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.listing-type {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(125, 78, 255, 0.2);
    border: 1px solid var(--accent-primary);
    border-radius: 20px;
    color: var(--accent-primary);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

.listing-seller {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.listing-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.buy-btn-small {
    width: 100%;
    padding: 10px;
    background: var(--gradient-success);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* ----- ПАГИНАЦИЯ ----- */
.marketplace-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

/* ----- ПУСТОЕ СОСТОЯНИЕ ----- */
.empty-marketplace {
    text-align: center;
    padding: 80px 20px;
    background: rgba(20, 20, 30, 0.5);
    border-radius: 30px;
}

.empty-marketplace i {
    font-size: 64px;
    color: var(--accent-primary);
    opacity: 0.5;
    margin-bottom: 20px;
}

.empty-marketplace h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* ============================================ */
/* ========== СТРАНИЦА ПРОДАЖИ (SELL) ========== */
/* ============================================ */

.sell-page {
    margin-top: 100px;
    padding: 40px 0 80px;
    min-height: calc(100vh - 160px);
}

.sell-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent-primary);
    border-radius: 30px;
    padding: 40px;
}

.sell-container h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    text-align: center;
}

.sell-container > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Пошаговая форма */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(125, 78, 255, 0.3);
    z-index: 1;
}

.step {
    text-align: center;
    z-index: 2;
    background: var(--bg-card);
    padding: 0 15px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: rgba(125, 78, 255, 0.2);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
}

.step.active .step-number {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 0 20px var(--accent-primary);
}

.step-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.step.active .step-label {
    color: var(--accent-primary);
}

/* Шаги формы */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active-step {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Категории выбора */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.category-option {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(125, 78, 255, 0.3);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-option:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.category-option.selected {
    border-color: var(--accent-primary);
    background: rgba(125, 78, 255, 0.1);
    box-shadow: 0 0 20px rgba(125, 78, 255, 0.3);
}

.category-option i {
    font-size: 48px;
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.category-option h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.category-option p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Типы товаров */
.type-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.type-option {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(125, 78, 255, 0.3);
    border-radius: 30px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.type-option:hover {
    border-color: var(--accent-primary);
}

.type-option.selected {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

/* Форма для "другое" */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(125, 78, 255, 0.3);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 20px rgba(125, 78, 255, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Загрузка изображения */
.image-upload-area {
    border: 2px dashed rgba(125, 78, 255, 0.4);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-upload-area:hover {
    border-color: var(--accent-primary);
    background: rgba(125, 78, 255, 0.05);
}

.image-upload-area i {
    font-size: 48px;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.image-preview {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--accent-primary);
}

/* Инвентарь Steam */
.steam-inventory {
    margin-top: 20px;
    display: none;
}

.steam-inventory.active {
    display: block;
}

.inventory-url-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.inventory-url-input input {
    flex: 1;
    padding: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(125, 78, 255, 0.3);
    border-radius: 16px;
    color: white;
}

.load-inventory-btn {
    padding: 14px 24px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 16px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.inventory-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.inventory-item {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(125, 78, 255, 0.3);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inventory-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.inventory-item.selected {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.inventory-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.inventory-item-name {
    font-size: 12px;
    margin-top: 8px;
}

/* Кнопки навигации */
.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.prev-btn, .next-btn, .submit-btn {
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
}

.prev-btn:hover {
    background: rgba(125, 78, 255, 0.1);
}

.next-btn, .submit-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.next-btn:hover, .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(95, 59, 255, 0.5);
}

/* ============================================ */
/* ========== СТРАНИЦА ТОВАРА ========== */
/* ============================================ */

.product-market-page {
    margin-top: 100px;
    padding: 40px 0 80px;
}

.product-market-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.product-market-image img {
    width: 100%;
    border-radius: 24px;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 20px 40px rgba(125, 78, 255, 0.4);
}

.product-market-info h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.product-market-type {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(125, 78, 255, 0.2);
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 20px;
}

.product-market-seller {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    border-top: 1px solid rgba(125, 78, 255, 0.2);
    border-bottom: 1px solid rgba(125, 78, 255, 0.2);
    margin-bottom: 20px;
}

.seller-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.product-market-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent-primary);
    margin: 20px 0;
}

.buy-now-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-success);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.5);
}

/* Адаптация */
@media (max-width: 768px) {
    .product-market-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .step-indicator::before {
        display: none;
    }
    
    .step {
        padding: 0 5px;
    }
    
    .step-label {
        font-size: 10px;
    }
}
/* Модальное окно для пополнения Steam */
.steam-modal {
    animation: fadeIn 0.3s ease;
}

.steam-modal > div {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* ========== ПОПОЛНЕНИЕ STEAM (ОТДЕЛЬНЫЙ РАЗДЕЛ) ========== */
.steam-topup-section {
    margin-bottom: 40px;
}

.steam-topup-card {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.9), rgba(30, 30, 50, 0.9));
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent-primary);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(125, 78, 255, 0.3);
    transition: all 0.3s ease;
}

.steam-topup-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px rgba(125, 78, 255, 0.4);
}

.steam-topup-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.steam-topup-header i {
    font-size: 48px;
    color: #1b2838;
    background: white;
    padding: 10px;
    border-radius: 20px;
}

.steam-topup-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.steam-topup-card > p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 14px;
}

.steam-topup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.steam-topup-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.steam-topup-form .form-group label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.steam-topup-form .form-group label i {
    color: var(--accent-primary);
    margin-right: 8px;
}

.steam-topup-form .form-group input {
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(125, 78, 255, 0.3);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.steam-topup-form .form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(125, 78, 255, 0.3);
}

.steam-topup-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #1b2838, #2c3e50);
    border: none;
    border-radius: 16px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.steam-topup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(27, 40, 56, 0.5);
    background: linear-gradient(135deg, #2c3e50, #1b2838);
}

@media (max-width: 768px) {
    .steam-topup-card {
        padding: 20px;
    }
    
    .steam-topup-header i {
        font-size: 36px;
    }
    
    .steam-topup-header h2 {
        font-size: 22px;
    }
}
/* ========== СТРАНИЦА ТОВАРА МАРКЕТПЛЕЙСА ========== */
.product-market-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-market-image img {
    width: 100%;
    border-radius: 24px;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 20px 40px rgba(125, 78, 255, 0.3);
}

.product-market-info h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.product-market-type {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(125, 78, 255, 0.2);
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 20px;
}

.product-market-seller {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid rgba(125, 78, 255, 0.2);
    border-bottom: 1px solid rgba(125, 78, 255, 0.2);
    margin-bottom: 20px;
}

.seller-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.seller-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.seller-rating i {
    color: #ffc107;
    font-size: 12px;
}

.product-market-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent-primary);
    margin: 20px 0;
}

.buy-now-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-success);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.buy-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.5);
}

.owner-badge {
    padding: 12px;
    background: rgba(125, 78, 255, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    text-align: center;
}

/* Чат */
.chat-section {
    grid-column: span 2;
    background: rgba(20, 20, 30, 0.8);
    border-radius: 24px;
    border: 2px solid var(--accent-primary);
    margin-top: 30px;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(125, 78, 255, 0.3);
}

.chat-header h3 {
    margin: 0;
    flex: 1;
}

.chat-status {
    font-size: 12px;
    padding: 4px 12px;
    background: #10b981;
    border-radius: 20px;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 16px;
    word-wrap: break-word;
}

.chat-message.my-message {
    align-self: flex-end;
    background: var(--gradient-primary);
    border-radius: 16px 16px 4px 16px;
}

.chat-message.other-message {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px 16px 16px 4px;
}

.message-sender {
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.message-time {
    font-size: 10px;
    opacity: 0.5;
    margin-top: 4px;
    text-align: right;
}

.chat-input-area {
    display: flex;
    padding: 15px;
    gap: 10px;
    border-top: 1px solid rgba(125, 78, 255, 0.3);
}

.chat-input-area input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(125, 78, 255, 0.3);
    border-radius: 30px;
    color: white;
}

.chat-input-area button {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
}

.chat-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Отзывы о продавце */
.seller-reviews {
    grid-column: span 2;
    margin-top: 30px;
}

.seller-reviews h3 {
    margin-bottom: 20px;
}

.seller-rating-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(125, 78, 255, 0.2);
}

.rating-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-primary);
}

.rating-stars i {
    color: #ffc107;
}

.add-review-form {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(125, 78, 255, 0.2);
}

.star-rating-input {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.star-rating-input i {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.star-rating-input i.fas {
    color: #ffc107;
}

/* Модальное окно оплаты */
.payment-card {
    background: rgba(20, 20, 30, 0.95);
    border: 2px solid var(--accent-primary);
    border-radius: 30px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.payment-icon i {
    font-size: 64px;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.payment-form {
    text-align: left;
    margin: 25px 0;
}

.payment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.payment-form input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(125, 78, 255, 0.3);
    border-radius: 12px;
    color: white;
}

.payment-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.payment-buttons .btn-primary,
.payment-buttons .btn-secondary {
    flex: 1;
    padding: 14px;
}

.payment-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 15px;
}

@media (max-width: 768px) {
    .product-market-layout {
        grid-template-columns: 1fr;
    }
    
    .chat-section,
    .seller-reviews {
        grid-column: span 1;
    }
    
    .chat-message {
        max-width: 85%;
    }
}
/* ========== МОИ ТОВАРЫ ========== */
.my-listings-page {
    margin-top: 100px;
    padding-bottom: 60px;
}

.my-listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.my-listings-header h1 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Уведомления */
.notifications-panel {
    background: rgba(20, 20, 30, 0.8);
    border-radius: 20px;
    border: 2px solid rgba(125, 78, 255, 0.3);
    margin-bottom: 30px;
    overflow: hidden;
}

.notifications-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(125, 78, 255, 0.3);
}

.notifications-header h3 {
    margin: 0;
    flex: 1;
}

.notifications-count {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
}

.notifications-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(125, 78, 255, 0.1);
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: rgba(125, 78, 255, 0.1);
}

.notification-item.unread {
    background: rgba(125, 78, 255, 0.05);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.notification-icon.purchase_request { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.notification-icon.purchase_accepted { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.notification-icon.purchase_declined { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.notification-icon.sale_completed { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 13px;
    color: var(--text-secondary);
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Вкладки */
.listings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(125, 78, 255, 0.3);
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 30px;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Сетка товаров */
.listings-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.listing-item {
    display: flex;
    gap: 20px;
    background: rgba(20, 20, 30, 0.8);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid rgba(125, 78, 255, 0.3);
    transition: all 0.2s;
}

.listing-item:hover {
    border-color: var(--accent-primary);
}

.listing-item.sold {
    opacity: 0.7;
}

.listing-item .listing-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

.listing-details {
    flex: 1;
}

.listing-details h3 {
    margin-bottom: 8px;
}

.listing-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.listing-type {
    padding: 4px 12px;
    background: rgba(125, 78, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
}

.listing-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
}

.listing-price.sold-price {
    color: var(--text-secondary);
    text-decoration: line-through;
}

.listing-actions {
    display: flex;
    gap: 10px;
}

.listing-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 120px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* Заявки на покупку */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.request-card {
    background: rgba(20, 20, 30, 0.8);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid rgba(125, 78, 255, 0.3);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(125, 78, 255, 0.2);
}

.buyer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.buyer-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.buyer-name {
    font-weight: 600;
}

.request-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.request-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.request-status.pending { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.request-status.accepted { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.request-status.declined { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.request-details h4 {
    margin-bottom: 10px;
}

.request-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.request-message {
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    color: var(--text-secondary);
    font-style: italic;
}

.request-message i {
    margin-right: 8px;
    color: var(--accent-primary);
}

.request-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(125, 78, 255, 0.2);
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(20, 20, 30, 0.5);
    border-radius: 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--accent-primary);
    opacity: 0.5;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.sold-info {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .listing-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .listing-stats {
        flex-direction: row;
        justify-content: center;
    }
    
    .request-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .request-actions {
        flex-wrap: wrap;
    }
}
/* ========== КРАСИВЫЕ ОТЗЫВЫ ДЛЯ МАРКЕТПЛЕЙСА ========== */
.seller-reviews {
    grid-column: span 2;
    margin-top: 40px;
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent-primary);
    border-radius: 24px;
    padding: 30px;
}

.seller-reviews h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.seller-reviews h3 i {
    color: var(--accent-primary);
}

.seller-rating-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.seller-rating-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
}

.seller-rating-stars .stars {
    font-size: 16px;
    letter-spacing: 2px;
}

.seller-rating-stars .stars i {
    color: #ffc107;
}

.seller-rating-count {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 5px;
}

/* Карточка отзыва */
.seller-reviews .review-card {
    background: rgba(20, 20, 30, 0.5);
    border: 1px solid rgba(125, 78, 255, 0.3);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.seller-reviews .review-card:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.seller-reviews .review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.seller-reviews .review-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #5f3bff, #9d7aff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
}

.seller-reviews .review-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.seller-reviews .review-date {
    color: var(--text-secondary);
    font-size: 11px;
}

.seller-reviews .review-rating {
    margin-left: auto;
    color: #ffc107;
    font-size: 12px;
}

.seller-reviews .review-text {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 14px;
    margin-top: 8px;
    padding-left: 12px;
    border-left: 3px solid var(--accent-primary);
}

/* Пустое состояние */
.seller-reviews .reviews-empty {
    text-align: center;
    padding: 40px 20px;
    background: rgba(20, 20, 30, 0.5);
    border-radius: 16px;
}

.seller-reviews .reviews-empty i {
    font-size: 48px;
    color: var(--accent-primary);
    opacity: 0.5;
    margin-bottom: 12px;
}

.seller-reviews .reviews-empty p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* КРАСИВАЯ ФОРМА ОТЗЫВА */
.seller-reviews .add-review-form {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(125, 78, 255, 0.3);
}

.seller-reviews .add-review-form h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.seller-reviews .star-rating-input {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.seller-reviews .star-rating-input i {
    font-size: 28px;
    cursor: pointer;
    color: #4a4a6a;
    transition: all 0.2s;
}

.seller-reviews .star-rating-input i:hover,
.seller-reviews .star-rating-input i.active {
    color: #ffc107;
    text-shadow: 0 0 8px #ffc107;
}

/* КРАСИВОЕ ПОЛЕ ВВОДА */
.seller-reviews .review-textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(125, 78, 255, 0.3);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.seller-reviews .review-textarea:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 15px rgba(125, 78, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.seller-reviews .review-textarea::placeholder {
    color: var(--text-muted);
    font-size: 13px;
}

/* КРАСИВАЯ КНОПКА */
.seller-reviews .submit-review-btn {
    background: linear-gradient(135deg, #5f3bff, #9d7aff);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(95, 59, 255, 0.3);
}

.seller-reviews .submit-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(95, 59, 255, 0.5);
}

@media (max-width: 768px) {
    .seller-reviews {
        grid-column: span 1;
        padding: 20px;
    }
    
    .seller-reviews .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .seller-reviews .review-rating {
        margin-left: 0;
    }
    
    .seller-reviews .star-rating-input i {
        font-size: 22px;
    }
}
/* Анимации для модального окна */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { opacity: 0; transform: scale(0.95) translateY(-20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.delete-confirm-modal {
    animation: fadeIn 0.3s ease;
}

.delete-confirm-card {
    animation: slideIn 0.3s ease;
}