        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}
.cancellation-info {
    background: rgba(244, 67, 54, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 8px;
    border-left: 3px solid var(--error);
    font-size: 12px;
}
    .guarantor-badge {
        background: var(--accent-primary);
        color: white;
        padding: 2px 6px;
        border-radius: 8px;
        font-size: 10px;
        margin-left: 6px;
    }
    
    .system-badge {
        background: var(--warning);
        color: white;
        padding: 2px 6px;
        border-radius: 8px;
        font-size: 10px;
        margin-left: 6px;
    }
    
    .system-message {
        background: rgba(255, 152, 0, 0.1) !important;
        border: 1px solid rgba(255, 152, 0, 0.3);
        align-self: center !important;
        max-width: 80%;
    }

    /* Стили для панели гаранта */
.guarantor-profile {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.profile-name {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-rating {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--accent-primary);
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

.detail-value.online {
    color: var(--success-color);
}

.detail-value.offline {
    color: var(--error-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8em;
    color: var(--text-secondary);
}

/* Статус-баджи */
.status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
}

  .status-badge {
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
        }
        .status-pending {
            background: rgba(255, 152, 0, 0.1);
            color: var(--warning);
            border: 1px solid rgba(255, 152, 0, 0.3);
        }
        .status-active {
            background: rgba(76, 175, 80, 0.1);
            color: var(--success);
            border: 1px solid rgba(76, 175, 80, 0.3);
        }
        .status-warning {
            background: rgba(255, 193, 7, 0.1);
            color: #ffc107;
            border: 1px solid rgba(255, 193, 7, 0.3);
        }
        .status-success {
            background: rgba(76, 175, 80, 0.1);
            color: var(--success);
            border: 1px solid rgba(76, 175, 80, 0.3);
        }
        .status-error {
            background: rgba(244, 67, 54, 0.1);
            color: var(--error);
            border: 1px solid rgba(244, 67, 54, 0.3);
        }

                    .guarantor-order-details {
                font-family: system-ui, -apple-system, sans-serif;
            }
            
            .order-details-content {
                padding: 0;
            }
            
            .details-section {
                padding: 20px;
                border-bottom: 1px solid rgba(255,255,255,0.1);
            }
            
            .details-section:last-child {
                border-bottom: none;
            }
            
            .section-title {
                font-size: 16px;
                font-weight: 600;
                margin-bottom: 16px;
                color: var(--accent-primary);
                display: flex;
                align-items: center;
                gap: 8px;
            }
            
            .info-grid {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 12px;
            }
            
            .info-item {
                display: flex;
                flex-direction: column;
                gap: 4px;
            }
            
            .info-label {
                font-size: 12px;
                color: var(--text-secondary);
                font-weight: 500;
            }
            
            .info-value {
                font-size: 14px;
                font-weight: 600;
                color: var(--text-primary);
            }
            
            .total-amount {
                grid-column: 1 / -1;
                padding: 12px;
                background: rgba(108, 99, 255, 0.1);
                border-radius: 8px;
                border-left: 4px solid var(--accent-primary);
            }
            
            .total-amount .info-value {
                font-size: 18px;
                color: var(--accent-primary);
            }
            
            .commission-amount {
                color: var(--warning) !important;
            }
            
            .status-confirmed {
                color: var(--success);
            }
            
            .status-ready {
                color: var(--warning);
            }
            
            .status-completed {
                color: var(--accent-primary);
            }
            
            .order-notes {
                background: rgba(255,255,255,0.05);
                padding: 16px;
                border-radius: 8px;
                line-height: 1.5;
                font-size: 14px;
                white-space: pre-wrap;
            }
            
            .files-list {
                display: flex;
                flex-direction: column;
                gap: 8px;
            }
            
            .file-item {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 12px;
                background: rgba(255,255,255,0.05);
                border-radius: 8px;
                transition: all 0.3s ease;
            }
            
            .file-item:hover {
                background: rgba(255,255,255,0.08);
                transform: translateY(-1px);
            }
            
            .file-info {
                display: flex;
                align-items: center;
                gap: 12px;
                flex: 1;
            }
            
            .file-icon {
                font-size: 18px;
            }
            
            .file-details {
                display: flex;
                flex-direction: column;
                gap: 2px;
            }
            
            .file-name {
                font-weight: 600;
                font-size: 14px;
            }
            
            .file-description {
                font-size: 12px;
                color: var(--text-secondary);
            }
            
            .file-size {
                font-size: 11px;
                color: var(--text-secondary);
            }
            
            .empty-files {
                display: flex;
                flex-direction: column;
                align-items: center;
                padding: 40px 20px;
                color: var(--text-secondary);
            }
            
            .empty-icon {
                font-size: 48px;
                margin-bottom: 12px;
                opacity: 0.5;
            }
            
            .empty-text {
                font-size: 14px;
            }
            
            .actions-section {
                background: rgba(108, 99, 255, 0.05);
                margin: 0;
            }
            
            .guarantor-actions {
                display: flex;
                flex-direction: column;
                gap: 20px;
            }
            
            .action-buttons {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                gap: 12px;
            }
            
            .action-btn {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 8px;
                padding: 16px 12px;
                height: auto;
                min-height: 80px;
                text-align: center;
            }
            
            .btn-icon {
                font-size: 20px;
            }
            
            .btn-text {
                font-size: 13px;
                font-weight: 600;
                line-height: 1.2;
            }
            
            .status-info {
                padding: 16px;
                background: rgba(255,255,255,0.05);
                border-radius: 8px;
            }
            
            .status-timeline {
                display: flex;
                justify-content: space-between;
                align-items: center;
                position: relative;
            }
            
            .timeline-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 8px;
                flex: 1;
                position: relative;
                z-index: 2;
            }
            
            .timeline-item.active .timeline-icon {
                background: var(--accent-primary);
                color: white;
                transform: scale(1.1);
            }
            
            .timeline-item.current .timeline-icon {
                box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.3);
            }
            
            .timeline-icon {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                background: rgba(255,255,255,0.1);
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 16px;
                transition: all 0.3s ease;
            }
            
            .timeline-label {
                font-size: 11px;
                color: var(--text-secondary);
                text-align: center;
                font-weight: 500;
            }
            
            .timeline-connector {
                position: absolute;
                top: 20px;
                right: -50%;
                width: 100%;
                height: 2px;
                background: rgba(255,255,255,0.2);
                z-index: 1;
            }
            
            .timeline-item.active .timeline-connector {
                background: var(--accent-primary);
            }
            
            /* Адаптивность для мобильных */
            @media (max-width: 768px) {
                .info-grid {
                    grid-template-columns: 1fr;
                }
                
                .action-buttons {
                    grid-template-columns: 1fr;
                }
                
                .action-btn {
                    min-height: 70px;
                    padding: 12px 8px;
                }
                
                .status-timeline {
                    flex-direction: column;
                    gap: 16px;
                    align-items: flex-start;
                }
                
                .timeline-item {
                    flex-direction: row;
                    width: 100%;
                    gap: 12px;
                }
                
                .timeline-connector {
                    display: none;
                }
            }

               .guarantor-order-details-modal .modal-content {
                background: var(--card-bg);
                border-radius: 12px;
                box-shadow: 0 10px 40px rgba(0,0,0,0.3);
                border: 1px solid rgba(255,255,255,0.1);
            }
            
            .guarantor-order-details-modal .modal-header {
                padding: 20px 24px;
                border-bottom: 1px solid rgba(255,255,255,0.1);
                background: rgba(108, 99, 255, 0.05);
                border-radius: 12px 12px 0 0;
            }
            
            .guarantor-order-details-modal .modal-title {
                font-size: 18px;
                font-weight: 700;
                color: var(--text-primary);
                margin: 0;
            }
            
            .guarantor-order-details-modal .modal-body {
                padding: 0;
            }
            
            .details-section {
                padding: 24px;
                border-bottom: 1px solid rgba(255,255,255,0.05);
            }
            
            .details-section:last-child {
                border-bottom: none;
            }
            
            .section-header {
                display: flex;
                align-items: center;
                gap: 12px;
                margin-bottom: 20px;
            }
            
            .section-header h4 {
                font-size: 16px;
                font-weight: 600;
                color: var(--text-primary);
                margin: 0;
            }
            
            .section-icon {
                font-size: 20px;
                width: 32px;
                height: 32px;
                display: flex;
                align-items: center;
                justify-content: center;
                background: rgba(108, 99, 255, 0.1);
                border-radius: 8px;
            }
            
            .info-grid {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 16px;
            }
            
            .info-item {
                display: flex;
                flex-direction: column;
                gap: 6px;
            }
            
            .info-label {
                font-size: 13px;
                color: var(--text-secondary);
                font-weight: 500;
            }
            
            .info-value {
                font-size: 14px;
                font-weight: 600;
                color: var(--text-primary);
            }
            
            .status-badge {
                display: inline-block;
                padding: 4px 12px;
                border-radius: 20px;
                font-size: 12px;
                font-weight: 600;
            }
            
            .status-confirmed {
                background: rgba(76, 175, 80, 0.15);
                color: #4CAF50;
                border: 1px solid rgba(76, 175, 80, 0.3);
            }
            
            .status-ready {
                background: rgba(255, 152, 0, 0.15);
                color: #FF9800;
                border: 1px solid rgba(255, 152, 0, 0.3);
            }
            
            .status-completed {
                background: rgba(108, 99, 255, 0.15);
                color: #6C63FF;
                border: 1px solid rgba(108, 99, 255, 0.3);
            }
            
            .total-amount {
                grid-column: 1 / -1;
                padding: 16px;
                background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(108, 99, 255, 0.05));
                border-radius: 12px;
                border-left: 4px solid var(--accent-primary);
                margin-top: 8px;
            }
            
            .total-amount .info-value {
                font-size: 20px;
                color: var(--accent-primary);
            }
            
            .commission-amount {
                color: #FF9800 !important;
            }
            
            .order-notes {
                background: rgba(255,255,255,0.03);
                padding: 16px;
                border-radius: 8px;
                line-height: 1.5;
                font-size: 14px;
                white-space: pre-wrap;
                border: 1px solid rgba(255,255,255,0.05);
            }
            
            .files-list {
                display: flex;
                flex-direction: column;
                gap: 8px;
            }
            
            .file-item {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 12px 16px;
                background: rgba(255,255,255,0.03);
                border-radius: 8px;
                border: 1px solid rgba(255,255,255,0.05);
                transition: all 0.2s ease;
            }
            
            .file-item:hover {
                background: rgba(255,255,255,0.05);
                transform: translateY(-1px);
            }
            
            .file-info {
                display: flex;
                align-items: center;
                gap: 12px;
                flex: 1;
            }
            
            .file-icon {
                font-size: 16px;
                opacity: 0.8;
            }
            
            .file-details {
                display: flex;
                flex-direction: column;
                gap: 2px;
            }
            
            .file-name {
                font-weight: 600;
                font-size: 14px;
                color: var(--text-primary);
            }
            
            .file-description {
                font-size: 12px;
                color: var(--text-secondary);
            }
            
            .download-btn {
                padding: 8px 12px !important;
                min-width: auto !important;
            }
            
            .empty-state {
                display: flex;
                flex-direction: column;
                align-items: center;
                padding: 40px 20px;
                color: var(--text-secondary);
            }
            
            .empty-state .empty-icon {
                font-size: 48px;
                margin-bottom: 12px;
                opacity: 0.3;
            }
            
            .empty-state .empty-text {
                font-size: 14px;
            }
            
            .status-timeline {
                display: flex;
                justify-content: space-between;
                align-items: center;
                position: relative;
                padding: 20px 0;
            }
            
            .timeline-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 8px;
                flex: 1;
                position: relative;
                z-index: 2;
            }
            
            .timeline-icon {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                background: rgba(255,255,255,0.1);
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 16px;
                transition: all 0.3s ease;
                border: 2px solid transparent;
            }
            
            .timeline-item.active .timeline-icon {
                background: var(--accent-primary);
                color: white;
                transform: scale(1.1);
            }
            
            .timeline-item.current .timeline-icon {
                box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.3);
                border-color: var(--accent-primary);
            }
            
            .timeline-label {
                font-size: 11px;
                color: var(--text-secondary);
                text-align: center;
                font-weight: 500;
                max-width: 80px;
                line-height: 1.2;
            }
            
            .timeline-item.active .timeline-label {
                color: var(--accent-primary);
                font-weight: 600;
            }
            
            .timeline-connector {
                position: absolute;
                top: 20px;
                right: -50%;
                width: 100%;
                height: 2px;
                background: rgba(255,255,255,0.2);
                z-index: 1;
            }
            
            .timeline-item.active .timeline-connector {
                background: var(--accent-primary);
            }
            
            .guarantor-actions {
                width: 100%;
            }
            
            .action-buttons {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
                gap: 12px;
            }
            
            .action-btn {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 8px;
                padding: 16px 12px;
                height: auto;
                min-height: 70px;
                text-align: center;
                border-radius: 10px;
                transition: all 0.2s ease;
            }
            
            .action-btn:hover {
                transform: translateY(-2px);
            }
            
            .btn-icon {
                font-size: 20px;
            }
            
            .btn-text {
                font-size: 12px;
                font-weight: 600;
                line-height: 1.2;
            }
            
            /* Адаптивность для мобильных */
            @media (max-width: 768px) {
                .guarantor-order-details-modal .modal-content {
                    margin: 20px;
                    width: calc(100% - 40px);
                }
                
                .info-grid {
                    grid-template-columns: 1fr;
                    gap: 12px;
                }
                
                .action-buttons {
                    grid-template-columns: 1fr;
                }
                
                .action-btn {
                    min-height: 60px;
                    padding: 12px 8px;
                }
                
                .status-timeline {
                    flex-direction: column;
                    gap: 20px;
                    align-items: flex-start;
                }
                
                .timeline-item {
                    flex-direction: row;
                    width: 100%;
                    gap: 16px;
                }
                
                .timeline-connector {
                    display: none;
                }
                
                .timeline-label {
                    max-width: none;
                    text-align: left;
                }
            }
            
            @media (max-width: 480px) {
                .details-section {
                    padding: 16px;
                }
                
                .guarantor-order-details-modal .modal-header {
                    padding: 16px 20px;
                }
            }

