:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.72);
  --muted2: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.09);
  --grid: rgba(255, 255, 255, 0.06);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.7);
}

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

/* Ensure boolean `hidden` always hides elements (prevents any overrides). */
[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
  /* Prevent double-tap zoom on mobile while keeping scrolling/pinch-zoom sane. */
  touch-action: manipulation;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
}

/* Subtle site-wide grid + vignette like the reference screenshots */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
}

body::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(60% 45% at 50% 20%, rgba(84, 212, 143, 0.16), transparent 55%),
    radial-gradient(70% 60% at 50% 40%, rgba(0, 0, 0, 0.2), transparent 65%),
    radial-gradient(90% 90% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.78) 78%);
  pointer-events: none;
}

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

/* ------------------------------ */
/* AI Narrative Map (bubble view) */
/* ------------------------------ */
.nmap-root {
  position: relative;
  min-height: 100vh;
  height: 100vh;
}

.nmap-canvas {
  position: absolute;
  top: var(--mb-header-h, 70px);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% - var(--mb-header-h, 70px));
  display: block;
}

.nmap-ui {
  position: absolute;
  left: auto;
  right: 16px;
  top: calc(var(--mb-header-h, 70px) + 16px);
  z-index: 30;
  width: auto;
}

/* Legend + Share grouped (top-right) */
.nmap-ui-bar {
  display: flex;
  justify-content: flex-end;
  align-items: start;
  gap: 10px;
}

.nmap-ui .nmap-card {
  width: fit-content;
}

.nmap-hero-bottom-badge {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  justify-content: center;
  width: calc(100% - 24px);
  pointer-events: none;
  /* don't block map interactions */
}

.nmap-hero-bottom-badge .header-ticker-sold {
  pointer-events: auto;
  /* allow tooltip hover/tap */
}

/* When the badge is at the bottom, show tooltip above it. */
.nmap-hero-bottom-badge .header-ticker-sold[data-tooltip]::after {
  top: auto;
  bottom: calc(100% + 10px);
  right: 50%;
  transform: translate(50%, 4px);
}

.nmap-hero-bottom-badge .header-ticker-sold[data-tooltip]:hover::after {
  transform: translate(50%, 0);
}

.nmap-ad-pill {
  position: absolute;
  left: 16px;
  top: calc(var(--mb-header-h, 70px) + 16px);
  z-index: 30;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 700;
}

