:root {
  --acid: #caff00;
  --acid-dim: rgba(202, 255, 0, 0.1);
  --acid-border: rgba(202, 255, 0, 0.28);
  --plasma: #7b4dff;
  --pink: #ff2d78;
  --teal: #00ffc2;
  --orange: #ff9500;
  --bg: #08080e;
  --surface: #161624;
  --panel: #1e1e30;
  --raised: #27273e;
  --b0: rgba(255, 255, 255, 0.06);
  --b1: rgba(255, 255, 255, 0.13);
  --b2: rgba(255, 255, 255, 0.4);
  --hi: #ffffff;
  --mid: #d4d4e8;
  --lo: #9999bb;
  --faint: #66668a;
  --f-d: "Orbitron", monospace;
  --f-m: "Share Tech Mono", monospace;
  --f-b: "Exo 2", sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--f-b);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
  color: var(--hi);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.025) 3px,
    rgba(0, 0, 0, 0.025) 4px
  );
}

.widget {
  width: 680px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--b1);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}

/* header */
.hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.hdr__left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.token-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
}
.hdr__sym {
  font-family: var(--f-d);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
}
.hdr__name {
  font-family: var(--f-m);
  font-size: 0.75rem;
  color: var(--mid);
  margin-top: 4px;
}
.hdr__right {
  text-align: right;
}
.price {
  font-family: var(--f-d);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: color 300ms;
}
.delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: var(--f-m);
  font-size: 0.8125rem;
  font-weight: 700;
  transition: all 300ms;
}
.delta.up {
  background: var(--acid-dim);
  color: var(--acid);
  border: 1px solid var(--acid-border);
}
.delta.down {
  background: rgba(255, 45, 120, 0.1);
  color: var(--pink);
  border: 1px solid rgba(255, 45, 120, 0.28);
}

/* token tabs */
.token-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tok-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--b1);
  cursor: pointer;
  transition: all 140ms;
  font-family: var(--f-d);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--mid);
  letter-spacing: 0.04em;
}
.tok-tab:hover {
  border-color: var(--b2);
  color: var(--mid);
}
.tok-tab.active {
  background: var(--acid-dim);
  border-color: var(--acid-border);
  color: var(--acid);
}
.tok-tab__icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 900;
}

/* timeframes */
.tf-row {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
}
.tf {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--f-m);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  color: var(--mid);
  background: transparent;
  transition: all 140ms;
}
.tf.active {
  color: var(--acid);
  background: var(--acid-dim);
  border-color: var(--acid-border);
}
.tf:hover:not(.active) {
  color: var(--mid);
}

/* chart */
.chart-wrap {
  height: 200px;
  position: relative;
  margin-bottom: 18px;
  cursor: crosshair;
  overflow: hidden;
  border-radius: 8px;
}
#chartSvg {
  width: 100%;
  height: 100%;
}
.crosshair-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  opacity: 0;
  transition: opacity 100ms;
}
.crosshair-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--acid);
  border: 2px solid var(--bg);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(202, 255, 0, 0.6);
  transition: opacity 100ms;
}
.tooltip {
  position: absolute;
  background: var(--panel);
  border: 1px solid var(--b2);
  border-radius: 10px;
  padding: 8px 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 100ms;
  white-space: nowrap;
  z-index: 10;
}
.tooltip__price {
  font-family: var(--f-d);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--hi);
}
.tooltip__time {
  font-family: var(--f-m);
  font-size: 0.6875rem;
  color: var(--lo);
  margin-top: 3px;
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--b0);
}
.stat__label {
  font-family: var(--f-m);
  font-size: 0.6875rem;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.stat__val {
  font-family: var(--f-m);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--mid);
}
.stat__val.up {
  color: var(--acid);
}
.stat__val.down {
  color: var(--pink);
}

/* live dot */
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(0, 255, 194, 0.7);
  animation: pulse-d 1.8s ease-in-out infinite;
  margin-right: 6px;
  vertical-align: middle;
}
@keyframes pulse-d {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ── PROFILE FOOTER ── */
.profile-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  background: linear-gradient(
    to top,
    rgba(8, 8, 14, 0.98) 0%,
    rgba(8, 8, 14, 0.85) 100%
  );
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(202, 255, 0, 0.1);
  z-index: 9000;
}
.profile-footer__label {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.6875rem;
  color: #9999bb;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: 4px;
}
.profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  font-family: "Orbitron", monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 140ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 140ms;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.profile-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 55%
  );
  pointer-events: none;
}
.profile-btn:hover {
  transform: translateY(-2px);
}
.profile-btn:active {
  transform: scale(0.97);
}
.profile-btn--codepen {
  background: #caff00;
  color: #08080e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.profile-btn--codepen:hover {
  box-shadow: 0 0 24px rgba(202, 255, 0, 0.55), 0 0 60px rgba(202, 255, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.profile-btn--github {
  background: transparent;
  color: #d4d4e8;
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.profile-btn--github:hover {
  border-color: #caff00;
  color: #caff00;
  box-shadow: 0 0 16px rgba(202, 255, 0, 0.15);
}
.profile-btn__icon {
  font-size: 14px;
  line-height: 1;
}
/* push page content up so footer doesn't overlap */
body {
  padding-bottom: 64px !important;
}

/* ── REACT NOTICE BANNER ── */
.react-notice {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9001;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #0f0f1a;
  border: 1px solid rgba(123, 77, 255, 0.45);
  border-radius: 16px;
  box-shadow: 0 0 32px rgba(123, 77, 255, 0.18), 0 8px 32px rgba(0, 0, 0, 0.6);
  max-width: 260px;
  animation: notice-in 500ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 800ms;
}
@keyframes notice-in {
  from {
    opacity: 0;
    transform: translateX(20px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
.react-notice__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(123, 77, 255, 0.18);
  border: 1px solid rgba(123, 77, 255, 0.4);
  display: grid;
  place-items: center;
  font-size: 16px;
}
.react-notice__body {
  flex: 1;
  min-width: 0;
}
.react-notice__title {
  font-family: "Orbitron", monospace;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b89eff;
  margin-bottom: 5px;
}
.react-notice__text {
  font-family: "Exo 2", sans-serif;
  font-size: 0.8125rem;
  color: #d4d4e8;
  line-height: 1.55;
  margin-bottom: 10px;
}
.react-notice__text strong {
  color: #ffffff;
  font-weight: 700;
}
.react-notice__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #caff00;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: gap 140ms;
}
.react-notice__link:hover {
  gap: 10px;
}
.react-notice__link svg {
  flex-shrink: 0;
}
.react-notice__close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #66668a;
  font-size: 11px;
  line-height: 1;
  transition: color 140ms;
  padding: 2px;
}
.react-notice__close:hover {
  color: #d4d4e8;
}