.status-pending { background: var(--warning-color); color: white; }
.status-warning { background: var(--warning-color); color: white; }
.status-info { background: var(--info-color); color: white; }
.status-success { background: var(--success-color); color: white; }
.status-completed { background: var(--success-color); color: white; }
.status-cancelled { background: var(--error-color); color: white; }
.status-primary { background: var(--accent-primary); color: white; }
.status-danger { background: var(--error-color); color: white; }
.status-default { background: var(--text-secondary); color: white; }

.cancellation-info strong {
    color: var(--error);
    display: block;
    margin-bottom: 4px;
}

.cancellation-reason {
    color: var(--text-primary);
    word-break: break-word;
}
/* Улучшение всех модальных окон */
.modal-content {
    max-width: 500px;
    width: 95vw;
    margin: 20px auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


/* Добавьте эти стили в существующий CSS */
.card-title {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
}

.word-wrap-fix {
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    line-height: 1.4 !important;
}

/* Для карточек товаров в разделе "Мои товары" */
#my-items-list .card-title {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
    min-height: auto;
}

/* Убедитесь, что контейнеры имеют правильную ширину */
.card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-title {
    flex: 1;
    min-width: 0; /* Важно для правильного переноса в flex-контейнерах */
}



/* Улучшение текста в модальных окнах */
.modal-content p,
.modal-content div,
.modal-content span {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Предотвращение горизонтального скролла */
.modal-content {
    overflow-x: hidden;
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 360px) {
    .modal-content {
        width: 98vw;
        margin: 10px auto;
        padding: 10px;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .card-actions .btn {
        width: 100%;
    }
}

/* ===== УЛУЧШЕНИЯ ДЛЯ ПЕРЕНОСА СЛОВ И ТЕКСТА ===== */
.word-wrap-fix {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    white-space: normal !important;
}

/* Ограничение описания в карточках товаров */
.card-description-limited {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    max-height: 4.2em;
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .card-description-limited {
        -webkit-line-clamp: 2;
        max-height: 2.8em;
        font-size: 13px;
    }
}

/* Стили для подробного описания в заказах */
.order-description-detailed {
    background: rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: 6px;
    margin-top: 4px;
    max-height: 150px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: pre-wrap;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Улучшенный скролл */
.order-description-detailed::-webkit-scrollbar {
    width: 4px;
}

.order-description-detailed::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.order-description-detailed::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 2px;
}

/* Улучшенный скролл для контейнеров с текстом */
.comment-text::-webkit-scrollbar,
.order-files-container::-webkit-scrollbar {
    width: 4px;
}

.comment-text::-webkit-scrollbar-track,
.order-files-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.comment-text::-webkit-scrollbar-thumb,
.order-files-container::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 2px;
}

.comment-text::-webkit-scrollbar-thumb:hover,
.order-files-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .comment-text {
        max-height: 100px;
        font-size: 12px;
        padding: 8px;
    }
    
    .order-files-container {
        max-height: 100px;
    }
    
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
}

