.adtech-shell {
  background: radial-gradient(140% 140% at 8% 10%, rgba(37, 99, 235, 0.22), rgba(11, 16, 33, 0.95)),
              linear-gradient(135deg, #0b1021 0%, #0b132a 45%, #0b1021 100%);
  color: #e5edff;
  padding: 1px 0;
}

.glass-card {
  backdrop-filter: blur(10px);
  background: rgba(16, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border-radius: 24px;
}

.adtech-shell a {
  color: #e5edff;
}

.adtech-shell .text-slate-900,
.adtech-shell .text-slate-800,
.adtech-shell .text-slate-700,
.adtech-shell .text-slate-600,
.adtech-shell .text-slate-500 {
  color: #e9eefc !important;
}

.adtech-shell .bg-white\/80,
.adtech-shell .bg-white\/90 {
  background: rgba(28, 38, 60, 0.8) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

/* Story flow */
.flow-wrap {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 640px) {
  .flow-wrap {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.flow-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(28, 38, 60, 0.7);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.flow-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.flow-icon {
  min-width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #0b1021;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.flow-diagram {
  overflow-x: auto;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 12px;
}

.flow-diagram svg {
  min-width: 720px;
  width: 100%;
  height: auto;
}

/* Mobile fine-tuning */
@media (max-width: 640px) {
  .glass-card {
    padding: 16px;
  }
  .flow-card {
    padding: 12px;
  }
  .flow-icon {
    min-width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .flow-diagram {
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 14px;
  }
  .flow-diagram svg {
    min-width: 580px;
  }
}

/* Metric cards */
.metric-card {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(145deg, rgba(28, 38, 60, 0.85), rgba(15, 23, 42, 0.9));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.mini-chart {
  display: grid;
  grid-auto-flow: column;
  align-items: end;
  gap: 6px;
  height: 60px;
  margin-top: 10px;
}

.mini-chart span {
  display: block;
  width: 14px;
  border-radius: 6px 6px 4px 4px;
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
}

.mini-chart span:nth-child(2n) {
  background: linear-gradient(180deg, #a78bfa, #7c3aed);
}

.pill,
.btn-solid,
.btn-ghost {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pill:hover,
.btn-solid:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
}
}
