/* Mozedimas - Tema Gamer */
:root {
  --bg: #090912;
  --bg2: #12121f;
  --card: #181829;
  --borda: #2a2a45;
  --texto: #f2f2fa;
  --texto2: #9a9ab8;
  --primaria: #ff6a00;
  --primaria2: #ff2e63;
  --neon: #00e5ff;
  --roxo: #7b2ff7;
  --ok: #22d67a;
  --erro: #ff4d4f;
  --aviso: #ffc233;
  --raio: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  background-image: radial-gradient(circle at 20% 0%, rgba(123,47,247,.18), transparent 45%),
                    radial-gradient(circle at 90% 20%, rgba(255,106,0,.12), transparent 40%);
  background-attachment: fixed;
  color: var(--texto);
  min-height: 100vh;
  line-height: 1.5;
  padding-bottom: 80px;
}
a { color: var(--neon); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Rajdhani', 'Poppins', sans-serif; letter-spacing: .5px; line-height: 1.2; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.center { text-align: center; }
.mt { margin-top: 16px; }
.mt2 { margin-top: 28px; }

/* ===== Topo ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9,9,18,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borda);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-family: 'Rajdhani', sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--texto); }
.logo span { color: var(--primaria); text-shadow: 0 0 14px rgba(255,106,0,.7); }
.menu-btn { background: none; border: 1px solid var(--borda); color: var(--texto); width: 42px; height: 42px; border-radius: 10px; font-size: 1.3rem; cursor: pointer; }
.nav {
  position: fixed; top: 62px; right: -280px; width: 270px; height: calc(100vh - 62px);
  background: var(--bg2); border-left: 1px solid var(--borda);
  padding: 16px; display: flex; flex-direction: column; gap: 6px;
  transition: right .3s; z-index: 49; overflow-y: auto;
}
.nav.aberto { right: 0; }
.nav a { color: var(--texto); padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.nav a:hover, .nav a.ativo { background: var(--card); color: var(--primaria); }
.nav .sep { height: 1px; background: var(--borda); margin: 8px 0; }
.user-chip { font-size: .85rem; color: var(--texto2); padding: 8px 14px; }
.user-chip b { color: var(--neon); }

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border: none; border-radius: 12px;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: transform .15s, box-shadow .2s, opacity .2s;
  color: #fff;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--primaria), var(--primaria2)); box-shadow: 0 4px 18px rgba(255,106,0,.35); }
.btn-neon { background: linear-gradient(135deg, var(--roxo), var(--neon)); box-shadow: 0 4px 18px rgba(0,229,255,.25); }
.btn-outline { background: transparent; border: 1px solid var(--borda); color: var(--texto); }
.btn-ok { background: var(--ok); color: #05150d; }
.btn-erro { background: var(--erro); }
.btn-wa { background: #25d366; color: #04210f; }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: 9px; }

/* ===== Formulários ===== */
.form-group { margin-bottom: 16px; }
label { display: block; margin-bottom: 6px; font-size: .9rem; color: var(--texto2); font-weight: 500; }
input, select, textarea {
  width: 100%; padding: 13px 14px;
  background: var(--bg2); border: 1px solid var(--borda); border-radius: 12px;
  color: var(--texto); font-family: inherit; font-size: 1rem; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(0,229,255,.15); }
.phone-input { display: flex; align-items: stretch; }
.phone-input .prefixo {
  display: flex; align-items: center; padding: 0 14px;
  background: var(--card); border: 1px solid var(--borda); border-right: none;
  border-radius: 12px 0 0 12px; font-weight: 600; color: var(--neon);
}
.phone-input input { border-radius: 0 12px 12px 0; }
.dica { font-size: .8rem; color: var(--texto2); margin-top: 5px; }
.erro-msg { color: var(--erro); font-size: .85rem; margin-top: 6px; }

/* ===== Cartões e páginas de formulário ===== */
.card { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); padding: 18px; }
.auth-box { max-width: 430px; margin: 36px auto; }
.auth-box h1 { font-size: 1.9rem; margin-bottom: 4px; }
.auth-box .sub { color: var(--texto2); margin-bottom: 22px; }
.page-title { font-size: 1.9rem; margin: 24px 0 6px; }
.page-sub { color: var(--texto2); margin-bottom: 20px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 14px; }
.section-title h2 { font-size: 1.5rem; border-left: 4px solid var(--primaria); padding-left: 10px; }
.section-title a { font-size: .9rem; }

