/* CyberADS - Estilo Principal */
/* Paleta: Amarelo (#FFD700) e Preto (#000000) */

/* Acessibilidade - Screen Reader Only */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

:root {
    /* Cores Principais */
    --primary-yellow: #FFD700;
    --primary-black: #000000;
    --dark-bg: #0a0a0a;
    --card-bg: #141414;
    --card-hover: #1a1a1a;
    --border-color: #2a2a2a;
    
    /* Cores de Texto */
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #666666;
    
    /* Cores de Status */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(255, 215, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(255, 215, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(255, 215, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.3);
    
    /* Transições */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-yellow);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffed4e;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Mobile Header Elements */
.mobile-header {
    display: none;
    align-items: center;
    gap: 1rem;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-yellow);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo:hover {
    color: #ffed4e;
}

/* Navegação */
.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-yellow);
}

.nav-link.active {
    color: var(--primary-yellow);
    font-weight: 600;
}

.sidebar-link.active {
    background-color: var(--card-hover);
    color: var(--primary-yellow);
    font-weight: 600;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
}

.btn-primary:hover {
    background-color: #ffed4e;
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-yellow);
    border: 2px solid var(--primary-yellow);
}

.btn-secondary:hover {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
}

.btn-danger {
    background-color: var(--error);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition-normal);
}

.card:hover {
    background-color: var(--card-hover);
    border-color: var(--primary-yellow);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Produtos Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-normal);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-yellow);
    box-shadow: var(--shadow-lg);
}

.product-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.product-body {
    padding: 1.5rem;
    flex: 1 1 auto;
}

.product-features {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 5px;
}

.product-features::-webkit-scrollbar {
    width: 4px;
}

.product-features::-webkit-scrollbar-track {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 2px;
}

.product-features::-webkit-scrollbar-thumb {
    background: var(--primary-yellow);
    border-radius: 2px;
}

.product-features::-webkit-scrollbar-thumb:hover {
    background: #FFA500;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.product-features li:last-child {
    margin-bottom: 0;
}

.product-features li i {
    color: var(--primary-yellow);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.product-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-yellow);
}

.product-stock {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Ajuste para o botão de produto */
.product-select-btn {
    min-width: 120px;
    padding: 0.75rem 1.5rem;
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Ajustes para o layout do card */
.product-footer > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.btn-block {
    width: 100%;
}

/* Ajustes adicionais para o botão primary dentro dos cards */
.product-card .btn-primary {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-yellow);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-yellow);
}

.modal-body {
    padding: 2rem;
}

/* Forms in Modal */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-yellow);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.btn-block {
    width: 100%;
}

/* Login overlay styling */
.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 1000;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.login-overlay h3 {
    color: var(--primary-yellow);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-overlay p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.login-overlay button {
    margin: 0.5rem;
}

/* Saldo Widget */
.balance-widget {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--card-bg);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.balance-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.balance-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-yellow);
}

/* QR Code */
.qr-code-container {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}

.qr-code-image {
    max-width: 250px;
    height: auto;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
}

.badge-success {
    background-color: var(--success);
    color: white;
}

.badge-warning {
    background-color: var(--warning);
    color: white;
}

.badge-danger {
    background-color: var(--error);
    color: white;
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-yellow);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal de Sucesso da Compra */
.purchase-success-new {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(30, 30, 30, 0.95) 50%, rgba(20, 20, 20, 0.98) 100%);
    border: 2px solid var(--primary-yellow);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-primary);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.purchase-success-new::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    animation: success-glow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes success-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    position: relative;
    z-index: 2;
    animation: success-bounce 1s ease-out;
}

