:root {
    --purple-neon: #a855f7;
    --purple-glow: #7c3aed;
    --bg-main: #09090f;
    --card-surface: rgba(19, 19, 32, 0.75);
    --card-border: rgba(168, 85, 247, 0.12);
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --verde: #10b981;
    --amarelo: #f59e0b;
    --vermelho: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
}

body {
    background: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

#particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(168, 85, 247, 0.08);
    border-radius: 50%;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% { transform: translate(0, 0); }
    100% { transform: translate(var(--move-x), var(--move-y)); }
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(124, 58, 237, 0.16) 0%, transparent 60%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0 14px;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
}

/* HEADER COMPACTO */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #fff 50%, var(--purple-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slogan {
    font-size: 0.6rem;
    color: var(--purple-neon);
    font-weight: 700;
    letter-spacing: 2px;
}

.header-links {
    display: flex;
    gap: 6px;
}

.nav-link {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.canal-btn {
    background: rgba(168, 85, 247, 0.1);
    color: #e9d5ff;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.suporte-btn {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* CARDS ADAPTADOS */
.grid-dashboard {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 15px 0;
}

.glass-card {
    background: var(--card-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.icon-indicator {
    width: 32px;
    height: 32px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-neon);
    font-size: 0.9rem;
}

.card-header h2 {
    font-size: 1rem;
    font-weight: 700;
}

.card-header p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* INPUTS */
.input-wrapper {
    position: relative;
    width: 100%;
}

.neon-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: white;
    border-radius: 6px;
    font-size: 0.9rem;
}

.neon-input:focus {
    outline: none;
    border-color: var(--purple-neon);
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* STATUS CHAVE */
#statusVerificacao.loading {
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    text-align: center;
    font-size: 0.8rem;
    margin-top: 10px;
    border-radius: 6px;
}

#statusVerificacao.valid {
    padding: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-top: 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.1);
}

#statusVerificacao.invalid {
    padding: 10px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    text-align: center;
    font-size: 0.8rem;
    margin-top: 10px;
    border-radius: 6px;
}

.info-simples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.info-item-simples {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 4px;
    text-align: center;
}

.info-label-simples {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.info-value-simples {
    font-size: 0.85rem;
    font-weight: 700;
}

/* CONTADOR */
.counter-engine {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 10px;
}

.engine-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 6px;
    background: rgba(168, 85, 247, 0.08);
    color: var(--purple-neon);
    cursor: pointer;
}

.engine-value {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: monospace;
}

/* CHIPS DE ATALHO */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-bottom: 16px;
}

.quick-chip {
    padding: 6px 0;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
}

/* MENU DROP-DOWN DISCRETO */
.select-field-group {
    margin-bottom: 16px;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    padding: 10px 30px 10px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: white;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
}

.select-wrapper select:focus {
    outline: none;
    border-color: var(--purple-neon);
}

.select-wrapper select option {
    background: #0e0e16;
    color: white;
    padding: 10px;
}

.select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--purple-neon);
    font-size: 0.8rem;
    pointer-events: none;
}

.sub-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

/* CAIXA DE RESUMO EM LISTA */
.checkout-summary {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 4px;
    padding-top: 6px;
}

.price-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--verde);
}

/* BOTÃO DE REALIZAR CHECKOUT */
.btn-primary-action {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: not-allowed;
}

.btn-primary-action.ativo {
    background: linear-gradient(135deg, var(--purple-neon), var(--purple-glow));
    color: white;
    cursor: pointer;
}

/* MODAL DE CONEXÃO */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 10, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 12px;
    backdrop-filter: blur(4px);
}

.modal-window {
    background: #0c0c14;
    border: 1px solid var(--purple-neon);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 350px;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-heading {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 12px;
}

.mini-invoice {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 12px;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.price-row {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 4px;
    padding-top: 4px;
}

.modal-field {
    margin-bottom: 16px;
}

.field-label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.field-tip {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-top: 4px;
}

.btn-modal-action {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--purple-neon), var(--purple-glow));
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

/* CONTAINER DO PIX GATEWAY */
.qr-code-frame {
    background: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 12px;
}

.qr-code-frame img {
    width: 140px;
    height: 140px;
}

.qr-price {
    color: #000;
    font-weight: 800;
    font-size: 1.1rem;
}

.copy-paste-container {
    width: 100%;
    margin-bottom: 12px;
}

.clipboard-box {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 8px;
    align-items: center;
    justify-content: space-between;
}

.clipboard-box span {
    font-family: monospace;
    font-size: 0.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-muted);
}

.mini-copy-btn {
    background: var(--purple-neon);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-tracker {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    text-align: center;
}

.token-container {
    display: flex;
    background: rgba(16, 185, 129, 0.02);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 10px;
    border-radius: 6px;
    align-items: center;
    justify-content: space-between;
}

.token-container span {
    font-family: monospace;
    font-weight: 700;
}

.btn-success-done {
    background: linear-gradient(135deg, #10b981, #059669);
}

.clean-footer {
    text-align: center;
    padding: 15px 0;
    color: rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
}


/* ESTILIZAÇÃO COMPACTA DO CHECKBOX OPCIONAL */
.checkbox-container {
    margin: 15px 0 5px 0;
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
    width: 100%;
}

/* Oculta o checkbox nativo feio */
.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Customização da caixinha interna */
.custom-checkbox {
    height: 16px;
    width: 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 4px;
    margin-right: 8px;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* Efeito Hover na caixinha */
.checkbox-label:hover input ~ .custom-checkbox {
    border-color: var(--purple-neon);
    background: rgba(168, 85, 247, 0.05);
}

/* Quando estiver marcado */
.checkbox-label input:checked ~ .custom-checkbox {
    background: var(--purple-neon);
    border-color: var(--purple-neon);
}

/* O check interno da caixinha (ícone de verificado) */
.custom-checkbox::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .custom-checkbox::after {
    display: block;
}

/* Texto descritivo perfeitamente harmonizado */
.checkbox-text {
    font-size: 0.8rem;
    color: var(--text-muted); /* Mesma cor discreta dos outros subtextos */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.checkbox-text i {
    font-size: 0.85rem;
    color: rgba(168, 85, 247, 0.7);
}

.checkbox-label input:checked ~ .checkbox-text {
    color: var(--text-primary); /* Acende o texto discretamente ao marcar */
}




