@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  font-family: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --card-surface: linear-gradient(160deg, rgba(24, 20, 16, 0.75), rgba(14, 12, 10, 0.7));
  --card-border: rgba(255, 255, 255, 0.06);
  --card-highlight: rgba(255, 255, 255, 0.12);
  --panel-surface: linear-gradient(180deg, rgba(32, 27, 22, 0.95), rgba(17, 14, 12, 0.9));
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-highlight: rgba(255, 255, 255, 0.14);
  --text-primary: #faf5eb;
  --text-muted: rgba(250, 245, 235, 0.56);
  --accent: #f5c33b;
  --accent-dark: #c69216;
  --danger: #ff6a55;
  --shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.65);
  --card-max-size: 437px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.6rem, 1.8vw, 1.1rem);
  padding: clamp(0.85rem, 2.4vw, 1.4rem) clamp(1.2rem, 3.2vw, 2.4rem);
  background: 
    linear-gradient(rgba(0, 0, 0, 0.795), rgba(0, 0, 0, 0.836)), /* 25% black overlay */
    url("../assets/banner.png") center/cover no-repeat fixed;
  color: var(--text-primary);
  overflow: hidden;
}


body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(245, 195, 59, 0.11), transparent 60%);
  pointer-events: none;
}

@media (max-width: 768px) {
  body::before {
    background: radial-gradient(
      circle at top center,
      rgba(245, 195, 59, 0.13),
      transparent 60%
    );
  }
}

.layout {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--card-max-size);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

.layout > * {
  width: 100%;
  max-height: 100%;
}

.layout--stack {
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1.4rem, 4vw, 2rem);
}

.layout--stack > * {
  align-self: center;
}

.layout--wide {
  max-width: min(100%, 760px);
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: clamp(1.8rem, 4vw, 2.6rem);
  padding-block: clamp(0.8rem, 3vw, 1.4rem);
}

.layout--wide > * {
  max-height: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.2rem);
  width: min(100%, var(--card-max-size));
  flex-shrink: 0;
}

.site-logo {
  max-width: clamp(123px, 13.8vw, 169px);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35));
}

.site-nav {
  width: 100%;
}

.site-nav__list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(1.2rem, 4vw, 2rem);
  padding: clamp(0.25rem, 1.5vw, 0.5rem) 0;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.2rem;
  font-size: clamp(0.78rem, 2.4vw, 0.92rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--text-primary);
}

.site-nav__link:focus-visible {
  outline: none;
}

.site-nav__link--active {
  color: var(--text-primary);
}

.site-nav__link--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3rem;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.site-footer {
  width: min(100%, var(--card-max-size));
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.024em;
  flex-shrink: 0;
}

.site-footer__social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.site-footer__social:hover {
  opacity: 0.85;
}

.site-footer__social-link {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
  opacity: 0.55;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
  color: var(--accent);
  opacity: 1;
  transform: translateY(-1px);
  outline: none;
}

.site-footer__social-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.site-footer__social-icon path,
.site-footer__social-icon rect,
.site-footer__social-icon circle,
.site-footer__social-icon line {
  fill: currentColor;
  stroke: none;
}

.site-footer__social-icon [fill="none"] {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.site-footer__link {
  color: var(--accent);
  text-decoration: none;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.swap-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.08rem, 3.2vw, 1.4rem);
  border-radius: 13px;
  border: 1px solid var(--card-border);
  background: var(--card-surface);
  box-shadow: var(--shadow-xl);
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
}

.mobile-warning {
  width: min(100%, var(--card-max-size));
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  background: #e4aa27;
  color: #1a1203;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  flex-shrink: 0;
}

.mobile-warning:not([hidden]) {
  display: flex;
}

.mobile-warning__text {
  text-align: center;
}

.mobile-warning__link {
  color: inherit;
  text-decoration: underline;
  font-weight: 700;
}

.mobile-warning__link:hover,
.mobile-warning__link:focus-visible {
  text-decoration: none;
  outline: none;
}

.presale-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: clamp(1.2rem, 3.5vw, 1.6rem);
  border-radius: 13px;
  border: 1px solid var(--card-border);
  background: var(--card-surface);
  box-shadow: var(--shadow-xl);
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
}

.info-card,
.leaderboard-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.1rem, 3.2vw, 1.5rem);
  border-radius: 13px;
  border: 1px solid var(--card-border);
  background: var(--card-surface);
  box-shadow: var(--shadow-xl);
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.info-card {
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
}

.info-card__title,
.leaderboard-card__title {
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  font-weight: 600;
}

.info-card__subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.info-card__cta {
  margin-top: clamp(0.8rem, 2.5vw, 1.2rem);
}

