/* ============================================================
   TORRE ADS — cockpit de tráfego pago
   Design system. Dark "war room" premium.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Archivo:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap");

:root {
  --bg: #090b10;
  --bg-2: #0c0f16;
  --surface: #12161f;
  --surface-2: #171d29;
  --surface-3: #1e2634;
  --line: rgba(255, 255, 255, 0.065);
  --line-2: rgba(255, 255, 255, 0.12);
  --txt: #eaf0f7;
  --txt-2: #9aa6b8;
  --txt-3: #616d80;

  --lime: #c8f65d;
  --lime-2: #a6e635;
  --cyan: #45c8f0;
  --violet: #8b7cf6;
  --amber: #f7b84b;
  --red: #ff6b6b;
  --green: #4ade80;

  --google: #6ea8fe;
  --meta: #b48bff;
  --gbp: #4fd6a8;

  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-lime: 0 12px 40px -12px rgba(200, 246, 93, 0.35);

  --ff-display: "Bricolage Grotesque", sans-serif;
  --ff-body: "Archivo", sans-serif;
  --ff-mono: "JetBrains Mono", monospace;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
}

::selection {
  background: var(--lime);
  color: #0a0a0a;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 20px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: #2c364a;
}

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

/* ============================================================
   LOGIN
   ============================================================ */
.login-body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 100vh;
  background: var(--bg);
  overflow: hidden;
}

.login-stage {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(
      120% 90% at 12% 10%,
      rgba(200, 246, 93, 0.12),
      transparent 55%
    ),
    radial-gradient(
      90% 80% at 90% 90%,
      rgba(69, 200, 240, 0.1),
      transparent 55%
    ),
    var(--bg-2);
}
.login-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(80% 80% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(
    80% 80% at 50% 40%,
    #000 30%,
    transparent 80%
  );
  opacity: 0.6;
}
.stage-inner {
  position: relative;
  height: 100%;
  padding: 54px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-2);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 7px 14px;
  width: fit-content;
  backdrop-filter: blur(6px);
}
.stage-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: pulse 2.4s infinite;
}
.stage-headline {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(38px, 4.4vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 12ch;
}
.stage-headline em {
  font-style: normal;
  color: var(--lime);
}
.stage-sub {
  margin-top: 22px;
  color: var(--txt-2);
  font-size: 16px;
  max-width: 40ch;
  line-height: 1.5;
}
.stage-metrics {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}
.stage-metric .v {
  font-family: var(--ff-mono);
  font-weight: 600;
  font-size: 26px;
  color: var(--txt);
}
.stage-metric .v .u {
  color: var(--lime);
}
.stage-metric .l {
  font-size: 12px;
  color: var(--txt-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.stage-foot {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--txt-3);
  display: flex;
  justify-content: space-between;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-card {
  width: 100%;
  max-width: 392px;
}
.login-card .brand {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.03em;
}
.login-card .brand span {
  color: var(--lime);
}
.login-card .sub {
  color: var(--txt-2);
  margin: 8px 0 34px;
  font-size: 14.5px;
}
form label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--txt-2);
  margin: 18px 0 8px;
  font-weight: 600;
}
form input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  color: var(--txt);
  font-family: var(--ff-body);
  font-size: 15px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
form input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 246, 93, 0.14);
}
form button {
  width: 100%;
  margin-top: 26px;
  background: var(--lime);
  color: #0a0f08;
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition:
    transform 0.12s,
    box-shadow 0.2s,
    background 0.2s;
}
form button:hover {
  box-shadow: var(--shadow-lime);
  transform: translateY(-1px);
}
form button:active {
  transform: translateY(0);
}
.erro {
  color: var(--red);
  font-size: 13.5px;
  margin-top: 16px;
  min-height: 18px;
  font-weight: 500;
}
.login-foot {
  margin-top: 30px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--txt-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-foot .lock {
  color: var(--green);
}

/* ============================================================
   APP SHELL
   ============================================================ */
.app {
  display: grid;
  grid-template-columns: 256px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.side-brand {
  padding: 22px 22px 18px;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.side-brand span {
  color: var(--lime);
}
.side-brand .glyph {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--lime), var(--lime-2));
  display: grid;
  place-items: center;
  color: #0a0f08;
  font-size: 17px;
  box-shadow: var(--shadow-lime);
}

.nav-group {
  padding: 8px 12px;
  overflow-y: auto;
  flex: 1;
}
.nav-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--txt-3);
  padding: 16px 12px 8px;
  font-weight: 600;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--txt-2);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.14s,
    color 0.14s;
  position: relative;
}
.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.9;
}
.nav-item:hover {
  background: var(--surface);
  color: var(--txt);
}
.nav-item.active {
  background: var(--surface-2);
  color: var(--txt);
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 4px;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}
.nav-item .badge {
  margin-left: auto;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--lime);
  background: rgba(200, 246, 93, 0.12);
  border: 1px solid rgba(200, 246, 93, 0.25);
  padding: 1px 7px;
  border-radius: 20px;
}
.nav-item .badge.soon {
  color: var(--amber);
  background: rgba(247, 184, 75, 0.1);
  border-color: rgba(247, 184, 75, 0.25);
}

