.native-chart {
  min-height: 470px;
  padding: 22px 20px 14px;
  position: relative;
  color: #f7f7f3;
  background:
    radial-gradient(520px 240px at 78% 12%, rgba(243, 186, 47, .07), transparent 68%),
    #080808;
}

.native-chart-range {
  margin-top: 14px;
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  background: rgba(255, 255, 255, .02);
}

.native-chart-range button {
  min-width: 40px;
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: #7c7c76;
  background: transparent;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  transition: color .16s ease, background .16s ease;
}

.native-chart-range button:hover { color: #d5d5d0; }
.native-chart-range button.active { color: #080808; background: #f3ba2f; }

.chart-cursor-line { stroke: rgba(243, 186, 47, .45); stroke-width: 1.4; stroke-dasharray: 3 4; }
.chart-cursor-dot { fill: #fff; stroke: #f3ba2f; stroke-width: 3; filter: drop-shadow(0 0 8px rgba(243, 186, 47, .55)); }

.native-chart-tooltip {
  position: absolute;
  z-index: 3;
  padding: 8px 11px;
  transform: translate(-50%, calc(-100% - 14px));
  pointer-events: none;
  border: 1px solid rgba(243, 186, 47, .28);
  border-radius: 10px;
  background: rgba(10, 10, 9, .96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
  white-space: nowrap;
}

.native-chart-tooltip strong { display: block; color: #f4f4ef; font-size: 12px; letter-spacing: -.02em; }
.native-chart-tooltip span { display: block; margin-top: 2px; color: #948e73; font-size: 8px; font-weight: 800; letter-spacing: .06em; }

.native-chart-head,
.native-chart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.native-chart-head > div:first-child span {
  display: block;
  margin-bottom: 8px;
  color: #777771;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .13em;
}

.native-chart-head strong {
  display: block;
  color: #f4f4ef;
  font-size: clamp(25px, 3vw, 39px);
  line-height: 1;
  letter-spacing: -.055em;
}

.native-chart-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #58d68d;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .11em;
}

.native-chart-live i,
.native-chart-loading i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58d68d;
  box-shadow: 0 0 14px rgba(88, 214, 141, .62);
}

.native-chart-svg {
  display: block;
  width: 100%;
  height: 350px;
  margin-top: 12px;
  overflow: visible;
}

.chart-grid-line { stroke: rgba(255, 255, 255, .065); stroke-width: 1; }
.chart-axis-label { fill: #686863; font-size: 18px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.chart-area { fill: url(#bnbullChartFill); }
.chart-line { fill: none; stroke: #f3ba2f; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(243, 186, 47, .18)); }
.chart-last-point { fill: #f3ba2f; stroke: #080808; stroke-width: 4; filter: drop-shadow(0 0 9px rgba(243, 186, 47, .5)); }

.native-chart-foot {
  padding: 4px 2px 0 88px;
  color: #686863;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
}

.native-chart-foot span:nth-child(2) { color: #9d9272; }

.native-chart-loading,
.native-chart-error {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 13px;
  color: #777771;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .13em;
  text-align: center;
}

.native-chart-loading i { background: #f3ba2f; box-shadow: 0 0 18px rgba(243, 186, 47, .65); animation: chartPulse 1.2s ease-in-out infinite; }
.native-chart-error strong { color: #a3a39c; }
.native-chart-error span { color: #666660; font-weight: 700; letter-spacing: .04em; }

.hero-contract {
  max-width: min(720px, calc(100% - 24px));
  margin: 18px auto 0;
  padding: 8px 10px 8px 12px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 11px;
  color: #666660;
  background: rgba(255, 255, 255, .018);
  font-size: 8px;
  line-height: 1.3;
}

.hero-contract > span { flex: 0 0 auto; color: #91866a; font-weight: 950; letter-spacing: .12em; }
.hero-contract code { overflow: hidden; color: #888881; font: 700 8px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.copy-contract { flex: 0 0 auto; padding: 6px 8px; border: 1px solid rgba(243, 186, 47, .15); border-radius: 7px; color: #b39449; background: rgba(243, 186, 47, .035); font-size: 7px; font-weight: 950; letter-spacing: .08em; }

@media (max-width: 640px) {
  .native-chart { min-height: 390px; padding: 18px 12px 12px; }
  .native-chart-svg { height: 285px; margin-top: 8px; }
  .chart-axis-label { font-size: 22px; }
  .native-chart-foot { padding-left: 70px; }
  .native-chart-loading, .native-chart-error { min-height: 350px; }
  .hero-contract { gap: 7px; }
  .hero-contract code { max-width: 205px; }
}

@media (max-width: 390px) {
  .hero-contract code { max-width: 150px; }
  .native-chart-live { font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .native-chart-loading i { animation: none; }
}

@keyframes chartPulse { 50% { opacity: .35; transform: scale(.72); } }