.nmap-ad-pill.btn-card {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.nmap-fab-bot {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  width: 100px;
  height: 100px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nmap-fab-icon {
  width: 44px;
  height: 44px;
  display: block;
}

.nmap-xbot-pop {
  position: absolute;
  right: 16px;
  bottom: 128px;
  /* above the 100px FAB + margin */
  z-index: 31;
  width: 320px;
  max-width: min(320px, calc(100vw - 24px));
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nmap-xbot-pop.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nmap-xbot-bubble {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.7);
  padding: 12px 12px;
}

.nmap-xbot-bubble::after {
  content: "";
  position: absolute;
  right: 32px;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: rgba(0, 0, 0, 0.44);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotate(45deg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nmap-xbot-title {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 10px;
}

.wallet-modal-card--xbot {
  width: calc(100vw - 24px);
  max-width: 560px;
}

.xbot-command-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nmap-share-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nmap-share-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.nmap-download-label {
  margin-left: 10px;
}

@media (max-width: 820px), (pointer: coarse) {
  /* Homepage map UI buttons: icon-only on mobile */
  .nmap-ui-bar button[data-mb-download-map] .nmap-download-label,
  .nmap-ui-bar button[data-mb-info-open] .nmap-download-label {
    display: none;
  }

  .nmap-ui-bar button[data-mb-download-map],
  .nmap-ui-bar button[data-mb-info-open] {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Header connect wallet: icon-only on mobile */
  button[data-wallet-connect] .nav-connect-label {
    display: none;
  }
  button[data-wallet-connect] .tag-with-icon {
    gap: 0;
  }
  button[data-wallet-connect] {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Compact legend pill (map UI only) */
.nmap-ui .accordion-trigger {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
}

.nmap-ui .accordion-icon {
  width: 16px;
  height: 16px;
}

.nmap-ui .accordion-icon::before,
.nmap-ui .accordion-icon::after {
  width: 9px;
}

.nmap-ui .btn-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.nmap-card,
.nmap-panel-card {
  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nmap-card .card-body {
  padding-top: 10px;
}

.nmap-controls {
  display: grid;
  gap: 10px;
}

.nmap-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.nmap-panel {
  position: fixed;
  right: 16px;
  top: calc(var(--mb-header-h, 70px) + 16px);
  z-index: 35;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - (var(--mb-header-h, 70px) + 32px));
  overflow: auto;
}

.nmap-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.nmap-panel-sub {
  margin-bottom: 10px;
}

.nmap-tags {
  margin-bottom: 12px;
}

.nmap-token-list {
  display: grid;
  gap: 10px;
}

.nmap-token-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.nmap-token-main {
  min-width: 0;
}

.nmap-token-sym {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nmap-token-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 920px) {
  .nmap-ui {
    left: auto;
    right: 12px;
    top: calc(var(--mb-header-h, 70px) + 6px);
    width: auto;
  }

  .nmap-ui .nmap-card {
    width: min(300px, calc(100vw - 96px));
  }

  .nmap-ad-pill {
    left: 12px;
    top: calc(var(--mb-header-h, 70px) + 6px);
  }

  .nmap-fab-bot {
    right: 12px;
    bottom: 12px;
  }

  .nmap-xbot-pop {
    right: 12px;
    bottom: 124px;
  }

  .nmap-panel {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    width: auto;
    max-height: 46vh;
  }
}

@media (max-width: 600px) {
  .nmap-ad-pill {
    top: auto;
    bottom: 16px;
    left: 12px;
  }

  .nmap-ui .accordion-trigger {
    padding: 10px 14px;
    font-size: 13px;
  }

  .nmap-xbot-pop {
    right: 12px;
    bottom: 124px;
    width: 300px;
    max-width: calc(100vw - 24px);
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 0px solid var(--line);
}

.refresh-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(40, 40, 40, 0.95);
  cursor: help;
  user-select: none;
}

.refresh-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: #54d48f;
}

@keyframes mbRefreshPulse {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 rgba(84, 212, 143, 0.0);
  }

  50% {
    opacity: 0.2;
    box-shadow: 0 0 18px rgba(84, 212, 143, 0.55);
  }

  100% {
    opacity: 1;
    box-shadow: 0 0 0 rgba(84, 212, 143, 0.0);
  }
}

.refresh-progress.is-loading .refresh-progress-bar {
  animation: mbRefreshPulse 900ms ease-in-out infinite;
}

.refresh-progress-bar.is-loading {
  animation: mbRefreshPulse 900ms ease-in-out infinite;
}

.header-center-caption-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
  /* Allow interacting with the date picker inside this container */
  pointer-events: auto;
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 100;
}

.caption {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

/* Keep the center caption text itself non-clickable (but allow the picker) */
.header-center-caption-container .header-center-caption {
  pointer-events: none;
}

.header-center-caption-container .header-week-picker,
.header-center-caption-container .header-week-picker-field,
.header-center-caption-container .header-week-picker-input,
.header-center-caption-container .header-week-picker-caret,
.header-center-caption-container .day-picker-popover {
  pointer-events: auto;
}

.mobile-archives-slot {
  width: 100%;
  max-width: 1000px;
  margin: 12px auto 0;
  padding: 0 12px;
  position: relative;
  z-index: 5;
}

/* When the archives picker is moved under the canvas, it should behave like normal flow content */
.mobile-archives-slot .header-center-caption-container {
  position: static;
  left: auto;
  transform: none;
  z-index: auto;
  width: 100%;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 520px) {

  /* Hide it in the fixed header on mobile; it will be moved below the canvas */
  .site-header .header-center-caption-container {
    display: none;
  }

  .mobile-archives-slot .header-center-caption-container {
    display: flex;
  }
}

.header-center-caption {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.1;
  white-space: nowrap;
  pointer-events: none;
  text-align: center;
}

.header-center-subtitle {
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
  pointer-events: none;
  text-align: center;
}

.header-live-users {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.86);
  user-select: none;
  pointer-events: none;
}

.header-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #54d48f;
  box-shadow: 0 0 0 3px rgba(84, 212, 143, 0.16), 0 0 18px rgba(84, 212, 143, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: block;
  flex: 0 0 auto;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.25));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.nav-wallet-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nav-wallet-btn--pending {
  pointer-events: none;
  padding: 10px 12px;
}

.nav-wallet-loading-icon {
  width: 16px;
  height: 16px;
  display: block;
  opacity: 0.9;
  animation: spin 900ms linear infinite;
}

.nav-wallet-icon {
  width: 16px;
  height: 16px;
  display: block;
  opacity: 0.9;
  flex: 0 0 auto;
}

.nav-wallet-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #54d48f;
  box-shadow: 0 0 0 3px rgba(84, 212, 143, 0.14);
  flex: 0 0 auto;
}

.header-ticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  margin-bottom: 10px;
}

.board-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: rgba(84, 212, 143, 0.1);
}

.board-banner .header-ticker {
  width: 100%;
  justify-content: center;
  border: none;
  background: none;
  margin: 0;
  max-width: 1000px;
}

.header-week-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-week-picker-label {
  opacity: 0.75;
}

.header-week-picker-field {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-week-picker-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.0);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  padding: 6px 28px 6px 10px;
  /* room for caret */
  font-size: 12px;
  line-height: 1;
  outline: none;
  cursor: pointer;
}

.header-week-picker-input:focus {
  box-shadow: 0 0 0 3px rgba(84, 212, 143, 0.18);
  border-color: rgba(84, 212, 143, 0.55);
}

.header-week-picker-caret {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.header-week-picker-caret svg {
  width: 14px;
  height: 14px;
  display: block;
}

.day-picker-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: 280px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.7);
  padding: 10px;
}

.day-picker-head {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 8px;
  padding: 4px 2px 8px;
}

