.xbajee-floating-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    transition: bottom 0.25s, right 0.25s;
}

.xbajee-float-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C61 100%);
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0.7, 0.8, 1);
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}

.xbajee-float-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: xbajeePulseRing 2s infinite;
    pointer-events: none;
}

@keyframes xbajeePulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.xbajee-float-btn:hover,
.xbajee-float-btn:active {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 35px rgba(255, 107, 53, 0.8);
}

.xbajee-float-icon {
    font-size: 28px;
    margin-bottom: 2px;
    animation: xbajeeBounce 2s infinite;
    pointer-events: none;
    user-select: none;
}

@keyframes xbajeeBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.xbajee-float-text {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.xbajee-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    animation: xbajeeFadeIn 0.3s ease;
}

.xbajee-modal-overlay.xbajee-active {
    display: flex;
}

@keyframes xbajeeFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.xbajee-modal-container {
    background: linear-gradient(135deg, #1D212D 0%, #282B34 100%);
    border-radius: 20px;
    max-width: 500px;
    width: 90vw;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid #FF6B35;
    animation: xbajeeSlideUp 0.4s ease;
    overflow: hidden;
}

@keyframes xbajeeSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.xbajee-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 107, 53, 0.2);
    color: #FF6B35;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.xbajee-modal-close:hover,
.xbajee-modal-close:active {
    background: #FF6B35;
    color: #ffffff;
    transform: rotate(90deg);
}

.xbajee-modal-content {
    padding: 50px 35px 40px;
    text-align: center;
}

.xbajee-modal-icon {
    font-size: 70px;
    margin-bottom: 20px;
    animation: xbajeeRotateIcon 3s ease-in-out infinite;
}

@keyframes xbajeeRotateIcon {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(15deg) scale(1.1);
    }
}

.xbajee-modal-title {
    font-size: 36px;
    font-weight: 900;
    color: #FF6B35;
    margin: 0 0 10px;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.xbajee-modal-subtitle {
    font-size: 18px;
    color: #ffffff;
    margin: 0 0 25px;
    font-weight: 600;
}

.xbajee-bonus-amount {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C61 100%);
    padding: 20px;
    border-radius: 15px;
    margin: 0 0 25px;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.xbajee-currency {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
}

.xbajee-amount {
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    margin-left: 5px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.xbajee-modal-description {
    font-size: 15px;
    line-height: 1.6;
    color: #E8E8E8;
    margin: 0 0 30px;
}

.xbajee-modal-description strong {
    color: #FF6B35;
    font-weight: 700;
}

.xbajee-features {
    display: flex;
    justify-content: space-around;
    margin: 0 0 35px;
    gap: 15px;
    flex-wrap: wrap;
}

.xbajee-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
}

.xbajee-feature-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.xbajee-feature-text {
    font-size: 12px;
    color: #E8E8E8;
    font-weight: 600;
    text-align: center;
}

.xbajee-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C61 100%);
    color: #ffffff;
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    margin: 0 0 20px;
    touch-action: manipulation;
    user-select: none;
}

.xbajee-cta-button:hover,
.xbajee-cta-button:active {
    background: linear-gradient(135deg, #FF8C61 0%, #FFB094 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.6);
}

.xbajee-cta-arrow {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.xbajee-cta-button:hover .xbajee-cta-arrow,
.xbajee-cta-button:active .xbajee-cta-arrow {
    transform: translateX(5px);
}

.xbajee-modal-footer {
    font-size: 12px;
    color: #888;
    margin: 0;
    font-style: italic;
}

/* Tablet adaptation */
@media (max-width: 1024px) {
    .xbajee-floating-wrapper {
        bottom: 20px;
        right: 20px;
    }
    .xbajee-float-btn {
        width: 56px;
        height: 56px;
    }
    .xbajee-float-icon {
        font-size: 22px;
    }
    .xbajee-float-text {
        font-size: 9px;
    }
    .xbajee-modal-container {
        max-width: 98vw;
        border-radius: 16px;
    }
    .xbajee-modal-content {
        padding: 32px 17px 24px;
    }
    .xbajee-modal-icon {
        font-size: 40px;
    }
    .xbajee-modal-title {
        font-size: 26px;
    }
    .xbajee-modal-subtitle {
        font-size: 14px;
    }
    .xbajee-amount {
        font-size: 29px;
    }
    .xbajee-bonus-amount {
        padding: 12px;
    }
    .xbajee-features {
        gap: 10px;
        flex-direction: column;
    }
    .xbajee-feature-item {
        flex-direction: row;
        gap: 13px;
        justify-content: flex-start;
        align-items: center;
    }
    .xbajee-feature-icon {
        font-size: 19px;
        margin-bottom: 0;
    }
    .xbajee-cta-button {
        padding: 10px 22px;
        font-size: 13px;
        border-radius: 32px;
    }
    .xbajee-cta-arrow {
        font-size: 18px;
    }
}

/* Mobile adaptation: better visibility, usability, thumb-friendly */
@media (max-width: 600px) {
    .xbajee-floating-wrapper {
        bottom: 10px;
        right: 10px;
    }
    .xbajee-float-btn {
        width: 50px;
        height: 50px;
    }
    .xbajee-float-icon {
        font-size: 18px;
    }
    .xbajee-float-text {
        font-size: 8px;
    }
    .xbajee-modal-container {
        max-width: 99vw;
        width: 99vw;
        border-radius: 11px;
        min-width: unset;
    }
    .xbajee-modal-content {
        padding: 18px 7px 13px;
    }
    .xbajee-modal-icon {
        font-size: 26px;
        margin-bottom: 12px;
    }
    .xbajee-modal-title {
        font-size: 16px;
    }
    .xbajee-modal-subtitle {
        font-size: 11px;
        margin: 0 0 16px;
    }
    .xbajee-amount {
        font-size: 19px;
    }
    .xbajee-currency {
        font-size: 15px;
    }
    .xbajee-bonus-amount {
        padding: 7px;
    }
    .xbajee-modal-description {
        font-size: 11px;
        margin: 0 0 12px;
    }
    .xbajee-features {
        gap: 5px;
        flex-direction: column;
        margin: 0 0 16px;
    }
    .xbajee-feature-item {
        flex-direction: row;
        gap: 6px;
        align-items: center;
    }
    .xbajee-feature-icon {
        font-size: 13px;
        margin-bottom: 0;
    }
    .xbajee-feature-text {
        font-size: 9px;
    }
    .xbajee-cta-button {
        padding: 8px 14px;
        font-size: 10px;
        border-radius: 22px;
        margin: 0 0 11px;
    }
    .xbajee-cta-arrow {
        font-size: 12px;
    }
    .xbajee-modal-close {
        width: 26px;
        height: 26px;
        font-size: 19px;
        top: 7px;
        right: 7px;
    }
    .xbajee-modal-footer {
        font-size: 9px;
    }
}

/* Remove old 768px adaptation as we now have more granular breakpoints */