/* Mnk3ys — NFT + Token template. Mobile-first; side nav desktop, bottom nav mobile. */

:root {
  --bg: #0d0e12;
  --bg-elevated: #16181f;
  --bg-card: #1a1c24;
  --border: #2a2d38;
  --text: #e8eaef;
  --text-muted: #8b8f9a;
  --accent: #9945ff;
  --accent-hover: #b366ff;
  --accent-dim: rgba(153, 69, 255, 0.2);
  --success: #14f195;
  --success-dim: rgba(20, 241, 149, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --side-width: 260px;
  --bottom-height: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --safe-top: env(safe-area-inset-top, 0);
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-height) + var(--safe-bottom));
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}

/* ——— Sticky social (Discord + X, white on transparent) ——— */
.social-sticky {
  position: fixed;
  top: calc(0.75rem + var(--safe-top));
  right: 1rem;
  z-index: 101;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 900px) {
  .social-sticky {
    right: 1.5rem;
    top: calc(1rem + var(--safe-top));
  }
}
.social-sticky__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.social-sticky__btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.social-sticky__icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ——— Hero homepage (MNK3YLABS / STRONGER TOGETHER) ——— */
.hero-home {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem 4rem;
  padding-top: max(3rem, calc(5vh + var(--safe-top, 0)));
  overflow: hidden;
}
.hero-home__bg {
  position: absolute;
  inset: 0;
  background:
    url("../assets/hero-bg.png") center / cover no-repeat,
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(34, 85, 51, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, rgba(13, 14, 18, 0.72) 0%, rgba(13, 14, 18, 0.92) 100%);
  z-index: 0;
}
.hero-home__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5c-2 8-6 14-10 18-4 4-8 6-12 7' stroke='%231a2e22' stroke-width='0.6' fill='none' opacity='0.3'/%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: 1;
}
.hero-home__content {
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.hero-home__content-inner {
  max-width: 720px;
  width: 100%;
  text-align: center;
}
.hero-home__title {
  margin: 0 0 0.25rem;
  width: 100%;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2rem, 11vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
  text-align: center !important;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
@media (min-width: 900px) {
  .hero-home__title {
    font-size: clamp(3.5rem, 5.5vw, 5.5rem);
  }
}
.hero-home__title > span {
  display: inline-block;
  transform: scaleY(1.75);
  transform-origin: center;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 45%, rgba(255, 255, 255, 0.3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.8)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}
.hero-home__tagline {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6);
}
.hero-home__sub {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6);
}
.hero-home__sub .hero-home__solana-icon {
  vertical-align: middle;
  margin: 0 0.2em;
}
.hero-home__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.btn--hero-verify {
  padding: 1.3rem 3.6rem;
  font-size: 1.5rem;
  min-height: 72px;
  border-radius: 999px;
  border: 4px solid #fff !important;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.7), 0 18px 40px rgba(0, 0, 0, 0.8);
}

.hero-home__slotto {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}
.hero-home__slotto-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #d4af37;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  text-align: right;
}
.hero-home__slotto-btn {
  display: block;
  width: 100%;
  min-width: 140px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: url("../assets/slotto.png") center / 100% auto no-repeat;
  text-indent: -9999px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.hero-home__slotto-btn:hover {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Portrait: same hero bg as desktop, content centered */
@media (orientation: portrait) {
  .hero-home__bg::after {
    opacity: 0.25;
  }
  .hero-home {
    align-items: flex-start;
    justify-content: center;
    padding-top: max(2.5rem, calc(4vh + var(--safe-top)));
  }
}
@media (orientation: portrait) and (max-width: 899px) {
  .btn--hero-verify {
    padding: 1.1rem 2.5rem;
    font-size: 1.2rem;
    min-height: 60px;
  }
}
@media (max-width: 899px) {
  .hero-home__slotto {
    bottom: 1.5rem;
    right: 1rem;
  }
  .hero-home__slotto-label {
    font-size: 0.65rem;
  }
  .hero-home__slotto-btn {
    min-width: 110px;
    height: 40px;
  }
}

/* Landscape: content at top, centered */
@media (orientation: landscape) {
  .hero-home {
    align-items: flex-start;
    justify-content: center;
    padding-top: max(3rem, calc(5vh + var(--safe-top, 0)));
    padding-bottom: 4rem;
  }
}

/* Force hero content centered on all screen sizes — wins over any other rule */
#home.hero-home.section {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: flex-start !important;
}
#home .hero-home__content {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  direction: ltr !important;
}
#home .hero-home__content-inner {
  text-align: center !important;
  direction: ltr !important;
}
#home .hero-home__title {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  text-align: center !important;
  direction: ltr !important;
}
#home .hero-home__tagline,
#home .hero-home__sub {
  text-align: center !important;
  direction: ltr !important;
}
#home .hero-home__actions {
  justify-content: center !important;
}

