/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 30vh;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    max-width: 380px;
    width: 100%;
    pointer-events: none;
}
.toast-container .toast {
    pointer-events: auto;
    background: #1A1A1A;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid #2A2A2A;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(120%);
    opacity: 0;
    animation: toastSlideIn 0.4s forwards;
    position: relative;
    overflow: hidden;
}
.toast-container .toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}
.toast-container .toast.success {
    border-color: #00E599;
    box-shadow: 0 0 30px rgba(0, 229, 153, 0.2), 0 8px 32px rgba(0,0,0,0.6);
}
.toast-container .toast.success::before {
    background: #00E599;
}
.toast-container .toast.error {
    border-color: #ff3355;
    box-shadow: 0 0 30px rgba(255, 51, 85, 0.2), 0 8px 32px rgba(0,0,0,0.6);
}
.toast-container .toast.error::before {
    background: #ff3355;
}
.toast-container .toast.info {
    border-color: #00bfff;
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.2), 0 8px 32px rgba(0,0,0,0.6);
}
.toast-container .toast.info::before {
    background: #00bfff;
}
.toast-container .toast.warning {
    border-color: #FFA500;
    box-shadow: 0 0 30px rgba(255, 165, 0, 0.2), 0 8px 32px rgba(0,0,0,0.6);
}
.toast-container .toast.warning::before {
    background: #FFA500;
}
.toast-container .toast .toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #E8E8E8;
    margin-bottom: 4px;
}
.toast-container .toast .toast-message {
    font-size: 0.85rem;
    color: #AAA;
    word-break: break-word;
}
.toast-container .toast .toast-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}
.toast-container .toast .toast-close:hover {
    color: #E8E8E8;
}
.toast-container .toast.hiding {
    animation: toastSlideOut 0.3s forwards;
}
@keyframes toastSlideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}
@media (max-width: 600px) {
    .toast-container {
        bottom: 20vh;
        right: 16px;
        left: 16px;
        max-width: none;
    }
}

/* ============================================
   КНОПКА СОРТИРОВКИ (используется на страницах инвентаря и трейдов)
   ============================================ */
.sort-price-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: 40px;
    padding: 8px 18px;
    color: #AAA;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 500;
    white-space: nowrap;
}
.sort-price-btn:hover {
    border-color: #00E599;
    color: #E8E8E8;
    background: rgba(0,229,153,0.05);
    box-shadow: 0 0 20px rgba(0,229,153,0.1);
}
.sort-price-btn svg {
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.sort-price-btn.desc svg { transform: rotate(0deg); }
.sort-price-btn.asc svg { transform: rotate(180deg); }
.sort-price-btn.active {
    border-color: #00E599;
    color: #00E599;
    background: rgba(0,229,153,0.1);
}