* { box-sizing: border-box; }

:root {
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.14);
    --text: #f2f2f7;
    --text-dim: rgba(242, 242, 247, 0.65);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: radial-gradient(circle at 15% 20%, #3a2b7c 0%, transparent 45%),
                radial-gradient(circle at 85% 15%, #7c2b6b 0%, transparent 40%),
                radial-gradient(circle at 50% 90%, #1a3f6b 0%, transparent 45%),
                linear-gradient(135deg, #0f0c29, #24243e 50%, #302b63);
    background-attachment: fixed;
    color: var(--text);
}

.conteudo-admin {
    text-align: center;
    padding: 40px 16px 60px;
}

.topo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 26px;
}

h1 { margin: 0; font-size: 26px; font-weight: 800; }

.card {
    max-width: 440px;
    margin: 0 auto 26px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 26px 22px;
    box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.6);
}

.card h2 { margin: 0 0 16px; font-size: 17px; }

.msg {
    display: block;
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.msg.erro { color: #ffd6d6; background: rgba(214, 51, 51, 0.18); border: 1px solid rgba(255, 120, 120, 0.35); }
.msg.sucesso { color: #c9ffe1; background: rgba(29, 209, 161, 0.15); border: 1px solid rgba(29, 209, 161, 0.4); }
.msg.aviso { color: #ffe7b8; background: rgba(214, 158, 51, 0.18); border: 1px solid rgba(255, 190, 120, 0.35); }

input[type="email"] {
    width: 100%;
    padding: 13px 14px;
    margin-bottom: 14px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 15px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

input::placeholder { color: var(--text-dim); }

input:focus {
    border-color: #7367f0;
    background: rgba(255, 255, 255, 0.1);
}

.pacotes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.pacote-opcao { cursor: pointer; }
.pacote-opcao input { position: absolute; opacity: 0; pointer-events: none; }

.pacote-opcao span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pacote-opcao span .preco { color: #7cffc4; }

.pacote-opcao input:checked + span {
    border-color: #7367f0;
    background: rgba(115, 103, 240, 0.25);
    box-shadow: 0 0 0 2px rgba(115, 103, 240, 0.4);
}

button {
    display: inline-block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #34d399, #0f8f5f);
    transition: transform 0.2s ease, filter 0.2s ease;
}

button:hover { transform: translateY(-2px); filter: brightness(1.08); }

.qr-imagem {
    width: 220px;
    height: 220px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: #fff;
    padding: 10px;
}

.qr-imagem img { width: 100%; height: 100%; }

.copia-cola {
    display: block;
    width: 100%;
    font-size: 11.5px;
    font-family: monospace;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 10px;
    word-break: break-all;
    margin-bottom: 12px;
    resize: none;
}

.btn-copiar {
    background: linear-gradient(135deg, #7367f0, #4b3fb0);
    margin-bottom: 8px;
}

.aguardando {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 10px;
}

.aguardando .ponto {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f6c453;
    margin-right: 6px;
    animation: piscar 1.2s ease-in-out infinite;
}

@keyframes piscar {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

table.historico {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
}

table.historico th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    font-weight: 700;
    padding: 0 8px 4px;
}

table.historico td {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 8px 10px;
    font-size: 13px;
}

table.historico td:first-child { border-radius: 10px 0 0 10px; border-right: none; }
table.historico td:last-child { border-radius: 0 10px 10px 0; border-left: none; }

.status-pago { color: #7cffc4; font-weight: 700; }
.status-pendente { color: #ffe7b8; font-weight: 700; }
.status-expirado { color: var(--text-dim); font-weight: 700; }

.voltar {
    display: inline-block;
    margin-top: 28px;
    color: var(--text-dim);
    font-size: 13px;
    text-decoration: none;
}

.voltar:hover { color: var(--text); }