.main {
  min-height: 100%;
}
.main__spacer--side {
  display: none;
}
.main__spacer--bottom {
  height: calc(var(--bottom-height) + var(--safe-bottom));
}
@media (max-width: 899px) {
  .main__spacer--bottom {
    height: 1.5rem;
  }
}
@media (min-width: 900px) {
  .main {
    margin-left: var(--side-width);
    width: calc(100vw - var(--side-width));
  }
  .main__spacer--side,
  .main__spacer--bottom {
    display: none;
  }
}

.dashboard--side {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: var(--side-width);
  height: 100%;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  flex-direction: column;
  z-index: 100;
  padding: 1rem;
  padding-top: calc(1rem + var(--safe-top));
  overflow-y: auto;
}
@media (min-width: 900px) {
  .dashboard--side {
    display: flex;
  }
}

.dashboard__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.dashboard__logo-wrap {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard__logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dashboard__title {
  font-weight: 700;
  font-size: 1.125rem;
}

.dashboard__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}
.dashboard__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.dashboard__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dashboard__icon svg {
  width: 100%;
  height: 100%;
}
.dashboard__link--disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.85;
}
.dashboard__link-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.15rem;
}
.dashboard__thumb {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
}
.dashboard__icon--logo {
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dashboard__icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dashboard__link:hover {
  color: var(--text);
  background: var(--accent-dim);
}
.dashboard__link--active {
  color: var(--accent);
  background: var(--accent-dim);
}

.dashboard__verify {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.dashboard__verify .btn + .btn {
  margin-top: 0.5rem;
}

.dashboard__discord-wrap {
  margin-top: 0.5rem;
}
.dashboard__discord-connected {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.dashboard__discord-connected[hidden] {
  display: none;
}
.dashboard__discord-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.dashboard__discord-username {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard__discord-logout {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.dashboard__discord-logout:hover {
  color: var(--text);
  background: var(--bg-hover);
}
#btn-connect-discord[hidden],
#btn-connect-discord-mobile[hidden],
#verify-modal-btn-discord[hidden] {
  display: none !important;
}

.dashboard--bottom {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bottom-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  z-index: 100;
  justify-content: space-around;
  align-items: center;
}
@media (min-width: 900px) {
  .dashboard--bottom {
    display: none;
  }
}

.dashboard-bottom__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.25rem;
  min-width: 0;
  flex: 1;
  max-width: 72px;
  min-height: 52px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.dashboard-bottom__item:hover,
.dashboard-bottom__item:focus-visible {
  color: var(--text);
  background: var(--accent-dim);
}
.dashboard-bottom__item--active {
  color: var(--accent);
}
.dashboard-bottom__item--verify {
  color: var(--success);
}
.dashboard-bottom__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.dashboard-bottom__icon .dashboard-bottom__svg {
  width: 100%;
  height: 100%;
}
.dashboard-bottom__thumb {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.dashboard-bottom__icon--logo {
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dashboard-bottom__icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dashboard-bottom__label {
  line-height: 1.2;
}

.panel {
  position: fixed;
  bottom: calc(var(--bottom-height) + var(--safe-bottom));
  left: 0;
  right: 0;
  max-height: 70vh;
  background: var(--bg-elevated);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  border-top: 1px solid var(--border);
  z-index: 99;
  transition: transform 0.25s ease-out, visibility 0.25s;
  visibility: visible;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.panel--hidden {
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
}
@media (min-width: 900px) {
  .panel {
    display: none;
  }
}

.panel__handle {
  flex-shrink: 0;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}
.panel__handle::before {
  content: '';
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}
.panel__inner {
  padding: 0 1rem 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.panel__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}
.panel__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.panel__link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0;
}
.panel__link--disabled {
  pointer-events: none;
  cursor: default;
  color: var(--text-muted);
  opacity: 0.9;
}
.panel__link-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.2rem;
}
.panel__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.panel__actions .btn + .btn,
.panel__actions .dashboard__discord-wrap {
  margin-top: 0;
}
.panel .btn + .btn {
  margin-top: 0.5rem;
}

/* Verify modal: 3 steps */
.verify-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s, opacity 0.2s;
}
.verify-modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}
.verify-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.verify-modal__box {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.verify-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.verify-modal__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}
.verify-modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -0.5rem -0.5rem -0.5rem 0;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.verify-modal__close:hover {
  color: var(--text);
  background: var(--bg-hover);
}
.verify-modal__body {
  padding: 1.25rem;
}
.verify-modal__step {
  margin-bottom: 1.25rem;
}
.verify-modal__step:last-child {
  margin-bottom: 0;
}
.verify-modal__step-label {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}
.verify-modal__discord-connected,
.verify-modal__wallet-connected {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.verify-modal__discord-connected[hidden],
.verify-modal__wallet-connected[hidden] {
  display: none;
}
.verify-modal__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.verify-modal__username {
  font-weight: 500;
}
.verify-modal__address {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  word-break: break-all;
  color: var(--text-muted);
}
.verify-modal__success[hidden] {
  display: none;
}
.verify-modal__success {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(34, 85, 51, 0.15);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 85, 51, 0.3);
}
.verify-modal__success-msg {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
}
.verify-modal .btn + .btn {
  margin-top: 0.5rem;
}
.hero-home__actions--verified .btn--hero-verify {
  display: none;
}

/* Wallet picker modal */
.wallet-picker {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s, opacity 0.2s;
}
.wallet-picker[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}
.wallet-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.wallet-picker__box {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.wallet-picker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.wallet-picker__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}
.wallet-picker__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -0.5rem -0.5rem -0.5rem 0;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.wallet-picker__close:hover {
  color: var(--text);
  background: var(--bg-hover);
}
.wallet-picker__list {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.wallet-picker__btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.wallet-picker__btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}
.btn__icon {
  display: inline-flex;
  width: 1.125em;
  height: 1.125em;
}
.btn__icon svg {
  width: 100%;
  height: 100%;
}
.btn--full {
  width: 100%;
}
.btn--sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  min-height: 36px;
}
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--outline:hover:not(:disabled) {
  background: var(--accent-dim);
  border-color: var(--accent);
}

/* Pairs page: Connect wallet button — filled, white text */
.pairs-page .pairs-header__right .btn--outline {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.pairs-page .pairs-header__right .btn--outline:hover:not(:disabled) {
  background: var(--accent-hover);
  color: #fff;
  border-color: var(--accent-hover);
}

.holdings {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.holdings--hidden {
  display: none;
}
.holdings.holdings--visible {
  display: block;
}
.holdings__label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.holdings__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  font-size: 0.875rem;
}
.holdings__key {
  color: var(--text-muted);
}
.holdings__value {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--success);
}

.section {
  padding: 2rem 1rem;
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
.section .container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
@media (min-width: 900px) {
  .section {
    padding: 2rem 2.5rem;
    max-width: none;
    width: 100%;
    margin: 0;
  }
  .main .section .container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 2.5rem;
  }
}

.section--hero {
  padding-top: max(3rem, calc(5vh + var(--safe-top)));
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: row;   /* override .section’s column: main axis = horizontal so justify-content centers the block */
  align-items: flex-start;
  justify-content: center;
}
.hero-home.section {
  padding: 0;
  padding-top: max(3rem, calc(5vh + var(--safe-top)));
}
/* Holders: section fits in one viewport, table scrolls inside */
#holders.section {
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}
#holders .container {
  justify-content: flex-start;
  min-height: 0;
  overflow: hidden;
}
#holders .holders-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-height: none;
}
.section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(2.25rem, 3vw, 3rem);
  font-weight: 700;
}
.section__lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}
.hero__tagline {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 36ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero__social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}
.hero__social-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}
.hero__social-link:hover {
  color: var(--accent);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.card__title {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 600;
}
.card__text {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.card__text:last-child {
  margin-bottom: 0;
}
.card__meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.card__image {
  aspect-ratio: 1;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}
.card--nft .card__image {
  background: linear-gradient(135deg, var(--accent-dim) 0%, var(--bg-elevated) 100%);
}

/* Collection embed cards (from /api/collections) */
.card--embed {
  padding: 0;
  overflow: hidden;
}
.card--embed .embed__media {
  aspect-ratio: 1;
  background: var(--bg-elevated);
  overflow: hidden;
}
.card--embed .embed__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card--embed .embed__media--placeholder {
  background: linear-gradient(135deg, var(--accent-dim) 0%, var(--bg-elevated) 100%);
}
.card--embed .embed__body {
  padding: 1rem 1.25rem;
}
.card--embed .embed__body .card__title {
  margin-bottom: 0.35rem;
}
.card--embed .embed__body .card__text {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
}
.card--embed .embed__stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.card--embed .embed__stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.card--embed .embed__stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.card--embed .embed__stat-value {
  font-size: 0.875rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--success);
}

/* Collections: Magic Eden / Tensor buttons */
.collections__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.collections__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  width: 160px;
  overflow: hidden;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.collections__btn:hover {
  transform: translateY(-1px);
}
.collections__btn-img {
  display: block;
  max-height: 100%;
  width: auto;
}
.collections__btn-img--me {
  max-height: 100%;
}

/* Lunarverse full-width card with banner background */
.card--lunarverse {
  display: block;
  width: 100%;
  min-height: 360px;
  padding: 0;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.card--lunarverse:hover {
  opacity: 0.95;
}
.card--lunarverse .card__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/lunarverse-bg.png") center / cover no-repeat;
  z-index: 0;
}
.card--lunarverse .card__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 14, 18, 0.85) 0%, rgba(13, 14, 18, 0.5) 50%, rgba(13, 14, 18, 0.3) 100%);
  z-index: 1;
}
.card--lunarverse .card__lunarverse-content {
  position: relative;
  z-index: 2;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 360px;
}
.card--lunarverse .card__title {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.card--lunarverse .card__text {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  font-size: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.card--lunarverse .btn {
  pointer-events: none;
}

/* NFT staking card — GOTM Labz (one card with image bg, text + 2 buttons inside) */
.card--gotm {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 360px;
}
.card--gotm .card__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/gotm-labz-bg.png") right bottom / cover no-repeat;
  z-index: 0;
}
.card--gotm .card__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 14, 18, 0.88) 0%, rgba(13, 14, 18, 0.6) 50%, rgba(13, 14, 18, 0.4) 100%);
  z-index: 1;
}
.card--gotm .card__gotm-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
}
.card--gotm .card__title {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.card--gotm .card__text {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.card--gotm .card__gotm-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.card--gotm .card__gotm-buttons .btn--outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.card--gotm .card__gotm-buttons .btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Stake BLUNANA with MOB TOOLS — card with MOBTOOLS logo bg */
.card--mobtools {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 360px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.card--mobtools:hover {
  opacity: 0.98;
}
.card--mobtools .card__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/mobtools-bg.png") right bottom / cover no-repeat;
  z-index: 0;
}
.card--mobtools .card__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 14, 18, 0.82) 0%, rgba(13, 14, 18, 0.45) 55%, transparent 100%);
  z-index: 1;
}
.card--mobtools .card__mobtools-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 360px;
}
.card--mobtools .card__title {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.card--mobtools .card__text {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.card--mobtools .btn {
  pointer-events: none;
}

/* Utility cards (Uni-Fy, Flux Inc) — banner bg pinned bottom-right so logo stays visible on shrink */
.card--utility {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 360px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.card--utility:hover {
  opacity: 0.98;
}
.card--utility .card__bg {
  position: absolute;
  inset: 0;
  background: #1a1a2e right bottom / cover no-repeat;
  z-index: 0;
}
.card--utility .card__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 14, 18, 0.88) 0%, rgba(13, 14, 18, 0.5) 55%, transparent 100%);
  z-index: 1;
}
.card--utility .card__utility-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 360px;
}
.card--utility .card__title {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.card--utility .card__text {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.card--utility .btn {
  pointer-events: none;
}
.card--unify .card__bg {
  background-image: url("../assets/uni-fy-banner.png");
  background-position: right bottom;
  background-size: cover;
}
.card--flux .card__bg {
  background-image: url("../assets/flux-inc-banner.png");
  background-position: right bottom;
  background-size: cover;
}

/* Trait Store — full-width card with right-aligned upgrade image */
.card--traitstore {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}
.card__trait-content {
  flex: 1 1 0;
  max-width: 60%;
}
.card__trait-image {
  flex: 0 0 180px;
  height: 140px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 20%, rgba(153, 69, 255, 0.4) 0, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(20, 241, 149, 0.35) 0, transparent 55%),
    linear-gradient(135deg, #14151d 0%, #181b25 50%, #101118 100%);
  border: 1px solid var(--border);
}
@media (max-width: 640px) {
  .card--traitstore {
    flex-direction: column;
    align-items: flex-start;
  }
  .card__trait-content {
    max-width: 100%;
  }
  .card__trait-image {
    width: 100%;
    height: 120px;
  }
}

.card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-elevated);
  margin-bottom: 0.75rem;
}
.card__avatar-wrap {
  margin-bottom: 0.75rem;
}
.card__avatar--img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Blunana, Partners: shared background image */
#blunana,
#partners {
  position: relative;
  overflow: hidden;
}
#blunana::before,
#partners::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("../assets/blunana-bg.png") center / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}
#blunana .container,
#partners .container {
  position: relative;
  z-index: 1;
}

