/* CaseSpin Modal */
.G_Popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.G_Popup.show {
    opacity: 1;
    pointer-events: all;
}

.G_Popup .content_pre {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}

.G_Popup ._remove_box {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.3s ease;
}

.G_Popup ._remove_box:hover {
    transform: rotate(90deg);
}

.G_Popup ._remove {
    position: relative;
    width: 100%;
    height: 100%;
}

.G_Popup ._remove::before,
.G_Popup ._remove::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

.G_Popup ._remove::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.G_Popup ._remove::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.G_Popup .content {
    position: relative;
    z-index: 10000;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.G_Popup.show .content {
    animation: modalSlideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-box {
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
    border: 2px solid rgba(0, 224, 255, 0.3);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
}

.modal-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0, 224, 255, 0.1), transparent 50%);
    border-radius: 20px;
    pointer-events: none;
}

/* Modal Button Styles */
.G_Button {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.G_Button.green {
    background: linear-gradient(135deg, #00E0FF 0%, #00B8D4 100%);
    color: #000;
    border: none;
}

.G_Button.green:hover {
    background: linear-gradient(135deg, #00F0FF 0%, #00C8E4 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 224, 255, 0.4);
}

.G_Button.dark {
    background: rgba(255, 255, 255, 0.05);
    color: #E5E5E5;
    border: 2px solid rgba(0, 224, 255, 0.3);
}

.G_Button.dark:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 224, 255, 0.5);
}

.G_Button.steam {
    background: linear-gradient(135deg, #1b2838 0%, #171a21 100%);
    color: #fff;
    border: 2px solid rgba(102, 192, 244, 0.3);
}

.G_Button.steam:hover {
    background: linear-gradient(135deg, #2a475e 0%, #1b2838 100%);
    border-color: rgba(102, 192, 244, 0.6);
}

.G_Button.steam.shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

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

.G_Button .button_text {
    position: relative;
    z-index: 1;
}

.G_Button .button_icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.G_Button.block {
    width: 100%;
}

.G_Button.full {
    width: 100%;
}

.G_Button.big {
    padding: 16px 32px;
    font-size: 16px;
}

.G_Button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Scrollbar for modal content */
.G_Popup .content::-webkit-scrollbar {
    width: 8px;
}

.G_Popup .content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.G_Popup .content::-webkit-scrollbar-thumb {
    background: rgba(0, 224, 255, 0.3);
    border-radius: 10px;
}

.G_Popup .content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 224, 255, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-box {
        padding: 25px;
    }
    
    .modal-header h3 {
        font-size: 20px !important;
    }
    
    .modal-message {
        font-size: 14px !important;
    }
    
    .modal-buttons {
        flex-direction: column !important;
    }
    
    .G_Button {
        width: 100%;
    }
    
    .G_Popup ._remove_box {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
}
