:root {
  --bg-main: #0a0b0d;
  --bg-card: rgba(22, 25, 30, 0.72);
  --bg-card-hover: rgba(30, 34, 42, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 255, 255, 0.16);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.45);
  --accent-cyan: #00f0ff;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --accent-blue: #3b82f6;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-main: 0 32px 64px rgba(0, 0, 0, 0.65);
  --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Efeito de luz ambiente de fundo (Glow Ambient) */
.ambient-background {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.09) 0%, rgba(0, 240, 255, 0.05) 50%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

/* Container Principal */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 80px 24px;
  position: relative;
  z-index: 1;
}

/* Header Minimalista */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.live-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 12px var(--accent-green);
}

.badge-pro {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Hero & Input Section (animação suave para topo) */
.search-center-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 60px;
}

.search-center-wrapper.compact {
  margin-top: 10px;
  margin-bottom: 36px;
}

.hero-heading {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.4s ease;
}

.search-center-wrapper.compact .hero-heading {
  display: none;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.5;
  margin-bottom: 36px;
  transition: all 0.4s ease;
}

.search-center-wrapper.compact .hero-subtitle {
  display: none;
}

/* Card de Busca Principal */
.search-card {
  width: 100%;
  max-width: 820px;
  background: rgba(22, 26, 33, 0.82);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-main);
  transition: all 0.3s ease;
}

.search-card:focus-within {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 24px 64px rgba(0, 240, 255, 0.12);
}

.search-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.url-icon {
  padding-left: 14px;
  color: var(--text-muted);
  font-size: 18px;
}

.url-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  padding: 14px 4px;
  outline: none;
}

.url-input::placeholder {
  color: var(--text-muted);
}

.btn-inspect {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  border: none;
  padding: 14px 28px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-inspect:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* Seletor do Modo Anti-Cloaking EUA */
.options-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.cloaker-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.cloaker-toggle-label:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.cloaker-checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.cloaker-checkbox:checked {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.cloaker-checkbox:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-size: 12px;
  font-weight: 800;
}

/* Painel de Resultados (Grid minimalista de alto desempenho) */
.results-section {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.results-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Grid de Módulos */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .modules-grid {
    grid-template-columns: 1fr;
  }
}

.module-card {
  background: var(--bg-card);
  backdrop-filter: blur(28px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease;
}

.module-card:hover {
  border-color: var(--border-glow);
}

.module-card.full-width {
  grid-column: 1 / -1;
}

.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.module-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.module-badge-count {
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Alerta Anti-Cloaking Banner */
.cloaking-status-banner {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.cloaking-status-banner.clean {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.07);
}

.cloaking-status-banner.alert {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.09);
}

/* Itens Internos dos Cards */
.item-card {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.item-card:hover {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.14);
}

.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.item-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-gateway {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tag-price {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 13px;
}

.tag-video {
  background: rgba(0, 240, 255, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.tag-tracker {
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.url-text {
  font-size: 13px;
  color: #38bdf8;
  word-break: break-all;
  text-decoration: none;
  display: block;
  margin: 6px 0;
}

.url-text:hover {
  text-decoration: underline;
}

.desc-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Botões de Ação de Download / Cópia */
.actions-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn-action {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-action.download-mp4 {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
  border-color: rgba(0, 240, 255, 0.4);
  color: #38bdf8;
}

.btn-action.download-mp4:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.35) 0%, rgba(59, 130, 246, 0.35) 100%);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

/* Empty / Null States */
.empty-box {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

/* Loading Spinners */
.loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  gap: 16px;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Modal de Simulação de Exemplo (para quem não colocou URL ainda) */
.quick-examples {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn-example {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-example:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
