/* ========== POPUP DE RECARGA DZLCOIN ========== */

/* Overlay do popup */
.recharge-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Container do popup */
.recharge-popup-container {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(26, 26, 26, 0.95));
    border-radius: 20px;
    border: 2px solid rgba(196, 30, 58, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(196, 30, 58, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Esconder scrollbar */
.recharge-popup-container::-webkit-scrollbar {
    display: none;
}

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

/* Header do popup */
.recharge-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 1px solid rgba(196, 30, 58, 0.2);
}

.recharge-popup-header h3 {
    color: #FFB347;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
    letter-spacing: 0.05em;
}

.btn-close-popup {
    background: none;
    border: none;
    color: #FFB347;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-popup:hover {
    background: rgba(196, 30, 58, 0.2);
    color: #FF6B35;
    transform: rotate(90deg);
}

/* Body do popup */
.recharge-popup-body {
    padding: 30px;
}

/* ========== STEAM LOGIN ========== */
.steam-login-btn {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8), rgba(26, 26, 26, 0.8));
    border: 2px solid #FFB347;
    color: #FFB347;
    padding: 12px 25px;
    width: 200px;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 179, 71, 0.3);
    display: block;
    margin: 15px auto;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.05em;
}

.steam-login-btn i {
    font-size: 16px;
}

.steam-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 179, 71, 0.5);
    border-color: #FF6B35;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(10, 10, 10, 0.9));
    color: #FF6B35;
}

