/* XPMarket clone — tokens from xpmarket.com */
:root {
  --bg: #0d0d0d;
  --surface: #1a1a1a;
  --surface-2: #141414;
  --border: rgba(42, 42, 42, 0.5);
  --border-card: rgba(42, 42, 42, 0.35);
  --text: #ffffff;
  --text-2: #a3a3a3;
  --text-3: #6b6b6b;
  --purple: #6d1fee;
  --purple-2: #8b3dff;
  --purple-glow: rgba(109, 31, 238, 0.55);
  --green: #3dd68c;
  --green-bg: rgba(61, 214, 140, 0.14);
  --red: #ff5c5c;
  --red-bg: rgba(255, 92, 92, 0.14);
  --gold: #f5c518;
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar: 230px;
  --header-h: 108px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --font: "Sora", "Helvetica", "Arial", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.app {
  display: flex;
  min-height: 100vh;
}

/* ——— Sidebar ——— */
.sidebar {
  width: var(--sidebar);
  flex-shrink: 0;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 20px 12px 28px;
  position: relative;
  z-index: 30;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 24px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.sidebar__brand-icon {
  border-radius: 8px;
  filter: brightness(0) invert(1);
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-sep {
  height: 1px;
  background: var(--border);
  margin: 10px 8px;
}

.nav-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-3);
  padding: 10px 10px 4px;
  text-transform: capitalize;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--surface);
  color: var(--text);
}

.pill-new {
  margin-left: auto;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: linear-gradient(135deg, #5b14d4, var(--purple-2));
  color: #fff;
  text-transform: capitalize;
}

.sidebar-toggle {
  position: absolute;
  right: -13px;
  top: 76px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-card);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  box-shadow: var(--shadow-card);
}

.sidebar-toggle svg {
  width: 14px;
  height: 14px;
}

/* ——— Shell ——— */
.shell {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ——— Header ——— */
.header {
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(13, 13, 13, 0.94);
  backdrop-filter: blur(16px);
  padding: 14px 32px 0;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.home-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-card);
  font-size: 0.85rem;
  font-weight: 500;
  color: #e5e5e5;
  white-space: nowrap;
  box-shadow: var(--shadow-card);
}

.home-chip__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-chip__icon svg {
  width: 13px;
  height: 13px;
  color: #fff;
}

.search-bar {
  flex: 1;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.search-bar__icon {
  width: 18px;
  height: 18px;
  color: var(--text-3);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-3);
}

.search-bar kbd {
  font-size: 0.68rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: #252525;
  border: 1px solid #333;
  color: var(--text-3);
}

.btn-connect {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, #5a17d6 0%, var(--purple) 45%, var(--purple-2) 100%);
  box-shadow: 0 0 32px var(--purple-glow), var(--shadow-card);
  transition: filter 0.15s, transform 0.15s;
}

.btn-connect svg {
  width: 17px;
  height: 17px;
}

.btn-connect:hover {
  filter: brightness(1.08);
}

.stats-bar {
  overflow: hidden;
  padding-bottom: 14px;
}

.stats-bar__track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.stats-bar__track::-webkit-scrollbar {
  display: none;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.stat__label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.stat__value {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e5e5e5;
}

.header-glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--purple) 35%, var(--purple-2) 65%, transparent 95%);
  box-shadow: 0 0 16px var(--purple-glow);
}

.header-glow::after {
  content: "";
  position: absolute;
  inset: -6px 20% auto;
  height: 12px;
  background: radial-gradient(ellipse, var(--purple-glow), transparent 70%);
  filter: blur(6px);
}

/* ——— Page ——— */
.page {
  padding: 20px 32px 0;
  flex: 1;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* ——— Hero / Airdrop ——— */
.hero {
  margin-bottom: 20px;
}

.airdrop-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0;
  background: var(--surface);
  border-color: rgba(109, 31, 238, 0.25);
}

