* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    background: #0F1419;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(180deg, #0F1419 0%, #2D3840 100%);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Toast Notification - Liquid Glass */
.toast {
    user-select: none;
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    -webkit-transform: translateX(-50%) translateY(150px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 0;
    border-radius: 56px;
    z-index: 1000;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow: hidden;
    text-align: center;
    width: 0;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 450;
    opacity: 0;
    filter: blur(12px);
    -webkit-filter: blur(12px);
    will-change: transform, opacity, filter;
    transition: none;
    background: radial-gradient(214.46% 115.1% at 51.74% 16.04%, rgba(55, 70, 74, 0.60) 0%, rgba(116, 128, 150, 0.10) 58.65%, rgba(214, 218, 227, 0.05) 100%);
    box-shadow: -4px -4px 24px 0 rgba(149, 159, 165, 0),
                0 0.7px 0 0 rgba(255, 255, 255, 0.50) inset,
                0 2px 2px 0 rgba(81, 95, 105, 0.25) inset,
                -1px 0 0 0 rgba(0, 0, 0, 0.40) inset,
                1px 0 0 0 rgba(0, 0, 0, 0.40) inset,
                0 -0.7px 0 0 rgba(255, 255, 255, 0.40) inset,
                0 2px 3px 1px rgba(255, 255, 255, 0.15) inset,
                0 -4px 8px 0 rgba(255, 255, 255, 0.18) inset,
                0 4px 12px 0 rgba(34, 45, 52, 0.24);
}

.toast p {
    margin: 0;
    padding: 0 28px;
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    background: linear-gradient(180deg, #FFF 0%, rgba(255, 255, 255, 0.60) 100%);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}

.toast::before {
    content: "";
    position: absolute;
    transition: all 2.4s cubic-bezier(0.19, 1, 0.22, 1);
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 70%;
    height: 20px;
    background-color: #ffffff;
    border-radius: 100%;
    filter: blur(10px);
    z-index: 2;
    opacity: 0.15;
    transform-origin: bottom;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    -webkit-transform: translateX(-50%) translateY(0);
    width: auto;
    max-width: 90vw;
    opacity: 1;
    filter: blur(0px);
    -webkit-filter: blur(0px);
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1),
                -webkit-transform 1.2s cubic-bezier(0.19, 1, 0.22, 1),
                max-width 1.2s cubic-bezier(0.19, 1, 0.22, 1),
                opacity 1.4s cubic-bezier(0.19, 1, 0.22, 1),
                filter 1.2s cubic-bezier(0.19, 1, 0.22, 1),
                -webkit-filter 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.toast.show.hide {
    transform: translateX(-50%) translateY(-24px);
    -webkit-transform: translateX(-50%) translateY(-24px);
    opacity: 0;
    filter: blur(12px);
    -webkit-filter: blur(12px);
    transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1),
                -webkit-transform 1.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                filter 1.3s cubic-bezier(0.4, 0, 0.2, 1),
                -webkit-filter 1.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show::before {
    transform: scaleX(1.1) scaleY(1.3);
    opacity: 0.25;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .toast {
        padding: 14px 0;
        font-size: 0.9rem;
        bottom: calc(30px + env(safe-area-inset-bottom));
        white-space: nowrap;
    }

    .toast p {
        padding: 0 20px;
        white-space: nowrap;
    }
}
