:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --panel: #ffffff;
  --panel-2: #f3f7f5;
  --ink: #1d2525;
  --muted: #68706e;
  --soft: #e5e1da;
  --line: #dcd7ce;
  --primary: #e45f45;
  --primary-ink: #ffffff;
  --blue: #245bff;
  --green: #078846;
  --gold: #a56c00;
  --shadow: 0 16px 46px rgba(38, 48, 49, 0.075);
  --radius: 14px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(36, 91, 255, 0.055), transparent 260px),
    var(--bg);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header,
.app-shell,
.site-footer {
  width: min(100% - 32px, 1040px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand span span {
  color: var(--primary);
}

.brand-mark {
  display: grid;
  width: 27px;
  gap: 4px;
}

.brand-mark span {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: var(--ink);
}

.brand-mark span:first-child {
  width: 15px;
  margin-left: auto;
  background: var(--primary);
}

.brand-mark span:nth-child(2) {
  width: 22px;
  margin-left: auto;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--ink);
}

.app-shell {
  padding: 18px 0 58px;
}

.proof-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.proof-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  padding: 8px 13px;
  color: var(--muted);
  box-shadow: 0 8px 30px rgba(38, 48, 49, 0.06);
  font-size: 14px;
  font-weight: 520;
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--green);
}

.live-dot::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  background: inherit;
  animation: ping 1.4s ease-out infinite;
}

.hero {
  text-align: center;
  margin-bottom: 26px;
}

.hero h1 {
  margin: 0;
  text-wrap: balance;
  font-size: clamp(40px, 6.6vw, 72px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 strong {
  color: var(--primary);
  font-weight: inherit;
}

.hero p {
  max-width: 620px;
  margin: 13px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.boost-panel {
  max-width: 960px;
  margin: 20px auto 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  padding: 14px;
}

.boost-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.35fr) 142px minmax(136px, 0.7fr);
  gap: 10px;
}

.field {
  position: relative;
}

.field label {
  display: block;
  margin: 0 0 5px 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 640;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  height: 48px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 520;
}

.field input:focus {
  border-color: rgba(36, 91, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(36, 91, 255, 0.12);
}

.country-picker,
.city-picker,
.identity-picker {
  position: relative;
}

.country-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 520;
  text-align: left;
}

.country-trigger.is-placeholder {
  color: var(--muted);
  font-weight: 500;
}

.country-trigger:focus-visible,
.country-picker.is-open .country-trigger,
.city-picker.is-open .city-search-control input {
  border-color: rgba(36, 91, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(36, 91, 255, 0.12);
}

.country-trigger-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.country-trigger-main span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-trigger-flag {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

.country-chevron {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.country-menu,
.city-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: min(360px, calc(100vw - 42px));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  padding: 10px;
}

.city-menu {
  width: min(320px, calc(100vw - 42px));
}

.country-search {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 0 12px;
  outline: none;
}

.country-options,
.city-options {
  display: grid;
  max-height: 258px;
  overflow: auto;
  gap: 2px;
  margin-top: 8px;
  padding-right: 2px;
}

.country-option,
.city-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  padding: 0 9px;
  text-align: left;
}

.country-option:hover,
.city-option:hover {
  background: var(--panel-2);
}

.country-option span:first-child {
  width: 22px;
  font-size: 16px;
  line-height: 1;
}

.city-option small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.use-custom-city {
  width: 100%;
  margin-top: 7px;
  border: 1px dashed rgba(228, 95, 69, 0.35);
  background: rgba(228, 95, 69, 0.07);
  color: var(--primary);
}

.city-empty {
  margin-top: 8px;
  border: 1px dashed rgba(36, 91, 255, 0.22);
  border-radius: 10px;
  background: rgba(36, 91, 255, 0.06);
  color: var(--muted);
  padding: 10px 11px;
  font-size: 13px;
  line-height: 1.35;
}

.country-empty {
  margin-top: 8px;
  color: var(--muted);
  padding: 8px 9px;
  font-size: 13px;
}

.city-loading,
.city-more {
  margin-top: 8px;
  color: var(--muted);
  padding: 8px 9px;
  font-size: 13px;
}

.city-search-control {
  display: block;
}

.city-search-control input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.identity-picker {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  height: 48px;
}

.identity-picker input[data-identity-input] {
  border-radius: 0 12px 12px 0;
  border-left: 0;
  padding-left: 13px;
}

.identity-platform-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px 0 0 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.identity-picker:focus-within .identity-platform-trigger,
.identity-picker:focus-within input[data-identity-input],
.identity-picker.is-open .identity-platform-trigger {
  border-color: rgba(36, 91, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(36, 91, 255, 0.12);
}

.identity-picker:focus-within input[data-identity-input] {
  box-shadow: 4px 0 0 rgba(36, 91, 255, 0.12), 0 0 0 4px rgba(36, 91, 255, 0.12);
}

.identity-chevron {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.identity-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: 220px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  padding: 8px;
}

.identity-platform-option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  padding: 0 9px;
  text-align: left;
}

.identity-platform-option span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.identity-platform-option strong {
  font-size: 14px;
  font-weight: 650;
}

.identity-platform-option:hover,
.identity-platform-option[aria-pressed="true"] {
  background: var(--panel-2);
}

.amount-control {
  display: grid;
  grid-template-columns: 36px minmax(64px, 1fr) 36px;
  gap: 5px;
}

.amount-control button,
.primary-btn,
.secondary-btn,
.rank-btn {
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  transition:
    transform 0.14s ease,
    background 0.14s ease,
    color 0.14s ease;
}

.amount-control button {
  height: 48px;
  background: rgba(228, 95, 69, 0.1);
  color: var(--primary);
  font-size: 18px;
}

.amount-control input {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.primary-btn {
  align-self: end;
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--primary-ink);
}

.primary-btn:hover {
  background: #d85841;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
}

.rank-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  background: rgba(36, 91, 255, 0.1);
  color: var(--blue);
  font-size: 13px;
  white-space: nowrap;
}

.primary-btn:hover,
.secondary-btn:hover,
.rank-btn:hover,
.amount-control button:hover {
  transform: translateY(-1px);
}

.form-note {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.pulse-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin: 22px 0 26px;
}

.mini-card,
.city-card,
.leaderboard,
.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(38, 48, 49, 0.055);
}

