:root {
  color-scheme: light;
  --bg-grafik: #f4f7fb;
  --bg-grafik-accent: #eaf4fb;
  --card-grafik: #ffffff;
  --text-grafik: #111827;
  --muted-grafik: #6b7280;
  --border-grafik: #e4ebf4;
  --accent-grafik: #0f766e;
  --accent-grafik-strong: #0ea5e9;
  --accent-grafik-soft: #e6f4ff;
  --shadow-grafik: 0 22px 50px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

.body-grafik {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text-grafik);
  background: radial-gradient(circle at top, #f5fbff 0%, transparent 52%),
    linear-gradient(135deg, var(--bg-grafik), var(--bg-grafik-accent));
  width: 100%;
  position: relative;
}

.body-grafik::before,
.body-grafik::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15), transparent 70%);
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
}

/* .body-grafik::before {
  top: -120px;
  right: -80px;
} */

/* .body-grafik::after {
  bottom: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.12), transparent 70%);
} */

.page-grafik {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.hero-grafik {
  max-width: 680px;
  margin-bottom: 40px;
}

.eyebrow-grafik {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--muted-grafik);
  margin: 0 0 12px;
}

.grafik-title {
  font-size: clamp(32px, 4vw, 48px);
  font-family: "IBM Plex Mono", "Space Grotesk", monospace;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.lead-grafik {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted-grafik);
  margin: 0;
}

.layout-grafik {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.panel-grafik {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-grafik,
.chart-card-grafik {
  background: var(--card-grafik);
  border: 1px solid var(--border-grafik);
  border-radius: 24px;
  box-shadow: var(--shadow-grafik);
  padding: 26px;
}

.chart-card-grafik {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.label-grafik {
  font-size: 16px;
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.input-row-grafik {
  position: relative;
}

.currency-grafik {
  position: absolute;
  left: 16px;
  top: 53%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--muted-grafik);
}

#amount {
  width: 100%;
  padding: 16px 16px 16px 60px;
  border-radius: 16px;
  border: 1px solid #e6eef8;
  font-size: 22px;
  font-weight: 600;
  font-family: "IBM Plex Mono", "Space Grotesk", monospace;
  background: #f9fbff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

#amount:focus {
  outline: 2px solid rgba(14, 165, 233, 0.4);
  border-color: var(--accent-grafik-strong);
}

.helper-grafik {
  min-height: 18px;
  margin: 8px 0 0;
  color: #dc2626;
  font-size: 13px;
}

.primary-grafik {
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(120deg, #2b78ff, #00c26f);
  color: #ffffff;
  font-weight: 600;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-grafik:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.primary-grafik:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(14, 165, 233, 0.25);
}

.stat-label-grafik {
  font-size: 14px;
  color: var(--muted-grafik);
}

.stat-value-grafik {
  font-size: 24px;
  font-weight: 700;
  font-family: "IBM Plex Mono", "Space Grotesk", monospace;
}

.stat-value-grafik.accent {
  color: #0f9f6e;
}

.chart-head-grafik {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chart-head-grafik h2 {
  margin: 0 0 6px;
  font-size: 28px;
  font-family: "IBM Plex Mono", "Space Grotesk", monospace;
}

.muted-grafik {
  margin: 0;
  color: var(--muted-grafik);
  font-size: 14px;
}

.axis-note-grafik {
  margin-top: 6px;
  font-size: 12px;
  color: #9ca3af;
}

.pill-grafik {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent-grafik-strong);
  font-weight: 600;
  font-size: 14px;
}

.chart-wrap-grafik {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid #edf2f7;
  position: relative;
}

#chart-grafik {
  width: 100%;
  height: 320px;
  display: block;
}

.grid-line {
  stroke: #dfe7f2;
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.axis-line {
  stroke: #3f3f46;
  stroke-width: 1.5;
}

.axis-tick {
  stroke: #3f3f46;
  stroke-width: 1;
}

.axis-text {
  fill: #6b7280;
  font-size: 12px;
  font-family: "IBM Plex Mono", "Space Grotesk", monospace;
}

.active-line {
  stroke: #cbd5e1;
  stroke-width: 1.5;
}

.chart-line {
  stroke-width: 4;
  stroke-linecap: round;
}

.chart-dot {
  fill: #0ea5e9;
  stroke: #ffffff;
  stroke-width: 3;
}

#tooltipBg {
  fill: #ffffff;
  stroke: #e6eef8;
}

.tooltip-day {
  fill: #111827;
  font-size: 12px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  text-anchor: middle;
}

.tooltip-value {
  fill: #0ea5e9;
  font-size: 20px;
  font-weight: 700;
  font-family: "IBM Plex Mono", "Space Grotesk", monospace;
  text-anchor: middle;
}

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

.progress-track {
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0ea5e9, #14b8a6);
  transition: width 0.3s ease;
}

.result-box {
  margin-top: 16px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid #e5edf5;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.result-highlight {
  border-radius: 18px;
  border: 2px solid #bcd6ff;
  background: linear-gradient(135deg, #f0f7ff, #f6fffb);
  padding: 18px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.result-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-icon {
  font-size: 18px;
}

.result-amount {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: #1d4ed8;
  font-family: "IBM Plex Mono", "Space Grotesk", monospace;
}
@media all and (max-width: 767px) {
  .result-amount {
    font-size: 25px;
  }
  .stat-value-grafik {
    font-size: 20px;
  }
}
.result-subtitle {
  margin: 0;
  color: #2563eb;
  font-size: 14px;
}

.result-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 20px 0;
}

.result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.result-row + .result-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-grafik);
}

.hidden {
  display: none;
}

@media (max-width: 720px) {
  .page-grafik {
    padding: 32px 16px 56px;
  }

  .chart-card-grafik {
    padding: 20px;
  }
}
.btn-icon-grafik {
  font-size: 18px;
}