.side-user {
  border-top: 1px solid var(--line);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.side-user .av {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--surface-3), var(--surface-2));
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--lime);
}
.side-user .meta {
  line-height: 1.25;
  min-width: 0;
}
.side-user .meta b {
  font-size: 13.5px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-user .meta small {
  font-size: 11.5px;
  color: var(--txt-3);
}
.side-user .out {
  margin-left: auto;
  color: var(--txt-3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.side-user .out:hover {
  color: var(--red);
  background: var(--surface);
}
.side-user .out svg {
  width: 18px;
  height: 18px;
}

/* MAIN */
.main {
  min-width: 0;
  background:
    radial-gradient(
      100% 60% at 100% 0%,
      rgba(69, 200, 240, 0.05),
      transparent 60%
    ),
    var(--bg);
}
.topbar {
  height: 66px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 26px;
  position: sticky;
  top: 0;
  background: rgba(9, 11, 16, 0.82);
  backdrop-filter: blur(14px);
  z-index: 20;
}
.crumb {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--txt-3);
  letter-spacing: 0.04em;
}
.crumb b {
  color: var(--txt);
  font-weight: 600;
}
.topbar-spacer {
  flex: 1;
}

.ws-switch {
  position: relative;
}
.ws-switch label {
  position: absolute;
  top: -8px;
  left: 12px;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--txt-3);
  background: var(--bg);
  padding: 0 5px;
}
.ws-switch select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--txt);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 38px 10px 15px;
  border-radius: 11px;
  cursor: pointer;
  min-width: 210px;
}
.ws-switch::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--txt-2);
  border-bottom: 2px solid var(--txt-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.ws-switch select:focus {
  outline: none;
  border-color: var(--lime);
}

.top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--txt);
  padding: 10px 15px;
  border-radius: 11px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: 0.15s;
}
.top-btn svg {
  width: 16px;
  height: 16px;
}
.top-btn:hover {
  background: var(--surface-2);
}
.top-btn.primary {
  background: var(--lime);
  color: #0a0f08;
  border-color: var(--lime);
}
.top-btn.primary:hover {
  box-shadow: var(--shadow-lime);
}

.view {
  padding: 26px;
  max-width: 1500px;
}
.view.hidden {
  display: none;
}

.page-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
}
.page-head h1 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.03em;
}
.page-head p {
  color: var(--txt-2);
  font-size: 14px;
  margin-top: 5px;
}
.preview-flag {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--amber);
  border: 1px dashed rgba(247, 184, 75, 0.4);
  background: rgba(247, 184, 75, 0.06);
  padding: 7px 13px;
  border-radius: 100px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}
.kpi {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  position: relative;
  overflow: hidden;
}
.kpi::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(200, 246, 93, 0.08),
    transparent 70%
  );
}
.kpi .k-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--txt-2);
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.kpi .k-top .ic {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
}
.kpi .k-top .ic svg {
  width: 15px;
  height: 15px;
}
.kpi .k-val {
  font-family: var(--ff-mono);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 14px 0 6px;
  font-variant-numeric: tabular-nums;
}
.kpi .k-val .cur {
  font-size: 16px;
  color: var(--txt-2);
  margin-right: 3px;
}
.kpi .k-delta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ff-mono);
  font-size: 12.5px;
  font-weight: 600;
}
.kpi .k-delta.up {
  color: var(--green);
}
.kpi .k-delta.down {
  color: var(--red);
}
.kpi .k-spark {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 78px;
  height: 34px;
  opacity: 0.9;
}