/* X spaces: banner as background, text overlay */
#x-spaces {
  position: relative;
  overflow: hidden;
}
#x-spaces .section__title {
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.x-spaces__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/jungle-juice-banner.png") center / cover no-repeat;
  z-index: 0;
}
#x-spaces .x-spaces__content {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  max-width: 720px;
  min-height: 24rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.x-spaces__top {
  margin-bottom: 1rem;
}
.x-spaces__top .x-spaces__lead {
  margin-top: 0.5rem;
}
.x-spaces__bottom {
  margin-top: auto;
  padding-bottom: 3rem;
}
.x-spaces__tagline {
  margin: 0 0 0.75rem;
  font-style: italic;
  font-size: 1.875rem;
  font-weight: 400;
  color: #d4af37;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.x-spaces__lead,
.x-spaces__time {
  margin: 0 0 0.5rem;
  color: var(--text);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.x-spaces__time {
  font-size: 1.5rem;
  font-weight: 600;
}
.x-spaces__hosts {
  margin: 0;
  color: var(--text);
  font-size: 1.25rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.x-spaces__link {
  color: var(--accent);
  text-decoration: none;
}
.x-spaces__link:hover {
  text-decoration: underline;
}

/* Mobile: use banner as card image instead of full bg */
@media (max-width: 899px) {
  .x-spaces__bg {
    display: none;
  }
  .x-spaces__card-img {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0.25rem auto 2.5rem;
    border-radius: var(--radius);
    object-fit: contain;
  }
  .x-spaces__tagline {
    text-align: center;
    margin: 1rem 0 4rem;
  }
  #x-spaces .x-spaces__content {
    min-height: 0;
    justify-content: flex-start;
  }
  #x-spaces .section__title,
  .x-spaces__lead,
  .x-spaces__time,
  .x-spaces__hosts,
  .x-spaces__tagline {
    text-shadow: none;
  }
}
@media (min-width: 900px) {
  .x-spaces__card-img {
    display: none;
  }
}

/* Team cards: square image, centered in card with padding above */
.card--team .card__avatar-wrap {
  width: 100%;
  aspect-ratio: 1;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  border-radius: var(--radius);
}
.card--team .card__avatar,
.card--team .card__avatar--img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  display: block;
}
.card--team .card__avatar--img {
  aspect-ratio: 1;
  object-fit: cover;
}
.card__meta--handle .link {
  font-size: 0.875rem;
  color: var(--accent);
}

/* Holders table */
.holders-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.holders-toolbar__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}
.holders-toolbar__select {
  padding: 0.4rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}