.airdrop-banner__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 120% at 12% 50%, rgba(109, 31, 238, 0.22), transparent 55%),
    radial-gradient(ellipse 45% 100% at 88% 40%, rgba(109, 31, 238, 0.35), transparent 50%),
    linear-gradient(105deg, rgba(109, 31, 238, 0.06) 0%, transparent 45%);
  pointer-events: none;
}

.airdrop-banner__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 48px,
    rgba(255, 255, 255, 0.015) 48px,
    rgba(255, 255, 255, 0.015) 49px
  );
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}

.airdrop-banner__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  min-height: 168px;
}

.airdrop-banner__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: 520px;
}

.airdrop-banner__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-2);
  padding: 4px 10px;
  margin-bottom: 12px;
  border-radius: 6px;
  background: rgba(109, 31, 238, 0.15);
  border: 1px solid rgba(139, 61, 255, 0.35);
}

.airdrop-banner__title {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.airdrop-banner__desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-2);
  margin-bottom: 20px;
  max-width: 42ch;
}

.airdrop-banner__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 8px;
}

.airdrop-orb {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.airdrop-orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 31, 238, 0.45) 0%, rgba(109, 31, 238, 0.08) 55%, transparent 70%);
  animation: orb-pulse 3s ease-in-out infinite;
}

.airdrop-orb::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(139, 61, 255, 0.35);
  box-shadow: 0 0 40px rgba(109, 31, 238, 0.4), inset 0 0 24px rgba(109, 31, 238, 0.15);
}

.airdrop-orb__icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 0 12px rgba(139, 61, 255, 0.6));
}

@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.85; }
}

.btn-eligibility {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, #5a17d6 0%, var(--purple) 50%, var(--purple-2) 100%);
  border: 1px solid rgba(139, 61, 255, 0.5);
  box-shadow: 0 4px 24px var(--purple-glow);
  transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn-eligibility svg {
  width: 18px;
  height: 18px;
  transition: transform 0.15s;
}

.btn-eligibility:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 32px var(--purple-glow);
}

.btn-eligibility:hover svg {
  transform: translateX(3px);
}

.btn-eligibility:active {
  transform: translateY(0);
}

@media (max-width: 700px) {
  .airdrop-banner__inner {
    grid-template-columns: 1fr;
    padding: 24px 22px;
    min-height: unset;
  }

  .airdrop-banner__visual {
    display: none;
  }

  .airdrop-banner__content {
    max-width: none;
  }

  .btn-eligibility {
    width: 100%;
  }
}

/* ——— Panels ——— */
.panel {
  margin-bottom: 20px;
}

.panel__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f0f0f0;
  white-space: nowrap;
}

.panel__title svg {
  width: 18px;
  height: 18px;
  color: var(--purple-2);
}

.panel__rule {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: 4px;
}

.panel__body {
  padding: 0;
}

.trending {
  display: grid;
  grid-template-columns: 1fr 1.28fr 1fr;
  gap: 8px;
}

.trending__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trend-card {
  padding: 16px;
}

.trend-card__label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.trend-card__label--title {
  text-transform: none;
  font-size: 0.88rem;
  letter-spacing: 0;
  color: #f0f0f0;
  text-transform: capitalize;
}

.trend-card__main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trend-card__main--between {
  justify-content: space-between;
}

.icon-trophy svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.icon-crown {
  font-size: 1.1rem;
}

.token-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: #ca8a04;
  color: #000;
}

.token-dot--fuzzy {
  background: linear-gradient(135deg, #eab308, #ca8a04);
}

.token-dot--sm {
  width: 28px;
  height: 28px;
  font-size: 0.65rem;
}

.trend-token {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.trend-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.countdown {
  font-size: 0.8rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.link-vote {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple-2);
}

.pairs {
  list-style: none;
}

.pairs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.35);
  font-size: 0.85rem;
}

.pairs li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pairs li:first-child {
  padding-top: 0;
}

.pairs__left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d4d4d4;
}

.pairs__val {
  font-weight: 600;
}

.pair-av {
  display: flex;
}