.split {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1180px) {
  .split {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card + .card {
  margin-top: 16px;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.card-head h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.card-head .sub {
  font-size: 12.5px;
  color: var(--txt-3);
}
.card-head .right {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.chip {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--txt-2);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 5px 11px;
  cursor: pointer;
  transition: 0.14s;
}
.chip.active {
  color: #0a0f08;
  background: var(--lime);
  border-color: var(--lime);
  font-weight: 600;
}

.chart-wrap {
  position: relative;
}
.chart-legend {
  display: flex;
  gap: 18px;
  margin-bottom: 14px;
}
.leg {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--txt-2);
}
.leg i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.chart-svg {
  width: 100%;
  height: 220px;
  display: block;
}

.donut-row {
  display: flex;
  align-items: center;
  gap: 22px;
}
.donut {
  width: 132px;
  height: 132px;
  flex-shrink: 0;
}
.donut-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dleg {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}
.dleg i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}
.dleg .nm {
  color: var(--txt);
}
.dleg .vl {
  margin-left: auto;
  font-family: var(--ff-mono);
  font-weight: 600;
  color: var(--txt);
}
.dleg .pc {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--txt-3);
  width: 42px;
  text-align: right;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
}
.tbl th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--txt-3);
  font-weight: 600;
  padding: 0 12px 12px;
}
.tbl th.num,
.tbl td.num {
  text-align: right;
  font-family: var(--ff-mono);
  font-variant-numeric: tabular-nums;
}
.tbl td {
  padding: 13px 12px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.tbl tr:hover td {
  background: var(--surface-2);
}
.camp-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.plat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.camp-name small {
  display: block;
  color: var(--txt-3);
  font-size: 11.5px;
  font-family: var(--ff-mono);
}
.roas-pill {
  font-family: var(--ff-mono);
  font-weight: 600;
  font-size: 12.5px;
  padding: 3px 9px;
  border-radius: 7px;
}
.roas-pill.hi {
  color: var(--green);
  background: rgba(74, 222, 128, 0.12);
}
.roas-pill.mid {
  color: var(--amber);
  background: rgba(247, 184, 75, 0.12);
}
.roas-pill.lo {
  color: var(--red);
  background: rgba(255, 107, 107, 0.12);
}
.mini-bar {
  height: 6px;
  border-radius: 4px;
  background: var(--surface-3);
  overflow: hidden;
  min-width: 60px;
}
.mini-bar > i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--lime-2), var(--lime));
}

/* ============================================================
   COPILOTO IA
   ============================================================ */