.mini-card {
  overflow: hidden;
  padding: 13px 14px 7px;
}

.mini-card h2,
.section-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
}

.compact-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strip-list {
  display: flex;
  gap: 8px;
  width: max-content;
  max-width: none;
  overflow-x: visible;
  overflow-y: hidden;
  padding-bottom: 6px;
  will-change: transform;
  animation: marquee 34s linear infinite;
}

.activity-strip {
  animation-duration: 42s;
}

.strip-list:hover {
  animation-play-state: paused;
}

.strip-list li {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border: 1px solid var(--soft);
  border-radius: 11px;
  background: rgba(251, 250, 247, 0.7);
  padding: 8px 9px;
}

.trending-strip li {
  width: 190px;
}

.activity-strip li {
  width: 270px;
}

.compact-list li,
.supporter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-top: 1px solid var(--soft);
  padding: 9px 0;
}

.compact-list li:first-child,
.supporter-row:first-child {
  border-top: 0;
}

.compact-list.strip-list li,
.compact-list.strip-list li:first-child {
  min-width: 0;
  border: 1px solid var(--soft);
  padding: 8px 9px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 9px;
  background: var(--panel-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.flag-avatar {
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 16px;
  line-height: 1;
}

.supporter-avatar {
  background: rgba(228, 95, 69, 0.1);
  color: var(--primary);
}

.compact-main,
.row-main {
  min-width: 0;
  flex: 1;
}

.compact-title,
.row-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 560;
}

.compact-sub,
.row-sub {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.metric {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 12px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

.activity-item {
  align-items: center;
}

.supporter-link {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  gap: 10px;
  border-radius: 10px;
}

.supporter-link:hover .compact-title {
  color: var(--primary);
}

.city-pill,
.amount-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.city-pill {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
}

.city-pill:hover {
  color: var(--ink);
}

.amount-chip {
  background: rgba(7, 136, 70, 0.1);
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.leaderboard {
  overflow: hidden;
  padding: 6px;
}

.leaderboard-head,
.city-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 120px 120px;
  align-items: center;
  gap: 14px;
}

.leaderboard-head {
  border-bottom: 1px solid var(--line);
  padding: 10px 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 640;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.city-row {
  min-height: 110px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 10px;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.city-row:first-of-type {
  border-top: 0;
}

.city-row + .city-row {
  margin-top: 4px;
}

.city-row:hover {
  border-color: rgba(228, 95, 69, 0.16);
  background: rgba(255, 255, 255, 0.58);
  transform: translateY(-1px);
}

.rank {
  color: var(--muted);
  font-size: 20px;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}

.city-title {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  gap: 12px;
}

.city-name-link {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.city-name-link:hover .city-name {
  color: var(--primary);
}

.city-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--muted);
  font-size: 22px;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(38, 48, 49, 0.06);
}

.flag-badge {
  font-size: 24px;
  line-height: 1;
}

.city-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 19px;
  font-weight: 600;
}

.city-name-line {
  display: flex;
  align-items: center;
  min-width: 0;
}

.city-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 12px;
}

.top-supporters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.top-supporter-pill,
.top-supporter-empty {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  min-height: 24px;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  padding: 0 7px;
  font-size: 11px;
  line-height: 1;
}

.top-supporter-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-supporter-pill strong {
  flex: 0 0 auto;
  color: var(--primary);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.top-supporter-pill em {
  flex: 0 0 auto;
  color: var(--green);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.top-supporter-pill:hover {
  border-color: rgba(228, 95, 69, 0.35);
  color: var(--ink);
}

.top-supporter-empty {
  color: var(--muted);
}

.money {
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

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

.city-card,
.content-card {
  padding: 18px;
}

.city-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.stat-tile {
  border-radius: 12px;
  background: var(--panel-2);
  padding: 12px;
}

.stat-tile strong {
  display: block;
  font-size: 21px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.stat-tile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.supporters {
  display: grid;
}

.supporter-row {
  align-items: flex-start;
}

.supporter-rank {
  width: 34px;
  color: var(--muted);
  font-weight: 620;
}

.supporter-stats {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.supporter-amount {
  color: var(--primary);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.supporter-clicks {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.content-card {
  max-width: 760px;
  margin-inline: auto;
  line-height: 1.65;
}

.content-card h1 {
  margin: 0 0 12px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
}

.content-card h2 {
  margin: 24px 0 8px;
  font-size: 20px;
  font-weight: 650;
}

.content-card ul {
  padding-left: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 22px 0 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  width: min(380px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 14px 15px;
  color: var(--ink);
  font-weight: 620;
}

.toast small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 480;
  line-height: 1.35;
}

@keyframes ping {
  to {
    opacity: 0;
    transform: scale(2.4);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 5px));
  }
}

@media (max-width: 980px) {
  .boost-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .primary-btn {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .boost-form,
  .pulse-grid,
  .city-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-head {
    display: none;
  }

  .city-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }

  .city-row .money,
  .city-row .rank-btn {
    grid-column: 2;
  }

  .city-row .money {
    text-align: left;
  }

  .city-stat-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
}
