:root {
  color-scheme: dark;
  --bg: #0b0811;
  --bg-soft: #171022;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f7f0e8;
  --muted: #b9aec3;
  --accent: #f8c35d;
  --accent-2: #ff7b72;
  --accent-3: #6de1c2;
  --danger: #ff9d94;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background:
    radial-gradient(circle at top left, rgba(248, 195, 93, 0.14), transparent 24rem),
    radial-gradient(circle at 80% 10%, rgba(109, 225, 194, 0.15), transparent 22rem),
    linear-gradient(160deg, #120c1d 0%, #0b0811 48%, #0a0f15 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background: transparent;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.032;
  mix-blend-mode: screen;
}

/* ── Global overlays ── */

.unlock-flash {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(248, 195, 93, 0.55), rgba(255, 123, 114, 0.2) 40%, transparent 70%);
  opacity: 0;
}

.gta-gain {
  position: fixed;
  z-index: 9500;
  pointer-events: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(248, 195, 93, 0.7), 2px 3px 0 rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  user-select: none;
  letter-spacing: -0.04em;
}

/* ── Shell & layout ── */

.shell {
  position: relative;
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.34;
  pointer-events: none;
  z-index: 0;
}

.ambient--gold {
  width: 24rem;
  height: 24rem;
  top: -6rem;
  right: -4rem;
  background: rgba(248, 195, 93, 0.28);
}

.ambient--mint {
  width: 20rem;
  height: 20rem;
  bottom: 8rem;
  left: -4rem;
  background: rgba(109, 225, 194, 0.2);
}

.ambient--rose {
  width: 18rem;
  height: 18rem;
  top: 40%;
  right: 18%;
  background: rgba(255, 123, 114, 0.16);
}

/* ── Hero ── */

.hero {
  position: relative;
  z-index: 1;
  padding: 16px 0 28px;
}

.hero__eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.hero h1 {
  margin: 0;
  max-width: 15ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero__lede {
  max-width: 64ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--panel-strong);
  white-space: nowrap;
}

/* ── Layout grid ── */

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.028) 100%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 22px;
  backdrop-filter: blur(24px) saturate(140%);
}

.panel__label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.panel--selector {
  grid-column: span 12;
}

.panel--counter {
  grid-column: span 7;
  transition: box-shadow 400ms ease;
}

.panel--counter.is-spotlit {
  box-shadow: 0 0 0 1px rgba(248, 195, 93, 0.6), 0 0 60px rgba(248, 195, 93, 0.3), 0 0 120px rgba(248, 195, 93, 0.12), var(--shadow);
  border-color: rgba(248, 195, 93, 0.55);
}

.panel--impact {
  grid-column: span 5;
}

.panel--method {
  grid-column: span 12;
}

/* ── Selector step flow ── */

.selector-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}

.selector-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.selector-step__num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--muted);
}

.selector-step.is-active .selector-step__num {
  background: var(--accent);
  color: #1c1204;
  border-color: var(--accent);
}

.selector-step.is-active .selector-step__label {
  color: var(--text);
}

.selector-step__sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.65rem;
  margin: 0 -2px;
}

/* ── Filter bar ── */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}

.filter--wide {
  min-width: min(100%, 420px);
  flex: 1;
}

.filter span {
  color: var(--muted);
  font-size: 0.85rem;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
}