.copilot {
  background:
    radial-gradient(
      130% 80% at 100% 0%,
      rgba(139, 124, 246, 0.14),
      transparent 55%
    ),
    var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 82px;
}
.copilot-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 6px;
}
.copilot-orb {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: conic-gradient(
    from 180deg,
    var(--lime),
    var(--cyan),
    var(--violet),
    var(--lime)
  );
  display: grid;
  place-items: center;
  animation: spin 8s linear infinite;
}
.copilot-orb::after {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface);
}
.copilot-head b {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 16px;
}
.copilot-head .live {
  margin-left: auto;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 5px;
}
.copilot-head .live .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
.copilot .lead {
  font-size: 13px;
  color: var(--txt-2);
  line-height: 1.55;
  margin-bottom: 16px;
}
.insight {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 10px;
  background: var(--bg-2);
  transition: 0.15s;
}
.insight:hover {
  border-color: var(--line-2);
  transform: translateX(2px);
}
.insight .i-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.insight .i-tag {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 20px;
}
.i-tag.opp {
  color: var(--green);
  background: rgba(74, 222, 128, 0.12);
}
.i-tag.warn {
  color: var(--amber);
  background: rgba(247, 184, 75, 0.12);
}
.i-tag.risk {
  color: var(--red);
  background: rgba(255, 107, 107, 0.12);
}
.i-tag.idea {
  color: var(--violet);
  background: rgba(139, 124, 246, 0.14);
}
.insight .i-impact {
  margin-left: auto;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--lime);
}
.insight p {
  font-size: 13px;
  color: var(--txt);
  line-height: 1.5;
}
.insight .i-act {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.insight .i-act svg {
  width: 13px;
  height: 13px;
}
.copilot-cta {
  width: 100%;
  margin-top: 6px;
  background: var(--lime);
  color: #0a0f08;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: 0.16s;
}
.copilot-cta:hover {
  box-shadow: var(--shadow-lime);
  transform: translateY(-1px);
}
.copilot-cta svg {
  width: 17px;
  height: 17px;
}

.mod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1180px) {
  .mod-grid {
    grid-template-columns: 1fr;
  }
}
.mod-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: 0.18s;
  position: relative;
  overflow: hidden;
}
.mod-card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
}
.mod-ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 20px;
}
.mod-card h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 7px;
}
.mod-card p {
  color: var(--txt-2);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 18px;
  min-height: 40px;
}
.tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 100px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.tag.ok {
  color: var(--green);
  background: rgba(74, 222, 128, 0.1);
}
.tag.off {
  color: var(--txt-3);
  background: var(--surface-2);
}
.tag.soon {
  color: var(--amber);
  background: rgba(247, 184, 75, 0.1);
}

.stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 70px 30px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
}
.stub .big {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.stub .big svg {
  width: 30px;
  height: 30px;
  color: var(--lime);
}
.stub h2 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 10px;
}
.stub p {
  color: var(--txt-2);
  max-width: 46ch;
  line-height: 1.55;
  margin-bottom: 22px;
}

.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
  text-align: left;
  width: 100%;
  max-width: 620px;
}
.dual .d {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--bg-2);
}
.dual .d b {
  font-family: var(--ff-display);
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.dual .d small {
  color: var(--txt-2);
  font-size: 12.5px;
  line-height: 1.5;
}

.motor-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 6px;
}
@media (max-width: 900px) {
  .motor-flow {
    grid-template-columns: 1fr 1fr;
  }
}
.step {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px 14px;
  background: var(--bg-2);
  position: relative;
}
.step .n {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--lime);
  margin-bottom: 9px;
}
.step b {
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}
.step small {
  font-size: 12px;
  color: var(--txt-2);
  line-height: 1.45;
}

/* ============================================================
   RADAR DE MERCADO
   ============================================================ */
.radar-hero {
  background:
    radial-gradient(
      120% 100% at 0% 0%,
      rgba(200, 246, 93, 0.1),
      transparent 55%
    ),
    radial-gradient(
      120% 100% at 100% 100%,
      rgba(69, 200, 240, 0.08),
      transparent 55%
    ),
    var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 18px;
}
.radar-hero h2 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 6px;
}
.radar-hero p {
  color: var(--txt-2);
  font-size: 13.5px;
  margin-bottom: 18px;
  max-width: 64ch;
  line-height: 1.5;
}
.radar-search {
  display: flex;
  gap: 10px;
  max-width: 720px;
}
.radar-search input {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 15px 17px;
  color: var(--txt);
  font-family: var(--ff-body);
  font-size: 15.5px;
}
.radar-search input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 246, 93, 0.13);
}
.radar-search button {
  background: var(--lime);
  color: #0a0f08;
  border: none;
  border-radius: 12px;
  padding: 0 24px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: 0.16s;
}
.radar-search button:hover {
  box-shadow: var(--shadow-lime);
}
.radar-search button:disabled {
  opacity: 0.6;
  cursor: default;
}
.radar-search button svg {
  width: 17px;
  height: 17px;
}
.radar-ex {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.radar-ex span {
  font-size: 12px;
  color: var(--txt-3);
}
.radar-ex .ex {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--txt-2);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 5px 12px;
  cursor: pointer;
  transition: 0.14s;
}
.radar-ex .ex:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.radar-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--txt-2);
  font-size: 14px;
  padding: 30px;
}
.radar-loading .orb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--surface-3);
  border-top-color: var(--lime);
  animation: spin 0.8s linear infinite;
}