.pair-av .t {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  border: 2px solid var(--surface);
  margin-left: -7px;
}

.pair-av .t:first-child {
  margin-left: 0;
}

.t-xrp { background: #334155; color: #cbd5e1; }
.t-rlusd { background: #2563eb; color: #fff; }
.t-fuzzy { background: #ca8a04; color: #000; }
.t-xpm { background: var(--purple); color: #fff; }
.t-usdc { background: #2775ca; color: #fff; }

.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}

.badge--up {
  color: var(--green);
  background: var(--green-bg);
}

.badge--down {
  color: var(--red);
  background: var(--red-bg);
}

/* ——— Table ——— */
.table-card {
  overflow: hidden;
  padding: 0;
}

.table-scroll {
  overflow-x: auto;
}

.tokens-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.tokens-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-3);
  text-transform: uppercase;
  background: #161616;
  border-bottom: 1px solid var(--border);
}

.tokens-table tbody td {
  padding: 14px 16px;
  border-top: 1px solid rgba(42, 42, 42, 0.35);
  vertical-align: middle;
}

.tokens-table tbody tr {
  transition: background 0.12s;
}

.tokens-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.col-rank {
  width: 48px;
  color: var(--text-3);
}

.col-token {
  min-width: 180px;
}

.col-price {
  min-width: 110px;
}

.token-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.token-row__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.token-row__icon--letter {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}

.token-row__sym {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 0.92rem;
}

.token-row__name {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-3);
  margin-top: 2px;
}

.verified {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  font-size: 0.5rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.price-main {
  display: block;
  font-weight: 600;
}

.price-chg {
  font-size: 0.78rem;
  font-weight: 600;
}

.price-chg.up { color: var(--green); }
.price-chg.down { color: var(--red); }

.swap-btns {
  display: flex;
  gap: 8px;
}

.swap-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-card);
  background: #1f1f1f;
  font-size: 0.78rem;
  font-weight: 500;
  color: #e5e5e5;
  transition: background 0.12s;
}

.swap-btn:hover {
  background: #282828;
}

.swap-btn i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  font-style: normal;
}

.swap-btn i.ico-xrp { background: #334155; color: #94a3b8; }
.swap-btn i.ico-xpm { background: linear-gradient(135deg, #6d1fee, #8b3dff); color: #fff; }

.table-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-3);
}

.pager-btn {
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-card);
  background: #1a1a1a;
  color: var(--text);
  font-size: 0.8rem;
}

.pager-btn.is-on {
  border-color: var(--purple);
  color: var(--purple-2);
}

/* ——— About ——— */
.about {
  padding: 32px 0 48px;
}

.about__heading {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--text-3);
  font-size: 1.1rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple-2);
  min-width: 26px;
}

.faq-item p {
  padding: 0 18px 16px 58px;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-2);
}

/* ——— Footer ——— */
.footer {
  margin-top: auto;
  padding: 40px 32px 24px;
  border-top: 1px solid var(--border);
  background: #0a0a0a;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer__logo {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer__brand p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-3);
  max-width: 280px;
}

.footer__col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 12px;
}

.footer__col a {
  display: block;
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 8px;
}

.footer__col a:hover {
  color: var(--text);
}

.footer__subscribe p {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 10px;
}

.subscribe {
  display: flex;
  gap: 8px;
}

.subscribe input {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  outline: none;
}

.subscribe button {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--purple);
  color: #fff;
  font-weight: 600;
}

.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-3);
}

.net-badge {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-card);
  background: var(--surface);
  font-size: 0.72rem;
}

.footer__links {
  display: flex;
  gap: 16px;
}

.footer__links a {
  color: var(--text-3);
}

.footer__links a:hover {
  color: var(--text-2);
}

/* ——— Responsive ——— */
@media (max-width: 1280px) {
  .trending {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }

  .header,
  .page,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-top {
    flex-wrap: wrap;
  }

  .search-bar {
    order: 3;
    max-width: 100%;
    width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}
