:root {
  --geo-ink: #141926;
  --geo-muted: #647084;
  --geo-border-strong: #dbe5f2;
  --geo-panel-top: #ffffff;
  --geo-panel-bottom: #f8fbff;
  --geo-blue: #075ce8;
  --geo-blue-soft: rgba(7, 92, 232, 0.12);
  --geo-cyan: #14b8d6;
  --geo-green: #16a56f;
  --geo-green-soft: #e8f8ef;
  --geo-amber: #d98414;
  --geo-red: #c9383e;
  --geo-shadow: 0 14px 32px rgba(20, 35, 62, 0.08);
}

.geo-analytics-panel {
  position: relative;
  border-color: var(--geo-border-strong) !important;
  background:
    linear-gradient(180deg, var(--geo-panel-top), var(--geo-panel-bottom)) !important;
  box-shadow: var(--geo-shadow) !important;
  overflow: hidden;
}

.geo-analytics-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--geo-blue), var(--geo-cyan), var(--geo-green));
  opacity: 0.92;
  pointer-events: none;
}

.geo-analytics-panel h2,
.geo-analytics-panel h3 {
  color: var(--geo-ink) !important;
}

.geo-chart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -10px 0 16px;
  color: var(--geo-muted);
  font-size: 12px;
  line-height: 18px;
}

.geo-chart-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid #e4ebf5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.geo-chart-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--geo-blue);
  box-shadow: 0 0 0 3px var(--geo-blue-soft);
}