.info-card__preview {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 45px;
  margin-bottom: clamp(0.4rem, 2vw, 0.75rem);
}

.info-card__image {
  width: min(240px, 70vw);
  aspect-ratio: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.55));
}

.info-card--soon {
  aspect-ratio: auto;
  align-items: center;
  text-align: center;
  max-width: min(100%, 420px);
}

.info-card--soon .info-card__preview {
  padding-top: 0;
  margin-bottom: clamp(0.6rem, 2.5vw, 1rem);
}

.info-card--soon .info-card__cta {
  align-self: center;
}

.about-hero {
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 3vw, 1.8rem);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border-radius: 18px;
  border: 1px solid transparent;
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.55);
  align-items: center;
  text-align: center;
}

.about-hero__header {
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 2vw, 0.9rem);
  align-items: center;
}

.about-hero__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(245, 195, 59, 0.86);
}

.about-hero__title {
  font-size: 30px;
  font-weight: 600;
}

.about-hero__subtitle {
  color: var(--text-muted);
  font-size: clamp(0.92rem, 2.8vw, 1.06rem);
  line-height: 1.8;
  max-width: 48ch;
}

.about-hero__highlights {
  list-style: none;
  display: grid;
  gap: clamp(0.75rem, 2.4vw, 1rem);
  padding: 0;
  margin: 0;
  width: min(100%, 520px);
}

.about-hero__highlight {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-content: center;
  color: var(--text-muted);
  font-size: clamp(0.82rem, 2.6vw, 0.96rem);
  line-height: 1.5;
}

.about-hero__emoji {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.about-hero__actions {
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 2.2vw, 0.9rem);
  width: min(100%, 360px);
}

.about-hero__action {
  width: 100%;
}

.about-hero__action.outline-action {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.leaderboard-card__description {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.leaderboard-card__link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.leaderboard-card__link:hover,
.leaderboard-card__link:focus-visible {
  text-decoration: underline;
}

.leaderboard-card__header {
  display: flex;
  flex-direction: column;
  gap: clamp(0.45rem, 1.8vw, 0.75rem);
  align-items: center;
  text-align: center;
}

.leaderboard-card__description {
  max-width: 28rem;
}

.leaderboard-card__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(0.6rem, 2.2vw, 1rem);
}

.leaderboard-card__stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: clamp(0.7rem, 2vw, 0.9rem);
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.leaderboard-card__stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 245, 235, 0.65);
}

.leaderboard-card__stat-value {
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 600;
}

.leaderboard-card__stat-value--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.presale-stat__value-amount,
.presale-stat__value-token {
  display: inline-block;
}

.leaderboard-card__stat-icon {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.leaderboard-card__content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow: hidden;
}

.leaderboard-card__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: clamp(0.2rem, 1vw, 0.35rem);
  scrollbar-gutter: stable;
}

.leaderboard-card__scroll::-webkit-scrollbar {
  width: 6px;
}

.leaderboard-card__scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.reward-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 2vw, 0.8rem);
  margin: 0;
  padding: 0;
}

.reward-list__item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: clamp(0.65rem, 2vw, 0.85rem);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 12, 10, 0.5);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
}

.reward-list__rank {
  font-size: 0.9rem;
  font-weight: 600;
  width: 2rem;
  text-align: center;
  color: rgba(250, 245, 235, 0.72);
}

.reward-list__avatar {
  width: clamp(42px, 10vw, 54px);
  height: clamp(42px, 10vw, 54px);
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.reward-list__content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.reward-list__name {
  font-size:  12px;
  font-weight: 600;
}

.reward-list__handle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.reward-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem clamp(0.65rem, 2vw, 1rem);
}

.reward-list__metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.reward-list__metric-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 245, 235, 0.6);
}

.reward-list__metric-value {
  font-size: clamp(0.88rem, 2.5vw, 1rem);
  font-weight: 500;
}

.leaderboard-card__status {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.leaderboard-wrapper {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.leaderboard-wrapper::-webkit-scrollbar {
  height: 6px;
}

.partner-showcase {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.4rem);
}

.partner-showcase__title {
  font-size: clamp(1.05rem, 3.2vw, 1.3rem);
  font-weight: 600;
  text-align: center;
}

.partner-carousel {
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: 999px;

  background: rgba(15, 12, 10, 0.349);
  padding: clamp(0.65rem, 2vw, 0.85rem) clamp(1rem, 4vw, 1.8rem);
  mask-image: radial-gradient(ellipse at center, #000 55%, transparent 95%);
}

.partner-carousel__marquee {
  display: flex;
  align-items: center;
  gap: clamp(1.8rem, 5vw, 3.5rem);
  min-width: 100%;
  animation: partner-marquee 26s linear infinite;
}

.partner-carousel__marquee:nth-child(2) {
  animation-delay: -13s;
}

.partner-carousel:hover .partner-carousel__marquee {
  animation-play-state: paused;
}

.partner-carousel__logo {
  display: block;
  width: clamp(84px, 12vw, 112px);
  height: auto;
  opacity: 0.85;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.45));
}

