@keyframes g777pulse {
    0%, 100% { 
        transform: scale(1) translateY(0); 
        box-shadow: 0 8px 30px rgba(255, 193, 7, 0.5);
    }
    50% { 
        transform: scale(1.05) translateY(-6px); 
        box-shadow: 0 12px 45px rgba(255, 193, 7, 0.8);
    }
}

@keyframes g777shake {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-10deg); }
    30% { transform: rotate(10deg); }
    45% { transform: rotate(-5deg); }
    60% { transform: rotate(5deg); }
    75% { transform: rotate(0deg); }
}

@keyframes g777fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes g777slideUp {
    from { 
        transform: translateY(100px) scale(0.85); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

@keyframes g777glow {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(255, 193, 7, 0.6));
    }
    50% { 
        filter: drop-shadow(0 0 35px rgba(255, 193, 7, 1)) drop-shadow(0 0 50px rgba(255, 193, 7, 0.5));
    }
}

@keyframes g777rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.g777-trigger-btn {
    position: fixed;
    bottom: 110px;
    right: 32px;
    background: linear-gradient(145deg, #ffc107 0%, #ffb300 50%, #ffa000 100%);
    color: #1a3a1a;
    padding: 16px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    z-index: 999998;
    border: 3px solid rgba(255, 255, 255, 0.5);
    animation: g777pulse 2.8s ease-in-out infinite;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 30px rgba(255, 193, 7, 0.5);
    font-family: Arial, sans-serif;
}

.g777-trigger-btn:hover {
    transform: translateY(-8px) scale(1.12);
    box-shadow: 0 14px 50px rgba(255, 193, 7, 0.8);
    background: linear-gradient(145deg, #ffca28 0%, #ffc107 50%, #ffb300 100%);
}

.g777-trigger-icon {
    font-size: 30px;
    animation: g777shake 3.5s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.9));
}

.g777-trigger-text {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.g777-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 0, 0.96);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.g777-modal-overlay.active {
    display: flex;
    animation: g777fadeIn 0.4s ease;
}

.g777-modal-box {
    background: linear-gradient(180deg, #0d2818 0%, #1a3a1a 50%, #0d2818 100%);
    border-radius: 30px;
    max-width: 520px;
    width: 92%;
    position: relative;
    border: 4px solid #ffc107;
    box-shadow: 0 25px 80px rgba(255, 193, 7, 0.5), 
                0 0 100px rgba(255, 193, 7, 0.3),
                inset 0 0 80px rgba(255, 193, 7, 0.08);
    animation: g777slideUp 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.g777-close-btn {
    position: absolute;
    top: 22px;
    right: 22px;
    background: rgba(255, 193, 7, 0.2);
    border: 3px solid #ffc107;
    color: #ffc107;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    font-weight: 300;
    line-height: 1;
}

.g777-close-btn:hover {
    background: #ffc107;
    color: #0d2818;
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.9);
}

.g777-header-section {
    background: linear-gradient(135deg, #1a3a1a 0%, #2d5a2d 100%);
    padding: 50px 35px 35px;
    text-align: center;
    border-bottom: 4px solid #ffc107;
    position: relative;
    overflow: hidden;
}

.g777-header-section::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.12) 0%, transparent 65%);
    animation: g777rotate 6s linear infinite;
}

.g777-header-icon {
    font-size: 70px;
    margin-bottom: 15px;
    animation: g777glow 2.8s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.g777-header-title {
    color: #ffc107;
    font-size: 36px;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 0 18px rgba(255, 193, 7, 0.7), 0 5px 10px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    font-family: Arial, sans-serif;
}

.g777-content-section {
    padding: 40px 35px;
    text-align: center;
}

.g777-prize-amount {
    font-size: 62px;
    font-weight: 900;
    background: linear-gradient(145deg, #ffc107 0%, #ffeb3b 50%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: g777glow 2.8s ease-in-out infinite;
    font-family: Arial, sans-serif;
}

.g777-info-paragraph {
    color: #e8f5e9;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 500;
    font-family: Arial, sans-serif;
}

.g777-info-paragraph strong {
    color: #ffc107;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.6);
}

.g777-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
}

.g777-benefit-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #e8f5e9;
    font-size: 16px;
    text-align: left;
    font-weight: 600;
    padding: 12px 14px;
    background: rgba(255, 193, 7, 0.06);
    border-radius: 14px;
    border: 2px solid rgba(255, 193, 7, 0.25);
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
}