.geo-chart-stage {
  position: relative;
  border-color: #dbe4f0 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 249, 255, 0.95)),
    repeating-linear-gradient(0deg, transparent 0, transparent 42px, rgba(100, 112, 132, 0.08) 43px),
    repeating-linear-gradient(90deg, transparent 0, transparent 112px, rgba(100, 112, 132, 0.06) 113px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -34px 80px rgba(7, 92, 232, 0.045);
}

.geo-chart-stage svg {
  overflow: visible;
}

.geo-chart-stage svg polyline,
.geo-chart-stage svg path {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.geo-chart-stage svg [stroke="#0051df"],
.geo-chart-stage svg [stroke="#0051DF"] {
  stroke: var(--geo-blue) !important;
  stroke-width: 2.6 !important;
  filter: drop-shadow(0 5px 8px rgba(7, 92, 232, 0.22));
}

.geo-chart-stage svg [stroke="#8F1D1D"],
.geo-chart-stage svg [stroke="#D87A16"] {
  stroke-width: 1.8 !important;
  opacity: 0.82;
}

.geo-chart-stage svg [stroke="#8F959E"],
.geo-chart-stage svg [stroke="#c3c5d8"],
.geo-chart-stage svg [stroke="#d9d9e5"] {
  stroke: #9aa6b8 !important;
  stroke-width: 1.7 !important;
  opacity: 0.75;
}

.geo-chart-stage svg circle[fill="#0051df"],
.geo-chart-stage svg circle[fill="#0051DF"] {
  fill: #ffffff !important;
  stroke: var(--geo-blue);
  stroke-width: 1.3;
  filter: drop-shadow(0 2px 5px rgba(7, 92, 232, 0.22));
}

.geo-chart-callout {
  position: absolute;
  right: 22px;
  top: 18px;
  z-index: 4;
  max-width: 220px;
  padding: 9px 11px;
  border: 1px solid rgba(7, 92, 232, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #1c3157;
  font-size: 12px;
  line-height: 18px;
  box-shadow: 0 10px 24px rgba(15, 35, 70, 0.10);
  backdrop-filter: blur(6px);
}

.geo-chart-callout strong {
  display: block;
  margin-bottom: 2px;
  color: var(--geo-blue);
  font-size: 12px;
}

.geo-chart-callout::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: -26px;
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, rgba(7, 92, 232, 0.45), rgba(7, 92, 232, 0));
}

.geo-heatmap,
.geo-data-matrix table {
  border-color: #dbe4f0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.geo-heatmap [class*="grid"],
.geo-data-matrix tr {
  transition: background-color 160ms ease, transform 160ms ease;
}

.geo-heatmap [class*="bg-status-success"],
.geo-data-matrix [class*="bg-[#e6f4ea]"],
.geo-data-matrix [class*="text-risk-low"] {
  background: linear-gradient(135deg, #17aa70, #7cd874) !important;
  color: #ffffff !important;
}

.geo-heatmap [class*="bg-risk-high"],
.geo-heatmap [class*="bg-error-container"],
.geo-data-matrix [class*="bg-error-container"] {
  background: linear-gradient(135deg, #a22d35, #d64e4d) !important;
  color: #ffffff !important;
}

.geo-heatmap [class*="bg-risk-medium"],
.geo-data-matrix [class*="bg-[#fff3cd]"] {
  background: linear-gradient(135deg, #df8d24, #f2bd6a) !important;
  color: #ffffff !important;
}

.geo-heatmap [class*="bg-[#e0e0e0]"],
.geo-heatmap [class*="bg-surface-container-highest"] {
  background: linear-gradient(135deg, #edf2f7, #dfe7ef) !important;
  color: #5f6b7a !important;
}

.geo-heatmap [class*="grid"] > div:not(:first-child),
.geo-data-matrix td div {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -10px 22px rgba(0, 0, 0, 0.05);
}

.geo-heatmap [class*="grid"]:hover,
.geo-data-matrix tbody tr:hover {
  background: rgba(7, 92, 232, 0.035) !important;
}

.geo-data-matrix th {
  background: #f3f7fc !important;
  color: #526071 !important;
}

.geo-data-matrix td {
  border-color: #e5ebf3 !important;
}

.geo-analytics-panel .geo-risk-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #e5ebf3;
  background: #f5f8fc;
  color: var(--geo-muted);
  font-size: 12px;
}

.geo-analytics-panel .geo-risk-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.geo-analytics-panel .geo-risk-p0 {
  border-color: rgba(201, 56, 62, 0.2);
  background: #fff1f1;
  color: var(--geo-red);
}

.geo-analytics-panel .geo-risk-p1 {
  border-color: rgba(217, 132, 20, 0.22);
  background: #fff7e8;
  color: var(--geo-amber);
}

.geo-analytics-panel .geo-risk-p2 {
  border-color: rgba(100, 112, 132, 0.18);
  background: #f4f7fb;
  color: #5d6878;
}

.geo-executive-trend {
  padding: 24px 24px 22px !important;
}

.geo-executive-trend .geo-chart-meta {
  margin-bottom: 18px;
}

.geo-trend-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.geo-trend-kpi {
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid #e3ebf6;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.geo-trend-kpi .label {
  color: var(--geo-muted);
  font-size: 12px;
  line-height: 18px;
}

.geo-trend-kpi .value {
  margin-top: 5px;
  color: var(--geo-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 22px;
  line-height: 26px;
  font-weight: 700;
}

.geo-trend-kpi .note {
  margin-left: 7px;
  color: var(--geo-green);
  font-size: 12px;
  font-weight: 600;
}

.geo-executive-stage {
  height: 330px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.97)),
    radial-gradient(circle at 76% 18%, rgba(7, 92, 232, 0.08), transparent 31%),
    repeating-linear-gradient(0deg, transparent 0, transparent 48px, rgba(100, 112, 132, 0.08) 49px) !important;
}

.geo-executive-stage .geo-chart-callout {
  right: 54px;
  top: 42px;
  max-width: 245px;
}

.geo-executive-stage .rank-band-label {
  position: absolute;
  left: 84px;
  z-index: 3;
  color: #7a8494;
  font-size: 12px;
  line-height: 18px;
}

.geo-executive-stage .rank-band-label.p1 { top: 36px; }
.geo-executive-stage .rank-band-label.p3 { top: 144px; }
.geo-executive-stage .rank-band-label.p5 { top: 252px; }

.geo-executive-stage .event-badge {
  position: absolute;
  z-index: 5;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(7, 92, 232, 0.18);
  background: rgba(255, 255, 255, 0.88);
  color: #29446b;
  font-size: 12px;
  line-height: 16px;
  box-shadow: 0 8px 18px rgba(20, 35, 62, 0.08);
}

.geo-executive-stage .event-badge.w3 {
  left: 34%;
  bottom: 52px;
}

.geo-executive-stage .event-badge.w5 {
  left: 62%;
  top: 74px;
}

.geo-executive-stage svg .axis {
  stroke: #cbd6e4;
  stroke-width: 1;
}

.geo-executive-stage svg .grid {
  stroke: #e2e9f2;
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.geo-executive-stage svg .rank-zone {
  opacity: 0.62;
}

.geo-executive-stage svg .fotile-area {
  fill: url(#fotileTrendArea);
}

.geo-executive-stage svg .fotile-line {
  fill: none;
  stroke: var(--geo-blue);
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 9px 13px rgba(7, 92, 232, 0.2));
}

.geo-executive-stage svg .competitor-line {
  fill: none;
  stroke: #9da8b8;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 10 8;
}

.geo-executive-stage svg .bench-line {
  fill: none;
  stroke: #d89a34;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 4 7;
  opacity: 0.8;
}

.geo-executive-stage svg .point {
  fill: #ffffff;
  stroke: var(--geo-blue);
  stroke-width: 3;
}

.geo-executive-stage svg .point-key {
  fill: var(--geo-blue);
  stroke: #ffffff;
  stroke-width: 3;
  filter: drop-shadow(0 5px 10px rgba(7, 92, 232, 0.35));
}

.geo-executive-stage svg text {
  fill: #697587;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.geo-trend-footnote {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  color: var(--geo-muted);
  font-size: 12px;
  line-height: 18px;
}

.geo-trend-footnote strong {
  color: var(--geo-ink);
}
