:root {
  color-scheme: dark;
  --bg: #06140c;
  --panel: #102119;
  --panel-strong: #163023;
  --text: #f5fff8;
  --muted: #9eb6a8;
  --mint: #52d784;
  --mint-strong: #32be69;
  --mint-deep: #0f8f45;
  --mint-ink: #021108;
  --ticker: #89f7a9;
  --amber: #c7ffd2;
  --border: rgba(82, 215, 132, 0.16);
  --shadow: 0 18px 60px rgba(0, 33, 15, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% 6%, rgba(82, 215, 132, 0.16), transparent 24rem),
    radial-gradient(circle at 36% 20%, rgba(15, 143, 69, 0.16), transparent 26rem),
    linear-gradient(180deg, #07170d 0%, #06120c 48%, #040b08 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

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

.market-tape {
  position: fixed;
  top: 3px;
  left: 24px;
  z-index: 5;
  display: none;
  width: min(360px, calc(100vw - 40px));
  min-height: 38px;
}

.market-tape.is-visible {
  display: flex;
}

.trade-tab {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  padding: 0 12px 0 10px;
  color: var(--mint-ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(50, 190, 105, 0.18);
}

.trade-tab-logo {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  transform: translateY(-1px) rotate(15deg);
  filter: drop-shadow(0 2px 4px rgba(2, 17, 8, 0.2));
}

.trade-tab-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-tab-buy {
  background: linear-gradient(135deg, #52d784 0%, #32be69 100%);
}

.trade-tab-sell {
  background: linear-gradient(135deg, #ff7f7f 0%, #ffaaa3 100%);
  color: rgba(70, 5, 5, 0.92);
}

.trade-tab-shake {
  animation: trade-tab-shake 620ms cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes trade-tab-shake {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  10% {
    transform: translate3d(-13px, 0, 0) rotate(-1.4deg);
  }
  20% {
    transform: translate3d(13px, 0, 0) rotate(1.4deg);
  }
  30% {
    transform: translate3d(-11px, 0, 0) rotate(-1.1deg);
  }
  40% {
    transform: translate3d(11px, 0, 0) rotate(1.1deg);
  }
  50% {
    transform: translate3d(-8px, 0, 0) rotate(-0.8deg);
  }
  60% {
    transform: translate3d(8px, 0, 0) rotate(0.8deg);
  }
  70% {
    transform: translate3d(-5px, 0, 0) rotate(-0.45deg);
  }
  80% {
    transform: translate3d(5px, 0, 0) rotate(0.45deg);
  }
}

.site-header {
  display: flex;
  min-height: 36px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 17px 0 24px;
}

.top-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

main {
  flex: 1 0 auto;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.logo-panel {
  display: grid;
  place-items: center;
  min-height: 178px;
  padding: 8px 0 16px;
}

.hero-brand-lockup {
  display: flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.7vw, 18px);
}

.hero-logo {
  width: clamp(68px, 8.5vw, 108px);
  flex: 0 0 auto;
  height: auto;
  filter: drop-shadow(0 22px 42px rgba(0, 92, 36, 0.34));
}

.hero-wordmark {
  color: #ffffff;
  transform: translateY(0);
  font-size: clamp(30px, 5vw, 68px);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 18px 44px rgba(0, 48, 22, 0.54);
  white-space: nowrap;
}

.info-tab:focus-visible,
.contract-tab:focus-visible,
.icon-button:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.info-tab,
.contract-tab {
  display: grid;
  min-height: 38px;
  align-items: center;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-strong) 100%);
  color: var(--mint-ink);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(50, 190, 105, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.info-tab {
  min-width: 118px;
  place-items: center;
  padding-inline: 14px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.contract-tab {
  min-width: 0;
  grid-template-columns: auto auto auto;
  gap: 8px;
  padding-inline: 10px;
}

.info-tab:hover,
.contract-tab:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 10px 28px rgba(50, 190, 105, 0.28);
}

.info-tab:active,
.contract-tab:active {
  transform: translateY(0);
}

.contract-label,
.copy-state {
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.contract-address {
  min-width: 0;
  overflow: visible;
  color: #102417;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.copy-state {
  color: rgba(3, 19, 10, 0.72);
}

.info-modal {
  width: min(460px, calc(100vw - 32px));
  border: 1px solid rgba(82, 215, 132, 0.24);
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: var(--text);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.46);
}

.info-modal::backdrop {
  background: rgba(0, 12, 6, 0.68);
  backdrop-filter: blur(5px);
}

.info-modal-panel {
  position: relative;
  display: grid;
  gap: 12px;
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(82, 215, 132, 0.12), rgba(15, 143, 69, 0.05)),
    #0b1d13;
}

.info-modal h2,
.info-modal p {
  margin: 0;
}

.info-modal h2 {
  padding-right: 36px;
  font-size: 24px;
  line-height: 1.05;
}

.info-modal p {
  color: #d7f8df;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(82, 215, 132, 0.16);
  color: #ffffff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.trending-section {
  margin-top: 4px;
}

.fundraiser-section {
  margin-top: 34px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: 0;
}

.fundraiser-status {
  margin: 0;
  color: var(--mint);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.fundraiser-heading {
  align-items: center;
}

.fundraiser-tools {
  display: flex;
  width: min(520px, 58vw);
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.fundraiser-search {
  flex: 1 1 240px;
  min-width: 0;
}

.fundraiser-sort {
  flex: 0 0 148px;
}

.fundraiser-sort,
.fundraiser-search input {
  width: 100%;
  height: 34px;
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(82, 215, 132, 0.12);
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  outline: none;
  padding: 0 11px;
}

.fundraiser-sort {
  background:
    linear-gradient(45deg, transparent 50%, var(--mint) 50%) right 12px center / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(82, 215, 132, 0.16), rgba(15, 143, 69, 0.05));
  padding-right: 28px;
}

.fundraiser-search input::placeholder {
  color: rgba(215, 248, 223, 0.66);
}

.fundraiser-sort:focus,
.fundraiser-search input:focus {
  border-color: rgba(82, 215, 132, 0.72);
  box-shadow: 0 0 0 2px rgba(82, 215, 132, 0.17);
}

.carousel-actions {
  display: flex;
  gap: 10px;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #0d2518;
  color: #e5ffed;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.icon-button:hover {
  background: #143822;
  transform: translateY(-1px);
}

.icon-button span {
  display: block;
  margin-top: -2px;
  font-size: 34px;
  line-height: 1;
}

.trend-strip {
  display: grid;
  grid-auto-columns: minmax(276px, 1fr);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.trend-strip::-webkit-scrollbar {
  display: none;
}

.contribution-card {
  display: grid;
  min-height: 142px;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 12px;
  row-gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(82, 215, 132, 0.13), rgba(15, 143, 69, 0.03) 45%),
    var(--panel);
  box-shadow: var(--shadow);
}

.contribution-art {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(82, 215, 132, 0.94), rgba(0, 106, 45, 0.88)),
    #fff;
  object-fit: cover;
}

.contribution-copy {
  min-width: 0;
  align-self: center;
}

.contribution-copy h3,
.contribution-copy p,
.contribution-note {
  margin: 0;
}

.contribution-copy h3,
.contribution-note {
  font-size: 14px;
  line-height: 1.24;
  letter-spacing: 0;
}

.contribution-copy h3 {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contribution-amount {
  color: var(--mint);
  font-weight: 900;
  font-size: 13px;
}

.contribution-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.contribution-note {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.contribution-link {
  color: var(--mint);
  font-weight: 950;
}

.contribution-card-empty {
  opacity: 0.72;
}

.fundraiser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(206px, 1fr));
  gap: 12px;
}

.fundraiser-card {
  position: relative;
  isolation: isolate;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(82, 215, 132, 0.11), rgba(15, 143, 69, 0.03) 48%),
    var(--panel);
  box-shadow: var(--shadow);
}

.fundraiser-card > * {
  position: relative;
  z-index: 1;
}

.fundraiser-card.is-pinned-hearted {
  border-color: rgba(255, 214, 94, 0.78);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 235, 145, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(255, 201, 59, 0.22), rgba(82, 215, 132, 0.08) 48%, rgba(9, 31, 17, 0.96)),
    var(--panel);
  box-shadow:
    0 0 0 1px rgba(255, 214, 94, 0.2),
    0 16px 44px rgba(255, 189, 56, 0.2),
    var(--shadow);
}

.fundraiser-card.is-pinned-hearted::before {
  content: "";
  position: absolute;
  inset: -55% -35%;
  z-index: 2;
  background: linear-gradient(
    115deg,
    transparent 36%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(255, 238, 151, 0.42) 51%,
    transparent 64%
  );
  opacity: 0;
  pointer-events: none;
  transform: translateX(-70%) rotate(7deg);
  animation: pinned-card-shine 3.9s ease-in-out infinite;
}

.fundraiser-card.is-pinned-hearted .fundraiser-money {
  color: #ffd86a;
  text-shadow: 0 0 14px rgba(255, 216, 106, 0.22);
}

.fundraiser-card.is-pinned-hearted .fundraiser-progress {
  background: rgba(255, 216, 106, 0.17);
}

.fundraiser-card.is-pinned-hearted .fundraiser-progress span {
  background: linear-gradient(90deg, #ffd86a, var(--mint));
}

.fundraiser-card.is-pinned-hearted .fundraiser-link {
  background: linear-gradient(135deg, #ffd86a, var(--mint));
}

@keyframes pinned-card-shine {
  0%,
  46%,
  100% {
    opacity: 0;
    transform: translateX(-70%) rotate(7deg);
  }

  58% {
    opacity: 0.82;
  }

  74% {
    opacity: 0;
    transform: translateX(70%) rotate(7deg);
  }
}

.fundraiser-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--panel-strong);
  object-fit: cover;
}

.fundraiser-body {
  display: grid;
  gap: 7px;
  grid-template-rows: auto auto auto auto auto 1fr;
  padding: 10px;
}

.fundraiser-body h3,
.fundraiser-body p {
  margin: 0;
}

.fundraiser-body h3 {
  display: -webkit-box;
  overflow: hidden;
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.fundraiser-description {
  display: -webkit-box;
  overflow: hidden;
  color: #d7f8df;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.fundraiser-meta,
.fundraiser-money {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.fundraiser-money {
  color: var(--mint);
}

.fundraiser-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(82, 215, 132, 0.16);
}

.fundraiser-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), #b7ffd0);
}

.fundraiser-actions {
  display: flex;
  align-items: center;
  align-self: end;
  justify-content: space-between;
  gap: 7px;
}

.fundraiser-link {
  flex: 0 1 auto;
  border-radius: 6px;
  padding: 7px 9px;
  background: linear-gradient(135deg, var(--mint), var(--mint-strong));
  color: var(--mint-ink);
  font-size: 11px;
  font-weight: 950;
}

.vote-button {
  display: grid;
  min-width: 38px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  margin-left: auto;
  border: 1px solid rgba(255, 151, 188, 0.22);
  border-radius: 6px;
  background: rgba(255, 151, 188, 0.045);
  color: rgba(255, 217, 231, 0.76);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  padding: 0 7px;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.vote-button:hover {
  border-color: rgba(255, 151, 188, 0.38);
  background: rgba(255, 151, 188, 0.085);
  color: rgba(255, 231, 240, 0.92);
  transform: translateY(-1px);
}

.vote-button.is-voted {
  border-color: rgba(255, 126, 178, 0.5);
  background: rgba(255, 126, 178, 0.16);
  color: #ff8fbd;
}

.vote-button:disabled {
  cursor: default;
}

.vote-button.vote-error {
  transform: translateX(-2px);
}

.fundraiser-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.fundraiser-pagination[hidden] {
  display: none;
}

.pager-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(82, 215, 132, 0.14);
  color: #ffffff;
  cursor: pointer;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.pager-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.pager-input {
  width: 46px;
  height: 34px;
  appearance: textfield;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(82, 215, 132, 0.12);
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.pager-input:focus {
  border-color: rgba(82, 215, 132, 0.72);
  outline: 2px solid rgba(82, 215, 132, 0.2);
  outline-offset: 2px;
}

.pager-input::-webkit-outer-spin-button,
.pager-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.pager-total {
  color: var(--mint);
  font-size: 12px;
  font-weight: 950;
}

.site-footer {
  display: flex;
  flex: 0 0 auto;
  width: min(100%, 1180px);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10px auto 0;
  border-top: 1px solid rgba(82, 215, 132, 0.18);
  padding: 18px 24px 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.site-footer p {
  margin: 0;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(82, 215, 132, 0.22), rgba(15, 143, 69, 0.08)),
    rgba(82, 215, 132, 0.08);
  color: var(--mint);
  box-shadow: 0 8px 24px rgba(0, 33, 15, 0.18);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.social-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social-icon img {
  display: block;
  width: 21px;
  height: 21px;
}

.social-icon:hover {
  border-color: rgba(82, 215, 132, 0.52);
  background: linear-gradient(135deg, var(--mint), var(--mint-strong));
  color: var(--mint-ink);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .market-tape {
    left: 12px;
    width: min(340px, calc(100vw - 24px));
  }

  .site-header {
    min-height: auto;
    padding: 10px 12px 0;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .info-tab {
    min-width: 118px;
  }

  .contract-tab {
    min-width: min(100%, 590px);
  }

  main {
    padding-inline: 12px;
  }

  .site-footer {
    padding-inline: 12px;
  }

  .logo-panel {
    min-height: 150px;
    padding: 8px 0 10px;
  }

  .hero-logo {
    width: clamp(58px, 16vw, 78px);
  }

  .hero-wordmark {
    font-size: clamp(27px, 8.8vw, 42px);
  }

  .section-heading {
    align-items: end;
  }

  .fundraiser-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .fundraiser-tools {
    width: 100%;
    margin-left: 0;
  }

  .fundraiser-sort {
    flex-basis: 148px;
  }

  .trend-strip {
    grid-auto-columns: minmax(250px, 84vw);
  }

  .fundraiser-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 430px) {
  .top-actions {
    justify-content: stretch;
  }

  .contract-tab {
    width: 100%;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .contract-address {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .info-tab {
    min-width: 0;
    flex: 0 0 auto;
  }

  .copy-state {
    display: none;
  }

  .carousel-actions {
    gap: 7px;
  }

  .icon-button {
    width: 35px;
    height: 35px;
  }

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

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