.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 30, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  animation: fadeIn 0.18s ease;
}

.shell {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2001;
  width: 94vw;
  max-height: 88vh;
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  box-shadow:
    0 32px 64px -24px rgba(8, 14, 30, 0.45),
    0 12px 24px -12px rgba(8, 14, 30, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: rise 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes rise {
  from { opacity: 0; transform: translate(-50%, -45%) scale(0.985); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: 24px 28px 20px;
  color: #fff;
  background: var(--primary);
  overflow: hidden;
  flex-shrink: 0;
}

.dots {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom right, rgba(0, 0, 0, 0.9), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom right, rgba(0, 0, 0, 0.9), transparent 70%);
  pointer-events: none;
}

.heroRow {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.heroLeft {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.heroIcon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.06)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20.9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 8px 24px -10px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.heroText {
  min-width: 0;
}

.eyebrow {
  font-size: 11.6px;
  font-weight: 700;
  letter-spacing: 0.18em;
  opacity: 0.78;
  text-transform: uppercase;
}

.title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 22px;
  margin: 1px 0 0;
  color: #fff;
}

.subtitle {
  font-size: 13.8px;
  opacity: 0.78;
  margin-top: 3px;
  font-weight: 400;
}

.closeBtn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}
.closeBtn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ----- Stat strip in hero ----- */
.statStrip {
  position: relative;
  margin-top: 18px;
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.heroStat {
  flex: 1;
  padding: 2px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.heroStatLabel {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  opacity: 0.72;
  text-transform: uppercase;
}

.heroStatValue {
  font-size: 19.8px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

/* ----- Body ----- */
.body {
  overflow-y: auto;
  background: var(--surface-alt);
  flex: 1 1 auto;
  min-height: 0;
}
.bodyPadded {
  padding: 22px 28px 26px;
}
