.r777-floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5), 0 0 0 0 rgba(255, 193, 7, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    animation: floatBounce 3s ease-in-out infinite;
}

.r777-floating-button:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 35px rgba(255, 193, 7, 0.7), 0 0 0 8px rgba(255, 193, 7, 0.15);
}

.r777-floating-button:active {
    transform: scale(0.95);
}

@keyframes floatBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.button-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.4);
    animation: pulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.button-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.gift-icon {
    font-size: 28px;
    animation: giftShake 2.5s ease-in-out infinite;
}

@keyframes giftShake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

.modal-container .feature-item i {
    font-size: 1.2rem;
    margin: 0;
    color: #ff9800;
}

.button-label {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.r777-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.r777-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 480px;
    background: linear-gradient(145deg, #151D29 0%, #0d1419 100%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 193, 7, 0.2);
    transform: scale(0.9) translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.r777-modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 193, 7, 0.3);
    transform: rotate(90deg);
}

.modal-content {
    padding: 30px 25px 35px;
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.brand-logo {
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge-icon {
    font-size: 18px;
    color: #ffc107;
    animation: badgeRotate 3s linear infinite;
}

@keyframes badgeRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(360deg);
    }
}

.badge-text {
    font-size: 13px;
    font-weight: 700;
    color: #ffc107;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body {
    text-align: center;
}

.bonus-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.currency-symbol {
    font-size: 36px;
    font-weight: 800;
    color: #ffc107;
    text-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
}

.amount-value {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 50%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    animation: amountGlow 2s ease-in-out infinite;
}

@keyframes amountGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

.bonus-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.bonus-description {
    font-size: 15px;
    color: #b0b5c0;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

 .modal-container .feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.modal-container .feature-item:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    transform: translateY(-2px);
}

.modal-container .feature-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.modal-container .feature-text {
    font-size: 12px;
    font-weight: 600;
    color: #e0e2e8;
    text-align: left;
}

.claim-bonus-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #151D29;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.claim-bonus-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.claim-bonus-btn:hover::before {
    left: 100%;
}

.claim-bonus-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.7);
}

.claim-bonus-btn:active {
    transform: translateY(-1px);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-arrow {
    font-size: 22px;
    font-weight: 900;
    transition: transform 0.3s ease;
}

.claim-bonus-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.terms-notice {
    font-size: 11px;
    color: #7a7f8c;
    margin: 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .r777-floating-button {
        width: 65px;
        height: 65px;
        bottom: 25px;
        right: 25px;
    }
    
    .gift-icon {
        font-size: 26px;
    }
    
    .button-label {
        font-size: 10px;
    }
    
    .modal-container {
        max-width: 420px;
    }
    
    .brand-logo {
        font-size: 38px;
    }
    
    .amount-value {
        font-size: 48px;
    }
    
    .bonus-title {
        font-size: 22px;
    }
    
    .bonus-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .r777-floating-button {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    
    .gift-icon {
        font-size: 24px;
    }
    
    .button-label {
        font-size: 9px;
    }
    
    .modal-content {
        padding: 25px 20px 30px;
    }
    
    .brand-logo {
        font-size: 34px;
    }
    
    .currency-symbol {
        font-size: 30px;
    }
    
    .amount-value {
        font-size: 42px;
    }
    
    .bonus-title {
        font-size: 20px;
    }
    
    .bonus-description {
        font-size: 13px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .claim-bonus-btn {
        font-size: 13px;
        padding: 14px;
    }
}