.cryptonisation-btc-halving {
  --cbh-bg: #ffffff;
  --cbh-section-bg: #f9fbff;
  --cbh-card-bg: #ffffff;
  --cbh-text: #292b2d;
  --cbh-title: #1f2937;
  --cbh-muted: #6b7280;
  --cbh-meta: #4b5563;
  --cbh-border: #e9eef0;
  --cbh-accent: #2563eb;
  --cbh-accent-dark: #111827;
  --cbh-accent-soft: #e4ecf8;
  --cbh-positive: #15803d;
  --cbh-negative: #b91c1c;
  --cbh-shadow: none;
  background: var(--cbh-bg);
  border: 1px solid #e8ecf3;
  border-radius: 12px;
  color: var(--cbh-text);
  margin: 16px 0;
  padding: 16px;
}

.cryptonisation-btc-halving__section + .cryptonisation-btc-halving__section {
  margin-top: 24px;
}

.cryptonisation-btc-halving h2 {
  color: var(--cbh-title);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 12px;
}

.cryptonisation-btc-halving__notice,
.cryptonisation-btc-halving__noscript,
.cryptonisation-btc-halving__chart {
  border: 1px solid #e8ecf3;
  border-radius: 10px;
  color: var(--cbh-muted);
  padding: 12px;
}

.cryptonisation-btc-halving__notice {
  background: #fffbeb;
  color: #92400e;
  font-size: 14px;
  margin-bottom: 12px;
  padding: 10px 12px;
}

.cryptonisation-btc-halving__noscript {
  background: #f9fafb;
}

.cryptonisation-btc-halving__chart {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px dashed #e8ecf3;
  min-height: 340px;
  overflow: hidden;
  position: relative;
  padding: 2px 0 0;
}

.cryptonisation-btc-halving__chart-svg {
  display: block;
  height: 332px;
  width: 100%;
}

.cnbd-chart__empty {
  align-items: center;
  color: var(--cbh-muted);
  display: flex;
  inset: 0;
  justify-content: center;
  position: absolute;
}

.cryptonisation-btc-halving__chart-axis {
  stroke: #e1e7f0;
  stroke-width: 1;
}

.cryptonisation-btc-halving__chart-grid {
  stroke: #e1e7f0;
  stroke-width: 1;
}

.cryptonisation-btc-halving__chart-label {
  fill: var(--cbh-muted);
  font-size: 11px;
}

.cryptonisation-btc-halving__chart-line {
  fill: none;
  stroke: var(--cbh-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.cryptonisation-btc-halving__chart-point {
  cursor: pointer;
  fill: var(--cbh-accent);
  stroke: #fff;
  stroke-width: 1.5;
}

.cryptonisation-btc-halving__chart-tooltip {
  background: var(--cbh-accent-dark);
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  opacity: 0;
  line-height: 1.3;
  max-width: none;
  overflow-wrap: normal;
  pointer-events: none;
  position: absolute;
  left: 0;
  white-space: nowrap;
  width: fit-content;
  padding: 6px 8px;
  top: 0;
  transition: opacity 0.18s ease;
}

.cryptonisation-btc-halving__chart-tooltip--visible {
  opacity: 1;
}

.cryptonisation-btc-halving__tooltip-line {
  font-size: 12px;
  font-weight: 400;
}

.cryptonisation-btc-halving__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cryptonisation-btc-halving__card {
  background: var(--cbh-section-bg);
  border: 1px solid #e8ecf3;
  border-radius: 10px;
  min-height: 0;
  padding: 12px;
}

.cryptonisation-btc-halving__card--wide {
  grid-column: 1 / -1;
}

.cryptonisation-btc-halving__label {
  color: #1f2937;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
}

.cryptonisation-btc-halving__value {
  color: #1f2937;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 150%;
}

.cryptonisation-btc-halving__progress {
  border: 1px solid #e8ecf3;
  border-radius: 4px;
  height: 17px;
  margin-top: 10px;
  overflow: hidden;
  position: relative;
}

.cryptonisation-btc-halving__progress::before {
  background: #dfeafe;
  content: "";
  inset: 0;
  position: absolute;
}

.cryptonisation-btc-halving__progress-bar {
  background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: inherit;
  height: 100%;
  position: relative;
  transition: width 0.25s ease;
  width: 0;
  z-index: 1;
}

.cryptonisation-btc-halving__table-wrap {
  border-radius: 0;
  overflow-x: auto;
}

.cryptonisation-btc-halving__table {
  background: var(--cbh-card-bg);
  border: none;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.cryptonisation-btc-halving__table th,
.cryptonisation-btc-halving__table td {
  border: none;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.cryptonisation-btc-halving__table tbody tr + tr td {
  border-top: 1px solid #e9eef0;
}

.cryptonisation-btc-halving__table tbody tr:last-child td {
  border-bottom: 1px solid #e9eef0;
}

.cryptonisation-btc-halving__table th {
  background: #e4ecf8;
  border-bottom: 1px solid #e9eef0;
  color: var(--cbh-text);
  font-size: 16px;
  font-weight: 500;
}

.cryptonisation-btc-halving__date-cell {
  color: var(--cbh-text);
}

.cryptonisation-btc-halving__button {
  background: var(--cbh-accent);
  border: 1px solid #e8ecf3;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin: 16px auto 0;
  padding: 7px 12px;
  transition: opacity 0.18s ease;
}

.cryptonisation-btc-halving__button:hover {
  opacity: 0.9;
}

.cnbd-widget .cryptonisation-btc-halving__section:first-child {
  margin-top: 0;
}

.cryptonisation-btc-halving__error {
  background: #fef2f2;
  border: 1px solid #e8ecf3;
  border-radius: 8px;
  color: var(--cbh-negative);
  margin: 12px 0;
  padding: 12px;
}

@media (max-width: 900px) {
  .cryptonisation-btc-halving__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cryptonisation-btc-halving {
    border-radius: 12px;
    padding: 16px;
  }

  .cryptonisation-btc-halving h2 {
    font-size: 24px;
  }

  .cryptonisation-btc-halving__grid {
    grid-template-columns: 1fr;
  }

  .cryptonisation-btc-halving__chart {
    min-height: 256px;
    padding: 8px 0 10px;
  }

  .cryptonisation-btc-halving__chart-svg {
    height: 256px;
  }

  .cryptonisation-btc-halving__chart-tooltip {
    font-size: 11px;
    padding: 5px 7px;
  }
}