.day-picker-month {
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.day-picker-nav {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.day-picker-nav:hover {
  background: rgba(255, 255, 255, 0.07);
}

.day-picker-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.day-picker-nav svg {
  width: 14px;
  height: 14px;
  display: block;
}

.day-picker-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 0 2px 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.day-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 2px;
}

.day-picker-cell {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.day-picker-cell:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.day-picker-cell.is-empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.day-picker-cell:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.day-picker-cell.is-today {
  border-color: rgba(84, 212, 143, 0.55);
}

.day-picker-cell.is-selected {
  background: rgba(84, 212, 143, 0.18);
  border-color: rgba(84, 212, 143, 0.75);
}

.day-picker-cell.has-data {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.header-ticker-dot {
  opacity: 0.6;
}

.header-ticker-dot.pr-0 {
  padding-right: 4px;
}

/* Roadmap list icons (index.html) */
.roadmap-list .roadmap-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: start;
}

.roadmap-icon {
  width: 14px;
  height: 14px;
  display: block;
  margin-top: 2px;
  flex: 0 0 auto;
}

.roadmap-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.roadmap-icon--check {
  color: #54d48f;
}

.roadmap-icon--loading {
  opacity: 0.9;
  animation: spin 900ms linear infinite;
}

.features-list .features-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: start;
  text-align: start;
}

.mw-500 {
  max-width: 500px;
}

.features-icon {
  width: 14px;
  height: 14px;
  display: block;
  margin-top: 2px;
  flex: 0 0 auto;
}

.features-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.features-icon--check {
  color: #54d48f;
}

.features-icon--loading {
  opacity: 0.9;
  animation: spin 900ms linear infinite;
}

.pb-10 {
  padding-bottom: 10px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-30 {
  margin-bottom: 30px !important;
}

.mt-30 {
  margin-top: 30px !important;
}

.my-20 {
  margin: 20px 0;
}

.header-ticker-sold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  position: relative;
}

.header-ticker-sold[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 60;
}

.header-ticker-sold[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.header-ticker-sold-label {
  opacity: 0.75;
}

.header-ticker-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 120, 120, 0.55);
  background: rgba(255, 65, 65, 0.28);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(255, 60, 60, 0.18);
  transform: rotate(-2deg);
}

.nav-link {
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--muted);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Map floating action button (override base .btn padding/radius defined below map styles) */
.btn.nmap-fab-bot {
  padding: 0;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  aspect-ratio: 1 / 1;
  position: absolute;
  /* keep consistent positioning even if btn styles change */
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.btn.nmap-fab-bot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.btn.nmap-fab-bot .nmap-fab-icon {
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
}

.btn-danger {
  border-color: rgba(255, 120, 120, 0.55);
  background: rgba(255, 65, 65, 0.28);
  color: rgba(255, 255, 255, 0.92);
}

.btn-danger:hover {
  background: rgba(255, 65, 65, 0.38);
}

.ai-review-image-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ai-review-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.ai-review-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.ai-review-image-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.ai-review-image-item {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  padding: 10px;
  display: grid;
  gap: 8px;
  cursor: pointer;
}

.ai-review-image-item.is-selected {
  border-color: rgba(84, 212, 143, 0.75);
  box-shadow: 0 0 0 2px rgba(84, 212, 143, 0.15);
}

.ai-review-image-thumb {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: block;
}

.ai-review-image-item input[type="radio"] {
  margin: 0;
}

.ai-review-image-item-title {
  font-weight: 700;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.btn.btn-brand:hover {
  background: #268c67;
}

.btn-brand {
  border-color: #54d48f;
  background: #54d48f;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  display: flex;
  gap: 10px;
}

.btn-text {
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.btn-text:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
}

.btn-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.btn-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-wide {
  width: 100%;
}

.hero {
  min-height: 100vh;
  padding-top: var(--header-offset, 77px);
  /* fixed header offset */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero.hero--mb {
  padding-top: 0;
  /* Meta Bubbles handles header offset itself */
  align-items: stretch;
  justify-content: stretch;
}

.hero.hero--mb .hero-inner {
  height: 100vh;
}

/* Smooth-scroll anchors should land below the fixed header. */
#roadmap {
  scroll-margin-top: calc(var(--header-offset, 77px) + 14px);
}

.hero-inner {
  width: 100%;
}

.hero-copy {
  max-width: 920px;
  margin: 0 auto 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-title {
  margin: 0 0 5px;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.9px;
}

.hero-lede {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.5;
}

.hero-desc {
  margin: 0 0 32px;
  max-width: 78ch;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  font-size: 16px;
}

.hero-quote {
  margin: 14px 0 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.hero-points {
  margin: 10px 0 28px;
  display: grid;
  grid-auto-flow: row;
  gap: 10px;
  justify-items: center;
}

.hero-cta {
  margin: 10px 0 6px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.hero-caption {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.hero-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  line-height: 1.45;
  padding-top: 12px;
}

.ca-pill {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 18px;
  padding: 12px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.ca-pill-left {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: left;
  padding-left: 15px;
}

.ca-pill-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.ca-pill-value {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.ca-pill-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
}

.ca-pill-copy:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ca-pill-copy-icon {
  width: 16px;
  height: 16px;
  display: block;
  opacity: 0.92;
}

/* Stats banner under CA */
.stats-banner {
  width: 100%;
  margin: 18px auto 0;
  max-width: 920px;
  padding: 40px 0 0;
}

.stats-banner-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 55%),
    rgba(0, 0, 0, 0.22);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.stat-item {
  padding: 18px 16px 16px;
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  right: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.10);
}

.stat-value {
  font-weight: 900;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.6px;
}

.stat-label {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.stat-purple {
  color: #8b3dff;
}

.stat-gold {
  color: #f4c542;
}

.stat-white {
  color: rgba(255, 255, 255, 0.95);
}

.stat-green {
  color: #54d48f;
}

@media (max-width: 820px) {
  .stats-banner-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .stat-item:not(:last-child)::after {
    top: auto;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 1px;
    width: auto;
  }
}

.toast {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translate(-50%, -18px);
  opacity: 0;
  pointer-events: none;
  user-select: text;
  -webkit-user-select: text;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 12px;
  transition: transform 180ms ease, opacity 180ms ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.toast-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
}

.toast-text {
  line-height: 1;
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}

.canvas-wrap {
  position: relative;
  width: min(1000px, 100%);
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
}

.canvas-zoom-layer {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  will-change: transform;
}

#pixelCanvasLoader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 2;
}

.hero-center-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: clamp(22px, 3.2vw, 44px);
  font-weight: 900;
  letter-spacing: -0.6px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.65),
    0 0 0.5px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 1;
}

/* Wump carousel */
.wump-carousel {
  width: 100vw;
  margin: 18px 0 10px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.wump-carousel-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  user-select: none;
  touch-action: pan-y;
}

.wump-carousel-track {
  display: flex;
  gap: 18px;
  padding: 10px 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.wump-carousel-item {
  flex: 0 0 auto;
  width: 260px;
  height: 260px;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.wump-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wump-carousel-viewport.is-dragging {
  cursor: grabbing;
}

#pixelCanvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 1000px;
  max-height: 1000px;
  margin: 0 auto;
  background: transparent;
  touch-action: none;
  user-select: none;
  aspect-ratio: 1 / 1;
  opacity: 0;
  transition: opacity 450ms ease;
}

.canvas-wrap.is-board-ready #pixelCanvas {
  opacity: 1;
}

.hover-tip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--fg);
  transform: translate(12px, 12px);
  opacity: 0;
  transition: opacity 120ms ease;
  backdrop-filter: blur(10px);
  width: max-content;
  max-width: 300px;
  white-space: normal;
}

