:root {
  --bg: #0c0f1a;
  --text: #e0e3eb;
  --blue: #00b2ff;
  --violet: #9b5cff;
  --mint: #00ffe1;
  --panel: #10162a;
  --panel-soft: #151c34;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(900px 520px at 10% -5%, rgba(0, 178, 255, 0.18), transparent 70%),
    radial-gradient(820px 460px at 88% 0%, rgba(155, 92, 255, 0.2), transparent 65%),
    linear-gradient(180deg, #080b14 0%, var(--bg) 40%, #0a1020 100%);
  overflow-x: hidden;
}

.page-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(640px 320px at 18% 82%, rgba(0, 255, 225, 0.08), transparent 70%),
    radial-gradient(540px 260px at 82% 72%, rgba(0, 178, 255, 0.08), transparent 70%);
  z-index: -1;
}

.neon-border {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(120deg, rgba(0, 178, 255, 0.7), rgba(155, 92, 255, 0.65), rgba(0, 255, 225, 0.7))
      border-box;
  box-shadow:
    0 12px 30px rgba(2, 6, 23, 0.45),
    0 0 0 1px rgba(0, 178, 255, 0.1) inset;
}

.scanline {
  position: relative;
  overflow: hidden;
}

.scanline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}

.shine-loop {
  position: relative;
  overflow: hidden;
}

.shine-loop::before {
  content: "";
  position: absolute;
  top: -150%;
  left: -60%;
  width: 42%;
  height: 420%;
  transform: rotate(16deg);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0)
  );
  animation: shine 7s linear infinite;
}

@keyframes shine {
  0% {
    left: -60%;
  }
  100% {
    left: 165%;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.38rem 0.78rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tag-ia {
  background: #241a2e;
  color: #c084fc;
}

.tag-tech {
  background: #112426;
  color: #22d3ee;
}

.tag-success {
  background: #152e1d;
  color: #34d399;
}

.tag-critical {
  background: #2e1515;
  color: #f87171;
}

.filter-btn {
  height: 2.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 178, 255, 0.28);
  background: rgba(16, 22, 42, 0.65);
  padding: 0 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(224, 227, 235, 0.9);
  transition: 0.2s ease;
}

.filter-btn:hover {
  border-color: rgba(0, 255, 225, 0.45);
  color: #fff;
}

.filter-btn.active {
  border-color: rgba(0, 255, 225, 0.7);
  background: linear-gradient(90deg, rgba(0, 178, 255, 0.18), rgba(0, 255, 225, 0.2));
  color: #d5fff8;
  box-shadow: 0 0 18px rgba(0, 255, 225, 0.2);
}

.idea-card {
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--panel-soft), var(--panel-soft)) padding-box,
    linear-gradient(135deg, rgba(0, 178, 255, 0.52), rgba(155, 92, 255, 0.48), rgba(0, 255, 225, 0.52))
      border-box;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.45);
}

.idea-title {
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  line-height: 1.28;
  font-weight: 700;
}

.space-top-sm {
  margin-top: 0.45rem;
}

.space-top-md {
  margin-top: 0.75rem;
}

.score-chip {
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 225, 0.45);
  background: rgba(0, 255, 225, 0.12);
  color: #8dffef;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.metric {
  border-radius: 12px;
  border: 1px solid rgba(0, 178, 255, 0.2);
  background: rgba(12, 15, 26, 0.45);
  padding: 0.42rem;
  text-align: center;
}

.metric-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: rgba(224, 227, 235, 0.65);
}

.metric-value {
  margin-top: 0.2rem;
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #b8fbff;
}

.prompt-box {
  border-radius: 14px;
  border: 1px solid rgba(155, 92, 255, 0.45);
  background: rgba(25, 16, 45, 0.56);
  padding: 0.8rem;
  font-size: 0.78rem;
  line-height: 1.4;
  white-space: pre-wrap;
  color: rgba(224, 227, 235, 0.9);
}

.copy-btn {
  border-radius: 12px;
  border: 1px solid rgba(0, 178, 255, 0.38);
  background: rgba(0, 178, 255, 0.12);
  color: #99deff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  transition: 0.2s ease;
  align-self: flex-start;
}

.copy-btn:hover {
  border-color: rgba(0, 255, 225, 0.6);
  color: #c2fff5;
  background: rgba(0, 255, 225, 0.12);
}

.idea-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.idea-text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(224, 227, 235, 0.88);
}

.card-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.label-mint {
  color: var(--mint);
}

.label-blue {
  color: var(--blue);
}

.label-risk {
  color: #fca5a5;
}

.label-violet {
  color: var(--violet);
}

.idea-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.idea-row {
  display: grid;
  gap: 0.75rem;
}

.idea-row-2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.empty-state {
  border-radius: var(--radius);
  border: 1px solid rgba(0, 178, 255, 0.3);
  background: rgba(16, 22, 42, 0.6);
  padding: 1.2rem;
}