/* Улучшенные стили для карточек товаров */
.card {
    min-height: auto;
    overflow: visible;
}

.card-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    max-height: 4.2em; /* 3 строки */
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .card-description {
        -webkit-line-clamp: 2;
        max-height: 2.8em;
        font-size: 13px;
    }
}


.card-meta span:first-child {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta span:last-child {
    flex-shrink: 0;
}


/* Стили для профиля */
.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

/* Стили для кнопок жалоб */
.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff5252, #ff7b7b);
    transform: translateY(-1px);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Стили для модальных окон отмены */
.cancel-reason-input {
    min-height: 100px;
    resize: vertical;
}

/* Стили для превью файлов */
.file-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.file-preview-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.remove-file-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для гарантов */
.guarantor-card {
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 12px;
}

.guarantor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.guarantor-name {
    font-weight: 600;
    font-size: 16px;
}

.guarantor-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #FFD700;
}

.guarantor-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.guarantor-specialization {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.specialization-tag {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
}

.online-indicator {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    margin-left: 4px;
}

.image-preview-container {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding: 8px 0;
    max-width: 100%;
}

/* Запрет масштабирования на мобильных устройствах */
html, body {
    touch-action: pan-x pan-y;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Запрет двойного тапа для увеличения */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Запрет выделения текста */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Разрешить выделение в полях ввода */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.image-preview-container::-webkit-scrollbar {
    height: 4px;
}

.image-preview-container::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

/* Стили для аккордеонов */
.accordion {
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-header {
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(108, 99, 255, 0.1);
    color: var(--text-primary);
    border-left: 4px solid var(--accent-primary);
}

.accordion-header:hover {
    background: rgba(108, 99, 255, 0.2);
}

.accordion-content {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
}

.accordion.active .accordion-content {
    padding: 16px;
    max-height: 500px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
    color: var(--accent-primary);
}

.accordion.active .accordion-icon {
    transform: rotate(180deg);
}

/* Стили для содержимого внутри аккордеона */
.accordion-content .form-group {
    margin-bottom: 15px;
}

.accordion-content .form-label {
    color: var(--text-primary);
}

.accordion-content .form-input,
.accordion-content .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.accordion-content .form-input:focus,
.accordion-content .form-select:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

.image-preview-container::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 2px;
}

.file-preview-item {
    flex-shrink: 0;
    position: relative;
}

.no-images-placeholder {
    background: rgba(255,255,255,0.05);
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.full-chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 0;
}

.full-chat-modal .modal-content {
    width: 95%;
    height: 95%;
    max-width: none;
    max-height: none;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-input-section {
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    position: relative;
    word-wrap: break-word;
}

.message-outgoing {
    background: var(--accent-primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message-incoming {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.message-sender {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
    font-weight: 600;
}

.message-time {
    font-size: 11px;
    opacity: 0.6;
    text-align: right;
    margin-top: 4px;
}


.image-preview-container {
        display: flex;
        gap: 8px;
        margin-bottom: 12px;
        overflow-x: auto;
        padding: 8px 0;
    }
    
    .image-preview-item {
        flex-shrink: 0;
        position: relative;
    }
    
    .image-preview-item img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 8px;
        cursor: pointer;
        transition: transform 0.2s ease;
        border: 2px solid rgba(255,255,255,0.1);
    }
    
    .image-preview-item img:hover {
        transform: scale(1.05);
        border-color: var(--accent-primary);
    }
    
    .image-preview-more {
        width: 80px;
        height: 80px;
        background: rgba(108, 99, 255, 0.1);
        border: 2px dashed var(--accent-primary);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--accent-primary);
        font-weight: bold;
        font-size: 14px;
    }
    
    .no-images-placeholder {
        background: rgba(255,255,255,0.05);
        border: 2px dashed rgba(255,255,255,0.2);
        border-radius: 8px;
        padding: 20px;
        text-align: center;
        color: var(--text-secondary);
        margin-bottom: 12px;
    }
    
    .file-input-styled {
        position: relative;
        display: inline-block;
        width: 100%;
    }
    
    .file-input-styled input[type="file"] {
        position: absolute;
        left: -9999px;
    }
    
    .file-input-label {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 16px;
        background: rgba(108, 99, 255, 0.1);
        border: 2px dashed var(--accent-primary);
        border-radius: 8px;
        color: var(--accent-primary);
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
    }
    
    .file-input-label:hover {
        background: rgba(108, 99, 255, 0.2);
    }
    
    .file-preview-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
        margin-top: 12px;
    }
    
    .file-preview-item {
        position: relative;
        background: rgba(255,255,255,0.05);
        border-radius: 8px;
        padding: 8px;
        text-align: center;
    }
    
    .file-preview-item img {
        width: 100%;
        height: 80px;
        object-fit: cover;
        border-radius: 4px;
    }
    
    .file-preview-item .remove-file {
        position: absolute;
        top: -5px;
        right: -5px;
        background: var(--error);
        color: white;
        border: none;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        cursor: pointer;
        font-size: 12px;
    }

/* Запрет выделения текста и масштабирования */
* {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Opera and Firefox */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
}

/* Разрешить выделение текста в полях ввода и textarea */
input, textarea, [contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Запрет масштабирования на мобильных устройствах */
html, body {
    touch-action: pan-x pan-y; /* Разрешаем только панорамирование */
    -webkit-text-size-adjust: 100%; /* Предотвращает автоматическое изменение размера текста в iOS */
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Запрет двойного тапа для увеличения */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Запрет масштабирования жестом pinch-zoom */
@media (max-width: 768px) {
    body {
        touch-action: pan-x pan-y;
        -webkit-user-drag: none;
    }
    
    /* Дополнительная защита для iOS */
    @supports (-webkit-touch-callout: none) {
        body {
            -webkit-overflow-scrolling: touch;
        }
    }
}

/* Запрет контекстного меню (дополнительно) */
body {
    -webkit-context-menu: none;
    -moz-context-menu: none;
    -ms-context-menu: none;
    context-menu: none;
}

/* Стили для статусов товаров */
.item-title-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.item-status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    align-self: flex-start;
}

.status-pending {
    background: rgba(255, 152, 0, 0.2);
    color: var(--warning);
}

.status-active {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.status-rejected {
    background: rgba(244, 67, 54, 0.2);
    color: var(--error);
}

.status-inactive {
    background: rgba(158, 158, 158, 0.2);
    color: var(--text-secondary);
}

/* Адаптивность для заголовка */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

@media (max-width: 480px) {
    .card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .item-title-section {
        order: 1;
    }
    
    .card-price {
        order: 2;
        align-self: flex-start;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
/* Убедитесь что эти стили есть */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

/* ДОБАВИТЬ в стили */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


/* Стили для навигации */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    padding: 12px 20px;
    z-index: 1000;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px 4px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item.active {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -12px;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.profile-stat {
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-stat .stat-value {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-stat .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.activity-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.activity-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 10px;
}

.activity-info {
    flex: 1;
}

.activity-title {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

/* Стили для срочного заказа */
.urgent-badge {
    background: rgba(255, 152, 0, 0.2);
    color: var(--warning);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--warning);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

/* Стили для контейнера файлов */
.order-files-container {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.file-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin: 4px 0;
    transition: background 0.3s ease;
}

.file-message:hover {
    background: rgba(255, 255, 255, 0.1);
}

.activity-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
}
  .rejection-reason {
        background: rgba(244, 67, 54, 0.1);
        padding: 12px;
        border-radius: 8px;
        margin: 12px 0;
        border-left: 3px solid var(--error);
        font-size: 14px;
    }
    
    .star-rating {
        cursor: pointer;
        transition: transform 0.2s ease;
    }
    
    .star-rating:hover {
        transform: scale(1.2);
    }
    
    .checkbox-label {
        cursor: pointer;
        user-select: none;
    }
    
    .section-title {
        font-weight: 600;
        margin-bottom: 16px;
        color: var(--text-primary);
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 8px;
    }
    
    .chat-message {
        max-width: 70%;
        padding: 12px;
        border-radius: 12px;
        margin-bottom: 8px;
    }
    
    .message-outgoing {
        background: var(--accent-primary);
        color: white;
        margin-left: auto;
    }
    
    .message-incoming {
        background: rgba(255,255,255,0.1);
        color: var(--text-primary);
    }

.review-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 3px solid var(--accent-primary);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-author {
    font-weight: 600;
    font-size: 14px;
}

.review-rating {
    color: #FFD700;
    font-size: 14px;
}

.review-comment {
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.review-date {
    font-size: 11px;
    color: var(--text-muted);
}

.help-section {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-item {
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.notification-item.unread {
    background: rgba(108, 99, 255, 0.1);
    border-left-color: var(--accent-primary);
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.help-section h4 {
    margin-bottom: 8px;
    color: var(--accent-primary);
}

.help-section p {
    margin: 4px 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Адаптивность для профиля */
@media (max-width: 480px) {
    .profile-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .profile-stat {
        padding: 8px;
    }
    
    .profile-stat .stat-value {
        font-size: 18px;
    }
    
    .activity-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .activity-value {
        font-size: 16px;
    }
}

        :root {
            --bg-primary: #0f0f23;
            --bg-secondary: #1a1a2e;
            --bg-card: #16213e;
            --bg-modal: rgba(15, 15, 35, 0.95);
            --accent-primary: #6c63ff;
            --accent-secondary: #4cc9f0;
            --text-primary: #ffffff;
            --text-secondary: #b0b0b0;
            --text-muted: #888888;
            --success: #4CAF50;
            --warning: #FF9800;
            --error: #f44336;
            --border-radius: 16px;
            --border-radius-sm: 12px;
            --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
            color: var(--text-primary);
            min-height: 100vh;
            padding-bottom: 80px;
        }

        .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px; /* Место для навигации */
    min-height: calc(100vh - 80px);
}
        /* Существующие стили остаются */
        .header {
            text-align: center;
            margin-bottom: 30px;
            position: relative;
        }

        .header::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
            border-radius: 2px;
        }

        /* Стили для фильтров */
.filter-section {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-select {
    flex: 1;
    min-width: 150px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius-sm);
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.filter-select:hover {
    background: rgba(255,255,255,0.08);
}

.category-filter {
    background: rgba(108, 99, 255, 0.1);
    border-color: var(--accent-primary);
}

.price-filter {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--success);
}

@media (max-width: 480px) {
    .filter-section {
        flex-direction: column;
    }
    
    .filter-select {
        min-width: auto;
    }
}


        .header h1 {
            font-size: 28px;
            margin-bottom: 8px;
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 700;
        }

        .header p {
            opacity: 0.8;
            font-size: 14px;
            color: var(--text-secondary);
        }

        /* Нижняя навигация */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--bg-card);
            backdrop-filter: blur(20px);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            padding: 12px 20px;
            z-index: 1000;
        }

        .nav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            background: none;
            border: none;
            color: var(--text-secondary);
            padding: 8px 4px;
            border-radius: var(--border-radius-sm);
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-item.active {
            color: var(--accent-primary);
            transform: translateY(-2px);
        }

        .nav-item.active::before {
            content: '';
            position: absolute;
            top: -12px;
            width: 4px;
            height: 4px;
            background: var(--accent-primary);
            border-radius: 50%;
        }

        .nav-icon {
            font-size: 20px;
            margin-bottom: 4px;
            transition: all 0.3s ease;
        }

        .nav-label {
            font-size: 11px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .nav-item.active .nav-icon {
            transform: scale(1.1);
        }

        .nav-item.active .nav-label {
            font-weight: 600;
        }

        /* Новые стили для системы гарантов */
        .guarantor-card {
            background: rgba(108, 99, 255, 0.1);
            border: 1px solid var(--accent-primary);
            border-radius: var(--border-radius);
            padding: 16px;
            margin-bottom: 12px;
        }

        .guarantor-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        /* Предотвращение растягивания модальных окон */
.modal-content {
    max-width: 500px;
    width: 90vw;
    margin: 0 auto;
}

/* Перенос слов в комментариях */
.comment-text {
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* Стили для файлов в заказах */
.order-files-container {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 8px;
}

.file-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 4px 0;
}

.file-icon {
    font-size: 16px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    font-size: 14px;
    word-break: break-all;
}

.file-size {
    font-size: 12px;
    color: var(--text-secondary);
}

.download-btn {
    background: var(--accent-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
}

.download-btn:hover {
    background: var(--accent-secondary);
}


        .guarantor-name {
            font-weight: 600;
            font-size: 16px;
        }

        .guarantor-rating {
            display: flex;
            align-items: center;
            gap: 4px;
            color: #FFD700;
        }

        /* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}


/* Увеличим превью изображений в карточках */
.image-preview-container {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding: 8px 0;
    max-width: 100%;
}

.image-preview-item {
    flex-shrink: 0;
    position: relative;
}

.image-preview-item img {
    width: 100px;  /* Увеличили с 80px до 100px */
    height: 100px; /* Увеличили с 80px до 100px */
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid rgba(255,255,255,0.1);
}

.image-preview-item img:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
}

/* Улучшенный скролл для компьютеров */
.image-preview-container::-webkit-scrollbar {
    height: 6px;
}

.image-preview-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.image-preview-container::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

.image-preview-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Для Firefox */
.image-preview-container {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) rgba(255, 255, 255, 0.1);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(108, 99, 255, 0.3);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Стили для экрана загрузки */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 20px auto;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease;
}

        .guarantor-stats {
            display: flex;
            gap: 12px;
            font-size: 12px;
            color: var(--text-secondary);
        }

        .guarantor-specialization {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-top: 8px;
        }

        .specialization-tag {
            background: rgba(76, 175, 80, 0.2);
            color: #4CAF50;
            padding: 2px 6px;
            border-radius: 8px;
            font-size: 10px;
        }

        .online-indicator {
            width: 8px;
            height: 8px;
            background: var(--success);
            border-radius: 50%;
            margin-left: 4px;
        }

        /* Стили для системы файлов */
        .file-message {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            margin: 4px 0;
        }

        .file-icon {
            font-size: 16px;
        }

        .file-info {
            flex: 1;
        }

        .file-name {
            font-weight: 600;
            font-size: 14px;
        }

        .file-size {
            font-size: 12px;
            color: var(--text-secondary);
        }

        .download-btn {
            background: var(--accent-primary);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            text-decoration: none;
            font-size: 12px;
        }

        .file-upload-container {
            padding: 8px 16px;
            background: var(--bg-card);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .file-preview {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .file-preview-item {
            background: rgba(255, 255, 255, 0.1);
            padding: 4px 8px;
            border-radius: 8px;
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        /* Стили для системы арбитража */
        .dispute-card {
            background: rgba(255, 152, 0, 0.1);
            border: 1px solid var(--warning);
            border-radius: var(--border-radius);
            padding: 16px;
            margin-bottom: 12px;
        }

        .dispute-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .dispute-title {
            font-weight: 600;
            font-size: 16px;
        }

        .dispute-status {
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
        }

        .status-open { background: rgba(255, 152, 0, 0.2); color: var(--warning); }
        .status-resolved { background: rgba(76, 175, 80, 0.2); color: var(--success); }

        .evidence-list {
            margin-top: 12px;
        }

        .evidence-item {
            background: rgba(255, 255, 255, 0.05);
            padding: 8px;
            border-radius: 8px;
            margin-bottom: 8px;
            font-size: 14px;
        }

        /* Остальные существующие стили остаются без изменений */
        .card {
            background: var(--bg-card);
            border-radius: var(--border-radius);
            padding: 20px;
            margin-bottom: 16px;
            box-shadow: var(--shadow);
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
        }

        .card:hover::before {
            opacity: 1;
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }

        .card-title {
            font-size: 17px;
            font-weight: 600;
            margin-bottom: 6px;
            flex: 1;
            line-height: 1.3;
        }

        .card-price {
            font-size: 20px;
            font-weight: 700;
            color: var(--accent-secondary);
            background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .card-description {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 12px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            color: var(--text-muted);
        }

        .card-actions {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .btn {
            padding: 12px 16px;
            border: none;
            border-radius: var(--border-radius-sm);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            flex: 1;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transition: left 0.5s ease;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            color: white;
            box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-primary);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Стили для select элементов */
.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c63ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-select:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Стили для options */
.form-select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px;
}

/* Стили для модальных окон скачивания */
#download-options-modal .btn,
#instructions-modal .btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
    text-align: left;
    padding: 12px 16px;
}

#download-options-modal .btn::before,
#instructions-modal .btn::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Адаптивность */
@media (max-width: 480px) {
    #download-options-modal .modal-content,
    #instructions-modal .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
}

/* Стили для аккордеонов */
.accordion {
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-header {
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(108, 99, 255, 0.1);
    color: var(--text-primary);
}

.accordion-header:hover {
    background: rgba(108, 99, 255, 0.2);
}

.accordion-content {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
}

.accordion.active .accordion-content {
    padding: 16px;
    max-height: 500px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
        }

        .btn-danger {
            background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
            color: white;
        }

        .btn-success {
            background: linear-gradient(135deg, #4CAF50, #45a049);
            color: white;
        }

        .btn-warning {
            background: linear-gradient(135deg, #FF9800, #FFB74D);
            color: white;
        }

        .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none !important;
        }

        .btn-small {
            padding: 8px 12px;
            font-size: 12px;
        }

        .hidden {
            display: none !important;
        }


        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        /* Стили для раскрывающихся списков */
.accordion {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
}

.accordion-header {
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s ease;
}


.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-select:hover {
    background-color: rgba(255, 255, 255, 0.08);
}


.accordion-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.accordion-content {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion.active .accordion-content {
    padding: 16px;
    max-height: 500px;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion.active .accordion-icon {
    transform: rotate(180deg);
}

/* Стили для фильтров с аккордеоном */
.filter-accordion {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-section {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.advanced-filters {
    display: none;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.advanced-filters.active {
    display: block;
}

        /* Адаптивность */
        @media (max-width: 480px) {
            .container {
                padding: 16px;
            }
            
            .header h1 {
                font-size: 24px;
            }
            
            .card {
                padding: 16px;
            }
            
            .card-title {
                font-size: 16px;
            }
            
            .btn {
                padding: 10px 14px;
                font-size: 13px;
            }
            
            .bottom-nav {
                padding: 10px 16px;
            }
            
            .nav-icon {
                font-size: 18px;
            }
            /* Стили для аккордеонов */
.accordion {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Стили для модального окна скачивания */
#download-help-modal .modal-content {
    max-width: 400px;
}

#download-help-modal .btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
}

/* Улучшенные стили для уведомлений */
#notification {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-header {
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.accordion-content {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.accordion.active .accordion-content {
    padding: 16px;
    max-height: 500px;
}


.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c63ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-select:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Стили для options */
.form-select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px;
    border: none;
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.accordion.active .accordion-icon {
    transform: rotate(180deg);
}

/* Стили для контейнера файлов заказа */
.order-files-container {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
}

.file-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 4px 0;
    transition: background 0.3s ease;
}

.file-message:hover {
    background: rgba(255, 255, 255, 0.1);
}

.file-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    font-size: 14px;
    word-break: break-all;
}

.file-size {
    font-size: 12px;
    color: var(--text-secondary);
}

.download-btn {
    background: var(--accent-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: var(--accent-secondary);
}

/* Стили для срочного заказа */
.urgent-notice {
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid var(--warning);
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
}

/* Стили для текста с переносами */
.comment-text {
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    line-height: 1.4;
}

/* Стили для фильтров с аккордеоном */
.filter-accordion {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.advanced-filters {
    display: none;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.advanced-filters.active {
    display: block;
}
            .nav-label {
                font-size: 10px;
            }
        }

        /* Улучшенные стили для карточек заказов */
/* Исправленные стили для карточек */
.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    min-height: auto;
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    padding: 8px;
    border-radius: 6px;
    margin: 4px 0;
    font-size: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(108, 99, 255, 0.1);
    border: 2px dashed var(--accent-primary);
    border-radius: 8px;
    color: var(--accent-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
}

.file-input-label:hover {
    background: rgba(108, 99, 255, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
    min-height: auto;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

/* Улучшенный скролл для всех контейнеров */
.modal-content::-webkit-scrollbar,
.order-files-container::-webkit-scrollbar,
.order-description-detailed::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track,
.order-files-container::-webkit-scrollbar-track,
.order-description-detailed::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb,
.order-files-container::-webkit-scrollbar-thumb,
.order-description-detailed::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
.order-files-container::-webkit-scrollbar-thumb:hover,
.order-description-detailed::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Для Firefox */
.modal-content,
.order-files-container,
.order-description-detailed {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) rgba(255, 255, 255, 0.1);
}

.card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-secondary);
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    margin-bottom: 0;
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Стили для кнопок */
.btn {
    padding: 8px 12px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.btn-small {
    padding: 6px 10px;
    font-size: 11px;
}

/* Убедимся что все элементы видны */
.comment-text {
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    line-height: 1.3;
    font-size: 13px;
}

.order-files-container {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.02);
    margin-top: 4px;
}

 .error-message {
        color: var(--error);
        font-size: 12px;
        margin-top: 4px;
        display: none;
    }
    
    .form-input.error {
        border-color: var(--error);
        box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
    }
    
    .form-input.success {
        border-color: var(--success);
        box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    }

    /* Стили для уведомлений */
#notification {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#notification:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

/* Стили для ошибок в форме */
.error-message {
    color: var(--error);
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 6px;
    border-left: 3px solid var(--error);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Подсветка невалидных полей */
.form-input:invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

.form-input:valid {
    border-color: var(--success);
}
.days-badge {
    color: var(--accent-primary);
    font-size: 11px;
    background: rgba(108, 99, 255, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.days-badge {
    color: var(--accent-primary);
    font-size: 11px;
    background: rgba(108, 99, 255, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.item-status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.status-pending {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.status-active {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-rejected {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.status-inactive {
    background: rgba(158, 158, 158, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(158, 158, 158, 0.3);
}

/* Стили для улучшенного чата */
.chat-message {
    max-width: 85%;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.message-outgoing {
    background: var(--accent-primary);
    color: white;
    margin-left: auto;
}

.message-incoming {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

/* Стили для файлов в чате */
.file-message-chat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    margin: 4px 0;
}

.file-icon-chat {
    font-size: 24px;
    flex-shrink: 0;
}

.file-info-chat {
    flex: 1;
    min-width: 0;
}

.file-name-chat {
    font-weight: 600;
    font-size: 14px;
    word-break: break-word;
}

.file-size-chat {
    font-size: 11px;
    opacity: 0.8;
}

/* Стили для улучшенного чата */
.chat-message {
    max-width: 85%;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    word-wrap: break-word;
    transition: all 0.2s ease;
}

.message-outgoing {
    background: var(--accent-primary);
    color: white;
    margin-left: auto;
}

.message-incoming {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

/* Стили для кнопок в чате */
.chat-button {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    color: inherit;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.chat-button:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

/* Бейдж непрочитанных сообщений */
.unread-badge {
    color: var(--accent-primary);
    font-size: 8px;
    margin-left: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Адаптивный чат */
@media (max-width: 768px) {
    #full-chat-modal .modal-content {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    
    .chat-message {
        max-width: 85% !important;
    }
    
    .message-outgoing {
        margin-left: auto !important;
    }
    
    .file-message {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    #full-chat-input {
        font-size: 16px !important; /* Убираем zoom на iOS */
    }
}

/* Стили для сообщений чата */
.chat-message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    margin-bottom: 8px;
    word-wrap: break-word;
    position: relative;
}

.message-outgoing {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message-incoming {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.message-sender {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
    font-weight: 600;
}

.message-time {
    font-size: 10px;
    opacity: 0.7;
    text-align: right;
    margin-top: 4px;
}

/* Стили для файлов в чате */
.file-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin: 4px 0;
}

.file-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    margin-bottom: 2px;
    word-break: break-all;
}

.file-size {
    font-size: 11px;
    color: var(--text-secondary);
}

.download-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    color: inherit;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Анимация пульсации для непрочитанных сообщений */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Стили для карточек с непрочитанными сообщениями */
.card[style*="border-left: 4px solid var(--accent-primary)"] {
    background: linear-gradient(90deg, rgba(108, 99, 255, 0.05) 0%, rgba(255,255,255,0.01) 100%);
}
/* Добавьте в style.css */
.rules-modal {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.rules-content {
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rules-section {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
}

.rules-section h4 {
    margin-bottom: 12px;
    color: var(--accent-primary);
}

.rules-section ul {
    padding-left: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.rules-section li {
    margin-bottom: 8px;
}

/* Стили для скроллбара в контейнере отзывов */
#reviews-list-container::-webkit-scrollbar {
    width: 6px;
}

#reviews-list-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#reviews-list-container::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

#reviews-list-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Анимация для элементов отзывов */
.review-item {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Индикатор загрузки */
.loading-spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid var(--accent-primary);
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}


.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #6c63ff, #4cc9f0);
    flex-shrink: 0;
}

.profile-avatar:hover {
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Анимация загрузки аватарки */
.profile-avatar.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* Стили для компактных кнопок жалоб */
.complaint-icon-btn {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--error);
    transition: all 0.3s ease;
}

.complaint-icon-btn:hover {
    background: rgba(244, 67, 54, 0.2);
    transform: scale(1.1);
}

.complaint-icon-btn:active {
    transform: scale(0.95);
}

/* Для карточек товаров - меньший размер */
.card-meta .complaint-icon-btn {
    width: 24px;
    height: 24px;
    font-size: 12px;
}


/* Стили для компактных кнопок жалоб */
.complaint-btn-compact {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    opacity: 0.6;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.complaint-btn-compact:hover {
    opacity: 1;
    background: rgba(244, 67, 54, 0.15);
    transform: scale(1.1);
}

.complaint-btn-compact:active {
    transform: scale(0.95);
}

/* Позиционирование для различных контейнеров */
.card .complaint-btn-compact {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}

.order-card .complaint-btn-compact {
    position: absolute;
    top: 12px;
    right: 12px;
}

.chat-message .complaint-btn-compact {
    position: absolute;
    top: 5px;
    right: 5px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.chat-message:hover .complaint-btn-compact {
    opacity: 0.7;
}

/* Компактные кнопки жалоб */
.complaint-btn {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: var(--error);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.complaint-btn:hover {
    background: rgba(244, 67, 54, 0.2);
    transform: scale(1.1);
}


.complaint-btn {
    background: transparent !important;
    border: none !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    opacity: 0.7 !important;
    transition: opacity 0.2s ease !important;
}

.complaint-btn:hover {
    opacity: 1 !important;
    background: rgba(244, 67, 54, 0.1) !important;
}

.card-complaint-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    opacity: 0.6;
    z-index: 10;
}

/* Стили для панелей модератора и гаранта */
.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    background: var(--accent-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Стили для карточек действий */
.action-card {
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.action-card:hover {
    background: rgba(108, 99, 255, 0.15);
    transform: translateY(-2px);
}

.action-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.action-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Статус баджи */
.status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.status-pending {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.status-active {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-resolved {
    background: rgba(108, 99, 255, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(108, 99, 255, 0.3);
}

/* Кнопки действий */
.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* Грид для статистики */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.own-message {
    background: var(--accent-primary) !important;
    color: white !important;
    margin-left: auto !important;
    margin-right: 10px !important;
}

.other-message {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
    margin-left: 10px !important;
    margin-right: auto !important;
}

.chat-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    margin: 8px 0;
    word-wrap: break-word;
    position: relative;
}


.message-container {
    margin-bottom: 16px;
}

.message-own {
    background: var(--accent-primary);
    color: white;
    margin-left: 20%;
    border-radius: 12px 12px 4px 12px;
}

.message-other {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    margin-right: 20%;
    border-radius: 12px 12px 12px 4px;
}

.message-text {
    padding: 12px 16px;
    word-wrap: break-word;
}

.file-message {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    margin-bottom: 4px;
    word-break: break-all;
}

.file-size {
    font-size: 12px;
    color: var(--text-secondary);
}

.file-description {
    font-size: 14px;
    margin-top: 4px;
    color: var(--text-secondary);
}

.message-sender {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.message-time {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.download-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.2s;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.own-message {
    border-bottom-right-radius: 4px;
}

.other-message {
    border-bottom-left-radius: 4px;
}

.card-complaint-btn:hover {
    opacity: 1;
    background: rgba(244, 67, 54, 0.1);
}

/* Компактные кнопки в карточках */
.card-complaint-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(244, 67, 54, 0.9);
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: white;
    z-index: 10;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .complaint-btn-compact {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.file-message {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 2px 0;
    font-size: 12px;
}