@keyframes partner-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

.leaderboard-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.leaderboard {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.leaderboard thead {
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.leaderboard__header {
  text-align: left;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard__body {
  font-size: 0.82rem;
}

.leaderboard__row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard__cell {
  padding: 0.55rem 0;
  vertical-align: middle;
}

.leaderboard__cell--rank {
  width: 2.25rem;
  font-weight: 600;
  text-align: center;
}

.leaderboard__cell--wallet {
  font-family: "Space Grotesk", monospace;
  font-size: 0.78rem;
}

.leaderboard__cell--amount,
.leaderboard__cell--rewards {
  text-align: right;
  white-space: nowrap;
}

.leaderboard__status {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}


.presale-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.presale-card__titlegroup {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.presale-card__token {
  width: clamp(22px, 10vw, 32px);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35));
}

.presale-card__title {
  font-size: clamp(1.02rem, 2.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.presale-card__subtitle {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.presale-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}

.presale-actions__whitepaper {
  align-self: flex-start;
}

.outline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text-primary);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.048em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
  text-decoration: none;
}

.outline-action:hover,
.outline-action:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
  outline: none;
}

.presale-actions .primary-action {
  width: 100%;
  padding-inline: 1.3rem;
  white-space: nowrap;
}

.presale-actions__cta {
  margin-top: 0;
}

body.is-modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(3px);
  z-index: 999;
}

.modal-overlay[hidden] {
  display: none !important;
}

.purchase-modal {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.2rem, 3.5vw, 1.6rem);
  border-radius: 13px;
  border: 1px solid var(--card-border);
  background: var(--card-surface);
  box-shadow: var(--shadow-xl);
  position: relative;
}

.purchase-modal::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid var(--card-highlight);
  pointer-events: none;
}

.purchase-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.purchase-modal__title {
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.purchase-modal__close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.purchase-modal__close:hover,
.purchase-modal__close:focus-visible {
  color: var(--text-primary);
  transform: scale(1.08);
  outline: none;
}


.purchase-modal__estimate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: clamp(1.32rem, 3.2vw, 1.68rem);
  font-weight: 700;
  letter-spacing: 0.032em;
  text-align: center;
}

.purchase-modal__estimate-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.purchase-modal__panel {
  margin-top: -0.3rem;
}

