/* =====================================================================
   TL PRIME — base compartilhada (loja + admin)
   Cores e fontes nas variáveis: mude aqui para trocar a identidade.
   ===================================================================== */
:root {
  --bg: #07080B;
  --bg-2: #0D0F14;
  --surface: #12151C;
  --surface-2: #1A1E27;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #EEF1F6;
  --muted: #8D95A5;
  --accent: #2DE2E6;          /* ciano elétrico: a única cor de ação */
  --accent-2: #7C5CFF;        /* violeta: só em brilhos/gradiente decorativo */
  --accent-ink: #031417;
  --ok: #3DDC97;
  --warn: #FFB547;
  --danger: #FF5C7A;

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --r: 14px;
  --r-sm: 10px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font: 500 12px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.grad { background: linear-gradient(92deg, var(--accent), #9C8CFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--f-mono); }
.ae-callback { max-width: 520px; margin: 15vh auto 0; display: grid; gap: 14px; }
.ae-callback h1 { font-size: 30px; }
.ae-callback p { color: var(--muted); }
.muted { color: var(--muted); }

/* ---------------- Botões ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .25s, opacity .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(45,226,230,.0); }
.btn--primary:not(:disabled):hover { box-shadow: 0 8px 30px rgba(45, 226, 230, .35); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-2); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--danger { border-color: rgba(255,92,122,.4); color: var(--danger); background: transparent; }
.btn--danger:hover { background: rgba(255,92,122,.1); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

.icon-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; min-width: 42px; padding: 0 10px; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; position: relative;
  transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------------- Campos ---------------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 500; color: var(--muted); }
.field label small { font-weight: 400; opacity: .8; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r-sm);
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); color-scheme: dark;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,226,230,.15); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { font-size: 12px; color: var(--danger); }
.form-error { color: var(--danger); font-size: 14px; margin-top: 12px; }
.form-error:empty { display: none; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------------- Janelas (<dialog>) ---------------- */
.modal {
  width: min(960px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: clamp(20px, 4vw, 36px);
  background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: 20px;
  box-shadow: var(--shadow); overflow: auto; overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(3, 4, 6, .72); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--surface); }

/* ---------------- Avisos (toasts) ---------------- */
.toasts { position: fixed; z-index: 200; left: 50%; bottom: 20px; translate: -50% 0; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14px;
  animation: toast-in .35s var(--ease); pointer-events: auto;
}
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.toast--error::before { background: var(--danger); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------------- Selos ---------------- */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font: 500 11px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--line-2); background: rgba(7,8,11,.7); }
.tag--accent { color: var(--accent); border-color: rgba(45,226,230,.4); }
.tag--warn { color: var(--warn); border-color: rgba(255,181,71,.4); }
.tag--danger { color: var(--danger); border-color: rgba(255,92,122,.4); }
.tag--ok { color: var(--ok); border-color: rgba(61,220,151,.4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
