/* ============================================
   VPE SPORTS GAME CODE MANAGER
   ============================================ */

/* ===== MODAL OVERLAY ===== */
.gcm-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gcm-modal.show {
    display: flex;
    opacity: 1;
    animation: vpeModalFadeIn 0.3s ease;
}

/* ===== MODAL CONTENT ===== */
.gcm-modal-content {
    position: relative;
    background: rgba(45, 45, 45, 0.50);
    backdrop-filter: blur(82px);
    border-radius: 24px;
    max-width: 557px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(-50px) scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gcm-modal.show .gcm-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
    animation: vpeModalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== MODAL HEADER ===== */
.gcm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 32px 24px 32px;
    flex-shrink: 0;
}

.gcm-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 28px;
    line-height: 37px;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 0;
}

.gcm-modal-header .gcm-header-icon {
    color: #FF2C2C;
    flex-shrink: 0;
}

.gcm-modal-close {
    background: none;
    border: none;
    color: white;
    opacity: 0.5;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gcm-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* ===== MODAL BODY ===== */
.gcm-modal-body {
    padding: 10px 32px 32px 32px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 44, 44, 0.3) transparent;
}

.gcm-modal-body::-webkit-scrollbar {
    width: 6px;
}

.gcm-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.gcm-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 44, 44, 0.3);
    border-radius: 3px;
}

.gcm-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 44, 44, 0.5);
}

/* ===== TELEGRAM SECTION ===== */
.gcm-telegram-section {
    margin-bottom: 24px;
    text-align: center;
}

.gcm-telegram-section h4 {
    margin: 0 0 20px 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.gcm-action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    flex-direction: column;
}

/* ===== VPE SPORTS BUTTONS ===== */
.gcm-telegram-link,
.gcm-copy-code-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #FF2C2C, #e60000);
    color: white;
    padding: 14px 24px;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 44, 44, 0.3);
    position: relative;
    overflow: hidden;
}

