.toast-container {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1200;
    pointer-events: none;
    align-items: center;
    width: 100%;
    max-width: 420px;
    padding: 0 1rem;
}

.toast-card {
    min-width: 300px;
    max-width: 420px;
    width: 100%;
    padding: 18px 24px;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #e8e8e8;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(20, 29, 30, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(-40px) scale(0.95);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.toast-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
    opacity: 0.8;
}

.toast-card--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-card--success {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.15);
}

.toast-card--success::before {
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}

.toast-card--error {
    border-color: rgba(196, 30, 58, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(196, 30, 58, 0.15);
}

.toast-card--error::before {
    background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.6), transparent);
}

.toast-card--warn {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.2);
}

.toast-card--warn::before {
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.6), transparent);
}

.toast-card--info {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.1);
}

.toast-card--info::before {
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.toast-card__text {
    display: block;
    line-height: 1.5;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 480px) {
    .toast-container {
        max-width: calc(100% - 2rem);
        padding: 0 1rem;
    }
    
    .toast-card {
        min-width: auto;
        padding: 16px 20px;
        font-size: 0.9rem;
    }
}