.intent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 980px) {
  .intent-grid {
    grid-template-columns: 1fr;
  }
}
.intent-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.intent-card .ic-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.intent-card .ic-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.intent-card h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 15px;
}
.intent-card .ic-count {
  margin-left: auto;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--txt-3);
}
.intent-card .ic-sub {
  font-size: 11.5px;
  color: var(--txt-3);
  margin-top: 2px;
}
.term-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.term-chip {
  font-size: 13px;
  color: var(--txt);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 11px;
  transition: 0.14s;
  cursor: default;
}
.term-chip:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}
.q-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.q-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--txt);
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.q-item .qm {
  color: var(--cyan);
  font-family: var(--ff-mono);
  font-weight: 700;
}
.angle-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--bg-2);
  margin-bottom: 10px;
}
.angle-card .a-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.angle-card b {
  font-family: var(--ff-display);
  font-size: 14px;
}
.angle-card .a-canal {
  margin-left: auto;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  color: var(--txt-3);
}
.angle-card p {
  font-size: 13px;
  color: var(--txt-2);
  line-height: 1.5;
}

/* abrangência */
.scope-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 620px;
}
@media (max-width: 720px) {
  .scope-row {
    grid-template-columns: 1fr 1fr;
  }
}
.scope-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  transition: 0.14s;
  font-family: var(--ff-body);
}
.scope-chip b {
  font-size: 14px;
  color: var(--txt);
}
.scope-chip small {
  font-size: 11px;
  color: var(--txt-3);
}
.scope-chip:hover {
  border-color: var(--txt-3);
}
.scope-chip.active {
  border-color: var(--lime);
  background: rgba(200, 246, 93, 0.07);
}
.scope-chip.active b {
  color: var(--lime);
}
.scope-loc {
  margin-top: 12px;
  max-width: 620px;
}
.scope-loc input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 13px 15px;
  color: var(--txt);
  font-family: var(--ff-body);
  font-size: 14.5px;
}
.scope-loc input:focus {
  outline: none;
  border-color: var(--lime);
}

/* banner IA + botão */
.ia-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  background:
    radial-gradient(
      120% 100% at 100% 0%,
      rgba(139, 124, 246, 0.14),
      transparent 55%
    ),
    var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.ia-banner-txt b {
  font-family: var(--ff-display);
  font-size: 16px;
  display: block;
  margin-bottom: 3px;
}
.ia-banner-txt small {
  font-size: 12.5px;
  color: var(--txt-2);
  line-height: 1.45;
}
.ia-cta {
  margin-left: auto;
  flex-shrink: 0;
  background: var(--lime);
  color: #0a0f08;
  border: none;
  border-radius: 12px;
  padding: 13px 18px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.16s;
}
.ia-cta:hover {
  box-shadow: var(--shadow-lime);
  transform: translateY(-1px);
}
.ia-cta svg {
  width: 16px;
  height: 16px;
}
.ia-off {
  margin-left: auto;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--amber);
  border: 1px dashed rgba(247, 184, 75, 0.4);
  border-radius: 100px;
  padding: 8px 14px;
}
.ia-result {
  border-color: var(--line-2);
  margin-bottom: 16px;
}
.ia-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 980px) {
  .ia-cols {
    grid-template-columns: 1fr;
  }
}
.grp-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 14px;
  background: var(--bg-2);
  margin-bottom: 10px;
}
.grp-card b {
  font-family: var(--ff-display);
  font-size: 13.5px;
}
.term-chip.neg {
  color: var(--red);
  border-color: rgba(255, 107, 107, 0.28);
  background: rgba(255, 107, 107, 0.07);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.reveal {
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.reveal:nth-child(2) {
  animation-delay: 0.04s;
}
.reveal:nth-child(3) {
  animation-delay: 0.08s;
}
.reveal:nth-child(4) {
  animation-delay: 0.12s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (max-width: 860px) {
  .login-body {
    grid-template-columns: 1fr;
  }
  .login-stage {
    display: none;
  }
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
}