@keyframes success-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.purchase-success-new h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.success-details {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item .label {
    font-weight: 500;
    color: var(--text-secondary);
}

.detail-item .value {
    font-weight: 600;
    color: var(--primary-yellow);
}

.success-message {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.success-message p {
    margin: 0.75rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

.success-message i {
    color: var(--primary-yellow);
    margin-right: 0.5rem;
}

.success-actions {
    position: relative;
    z-index: 2;
}

.btn-goto-orders {
    background: linear-gradient(135deg, var(--primary-yellow), #FFA500);
    color: var(--primary-black);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-goto-orders::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-goto-orders:hover::before {
    left: 100%;
}

.btn-goto-orders:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.2);
    background: linear-gradient(135deg, #FFC700, #FF8C00);
}

.btn-goto-orders i {
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .balance-widget {
        width: auto;
    }
    
    .product-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .product-footer > div:first-child {
        align-items: center;
        text-align: center;
    }
    
    .product-select-btn {
        width: 100%;
    }
    
    /* Responsividade para modal de sucesso */
    .purchase-success-new {
        padding: 2rem 1.5rem;
    }
    
    .purchase-success-new h3 {
        font-size: 1.5rem;
    }
    
    .success-icon {
        font-size: 3rem;
    }
    
    .detail-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .btn-goto-orders {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Estilos do Modal PIX */
.pix-modal .modal-content {
    max-width: 600px;
    width: 95%;
}

.pix-step {
    display: none;
}

.pix-step.active {
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.step-header h4 {
    color: var(--primary-yellow);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Botões de valores */
.amount-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.amount-btn {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amount-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--primary-yellow);
    transform: translateY(-2px);
}

.amount-btn.active {
    background: linear-gradient(135deg, var(--primary-yellow), #FFA500);
    color: var(--primary-black);
    border-color: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Valor customizado */
.custom-amount {
    margin-bottom: 2rem;
}

.custom-amount label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-group {
    position: relative;
    display: flex;
}

.input-prefix {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 0.75rem 1rem;
    color: var(--primary-yellow);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.input-group input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-yellow);
    background: rgba(255, 215, 0, 0.05);
}

.custom-amount small {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

/* Informações do PIX */
.pix-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.amount-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-yellow);
}

.timer-display {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Seção QR Code */
.qr-section {
    text-align: center;
    margin-bottom: 2rem;
}

.qr-code-container {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 2rem;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.qr-code-image {
    width: 200px;
    height: 200px;
    display: block;
}

.pix-code-section {
    margin-top: 2rem;
}

.pix-code-section label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-align: left;
}

.pix-code-section .input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px 0 0 8px;
    font-family: monospace;
    font-size: 0.9rem;
}

.pix-code-section .btn {
    border-radius: 0 8px 8px 0;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-left: none;
}

/* Instruções */
.pix-instructions {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.pix-instructions h5 {
    color: var(--primary-yellow);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.pix-instructions ol {
    list-style-position: inside;
    padding-left: 0;
    color: var(--text-secondary);
}

.pix-instructions li {
    margin-bottom: 0.5rem;
}

/* Aviso de expiração */
.pix-expiry-warning {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}
.pix-expiry-warning i {
    color: var(--primary-yellow);
    font-size: 1.1rem;
}

/* Status do PIX */
.pix-status {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pix-status i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    color: var(--primary-yellow);
}

.pix-status i.spin {
    animation: spin 1s linear infinite;
}

/* Ações do PIX */
.pix-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.pix-actions .btn {
    flex: 1;
    max-width: 200px;
}

/* Mobile responsivo para PIX */
@media (max-width: 768px) {
    .amount-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pix-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .qr-code-image {
        width: 150px;
        height: 150px;
    }
    
    .pix-actions {
        flex-direction: column;
    }
    
    .pix-actions .btn {
        max-width: none;
    }
}

/* Modal de Recarga PIX - Estilo Premium */
#rechargeModal {
    z-index: 1100; /* Maior que outros modais */
}

#rechargeModal .pix-modal {
    max-width: 550px; /* Largura do modal */
}

#rechargeModal .modal-body {
    padding: 2rem 2.5rem;
}

/* Esconde as etapas por padrão */
.pix-step {
    display: none;
}

/* Mostra a etapa ativa */
.pix-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Cabeçalho de cada etapa */
.step-header {
    margin-bottom: 2rem;
    text-align: left;
}

.step-header h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.step-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Opções de valor */
.amount-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.amount-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover {
    background: var(--card-hover);
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.amount-btn.active {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--primary-black);
    font-weight: 700;
}

/* Valor customizado */
.custom-amount {
    margin-bottom: 2rem;
}

.custom-amount label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.custom-amount .input-group {
    max-width: 200px;
}

.custom-amount small {
    display: block;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* Botão Gerar PIX */
#generatePixBtn {
    padding: 1rem;
    font-size: 1.1rem;
}

/* Etapa do QR Code */
.pix-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark-bg);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.pix-info .amount-display, .pix-info .timer-display {
    color: var(--text-secondary);
}

.pix-info .amount-display span, .pix-info .timer-display span {
    color: var(--text-primary);
    font-weight: 700;
}

.qr-section {
    margin-bottom: 2rem;
}

.qr-code-container {
    background: #fff;
    padding: 1rem;
    border-radius: 16px;
    max-width: 220px;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

#qrCodeImage {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.pix-code-section label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.pix-code-section .input-group {
    display: flex;
}

.pix-code-section .input-group input {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.pix-code-section .input-group button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Instruções */
.pix-instructions {
    margin-bottom: 2rem;
}
.pix-instructions h5 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}
.pix-instructions ol {
    list-style-position: inside;
    padding-left: 0;
    color: var(--text-secondary);
}
.pix-instructions li {
    margin-bottom: 0.5rem;
}

/* Status e Ações */
.pix-status {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.pix-status .spin {
    animation: spin 1s linear infinite;
}

.pix-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

#checkPaymentBtn {
    background: transparent;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

#checkPaymentBtn:hover {
    background: var(--card-hover);
    color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

#newPixBtn {
    background: var(--primary-yellow);
    color: var(--primary-black);
    font-weight: 700;
}

/* Estilos para Alertas de Carregamento Customizados (SweetAlert2) */
.loading-popup {
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.loading-popup .loading-title {
    color: var(--primary-yellow) !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
}

.loading-popup .loading-html {
    padding: 0 !important;
}

.custom-loading-content {
    padding: 1.5rem 0;
}

.custom-loading-content .spinner-icon {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.custom-loading-content .spinner-icon .fa-spin {
    animation: fa-spin 1.5s linear infinite;
}

.custom-loading-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* Estilo de Título de Seção Premium */
.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-yellow), transparent);
}

.section-title-icon {
    font-size: 1.5rem;
    color: var(--primary-yellow);
    background: rgba(255, 215, 0, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-title h2, .section-title h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Estilos para Alertas de Info Customizados (SweetAlert2) */
.info-popup {
    border: 1px solid var(--border-color) !important;
}

.info-popup .info-title {
    color: var(--primary-yellow) !important;
}

.info-popup .info-html {
    padding: 0 !important;
}

.custom-info-content {
    padding: 1rem 0;
    text-align: center;
}

.custom-info-content .info-icon {
    font-size: 2.5rem;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.custom-info-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.info-confirm-btn {
    background: var(--primary-yellow) !important;
    color: var(--primary-black) !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 6px !important;
}

.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.swal2-loader {
    border-color: var(--primary-yellow) transparent var(--primary-yellow) transparent !important;
}

/* Modal de Confirmação de Compra - Estilo Premium */
.purchase-popup {
    border-radius: 16px !important;
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
    box-shadow: var(--shadow-xl) !important;
}

.purchase-popup .swal2-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
}

.purchase-popup .swal2-html-container {
    padding: 0 1rem !important;
}

.purchase-confirm-content {
    text-align: left;
    padding: 0;
}

.purchase-confirm-content .product-info {
    background: rgba(10, 10, 10, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
}

.purchase-confirm-content .product-name {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.purchase-confirm-content .product-name i {
    color: var(--primary-yellow);
}

.purchase-confirm-content .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.purchase-confirm-content .detail-row:last-of-type {
    border-bottom: none;
}

.purchase-confirm-content .label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.purchase-confirm-content .value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.purchase-confirm-content .total-row {
    margin-top: 1rem;
    padding: 1rem;
    border-top: 2px solid var(--primary-yellow);
    background: rgba(255, 215, 0, 0.05);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.purchase-confirm-content .total-row .label {
    font-size: 1.1rem;
    color: var(--primary-yellow);
    font-weight: 700;
}

.purchase-confirm-content .total-row .value {
    font-size: 1.5rem;
    color: var(--primary-yellow);
    font-weight: 700;
}

.swal2-confirm.purchase-confirm-btn {
    border-radius: 12px !important;
}

.swal2-cancel.purchase-cancel-btn {
    border-radius: 12px !important;
}

/* Ícone Animado do Modal de Compra */
.animated-cart-icon {
    width: 80px;
    height: 80px;
    border: 4px solid var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    animation: cart-pulse 2s ease-in-out infinite;
}

.animated-cart-icon i {
    font-size: 2.5rem;
    color: var(--primary-yellow);
}

@keyframes cart-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(255, 215, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
} 

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #fff;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-content i {
    font-size: 1.25rem;
}

.toast-success {
    border-color: rgba(40, 167, 69, 0.5);
}

.toast-success i {
    color: #28a745;
}

.toast-error {
    border-color: rgba(220, 53, 69, 0.5);
}

.toast-error i {
    color: #dc3545;
}

.toast-warning {
    border-color: rgba(255, 193, 7, 0.5);
}

.toast-warning i {
    color: #ffc107;
}

.toast-info {
    border-color: rgba(23, 162, 184, 0.5);
}

.toast-info i {
    color: #17a2b8;
}

.toast-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* PIX Status Styles */
.pix-status {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    font-weight: 500;
}

.pix-status.success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.pix-status.pending {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.pix-status.expired {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.pix-status.cancelled {
    background: rgba(108, 117, 125, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.3);
    color: #6c757d;
}

.pix-status.unknown {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

/* Spinning animation */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Text colors for status */
.text-success { color: #28a745 !important; }
.text-danger { color: #dc3545 !important; }
.text-warning { color: #ffc107 !important; }
.text-info { color: #17a2b8 !important; } 

/* Modal de Acesso Restrito (Login Necessário) */
.login-required-popup {
    border-radius: 16px !important;
    border: 1.5px solid rgba(255, 215, 0, 0.25) !important;
    box-shadow: var(--shadow-xl) !important;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.98) 0%, rgba(25, 25, 25, 0.95) 50%, rgba(15, 15, 15, 0.98) 100%) !important;
    padding: 2.5rem 2rem 2rem 2rem !important;
    min-width: 340px;
    max-width: 98vw;
}

.login-required-title {
    color: var(--primary-yellow);
    font-size: 2rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: 0.5px;
    text-align: center;
}

.login-required-html {
    padding: 0 !important;
}

.login-required-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.login-icon-container {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 0.5rem;
}
.login-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, rgba(255,215,0,0.18) 0%, rgba(255,215,0,0.05) 80%, transparent 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: login-glow 2.5s ease-in-out infinite;
}
.login-icon {
    position: relative;
    z-index: 2;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30,30,30,0.95);
    border-radius: 50%;
    border: 2.5px solid var(--primary-yellow);
    box-shadow: 0 0 16px 0 rgba(255,215,0,0.10);
}
.login-icon i {
    font-size: 2.2rem;
    color: var(--primary-yellow);
}
@keyframes login-glow {
    0% { box-shadow: 0 0 0 0 rgba(255,215,0,0.18); }
    70% { box-shadow: 0 0 0 18px rgba(255,215,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,215,0,0.18); }
}

.login-message h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-align: center;
}
.login-message p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    text-align: center;
}
.login-benefits {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}
.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary-yellow);
    font-size: 0.98rem;
    font-weight: 600;
    background: rgba(255,215,0,0.07);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    min-width: 90px;
    box-shadow: 0 2px 8px 0 rgba(255,215,0,0.04);
}
.benefit-item i {
    font-size: 1.2rem;
    margin-bottom: 0.15rem;
    color: var(--primary-yellow);
}

.swal2-confirm.login-required-confirm {
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 1.08rem !important;
    background: var(--primary-yellow) !important;
    color: #222 !important;
    box-shadow: 0 2px 8px 0 rgba(255,215,0,0.10);
    border: none !important;
    transition: background 0.2s;
}
.swal2-confirm.login-required-confirm:hover {
    background: #ffe066 !important;
}
.swal2-cancel.login-required-cancel {
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 1.08rem !important;
    background: #222 !important;
    color: #fff !important;
    border: 1.5px solid #444 !important;
    transition: background 0.2s, color 0.2s;
}
.swal2-cancel.login-required-cancel:hover {
    background: #444 !important;
    color: var(--primary-yellow) !important;
}

@media (max-width: 600px) {
    .login-required-popup {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem !important;
        min-width: 0;
    }
    .login-benefits {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ===== MODAIS DE RECUPERAÇÃO DE SENHA ===== */

/* Estilos base para todos os modais SweetAlert2 */
.swal2-popup {
    border-radius: 16px !important;
    border: 1.5px solid rgba(255, 215, 0, 0.25) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 60px rgba(255, 215, 0, 0.05) !important;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.98) 0%, rgba(25, 25, 25, 0.95) 50%, rgba(15, 15, 15, 0.98) 100%) !important;
    padding: 2.5rem 2rem 2rem 2rem !important;
    min-width: 340px;
    max-width: 98vw;
    backdrop-filter: blur(20px);
}

.swal2-title {
    color: var(--primary-yellow) !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: 0.5px;
    text-align: center;
}

.swal2-html-container {
    color: var(--text-secondary) !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    margin: 1rem 0 !important;
}

/* Ícones dos modais */
.swal2-icon {
    border: none !important;
    background: transparent !important;
    margin: 0 auto 1rem auto !important;
}

.swal2-icon.swal2-success {
    color: var(--success) !important;
    font-size: 3rem !important;
}

.swal2-icon.swal2-error {
    color: var(--error) !important;
    font-size: 3rem !important;
}

.swal2-icon.swal2-warning {
    color: var(--warning) !important;
    font-size: 3rem !important;
}

.swal2-icon.swal2-info {
    color: var(--info) !important;
    font-size: 3rem !important;
}

/* Botões dos modais */
.swal2-confirm {
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1.08rem !important;
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    color: #000 !important;
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.4) !important;
    border: none !important;
    padding: 1rem 2rem !important;
    transition: all 0.3s ease !important;
    min-width: 120px;
}

.swal2-confirm:hover {
    background: linear-gradient(135deg, #FFC700, #FF8C00) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.6) !important;
}

.swal2-cancel {
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 1.08rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-secondary) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1rem 2rem !important;
    transition: all 0.3s ease !important;
    min-width: 120px;
}

.swal2-cancel:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--primary-yellow) !important;
    border-color: rgba(255, 215, 0, 0.3) !important;
}

/* Container de ações */
.swal2-actions {
    gap: 1rem !important;
    margin-top: 1.5rem !important;
}

/* Modais específicos de recuperação de senha */
.password-reset-modal {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(30, 30, 30, 0.9) 50%, rgba(20, 20, 20, 0.95) 100%) !important;
}

.password-reset-modal .swal2-title {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.password-reset-modal .swal2-html-container {
    background: rgba(255, 215, 0, 0.05) !important;
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin: 1.5rem 0 !important;
}

/* Modais de sucesso */
.success-modal .swal2-icon {
    animation: success-bounce 0.6s ease-in-out;
}

.success-modal .swal2-title {
    color: var(--success) !important;
}

/* Modais de erro */
.error-modal .swal2-icon {
    animation: error-shake 0.6s ease-in-out;
}

.error-modal .swal2-title {
    color: var(--error) !important;
}

/* Animações */
@keyframes success-bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

@keyframes error-shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Responsividade para modais */
@media (max-width: 600px) {
    .swal2-popup {
        padding: 1.5rem 1rem 1rem 1rem !important;
        min-width: 0;
        margin: 1rem !important;
    }
    
    .swal2-title {
        font-size: 1.5rem !important;
    }
    
    .swal2-html-container {
        font-size: 1rem !important;
    }
    
    .swal2-confirm,
    .swal2-cancel {
        font-size: 1rem !important;
        padding: 0.875rem 1.5rem !important;
        min-width: 100px;
    }
    
    .swal2-actions {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
} 