@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700&family=Rajdhani:wght@400;500;600;700&display=swap");

:root {
  --bg: #07090d;
  --bg2: #0c1018;
  --panel: rgba(16, 22, 34, 0.92);
  --text: #f4f6fa;
  --muted: #9aa8bc;
  --accent: #d11028;
  --accent2: #ff4d5a;
  --ok: #1db954;
  --bad: #ff2d2d;
  --line: rgba(200, 30, 45, 0.28);
  --glow: rgba(209, 16, 40, 0.35);
  --font: "Rajdhani", "Segoe UI", sans-serif;
  --display: "Orbitron", "Rajdhani", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(209, 16, 40, 0.22), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(255, 77, 90, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 45%, #05070b 100%);
  color: var(--text);
  min-height: 100vh;
  letter-spacing: 0.01em;
}
a { color: var(--accent2); text-decoration: none; transition: color .15s; }
a:hover { color: #fff; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

header.app {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 11, 0.85);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 40;
}
header.app .brand {
  display: inline-flex; align-items: center; gap: .65rem; text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .08em;
  font-size: 1.05rem;
  text-transform: uppercase;
  color: #fff;
}
header.app .brand img {
  height: 42px; width: auto; display: block;
  object-fit: contain;
}
header.app .brand .brand-text {
  color: var(--accent2);
  font-size: .78rem;
  letter-spacing: .14em;
}
.brand-logo {
  display: block; height: 72px; width: auto; margin: 0 auto 1rem;
  object-fit: contain;
}
.brand-logo.sm { height: 36px; margin: 0; }
nav { display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center; }
nav a {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .06em;
}
nav a:hover { color: var(--accent2); text-decoration: none; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem 1.4rem;
  margin: 1.1rem 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 18px 40px rgba(0,0,0,.35);
}
.card h1, .card h2 { margin-top: 0; font-family: var(--display); letter-spacing: .04em; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }

label {
  display: block; font-size: .8rem; color: var(--muted);
  margin: .7rem 0 .3rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
}
input, select, textarea {
  width: 100%; padding: .7rem .85rem; border-radius: 10px;
  border: 1px solid #2a3548; background: #0a0e15; color: var(--text);
  font-family: var(--font); font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}
textarea { min-height: 120px; }

.btn {
  display: inline-block; border: 0; border-radius: 10px; padding: .75rem 1.25rem;
  font-weight: 700; cursor: pointer; background: linear-gradient(135deg, var(--accent), #9a0c1c);
  color: #fff; font-family: var(--font); font-size: .95rem;
  letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(209, 16, 40, 0.35);
  transition: transform .12s, filter .12s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); text-decoration: none; color: #fff; }
.btn.secondary {
  background: #1c2536; box-shadow: none; border: 1px solid #334155;
}
.btn.ok { background: linear-gradient(135deg, #1db954, #159443); box-shadow: 0 8px 20px rgba(29,185,84,.25); }
.btn.bad { background: var(--bad); box-shadow: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.flash { padding: .85rem 1.1rem; border-radius: 10px; margin: 1rem 0; font-weight: 600; }
.flash.ok { background: rgba(29,185,84,.15); border: 1px solid rgba(29,185,84,.45); }
.flash.err { background: rgba(255,59,74,.15); border: 1px solid rgba(255,59,74,.45); }

.badge {
  display: inline-block; padding: .22rem .6rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.badge.pago, .badge.ativo { background: rgba(29,185,84,.2); color: #7dffa8; }
.badge.pendente { background: rgba(209,16,40,.2); color: #ff9aa3; }
.badge.rascunho { background: #334155; color: #cbd5e1; }
.badge.live { background: rgba(255,59,74,.25); color: #ff8a93; animation: pulse 1.4s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .65rem .45rem; border-bottom: 1px solid #1e293b; }
.table th {
  color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
}
.table.live tbody tr:first-child td { color: var(--accent2); font-weight: 700; }

.qrbox {
  background: #fff; color: #000; padding: 1rem; border-radius: 8px;
  word-break: break-all; font-size: .75rem; font-family: ui-monospace, monospace;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  margin: .35rem 0;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-band {
  margin: 0 0 1.25rem;
  padding: 1.75rem 1.4rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(209,16,40,.2), transparent 55%),
    linear-gradient(180deg, rgba(20,28,42,.9), rgba(10,14,22,.95));
  position: relative;
  overflow: hidden;
}
.hero-band::after {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px;
  border: 2px solid rgba(209,16,40,.3);
  border-radius: 50%;
}
.hero-band .kicker {
  color: var(--accent2); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: .78rem; margin: 0 0 .4rem;
}
.actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }

.event-card {
  display: flex; gap: 1.1rem; align-items: flex-start;
  transition: border-color .15s, transform .15s;
}
.event-card:hover { border-color: rgba(209,16,40,.55); transform: translateY(-2px); }
.event-card img {
  width: 104px; height: 104px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--line); background: #0a0e15;
}
.event-card .thumb-fallback {
  width: 104px; height: 104px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #1a2233, #0d121c);
  border: 1px solid var(--line);
  font-family: var(--display); color: var(--accent); font-size: .85rem;
}

.search-bar {
  display: flex; gap: .75rem; flex-wrap: wrap; align-items: end;
}
.search-bar > div { flex: 1; min-width: 220px; }

.site-footer {
  margin-top: 2.5rem;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.35);
  color: var(--muted);
  font-size: .92rem;
}
.site-footer .inner {
  max-width: 1040px; margin: 0 auto;
  display: grid; gap: 1.25rem;
}
@media (min-width: 720px) {
  .site-footer .inner { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h3 {
  font-family: var(--display); color: #fff; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .5rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent2); }
.site-footer .copy {
  grid-column: 1 / -1;
  padding-top: .75rem;
  border-top: 1px solid #1e293b;
  font-size: .8rem;
}

.live-header {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem;
}
.live-clock { font-family: var(--display); color: var(--accent2); font-size: 1.1rem; }
code {
  background: #121826; padding: .15rem .4rem; border-radius: 6px;
  font-size: .85em; border: 1px solid #243044;
}
@media (max-width: 640px) {
  .event-card { flex-direction: column; }
  .event-card img, .event-card .thumb-fallback { width: 100%; height: 160px; }
}

.brand-logo {
  display: block; height: 48px; width: auto; margin: 0 auto 1rem;
}
.brand-logo.sm { height: 36px; margin: 0; }
header.app .brand {
  display: inline-flex; align-items: center; gap: .65rem; text-decoration: none;
}
header.app .brand img { height: 28px; width: auto; }

.label-row {
  display: flex; align-items: center; gap: .45rem; margin: .7rem 0 .3rem;
}
.label-row label { margin: 0; }
.info-btn {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--accent2); background: transparent;
  color: var(--accent2); font-weight: 800; font-size: .75rem;
  cursor: pointer; line-height: 1; padding: 0; font-family: inherit;
  position: relative;
}
.info-btn:hover, .info-btn:focus {
  background: var(--accent); color: #fff; border-color: var(--accent); outline: none;
}
.info-tip {
  display: none;
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: min(280px, 70vw);
  background: #161b26; color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: .75rem .85rem; font-size: .82rem; font-weight: 500;
  text-transform: none; letter-spacing: 0; z-index: 30;
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
  text-align: left; line-height: 1.35;
}
.info-tip::after {
  content: ""; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: #161b26;
}
.info-btn:hover .info-tip, .info-btn:focus .info-tip, .info-btn.open .info-tip {
  display: block;
}
.licenca-hero {
  text-align: center; margin-bottom: 1.25rem;
}
.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;
}

.help-modal[hidden] { display: none !important; }
.help-modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 1rem;
}
.help-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.72);
}
.help-modal-box {
  position: relative; z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: #121826;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.35rem 1.4rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.help-modal-box h2 {
  font-family: var(--display);
  margin: 0 1.5rem .75rem 0;
  font-size: 1.15rem;
  letter-spacing: .04em;
}
.help-modal-x {
  position: absolute; top: .65rem; right: .75rem;
  border: 0; background: transparent; color: var(--muted);
  font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.help-modal-x:hover { color: #fff; }
.help-steps {
  margin: 0; line-height: 1.55; font-size: 1rem;
}
.help-shot {
  margin: 0 0 1rem;
  border: 2px solid var(--accent);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.help-shot img {
  display: block; width: 100%; height: auto;
}
.help-shot figcaption {
  padding: .55rem .75rem;
  font-size: .82rem;
  color: var(--muted);
  background: #0a0e15;
  border-top: 1px solid var(--line);
}
