:root {
  --bg: #0b100d;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-solid: #141e19;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #b5ed8f;
  --accent-hi: #cbf7a9;
  --accent-ink: #16240f;
  --text: #f0f6f1;
  --muted: #93a79b;
  --faint: #6e8377;
  --danger-bg: #38231f;
  --danger-line: #5c3630;
  --danger: #f3afa5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(181, 237, 143, 0.09), transparent 60%),
    radial-gradient(900px 500px at -20% 30%, rgba(120, 190, 140, 0.06), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

main {
  max-width: 520px;
  margin: auto;
  padding: calc(26px + env(safe-area-inset-top)) 24px calc(44px + env(safe-area-inset-bottom));
}

/* ── Cabeçalho ─────────────────────────── */
header {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.2px;
  margin-bottom: 22px;
}
.mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #cdf7a5, #9fd871);
  color: var(--accent-ink);
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(181, 237, 143, 0.25);
}
.accent { color: var(--accent); }
.pill {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--surface);
}

/* ── Tipografia ────────────────────────── */
.eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: var(--accent);
}
h1 {
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin: 8px 0 10px;
}
p { color: var(--muted); font-size: 14px; line-height: 1.55; }
h2 { font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: -0.2px; margin: 0 0 8px; }

#status {
  min-height: 46px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
#status::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  animation: pulse 1.6s ease-in-out infinite alternate;
}

/* ── Cartões ───────────────────────────── */
.card {
  margin: 18px 0;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028));
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.camera-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(181, 237, 143, 0.22), rgba(181, 237, 143, 0.08));
  border: 1px solid rgba(181, 237, 143, 0.28);
  color: var(--accent);
}
.camera-icon svg { width: 24px; height: 24px; }
.card p { margin: 0 0 22px; }

/* ── Botões ────────────────────────────── */
button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  background: linear-gradient(180deg, #c4f59d, #abe57f);
  color: var(--accent-ink);
  font: 650 14.5px/1.2 system-ui, sans-serif;
  letter-spacing: 0.1px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 26px rgba(181, 237, 143, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.12s ease, opacity 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
button:active:not(:disabled) { transform: scale(0.975); }
button:disabled { opacity: 0.55; cursor: default; box-shadow: none; }
button:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.9); outline-offset: 3px; }
.secondary {
  margin-top: 12px;
  background: var(--surface);
  color: #dce8df;
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.danger {
  background: #5a2a24;
  color: #f8c8c0;
  border: 1px solid #a45a4e;
  box-shadow: none;
}
.danger:disabled {
  opacity: 1;
  background: #24302a;
  color: #8fa196;
  border-color: #3d4a40;
}

/* ── Ao vivo ───────────────────────────── */
.video-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #070c09;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
video { display: block; width: 100%; max-height: 55vh; object-fit: contain; }
.live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(10, 17, 13, 0.82);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.live-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.2s ease-in-out infinite alternate;
}
.quality {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
  margin: 18px 0 4px;
}
.actions { display: flex; gap: 12px; margin-top: 4px; }
.actions button { margin: 0; }

/* ── Formulário ────────────────────────── */
label { font-size: 12px; font-weight: 600; color: var(--muted); }
select {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 14px 40px 14px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background-color: var(--surface-solid);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2393a79b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  appearance: none;
  -webkit-appearance: none;
  color: var(--text);
  font: 500 14px system-ui, sans-serif;
}
select:focus-visible { outline: 3px solid rgba(181, 237, 143, 0.5); outline-offset: 2px; }
.hint { font-size: 11.5px; color: var(--faint); margin: 6px 0 18px; }

/* ── Rodapé ────────────────────────────── */
footer {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  font-size: 12px;
  line-height: 1.85;
  color: var(--faint);
}
footer .dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(181, 237, 143, 0.6);
}

[hidden] { display: none !important; }

@keyframes pulse {
  from { opacity: 1; }
  to { opacity: 0.25; }
}

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

/* ── Landing ───────────────────────────── */
body.home main { max-width: 640px; }
.cta-wrap { margin: 22px 0 8px; }
a.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 14px;
  padding: 13px 18px;
  background: linear-gradient(180deg, #c4f59d, #abe57f);
  color: var(--accent-ink);
  font: 650 14.5px/1.2 system-ui, sans-serif;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(181, 237, 143, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
a.cta[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  box-shadow: none;
}
a.secondary-link {
  background: var(--surface);
  color: #dce8df;
  border: 1px solid var(--border-strong);
  box-shadow: none;
  margin-top: 8px;
}
.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.steps li span {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #1e2c24;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
}
.steps strong { color: var(--text); }
body.home p strong { color: var(--accent-hi); font-weight: 650; }

