/* ==========================================================================
   Global toast
   ========================================================================== */

.global-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(13, 14, 25, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    opacity: 0;
    transform: translate(-50%, -12px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.global-toast--visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.global-toast__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.global-toast--success .global-toast__icon {
    color: #0d0e19;
    background: linear-gradient(135deg, #8a6bff 0%, #26d7e6 100%);
}

.global-toast--error .global-toast__icon {
    color: #0d0e19;
    background: #f6b73c;
}

.global-toast__message {
    flex: 1 1 0;
    min-width: 0;
    margin: 2px 0 0;
    color: #eef0f8;
    font-size: 14px;
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    word-break: break-word;
}

@media (max-width: 767px) {
    .global-toast {
        top: 16px;
        max-width: calc(100vw - 24px);
        padding: 12px 14px;
    }

    .global-toast__message {
        font-size: 13px;
    }
}
