/* GTS Forex ao Vivo — estilos compartilhados (fontes hospedadas no próprio site) */
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Michroma'; font-style: normal; font-display: swap; font-weight: 400; src: url('/fonts/michroma-latin-400-normal.woff2') format('woff2'); }

:root {
  --bg: #05060B;
  --bg-2: #080A12;
  --surface: #0D0F1A;
  --line: #1E2236;
  --line-2: #2E3350;
  --text: #F2F3F8;
  --muted: #B4B8CC;
  --dim: #8C90A8;
  --faint: #5E6480;
  --cyan: #2BD8F7;
  --violet: #8A6BFF;
  --red: #FF2A3D;
  --green: #2BD98A;
  --radius: 20px;
  --display: 'Michroma', 'Eurostile', sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--cyan); }
a:hover { color: #8FEBFF; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid #161A2B; border-bottom: 1px solid #161A2B; }
.eyebrow { font-family: var(--display); font-size: 12px; letter-spacing: .3em; color: var(--cyan); text-transform: uppercase; }
.h2 { font-size: clamp(28px, 3.4vw, 44px); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.display { font-family: var(--display); letter-spacing: .2em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:active { transform: scale(.98); }
.btn-primary { background: #fff; color: var(--bg); }
.btn-primary:hover { background: #E6F9FE; color: var(--bg); }
.btn-cyan { background: var(--cyan); color: var(--bg); }
.btn-cyan:hover { background: #7FE8FB; color: var(--bg); }
.btn-ghost { background: transparent; color: #fff; border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--dim); color: #fff; }
.btn-danger { background: transparent; color: #FF8A95; border-color: #5A2530; }
.btn-lg { min-height: 60px; padding: 0 34px; font-size: 17px; letter-spacing: .02em; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.live-badge { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(255,42,61,.55); background: #0B0D18; font-family: var(--display); font-size: 12px; letter-spacing: .2em; }
.rec { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(255,42,61,.18), 0 0 18px rgba(255,42,61,.8); flex-shrink: 0; }
.rec.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255,42,61,.06), 0 0 26px rgba(255,42,61,1); } }
.sep { width: 1px; height: 16px; background: #3A3F58; }

/* Topo */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(5,6,11,.9); border-bottom: 1px solid #161A2B; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand span { font-family: var(--display); font-size: 13px; letter-spacing: .22em; }
.partner { font-family: var(--display); font-size: 10px; letter-spacing: .25em; color: var(--dim); }
.partner b { color: #fff; font-weight: 400; }

/* Formulários */
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; }
.input, .field input, .field select, .field textarea { min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: #fff; font: inherit; font-weight: 500; }
.field textarea { padding: 12px 16px; min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--cyan); outline: none; }
::placeholder { color: var(--faint); }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--cyan); }
.error { color: #FF8A95; font-size: 14px; min-height: 1em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { list-style: none; cursor: pointer; min-height: 64px; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 18px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-family: var(--display); color: var(--cyan); font-size: 20px; }
details.faq[open] summary::after { content: '–'; }
details.faq p { color: var(--muted); padding-bottom: 22px; max-width: 720px; }

/* Aviso de cookies */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 760px; margin: 0 auto; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.cookie p { flex: 1 1 320px; font-size: 14px; color: var(--muted); }

/* Tabelas (admin) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-weight: 700; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; background: var(--bg-2); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line-2); white-space: nowrap; }
.pill.ok { color: var(--green); border-color: #1F5A40; }
.pill.warn { color: #FFC266; border-color: #5A4520; }
.pill.bad { color: #FF8A95; border-color: #5A2530; }
.pill.info { color: var(--cyan); border-color: #1F4A5A; }

/* Modal */
dialog { border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); color: var(--text); padding: 28px; width: min(560px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }

.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 60; padding: 12px 20px; border-radius: 12px; background: #fff; color: var(--bg); font-weight: 700; font-size: 15px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hide-sm { display: none !important; }
  .brand span { font-size: 11px; letter-spacing: .16em; white-space: nowrap; }
  .brand img { height: 28px; }
  .card { padding: 22px; }
}
