/* ============================================================
   360Drive — Base reset + tipografia (tema escuro)
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg-body);
  background-attachment: fixed;
}

* {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

svg { display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

input, select, textarea {
  font-size: max(16px, 1em);
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  color: inherit;
}

a {
  color: var(--gold-light);
  text-decoration: none;
}
a:hover { color: var(--gold-lighter); }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(226, 184, 92, 0.35);
  border-radius: var(--radius-pill);
}

/* ── Selection ───────────────────────────────────────────── */
::selection {
  background: rgba(226, 184, 92, 0.28);
  color: #fff;
}

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Utilitários ─────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden { display: none !important; }

/* CRÍTICO: qualquer regra de classe com `display:` vence o [hidden] do
   user-agent (especificidade 0-1-0 > 0-0-1). Sem isto, skeleton, histórico
   de placas, spinner do botão e trend-row aparecem todos de uma vez no load. */
[hidden] { display: none !important; }
.text-center { text-align: center; }
