/* ==================== AUTH PAGES STYLE ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #222;
    background-image: url('plau3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #e9ecef;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    line-height: 1.6;
    /* 🔥 CHAVE: Permitir scroll vertical */
    overflow-y: auto;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.94);
    z-index: -1;
}

/* Container das páginas de autenticação */
.auth-container,
.payment-container {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(233, 236, 239, 0.1);
    margin: 20px auto;
}

.payment-container {
    max-width: 600px;
}

/* Títulos */
h2 {
    color: #e9ecef;
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.subtitle,
.order-id {
    color: #999;
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #e9ecef;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(233, 236, 239, 0.2);
    border-radius: 5px;
    color: #e9ecef;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #e9ecef;
    background: rgba(255, 255, 255, 0.1);
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.checkbox-group label {
    color: #e9ecef;
    font-size: 14px;
    margin: 0;
}

/* Botões */
.btn {
    width: 100%;
    padding: 14px;
    background: #e9ecef;
    color: #1a1a2e;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 236, 239, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e9ecef;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Links */
.links {
    text-align: center;
    margin-top: 20px;
    color: #e9ecef;
    font-size: 14px;
}

.links a {
    color: #e9ecef;
    text-decoration: none;
    font-weight: bold;
}

.links a:hover {
    text-decoration: underline;
}

/* Mensagens */
.error-message {
    background: rgba(245, 124, 0, 0.2);
    color: #f57c00;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.success-message {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #4caf50;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    display: none;
}

/* Planos (Register) */
.plans-section {
    margin: 30px 0;
}

.plans-section h3 {
    color: #e9ecef;
    margin-bottom: 15px;
    font-size: 18px;
}

.plan-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(233, 236, 239, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.plan-option:hover {
    border-color: #e9ecef;
    background: rgba(255, 255, 255, 0.1);
}

.plan-option.selected {
    border-color: #e9ecef;
    background: rgba(233, 236, 239, 0.15);
}

.plan-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
}

.plan-details {
    flex: 1;
}

.plan-name {
    color: #e9ecef;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.plan-price {
    color: #e9ecef;
    font-size: 20px;
    font-weight: bold;
}

.plan-savings {
    color: #4caf50;
    font-size: 12px;
    margin-left: 8px;
}

/* Pagamento */
.amount-display {
    background: rgba(233, 236, 239, 0.1);
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.amount-label {
    color: #999;
    font-size: 14px;
    margin-bottom: 5px;
}

.amount-value {
    color: #e9ecef;
    font-size: 36px;
    font-weight: bold;
}

.wallet-section {
    margin-bottom: 30px;
}

.wallet-section h3 {
    color: #e9ecef;
    margin-bottom: 15px;
    font-size: 18px;
}

.wallet-address-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(233, 236, 239, 0.2);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wallet-address {
    flex: 1;
    color: #e9ecef;
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
}

.copy-btn {
    background: #e9ecef;
    color: #1a1a2e;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #ffffff;
    transform: scale(1.05);
}

.copy-btn.copied {
    background: #4caf50;
    color: white;
}

.instructions {
    background: rgba(245, 124, 0, 0.1);
    border-left: 4px solid #f57c00;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.instructions h4 {
    color: #f57c00;
    margin-bottom: 15px;
    font-size: 16px;
}

.instructions ul {
    color: #e9ecef;
    font-size: 14px;
    line-height: 1.8;
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
}

/* Responsivo */
@media (max-width: 768px) {
    .auth-container,
    .payment-container {
        padding: 30px 20px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .amount-value {
        font-size: 28px;
    }
}

/* Admin específico */
.admin-container {
    max-width: 1200px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(233, 236, 239, 0.2);
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #e9ecef;
}

.stat-label {
    color: #999;
    font-size: 14px;
}

/* ==================== ADMIN DASHBOARD ==================== */

.login-box {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 10px;
    max-width: 400px;
    margin: 100px auto;
    border: 1px solid rgba(233, 236, 239, 0.1);
}

.admin-header {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(233, 236, 239, 0.1);
}

.admin-header h1 {
    color: #e9ecef;
    margin: 0;
    font-size: 24px;
}

.logout-btn {
    background: rgba(245, 124, 0, 0.3);
    color: #f57c00;
    border: 1px solid #f57c00;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(245, 124, 0, 0.5);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.6);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(233, 236, 239, 0.1);
}

.stat-label {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-value {
    color: #e9ecef;
    font-size: 32px;
    font-weight: bold;
}

.section {
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(233, 236, 239, 0.1);
}

.section h2 {
    color: #e9ecef;
    margin-bottom: 20px;
    font-size: 20px;
}

.user-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(233, 236, 239, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.user-info {
    flex: 1;
}

.user-name {
    color: #e9ecef;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.user-email {
    color: #999;
    font-size: 14px;
    margin-bottom: 5px;
}

.user-details {
    color: #e9ecef;
    font-size: 14px;
    line-height: 1.6;
}

.order-id {
    color: #4caf50;
    font-weight: bold;
}

.user-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-approve {
    background: #4caf50;
    color: white;
}

.btn-approve:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-reject {
    background: rgba(245, 124, 0, 0.3);
    color: #f57c00;
    border: 1px solid #f57c00;
}

.btn-reject:hover {
    background: rgba(245, 124, 0, 0.5);
}

.btn-primary {
    background: #e9ecef;
    color: #1a1a2e;
}

.btn-primary:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 40px;
    font-size: 16px;
}

.refresh-btn {
    background: rgba(233, 236, 239, 0.1);
    color: #e9ecef;
    border: 1px solid rgba(233, 236, 239, 0.2);
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    margin-left: 10px;
}

.refresh-btn:hover {
    background: rgba(233, 236, 239, 0.2);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status-pending {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.status-expired {
    background: rgba(245, 124, 0, 0.2);
    color: #f57c00;
}

/* Admin Dashboard - Ajustes para scroll */
body.admin-page {
    display: block;
    padding: 20px;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}
/* --- Modificação na largura do Login --- */
.login-box {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 10px;
    width: 100%; /* 🔥 Garante que use a largura total disponível */
    max-width: 450px; /* 🔥 Aumentei um pouco para não ficar tão estreito */
    margin: 40px auto;
    border: 1px solid rgba(233, 236, 239, 0.1);
}

/* --- Nova classe para o Dashboard aproveitar a largura --- */
body.dashboard-mode {
    display: block; /* 🔥 Remove o 'flex' que centraliza tudo no meio da tela */
    padding: 20px;
    overflow-y: auto;
}

.admin-container {
    width: 100%;
    max-width: 1200px; /* 🔥 Permite que o painel cresça horizontalmente */
    margin: 0 auto;
    background: transparent; /* Remove fundos que possam limitar a visão */
    border: none;
}