/* Radar Insights browser mockup (strategy graphic) */

.radar-ai-graphic {
  display: grid;
  overflow: hidden;
  width: 100%;
  margin-bottom: 2.5rem;
  border-radius: 8px;
  aspect-ratio: 1232 / 608;
}

.radar-ai-graphic > * {
  grid-area: 1 / 1;
}

.radar-ai-graphic__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.radar-ai-graphic__foreground {
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  container-type: inline-size;
  min-height: 0;
  padding-block: 3% 0;
  padding-inline: 1rem;
}

.rsg-browser {
  --rsg-magenta: #ff5996;
  position: relative;
  width: 1024px;
  height: 657px;
  transform-origin: top center;
}

@container (max-width: 1024px) {
  .rsg-browser {
    transform: scale(calc(100cqw / 1024px));
  }
}

.rsg-browser__window {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  outline: 1px solid rgba(10, 37, 64, 0.08);
  background: rgba(248, 250, 253, 0.45);
  box-shadow: 0 15px 35px rgba(10, 37, 64, 0.08);
  backdrop-filter: blur(12px);
}

.rsg-browser__top-bar {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  gap: 14px;
  align-items: center;
  height: 35px;
  padding: 2px 20px;
}

.rsg-browser__dots {
  display: block;
}

.rsg-browser__url-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: min(262px, 100%);
  height: 20px;
  margin-inline: auto;
  padding: 2px 8px;
  border-radius: 16px;
  outline: 1px solid rgba(10, 37, 64, 0.08);
  background: rgba(255, 255, 255, 0.38);
  color: #697386;
  font-size: 9px;
  line-height: 1;
}

.rsg-browser__page {
  position: absolute;
  inset: 35px 6px 6px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 6px rgba(10, 37, 64, 0.06);
}

.rsg__content {
  height: 100%;
  padding: 28px 48px 0;
}

.rsg__page-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rsg__page-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: #0a2540;
}

.rsg__tabs {
  display: flex;
  gap: 19px;
  border-bottom: 1px solid #e3e8ee;
}

.rsg__tab {
  padding-block: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #697386;
}

.rsg__tab--active {
  border-bottom: 1px solid #635bff;
  color: #635bff;
}

.rsg__body {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.rsg__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.rsg__section-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #0a2540;
}

.rsg__assistant-cards {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.rsg__alert-card {
  width: 290px;
  padding: 12px;
  border: 1px solid #e3e8ee;
  border-radius: 4px;
  background: #fff;
}

.rsg__alert-header {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rsg__alert-icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.rsg__alert-label {
  font-size: 10px;
  line-height: 1.3;
  color: #697386;
}

.rsg__alert-body {
  margin-top: 12px;
}

.rsg__alert-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #0a2540;
}

.rsg__alert-desc {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.3;
  color: #697386;
}

.rsg__alert-metric {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 16px;
}

.rsg__alert-amount,
.rsg__insight-amount {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #0a2540;
  font-variant-numeric: tabular-nums;
}

.rsg__alert-change,
.rsg__insight-change {
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: -0.002em;
  color: var(--rsg-magenta);
  font-variant-numeric: tabular-nums;
}

.rsg__insights-section {
  display: block;
}

.rsg__insight-cards {
  display: flex;
  gap: 12px;
  margin-top: 9px;
}

.rsg__insight-card {
  display: flex;
  flex-direction: column;
  width: 290px;
  height: 261px;
  padding: 12px;
  border: 1px solid #e3e8ee;
  border-radius: 4px;
  background: #fff;
}

.rsg__insight-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #0a2540;
}

.rsg__insight-desc {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.3;
  color: #697386;
}

.rsg__insight-metric {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 16px;
}

.rsg__chart {
  position: relative;
  display: flex;
  flex: 1;
  max-height: 130px;
  margin-top: 16px;
}

.rsg__chart-area {
  position: relative;
  flex: 1;
}

.rsg__chart-gridlines {
  position: absolute;
  inset: 5px 0 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rsg__chart-gridline {
  width: 100%;
  height: 1px;
  background: #e3e8ee;
}

.rsg__chart-line {
  position: absolute;
  inset: 5px 0 25px;
  z-index: 1;
}

.rsg__chart-line svg {
  display: block;
  width: 100%;
  height: 100%;
}

.rsg__chart-line path:last-of-type {
  stroke: var(--rsg-magenta);
  stroke-width: 2.5;
}

.rsg__chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  min-width: 28px;
  padding-top: 2px;
  padding-bottom: 25px;
  padding-left: 6px;
}

.rsg__chart-y-label {
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
  color: #697386;
  font-variant-numeric: tabular-nums;
}

.rsg__sidebar {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 24px;
  width: 229px;
  padding-right: 20px;
}

.rsg__fraud-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rsg__fraud-pill-wrap {
  position: relative;
  width: 229px;
}

.rsg__fraud-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 221px;
  height: 34px;
  border-radius: 778px;
  background: linear-gradient(90deg, #864cff, #5e4cfe, #564dfe);
  opacity: 0.35;
  filter: blur(6px);
}

.rsg__fraud-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 6px 12px 6px 9px;
  border: 1px solid #e0e7ff;
  border-radius: 778px;
  background: #fff;
}

.rsg__fraud-pill-icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.rsg__fraud-pill-text {
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #0a2540;
}

.rsg__reco-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rsg__notification {
  width: 228px;
  padding: 12px;
  border-radius: 4px;
  background: #f6f9fc;
}

.rsg__notification-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0a2540;
}

.rsg__notification-subtitle {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: -0.002em;
  color: #0a2540;
}

.rsg__notification-desc {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #697386;
}

.rsg__notification-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 3px 6px 4px;
  border: 1px solid #e3e8ee;
  border-radius: 4px;
  background: #fff;
  color: #635bff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 639px) {
  .radar-ai-graphic {
    aspect-ratio: auto;
    min-height: 0;
  }

  .radar-ai-graphic__foreground {
    align-items: stretch;
    padding-block: 4%;
    padding-inline: 0.75rem;
  }

  .rsg-browser {
    width: 100%;
    height: auto;
    transform: none !important;
  }

  .rsg-browser__top-bar {
    display: none;
  }

  .rsg-browser__window {
    position: relative;
    background: transparent;
    outline: none;
    box-shadow: none;
    backdrop-filter: none;
  }

  .rsg-browser__page {
    position: relative;
    inset: auto;
    box-shadow: none;
  }

  .rsg__content {
    padding: 20px 16px;
  }

  .rsg__page-header {
    display: none;
  }

  .rsg__body {
    flex-direction: column;
    gap: 16px;
    margin-top: 0;
  }

  .rsg__assistant-cards,
  .rsg__insight-cards {
    flex-direction: column;
  }

  .rsg__alert-card,
  .rsg__insight-card,
  .rsg__sidebar,
  .rsg__fraud-pill-wrap,
  .rsg__notification {
    width: 100%;
    max-width: none;
  }

  .rsg__insights-section {
    display: none;
  }

  .rsg__reco-section {
    display: none;
  }

  .rsg__sidebar {
    width: 100%;
    padding-right: 0;
  }
}
