:root {
  --bg: #08080c;
  --bg2: #0d0d14;
  --card: #14141d;
  --card2: #1a1a26;
  --line: #262633;
  --text: #f4f4f8;
  --muted: #9a9aac;
  --purple: #a855f7;
  --purple2: #7c3aed;
  --purple-glow: rgba(168, 85, 247, .45);
  /* rarity */
  --common: #9ca3af;
  --uncommon: #22c55e;
  --rare: #3b82f6;
  --epic: #a855f7;
  --legendary: #f5b301;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1200px 600px at 75% -5%, rgba(124, 58, 237, .18), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { letter-spacing: -0.01em; }

/* ---------- PRICE TICKER ---------- */
.ticker {
  overflow: hidden; white-space: nowrap;
  background: #06060a; border-bottom: 1px solid var(--line);
}
.ticker-track { display: inline-flex; will-change: transform; animation: tickerScroll 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 22px; font-size: 12.5px; color: var(--muted);
  border-right: 1px solid var(--line);
}
.tk-item b { color: var(--text); font-weight: 700; letter-spacing: .04em; }
.tk-item i { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.tk-item i.up { color: #4ade80; }
.tk-item i.down { color: #f87171; }

/* ---------- NAV ---------- */
.nav {
  display: flex; align-items: center; gap: 32px;
  padding: 20px 48px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 12, .75); backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 11px; }
.logo {
  width: 38px; height: 38px; display: block;
  filter: drop-shadow(0 4px 14px var(--purple-glow));
}
.brand-name { font-weight: 800; letter-spacing: .08em; font-size: 18px; }
.nav-links { display: flex; gap: 30px; margin-left: 8px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.btn-login { color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; transition: color .15s; }
.btn-login:hover { color: var(--purple); }
.btn-wallet {
  cursor: pointer; border: none; color: #fff; font-weight: 600; font-size: 14px;
  padding: 10px 20px; border-radius: 10px;
  background: linear-gradient(150deg, var(--purple), var(--purple2));
  box-shadow: 0 6px 20px var(--purple-glow); transition: transform .12s, box-shadow .15s;
}
.btn-wallet:hover { transform: translateY(-1px); box-shadow: 0 8px 26px var(--purple-glow); }
.user-chip {
  display: flex; align-items: center; gap: 9px; padding: 5px 8px 5px 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
}
.user-chip .avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(150deg, var(--purple), var(--purple2));
}
.user-chip .uname { font-size: 14px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .logout { background: transparent; border: none; color: var(--muted); cursor: pointer; padding: 2px 6px; font-size: 15px; }
.user-chip .logout:hover { color: var(--err); background: transparent; }

/* ---------- HERO ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  max-width: 1280px; margin: 0 auto; padding: 70px 48px 40px;
}
.hero-copy h1 { font-size: 68px; line-height: .98; font-weight: 800; letter-spacing: -0.02em; }
.grad {
  background: linear-gradient(100deg, #c084fc, #8b5cf6 60%, #6d28d9);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--muted); font-size: 16px; margin: 26px 0 30px; line-height: 1.7; }
.hero-cta { display: flex; gap: 14px; }
.btn-primary {
  padding: 13px 26px; border-radius: 11px; font-weight: 600; color: #fff;
  background: linear-gradient(150deg, var(--purple), var(--purple2));
  box-shadow: 0 8px 24px var(--purple-glow); transition: transform .12s;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  padding: 13px 26px; border-radius: 11px; font-weight: 600;
  border: 1px solid var(--line); background: var(--card); transition: border-color .15s, background .15s;
}
.btn-ghost:hover { border-color: #3a3a4d; background: var(--card2); }
.stats { display: flex; gap: 46px; margin-top: 44px; }
.stat b { display: block; font-size: 26px; font-weight: 800; color: var(--purple); }
.stat span { color: var(--muted); font-size: 13px; }

/* hero cards */
.hero-cards { display: flex; justify-content: center; align-items: center; gap: 10px; perspective: 1400px; }
.hcard {
  position: relative; width: 198px; border-radius: 18px; padding: 12px;
  background: var(--card); border: 1px solid var(--line); flex: 0 0 auto;
}
.hcard.epic { transform: rotate(-8deg) translateX(14px) translateY(6px); z-index: 1; }
.hcard.rare { transform: rotate(8deg) translateX(-14px) translateY(6px); z-index: 1; }
.hcard.center {
  width: 238px; z-index: 3; transform: translateY(-16px) scale(1.04);
  border-color: var(--legendary);
  box-shadow: 0 0 0 1px rgba(245, 179, 1, .3), 0 20px 60px rgba(245, 179, 1, .22);
}
.hcard.epic { box-shadow: 0 16px 40px rgba(168, 85, 247, .18); border-color: rgba(168,85,247,.5); }
.hcard.rare { box-shadow: 0 16px 40px rgba(59, 130, 246, .16); border-color: rgba(59,130,246,.45); }
.hcard .thumb { height: 240px; border-radius: 12px; }
.hcard.center .thumb { height: 270px; }
.hcard-meta { padding: 12px 4px 4px; }
.hcard-meta h3 { font-size: 16px; font-weight: 800; }
.hcard-meta .num { color: var(--muted); font-size: 13px; }
.hcard-meta .edition { float: right; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* rarity badge */
.badge {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 4; font-size: 10px; font-weight: 800; letter-spacing: .1em;
  padding: 4px 12px; border-radius: 20px; color: #fff; white-space: nowrap;
}
.epic .badge, .r-epic { background: linear-gradient(150deg, #b975f9, var(--purple2)); }
.legendary .badge { background: linear-gradient(150deg, #f8c33a, #d98e0a); color: #2a1a00; }
.rare .badge { background: linear-gradient(150deg, #5b9bf6, #2563eb); }
.common .badge { background: linear-gradient(150deg, #b6bcc7, #6b7280); color: #1a1d24; }

/* shared thumb (placeholder + photo) */
.thumb {
  position: relative; overflow: hidden; border-radius: 12px;
  background: linear-gradient(160deg, #23232f, #16161f);
}
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.thumb .ph {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  font-size: 60px; opacity: .8; filter: saturate(1.1);
}

/* ---------- FEATURES ---------- */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 1280px; margin: 20px auto 0; padding: 22px 40px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 16px;
  margin-inline: 48px;
}
@media (min-width: 1376px) { .features { margin-inline: auto; } }
.feature { display: flex; gap: 13px; align-items: flex-start; }
.feature .fi {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 18px; color: var(--purple);
  background: rgba(168, 85, 247, .12); border: 1px solid rgba(168, 85, 247, .25);
}
.feature b { font-size: 14px; }
.feature p { color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.45; }

/* ---------- FEATURED ---------- */
.featured { max-width: 1280px; margin: 56px auto 0; padding: 0 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-head h2 { font-size: 22px; font-weight: 800; letter-spacing: .02em; }
.view-all { color: var(--purple); font-size: 13px; font-weight: 600; }
.meme-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 1100px) { .meme-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .meme-grid { grid-template-columns: repeat(2, 1fr); } .hero { grid-template-columns: 1fr; } }
.meme {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px; transition: transform .14s, border-color .15s, box-shadow .15s;
}
.meme:hover { transform: translateY(-4px); border-color: #33333f; box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.meme .badge { top: 16px; font-size: 9px; padding: 3px 10px; }
.meme .thumb { height: 130px; }
.meme .thumb .ph { font-size: 44px; }
.meme-info { padding: 11px 4px 4px; }
.meme-info h4 { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meme-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 8px; }
.bid span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .05em; }
.bid b { font-size: 13px; color: var(--purple); transition: color .3s; }
.bid b.flash-up { color: #4ade80; }
.bid b.flash-down { color: #f87171; }
.meta-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.change { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.change.up { color: #4ade80; }
.change.down { color: #f87171; }
.edition { color: var(--muted); font-size: 11px; }
.meme .thumb { height: 150px; }
/* embellish: image zoom + sheen on hover */
.meme .thumb img { transition: transform .35s ease; }
.meme:hover .thumb img { transform: scale(1.08); }
.meme .thumb::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 32%, transparent 70%, rgba(0,0,0,.35));
}
/* tokenize button — slides up on hover */
.tokenize {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 5;
  padding: 8px 0; border: none; border-radius: 9px; cursor: pointer;
  font-size: 12px; font-weight: 700; color: #fff; letter-spacing: .02em;
  background: linear-gradient(150deg, var(--purple), var(--purple2));
  box-shadow: 0 6px 18px var(--purple-glow);
  opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s;
}
.meme:hover .tokenize { opacity: 1; transform: translateY(0); }
.tokenize:hover { filter: brightness(1.1); }

/* rarity accent glow on featured cards */
.meme.legendary { border-color: rgba(245, 179, 1, .4); }
.meme.epic { border-color: rgba(168, 85, 247, .4); }
.meme.rare { border-color: rgba(59, 130, 246, .35); }
.meme.uncommon { border-color: rgba(34, 197, 94, .35); }
.meme.common { border-color: rgba(156, 163, 175, .28); }
.meme.legendary:hover { box-shadow: 0 14px 36px rgba(245, 179, 1, .28); }
.meme.epic:hover { box-shadow: 0 14px 36px rgba(168, 85, 247, .28); }
.meme.rare:hover { box-shadow: 0 14px 36px rgba(59, 130, 246, .24); }
.meme.uncommon:hover { box-shadow: 0 14px 36px rgba(34, 197, 94, .22); }
.meme.common:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.uncommon .badge { background: linear-gradient(150deg, #4ade80, #16a34a); color: #04240f; }

/* ---------- MINT MODAL ---------- */
.mint-modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(4, 4, 8, .72); backdrop-filter: blur(6px);
}
.mint-modal.open { display: flex; }
.mint-card {
  position: relative; width: 380px; max-width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.mint-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  background: rgba(0, 0, 0, .4); border: 1px solid var(--line); color: #fff; font-size: 13px;
}
.mint-thumb { height: 230px; background: #16161f; }
.mint-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mint-body { padding: 20px; }
.mint-rarity {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .1em;
  padding: 4px 12px; border-radius: 20px; color: #fff; margin-bottom: 10px;
  background: linear-gradient(150deg, #5b9bf6, #2563eb);
}
.mint-rarity.legendary { background: linear-gradient(150deg, #f8c33a, #d98e0a); color: #2a1a00; }
.mint-rarity.epic { background: linear-gradient(150deg, #b975f9, var(--purple2)); }
.mint-rarity.uncommon { background: linear-gradient(150deg, #4ade80, #16a34a); color: #04240f; }
.mint-rarity.common { background: linear-gradient(150deg, #b6bcc7, #6b7280); color: #1a1d24; }
.mint-name { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.mint-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 20px; }
.mint-meta span { display: block; color: var(--muted); font-size: 11px; }
.mint-meta b { font-size: 14px; }
.mint-confirm {
  width: 100%; padding: 13px; border: none; border-radius: 11px; cursor: pointer;
  font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(150deg, var(--purple), var(--purple2));
  box-shadow: 0 8px 24px var(--purple-glow); transition: transform .12s;
}
.mint-confirm:hover { transform: translateY(-2px); }
.mint-note { color: var(--muted); font-size: 11px; text-align: center; margin-top: 12px; }

/* ---------- RARITIES ---------- */
.rarities { max-width: 1280px; margin: 56px auto 0; padding: 0 48px; }
.rarities h2 { font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.rarity-bar {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.rarity { display: flex; align-items: center; gap: 14px; padding: 22px 26px; border-right: 1px solid var(--line); }
.rarity:last-child { border-right: none; }
.rarity .ri { font-size: 26px; }
.rarity b { font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.rarity span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.r-common .ri { color: var(--common); } .r-common b { color: var(--common); }
.r-uncommon .ri { color: var(--uncommon); } .r-uncommon b { color: var(--uncommon); }
.r-rare .ri { color: var(--rare); } .r-rare b { color: var(--rare); }
.r-epic .ri { color: var(--epic); } .r-epic b { color: var(--epic); }
.r-legendary .ri { color: var(--legendary); } .r-legendary b { color: var(--legendary); }

/* ---------- HOW IT WORKS ---------- */
.how { max-width: 1280px; margin: 64px auto 0; padding: 0 48px; }
.how .section-head { margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 760px; margin-bottom: 28px; }
.tk { color: var(--purple); font-weight: 700; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 20px; transition: border-color .15s, transform .15s;
}
.step:hover { border-color: rgba(168, 85, 247, .4); transform: translateY(-3px); }
.stepnum {
  display: inline-block; font-size: 28px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(150deg, #c084fc, var(--purple2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.step h4 { font-size: 16px; font-weight: 700; margin: 8px 0 6px; }
.step p { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- EARN $MEME ---------- */
.earn { max-width: 1280px; margin: 60px auto 0; padding: 0 48px; }
.earn-panel {
  position: relative; overflow: hidden; border-radius: 20px; padding: 40px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(124, 58, 237, .28), transparent 60%),
    linear-gradient(180deg, #17122a, #0e0b18);
  border: 1px solid rgba(168, 85, 247, .3);
}
.tk-badge {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: #fff;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 16px;
  background: linear-gradient(150deg, var(--purple), var(--purple2));
  box-shadow: 0 6px 20px var(--purple-glow);
}
.earn-copy { max-width: 720px; }
.earn-copy h2 { font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.earn-copy > p { color: #cfc7e6; font-size: 16px; line-height: 1.7; margin: 16px 0 22px; }
.earn-copy b { color: #fff; }
.earn-highlight {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px;
  background: rgba(168, 85, 247, .12); border: 1px solid rgba(168, 85, 247, .35);
}
.earn-highlight b {
  font-size: 30px; font-weight: 800; white-space: nowrap;
  background: linear-gradient(150deg, #d8b4fe, #a855f7);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.earn-highlight span { color: #cfc7e6; font-size: 14px; line-height: 1.4; }
.earn-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 900px) { .earn-cards { grid-template-columns: 1fr; } .earn-copy h2 { font-size: 26px; } }
.earn-card {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px; padding: 20px; transition: transform .15s, border-color .15s;
}
.earn-card:hover { transform: translateY(-3px); border-color: rgba(168, 85, 247, .5); }
.earn-card .ei {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  font-size: 19px; color: var(--purple); margin-bottom: 12px;
  background: rgba(168, 85, 247, .14); border: 1px solid rgba(168, 85, 247, .3);
}
.earn-card b { display: block; font-size: 15px; margin-bottom: 6px; }
.earn-card p { color: #b7b0c9; font-size: 13px; line-height: 1.55; }
.earn-example {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08);
  color: #cfc7e6; font-size: 14.5px; line-height: 1.6;
}
.earn-example b { color: var(--purple); }

/* ---------- TOKENOMICS ---------- */
.tokenomics { max-width: 1280px; margin: 64px auto 0; padding: 0 48px; }
.tokenomics .section-head { margin-bottom: 12px; }
.tok-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; }
@media (max-width: 900px) { .tok-grid { grid-template-columns: 1fr; } }
.tok-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.tok-stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
}
.tok-stat span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.tok-stat b { font-size: 22px; font-weight: 800; }
.tok-stat em { font-style: normal; color: var(--purple); font-size: 12px; }
.tok-dist { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.tok-dist h4 { font-size: 15px; margin-bottom: 16px; }
.bar-row { display: grid; grid-template-columns: 190px 1fr 42px; align-items: center; gap: 12px; margin-bottom: 12px; }
.bar-row span { color: var(--muted); font-size: 13px; }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; }
.bar { height: 9px; background: #0d1017; border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; }
.trustbar {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px;
}
.trustbar span {
  font-size: 13px; color: var(--muted); background: var(--card);
  border: 1px solid var(--line); border-radius: 20px; padding: 8px 16px;
}

/* ---------- ROADMAP ---------- */
.roadmap { max-width: 1280px; margin: 64px auto 0; padding: 0 48px; }
.roadmap .section-head { margin-bottom: 18px; }
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .phases { grid-template-columns: repeat(2, 1fr); } }
.phase {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  border-top: 3px solid var(--line);
}
.phase.done { border-top-color: var(--accent); }
.phase.active { border-top-color: var(--purple); box-shadow: 0 0 0 1px rgba(168,85,247,.25), 0 14px 34px rgba(168,85,247,.14); }
.ph-tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.phase.done .ph-tag { color: var(--accent); }
.phase.active .ph-tag { color: var(--purple); }
.phase h4 { font-size: 17px; font-weight: 800; margin: 6px 0 12px; }
.phase ul { list-style: none; }
.phase li { color: var(--muted); font-size: 13px; padding: 4px 0 4px 18px; position: relative; }
.phase li::before { content: "▸"; position: absolute; left: 0; color: var(--purple); }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; margin: 64px auto 0; padding: 0 48px; }
.faq .section-head { margin-bottom: 18px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600; font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--purple); }
.faq .chev { color: var(--purple); font-weight: 400; font-size: 20px; transition: transform .2s; }
.faq details[open] .chev { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- JOIN / CREATE ACCOUNT ---------- */
.join { max-width: 1280px; margin: 72px auto 0; padding: 0 48px; }
.join-panel {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 20px; padding: 48px 40px;
  background:
    radial-gradient(700px 320px at 50% -10%, rgba(124, 58, 237, .35), transparent 60%),
    linear-gradient(180deg, #17122a, #0e0b18);
  border: 1px solid rgba(168, 85, 247, .3);
}
.join-badge {
  display: inline-block; font-size: 12px; font-weight: 700; color: #fff;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 14px;
  background: rgba(168, 85, 247, .18); border: 1px solid rgba(168, 85, 247, .4);
}
.join-panel h2 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.join-panel > p { color: #cfc7e6; font-size: 16px; line-height: 1.6; max-width: 560px; margin: 14px auto 26px; }
.join-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.join-form input {
  flex: 1; padding: 13px 16px; border-radius: 11px; font: inherit;
  background: #0d0b16; border: 1px solid rgba(255, 255, 255, .14); color: var(--text); outline: none;
}
.join-form input:focus { border-color: var(--purple); }
.join-form button {
  cursor: pointer; border: none; border-radius: 11px; padding: 13px 22px; font-weight: 700; color: #fff;
  background: linear-gradient(150deg, var(--purple), var(--purple2)); box-shadow: 0 8px 24px var(--purple-glow);
  transition: transform .12s; white-space: nowrap;
}
.join-form button:hover { transform: translateY(-2px); }
.join-note { display: block; color: var(--muted); font-size: 13px; margin-top: 16px; }
.join-note a { color: var(--purple); cursor: pointer; }
@media (max-width: 560px) { .join-form { flex-direction: column; } .join-panel h2 { font-size: 26px; } }

/* ---------- AUTH MODAL ---------- */
.auth-modal {
  position: fixed; inset: 0; z-index: 120; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(4, 4, 8, .74); backdrop-filter: blur(6px);
}
.auth-modal.open { display: flex; }
.auth-card {
  position: relative; width: 400px; max-width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.auth-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 8px;
  background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: pointer; font-size: 13px;
}
.auth-close:hover { color: var(--text); }
.auth-head { text-align: center; margin-bottom: 18px; }
.auth-head .logo { width: 44px; height: 44px; margin: 0 auto 12px; }
.auth-head h3 { font-size: 20px; font-weight: 800; }
.auth-head p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #0d1017; border: 1px solid var(--line); border-radius: 11px; padding: 4px; margin-bottom: 18px; }
.auth-tab {
  padding: 9px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px;
  background: transparent; color: var(--muted); transition: background .15s, color .15s;
}
.auth-tab.active { background: linear-gradient(150deg, var(--purple), var(--purple2)); color: #fff; }
.field { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.field input {
  width: 100%; margin-top: 5px; padding: 11px 13px; border-radius: 10px; font: inherit;
  background: #0d1017; border: 1px solid var(--line); color: var(--text); outline: none;
}
.field input:focus { border-color: var(--purple); }
.auth-error { color: var(--err); font-size: 12.5px; min-height: 16px; margin: 2px 0 6px; }
.auth-submit {
  width: 100%; padding: 13px; border: none; border-radius: 11px; cursor: pointer; font-weight: 700; font-size: 15px;
  color: #fff; background: linear-gradient(150deg, var(--purple), var(--purple2)); box-shadow: 0 8px 24px var(--purple-glow);
  transition: transform .12s;
}
.auth-submit:hover { transform: translateY(-2px); }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 16px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-alt {
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer;
  background: transparent; color: var(--text); font-weight: 600; font-size: 14px; transition: border-color .15s, background .15s;
}
.auth-alt:hover { border-color: var(--purple); background: rgba(168, 85, 247, .08); }
.auth-switch { text-align: center; color: var(--muted); font-size: 13px; margin-top: 16px; }
.auth-switch a { color: var(--purple); cursor: pointer; font-weight: 600; }

/* ---------- MARKETPLACE PAGE ---------- */
.nav-links a.active { color: var(--text); }
.market { max-width: 1280px; margin: 0 auto; padding: 40px 48px 0; }
.market-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.market-title h1 { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.market-title p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.market-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.mstat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; text-align: center; min-width: 96px; }
.mstat span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.mstat b { font-size: 18px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.mstat:first-child b { color: var(--purple); }
.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; flex: 1; min-width: 220px; }
.search span { color: var(--muted); font-size: 14px; }
.search input { border: none; background: transparent; color: var(--text); padding: 11px 0; width: 100%; outline: none; font: inherit; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip { cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-weight: 600; font-size: 13px; padding: 9px 16px; border-radius: 20px; transition: color .15s, border-color .15s, background .15s; }
.filter-chip:hover { color: var(--text); border-color: #33333f; }
.filter-chip.active { background: linear-gradient(150deg, var(--purple), var(--purple2)); color: #fff; border-color: transparent; }
.sort { cursor: pointer; background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 11px; padding: 11px 14px; font: inherit; outline: none; }
.sort:focus { border-color: var(--purple); }
.market-count { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.market-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; margin-bottom: 64px; }
.market-empty { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 48px 0; }
@media (max-width: 620px) { .market { padding: 28px 20px 0; } .market-title h1 { font-size: 30px; } }

/* ---------- FOOTER ---------- */
.footer {
  display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
  max-width: 1280px; margin: 64px auto 0; padding: 34px 48px;
  border-top: 1px solid var(--line);
}
.foot-tag { color: var(--muted); font-size: 13px; line-height: 1.5; }
.foot-built { margin-left: auto; color: var(--muted); font-size: 14px; }
.foot-built b { color: var(--text); }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--muted); font-size: 13px; transition: color .15s; }
.foot-links a:hover { color: var(--purple); }

/* ===== My Collection — empty state ===== */
.collection-empty {
  max-width: 640px; margin: 30px auto 90px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 56px 34px;
}
.ce-icon { font-size: 54px; line-height: 1; margin-bottom: 10px; filter: drop-shadow(0 8px 24px rgba(168,85,247,.35)); }
.collection-empty h2 { font-size: 26px; margin-bottom: 12px; }
.collection-empty p { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 46ch; margin: 0 auto 26px; }
.ce-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ce-hint { color: var(--muted); font-size: 12.5px; margin-top: 22px; }

/* ===== Marketplace — "new memes coming" strip ===== */
.coming-soon {
  margin: 6px 0 72px; text-align: center;
  background: linear-gradient(180deg, rgba(168,85,247,.10), transparent);
  border: 1px dashed var(--line); border-radius: 18px; padding: 34px 26px;
}
.coming-soon h3 { font-size: 20px; margin-bottom: 8px; }
.coming-soon p { color: var(--muted); font-size: 14px; max-width: 48ch; margin: 0 auto; }
.cs-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--purple);
  margin-bottom: 14px; animation: csPulse 1.6s ease-out infinite;
}
@keyframes csPulse {
  0%   { box-shadow: 0 0 0 0 rgba(168,85,247,.5); }
  70%  { box-shadow: 0 0 0 12px rgba(168,85,247,0); }
  100% { box-shadow: 0 0 0 0 rgba(168,85,247,0); }
}
