.onboarding-widget {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
}

.onboarding-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 50px 20px;
    overflow: hidden;
    border-radius: 12px;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.90) 100%);
    z-index: 1;
    pointer-events: none;
}

.brand-logo {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    z-index: 2;
    margin-bottom: 5px;
}

.brand-sub-text {
    color: #ffffff;
    font-size: 16px;
    z-index: 2;
}

.text-content {
    text-align: center;
    z-index: 2;
    width: 100%;
    margin-top: auto;
}

.slide {
    display: none;
    animation: slideFadeIn 1s ease forwards;
}

    .slide.active {
        display: block;
    }

.main-heading {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    line-height: 2;
}

.sub-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.80);
    line-height: 2;
    font-weight: 500;
    margin: 0 auto;
    margin-bottom: 30px;
}

.pagination-dots {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-bottom: 30px;
    z-index: 2;
}

.dot-level {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

    .dot-level.active {
        width: 20px;
        border-radius: 5px;
        background-color: #ffffff;
    }

.swipe-track {
    width: 100%;
    max-width: 350px;
    height: 65px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.swipe-text-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    padding-left: 25px;
    transition: opacity 0.3s ease;
}

.swipe-handle {
    width: 45px;
    height: 45px;
    background: #1a4fb3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: grab;
    position: absolute;
    left: 5px;
    z-index: 3;
    touch-action: none;
}

.handle-icon {
    font-size: 24px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.swipe-handle:not(:active) .handle-icon {
    animation: arrowPulseRight 1.5s infinite ease-in-out;
}

@keyframes arrowPulseRight {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(3px);
    }
}

.swipe-handle:active {
    cursor: grabbing;
}

.success-screen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #12102e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
    border-radius: 12px;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

    .success-screen.active {
        opacity: 1;
        pointer-events: auto;
    }

.success-icon {
    font-size: 65px;
    color: #fff;
    margin-bottom: 20px;
    transform: scale(0) rotate(-45deg);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s;
}

.success-screen.active .success-icon {
    transform: scale(1) rotate(0deg);
}

.success-text-container {
    position: relative;
    height: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 25px;
}

.success-text {
    color: white;
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}

    .success-text.exit {
        opacity: 0;
        transform: translateY(-20px);
    }

    .success-text.enter {
        opacity: 0;
        transform: translateY(20px);
    }

        .success-text.enter.show {
            opacity: 1;
            transform: translateY(0);
        }

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .spinner.active {
        opacity: 1;
        transform: scale(1);
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

button.swipe-handle {
    border: none;
    outline: none;
    padding: 0;    
}
