/* Hero → live graph gate + interstitial */
.sr-graph-gate-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 36rem;
  margin: 1.15rem auto 0;
  padding: 1rem 1.25rem 1rem 1.1rem;
  border: 1px solid rgba(103, 232, 249, 0.45);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.92), rgba(15, 23, 42, 0.88)),
    radial-gradient(ellipse 120% 80% at 0% 50%, rgba(56, 189, 248, 0.18), transparent 55%);
  color: #f8fafc;
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.12),
    0 12px 40px rgba(2, 6, 23, 0.55),
    0 0 32px rgba(56, 189, 248, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: srGraphGatePulse 2.8s ease-in-out infinite;
}
.sr-graph-gate-btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.7), rgba(253, 224, 71, 0.45), rgba(56, 189, 248, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
}
.sr-graph-gate-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, 0.75);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.25),
    0 18px 48px rgba(2, 6, 23, 0.65),
    0 0 48px rgba(56, 189, 248, 0.22);
}
.sr-graph-gate-btn:active { transform: translateY(0); }
.sr-graph-gate-btn__icon {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.25), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: #67e8f9;
}
.sr-graph-gate-btn__icon svg { width: 1.35rem; height: 1.35rem; }
.sr-graph-gate-btn__copy { flex: 1; min-width: 0; position: relative; z-index: 1; }
.sr-graph-gate-btn__copy strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.sr-graph-gate-btn__copy small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.95);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sr-graph-gate-btn__arrow {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(253, 224, 71, 0.12);
  color: #fde68a;
  animation: srGraphGateBounce 1.6s ease-in-out infinite;
}
@keyframes srGraphGatePulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12), 0 12px 40px rgba(2, 6, 23, 0.55), 0 0 24px rgba(56, 189, 248, 0.1); }
  50% { box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.28), 0 16px 44px rgba(2, 6, 23, 0.6), 0 0 40px rgba(56, 189, 248, 0.22); }
}
@keyframes srGraphGateBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

#spectrogram.sr-graph-blurred .sr-dash-pro-chart-frame {
  filter: blur(10px) saturate(0.75) brightness(0.65);
  transform: scale(0.995);
  transition: filter 0.45s ease, transform 0.45s ease;
}
#spectrogram.sr-graph-blurred::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(2, 6, 23, 0.35);
  pointer-events: none;
  z-index: 2;
}
#sr-live-graph-panel { position: relative; }

.sr-graph-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 99992;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.sr-graph-gate-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.sr-graph-gate-modal__card {
  width: min(100%, 420px);
  max-height: min(92vh, 640px);
  overflow: auto;
  border-radius: 1.25rem;
  border: 1px solid rgba(103, 232, 249, 0.35);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(8, 47, 73, 0.95));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(56, 189, 248, 0.15);
  padding: 1.25rem 1.25rem 1.1rem;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.sr-graph-gate-modal.is-open .sr-graph-gate-modal__card {
  transform: translateY(0) scale(1);
}
.sr-graph-gate-modal__head {
  text-align: center;
  margin-bottom: 0.85rem;
}
.sr-graph-gate-modal__kicker {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #67e8f9;
  margin-bottom: 0.35rem;
}
.sr-graph-gate-modal__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.4;
  margin: 0;
}
.sr-graph-gate-modal__ad {
  min-height: 260px;
  border-radius: 0.85rem;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.45);
  padding: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.sr-graph-gate-modal__ad-label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.7);
  margin: 0 0 0.5rem;
  text-align: center;
}
.sr-graph-gate-modal__ad-slot {
  flex: 1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sr-graph-gate-modal__cta {
  width: 100%;
  border: none;
  border-radius: 0.85rem;
  padding: 0.95rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  background: linear-gradient(135deg, #fde68a, #fbbf24 45%, #67e8f9);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sr-graph-gate-modal__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(251, 191, 36, 0.35);
}
.sr-graph-gate-modal__hint {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.75);
}

@media (max-width: 640px) {
  .sr-graph-gate-btn { padding: 0.9rem 1rem; gap: 0.75rem; }
  .sr-graph-gate-btn__copy strong { font-size: 0.9rem; }
}


#spectrogram.sr-graph-blurred,
#spectrogram.sr-graph-blurred .sr-prism-spectro-frame,
#spectrogram.sr-graph-blurred .sr-prism-spectro-frame img {
  filter: blur(12px) saturate(0.7) brightness(0.55);
  transition: filter 0.45s ease;
}
#spectrogram.sr-graph-blurred {
  position: relative;
}
#spectrogram.sr-graph-blurred::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(2, 6, 23, 0.42);
  pointer-events: none;
  z-index: 4;
}
.sr-graph-gate-modal__ad-slot {
  min-height: 300px !important;
  width: 100%;
  overflow: visible;
}
.sr-graph-gate-native-root {
  width: 100%;
  min-height: 280px;
  display: block;
}
.sr-graph-gate-native-root iframe,
.sr-graph-gate-native-root a,
.sr-graph-gate-native-root img {
  max-width: 100% !important;
  margin: 0 auto;
}
html.sr-graph-gate-open { overflow: hidden; }

.sr-graph-gate-modal__ad-slot {
  min-height: 300px !important;
  display: block !important;
  visibility: visible !important;
}
.sr-graph-gate-native-root {
  min-height: 280px !important;
  width: 100% !important;
  display: block !important;
  visibility: visible !important;
}
.sr-graph-gate-modal.is-open .sr-graph-gate-modal__ad {
  display: block !important;
  visibility: visible !important;
}