.segmented-control {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.segmented-control__button {
  appearance: none;
  border: 1px solid var(--panel-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 16px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 100ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.segmented-control__button:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 195, 93, 0.4);
  color: var(--text);
}

.segmented-control__button.is-active {
  color: #1c1204;
  background: linear-gradient(135deg, var(--accent), #ffdca1);
  border-color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
}

/* ── Country browser ── */

.country-browser {
  display: grid;
  grid-template-columns: 1fr 1.9fr;
  gap: 16px;
  margin-bottom: 20px;
}

.country-browser__panel {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--panel-strong);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.country-browser__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.country-browser__header span {
  color: var(--muted);
  font-size: 0.82rem;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.country-all-button {
  appearance: none;
  border: 1px solid var(--panel-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 12px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 120ms, color 120ms;
  flex-shrink: 0;
}

.country-all-button:hover {
  border-color: rgba(248, 195, 93, 0.5);
  color: var(--accent);
}

.country-chip-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  max-height: 280px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.country-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  appearance: none;
  border: 1px solid var(--panel-strong);
  border-left: 3px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 100ms ease, border-color 120ms ease, background 120ms ease;
  text-align: left;
}

.country-chip__flag {
  font-size: 1.05rem;
  flex-shrink: 0;
  line-height: 1;
}

.country-chip__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
}

.country-chip__indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 123, 114, 0.6);
  flex-shrink: 0;
}

.country-chip.has-live .country-chip__indicator {
  background: var(--accent-3);
  box-shadow: 0 0 5px rgba(109, 225, 194, 0.5);
}

.country-chip__count {
  color: var(--muted);
  font-size: 0.78rem;
  font-family: "IBM Plex Mono", monospace;
  flex-shrink: 0;
}

.country-chip.is-active {
  background: linear-gradient(90deg, rgba(248, 195, 93, 0.15), rgba(255, 123, 114, 0.06));
  border-color: rgba(248, 195, 93, 0.6);
  border-left-color: var(--accent);
}

.country-chip.is-active .country-chip__name {
  font-weight: 600;
  color: var(--accent);
}

.country-chip:hover:not(.is-active) {
  border-color: rgba(248, 195, 93, 0.32);
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.05);
}

/* ── World map ── */

.country-map {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(109, 225, 194, 0.04), transparent 50%),
    radial-gradient(ellipse at 75% 40%, rgba(248, 195, 93, 0.03), transparent 40%),
    rgba(5, 3, 12, 0.8);
  border: 1px solid var(--panel-strong);
}

.country-map__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.country-map__label {
  color: var(--muted);
  font-size: 0.78rem;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.country-map__svg {
  width: 100%;
  height: auto;
  display: block;
}

/* World background — all countries */
.world-map__country {
  fill: rgba(255, 255, 255, 0.028);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 0.5;
  stroke-linejoin: round;
}

/* Data-country overlays */
.country-map__region {
  cursor: pointer;
}

.country-map__region-shape {
  fill: rgba(255, 255, 255, 0.015);
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
  transition: fill 150ms ease, stroke 150ms ease;
}

.country-map__region-label {
  fill: rgba(255, 255, 255, 0.65);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  pointer-events: none;
  transition: fill 150ms ease;
}

.country-map__region.has-data .country-map__region-shape {
  fill: rgba(255, 123, 114, 0.14);
  stroke: rgba(255, 123, 114, 0.5);
  stroke-width: 1;
}

.country-map__region.has-live .country-map__region-shape {
  fill: rgba(109, 225, 194, 0.15);
  stroke: rgba(109, 225, 194, 0.6);
}

.country-map__region:hover:not(.is-disabled) .country-map__region-shape {
  fill: rgba(248, 195, 93, 0.22);
  stroke: rgba(248, 195, 93, 0.7);
}

.country-map__region.is-active .country-map__region-shape {
  fill: rgba(248, 195, 93, 0.32);
  stroke: rgba(248, 195, 93, 0.95);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 10px rgba(248, 195, 93, 0.5));
}

.country-map__region.is-active .country-map__region-label {
  fill: #fff;
  font-size: 10px;
}

.country-map__region.is-disabled {
  cursor: default;
}

.country-map__region.is-disabled .country-map__region-shape {
  fill: rgba(255, 255, 255, 0.01);
  stroke: rgba(255, 255, 255, 0.06);
}

.country-map__region.is-disabled .country-map__region-label {
  fill: rgba(255, 255, 255, 0.25);
}