/* ===== Banner ===== */
.banner {
  position: relative; margin-top: 18px; border-radius: var(--raio); overflow: hidden;
  min-height: 170px; padding: 26px 22px;
  background: linear-gradient(135deg, #2a0f5c, #7b2ff7 55%, #ff6a00);
  display: flex; flex-direction: column; justify-content: center;
}
.banner h1 { font-size: 1.9rem; }
.banner p { color: #f3e9ff; margin: 6px 0 14px; max-width: 420px; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner .conteudo { position: relative; }

/* ===== Grids ===== */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-card {
  background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 20px 12px; text-align: center; color: var(--texto);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--primaria); box-shadow: 0 6px 22px rgba(255,106,0,.2); }
.cat-card .ico { font-size: 2.3rem; margin-bottom: 6px; }
.cat-card h3 { font-size: 1.15rem; }
.cat-card small { color: var(--texto2); }

.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.prod-card {
  position: relative; background: var(--card); border: 1px solid var(--borda);
  border-radius: var(--raio); padding: 16px 12px; text-align: center;
  transition: transform .2s, border-color .2s;
}
.prod-card:hover { transform: translateY(-3px); border-color: var(--neon); }
.prod-card .ico { font-size: 2.2rem; }
.prod-card h3 { font-size: 1.1rem; margin: 6px 0 2px; }
.prod-card .detalhe { color: var(--texto2); font-size: .8rem; min-height: 18px; }
.prod-card .preco { font-family: 'Rajdhani', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--primaria); margin: 8px 0; }
.badge {
  position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 20px;
  font-size: .7rem; font-weight: 700; background: var(--primaria2); color: #fff;
}
.badge.pop { background: var(--roxo); }
.badge.top { background: var(--primaria); }

/* ===== Recarga ===== */
.resumo { display: flex; flex-direction: column; gap: 10px; }
.resumo .linha { display: flex; justify-content: space-between; gap: 10px; }
.resumo .total { font-family: 'Rajdhani', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--primaria); border-top: 1px dashed var(--borda); padding-top: 10px; }
.qty { display: inline-flex; align-items: center; gap: 14px; background: var(--bg2); border: 1px solid var(--borda); border-radius: 12px; padding: 6px; }
.qty button { width: 40px; height: 40px; border: none; border-radius: 9px; background: var(--card); color: var(--texto); font-size: 1.3rem; cursor: pointer; }
.qty span { min-width: 30px; text-align: center; font-weight: 700; font-size: 1.1rem; }

/* ===== Pagamento ===== */
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.pay-option {
  background: var(--bg2); border: 2px solid var(--borda); border-radius: var(--raio);
  padding: 16px 8px; text-align: center; cursor: pointer; font-weight: 700; transition: all .2s;
}
.pay-option.ativo { border-color: var(--primaria); box-shadow: 0 0 16px rgba(255,106,0,.3); }
.pay-option.emola.ativo { border-color: #ff7a00; }
.pay-option.mpesa.ativo { border-color: #e60000; box-shadow: 0 0 16px rgba(230,0,0,.3); }
.copy-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg2); border: 1px dashed var(--neon); border-radius: 12px; padding: 12px 14px;
}
.copy-box .num { font-family: 'Rajdhani', sans-serif; font-size: 1.5rem; font-weight: 700; letter-spacing: 1px; }
.copy-box small { color: var(--texto2); display: block; }
.valor-grande { font-family: 'Rajdhani', sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--primaria); text-align: center; }