.purchase-modal__whitelist-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.purchase-modal__notice {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  background: rgba(255, 106, 85, 0.15);
  border: 1px solid rgba(255, 106, 85, 0.4);
  color: var(--danger);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.purchase-modal__notice span[aria-hidden="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--danger);
  color: #0c0706;
  font-weight: 700;
  font-size: 0.85rem;
}

.purchase-modal__whitelist.is-connected {
  border-color: rgba(255, 106, 85, 0.5);
  background: rgba(255, 106, 85, 0.16);
  color: #ffe1dc;
  box-shadow: 0 0 22px rgba(255, 106, 85, 0.25);
}

.purchase-modal__whitelist.is-connected:hover,
.purchase-modal__whitelist.is-connected:focus-visible {
  outline: none;
  background: linear-gradient(180deg, rgba(255, 136, 111, 0.92), rgba(255, 106, 85, 0.92));
  border-color: transparent;
  color: #fff;
}

.purchase-modal__submit {
  width: 100%;
  margin-top: 0.2rem;
}

.purchase-modal__whitelist {
  width: 100%;
  margin-top: 0.4rem;
}

.purchase-modal__whitelist.is-authorized {
  border-color: rgba(87, 223, 171, 0.55);
  background: linear-gradient(180deg, rgba(18, 60, 44, 0.92), rgba(10, 40, 28, 0.94));
  color: rgba(209, 255, 240, 0.95);
  box-shadow: 0 0 22px rgba(87, 223, 171, 0.3);
}

.purchase-modal__whitelist.is-authorized:hover,
.purchase-modal__whitelist.is-authorized:focus-visible {
  outline: none;
  background: linear-gradient(180deg, rgba(64, 183, 139, 0.98), rgba(31, 121, 92, 0.98));
  border-color: transparent;
  color: #02150f;
}

.purchase-modal__alert {
  margin-top: 0.6rem;
}

.purchase-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.presale-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

.presale-stat {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
  padding: 0.68rem 0.76rem;
  border-radius: 10px;
  background: var(--panel-surface);
  border: 1px solid var(--panel-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.presale-stat__label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.presale-stat__value {
  font-size: 1rem;
  font-weight: 600;
}

.presale-progress {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  position: relative;
  z-index: 1;
}

.presale-progress__track {
  position: relative;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.presale-progress__fill {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, #f6cf5d 0%, #f5c33b 35%, #e1a624 100%);
  box-shadow: 0 0 24px rgba(245, 195, 59, 0.35);
}

.presale-progress__summary {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.presale-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.presale-detail {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.presale-detail__label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.presale-detail__value {
  font-size: 0.86rem;
  font-weight: 600;
}


.swap-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.68rem;
  position: relative;
  z-index: 1;
}

.swap-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.swap-card__titleblock {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.swap-card__title {
  font-size: clamp(0.93rem, 2.24vw, 1.12rem);
  font-weight: 600;
  letter-spacing: 0.016em;
}

.swap-card__network {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.network-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.54rem;
}

.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.016em;
}

.network-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #050505;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.14), inset 0 -3px 6px rgba(0, 0, 0, 0.65);
}

.network-icon__image {
  width: 48%;
  height: 48%;
  object-fit: contain;
}

.network-name {
  font-weight: 600;
}

.swap-stack {
  display: grid;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}

.swap-panel {
  display: flex;
  flex-direction: column;
  gap: 0.68rem;
  padding: 0.68rem 0.92rem;
  border-radius: 10px;
  background: var(--panel-surface);
  border: 1px solid var(--panel-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.swap-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.swap-panel__label {
  text-transform: uppercase;
  letter-spacing: 0.096em;
  font-weight: 600;
}

.swap-panel__meta {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  cursor: pointer;
}

.swap-panel__meta[role="presentation"] {
  cursor: default;
}

.swap-panel__meta--accent {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.064em;
}

.swap-panel__content {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.6rem;
}

.swap-panel__content > .token-select {
  justify-self: end;
}

.amount-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.amount-field input {
  font: inherit;
  font-size: clamp(1.24rem, 3.2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.032em;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  appearance: textfield;
}

#receive-amount {
  color: #b3b3b3;
}

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

.amount-field__hint {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.token-select {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.016em;
  cursor: pointer;
  min-width: 0;
  justify-content: flex-start;
  transition: color 0.2s ease, transform 0.2s ease;
}

.token-select--static {
  cursor: default;
  pointer-events: none;
  color: var(--text-muted);
  transform: none !important;
}

.token-select--static .token-select__label {
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.token-select--static:hover,
.token-select--static:focus-visible {
  color: var(--text-muted);
  transform: none;
}

.token-select:hover,
.token-select:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
  outline: none;
}

.token-select__badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.18), inset 0 -3px 6px rgba(0, 0, 0, 0.55);
}

.token-select__badge--sol {
  background: #1d1d1d;
  border-color: #1d1d1d;
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.22), inset 0 -3px 6px rgba(47, 12, 94, 0.6);
}

.token-select__badge--usdc {
  background: #2775ca;
  border-color: #2775ca;
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.26), inset 0 -3px 6px rgba(15, 49, 110, 0.6);
}

.token-select__badge--usdt {
  background: #0ecc8d;
  border-color: #0ecc8d;
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.24), inset 0 -3px 6px rgba(6, 57, 45, 0.55);
}

.token-select__badge--btc {
  background: linear-gradient(135deg, #f7931a, #f2a900);
  color: linear-gradient(135deg, #f7931a, #f2a900);
  font-weight: 700;
  font-size: 1rem;
}

.token-select__badge--nktx {
  background: #1d1d1d;
  border-color: #1d1d1d;

}

.token-select__image {
  width: 68%;
  height: 68%;
  object-fit: contain;
  display: block;
}

.token-select__badge--accent {
  background: linear-gradient(140deg, rgba(245, 195, 59, 0.35), rgba(245, 195, 59, 0.1));
}

.token-select__label {
  flex: 1;
  text-align: left;
}

.token-select__chevron {
  font-size: 0.72rem;
  opacity: 0.6;
}

.token-select[aria-expanded="true"] {
  color: #ffffff;
}

.token-menu {
  position: absolute;
  min-width: 172px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 16, 13, 0.94);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
  padding: 0.32rem;
  display: grid;
  gap: 0.24rem;
  z-index: 20;
}

.token-menu__option {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.016em;
  padding: 0.48rem 0.52rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease, transform 0.18s ease;
}

.token-menu__option:hover,
.token-menu__option:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.token-menu__option[disabled],
.token-menu__option[aria-disabled="true"] {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.token-menu__option.is-active {
  background: rgba(255, 255, 255, 0.12);
}

.swap-toggle {
  position: relative;
  display: flex;
  justify-content: center;
  margin: -0.92rem auto;
}

.swap-toggle__button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--panel-highlight);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.swap-toggle__button:hover,
.swap-toggle__button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  outline: none;
}

.swap-toggle__icon {
  font-size: 1.2rem;
  line-height: 1;
}

.transaction-alert {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  padding: 0.68rem 0.92rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 123, 109, 0.4);
  background: linear-gradient(180deg, rgba(86, 7, 2, 0.88), rgba(53, 3, 0, 0.92));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: rgba(255, 220, 215, 0.92);
  font-size: 0.72rem;
  letter-spacing: 0.016em;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.transaction-alert.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.transaction-alert--success {
  border-color: rgba(87, 223, 171, 0.4);
  background: linear-gradient(180deg, rgba(5, 41, 28, 0.88), rgba(3, 24, 15, 0.92));
  color: rgba(209, 255, 240, 0.95);
}

.transaction-alert--success .transaction-alert__icon {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.18), rgba(87, 223, 171, 0.1));
  box-shadow: 0 0 0 6px rgba(87, 223, 171, 0.18);
}

