:root {
  --bg: #080c11;
  --bg-2: #0b1118;
  --panel: #111a24;
  --panel-2: #0e1620;
  --line: #1f2c3a;
  --line-soft: #17222e;
  --text: #e8eef6;
  --muted: #8fa3b8;
  --muted-2: #6b7f94;
  --accent: #35d07f;
  --accent-dim: #1c7a4b;
  --accent-glow: rgba(53, 208, 127, 0.14);
  --warn: #f5b52e;
  --danger: #f2596b;
  --blue: #4aa8ff;
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 12% -8%, #16283a 0%, rgba(8, 12, 17, 0) 60%),
    radial-gradient(700px 460px at 92% 4%, rgba(53, 208, 127, 0.08) 0%, rgba(8, 12, 17, 0) 58%),
    var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
a { color: var(--accent); }
p { margin: 0; }

/* ================= cabeçalho do site ================= */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(14px, 4vw, 48px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 12, 17, 0.82);
  backdrop-filter: blur(12px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo-mark { color: var(--accent); font-size: 13px; transform: translateY(-1px); }
.logo-text b { color: var(--accent); font-weight: 700; }
.logo-img {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 10px rgba(53, 208, 127, .28));
}

/* ================= seletor de idiomas ================= */

.head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.head-right .head-actions { margin-left: 0; }

.lang-pick { position: relative; display: inline-flex; align-items: center; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.lang-btn:hover,
.lang-pick.is-open .lang-btn { border-color: var(--accent-dim); background: #12202b; }
.lang-btn:focus-visible { outline: 2px solid var(--accent-dim); outline-offset: 2px; }
.lang-code { letter-spacing: .06em; color: var(--muted); }
.lang-btn .caret { color: var(--muted-2); font-size: 10px; line-height: 1; }

.flag {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  overflow: hidden;
  background: #0a1119;
  box-shadow: 0 0 0 1px rgba(232, 238, 246, .22), 0 2px 6px rgba(0, 0, 0, .45);
}
.flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: grid;
  gap: 2px;
  min-width: 208px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #131d28, #0d151e);
  box-shadow: var(--shadow);
}
.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.lang-item:hover { background: rgba(53, 208, 127, .10); }
.lang-item.is-on { background: rgba(53, 208, 127, .14); }
.lang-item .lang-name { flex: 1; }
.lang-item .lang-check { color: var(--accent); font-size: 12px; }

.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  min-height: 34px;
  font-size: 12.5px;
  color: var(--muted);
}
.head-divider {
  width: 1px;
  height: 18px;
  background: var(--line);
  display: inline-block;
}
.head-actions .who {
  color: var(--text);
  font-weight: 650;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ================= botões ================= */

.btn-primary, .btn-ghost {
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  border-radius: 10px;
  padding: 9px 15px;
  cursor: pointer;
  transition: filter .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn-primary {
  border: 1px solid #2a9c67;
  background: linear-gradient(180deg, #23aa6a, #17864f);
  color: #f2fff8;
  box-shadow: 0 5px 18px rgba(35, 170, 106, 0.22);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .55; cursor: progress; transform: none; filter: none; }
.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(17, 26, 36, 0.7);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-dim); color: var(--accent); }
.btn-primary.lg, .btn-ghost.lg { font-size: 14.5px; padding: 13px 22px; border-radius: 12px; }
.btn-primary.full { width: 100%; justify-content: center; text-align: center; }

.primary {
  margin-top: 2px;
  background: linear-gradient(180deg, #23aa6a, #17864f);
  border: 1px solid #2a9c67;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #f2fff8;
}
.primary:hover { filter: brightness(1.08); }
.primary:disabled { opacity: .6; cursor: progress; filter: none; }

.ghost {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--muted);
}
.ghost:hover { color: var(--danger); border-color: var(--danger); }

/* ================= aviso (flash) ================= */

.flash {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 clamp(14px, 4vw, 48px);
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.flash.ok { border-color: var(--accent-dim); background: rgba(53, 208, 127, 0.08); color: #d8ffe9; }
.flash.warn { border-color: #6b5220; background: rgba(245, 181, 46, 0.08); color: #ffecc6; }
.flash span { flex: 1; }
.flash-x {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
  opacity: .7;
}
.flash-x:hover { opacity: 1; color: inherit; }

/* ================= landing ================= */

.landing {
  display: block;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 48px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  padding: clamp(34px, 6vw, 78px) 0 clamp(26px, 4vw, 44px);
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #b9f3d5;
  border: 1px solid var(--accent-dim);
  background: rgba(53, 208, 127, 0.09);
  border-radius: 999px;
  padding: 6px 12px;
}
.badge-live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(53, 208, 127, 0.18);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(53, 208, 127, 0.16); }
  50% { box-shadow: 0 0 0 7px rgba(53, 208, 127, 0.03); }
}

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 750;
}
.hero h1 span { color: var(--accent); }
.hero .lead {
  margin-top: 18px;
  font-size: clamp(14.5px, 1.4vw, 16.5px);
  color: #c2d2e2;
  max-width: 32em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 24px 0 0;
  padding: 0;
  font-size: 12.5px;
  color: var(--muted);
}
.hero-points li::before { content: "✓"; color: var(--accent); margin-right: 7px; font-weight: 700; }

.hero-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 31, 43, .96), rgba(12, 19, 27, .96));
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 11px;
  border-left: 3px solid var(--accent);
}
.hc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hc-edge { font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 15px; }
.hc-title { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.hc-sub { font-size: 12px; color: var(--muted); margin-top: -4px; }
.hc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; font-size: 12.5px; }
.hc-grid div { display: flex; justify-content: space-between; gap: 8px; }
.hc-grid span { color: var(--muted); }
.hc-grid b { font-family: var(--mono); font-weight: 600; }
.hc-stake {
  font-size: 13.5px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  background: rgba(53, 208, 127, 0.05);
}
.hc-stake b { font-family: var(--mono); color: var(--accent); }
.hc-bar { height: 5px; border-radius: 999px; background: #1b2734; overflow: hidden; }
.hc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); }
.hc-foot { font-size: 11px; color: var(--muted-2); }

