/* ========= Variáveis Globais ========= */
:root {
  --bg:#0f1720;
  --panel:#111a24;
  --card:#13202c;
  --chip-bg:#0b131b;
  --muted:#9bb3c6;
  --text:#e6f0f7;
  --brand:#22c55e;
  --brand-2:#16a34a;
  --danger:#ef4444;
  --border:#1f2c39;
}

/* ========= Reset Básico ========= */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:14px/1.45 Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial
}
a{color:#93c5fd;text-decoration:none}

/* ========= Container ========= */
.container{max-width:1120px;margin:0 auto;padding:24px}

/* ========= Navbar ========= */
.navbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.topnav{display:flex;gap:10px}
.chip{
  padding:8px 14px;
  border-radius:999px;
  background:var(--chip-bg);
  border:1px solid var(--border);
  color:var(--text)
}
.top-actions{display:flex;gap:10px}

/* ========= Botões ========= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 16px;
  border-radius:10px;
  border:1px solid transparent;
  background:var(--brand);
  color:#052e16;
  font-weight:600;
  cursor:pointer
}
.btn.secondary{background:#0b131b;border-color:var(--border);color:var(--text)}
.btn.ghost{background:transparent;border-color:var(--border);color:var(--text)}
.btn.warn{background:transparent;border-color:#783232;color:#fecaca}
.btn:disabled{opacity:.6;cursor:not-allowed}

/* ========= Avatares ========= */
.avatar{width:40px;height:40px;border-radius:50%;border:1px solid var(--border);object-fit:cover}

/* ========= Cards / Layout ========= */
.card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:20px}
.muted{color:var(--muted)}
.hero{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}
.grid-plans{margin-top:24px;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
/* compat: algumas páginas usavam .grid */
.grid{margin-top:24px;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.plan{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:18px}
.plan h3, .plan h2{margin:0 0 8px 0}
.plan .actions{margin-top:12px}
footer{margin:36px 0;color:var(--muted);text-align:center}

/* detalhes extras dos cards de plano */
.plan .price{margin:6px 0 10px;color:#bfe2c8;font-weight:600}
.plan .badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 10px;border-radius:999px;
  background:#0b131b;border:1px solid var(--border);color:#ffe08a;font-weight:700;margin-bottom:8px
}

/* ========= Tabelas (comparativo de planos) ========= */
table{width:100%;border-collapse:collapse;margin-top:12px;background:var(--card);border:1px solid var(--border);border-radius:12px;overflow:hidden}
th,td{padding:12px 14px;border-bottom:1px solid var(--border);text-align:left}
th{color:var(--muted);font-weight:600}
tr:hover td{background:rgba(255,255,255,.02)}

/* ========= Drawer (Login/Conta) ========= */
.drawer{position:fixed;top:0;right:-460px;width:460px;max-width:92vw;height:100%;
  background:var(--panel);border-left:1px solid var(--border);
  box-shadow:-12px 0 40px rgba(0,0,0,.35);transition:right .28s ease;z-index:1000}
.drawer.open{right:0}
.drawer header{position:sticky;top:0;background:var(--panel);
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 18px;border-bottom:1px solid var(--border);z-index:5}
.drawer h3{margin:0;font-size:16px}
.drawer .content{padding:18px;display:flex;flex-direction:column;gap:14px}

.field{display:flex;flex-direction:column;gap:6px;position:relative}
.field label{font-weight:600}
.field input, .field select{
  background:var(--chip-bg);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px 44px 12px 12px
}
.peek{
  position:absolute;right:8px;top:30px;
  background:var(--chip-bg);border:1px solid var(--border);
  border-radius:10px;color:var(--muted);padding:6px 10px;cursor:pointer
}
.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hr{height:1px;background:var(--border);margin:6px 0}
.social{display:flex;flex-direction:column;gap:10px}
.social .sbtn{display:flex;align-items:center;gap:10px;justify-content:center;
  border:1px solid var(--border);background:#0b131b;color:var(--text);
  border-radius:12px;padding:12px 14px;font-weight:600;cursor:pointer}
.sbtn img{width:18px;height:18px}
.sbtn .apple{filter:invert(1)}
.hint{font-size:12px;color:#ffd166}
.error{font-size:12px;color:var(--danger)}

/* ========= Páginas especiais ========= */

/* Legal (termos/política) */
.doc{border:1px solid var(--border);border-radius:12px;padding:16px;height:420px;overflow:auto;background:#fff;color:#0f172a}
.doc h1,.doc h2,.doc h3{margin:12px 0}
.doc strong{font-weight:700}

/* Checkout (success / cancel) */
.wrap{max-width:760px;margin:10vh auto;background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01));
  border:1px solid var(--border);border-radius:20px;padding:28px}
.badge{width:30px;height:30px;border-radius:8px;background:#111;display:grid;place-items:center;font-weight:800;color:#fff}
.top{display:flex;align-items:center;gap:10px;margin-bottom:8px}

/* ========= Responsivo ========= */
@media (max-width:900px){
  .hero{grid-template-columns:1fr}
  .grid-plans,.grid{grid-template-columns:1fr}
}

/* ========= Hover Animation Global ========= */
.card, .plan {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover, .plan:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 22px rgba(0,0,0,.35);
  border-color: var(--brand-2);
}
