/* Modal Styles */
.roblox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.roblox-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.roblox-modal-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.roblox-modal-content {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
}

.roblox-modal-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.roblox-modal-message {
    margin: 0 0 16px 0;
    color: #666;
    line-height: 1.5;
    font-size: 14px;
}

.roblox-modal-messages {
    margin: 16px 0;
    min-height: 50px;
}

.roblox-fetch-message {
    margin: 8px 0;
    color: #333;
    font-size: 14px;
}

.roblox-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
}

.roblox-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.roblox-btn-primary {
    background: var(--c-main, #0073aa);
    color: #fff;
}

.roblox-btn-primary:hover {
    background: var(--c-main, #0073aa);
    opacity: 0.9;
    filter: brightness(0.95);
}

.roblox-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.roblox-btn-secondary:hover {
    background: #e0e0e0;
}

.roblox-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.roblox-modal-spinner {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.roblox-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--c-main, #0073aa);
    border-radius: 50%;
    animation: roblox-spin 1s linear infinite;
}

@keyframes roblox-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Animation for newly fetched codes */
.newly-fetched-code {
    animation: roblox-fade-in-slide 0.6s ease-out;
}

@keyframes roblox-fade-in-slide {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* New badge for newly fetched codes */
.code-new-badge {
    display: inline-block;
    background: #0073e6;
    color: #fff;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
    animation: roblox-badge-pulse 2s ease-in-out infinite;
}

@keyframes roblox-badge-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

p.game-stats-single {
    display: flex;
    align-items: center;
    margin: 0;
    gap: 15px;
}