.hover-tip.is-visible {
  opacity: 1;
}

.hover-tip-title {
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.92);
}

.hover-tip-subtitle {
  margin-top: 6px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.9);
  overflow-wrap: anywhere;
}

.hover-tip-chart {
  margin-top: 10px;
  width: 280px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hover-tip-chart-loading {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  font-size: 12px;
}

.hover-tip-chart-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.wallet-modal-card--token {
  width: calc(100vw - 24px);
  max-width: 1100px;
}

.token-modal-dismiss {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 10px;
  line-height: 0;
}

.token-modal-dismiss-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.token-modal-logo {
  border-radius: 9999px;
}

.token-modal-chart {
  margin-top: 14px;
  width: 100%;
  height: 440px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.token-modal-meta {
  margin-top: 10px;
  white-space: normal;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.token-meta-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.token-meta-k {
  opacity: 0.8;
}

.token-meta-v {
  min-width: 0;
}

.token-modal-link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-decoration-color: rgba(84, 212, 143, 0.65);
  text-underline-offset: 3px;
  position: relative;
}

.token-modal-link:hover {
  color: #54d48f;
  text-decoration-color: #54d48f;
}

/* Hover tooltip with full URL (desktop); mobile will still have `title` */
.token-modal-link[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  max-width: min(520px, 80vw);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 60;
  white-space: normal;
  overflow-wrap: anywhere;
}

.token-modal-link[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.token-modal-loading {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

.token-modal-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.token-modal-pin-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.token-modal-pin {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

[data-token-open-dex][aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.6;
}

/* PFP generator (index.html) */
.pfp-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.pfp-card {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 512px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-top: 30px;
}

.pfp-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.pfp-preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: 0;
}

.pfp-preview.has-image .pfp-preview-img {
  opacity: 1;
}

.pfp-preview-mask {
  position: absolute;
  inset: 0;
  background: var(--pfp-color, #54d48f);
  -webkit-mask-image: url("../svg/pfp-mask.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: cover;
  mask-image: url("../svg/pfp-mask.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: cover;
  opacity: 0.9;
  /* visible even before an image is uploaded */
  transition: opacity 200ms ease;
  z-index: 1;
}

.pfp-preview.has-image .pfp-preview-mask {
  opacity: 1;
}

.pfp-preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
  z-index: 2;
}

.pfp-preview.has-image .pfp-preview-placeholder {
  display: none;
}

.pfp-controls {
  text-align: left;
  display: grid;
  gap: 14px;
}

.pfp-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pfp-color {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--c);
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(84, 212, 143, 0.0);
}

.pfp-color.is-active {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.pfp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.pfp-status {
  min-height: 18px;
  color: rgba(255, 255, 255, 0.72);
}

/* Meme board (index.html) */
.section-meme {
  width: 100%;
  padding: 40px 0px !important;
}

.meme-stage {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 22px;

  border-top: 0px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.20);
  overflow: hidden;
  /* prevent horizontal scroll/jank on mobile */
}

.meme-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
}

.meme-board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding: 10px 0px 18px;
}

.meme-tile {
  cursor: pointer;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  padding: 0;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  /* consistent tiles; image covers + crops */
}

.meme-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.meme-empty {
  color: rgba(255, 255, 255, 0.62);
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.22);
  grid-column: 1 / -1;
}

.meme-hint {
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

@media (max-width: 980px) {
  .pfp-card {
    grid-template-columns: 1fr;
  }
}

.scroll-banner {
  border-top: 0px solid var(--line);
  border-bottom: 0px solid var(--line);
  padding: 12px 0;
  background: rgba(0, 0, 0, 0.0);
  backdrop-filter: blur(10px);
}

.scroll-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.marquee {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 0px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.0);
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.9), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.9), transparent);
}