.gcm-telegram-link:hover,
.gcm-copy-code-btn:hover {
    background: linear-gradient(135deg, #e60000, #cc0000);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 44, 44, 0.4);
    color: white;
}

.gcm-copy-code-btn.gcm-copy-success {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.gcm-telegram-link .vpe-icon,
.gcm-copy-code-btn .vpe-icon {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ===== OR DIVIDER ===== */
.gcm-or-divider {
    color: #FF2C2C;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(255, 44, 44, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(255, 44, 44, 0.2);
    margin: 12px 0;
}

.gcm-or-divider::before,
.gcm-or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FF2C2C, transparent);
    margin: 0 12px;
}

/* ===== CODE DISPLAY ===== */
.gcm-code-section {
    margin-bottom: 24px;
}

.gcm-code-section h4 {
    margin: 0 0 16px 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.gcm-code-display {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.gcm-code-text {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    color: #FF2C2C;
    background: rgba(255, 44, 44, 0.1);
    padding: 16px 20px;
    border: 2px solid #FF2C2C;
    border-radius: 12px;
    letter-spacing: 3px;
    user-select: all;
    cursor: text;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 10px rgba(255, 44, 44, 0.3);
    position: relative;
    overflow: hidden;
}

.gcm-code-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    animation: vpeCodeGlow 2s ease-in-out infinite;
}

.gcm-code-text:hover {
    background: rgba(255, 44, 44, 0.15);
    border-color: #ff6b6b;
    color: #ff6b6b;
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
    transform: scale(1.02);
    box-shadow: 
        0 8px 25px rgba(255, 44, 44, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== BOT USERNAME SECTION ===== */
.gcm-bot-username-section {
    margin-bottom: 24px;
}

.gcm-bot-username-section h4 {
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.gcm-bot-username-display {
    position: relative;
    display: flex;
    align-items: center;
}

.gcm-bot-username-text {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 50px 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 1;
    user-select: all;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gcm-bot-username-text:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.gcm-copy-bot-username-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.gcm-copy-bot-username-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.gcm-copy-bot-username-btn.gcm-copy-success {
    color: #10b981;
}

.gcm-copy-bot-username-btn .vpe-icon {
    width: 16px;
    height: 16px;
}

/* ===== INSTRUCTIONS ===== */
.gcm-instructions {
    background: rgba(255, 44, 44, 0.1);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #FF2C2C;
    border: 1px solid rgba(255, 44, 44, 0.2);
}

.gcm-instructions h4 {
    margin: 0 0 16px 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gcm-instructions h4::before {
    content: '💡';
    font-size: 18px;
}

.gcm-instructions ol {
    margin: 0;
    padding-left: 20px;
    counter-reset: step-counter;
}

.gcm-instructions li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    counter-increment: step-counter;
    position: relative;
    padding-left: 10px;
}

.gcm-instructions li::before {
    content: counter(step-counter);
    position: absolute;
    left: -25px;
    top: 0;
    background: #FF2C2C;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

/* ===== USER LIMITS INFO ===== */
.gcm-limits-info {
    margin: 20px 0;
    padding: 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gcm-limits-header h4 {
    margin: 0 0 16px 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gcm-limits-header h4::before {
    content: '⏱️';
    font-size: 20px;
}

.gcm-limits-content {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.gcm-limits-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 700;
}

.gcm-limits-used {
    color: #ef4444;
}

.gcm-limits-separator {
    color: #64748b;
}

.gcm-limits-total {
    color: #ffffff;
}

.gcm-limits-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    margin-left: 6px;
}

.gcm-limits-remaining {
    color: #10b981;
    font-weight: 600;
    font-size: 14px;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.gcm-used-games {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gcm-used-games h5 {
    margin: 0 0 12px 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}



.gcm-used-games ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gcm-used-games li {
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.gcm-used-games li:hover {
    background: rgba(255, 44, 44, 0.1);
}

.gcm-used-games li:last-child {
    margin-bottom: 0;
}

.gcm-status-new {
    color: #00f859;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    background: rgba(251, 191, 36, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
}

.gcm-status-active {
    color: #10b981;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
}

.gcm-status-expired {
    color: #ef4444;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
}

/* ===== ERROR MODAL ===== */
.gcm-error-content {
    text-align: center;
    padding: 20px;
}

.gcm-error-icon {
    color: #ef4444;
    margin-bottom: 20px;
    font-size: 48px;
}

.gcm-error-message h4 {
    color: #ef4444;
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
    

.gcm-error-message p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 20px 0;
    font-size: 14px;
    line-height: 1.5;
}

.gcm-error-actions {
    margin-top: 20px;
}

.gcm-close-error-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.gcm-close-error-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* ===== BUTTON STYLES ===== */
.steam_data_cta {
    margin: 20px 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.steam_data_cta button {
    background: linear-gradient(135deg, #FF2C2C, #e60000);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    box-shadow: 0 4px 15px rgba(255, 44, 44, 0.3);
}

.steam_data_cta button:hover {
    background: linear-gradient(135deg, #e60000, #cc0000);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 44, 44, 0.4);
}

.steam_data_cta button:disabled {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .gcm-modal-content {
        width: 95%;
        border-radius: 16px;
        max-height: 95vh;
    }
    
    .gcm-modal-header {
        padding: 24px 24px 20px 24px;
    }
    
    .gcm-modal-header h3 {
        font-size: 24px;
    }
    
    .gcm-modal-body {
        padding: 0 24px 24px 24px;
    }
    
    .gcm-action-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .gcm-telegram-link,
    .gcm-copy-code-btn {
        padding: 12px 20px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .gcm-code-text {
        font-size: 20px;
        padding: 12px 16px;
        letter-spacing: 2px;
    }
    
    .gcm-code-display {
        flex-direction: column;
        gap: 12px;
    }
    
    .gcm-bot-username-display {
        width: 100%;
    }
    
    .gcm-bot-username-text {
        font-size: 14px;
        padding-right: 40px;
    }
    
    .gcm-limits-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .gcm-limits-stats {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gcm-modal-content {
        width: 95%;
        border-radius: 12px;
    }
    
    .gcm-modal-header {
        padding: 20px 20px 16px 20px;
    }
    
    .gcm-modal-header h3 {
        font-size: 20px;
    }
    
    .gcm-modal-body {
        padding: 0 20px 20px 20px;
    }
    
    .gcm-code-text {
        font-size: 18px;
        text-align: center;
        letter-spacing: 1px;
    }
}

/* ===== LIMITS MODAL ===== */
#gcm-limits-modal .gcm-modal-content {
    max-width: 600px;
}

#gcm-limits-modal .gcm-limits-info {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

#gcm-limits-modal .gcm-limits-header h4 {
    margin: 0 0 20px 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
}

#gcm-limits-modal .gcm-limits-header h4::before {
    content: '⏱️';
    font-size: 22px;
}

#gcm-limits-modal .gcm-limits-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#gcm-limits-modal .gcm-limits-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
}

#gcm-limits-modal .gcm-limits-used {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

#gcm-limits-modal .gcm-limits-separator {
    color: #64748b;
}

#gcm-limits-modal .gcm-limits-total {
    color: #ffffff;
}

#gcm-limits-modal .gcm-limits-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 500;
    margin-left: 8px;
}

#gcm-limits-modal .gcm-limits-remaining {
    color: #10b981;
    font-weight: 600;
    font-size: 16px;
    background: rgba(16, 185, 129, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

#gcm-limits-modal .gcm-used-games {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#gcm-limits-modal .gcm-used-games h5 {
    margin: 0 0 15px 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
}

#gcm-limits-modal .gcm-used-games h5::before {
    font-size: 18px;
}

#gcm-limits-modal .gcm-used-games ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#gcm-limits-modal .gcm-used-games li {
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

#gcm-limits-modal .gcm-used-games li:hover {
    background: rgba(255, 44, 44, 0.1);
}

#gcm-limits-modal .gcm-used-games li:last-child {
    margin-bottom: 0;
}

/* ===== HIDE LEGACY MODALS ===== */
.steam_modal {
    display: none !important;
}

/* ===== ANIMATIONS ===== */
@keyframes vpeModalFadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

@keyframes vpeModalSlideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes vpeCodeGlow {
    0%, 100% { 
        left: -100%; 
    }
    50% { 
        left: 100%; 
    }
}