.fact-chip {
  border-radius: 14px;
  border: 1px solid rgba(0, 178, 255, 0.25);
  background: rgba(10, 16, 32, 0.56);
  padding: 0.75rem;
}

.fact-chip p {
  margin: 0;
}

.fact-chip .fact-title {
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(0, 255, 225, 0.85);
  font-weight: 700;
}

.fact-chip .fact-value {
  margin-top: 0.3rem;
  font-size: 0.86rem;
  line-height: 1.35;
  color: rgba(224, 227, 235, 0.92);
}

.baralhas-card {
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(125deg, rgba(0, 255, 225, 0.5), rgba(0, 178, 255, 0.45), rgba(155, 92, 255, 0.5))
      border-box;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow:
    0 10px 24px rgba(2, 6, 23, 0.44),
    0 0 0 1px rgba(0, 255, 225, 0.08) inset;
}

.baralhas-card .title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  line-height: 1.3;
}

.baralhas-card .sub {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 178, 255, 0.9);
  font-weight: 800;
}

.baralhas-card .body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.42;
  color: rgba(224, 227, 235, 0.9);
}

.kpi-chip {
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 225, 0.45);
  background: rgba(0, 255, 225, 0.12);
  color: #9efff3;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.62rem;
  align-self: flex-start;
}

.pilot-box {
  border-radius: 12px;
  border: 1px solid rgba(155, 92, 255, 0.4);
  background: rgba(26, 18, 47, 0.5);
  padding: 0.65rem;
}

.pilot-box p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.38;
  color: rgba(224, 227, 235, 0.9);
}

.pilot-box .pilot-title {
  color: rgba(194, 146, 255, 0.9);
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.gallery-photo {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0, 178, 255, 0.26);
}

.kpi-title {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 178, 255, 0.9);
  font-weight: 700;
}

.kpi-value {
  margin-top: 0.45rem;
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  line-height: 1;
  color: rgba(224, 227, 235, 0.96);
}

.timeline-item {
  border-left: 2px solid rgba(0, 178, 255, 0.5);
  padding-left: 0.85rem;
  margin-bottom: 0.95rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-period {
  margin: 0;
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 255, 225, 0.85);
  font-weight: 700;
}

.timeline-title {
  margin: 0.24rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(224, 227, 235, 0.96);
}

.timeline-desc {
  margin: 0.24rem 0 0;
  font-size: 0.88rem;
  line-height: 1.42;
  color: rgba(224, 227, 235, 0.84);
}

.chart-wrap {
  position: relative;
  width: 100%;
  height: 320px;
}

.source-link {
  color: #9bdffd;
  text-decoration: none;
}

.source-link:hover {
  color: #9bffee;
  text-decoration: underline;
}

.idea-dashboard {
  border-radius: 14px;
  border: 1px solid rgba(0, 178, 255, 0.28);
  background: rgba(9, 15, 28, 0.72);
  padding: 0.72rem;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.dash-title {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(0, 255, 225, 0.86);
  font-weight: 800;
}

.dash-update {
  margin: 0;
  font-size: 0.64rem;
  color: rgba(224, 227, 235, 0.65);
}

.dash-grid {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.48rem;
}

.dash-metric {
  border-radius: 10px;
  border: 1px solid rgba(0, 178, 255, 0.2);
  background: rgba(16, 22, 42, 0.7);
  padding: 0.44rem;
}

.dash-label {
  margin: 0;
  font-size: 0.61rem;
  color: rgba(224, 227, 235, 0.7);
  letter-spacing: 0.02em;
}

.dash-value {
  margin: 0.18rem 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(224, 227, 235, 0.95);
}

.dash-delta {
  margin: 0.14rem 0 0;
  font-size: 0.66rem;
  font-weight: 700;
}

.dash-good {
  color: #34d399;
}

.dash-warn {
  color: #fbbf24;
}

.dash-bad {
  color: #f87171;
}

.dash-neutral {
  color: #93c5fd;
}

.dash-chart-wrap {
  margin-top: 0.58rem;
  height: 180px;
  border-radius: 10px;
  border: 1px solid rgba(0, 178, 255, 0.2);
  background: rgba(16, 22, 42, 0.45);
  padding: 0.45rem;
}

.dash-alerts {
  margin: 0.58rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.26rem;
}

.dash-alerts li {
  font-size: 0.68rem;
  line-height: 1.33;
  color: rgba(224, 227, 235, 0.83);
}

@media (max-width: 640px) {
  .idea-row-2col {
    grid-template-columns: 1fr;
  }

  .dash-grid {
    grid-template-columns: 1fr;
  }

  .dash-chart-wrap {
    height: 170px;
  }
}

@media (max-width: 560px) {
  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-photo {
    height: 108px;
  }

  .chart-wrap {
    height: 280px;
  }
}