.marquee-track {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

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

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

.pill {
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.section {
  padding: 200px 20px 200px;
}

.section-ca {
  padding: 80px 20px 80px;
}

.section-history {
  padding: 80px 20px 80px;
}

@media (max-width: 600px) {
  .section-history {
    padding: 0;
  }

  .section-ca {
    padding: 80px 0px 80px;
  }
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-inner-center {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-head {
  margin-bottom: 16px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 34px;
  letter-spacing: -0.4px;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.5;
}

.cta-card {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 14px;
  align-items: center;
  padding: 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  margin: 16px 0 18px;
}

.cta-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.cta-subtitle {
  color: var(--muted);
  line-height: 1.5;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card {
  grid-column: span 6;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card.admin {
  padding: 14px 14px;
  margin: 14px 14px;
}

.card-span-2 {
  grid-column: span 12;
}

.cards-grid .card-fit-center {
  grid-column: 1 / -1;
  justify-self: center;
  width: fit-content;
  max-width: 100%;
}

.card-head {
  padding: 22px 22px 0;
}

.card-head.automation {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-footer {
  padding: 0 22px 22px;
}

.card-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.2px;
  padding-bottom: 24px;
}

.card-body {
  padding: 12px 22px 22px;
  color: var(--muted);
  line-height: 1.55;
}

.card-body.automation {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.p {
  margin: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.col-title {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 8px;
}

.clean-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.clean-ol {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.clean-ol li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: start;
}

.clean-ol .n {
  opacity: 0.95;
}

.muted-lines {
  margin-top: 12px;
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.62);
}

.tag-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.76);
}

.tag-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tag-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
}

.social-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.social-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
}

.social-icon-l {
  width: 30px;
  height: 30px;
  display: block;
  flex: 0 0 auto;
}

/* Dashboard */
.dash-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 14px;
  align-items: start;
}

/* Bubble shop: keep preview compact so it doesn't dominate the page */
[data-bubble-shop] .bubble-preview-card .bubble-preview-body {
  padding: 0 22px 14px;
}

[data-bubble-shop] .bubble-preview-card .image-modal-img {
  width: 100%;
  max-height: 240px;
  border-radius: 16px;
}

/* Bubble shop: size + duration in two columns (responsive) */
[data-bubble-shop] .shop-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

@media (max-width: 760px) {
  [data-bubble-shop] .shop-two-col {
    grid-template-columns: 1fr;
  }
}

/* Bubble shop: inline pricing labels next to each option */
[data-bubble-shop] .dash-repeat-option {
  position: relative;
}

[data-bubble-shop] .shop-option-price {
  margin-left: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

/* Bubble shop: hold discount tiers */
[data-bubble-shop] .shop-discount {
  padding: 10px 22px 0;
}

[data-bubble-shop] .shop-discount-balance {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.3;
  margin-bottom: 10px;
}

[data-bubble-shop] .shop-tier-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(84, 212, 143, 0.38);
  background: rgba(84, 212, 143, 0.10);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

[data-bubble-shop] .shop-tier-list {
  display: grid;
  gap: 8px;
}

[data-bubble-shop] .shop-tier-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.88);
}

[data-bubble-shop] .shop-tier-pill.is-disabled {
  opacity: 0.45;
}

[data-bubble-shop] .shop-tier-pill.is-active {
  border-color: rgba(84, 212, 143, 0.45);
  background: rgba(84, 212, 143, 0.14);
  color: rgba(255, 255, 255, 0.92);
}

[data-bubble-shop] .shop-tier-pill.is-active::after {
  content: "✓";
  margin-left: 8px;
  color: rgba(84, 212, 143, 0.98);
  font-weight: 900;
}

.dash-title {
  font-weight: 800;
  font-size: 18px;
}

.dash-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dash-orders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
  width: 100%;
}

/* Orders page layout */
.dash-orders-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 898px;
  margin: 0 auto;
  width: 100%;
}

.orders-page-inner {
  max-width: 2500px;
  margin: 0 auto;
}

.order-edit-form {
  margin-top: 24px;
}

.dash-dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 14px;
  width: 100%;
}

.dash-dashboard-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-orders-toolbar {
  padding: 12px 22px 0;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
}

@media (max-width: 600px) {
  .admin-orders-toolbar {
    padding: 12px 14px 0;
    grid-template-columns: 1fr;
  }
}