.holders-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  max-height: min(80rem, 80vh);
}
@media (min-width: 900px) {
  .holders-wrap {
    max-height: none; /* section is 100vh, flex fills space */
  }
}
.holders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.holders-table th,
.holders-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.holders-table th {
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: 0 1px 0 var(--border);
}
.holders-table tbody tr:last-child td {
  border-bottom: none;
}
.holders-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
.holders-table td:first-child {
  color: var(--text-muted);
  width: 2.5rem;
}
/* Show only relevant columns by sort: one count column + Value ($) */
.holders-table--sort-token th[data-col="mnk3ys"],
.holders-table--sort-token th[data-col="zmb3ys"],
.holders-table--sort-token th[data-col="blunanas"],
.holders-table--sort-token th[data-col="nfts"],
.holders-table--sort-token td[data-col="mnk3ys"],
.holders-table--sort-token td[data-col="zmb3ys"],
.holders-table--sort-token td[data-col="blunanas"],
.holders-table--sort-token td[data-col="nfts"] {
  display: none;
}
.holders-table--sort-mnk3ys th[data-col="token"],
.holders-table--sort-mnk3ys th[data-col="zmb3ys"],
.holders-table--sort-mnk3ys th[data-col="blunanas"],
.holders-table--sort-mnk3ys th[data-col="nfts"],
.holders-table--sort-mnk3ys td[data-col="token"],
.holders-table--sort-mnk3ys td[data-col="zmb3ys"],
.holders-table--sort-mnk3ys td[data-col="blunanas"],
.holders-table--sort-mnk3ys td[data-col="nfts"] {
  display: none;
}
.holders-table--sort-zmb3ys th[data-col="token"],
.holders-table--sort-zmb3ys th[data-col="mnk3ys"],
.holders-table--sort-zmb3ys th[data-col="blunanas"],
.holders-table--sort-zmb3ys th[data-col="nfts"],
.holders-table--sort-zmb3ys td[data-col="token"],
.holders-table--sort-zmb3ys td[data-col="mnk3ys"],
.holders-table--sort-zmb3ys td[data-col="blunanas"],
.holders-table--sort-zmb3ys td[data-col="nfts"] {
  display: none;
}
.holders-table--sort-blunanas th[data-col="token"],
.holders-table--sort-blunanas th[data-col="mnk3ys"],
.holders-table--sort-blunanas th[data-col="zmb3ys"],
.holders-table--sort-blunanas th[data-col="nfts"],
.holders-table--sort-blunanas td[data-col="token"],
.holders-table--sort-blunanas td[data-col="mnk3ys"],
.holders-table--sort-blunanas td[data-col="zmb3ys"],
.holders-table--sort-blunanas td[data-col="nfts"] {
  display: none;
}
.holders-table--sort-nfts th[data-col="token"],
.holders-table--sort-nfts th[data-col="mnk3ys"],
.holders-table--sort-nfts th[data-col="zmb3ys"],
.holders-table--sort-nfts th[data-col="blunanas"],
.holders-table--sort-nfts td[data-col="token"],
.holders-table--sort-nfts td[data-col="mnk3ys"],
.holders-table--sort-nfts td[data-col="zmb3ys"],
.holders-table--sort-nfts td[data-col="blunanas"] {
  display: none;
}
.holders-wallet {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-mono);
}
.holders-wallet:hover {
  text-decoration: underline;
}
.holders-loading,
.holders-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 1.5rem !important;
}