.country-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.country-map__legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.country-map__legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.country-map__legend-dot--live {
  background: rgba(109, 225, 194, 0.92);
}

.country-map__legend-dot--snapshot {
  background: rgba(255, 123, 114, 0.92);
}

.country-map__legend-dot--empty {
  background: rgba(255, 255, 255, 0.28);
}

.country-map__summary {
  margin-top: 8px;
  color: rgba(185, 174, 195, 0.75);
  font-size: 0.78rem;
  line-height: 1.5;
  font-family: "IBM Plex Mono", monospace;
}

/* ── Profile grid ── */

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 5px;
}

.profile-card {
  display: grid;
  grid-template-columns: 34px 1fr auto 10px;
  align-items: center;
  gap: 0 10px;
  text-align: left;
  border: 1px solid var(--panel-strong);
  border-left: 3px solid transparent;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 12px;
  cursor: pointer;
  transition: transform 100ms ease, border-color 120ms ease, background 120ms ease;
  font: inherit;
}

.profile-card__rank {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  line-height: 1;
}

.profile-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.profile-card__name {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.93rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.profile-card__sub {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.profile-card__rate {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--accent);
  text-align: right;
  white-space: nowrap;
  line-height: 1;
}

.profile-card.is-snapshot .profile-card__rate {
  color: rgba(185, 174, 195, 0.55);
  font-size: 0.72rem;
}

.profile-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  justify-self: center;
}

.profile-card.is-live .profile-card__dot {
  background: var(--accent-3);
  box-shadow: 0 0 5px rgba(109, 225, 194, 0.5);
}

.profile-card.is-active {
  background: linear-gradient(90deg, rgba(248, 195, 93, 0.14), rgba(255, 123, 114, 0.05));
  border-color: rgba(248, 195, 93, 0.6);
  border-left-color: var(--accent);
  animation: profile-card-select 300ms ease;
}

.profile-card.is-active .profile-card__name {
  color: var(--accent);
}

.profile-card.is-active .profile-card__rank {
  color: var(--accent);
  font-weight: 700;
}

.profile-card:hover:not(.is-active) {
  border-color: rgba(248, 195, 93, 0.28);
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.04);
}

/* ── Counter card ── */

.counter-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at top right, rgba(248, 195, 93, 0.22), transparent 38%),
    radial-gradient(ellipse at 20% 80%, rgba(109, 225, 194, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.12) 100%),
    rgba(8, 5, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.counter-card.is-changing {
  animation: profile-enter 380ms ease;
}

.counter-card__halo {
  position: absolute;
  inset: auto -8% -24% auto;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(248, 195, 93, 0.22), transparent 60%);
  pointer-events: none;
}

/* ── Effects toggle ── */

.effects-toggle-wrap {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
}

.effects-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--panel-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms, border-color 120ms;
}

.effects-toggle-btn:hover,
.effects-toggle-btn.is-open {
  background: rgba(248, 195, 93, 0.18);
  border-color: rgba(248, 195, 93, 0.6);
}

.effects-panel {
  position: absolute;
  right: 0;
  top: 40px;
  background: rgba(15, 10, 24, 0.96);
  border: 1px solid var(--panel-strong);
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 170px;
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.effects-panel__title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.effects-toggle__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 0;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text);
  user-select: none;
}

.effects-toggle__item + .effects-toggle__item {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.effects-toggle__item input[type="checkbox"] {
  appearance: none;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--panel-strong);
  position: relative;
  cursor: pointer;
  transition: background 150ms, border-color 150ms;
  flex-shrink: 0;
}

.effects-toggle__item input[type="checkbox"]::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  top: 2px;
  left: 2px;
  transition: transform 150ms, background 150ms;
}

.effects-toggle__item input[type="checkbox"]:checked {
  background: rgba(109, 225, 194, 0.3);
  border-color: rgba(109, 225, 194, 0.6);
}

