/**
 * STRELA — iOS-style toast (blur pill, safe area).
 */
#strela-toast-root {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

.strela-toast-item {
    pointer-events: none;
    max-width: min(420px, 100%);
    padding: 12px 18px;
    border-radius: 14px;
    font-family:
        -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: #fff;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.28),
        0 0 0 0.5px rgba(255, 255, 255, 0.12) inset;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    transform: translate3d(0, 18px, 0) scale(0.96);
    opacity: 0;
    transition:
        transform 0.42s cubic-bezier(0.34, 1.3, 0.64, 1),
        opacity 0.32s ease;
}

.strela-toast-item__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    font-size: 13px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

.strela-toast-item__text {
    text-align: center;
}

.strela-toast-item.is-in {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
}

.strela-toast-item.is-out {
    transform: translate3d(0, 12px, 0) scale(0.98);
    opacity: 0;
    transition:
        transform 0.28s cubic-bezier(0.4, 0, 1, 1),
        opacity 0.22s ease;
}

.strela-toast-item--success {
    background: rgba(52, 199, 89, 0.92);
}

.strela-toast-item--error {
    background: rgba(255, 59, 48, 0.92);
}

.strela-toast-item--info {
    background: rgba(10, 132, 255, 0.92);
}

html[data-theme='light'] .strela-toast-item--success {
    background: rgba(52, 199, 89, 0.94);
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.14),
        0 0 0 0.5px rgba(255, 255, 255, 0.35) inset;
}

html[data-theme='light'] .strela-toast-item--error {
    background: rgba(255, 59, 48, 0.94);
}

html[data-theme='light'] .strela-toast-item--info {
    background: rgba(10, 132, 255, 0.94);
}