.steam-login-btn.loading {
    opacity: 0.6;
    cursor: wait;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

.divider {
    color: #9CA3AF;
    font-size: 0.9rem;
    margin: 20px 0;
    position: relative;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #666, transparent);
}

.divider::after {
    content: attr(data-text);
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(26, 26, 26, 0.95));
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

/* ========== PERFIL STEAM ========== */
.steam-profile-box {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(196, 30, 58, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.steam-profile-box img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #FFB347;
}

.steam-profile-box div {
    flex: 1;
}

.steam-profile-box strong {
    color: #FFB347;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.05em;
}

.steam-profile-box p {
    color: #D4D4D4;
    margin: 0;
    font-size: 0.9rem;
}

.btn-logout {
    background: linear-gradient(135deg, #C41E3A, #8B1538);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
}

/* ========== FORMULÁRIO ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #FFB347;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(196, 30, 58, 0.3);
    border-radius: 10px;
    background: rgba(26, 26, 26, 0.6);
    color: #F5F5F5;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #FFB347;
    box-shadow: 0 0 15px rgba(255, 179, 71, 0.3);
    background: rgba(26, 26, 26, 0.8);
}

.form-group input::placeholder {
    color: #9CA3AF;
}

/* ========== BOTÕES DE MÉTODO DE PAGAMENTO ========== */
.payment-methods-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.btn-payment-method {
    background: rgba(26, 26, 26, 0.6);
    border: 2px solid rgba(196, 30, 58, 0.3);
    border-radius: 12px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-payment-method i {
    font-size: 2rem;
    color: #FFB347;
    transition: all 0.3s ease;
}

.btn-payment-method .method-title {
    color: #F5F5F5;
    font-weight: 600;
    font-size: 1rem;
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.05em;
}

.btn-payment-method .method-subtitle {
    color: #9CA3AF;
    font-size: 0.85rem;
    display: block;
}

.btn-payment-method:hover {
    transform: translateY(-3px);
    border-color: #FFB347;
    box-shadow: 0 6px 20px rgba(255, 179, 71, 0.3);
    background: rgba(26, 26, 26, 0.8);
}

.btn-payment-method:hover i {
    transform: scale(1.1);
    color: #FF6B35;
}

.btn-payment-method.active {
    background: linear-gradient(135deg, rgba(255, 179, 71, 0.2), rgba(196, 30, 58, 0.1));
    border-color: #FFB347;
    box-shadow: 0 0 20px rgba(255, 179, 71, 0.4);
}

.btn-payment-method.active::before {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: #FFB347;
    color: #0A0A0A;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-payment-method.active i {
    color: #FF6B35;
}

.btn-payment-method.active .method-title {
    color: #FFB347;
}

.btn-payment-method.active .method-subtitle {
    color: #FFB347;
}

/* ========== BOTÃO DE SUBMIT ========== */
.btn-generate-qr {
    background: linear-gradient(135deg, #C41E3A, #8B1538);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.05em;
}

.btn-generate-qr:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.5);
    background: linear-gradient(135deg, #E63946, #C41E3A);
}

.btn-generate-qr:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========== QR CODE SECTION ========== */
.qrcode-container {
    padding: 30px;
    text-align: center;
}

.qrcode-container h4 {
    color: #FFB347;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.05em;
}

.qrcode-box {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.qrcode-box img {
    max-width: 200px;
    width: 100%;
    height: auto;
}

.pix-code-box {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.pix-code-box input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(196, 30, 58, 0.3);
    border-radius: 10px;
    background: rgba(26, 26, 26, 0.6);
    color: #F5F5F5;
    font-size: 0.9rem;
}

.btn-copy {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.05em;
}

.btn-copy:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

/* ========== STATUS DE PAGAMENTO ========== */
.status-box {
    background: rgba(22, 163, 74, 0.1);
    border: 2px solid #16a34a;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.status-box .text-success {
    color: #16a34a !important;
}

.status-box .text-light {
    color: #D4D4D4 !important;
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 768px) {
    .recharge-popup-container {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .recharge-popup-header {
        padding: 20px 20px 15px;
    }
    
    .recharge-popup-body {
        padding: 20px;
    }
    
    .steam-login-btn {
        width: 180px;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .steam-profile-box {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .pix-code-box {
        flex-direction: column;
    }
    
    .btn-copy {
        justify-content: center;
    }
    
    .payment-methods-buttons {
        gap: 10px;
    }
    
    .btn-payment-method {
        padding: 15px 10px;
    }
    
    .btn-payment-method i {
        font-size: 1.5rem;
    }
    
    .btn-payment-method .method-title {
        font-size: 0.9rem;
    }
    
    .btn-payment-method .method-subtitle {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .recharge-popup-container {
        margin: 5px;
        max-width: calc(100% - 10px);
    }
    
    .recharge-popup-header {
        padding: 15px 15px 10px;
    }
    
    .recharge-popup-body {
        padding: 15px;
    }
    
    .steam-login-btn {
        width: 160px;
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn-generate-qr {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .payment-methods-buttons {
        gap: 8px;
    }
    
    .btn-payment-method {
        padding: 12px 8px;
    }
    
    .btn-payment-method i {
        font-size: 1.3rem;
    }
    
    .btn-payment-method .method-title {
        font-size: 0.85rem;
    }
    
    .btn-payment-method .method-subtitle {
        font-size: 0.7rem;
    }
}

/* ========== ANIMAÇÕES ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recharge-popup-body > * {
    animation: slideUp 0.5s ease-out;
}

.recharge-popup-body > *:nth-child(1) { animation-delay: 0.1s; }
.recharge-popup-body > *:nth-child(2) { animation-delay: 0.2s; }
.recharge-popup-body > *:nth-child(3) { animation-delay: 0.3s; }
.recharge-popup-body > *:nth-child(4) { animation-delay: 0.4s; }

/* ========== SELETOR DE SERVIDOR ========== */
.server-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.server-card {
    background: rgba(26, 26, 26, 0.6);
    border: 2px solid rgba(196, 30, 58, 0.2);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.server-card:hover {
    border-color: rgba(255, 179, 71, 0.5);
    background: rgba(26, 26, 26, 0.8);
    transform: translateY(-2px);
}

.server-card.selected {
    border-color: #FFB347;
    background: linear-gradient(135deg, rgba(255, 179, 71, 0.15), rgba(196, 30, 58, 0.05));
    box-shadow: 0 0 20px rgba(255, 179, 71, 0.3);
}

.server-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: #FFB347;
    color: #0A0A0A;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.75rem;
}

.server-card.offline {
    opacity: 0.5;
    cursor: not-allowed;
}

.server-card.offline:hover {
    transform: none;
    border-color: rgba(196, 30, 58, 0.2);
}

.server-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.server-status.online {
    background: #16a34a;
    box-shadow: 0 0 8px rgba(22, 163, 74, 0.6);
    animation: serverPulse 2s ease-in-out infinite;
}

.server-status.offline {
    background: #C41E3A;
    box-shadow: 0 0 8px rgba(196, 30, 58, 0.4);
}

@keyframes serverPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(22, 163, 74, 0.6); }
    50% { opacity: 0.7; box-shadow: 0 0 12px rgba(22, 163, 74, 0.8); }
}

.server-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.server-info strong {
    color: #F5F5F5;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.05em;
}

.server-info small {
    color: #9CA3AF;
    font-size: 0.75rem;
}

.server-card.selected .server-info strong {
    color: #FFB347;
}

/* Responsivo para seletor de servidor */
@media (max-width: 480px) {
    .server-selector-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .server-card {
        padding: 12px;
    }
    
    .server-info strong {
        font-size: 0.85rem;
    }
}