.effects-toggle__item input[type="checkbox"]:checked::after {
  transform: translateX(14px);
  background: var(--accent-3);
}

/* ── Counter card content ── */

.counter-card__top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 4px;
}

.counter-card__portrait-wrap {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.counter-card__portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.counter-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  padding-top: 2px;
}

/* ── Live signal ── */

.live-signal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--panel-strong);
  background: rgba(255, 255, 255, 0.04);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color 200ms, background 200ms;
}

.live-signal__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transition: background 200ms;
}

.live-signal.is-live {
  border-color: rgba(109, 225, 194, 0.4);
  background: rgba(109, 225, 194, 0.07);
  color: var(--accent-3);
}

.live-signal.is-live .live-signal__dot {
  background: var(--accent-3);
  animation: live-pulse 2.4s ease-in-out infinite;
}

.live-signal.is-estimated {
  border-color: rgba(248, 195, 93, 0.35);
  background: rgba(248, 195, 93, 0.07);
  color: rgba(248, 195, 93, 0.85);
}

.live-signal.is-estimated .live-signal__dot {
  background: rgba(248, 195, 93, 0.8);
  animation: live-pulse-amber 2.8s ease-in-out infinite;
}

.live-signal.is-snapshot {
  border-color: rgba(255, 123, 114, 0.35);
  background: rgba(255, 123, 114, 0.06);
  color: rgba(255, 123, 114, 0.85);
}

.live-signal.is-snapshot .live-signal__dot {
  background: rgba(255, 123, 114, 0.7);
}

/* ── Chips ── */

.rank-chip,
.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-strong);
  color: var(--muted);
  font-size: 0.88rem;
}

