/* MJ Tech — tokens e componentes compartilhados (vitrine + painel). Sem fontes/CDN externos (CSP). */
:root {
  --bg: #0a0c10;
  --bg2: #10141b;
  --card: #141a23;
  --card2: #1a222d;
  --line: rgba(255, 255, 255, .09);
  --line-azul: rgba(0, 194, 255, .38);
  --txt: #f3f6fa;
  --txt2: #aab4c3;
  --txt3: #7b8594;
  --azul: #00c2ff;
  --azul2: #007bff;
  --wa: #25d366;
  --ml: #ffe600;
  --ml-txt: #2d3277;
  --erro: #ff6b7a;
  --ok: #3ddc97;
  --aviso: #ffb454;
  --r: 14px;
  --r-sm: 10px;
  --sombra: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.5;
  min-height: 100vh;
  background-image: radial-gradient(900px 420px at 85% -10%, rgba(0, 123, 255, .16), transparent 60%),
                    radial-gradient(700px 380px at -10% 0%, rgba(0, 194, 255, .10), transparent 55%);
  background-repeat: no-repeat;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
a { color: var(--azul); }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }

.marca { font-weight: 800; font-size: 1.15rem; color: var(--txt); text-decoration: none; letter-spacing: .01em; }
.marca b { color: var(--azul); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- botões ---------- */
.btn {
  appearance: none; border: 1px solid var(--line); background: var(--card2); color: var(--txt);
  font: inherit; font-weight: 600; font-size: .95rem; min-height: 44px; padding: 0 18px;
  border-radius: var(--r-sm); cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; text-decoration: none; transition: transform .12s, border-color .15s, background .15s, opacity .15s;
}
.btn:hover { border-color: var(--line-azul); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-primario { background: linear-gradient(135deg, var(--azul), var(--azul2)); border-color: transparent; color: #04121c; }
.btn-primario:hover { filter: brightness(1.08); border-color: transparent; }
.btn-wa { background: var(--wa); border-color: transparent; color: #04210f; }
.btn-wa:hover { filter: brightness(1.06); border-color: transparent; }
.btn-ml { background: var(--ml); border-color: transparent; color: var(--ml-txt); }
.btn-ml:hover { filter: brightness(1.05); border-color: transparent; }
.btn-perigo { color: var(--erro); border-color: rgba(255, 107, 122, .35); background: transparent; }
.btn-perigo:hover { background: rgba(255, 107, 122, .1); border-color: var(--erro); }
.btn-fantasma { background: transparent; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .85rem; }
.btn-bloco { width: 100%; }

/* ---------- formulários ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo > label, .rotulo { font-size: .82rem; font-weight: 600; color: var(--txt2); }
.campo small { color: var(--txt3); font-size: .78rem; }
input[type="text"], input[type="search"], input[type="password"], input[type="url"], input[type="number"],
input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--txt); background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 11px 13px; min-height: 44px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(0, 194, 255, .18); }
::placeholder { color: var(--txt3); }

/* ---------- misc ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 999px; background: var(--card2); color: var(--txt2); border: 1px solid var(--line);
}
.pill-ok { color: var(--ok); border-color: rgba(61, 220, 151, .35); }
.pill-aviso { color: var(--aviso); border-color: rgba(255, 180, 84, .4); }
.pill-ml { background: var(--ml); color: var(--ml-txt); border-color: transparent; }
.preco { font-weight: 800; font-variant-numeric: tabular-nums; }
.preco-de { color: var(--txt3); text-decoration: line-through; font-size: .85em; font-weight: 500; }

dialog { color: var(--txt); background: var(--card); border: 1px solid var(--line-azul); border-radius: 18px; padding: 0; box-shadow: var(--sombra); max-width: calc(100vw - 24px); }
dialog::backdrop { background: rgba(3, 6, 10, .72); backdrop-filter: blur(3px); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