.admin-pagination {
  padding: 12px 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@media (max-width: 600px) {
  .admin-pagination {
    padding: 12px 14px 0;
  }
}

.admin-pagination .page-info {
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

/* Center orders cards on orders page (even when only 1 column is visible) */
.orders-page-inner .dash-orders-grid {
  grid-template-columns: repeat(auto-fit, minmax(520px, 900px));
  justify-content: center;
}

/* Orders page: mobile should never force a 520px min column (prevents horizontal overflow) */
@media (max-width: 600px) {
  .orders-page-inner .dash-orders-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .orders {
    padding: 12px 14px 0;
  }
}

.dash-board-card,
.dash-form-card,
.dash-summary-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dash-board-top {
  padding: 18px 22px 0;
}

.dash-board-title,
.dash-form-title,
.dash-summary-title {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.2px;
}

.dash-board-subtitle {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.dash-canvas-wrap {
  padding: 14px 14px;
}

.dash-canvas-viewport {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.16);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  cursor: default;
  touch-action: none;
  user-select: none;
  border-radius: 2px;
}

.dash-canvas-viewport:focus,
.dash-canvas-viewport:focus-visible {
  outline: none;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.dash-canvas-viewport.is-panning {
  cursor: default;
}

#dashCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  transform-origin: 0 0;
  touch-action: none;
  user-select: none;
}

.dash-canvas-ui {
  display: inline-flex;
  gap: 8px;
  z-index: 2;
}

.dash-canvas-btn {
  padding: 8px 10px;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.dash-canvas-help {
  z-index: 2;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.2;
  width: fit-content;
}

.dash-board-hint {
  padding: 0 22px 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.45;
}

.dash-form-title,
.dash-summary-title {
  padding: 18px 22px 0;
}

/* Dashboard: make Admin tools collapse control look like the FAQ accordion trigger */
.admin-tools-trigger.accordion-trigger {
  padding: 18px 22px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  position: relative;
  z-index: 5;
}

.dash-upload-hint {
  padding: 12px 22px 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.45;
}

.dash-upload-image-hint {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(84, 212, 143, 0.22);
  background: rgba(84, 212, 143, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.35;
}

/* Custom file picker (dashboard) */
.file-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.file-picker-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.file-picker-icon {
  width: 18px;
  height: 18px;
  display: block;
  opacity: 0.9;
}

.file-picker-text {
  font-size: 13px;
}

.file-picker-selected {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
}

/* Shop: show a tiny thumb next to selected filename */
[data-bubble-shop] .file-picker-selected {
  justify-content: flex-start;
}

[data-bubble-shop] .file-picker-thumb {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  flex: 0 0 auto;
}

[data-bubble-shop] .file-picker-clear {
  margin-left: auto;
}

.file-picker-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.86);
}

.file-picker-clear {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.file-picker-clear:hover {
  background: rgba(255, 255, 255, 0.08);
}

.file-picker-clear-icon {
  width: 16px;
  height: 16px;
  display: block;
  opacity: 0.9;
}

.btn.is-loading {
  opacity: 0.9;
  cursor: default;
}

.btn.is-loading:disabled {
  cursor: default;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  display: block;
  animation: spin 900ms linear infinite;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.copyright-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.45;
}

.dash-form {
  padding: 12px 22px 22px;
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-label {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
  padding-top: 10px;
  font-size: 13px;
}

.field-label-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.field-label-tip {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 900;
  font-size: 12px;
  line-height: 18px;
  padding: 0;
  cursor: help;
}

.field-label-tip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.field-label-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  max-width: 360px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 60;
}

.field-label-tip-wrap:hover .field-label-tooltip,
.field-label-tip:focus-visible+.field-label-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.field-label-tip:focus-visible {
  outline: 2px solid rgba(84, 212, 143, 0.7);
  outline-offset: 2px;
}

.field-help {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.45;
}

.field-input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
}

/* Make selects feel consistent with the rest of the UI (custom caret + spacing). */
select.field-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-color: rgba(0, 0, 0, 0.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255,255,255,0.78)' d='M7 10l5 5l5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
}

select.field-input::-ms-expand {
  display: none;
}

.field-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.field-input-prefix-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.field-input-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

.field-input--prefix {
  border-radius: 0 14px 14px 0;
}

.dash-repeat-options {
  display: grid;
  gap: 8px;
}

.dash-repeat-option {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.dash-repeat-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dash-repeat-option input[type="radio"] {
  transform: translateY(1px);
}

.field-input-btn {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  cursor: pointer;
}

.field-input-btn:hover {
  background: rgba(255, 255, 255, 0.07);
}

.link-saved-menu {
  position: relative;
  margin-top: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.link-saved-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  text-align: left;
}

.link-saved-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.link-saved-meta {
  opacity: 0.7;
  font-size: 12px;
  white-space: nowrap;
}

.field-input:focus {
  outline: none;
  border-color: rgba(84, 212, 143, 0.35);
  box-shadow: 0 0 0 3px rgba(84, 212, 143, 0.12);
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.form-status {
  min-height: 18px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.dash-summary-card {
  padding-bottom: 14px;
}

.dash-summary {
  display: grid;
  gap: 14px;
}

.dash-summary-line {
  padding: 12px 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
}

.dash-summary-total {
  margin: 14px 22px 0;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
}

.dash-summary-total-top {
  display: flex;
  justify-content: space-between;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
}

.dash-summary-total-sub {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.dash-summary-note {
  padding: 10px 22px 0px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.45;
}

.dash-checkout-actions {
  padding: 12px 22px 0;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 12px;
}

.mono.box {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin: 0 4px;
}

.orders {
  padding: 12px 22px 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.order-item {
  padding: 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.order-item:first-child {
  border-top: 0;
}

.order-date {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.order-edit {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.order-edit-title {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
}

.order-edit-accordion {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 0px solid rgba(255, 255, 255, 0.08);
}

.order-revise-trigger {
  padding: 12px 0;
}

.order-revise-panel {
  padding: 12px 0 0;
}

/* Orders page: make the whole order top row the accordion trigger */
.order-top-trigger.accordion-trigger {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.order-top-trigger.accordion-trigger:hover {
  filter: brightness(1.06);
}

.order-status-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.order-item--collapsible {
  position: relative;
}

.order-item-trigger.accordion-trigger {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: inherit;
}

/* Let clicks fall through to the overlay trigger for the non-form parts */
.order-item--collapsible .order-top,
.order-item--collapsible .order-meta,
.order-item--collapsible .order-date {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

/* Keep the revise form interactive above the overlay trigger */
.order-item--collapsible .order-revise-panel {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.order-revise-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

.order-revise-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.order-revise-icon-open {
  display: none;
}

.order-item--collapsible.is-open .order-revise-icon-closed {
  display: none;
}

.order-item--collapsible.is-open .order-revise-icon-open {
  display: block;
}

.order-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.order-edit-actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

@media (max-width: 900px) {
  .order-edit-grid {
    grid-template-columns: 1fr;
  }
}

.order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.order-top-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.order-thumb-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.order-thumb-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  position: relative;
  z-index: 4;
  /* above the full-card overlay trigger on collapsible items */
}

.order-thumb-btn:focus-visible {
  outline: 2px solid rgba(84, 212, 143, 0.55);
  outline-offset: 3px;
  border-radius: 14px;
}

.wallet-modal-card--image {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: calc(100vw - 24px);
  max-width: 1100px;
}

.wallet-modal-card--image .wallet-modal-actions {
  justify-content: center;
  flex-wrap: wrap;
}

.wallet-modal-card--image .wallet-modal-actions .btn {
  gap: 10px;
}

.image-modal-body {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-modal-actions {
  display: flex;
  justify-content: center;
}

.image-modal-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.order-thumb--empty {
  background: rgba(255, 255, 255, 0.04);
}

.order-thumb-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.order-title {
  color: rgba(255, 255, 255, 0.92);
}

.order-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill--pending {
  border-color: rgba(255, 178, 74, 0.55);
  background: rgba(255, 178, 74, 0.18);
  color: rgba(255, 225, 180, 0.98);
}

.status-pill--completed {
  border-color: rgba(84, 212, 143, 0.55);
  background: rgba(84, 212, 143, 0.16);
  color: rgba(210, 255, 232, 0.98);
}

.status-pill--rejected {
  border-color: rgba(255, 120, 120, 0.55);
  background: rgba(255, 65, 65, 0.18);
  color: rgba(255, 210, 210, 0.98);
}

.status-pill--neutral {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 900px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }

  .dash-orders-grid {
    grid-template-columns: 1fr;
  }
}

.sub-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-title {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 8px;
}

.quote {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
}

/* Hero callout (index.html) */
.hero-callout {
  display: inline-block;
  width: min(720px, 100%);
  max-width: 100%;
  text-align: left;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(120% 160% at 20% 0%, rgba(84, 212, 143, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.22);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  margin: 24px auto 12px;
}

.hero-copy .hero-callout {
  margin-left: auto;
  margin-right: auto;
}

.hero-callout-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.hero-callout-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-callout-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(84, 212, 143, 0.22);
  background: rgba(84, 212, 143, 0.10);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.hero-callout-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hero-callout-item {
  position: relative;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.hero-callout-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(84, 212, 143, 0.95);
  box-shadow: 0 0 0 4px rgba(84, 212, 143, 0.14);
}

.hero-callout-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
  display: flex;
  align-items: baseline;
  /* align Note badge with first text line */
  gap: 8px;
}

.hero-callout-note-label {
  display: inline-block;
  flex: 0 0 auto;
  margin-right: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero-callout-note-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  gap: 10px;
  text-align: start;
}

.hero-callout-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.hero-callout-highlight {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 3px;
}

.card-warn {
  border-color: rgba(255, 220, 120, 0.2);
  background: rgba(255, 220, 120, 0.06);
}

.reject-reason-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  /* spacing above pills */
}

.reason-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 120, 120, 0.55);
  background: rgba(255, 65, 65, 0.18);
  color: rgba(255, 210, 210, 0.98);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
}

.reject-notes {
  margin-top: 10px;
  white-space: pre-wrap;
}

.reject-notes-card .reject-notes {
  margin-top: 0;
}

.accordion {
  display: grid;
  gap: 12px;
  padding-bottom: 80px;
}

.accordion-item {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
  border-radius: 4px;
}

.accordion-trigger:hover {
  background: rgba(255, 255, 255, 0.04);
}

.accordion-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  flex: 0 0 auto;
  opacity: 0.85;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  background: rgba(255, 255, 255, 0.78);
  transform: translate(-50%, -50%);
}

.accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 140ms ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.accordion-panel {
  padding: 18px;
  color: var(--muted);
  line-height: 1.65;
  transition: max-height 180ms ease;
}

.cta-mini {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-mini-text {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 20px 30px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-footer .brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.brand-footer .brand-icon {
  width: 28px;
  height: 28px;
}

.footer-caption-right {
  text-align: right;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  line-height: 1.45;
}

.footer-center {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.footer-center-caption {
  max-width: 500px;
  width: 100%;
  text-align: center;
  color: var(--muted2);
  line-height: 1.55;
  padding: 14px 16px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
}

.footer-links {
  margin-left: 10px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.35);
}

.footer-link {
  color: rgba(255, 255, 255, 0.45);
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* Legal pages */
.legal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.legal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.8);
}

.legal-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
}

.legal-body .card-title {
  margin-top: 18px;
}

.page {
  padding-top: 86px;
  display: flex;
  justify-content: center;
}

.page-hero {
  min-height: calc(100vh - 86px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 20px 40px;
}

.page-shop {
  min-height: calc(100vh - 86px);
  display: flex;
  align-items: start;
  justify-content: center;
  max-width: 1000px;
}

.page-hero-inner {
  width: 100%;
  max-width: 900px;
  padding: 22px 20px;
  border-radius: 18px;
  border: 0px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.0);
}

.page-hero-inner--full {
  max-width: 100%;
}

.page-hero-inner--center {
  text-align: center;
}

.page-title {
  margin: 0 0 8px;
  font-size: 40px;
  letter-spacing: -0.4px;
}

.page-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.bullet-steps {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.bullet-steps--center {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  /* keep bullets readable, centered as a block */
  width: fit-content;
  max-width: 100%;
}

.bullet-steps li+li {
  margin-top: 6px;
}

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

.page-actions--center {
  justify-content: center;
}

.page-subtitle--center {
  text-align: center;
}

.buy-loading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.86);
}

.buy-loading-icon {
  width: 26px;
  height: 26px;
  display: block;
  animation: spin 900ms linear infinite;
  flex: 0 0 auto;
}

.buy-loading-title {
  font-weight: 800;
  letter-spacing: -0.2px;
}

.buy-loading-subtitle {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.35;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Wallet connect modal */
.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.wallet-modal.is-visible {
  display: flex;
}

.wallet-modal-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
  padding: 18px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}

.wallet-modal-text {
  flex: 1 1 auto;
  min-width: 0;
}

.wallet-modal-close {
  flex: 0 0 auto;
}

.wallet-modal-icon {
  width: 28px;
  height: 28px;
  display: block;
  animation: spin 900ms linear infinite;
  flex: 0 0 auto;
}

.wallet-modal-title {
  font-weight: 900;
  letter-spacing: -0.2px;
  color: rgba(255, 255, 255, 0.92);
}

.wallet-modal-subtitle {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.35;
}

/* Confirm modal (reuses wallet modal base styles) */
.wallet-modal-card--confirm {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.wallet-modal-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wallet-modal-icon--static {
  animation: none;
}

.wallet-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.wallet-modal-card--reject .field-input {
  resize: vertical;
}

.wallet-modal-card--cropper {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.cropper-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.cropper-box {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
  touch-action: none;
  cursor: grab;
}

.cropper-box:active {
  cursor: grabbing;
}

.cropper-img {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.reject-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reason-chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
}

.reason-chip.is-selected {
  border-color: rgba(84, 212, 143, 0.7);
  background: rgba(84, 212, 143, 0.12);
  color: rgba(255, 255, 255, 0.95);
}

.order-admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-revoke-access {
  border-color: rgba(255, 80, 80, 0.35);
  color: rgba(255, 255, 255, 0.9);
}

.btn-revoke-access:hover {
  border-color: rgba(255, 80, 80, 0.65);
  color: rgba(255, 80, 80, 0.95);
}

.btn-revoke-access.is-on {
  border-color: rgba(84, 212, 143, 0.55);
}

.btn-revoke-access.is-on:hover {
  border-color: rgba(84, 212, 143, 0.85);
  color: rgba(84, 212, 143, 0.95);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 520px) {
  .order-admin-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

a.primary-text:hover {
  color: #268c67;
}

.primary-text {
  color: #54d48f;
}

a.secondary-text:hover {
  color: var(--muted2);
}

.secondary-text {
  color: var(--muted);
  text-decoration: underline;
}

@media (max-width: 520px) {
  .brand-text {
    display: none;
  }

  /* Hide the green board banner above the canvas on mobile */
  .board-banner {
    display: none;
  }

  .site-header {
    padding: 14px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }

  .page-hero {
    padding: 26px 0px 40px;
  }

  /* Keep Buy/Home visible on mobile */
  .nav-link {
    display: inline-flex;
    padding: 10px 10px;
    order: 1;
  }

  .site-nav .btn {
    order: 1;
  }

  /* Put the ticker on its own row under the header controls */
  .header-ticker {
    display: flex;
    order: 2;
    width: 100%;
    margin: 0 auto;
    justify-content: center;
    border-radius: 18px;
    flex-wrap: wrap;
    white-space: normal;
    overflow-x: visible;
    max-width: 100%;
    min-width: 0;
    margin-top: 30px;
    margin-bottom: 10px;
  }

  .ca-pill {
    border-radius: 18px;
    align-items: flex-start;
  }

  .ca-pill-copy-text {
    display: none;
  }

  /* Canvas section: not full-height on mobile; keep it just below the fixed header */
  .hero {
    min-height: auto;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: var(--header-offset, 96px);
    padding-bottom: 12px;
  }

  .hero-inner {
    padding: 0;
  }

  .page {
    padding-top: var(--header-offset, 130px);
  }

  .section {
    padding: 80px 20px 80px;
  }

  .section-history {
    padding: 0 24px;
  }
}

@media (max-width: 900px) {
  .hero-title {
    font-size: 40px;
  }

  .header-ticker-sold-label {
    display: none;
  }

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

  .two-col {
    grid-template-columns: 1fr;
  }

  .card {
    grid-column: span 12;
  }

  .section-title {
    font-size: 28px;
  }
}