/* números */
.proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(17, 26, 36, .85), rgba(11, 17, 24, .85));
  margin-bottom: clamp(30px, 5vw, 54px);
}
.proof-item { display: grid; gap: 2px; padding: 6px 10px; }
.proof-item b { font-family: var(--mono); font-size: 23px; font-weight: 650; letter-spacing: -0.02em; }
.proof-item b.pos { color: var(--accent); }
.proof-item b.neg { color: var(--danger); }
.proof-item span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* secções */
.section { padding: clamp(26px, 4vw, 46px) 0; border-top: 1px solid var(--line-soft); }
.section > h2 { font-size: clamp(21px, 2.6vw, 30px); }
.section-sub { margin-top: 10px; color: var(--muted); font-size: 14.5px; max-width: 62ch; }
.section-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; }
.section-head .tag { margin-top: 4px; }

.steps, .features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.step, .feature {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17, 26, 36, .92), rgba(12, 19, 27, .92));
  padding: 18px;
}
.step-n {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .1em;
}
.step h3, .feature h3 { font-size: 15.5px; margin: 8px 0 7px; }
.step p, .feature p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* tabela da landing */
.card-table {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
  padding: 4px 10px;
}
.fine-print { margin-top: 14px; font-size: 11.5px; color: var(--muted-2); line-height: 1.6; }