.g777-benefit-item:hover {
    background: rgba(255, 193, 7, 0.14);
    border-color: rgba(255, 193, 7, 0.5);
    transform: translateX(6px);
}

.g777-check-icon {
    background: linear-gradient(145deg, #ffc107 0%, #ffb300 100%);
    color: #1a3a1a;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.5);
}

.g777-footer-section {
    padding: 0 35px 40px 35px;
    display: flex;
    justify-content: center;
}

.g777-cta-button {
    background: linear-gradient(145deg, #ffc107 0%, #ffb300 50%, #ffa000 100%);
    color: #1a3a1a;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 30px rgba(255, 193, 7, 0.6);
    letter-spacing: 1.2px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    font-family: Arial, sans-serif;
}

.g777-cta-button:hover {
    background: linear-gradient(145deg, #ffca28 0%, #ffc107 50%, #ffb300 100%);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 40px rgba(255, 193, 7, 0.8);
}

.g777-cta-arrow {
    font-size: 24px;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.g777-cta-button:hover .g777-cta-arrow {
    transform: translateX(8px);
}

/* Tablet styles */
@media (max-width: 1024px) {
    .g777-trigger-btn {
        bottom: 100px;
        right: 25px;
        padding: 15px 28px;
    }
    
    .g777-trigger-icon {
        font-size: 28px;
    }
    
    .g777-trigger-text {
        font-size: 16px;
    }
    
    .g777-modal-box {
        max-width: 90%;
        border-width: 3px;
    }
    
    .g777-header-section {
        padding: 45px 30px 30px;
    }
    
    .g777-header-title {
        font-size: 32px;
    }
    
    .g777-header-icon {
        font-size: 64px;
    }
    
    .g777-prize-amount {
        font-size: 56px;
    }
    
    .g777-content-section {
        padding: 35px 30px;
    }
    
    .g777-info-paragraph {
        font-size: 17px;
    }
    
    .g777-benefit-item {
        font-size: 15px;
        padding: 11px 13px;
    }
    
    .g777-cta-button {
        padding: 19px 45px;
        font-size: 19px;
    }
    
    .g777-footer-section {
        padding: 0 30px 35px 30px;
    }
}

/* Mobile landscape */
@media (max-width: 768px) {
    .g777-trigger-btn {
        bottom: 85px;
        right: 20px;
        padding: 14px 24px;
        border-radius: 45px;
    }
    
    .g777-trigger-icon {
        font-size: 24px;
    }
    
    .g777-trigger-text {
        font-size: 14px;
        letter-spacing: 0.6px;
    }
    
    .g777-modal-box {
        max-width: 96%;
        border-width: 3px;
        border-radius: 25px;
        margin: 20px;
    }
    
    .g777-header-section {
        padding: 40px 25px 25px;
    }
    
    .g777-header-title {
        font-size: 28px;
        letter-spacing: 1.5px;
    }
    
    .g777-header-icon {
        font-size: 58px;
    }
    
    .g777-prize-amount {
        font-size: 48px;
    }
    
    .g777-content-section {
        padding: 30px 25px;
    }
    
    .g777-info-paragraph {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .g777-benefits-list {
        gap: 14px;
        margin-top: 24px;
    }
    
    .g777-benefit-item {
        font-size: 14px;
        padding: 10px 12px;
        gap: 12px;
        border-radius: 12px;
    }
    
    .g777-check-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .g777-cta-button {
        padding: 18px 40px;
        font-size: 18px;
        border-radius: 45px;
        letter-spacing: 1px;
    }
    
    .g777-footer-section {
        padding: 0 25px 30px 25px;
    }
    
    .g777-close-btn {
        top: 18px;
        right: 18px;
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .g777-trigger-btn {
        bottom: 70px;
        right: 15px;
        padding: 12px 20px;
        border-radius: 40px;
        gap: 8px;
    }
    
    .g777-trigger-icon {
        font-size: 22px;
    }
    
    .g777-trigger-text {
        font-size: 13px;
        letter-spacing: 0.5px;
    }
    
    .g777-modal-box {
        max-width: 98%;
        border-width: 2px;
        border-radius: 20px;
        margin: 10px;
    }
    
    .g777-header-section {
        padding: 35px 20px 20px;
    }
    
    .g777-header-title {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .g777-header-icon {
        font-size: 50px;
        margin-bottom: 12px;
    }
    
    .g777-prize-amount {
        font-size: 42px;
        margin-bottom: 16px;
    }
    
    .g777-content-section {
        padding: 25px 20px;
    }
    
    .g777-info-paragraph {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 25px;
    }
    
    .g777-benefits-list {
        gap: 12px;
        margin-top: 20px;
    }
    
    .g777-benefit-item {
        font-size: 13px;
        padding: 9px 10px;
        gap: 10px;
        border-radius: 10px;
    }
    
    .g777-check-icon {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .g777-cta-button {
        padding: 16px 35px;
        font-size: 16px;
        border-radius: 40px;
        letter-spacing: 0.8px;
        gap: 10px;
    }
    
    .g777-cta-arrow {
        font-size: 20px;
    }
    
    .g777-footer-section {
        padding: 0 20px 25px 20px;
    }
    
    .g777-close-btn {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .g777-trigger-btn {
        bottom: 60px;
        right: 12px;
        padding: 10px 16px;
        border-radius: 35px;
        gap: 6px;
    }
    
    .g777-trigger-icon {
        font-size: 20px;
    }
    
    .g777-trigger-text {
        font-size: 12px;
        letter-spacing: 0.4px;
    }
    
    .g777-modal-box {
        max-width: 99%;
        margin: 5px;
        border-radius: 18px;
    }
    
    .g777-header-section {
        padding: 30px 15px 15px;
    }
    
    .g777-header-title {
        font-size: 22px;
        letter-spacing: 0.8px;
    }
    
    .g777-header-icon {
        font-size: 45px;
        margin-bottom: 10px;
    }
    
    .g777-prize-amount {
        font-size: 38px;
        margin-bottom: 14px;
    }
    
    .g777-content-section {
        padding: 20px 15px;
    }
    
    .g777-info-paragraph {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    
    .g777-benefits-list {
        gap: 10px;
        margin-top: 18px;
    }
    
    .g777-benefit-item {
        font-size: 12px;
        padding: 8px 9px;
        gap: 8px;
        border-radius: 8px;
    }
    
    .g777-check-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .g777-cta-button {
        padding: 14px 30px;
        font-size: 15px;
        border-radius: 35px;
        letter-spacing: 0.6px;
        gap: 8px;
    }
    
    .g777-cta-arrow {
        font-size: 18px;
    }
    
    .g777-footer-section {
        padding: 0 15px 20px 15px;
    }
    
    .g777-close-btn {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .g777-trigger-btn {
        bottom: 15px;
        right: 20px;
        padding: 10px 20px;
    }
    
    .g777-modal-box {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .g777-header-section {
        padding: 25px 20px 15px;
    }
    
    .g777-header-icon {
        font-size: 40px;
        margin-bottom: 8px;
    }
    
    .g777-header-title {
        font-size: 20px;
    }
    
    .g777-prize-amount {
        font-size: 35px;
        margin-bottom: 12px;
    }
    
    .g777-content-section {
        padding: 20px 20px;
    }
    
    .g777-benefits-list {
        gap: 8px;
        margin-top: 15px;
    }
    
    .g777-benefit-item {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .g777-cta-button {
        padding: 12px 25px;
        font-size: 14px;
    }
}