.meta-chip--accent {
  color: #1c1204;
  background: linear-gradient(135deg, var(--accent), #ffdca1);
  border-color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

.meta-chip--warning {
  color: #381100;
  background: linear-gradient(135deg, #ffb18c, #ffd2a8);
  border-color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
}

.meta-chip--estimated {
  background: linear-gradient(135deg, rgba(248, 195, 93, 0.22), rgba(248, 195, 93, 0.08));
  color: var(--accent);
  border-color: rgba(248, 195, 93, 0.4);
  font-weight: 600;
}

.counter-card__name {
  margin: 16px 0 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.counter-card__summary {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 60ch;
  font-size: 0.95rem;
}

.counter-card__bio {
  margin: 0 0 16px;
  color: rgba(247, 240, 232, 0.78);
  line-height: 1.6;
  max-width: 62ch;
  font-size: 0.95rem;
}

.counter-card__session-label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: "IBM Plex Mono", monospace;
}

.counter-card__amount {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: transparent;
  background: linear-gradient(135deg, #ffe7bb 0%, #f8c35d 42%, #ff8c7b 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.counter-card__amount.is-bursting {
  animation: counter-burst 520ms ease;
}

.counter-card__subline {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ── Counter unit label ── */

.counter-card__unit-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  min-height: 1.3em;
  margin-top: 2px;
  opacity: 0.85;
}

/* ── Unit switcher ── */

.unit-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.unit-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.unit-group__label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.unit-group__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.unit-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 120ms, border-color 120ms, color 120ms, transform 80ms;
  white-space: nowrap;
}

.unit-pill:hover {
  background: rgba(248, 195, 93, 0.1);
  border-color: rgba(248, 195, 93, 0.35);
  color: var(--text);
  transform: translateY(-1px);
}

.unit-pill.is-active {
  background: linear-gradient(135deg, rgba(248, 195, 93, 0.22), rgba(248, 195, 93, 0.08));
  border-color: rgba(248, 195, 93, 0.55);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(248, 195, 93, 0.15);
}

/* ── Rate grid ── */

.rate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.rate-tile {
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.rate-tile__label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
}

.rate-tile strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
}

/* ── Impact section ── */

.impact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.next-unlock,
.impact-total {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.next-unlock__label,
.impact-total__label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
}

.next-unlock__name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.next-unlock__price {
  margin-top: 4px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.next-unlock__distance {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.progress-bar {
  margin-top: 14px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-bar__fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 8px rgba(248, 195, 93, 0.6), 0 0 20px rgba(248, 195, 93, 0.25);
  transition: width 300ms ease;
}

.impact-total__value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
}

.impact-total__family {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ── Unlock stream ── */

.unlock-stream {
  display: grid;
  gap: 8px;
  position: relative;
}

.unlock-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  border-left: 3px solid transparent;
}

.unlock-card.is-new {
  border-left-color: var(--accent-3);
  background: linear-gradient(135deg, rgba(109, 225, 194, 0.1), rgba(248, 195, 93, 0.05));
}

.unlock-card__emoji {
  font-size: 1.35rem;
}

.unlock-card__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.unlock-card__meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.unlock-card__count {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  color: var(--accent-3);
}

/* ── Unlock particles ── */

.unlock-particle {
  position: fixed;
  z-index: 9600;
  pointer-events: none;
  font-size: 1.5rem;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  line-height: 1;
}

/* ── Effects layer (impact panel floaters) ── */

.effects-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.floating-gain {
  position: absolute;
  right: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(109, 225, 194, 0.16);
  border: 1px solid rgba(109, 225, 194, 0.34);
  color: var(--accent-3);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  animation: float-gain 1600ms ease forwards;
  white-space: nowrap;
}

/* ── Method grid ── */

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.method-grid h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.method-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ── Footer ── */

.footer {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ── Keyframes ── */

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(109, 225, 194, 0.4); }
  50% { box-shadow: 0 0 12px rgba(109, 225, 194, 0.9); opacity: 0.7; }
}

@keyframes live-pulse-amber {
  0%, 100% { box-shadow: 0 0 4px rgba(248, 195, 93, 0.4); opacity: 1; }
  50% { box-shadow: 0 0 10px rgba(248, 195, 93, 0.8); opacity: 0.65; }
}

@keyframes counter-burst {
  0% { transform: scale(1); }
  30% { transform: scale(1.035); text-shadow: 0 0 28px rgba(248, 195, 93, 0.38); }
  100% { transform: scale(1); }
}

@keyframes unlock-card-pop {
  0% { transform: translateY(8px) scale(0.98); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes float-gain {
  0% { transform: translateY(0) scale(0.94); opacity: 0; }
  18% { transform: translateY(-6px) scale(1); opacity: 1; }
  100% { transform: translateY(-52px) scale(1.03); opacity: 0; }
}

@keyframes profile-enter {
  0% { opacity: 0.5; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes profile-card-select {
  0% { transform: translateX(0); }
  40% { transform: translateX(4px); box-shadow: -4px 0 16px rgba(248, 195, 93, 0.22); }
  100% { transform: translateX(0); }
}

/* ── Responsive ── */

@media (max-width: 960px) {
  .panel--counter,
  .panel--impact {
    grid-column: span 12;
  }

  .impact-grid,
  .method-grid,
  .rate-grid {
    grid-template-columns: 1fr;
  }

  .country-browser {
    grid-template-columns: 1fr;
  }

  .country-chip-grid {
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
    overflow-y: visible;
  }

  .country-chip {
    width: auto;
    border-left-width: 1px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 20px, 1240px);
    padding-top: 18px;
  }

  .hero__heading {
    flex-direction: column;
  }

  .hero__back {
    white-space: normal;
  }

  .panel {
    padding: 16px;
    border-radius: 22px;
  }

  .counter-card {
    padding: 20px;
  }

  .counter-card__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .counter-card__amount {
    font-size: clamp(2.4rem, 15vw, 4.6rem);
  }

  .unlock-card {
    grid-template-columns: auto 1fr;
  }

  .unlock-card__count {
    grid-column: 2;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .selector-flow {
    display: none;
  }

  .gta-gain {
    font-size: 1.6rem;
  }
}