/* planos */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 14px;
  margin-top: 24px;
  align-items: stretch;
}
.plan-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(17, 26, 36, .95), rgba(11, 17, 24, .95));
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-card.best {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 1px rgba(53, 208, 127, .18), 0 18px 40px rgba(0, 0, 0, .35);
}
.plan-badge {
  position: absolute;
  top: -11px;
  right: 16px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #062b19;
  background: var(--accent);
  border-radius: 999px;
  padding: 4px 10px;
}
.plan-card h3 { font-size: 17px; }
.plan-price { font-family: var(--mono); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.plan-meta { font-size: 12px; color: var(--muted); margin-top: -6px; }
.plan-list { list-style: none; margin: 6px 0 14px; padding: 0; display: grid; gap: 6px; font-size: 13px; color: #c3d2e1; }
.plan-list li::before { content: "✓"; color: var(--accent); margin-right: 8px; }
.plan-card .btn-primary { margin-top: auto; }

/* faq */
.faq { margin-top: 20px; display: grid; gap: 8px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  padding: 12px 15px;
  margin: 0;
}
.faq summary { font-weight: 600; font-size: 14px; color: var(--text); }
.faq summary::marker { color: var(--accent); }
.faq details p { margin-top: 9px; color: var(--muted); font-size: 13.5px; }

/* CTA final */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--accent-dim);
  background:
    radial-gradient(600px 200px at 12% 0%, rgba(53, 208, 127, .16), rgba(8, 12, 17, 0) 70%),
    var(--panel);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 34px);
  margin: clamp(26px, 4vw, 44px) 0 clamp(40px, 6vw, 70px);
}
.cta-band h2 { font-size: clamp(20px, 2.4vw, 27px); }
.cta-band p { color: var(--muted); margin-top: 8px; font-size: 14px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* rodapé */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 22px clamp(14px, 4vw, 48px) 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 12px;
}
.site-foot b { color: var(--muted); }
.foot-links { display: flex; gap: 16px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }

/* ================= modal ================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 10, .76);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: min(92vh, 900px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #131d28, #0d151e);
  box-shadow: var(--shadow);
  padding: 24px clamp(18px, 3vw, 28px) 26px;
}
.modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding: 0;
}
.modal-x:hover { color: var(--text); border-color: var(--accent-dim); }
.modal-logo {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 12px;
  filter: drop-shadow(0 6px 16px rgba(53, 208, 127, .3));
}
.modal-head h2 { font-size: 21px; }
.modal-head .modal-lead { margin-top: 6px; color: var(--muted); font-size: 13.5px; }

.pane { margin-top: 18px; display: grid; gap: 12px; }

.form { display: grid; gap: 12px; }
.form label {
  display: grid;
  gap: 6px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 600;
}
.form input {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
}
.form input:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(53, 208, 127, .12);
}

/* senha com botão de revelar */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 46px; }
.pw-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.pw-toggle:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.pw-toggle:focus-visible { outline: 2px solid var(--accent-dim); outline-offset: 1px; }
.pw-toggle[aria-pressed="true"] { color: var(--accent); }
.pw-eye {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.pw-slash { display: none; }
.pw-toggle[aria-pressed="true"] .pw-slash { display: inline; }

/* lembrar credenciais */
.form label.remember {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: -4px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.form label.remember:hover span { color: var(--text); }
.form label.remember input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: auto;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: none;
  accent-color: var(--accent);
  cursor: pointer;
}
.form label.remember input[type="checkbox"]:focus {
  outline: 2px solid var(--accent-dim);
  outline-offset: 2px;
  box-shadow: none;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint { font-size: 11.5px; color: var(--muted-2); margin-top: -6px; }
.remember-hint { margin-top: -6px; color: var(--muted-2); }
.form-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
.link {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link:hover { color: #6cf0ac; }

.msg { margin: 0; font-size: 12.5px; min-height: 1em; color: var(--muted); }
.msg.warn { color: var(--warn); }
.msg.ok { color: var(--accent); }
.hint { font-size: 12.5px; color: var(--muted); }
.hint.warn { color: var(--warn); }
.hint.ok { color: var(--accent); }
.hint.small { font-size: 11.5px; }
.inline-link { color: var(--accent); font-weight: 600; }

.plans { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 8px; }
.plans legend {
  padding: 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 600;
}
.plan {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  transition: border-color .15s ease, background .15s ease;
}
.plan:hover { border-color: var(--accent-dim); }
.plan.is-active { border-color: var(--accent); background: rgba(53, 208, 127, .07); }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan-top b { color: var(--text); font-size: 14px; }
.plan-top em { font-style: normal; font-family: var(--mono); color: var(--accent); font-size: 14px; }
.plan-days { font-size: 11.5px; color: var(--muted); }
.plan-feat { font-size: 11.5px; color: var(--muted); line-height: 1.45; }

/* ================= dashboard ================= */

.dash {
  display: block;
  max-width: 100%;
  overflow-x: hidden;
  padding: 0 clamp(14px, 3vw, 34px) 40px;
}

.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.nav-btn:hover { color: var(--text); border-color: var(--line); }
.nav-btn.is-active {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(53, 208, 127, .09);
}

.status { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 11px;
  min-width: 84px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pill b { font-size: 17px; font-family: var(--mono); font-weight: 600; }
.pill span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pill.live b { color: var(--blue); }
.pill.stale b { color: var(--danger); }

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 26, 36, .7);
  position: sticky;
  top: 60px;
  backdrop-filter: blur(8px);
  z-index: 20;
  margin-bottom: 18px;
}
.controls label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
select, button {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  font-family: inherit;
}
button { cursor: pointer; transition: border-color .15s, color .15s; }
button:hover { border-color: var(--accent-dim); color: var(--accent); }
.meta { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.meta.warn { color: var(--warn); }

.view { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.view > * { min-width: 0; }

.block {
  background: linear-gradient(180deg, rgba(17, 26, 36, .92), rgba(13, 20, 28, .92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.block h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }

.card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--panel-2);
  padding: 13px 14px;
  display: grid;
  gap: 8px;
}
.card.medium { border-left-color: var(--blue); }
.card.low { border-left-color: var(--muted); }
.card header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.card .outcome { font-size: 17px; font-weight: 650; line-height: 1.25; }
.card .event { font-size: 12px; color: var(--muted); }
.card .edge {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.card.medium .edge { color: var(--blue); }
.card.low .edge { color: var(--muted); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12.5px; }
.kv { display: flex; justify-content: space-between; gap: 8px; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-family: var(--mono); }

.card .reason { font-size: 12.5px; color: #c6d3e0; border-top: 1px dashed var(--line); padding-top: 8px; }
.card .stake { font-size: 13px; }
.card .stake b { font-family: var(--mono); color: var(--accent); }
.card details summary { cursor: pointer; font-size: 12px; color: var(--warn); }
.card details ul { margin: 6px 0 0; padding-left: 18px; font-size: 12px; color: var(--muted); }

.bet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 2px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #2a9c67;
  background: linear-gradient(180deg, #1f7a4d, #186b41);
  color: #eafff3;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .2px;
  text-decoration: none;
  transition: filter .15s ease, transform .15s ease;
}
.bet-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }

/* Botão cinza: mercado futuro que ainda não abriu as apostas */
.bet-btn.is-off,
.bet-btn.is-off:hover {
  border-color: var(--line);
  background: #232c38;
  color: #8b98a8;
  cursor: not-allowed;
  filter: none;
  transform: none;
}
.bet-link { font-size: 12px; color: var(--blue); text-decoration: none; text-align: center; }
.bet-link:hover { text-decoration: underline; }

/* Card de jogo futuro: esbatido e com etiqueta de espera */
.card.upcoming { border-left-color: #4a5a6d; opacity: .92; }
.tag.open { color: var(--accent); border-color: var(--accent-dim); }
.tag.wait { color: var(--warn); border-color: #6a5220; }

/* Ação explícita: comprar ou vender */
.action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  font-size: 12.5px;
}
.action .act-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 2px 8px;
  border-radius: 999px;
}
.action .act-sel { font-weight: 650; }
.action .act-note { color: var(--muted); font-size: 11.5px; }
.action.buy { border-color: #2a9c67; }
.action.buy .act-tag { background: #1f7a4d; color: #eafff3; }
.action.sell { border-color: #8a4b4b; }
.action.sell .act-tag { background: #7a2f2f; color: #ffecec; }
/* Entrada encerrada: o sinal já deu saída sugerida — bloco neutro, sem CTA */
.action.open { border-color: #38465a; background: rgba(255, 255, 255, .015); }
.action.open .act-tag { background: #2b3947; color: #cfdbe7; }
.action.open .act-sel { color: var(--muted); font-weight: 600; }

/* Teto de entrada: "COMPRAR ATÉ 26.4¢" */
.action .act-limit {
  flex-basis: 100%;
  display: inline-block;
  margin-top: 2px;
  padding: 3px 9px;
  border-radius: 7px;
  border: 1px dashed var(--accent-dim);
  background: rgba(43, 200, 120, .09);
  color: #b8f5d2;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .04em;
}
.action .act-limit-note {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
/* Mercado já acima do teto: aviso vermelho no lugar da sugestão */
.action.over { border-color: #b4453f; background: rgba(180, 69, 63, .10); }
.action .act-limit.over {
  border: 1px solid #b4453f;
  background: rgba(180, 69, 63, .18);
  color: #ffc9c4;
}

/* Saída sugerida: posição já no valor do modelo (lucro) ou abaixo do corte */
.exit-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  font-size: 12.5px;
  line-height: 1.4;
}
.exit-note .exit-flag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 2px 8px;
  border-radius: 999px;
}
.exit-note .exit-line { font-weight: 650; }
.exit-note .exit-hint {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.exit-note.take {
  border-color: #2a9c67;
  background: rgba(43, 200, 120, .08);
}
.exit-note.take .exit-flag { background: #1f7a4d; color: #eafff3; }
.exit-note.take .exit-line { color: #b8f5d2; }
.exit-note.stop {
  border-color: #b4453f;
  background: rgba(180, 69, 63, .10);
}
.exit-note.stop .exit-flag { background: #7a2f2f; color: #ffecec; }
.exit-note.stop .exit-line { color: #ffc9c4; }

/* Campo de busca dos resultados */
.controls label.search { min-width: 240px; }
.controls label.search input {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: inherit;
  font-size: 13px;
}
.controls label.search input:focus { outline: 2px solid var(--accent-dim); outline-offset: 1px; }
@media (max-width: 560px) {
  .controls label.search { min-width: 0; width: 100%; }
}
.bet-btn:active { transform: translateY(0); }
.bet-btn:focus-visible { outline: 2px solid #5be0a0; outline-offset: 2px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-family: var(--mono); }
tbody tr:hover { background: rgba(53, 208, 127, .04); }
tr.qualify td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.tag { font-size: 11px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag.pre { color: var(--accent); border-color: var(--accent-dim); }
.tag.live { color: var(--blue); border-color: #1f4d78; }
.tag.stale { color: var(--danger); border-color: #6c2b2b; background: rgba(255, 86, 86, .08); }

/* ---------- contador regressivo dos cards ---------- */
/* Chip do tempo restante até o início do jogo. O texto é atualizado por JS a
   cada segundo (sem pedidos à API); "live" aparece quando o jogo começa. */
.card-time { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 5px; }
.card-time:empty { display: none; }
.timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.timer::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .8;
}
.timer.live { color: var(--blue); border-color: #1f4d78; }
.live-clock { font-family: var(--mono); font-size: 12px; color: var(--blue); white-space: nowrap; }

/* ---------- aviso dos cards dispensados ---------- */
.stale-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 11px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(17, 26, 36, .5);
  font-size: 12px;
  color: var(--muted);
}
.stale-count { color: var(--text); font-weight: 600; }
.stale-why { font-size: 11.5px; }
.link-btn {
  margin-left: auto;
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}
.link-btn:hover { color: var(--text); }

/* caixa "esconder sem oportunidade" na barra de controlos */
.controls label.ctl-check { text-transform: none; letter-spacing: 0; cursor: pointer; }
.controls label.ctl-check input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.pos { color: var(--accent); }
.neg { color: var(--danger); }

.collectors { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 10px; }
.col { border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; background: var(--panel-2); font-size: 12px; }
.col b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 3px; }
.col .ok { color: var(--accent); }
.col .fail { color: var(--danger); }
.col .ago { color: var(--muted); font-family: var(--mono); }

.params { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 16px; font-size: 12.5px; padding: 10px 0 4px; }
.params div { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--line); padding: 3px 0; }
.params span:last-child { font-family: var(--mono); }

details { margin-top: 8px; }
summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
pre {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  overflow: auto;
  font-size: 12px;
  color: #c6d3e0;
  max-height: 220px;
}

.empty { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

.summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin-bottom: 14px; }
.sum { border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); padding: 10px 12px; display: grid; gap: 3px; }
.sum span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sum b { font-family: var(--mono); font-size: 17px; font-weight: 600; }

.res {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: help;
}
.res.won { color: var(--accent); border-color: var(--accent-dim); background: rgba(53, 208, 127, .08); }
.res.lost { color: var(--danger); border-color: #5c2733; background: rgba(242, 89, 107, .08); }
.res.void { color: var(--warn); border-color: #5b4520; background: rgba(245, 181, 46, .08); }
.res.pending { color: var(--blue); border-color: #1f4d78; }

.live-note {
  font-size: 12px;
  color: #cfe0f2;
  border: 1px solid #1f4d78;
  background: rgba(74, 168, 255, .09);
  border-radius: 8px;
  padding: 7px 10px;
  line-height: 1.45;
}
.live-note b { color: var(--blue); letter-spacing: .04em; }

/* ================= responsivo ================= */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-card { order: 2; }
  .controls { position: static; }
}

@media (max-width: 640px) {
  .site-head { padding: 10px 14px; gap: 8px; }
  .logo { font-size: 13.5px; gap: 7px; }
  .logo-img { width: 34px; height: 34px; border-radius: 9px; }
  .logo-text { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
  .head-right { gap: 6px; }
  .head-actions { gap: 6px; }
  .head-actions .who { display: none; }
  .lang-btn { padding: 3px 6px 3px 3px; gap: 5px; font-size: 11px; }
  .lang-btn .flag { width: 22px; height: 22px; flex-basis: 22px; }
  .lang-btn .caret { display: none; }
  .lang-menu { min-width: 190px; right: 0; }
  .modal-logo { width: 38px; height: 38px; margin-bottom: 10px; }
  .btn-primary, .btn-ghost { padding: 8px 11px; font-size: 12.5px; }
  .head-actions .tag { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .proof-item b { font-size: 20px; }
  .modal-card { padding: 20px 16px 22px; }
  .hero h1 { font-size: 29px; }
  .site-foot { flex-direction: column; align-items: flex-start; }
  .dash { padding: 0 12px 32px; }
  .logo { min-height: 40px; }
  .lang-btn { min-height: 40px; }
  .head-actions .btn-primary,
  .head-actions .btn-ghost { min-height: 40px; display: inline-flex; align-items: center; }
  .foot-links { gap: 2px 16px; }
  .foot-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 2px; }
  .form-links .link { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 2px; }
  .nav-btn { min-height: 40px; }
}

@media (max-width: 420px) {
  .logo-text { display: none; }
  .logo { gap: 0; }
  .lang-menu { min-width: 172px; }
}

/* ================= tabelas em cartões (celulares e tablets) ================= */
/* app.js marca o .table-wrap com .cards-wrap e copia o rótulo de cada coluna
   (já traduzido) para data-label nas células. Até 880px (celulares, tablets e
   iPad em retrato) a tabela passa a cartões empilhados, sem scroll horizontal:
   acima disso as tabelas mais largas (resultados ~846px) já cabem. */
@media (max-width: 880px) {
  .table-wrap.cards-wrap { overflow-x: visible; }
  .cards-wrap > table { display: block; width: 100%; }
  .cards-wrap > table thead { display: none; }
  .cards-wrap > table tbody { display: block; }
  .cards-wrap > table tr {
    display: block;
    margin: 0 0 8px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-2);
  }
  .cards-wrap > table tr:last-child { margin-bottom: 0; }
  .cards-wrap > table td {
    display: flex;
    gap: 12px;
    align-items: baseline;
    justify-content: space-between;
    padding: 3px 0;
    border: 0;
    white-space: normal;
    text-align: right;
    overflow-wrap: anywhere;
  }
  .cards-wrap > table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    max-width: 45%;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
  }
  .cards-wrap > table td:not([data-label])::before { content: none; }
  .cards-wrap > table td:empty { display: none; }
  /* listas longas (histórico, radar) rolam dentro do próprio bloco */
  .cards-wrap.cards-scroll {
    max-height: min(72vh, 620px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
  }
  .head-actions button, .head-actions .btn-primary, .head-actions .btn-ghost { min-height: 40px; }
}

/* ================= alvos de toque em ecrãs táteis ================= */
/* Em tablets/híbridos a tabela pode continuar em formato grelha; garante que
   links e botões dentro das células têm altura de toque confortável. */
@media (pointer: coarse) {
  .table-wrap td a,
  .table-wrap td button { display: inline-flex; align-items: center; min-height: 40px; }
  .nav-btn { min-height: 44px; }
  /* botão de revelar senha com alvo de toque confortável */
  .pw-toggle { width: 40px; height: 40px; right: 3px; }
  .pw-wrap input { padding-right: 50px; }
  /* links isolados (rodapé e rodapé dos modais) com altura de toque confortável
     em qualquer largura tátil — telemóvel, tablet e portátil com ecrã tátil */
  .foot-links a,
  .foot-links button,
  .form-links a,
  .form-links button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
  }
}

/* ================= analisador de link de jogo (sob demanda) ================= */

.block.analyzer { border-left: 3px solid var(--blue); }
.block.analyzer .block-head { margin-bottom: 10px; }

.link-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.link-form input[type="text"],
.link-form input[type="url"] {
  flex: 1 1 340px;
  min-width: 0;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  font: 13.5px/1.45 var(--mono);
}
.link-form input[type="text"]:focus,
.link-form input[type="url"]:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(53, 208, 127, .12);
}
.link-form input:disabled { opacity: .6; }
.link-form button[type="submit"] {
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid #2a9c67;
  border-radius: 10px;
  background: linear-gradient(180deg, #1f7a4d, #186b41);
  color: #eafff3;
  font-size: 13.5px;
  font-weight: 700;
}
.link-form button[type="submit"]:hover {
  border-color: #35d07f;
  color: #eafff3;
  filter: brightness(1.1);
}
.link-form button[type="submit"]:disabled {
  opacity: .55;
  cursor: progress;
  filter: none;
}

.chk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.chk input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

#link-msg { padding: 6px 2px 0; }

/* card do resultado: ocupa a largura toda da grelha */
.link-card { grid-column: 1 / -1; }
.link-card .anchor-line {
  padding: 6px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, .022);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}
.link-card .reason { line-height: 1.5; }

@media (max-width: 560px) {
  .link-form { align-items: stretch; }
  .link-form input[type="text"],
  .link-form input[type="url"] { flex: 1 1 100%; }
  .link-form button[type="submit"] { width: 100%; }
  .chk { padding: 2px 0; }
}
