/* ОБМЕНЫ - ОСНОВНЫЕ СТИЛИ */
.exchange-view {
    background: transparent;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    box-sizing: border-box;
}

.exchange-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.exchange-header h2 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 26px;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.exchange-header .back-btn {
    background: rgba(169, 217, 248, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #A9D9F8;
    border: 1px solid rgba(169, 217, 248, 0.25);
    padding: 10px 20px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.exchange-header .back-btn:hover {
    background: rgba(169, 217, 248, 0.2);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(169, 217, 248, 0.4);
}

/* ВКЛАДКИ ОБМЕНОВ */
.exchange-tabs {
    display: flex;
    background: rgba(25, 25, 30, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 18px;
    padding: 6px;
    margin: 20px 0;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.exchange-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 14px;
    border-radius: 14px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    font-weight: 600;
    letter-spacing: -0.1px;
}

.exchange-tab.active {
    background: rgba(169, 217, 248, 0.15);
    color: #A9D9F8;
    font-weight: 700;
    box-shadow: 
        0 8px 20px rgba(169, 217, 248, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.exchange-list {
    display: none;
}

.exchange-list.active {
    display: block;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* КАРТОЧКА ОБМЕНА */
.exchange-card {
    background: rgba(25, 25, 30, 0.7);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 16px;
    border: 1px solid rgba(169, 217, 248, 0.2);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.exchange-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(169, 217, 248, 0.3) 50%, 
        transparent 100%);
    z-index: 1;
}

.exchange-card:hover {
    transform: translateY(-5px);
    border-color: rgba(169, 217, 248, 0.4);
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.exchange-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.exchange-direction {
    font-size: 13px;
    font-weight: 700;
    color: #A9D9F8;
    background: rgba(169, 217, 248, 0.15);
    backdrop-filter: blur(20px);
    padding: 8px 18px;
    border-radius: 24px;
    border: 1px solid rgba(169, 217, 248, 0.25);
    box-shadow: 
        0 6px 20px rgba(169, 217, 248, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    letter-spacing: 0.3px;
}

/* СТАТУСЫ ОБМЕНА */
.exchange-status {
    font-size: 12px;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.status-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.3);
}

.status-accepted {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border-color: rgba(76, 175, 80, 0.3);
}

.status-completed {
    background: rgba(33, 150, 243, 0.15);
    color: #2196F3;
    border-color: rgba(33, 150, 243, 0.3);
}

.status-rejected,
.status-cancelled {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border-color: rgba(244, 67, 54, 0.3);
}

/* ТЕЛО КАРТОЧКИ */
.exchange-card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.exchange-partner {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.exchange-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: -0.1px;
}

/* КНОПКИ ДЕЙСТВИЙ В КАРТОЧКАХ */
.exchange-card-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-accept,
.btn-reject,
.btn-cancel {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: white;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    letter-spacing: -0.1px;
    position: relative;
    overflow: hidden;
}

.btn-accept {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

.btn-reject {
    background: linear-gradient(135deg, #f44336, #ef5350);
}

.btn-cancel {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
}

.btn-accept::before,
.btn-reject::before,
.btn-cancel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    border-radius: 14px;
    pointer-events: none;
}

.btn-accept:hover,
.btn-reject:hover,
.btn-cancel:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ОСОБЫЕ КНОПКИ */
.btn-start-exchange {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    text-align: center;
    margin-top: 14px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 15px 40px rgba(76, 175, 80, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: -0.1px;
    position: relative;
    overflow: hidden;
}

.btn-start-exchange::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    border-radius: 18px;
    pointer-events: none;
}

.btn-start-exchange:hover {
    background: linear-gradient(135deg, #43A047, #5cb860);
    transform: translateY(-3px);
    box-shadow: 
        0 25px 50px rgba(76, 175, 80, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-cancel-both {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    margin-top: 10px;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 10px 30px rgba(255, 152, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-cancel-both::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    border-radius: 14px;
    pointer-events: none;
}

.btn-cancel-both:hover {
    background: linear-gradient(135deg, #f57c00, #ffa726);
    transform: translateY(-3px);
    box-shadow: 
        0 20px 40px rgba(255, 152, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* СОСТОЯНИЕ ПУСТОТЫ */
.exchange-empty-state {
    text-align: center;
    padding: 60px 30px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(25, 25, 30, 0.6);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 30px 0;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.exchange-empty-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.exchange-empty-title {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 14px;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.exchange-empty-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 500;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-create-exchange {
    background: rgba(169, 217, 248, 0.15);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    color: #A9D9F8;
    border: 1px solid rgba(169, 217, 248, 0.3);
    padding: 16px 32px;
    border-radius: 18px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 700;
    box-shadow: 
        0 15px 40px rgba(169, 217, 248, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-create-exchange::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    border-radius: 18px;
    pointer-events: none;
}

.btn-create-exchange:hover {
    background: rgba(169, 217, 248, 0.25);
    transform: translateY(-3px);
    box-shadow: 
        0 25px 50px rgba(169, 217, 248, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(169, 217, 248, 0.5);
}

/* СТИЛИ МОДАЛЬНОГО ОКНА ОБМЕНА */
#exchange-items-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(50px) saturate(180%);
    -webkit-backdrop-filter: blur(50px) saturate(180%);
    z-index: 10002;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#exchange-items-modal > div {
    background: rgba(25, 25, 30, 0.85);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    border-radius: 28px;
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    padding: 28px 24px;
    border: 1px solid rgba(169, 217, 248, 0.25);
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.5),
        inset 0 0 0 0.5px rgba(169, 217, 248, 0.15),
        0 0 80px rgba(169, 217, 248, 0.1);
    position: relative;
    overflow-y: auto;
    animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#exchange-items-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(169, 217, 248, 0.3) 50%, 
        transparent 100%);
    z-index: 1;
}

/* СЛОТЫ ОБМЕНА */
.exchange-slot {
    width: 80px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
    font-size: 32px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.exchange-slot.filled {
    border-style: solid;
    border-color: #A9D9F8;
    background: rgba(169, 217, 248, 0.1);
    box-shadow: 
        0 15px 40px rgba(169, 217, 248, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.exchange-slot img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    border-radius: 12px;
}

.slot-remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #f44336, #ef5350);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
    font-weight: bold;
    z-index: 10;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.slot-remove-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.6);
}

/* ИНВЕНТАРЬ В ОБМЕНЕ */
.exchange-inventory-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.exchange-inventory-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(169, 217, 248, 0.3);
    transform: translateY(-3px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.exchange-inventory-item.selected {
    background: rgba(169, 217, 248, 0.15);
    border-color: #A9D9F8;
    box-shadow: 
        0 20px 40px rgba(169, 217, 248, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.exchange-inventory-item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 8px;
}

.exchange-inventory-item .item-name-small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.selected-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

/* КНОПКА ПОДТВЕРЖДЕНИЯ ОБМЕНА */
#confirm-exchange-btn {
    flex: 2;
    background: linear-gradient(135deg, #A9D9F8, #8bc6ff);
    color: #000;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 
        0 15px 40px rgba(169, 217, 248, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.1px;
}

#confirm-exchange-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(255,255,255,0.25) 0%, transparent 100%);
    border-radius: 16px;
    pointer-events: none;
}

#confirm-exchange-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 
        0 25px 50px rgba(169, 217, 248, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

#confirm-exchange-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #7a7a7a, #9e9e9e);
    transform: none !important;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Стили для заполненных слотов */
.exchange-slot.filled {
    background: rgba(169, 217, 248, 0.1) !important;
    border: 2px solid #A9D9F8 !important;
    backdrop-filter: blur(20px) !important;
}

.exchange-slot img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    border-radius: 12px;
}

/* Анимация для обновления в реальном времени */
@keyframes slotUpdate {
    0% { 
        transform: scale(0.8); 
        opacity: 0.5; 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

.exchange-slot.filled {
    animation: slotUpdate 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Стили для предметов в окне обмена */
.item-with-info,
.partner-item-with-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    padding: 4px;
}

.item-name-in-slot,
.partner-item-name-in-slot {
    font-size: 12px !important;
    color: #A9D9F8 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 4px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.item-id-in-slot,
.partner-item-id-in-slot {
    color: rgba(255, 255, 255, 0.95) !important;
    font-family: 'Courier New', monospace !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: 0.3px !important;
    
    /* Стеклянный эффект */
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    
    /* Границы */
    padding: 3px 10px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    
    /* Размер и выравнивание */
    width: fit-content !important;
    min-width: 40px !important;
    max-width: 90% !important;
    margin: 2px auto !important;
    
    /* Текст */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    line-height: 1.1 !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Тень текста */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Убедитесь, что слоты достаточно большие для информации */
.exchange-slot,
.partner-slot {
    width: 85px !important;
    height: 110px !important;
    min-height: 110px !important;
}

.exchange-slot.filled img,
.partner-slot.filled img {
    max-height: 55px !important;
    max-width: 55px !important;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 480px) {
    .exchange-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .exchange-card-actions {
        flex-direction: column;
    }
    
    .exchange-slot {
        width: 70px;
        height: 95px;
    }
    
    .exchange-header h2 {
        font-size: 22px;
    }
    
    .exchange-tab {
        padding: 12px;
        font-size: 14px;
    }
    
    .exchange-empty-state {
        padding: 40px 20px;
    }
}

/* Анимации для модалок */
@keyframes modalFadeIn {
    from { 
        opacity: 0; 
        transform: scale(0.92) translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

@keyframes modalFadeOut {
    from { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
    to { 
        opacity: 0; 
        transform: scale(0.92) translateY(10px); 
    }
}

/* Эффект глубины для модалки */
#exchange-items-modal > div::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at center, rgba(169, 217, 248, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* Легкое свечение по краям модалки */
#exchange-items-modal > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 28px;
    box-shadow: inset 0 0 50px rgba(169, 217, 248, 0.08);
    pointer-events: none;
    z-index: 1;
}