:root {
  --bg: #1a0a10;
  --bg-deep: #14070c;
  --ink: #2a1018;
  --muted: #7a4a58;
  --line: rgba(140, 40, 60, 0.14);
  --accent: #e11d48;
  --accent-deep: #be123c;
  --rose: #fb7185;
  --wine: #7f1d3a;
  --mint: #be123c;
  --mint-soft: #ffe4e9;
  --gold: #f5c26b;
  --card: rgba(255, 248, 250, 0.92);
  --shadow: 0 28px 70px rgba(127, 29, 58, 0.22);
  --radius: 22px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 55% at 8% -5%, rgba(244, 63, 94, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 95% 5%, rgba(190, 18, 60, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(251, 113, 133, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #fff5f7 0%, #ffe8ee 45%, #ffd6e0 100%);
  min-height: 100vh;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 28c-2.5-5-9-7-13-3.5S22 35 40 52c18-17 17-23.5 13-27.5S42.5 23 40 28z' fill='%23e11d48' fill-opacity='0.045'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255, 245, 247, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.brand span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 55%, #be123c 100%);
  color: #fff;
  box-shadow: 0 14px 32px rgba(225, 29, 72, 0.35);
}

.btn-primary:hover { background: linear-gradient(135deg, #e11d48 0%, #be123c 100%); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-dark {
  background: linear-gradient(135deg, #7f1d3a, #4c0519);
  color: #fff;
}

.btn-block { width: 100%; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: 2.5rem 0 3.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  max-width: 12ch;
  background: linear-gradient(135deg, #4c0519 0%, #be123c 45%, #e11d48 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 36ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  min-height: 460px;
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(251, 113, 133, 0.45), transparent 42%),
    radial-gradient(circle at 75% 55%, rgba(225, 29, 72, 0.35), transparent 40%),
    linear-gradient(160deg, #4c0519 0%, #7f1d3a 40%, #be123c 100%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.08);
  color: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  animation: fadeRise 0.9s ease both;
}

.map-glow {
  position: absolute;
  inset: 18% 20% auto;
  height: 42%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.55), transparent 70%);
  filter: blur(10px);
  animation: pulse 3.2s ease-in-out infinite;
}

.heart-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.floating-heart {
  position: absolute;
  color: rgba(255, 255, 255, 0.28);
  font-size: 1.1rem;
  animation: floatHeart 6s ease-in-out infinite;
}

.floating-heart:nth-child(1) { left: 14%; top: 18%; animation-delay: 0s; font-size: 1.4rem; }
.floating-heart:nth-child(2) { left: 72%; top: 22%; animation-delay: 1.2s; font-size: 0.9rem; }
.floating-heart:nth-child(3) { left: 58%; top: 12%; animation-delay: 2s; }
.floating-heart:nth-child(4) { left: 28%; top: 42%; animation-delay: 0.7s; font-size: 1.6rem; color: rgba(245, 194, 107, 0.45); }

.pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 8px rgba(255,255,255,0.18);
  animation: bounce 2.4s ease-in-out infinite;
}

.pin.a { top: 28%; left: 30%; background: #fff; }
.pin.b { top: 48%; right: 26%; background: var(--gold); animation-delay: 0.4s; }

.route {
  position: absolute;
  top: 34%;
  left: 34%;
  width: 36%;
  height: 2px;
  background: linear-gradient(90deg, #fff, var(--gold));
  transform: rotate(28deg);
  opacity: 0.85;
  animation: dash 2.8s linear infinite;
}

.heart-center {
  position: absolute;
  top: 36%;
  left: 48%;
  transform: translate(-50%, -50%);
  font-size: 1.6rem;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25));
  animation: heartbeat 1.6s ease-in-out infinite;
  z-index: 2;
}

.hero-visual h2 {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.hero-visual p {
  position: relative;
  z-index: 1;
  opacity: 0.88;
  margin-top: 0.4rem;
}

.section {
  padding: 4.5rem 0;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.section .sub {
  color: var(--muted);
  max-width: 48ch;
  margin-bottom: 2rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(26, 36, 33, 0.04);
  transition: transform 0.25s ease;
}

.feature:hover { transform: translateY(-4px); }

.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffe4e9, #fecdd3);
  color: var(--accent-deep);
  font-weight: 800;
  margin-bottom: 1rem;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.feature p { color: var(--muted); font-size: 0.96rem; }

.cta-band {
  margin: 1rem 0 4rem;
  border-radius: 32px;
  padding: 2.4rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(251, 113, 133, 0.35), transparent 40%),
    linear-gradient(135deg, #4c0519, #be123c 70%, #e11d48);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.35rem;
}

.cta-band p { opacity: 0.78; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-shell, .dash-shell, .admin-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.panel {
  width: min(440px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
  animation: fadeRise 0.55s ease both;
}

.panel.wide { width: min(960px, 100%); }

.panel h1 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin-bottom: 0.35rem;
}

.panel .hint {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.form-group input, .form-group select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.14);
}

.alert {
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.alert-error {
  background: #ffe4e6;
  color: #9f1239;
}

.alert-success {
  background: var(--mint-soft);
  color: #9f1239;
}

.waiting-card {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.orbit {
  width: 140px;
  height: 140px;
  margin: 0.5rem auto 1.5rem;
  border-radius: 50%;
  border: 2px dashed rgba(225, 29, 72, 0.3);
  display: grid;
  place-items: center;
  position: relative;
  animation: spin 10s linear infinite;
}

.orbit-core {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fb7185, #e11d48);
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.4);
  animation: spin 10s linear infinite reverse;
}

.orbit-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff1f2;
  color: #be123c;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.status-pill.ok {
  background: #ffe4e9;
  color: #9f1239;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.4s ease-in-out infinite;
}

.code-box {
  margin-top: 1.25rem;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.code-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  margin-top: 0.25rem;
}

.code-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.app-pending {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.user-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.meta-item {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem;
  text-align: left;
}

.meta-item small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}

.spy-panel {
  margin-top: 1.25rem;
}

.spy-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.spy-panel-head h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

.spy-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #be123c;
  background: #fff1f2;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.spy-grid {
  display: grid;
  gap: 0.75rem;
}

.spy-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.05rem;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.spy-card:hover {
  border-color: rgba(225, 29, 72, 0.35);
  box-shadow: 0 12px 28px rgba(127, 29, 58, 0.12);
  transform: translateY(-1px);
}

.spy-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.spy-card-copy {
  flex: 1;
  min-width: 0;
}

.spy-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.spy-pulse {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #be123c;
}

.spy-go {
  color: rgba(127, 29, 58, 0.35);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.spy-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex: 0 0 46px;
  background: #fff1f2 center / 22px 22px no-repeat;
}

.spy-icon-cam {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 7l-7 5 7 5V7z'/%3E%3Crect x='1' y='5' width='15' height='14' rx='2'/%3E%3C/svg%3E");
}

.spy-icon-loc {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-7.2 7-12a7 7 0 10-14 0c0 4.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

.spy-icon-audio {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 1a3 3 0 00-3 3v8a3 3 0 006 0V4a3 3 0 00-3-3z'/%3E%3Cpath d='M19 10v1a7 7 0 01-14 0v-1M12 19v4M8 23h8'/%3E%3C/svg%3E");
}

.spy-wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
}

.spy-wave i {
  display: block;
  width: 4px;
  border-radius: 999px;
  background: #e11d48;
  animation: spyWave 1s ease-in-out infinite;
  height: 40%;
}

.spy-wave i:nth-child(2) { animation-delay: .1s; height: 70%; }
.spy-wave i:nth-child(3) { animation-delay: .2s; height: 100%; }
.spy-wave i:nth-child(4) { animation-delay: .3s; height: 55%; }
.spy-wave i:nth-child(5) { animation-delay: .15s; height: 85%; }
.spy-wave i:nth-child(6) { animation-delay: .25s; height: 45%; }
.spy-wave i:nth-child(7) { animation-delay: .05s; height: 65%; }

@keyframes spyWave {
  0%, 100% { transform: scaleY(0.45); opacity: 0.65; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (min-width: 640px) {
  .spy-grid {
    grid-template-columns: 1fr;
  }
}

/* Viewers — simulação de cada função */
body.viewer-open {
  overflow: hidden;
}

.spy-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  background: rgba(10, 3, 6, 0.72);
  backdrop-filter: blur(8px);
}

.spy-viewer[hidden] {
  display: none !important;
}

.spy-viewer-frame {
  width: min(420px, 100%);
  height: min(780px, 100svh);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0b0b0b;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  position: relative;
}

.spy-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  z-index: 2;
}

.spy-viewer-bar strong {
  display: block;
  font-size: 0.95rem;
}

.spy-viewer-bar small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
}

.spy-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.spy-rec {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fb7185;
}

.spy-lock {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1.15rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: rgba(255, 241, 242, 0.95);
  color: #9f1239;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.spy-lock.ok {
  background: rgba(220, 252, 231, 0.95);
  color: #166534;
}

.cam-view.is-live {
  background: #0a0a0a;
}

.cam-feed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cam-live-empty {
  text-align: center;
  color: rgba(255,255,255,0.75);
  z-index: 1;
  padding: 1rem;
}

.cam-live-empty p {
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: #fb7185;
}

.cam-live-empty small {
  color: rgba(255,255,255,0.55);
}

.loc-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Câmera */
.cam-frame { background: #111; }

.cam-view {
  flex: 1;
  position: relative;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.08), transparent 35%),
    linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  display: grid;
  place-items: center;
}

.cam-grid {
  position: absolute;
  inset: 12% 10%;
  border: 1px solid rgba(255,255,255,0.12);
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 33.33% 33.33%;
}

.cam-focus {
  width: 86px;
  height: 86px;
  border: 2px solid rgba(251, 113, 133, 0.85);
  border-radius: 12px;
  animation: camPulse 1.8s ease-in-out infinite;
}

.cam-label {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.cam-controls {
  display: grid;
  place-items: center;
  padding: 1.25rem 1rem 4.5rem;
  background: #000;
}

.cam-shot {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #fff;
  box-shadow: inset 0 0 0 4px #000;
  cursor: pointer;
}

@keyframes camPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Localização */
.loc-frame { background: #0f1720; }

.loc-map {
  flex: 1;
  position: relative;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(160deg, #1b2a38 0%, #101820 55%, #0c1218 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

.loc-roads {
  position: absolute;
  inset: 18% 12%;
  border: 2px solid rgba(251, 113, 133, 0.18);
  border-radius: 18px;
  box-shadow: inset 0 0 0 28px rgba(255,255,255,0.02);
}

.loc-ping {
  position: absolute;
  left: 52%;
  top: 46%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
}

.loc-ping span {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(225, 29, 72, 0.55);
  animation: locRipple 2s ease-out infinite;
}

.loc-ping span:nth-child(2) { animation-delay: 0.7s; }

.loc-ping i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #e11d48;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.25);
}

.loc-chip {
  position: absolute;
  left: 50%;
  top: 1.1rem;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}

@keyframes locRipple {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Áudio */
.audio-frame { background: #14080c; }

.audio-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.5rem 1rem 5rem;
  position: relative;
}

.audio-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(251, 113, 133, 0.35);
  animation: camPulse 2.2s ease-in-out infinite;
}

.audio-mic {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 1a3 3 0 00-3 3v8a3 3 0 006 0V4a3 3 0 00-3-3z'/%3E%3Cpath d='M19 10v1a7 7 0 01-14 0v-1M12 19v4M8 23h8'/%3E%3C/svg%3E")
    center / 28px 28px no-repeat,
    linear-gradient(135deg, #fb7185, #be123c);
  box-shadow: 0 16px 40px rgba(225, 29, 72, 0.4);
  z-index: 1;
}

.spy-wave.big {
  height: 48px;
  gap: 5px;
}

.spy-wave.big.is-live i,
body.viewer-open #audioWave i {
  animation: none;
}

.partner-audio {
  width: min(280px, 100%);
  margin-top: 0.85rem;
  border-radius: 999px;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.stat span { color: var(--muted); font-size: 0.85rem; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th, td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: #faf7f4;
}

tr:last-child td { border-bottom: 0; }

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.badge-waiting { background: #fff1f2; color: #be123c; }
.badge-paired { background: var(--mint-soft); color: #9f1239; }
.badge-inactive { background: #eee; color: #666; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.25rem;
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.back-link:hover { color: var(--ink); }

@keyframes fadeRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes dash {
  from { opacity: 0.35; }
  50% { opacity: 0.9; }
  to { opacity: 0.35; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes heartbeat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  25% { transform: translate(-50%, -50%) scale(1.18); }
  40% { transform: translate(-50%, -50%) scale(0.96); }
  60% { transform: translate(-50%, -50%) scale(1.12); }
}

@keyframes floatHeart {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.35; }
  50% { transform: translateY(-14px) scale(1.08); opacity: 0.7; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.5rem;
  }

  .hero h1 { max-width: none; }
  .hero-visual { min-height: 340px; }
  .features { grid-template-columns: 1fr; }
  .grid-2, .stats, .user-meta { grid-template-columns: 1fr; }
}
