:root {
  --bg: #0c1020;
  --panel: #131830;
  --panel-soft: #161d36;
  --border: #1f2745;
  --primary: #7c6bff;
  --primary-2: #4cd3ff;
  --ink: #f8f9ff;
  --muted: #b7c0dd;
  --radius: 16px;
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body.bg-surface {
  background:
    radial-gradient(circle at 18% 18%, rgba(124, 107, 255, 0.16), transparent 32%),
    radial-gradient(circle at 82% 10%, rgba(76, 211, 255, 0.18), transparent 30%),
    radial-gradient(circle at 70% 86%, rgba(124, 107, 255, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(11, 14, 26, 0.9) 0%, rgba(10, 13, 24, 0.92) 40%, rgba(6, 9, 16, 0.94) 100%),
    url("https://images.unsplash.com/photo-1554224154-22dec7ec8818?auto=format&fit=crop&w=1920&q=80&sat=-25");
  background-size: auto, auto, auto, cover, cover;
  background-position: 18% 18%, 82% 10%, 70% 86%, center, center;
  background-repeat: no-repeat;
  color: var(--ink);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
}

main {
  position: relative;
  z-index: 1;
}

body.bg-surface::before,
body.bg-surface::after {
  content: "";
  position: fixed;
  inset: -8%;
  pointer-events: none;
  z-index: 0;
}

/* grade suave + vinheta para dar profundidade */
body.bg-surface::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 120px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 120px),
    radial-gradient(900px at 50% 20%, rgba(0, 0, 0, 0.35), transparent 55%);
  filter: blur(0.5px);
  opacity: 0.8;
  animation: floatGrid 22s ease-in-out infinite alternate;
}

/* halos de cor nas laterais */
body.bg-surface::after {
  background:
    radial-gradient(720px at 12% 72%, rgba(76, 211, 255, 0.12), transparent 55%),
    radial-gradient(900px at 92% 16%, rgba(124, 107, 255, 0.12), transparent 55%),
    radial-gradient(680px at 50% 100%, rgba(0, 0, 0, 0.4), transparent 65%);
  mix-blend-mode: screen;
  opacity: 0.9;
  animation: floatGlow 26s ease-in-out infinite alternate;
}

a {
  color: var(--primary);
}

.topbar {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.hero {
  background: transparent;
  color: var(--ink);
  min-height: 68vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% 16%;
  background: radial-gradient(620px at 50% 0%, rgba(255, 255, 255, 0.04), transparent 65%);
  filter: blur(8px);
  opacity: 0.8;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px at 50% 38%, rgba(76, 211, 255, 0.06), transparent 60%);
  opacity: 1;
  z-index: -1;
}


.hero-brand .brand-dot.large {
  width: 18px;
  height: 18px;
  box-shadow: 0 0 0 10px rgba(124, 107, 255, 0.14);
  align-self: flex-start;
  margin-top: 10px;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.78);
}

.search-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(720px, 90vw);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: default;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.search-shell:hover {
  border-color: rgba(124, 107, 255, 0.5);
  transform: translateY(-1px);
}

.search-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e7ebff;
  flex: 1;
}

.search-icon {
  font-size: 1rem;
}

.search-text {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  width: 100%;
}

.search-input {
  background: transparent;
  border: none;
  color: var(--ink);
  width: 100%;
  font-size: 1rem;
  outline: none;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.search-btn:hover,
.search-btn:focus {
  border-color: rgba(124, 107, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(76, 211, 255, 0.18);
}


.hero-stats {
  width: 100%;
  margin-top: 140px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 210px;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  border-color: rgba(124, 107, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(76, 211, 255, 0.18);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
}

.brand-title {
  font-weight: 700;
  color: var(--ink);
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(124, 107, 255, 0.2);
  display: none;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--muted);
}

.form-control {
  background: #0f152b;
  border: 1px solid var(--border);
  color: var(--ink);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(124, 107, 255, 0.2);
  background: #101833;
  color: var(--ink);
}

.input-group-text {
  background: #0f152b;
  border: 1px solid var(--border);
  color: var(--muted);
}

.btn {
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, #7c6bff, #4cd3ff);
  border: none;
  box-shadow: 0 10px 26px rgba(76, 211, 255, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(76, 211, 255, 0.26);
}

.btn-outline-light {
  border-color: var(--border);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #0f152b;
  border: 1px solid var(--border);
  color: var(--ink);
  min-width: 200px;
  justify-content: center;
}

.status-chip .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 0 rgba(124, 107, 255, 0.28);
}

.status-chip.success .dot {
  background: #4ade80;
  box-shadow: 0 0 0 8px rgba(74, 222, 128, 0.16);
}

.status-chip.warning .dot {
  background: #fbbf24;
  box-shadow: 0 0 0 8px rgba(251, 191, 36, 0.12);
}

.status-chip.danger .dot {
  background: #ef4444;
  box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.12);
}

.status-chip.info .dot {
  background: var(--primary);
  box-shadow: 0 0 0 8px rgba(124, 107, 255, 0.16);
}

.cta-area {
  min-height: 220px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.result-item {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  min-height: 94px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-item .label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.result-item .value {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}

.nav-drawer {
  background: var(--panel);
  color: var(--ink);
  border-left: 1px solid var(--border);
}

.nav-drawer .btn-close-white {
  filter: invert(1);
}

.nav-drawer .text-muted {
  color: var(--muted) !important;
}

.nav-drawer .btn-outline-light {
  color: var(--ink);
}

.modal-content {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--border);
}

.modal-header,
.modal-footer {
  border-color: var(--border);
}

.modal .btn-close {
  filter: invert(1);
}

@keyframes floatGrid {
  from {
    transform: translate3d(-1%, -1%, 0) scale(1.02);
    opacity: 0.75;
  }
  to {
    transform: translate3d(1%, 1.5%, 0) scale(1.05);
    opacity: 0.9;
  }
}

@keyframes floatGlow {
  from {
    transform: translate3d(-2%, 1%, 0);
  }
  to {
    transform: translate3d(2%, -1.5%, 0);
  }
}

@media (max-width: 768px) {
  .panel {
    padding: 18px;
  }

  .status-chip {
    width: 100%;
    justify-content: flex-start;
  }
}