.transaction-alert--success .transaction-alert__icon::before {
  content: "✓";
  font-size: 0.74rem;
}

.transaction-alert__icon {
  position: relative;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.18), rgba(255, 106, 85, 0.1));
  box-shadow: 0 0 0 6px rgba(255, 106, 85, 0.16);
  color: rgba(255, 220, 215, 0.94);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: lowercase;
}

.transaction-alert__icon::before {
  content: "i";
}

.transaction-alert__icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.4;
}

.transaction-alert__message {
  flex: 1;
  color: inherit;
}

.accept-action {
  width: 100%;
  padding: 0.68rem 0.92rem;
  border: 1px solid var(--panel-highlight);
  border-radius: 999px;
  background: var(--panel-surface);
  color: var(--text-primary);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.048em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease,
    background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.accept-action:hover,
.accept-action:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #f6cf5d 0%, #f5c33b 35%, #e1a624 100%);
  border-color: transparent;
  box-shadow: 0 0 31px rgba(245, 195, 59, 0.45);
  color: #2a1a03;
  filter: brightness(1.02);
  outline: none;
}

.accept-action--offline,
.accept-action--offline:disabled {
  cursor: not-allowed;
  pointer-events: none;
  border-color: rgba(255, 106, 85, 0.6);
  background: linear-gradient(180deg, rgba(46, 16, 16, 0.96), rgba(28, 10, 10, 0.94));
  color: rgba(255, 218, 213, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.accept-action--offline:hover,
.accept-action--offline:focus-visible,
.accept-action--offline:active {
  transform: none;
  filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, rgba(46, 16, 16, 0.96), rgba(28, 10, 10, 0.94));
  color: rgba(255, 218, 213, 0.88);
}

.accept-action:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.wallet-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wallet-actions .primary-action {
  margin-top: 0;
  flex: 1;
}

.primary-action {
  margin-top: 0.2rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 0.92rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #f6cf5d 0%, #f5c33b 35%, #e1a624 100%);
  color: #2a1a03;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.048em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-decoration: none;
}

.primary-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  filter: none;
}

.primary-action:disabled:hover,
.primary-action:disabled:focus-visible {
  transform: none;
  box-shadow: none;
  filter: none;
  outline: none;
}

.primary-action.is-connected {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.primary-action.is-connected:hover,
.primary-action.is-connected:focus-visible,
.primary-action.is-connected.is-disconnect-state {
  background: linear-gradient(180deg, #ff9f88 0%, #ff6a55 100%);
  color: #fff;
  box-shadow: 0 0 31px rgba(255, 106, 85, 0.45);
  outline: none;
}

.primary-action.is-connected:active {
  filter: brightness(0.95);
}

.primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 31px rgba(245, 195, 59, 0.45);
  filter: brightness(1.05);
}

.primary-action:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

@media (max-width: 520px) {
  .layout {
    
  }

  .swap-card {
    padding: 1.2rem;
    gap: 0.88rem;
  }

  .presale-card {
    padding: 1.2rem;
    gap: 1rem;
  }

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

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

  .swap-card__heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .token-select {
    justify-content: flex-start;
  }

  .swap-toggle__button {
    width: 35px;
    height: 35px;
  }
}