.grid {
  display: grid;
  gap: 1rem;
}
.grid--2 {
  grid-template-columns: 1fr 1fr;
}
.grid--3 {
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* Stack 2-column grids (like Collections) vertically on portrait / narrow viewports */
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.link:hover {
  text-decoration: underline;
}
.link--external::after {
  content: ' ↗';
  font-size: 0.85em;
}

/* Tokenomics — DEXTools-style price + 15m chart */
.card--tokenomics .tokenomics__head {
  margin-bottom: 1rem;
}
.tokenomics__price-block {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.tokenomics__price-label {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.tokenomics__price-main {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--success);
}
.tokenomics__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.tokenomics__change {
  font-weight: 600;
}
.tokenomics__change--pos { color: var(--success); }
.tokenomics__change--neg { color: #f87171; }
.tokenomics__price-sol {
  font-family: var(--font-mono);
}
.tokenomics__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 0;
}
.tokenomics__metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.tokenomics__metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.tokenomics__metric-value {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}
.tokenomics__chart-wrap {
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}
.tokenomics__chart-label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.tokenomics__chart {
  width: 100%;
  height: 280px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.tokenomics__chart-hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.tokenomics__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.tokenomics__btn-icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
  margin-right: 0.4em;
  object-fit: contain;
}
.tokenomics__summary {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}
.tokenomics__summary p {
  margin: 0.25rem 0;
}
.tokenomics__solana-icon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.35em;
}
.tokenomics__contract {
  display: block;
  margin-top: 0.25rem;
  padding: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  word-break: break-all;
  background: var(--bg);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem 3rem;
  align-items: start;
  justify-items: center;
  margin-top: 2rem;
  min-height: 20rem;
  padding: 3rem 0;
}
/* Row 1: cols 2, 4 | Row 2: cols 1, 3, 5 | Row 3: cols 2, 4 */
.partners__item:nth-child(1) { grid-column: 2; }
.partners__item:nth-child(2) { grid-column: 4; }
.partners__item:nth-child(3) { grid-column: 1; }
.partners__item:nth-child(4) { grid-column: 3; }
.partners__item:nth-child(5) { grid-column: 5; }
.partners__item:nth-child(6) { grid-column: 2; }
.partners__item:nth-child(7) { grid-column: 4; }
.partners__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 120px;
}
.partners__logo {
  width: 100%;
  max-width: 400px;
  max-height: 180px;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.partners__logo:hover {
  opacity: 1;
}
.partners__name {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

/* Partners mobile: 5 rows, 3 cols — rows 1,3,5 col 2; rows 2,4 cols 1,3 */
@media (max-width: 899px) {
  .partners__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1rem;
    min-height: 0;
    padding: 2rem 0;
  }
  .partners__item:nth-child(1) { grid-column: 2; grid-row: 1; }
  .partners__item:nth-child(2) { grid-column: 1; grid-row: 2; }
  .partners__item:nth-child(3) { grid-column: 3; grid-row: 2; }
  .partners__item:nth-child(4) { grid-column: 2; grid-row: 3; }
  .partners__item:nth-child(5) { grid-column: 1; grid-row: 4; }
  .partners__item:nth-child(6) { grid-column: 3; grid-row: 4; }
  .partners__item:nth-child(7) { grid-column: 2; grid-row: 5; }
  .partners__logo {
    max-width: 120px;
    max-height: 60px;
  }
}

.footer {
  padding: 2rem 1rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
@media (max-width: 899px) {
  .footer {
    padding: 0.75rem 1rem 0.5rem;
    margin-top: 0.5rem;
  }
  .footer__copy {
    margin-bottom: 0.5rem;
  }
}
.footer .container {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.footer__copy {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.footer__logo {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 50%;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.footer__links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer__links a:hover {
  color: var(--text);
}
.footer__icon {
  width: 22px;
  height: 22px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel { transition: none; }
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