/* ===== Alertas ===== */
.alert { padding: 13px 15px; border-radius: 12px; font-size: .9rem; margin: 14px 0; border: 1px solid; }
.alert-aviso { background: rgba(255,194,51,.1); border-color: var(--aviso); color: var(--aviso); }
.alert-info { background: rgba(0,229,255,.08); border-color: var(--neon); color: var(--neon); }
.alert-erro { background: rgba(255,77,79,.1); border-color: var(--erro); color: var(--erro); }
.alert-ok { background: rgba(34,214,122,.1); border-color: var(--ok); color: var(--ok); }
.alert ol, .alert ul { padding-left: 20px; }
.steps { display: grid; gap: 10px; }
.step { display: flex; gap: 12px; align-items: center; }
.step .n { flex: 0 0 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--primaria), var(--primaria2)); display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ===== Pedidos / estados ===== */
.order-card { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); padding: 14px; margin-bottom: 12px; }
.order-card .topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.order-card .meta { color: var(--texto2); font-size: .85rem; }
.estado { padding: 4px 11px; border-radius: 20px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.estado.pendente { background: rgba(255,194,51,.15); color: var(--aviso); }
.estado.concluido { background: rgba(34,214,122,.15); color: var(--ok); }
.estado.rejeitado { background: rgba(255,77,79,.15); color: var(--erro); }
.timer { font-family: 'Rajdhani', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--aviso); }
.timer.atrasado { color: var(--erro); }

/* ===== Dashboard / estatísticas ===== */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); padding: 16px; }
.stat small { color: var(--texto2); display: block; font-size: .8rem; }
.stat b { font-family: 'Rajdhani', sans-serif; font-size: 1.7rem; color: var(--neon); }
.stat.destaque b { color: var(--primaria); }

/* ===== Tabelas (admin) ===== */
.tabela-wrap { overflow-x: auto; border: 1px solid var(--borda); border-radius: var(--raio); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--borda); white-space: nowrap; }
th { background: var(--bg2); color: var(--texto2); font-weight: 600; }

/* ===== Em breve (afiliado) ===== */
.soon { text-align: center; padding: 50px 20px; }
.soon .ico { font-size: 4rem; }
.soon h2 { font-size: 2rem; margin: 10px 0; color: var(--primaria); }

/* ===== Modal ===== */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-bg.aberto { display: flex; }
.modal { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); padding: 22px; width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto; }

/* ===== Toast e loader ===== */
#toasts { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: calc(100% - 32px); max-width: 400px; }
.toast { padding: 13px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--borda); box-shadow: 0 6px 24px rgba(0,0,0,.5); animation: entrar .3s; font-size: .92rem; }
.toast.ok { border-color: var(--ok); }
.toast.erro { border-color: var(--erro); }
@keyframes entrar { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.loader { width: 34px; height: 34px; border: 4px solid var(--borda); border-top-color: var(--primaria); border-radius: 50%; animation: gira .8s linear infinite; margin: 30px auto; }
@keyframes gira { to { transform: rotate(360deg); } }

/* ===== WhatsApp flutuante ===== */
.wa-float {
  position: fixed; right: 16px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; box-shadow: 0 4px 18px rgba(37,211,102,.5);
  animation: pulsa 2.2s infinite;
}
@keyframes pulsa { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 0 0 12px rgba(37,211,102,0); } }

/* ===== Rodapé ===== */
.footer { margin-top: 40px; padding: 26px 0; border-top: 1px solid var(--borda); background: var(--bg2); text-align: center; color: var(--texto2); font-size: .85rem; }
.footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 10px 0; }

/* ===== Conteúdo de texto (FAQ, termos) ===== */
.texto-pagina h2 { margin: 22px 0 8px; font-size: 1.3rem; color: var(--primaria); }
.texto-pagina p, .texto-pagina li { color: var(--texto2); margin-bottom: 8px; }
.texto-pagina ul { padding-left: 20px; }
.faq-item { background: var(--card); border: 1px solid var(--borda); border-radius: 12px; margin-bottom: 10px; }
.faq-item summary { padding: 14px 16px; cursor: pointer; font-weight: 600; }
.faq-item p { padding: 0 16px 14px; color: var(--texto2); }

/* ===== Telas maiores ===== */
@media (min-width: 700px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .banner h1 { font-size: 2.6rem; }
}
@media (min-width: 980px) {
  .prod-grid { grid-template-columns: repeat(4, 1fr); }
}
/* ===== Ícones SVG ===== */
.logo svg { width: 28px; height: 28px; vertical-align: -6px; margin-right: 6px; }
.cat-card .ico { width: 64px; height: 64px; margin: 0 auto 8px; font-size: 0; }
.prod-card .ico { width: 58px; height: 58px; margin: 0 auto; font-size: 0; }
.cat-card .ico svg, .prod-card .ico svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 10px rgba(0,229,255,.25)); }
#pIco svg { width: 76px; height: 76px; display: inline-block; }