.mostbet-vpe-button {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 50%, #7f1d1d 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mostbet-vpe-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
}

@media (max-width: 768px) {
    .mostbet-vpe-button {
        left: 50%;
        transform: translateX(-50%);
        padding: 12px 18px;
        font-size: 14px;
        top: auto;
        bottom: 84px;
    }
    
    .mostbet-vpe-button:hover {
        transform: translateX(-50%) translateY(-2px);
    }
}

.mostbet-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.mostbet-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mostbet-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.mostbet-modal-content {
    position: relative;
    background: linear-gradient(135deg, var(--pink), #ff6b35, var(--neon));
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
}

.mostbet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
}

.mostbet-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.mostbet-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.mostbet-modal-close:hover {
    color: #1f2937;
}

.mostbet-modal-body {
    padding: 25px;
}

#mostbet-captcha-container {
    margin: 20px 0;
}

.mostbet-error {
    margin-top: 15px;
    padding: 12px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 8px;
    font-size: 14px;
}

.mostbet-code-display {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#mostbet-code-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    background: #f9fafb;
}

.mostbet-copy-btn {
    padding: 15px 25px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 50%, #7f1d1d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mostbet-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
}

.mostbet-code-info {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

@media (max-width: 768px) {
    .mostbet-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .mostbet-modal-header {
        padding: 15px 20px;
    }
    
    .mostbet-modal-header h3 {
        font-size: 20px;
    }
    
    .mostbet-modal-body {
        padding: 20px;
    }
    
    .mostbet-code-display {
        flex-direction: column;
    }
    
    .mostbet-copy-btn {
        width: 100%;
    }
}

#mostbet-getcode-captcha-container {
    margin: 20px 0;
}

.mostbet-getcode-cooldown-wrap {
    padding: 10px 0;
    text-align: center;
}

.mostbet-getcode-cooldown-in {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.mostbet-getcode-cooldown-at {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* GET CODE modal: input and display (same as main code modal) */
#mostbet-getcode-code-modal .mostbet-code-display {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#mostbet-getcode-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    background: #f9fafb;
    color: #1f2937;
    min-width: 0;
}

#mostbet-getcode-input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

@media (max-width: 768px) {
    #mostbet-getcode-code-modal .mostbet-code-display {
        flex-direction: column;
    }
}

/* GET CODE button animation: subtle pulse + glow */
@keyframes mostbet-getcode-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4), 0 0 0 0 rgba(220, 38, 38, 0.4);
    }
    50% {
        box-shadow: 0 6px 24px rgba(220, 38, 38, 0.55), 0 0 0 8px rgba(220, 38, 38, 0);
    }
}

@keyframes mostbet-getcode-shine {
    0% {
        background-position: -120% 0;
    }
    100% {
        background-position: 220% 0;
    }
}

.mostbet-getcode-btn {
    position: fixed;
    z-index: 9998;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 50%, #7f1d1d 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
    white-space: nowrap;
    animation: mostbet-getcode-pulse 2.2s ease-in-out infinite;
    overflow: hidden;
}

.mostbet-getcode-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 60%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: mostbet-getcode-shine 3.5s ease-in-out infinite;
    pointer-events: none;
}

.mostbet-getcode-btn:hover {
    animation: none;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 28px rgba(220, 38, 38, 0.6);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
}

.mostbet-getcode-btn:hover::before {
    animation: mostbet-getcode-shine 1.2s ease-in-out infinite;
}

.mostbet-getcode-btn:disabled,
.mostbet-getcode-btn.mostbet-getcode-btn-cooldown {
    cursor: not-allowed;
    animation: none;
    opacity: 0.85;
}

.mostbet-getcode-btn:disabled::before,
.mostbet-getcode-btn.mostbet-getcode-btn-cooldown::before {
    animation: none;
    display: none;
}

@media (max-width: 768px) {
    .mostbet-getcode-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}
