/* ===== DESIGN TOKENS ===== */
:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --surface-3: #222222;
  --line: #2a2a2a;
  --line-strong: #3a3a3a;
  --ink: #f0f0f0;
  --ink-dim: #888888;
  --ink-muted: #555555;
  --accent: #b8ff00;
  --accent-dim: rgba(184, 255, 0, 0.12);
  --accent-glow: rgba(184, 255, 0, 0.08);
  --positive: #00e676;
  --negative: #ff5252;
  --font: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --max-w: 1360px;
  --radius: 8px;
  --transition: 0.15s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
  background-image:
    radial-gradient(rgba(184, 255, 0, 0.09) 1px, transparent 0),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 20px,
      rgba(184, 255, 0, 0.015) 20px,
      rgba(184, 255, 0, 0.015) 21px
    );
  background-size: 20px 20px, auto;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; cursor: pointer; background: none; color: inherit; }
input, textarea { font-family: inherit; border: none; outline: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
[data-cta] { cursor: pointer; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 20px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-img { width: 28px; height: 28px; }
.logo-text {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.main-nav {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dim);
  padding: 6px 14px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--ink); background: var(--surface-2); }

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== BRAND STRIP ===== */
.brand-strip {
  background: var(--accent);
  overflow: hidden;
  white-space: nowrap;
  height: 28px;
  display: flex;
  align-items: center;
}
.strip-track {
  display: inline-flex;
  gap: 0;
  animation: stripScroll 20s linear infinite;
}
.strip-item {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--bg);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0 28px;
  flex-shrink: 0;
}
@keyframes stripScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.chain-badge {
  display: none;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-mono);
}
.chain-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 6px rgba(0, 230, 118, 0.4);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: #cdff33;
  box-shadow: 0 0 20px rgba(184, 255, 0, 0.25);
}
.btn-full { width: 100%; }

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
}
.mobile-menu-btn svg { width: 22px; height: 22px; }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 56px;
  left: 0; right: 0; bottom: 0;
  z-index: 49;
  background: var(--bg);
  padding: 16px 20px;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--line);
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mobile-nav-link.active { color: var(--accent); }
.mobile-nav-actions { margin-top: 16px; }

/* ===== HERO ===== */
.hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(rgba(184, 255, 0, 0.07) 1px, transparent 0) 0 0 / 20px 20px,
    var(--surface);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 20px;
  gap: 24px;
}
.hero-content { flex: 1; }
.hero-brand {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.06em;
  text-shadow: 0 0 40px rgba(184, 255, 0, 0.2);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 24px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all var(--transition);
}
.hero-cta svg { width: 16px; height: 16px; transition: transform var(--transition); }
.hero-cta:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 24px rgba(184, 255, 0, 0.3);
}
.hero-cta:hover svg { transform: translateX(4px); }
.hero-sub {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
}

.hero-airdrop {
  display: none;
  width: 280px;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 18px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.hero-airdrop:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(184, 255, 0, 0.1);
}
.ad-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.ad-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(184, 255, 0, 0.6);
  animation: adPulse 1.5s ease-in-out infinite;
}
@keyframes adPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.ad-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.ad-badge-live {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--bg);
}
.ad-mcap-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.ad-mcap-val {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}
.ad-mcap-change {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--positive);
}
.ad-mcap-lbl {
  font-size: 10px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.ad-divider {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}
.ad-pool-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.ad-lbl {
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ad-pool-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.ad-pool-val small {
  font-size: 10px;
  opacity: 0.7;
}
.ad-progress { margin-bottom: 14px; }
.ad-progress-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.ad-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.ad-bar {
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
}
.ad-bar-fill {
  width: 74.2%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #cdff33);
  border-radius: 3px;
  animation: adBarGlow 2s ease-in-out infinite alternate;
}
@keyframes adBarGlow {
  0% { box-shadow: none; }
  100% { box-shadow: 0 0 10px rgba(184, 255, 0, 0.4); }
}
.ad-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.ad-stat {
  flex: 1;
  background: var(--surface);
  border-radius: 6px;
  padding: 8px 10px;
  text-align: center;
}
.ad-stat-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.ad-stat-lbl {
  display: block;
  font-size: 9px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.ad-cta-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 0;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all var(--transition);
}
.ad-cta-link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.ad-cta-link:hover {
  background: var(--accent);
  color: var(--bg);
}
.ad-cta-link:hover svg { transform: translateX(3px); }

/* ===== MAIN ===== */
.main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 6px;
  padding: 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all var(--transition);
}
.tab:hover { border-color: var(--accent); color: var(--ink); }
.tab.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.tab-hot { border-color: #ff6b35; color: #ff6b35; }
.tab-hot:hover { background: #ff6b35; color: var(--bg); border-color: #ff6b35; }

/* ===== SORT BAR ===== */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.sort-bar-left {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.sort-label {
  font-size: 11px;
  color: var(--ink-muted);
  margin-right: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sort-btn {
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all var(--transition);
}
.sort-btn:hover { color: var(--ink); background: var(--surface-2); }
.sort-btn.active { color: var(--accent); background: var(--surface-2); }

.sort-bar-right {
  display: flex;
  gap: 4px;
}
.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: var(--ink-muted);
  transition: all var(--transition);
}
.view-btn svg { width: 14px; height: 14px; }
.view-btn:hover { color: var(--ink); background: var(--surface-2); }
.view-btn.active { color: var(--accent); background: var(--surface-2); }

/* ===== TOKEN TABLE ===== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.token-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}
.token-table thead th {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
}
.th-coin { min-width: 200px; }
.th-price, .th-mcap, .th-vol, .th-liq { min-width: 100px; }
.th-pair, .th-tax { min-width: 60px; }
.th-holders { min-width: 80px; }
.th-ch { min-width: 70px; text-align: right; }

.token-row {
  cursor: pointer;
  transition: background var(--transition);
}
.token-row:hover { background: var(--surface); }
.token-row td {
  padding: 12px;
  border-bottom: 1px solid rgba(42, 42, 42, 0.5);
  vertical-align: middle;
}

.td-coin { font-weight: 600; }
.coin-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.coin-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.coin-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--bg);
  flex-shrink: 0;
}
.coin-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.coin-ticker {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.coin-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 6px;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.badge-listed {
  background: rgba(184, 255, 0, 0.12);
  color: var(--accent);
}
.badge-new {
  background: rgba(255, 107, 53, 0.15);
  color: #ff6b35;
}
.coin-name {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 400;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.td-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
}
.td-tax {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.pair-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--ink-dim);
}

.ch-pos {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--positive);
  text-align: right;
}
.ch-neg {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--negative);
  text-align: right;
}

/* ===== MORE BUTTON ===== */
.more-wrap {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all var(--transition);
}
.btn-more svg { width: 14px; height: 14px; }
.btn-more:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.6;
}
.footer-copy {
  font-size: 11px;
  color: var(--ink-muted);
}

/* ===== RESPONSIVE ===== */

/* xs: ≤479px */
@media (max-width: 479px) {
  .header-inner { height: 50px; padding: 0 12px; }
  .logo-text { font-size: 16px; }
  .hero-inner { padding: 24px 12px; }
  .hero-brand { font-size: 42px; }
  .hero-cta { font-size: 12px; padding: 8px 16px; }
  .hero-sub { font-size: 10px; }
  .main { padding: 0 8px 32px; }
  .tab { padding: 6px 12px; font-size: 10px; }
  .sort-bar { flex-wrap: wrap; gap: 8px; }
  .token-table { font-size: 12px; }
  .token-row td { padding: 10px 8px; }
  .coin-img, .coin-placeholder { width: 28px; height: 28px; font-size: 11px; }
  .btn-more { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* sm: 480-767px */
@media (min-width: 480px) and (max-width: 767px) {
  .hero-brand { font-size: 52px; }
  .main { padding: 0 14px 36px; }
}

/* ≤767px — mobile */
@media (max-width: 767px) {
  .header-right .chain-badge,
  .header-right .btn { display: none; }
  .mobile-menu-btn { display: flex; }
  .main-nav { display: none; }
}

/* md: 768px+ */
@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
  .main-nav { display: flex; }
  .chain-badge { display: flex; }
  .header-inner { padding: 0 28px; }
  .hero-inner { padding: 40px 28px; }
  .hero-brand { font-size: 72px; }
  .hero-airdrop { display: block; }
  .main { padding: 0 28px 56px; }
  .footer-inner { padding: 20px 28px; }
}

/* lg: 1024px+ */
@media (min-width: 1024px) {
  .hero-brand { font-size: 80px; }
  .hero-airdrop { width: 300px; }
}

/* xl: 1280px+ */
@media (min-width: 1280px) {
  .hero-brand { font-size: 96px; }
  .hero-airdrop { width: 320px; padding: 22px; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.token-row { animation: fadeIn 0.3s ease both; }
.token-row:nth-child(2) { animation-delay: 0.02s; }
.token-row:nth-child(3) { animation-delay: 0.04s; }
.token-row:nth-child(4) { animation-delay: 0.06s; }
.token-row:nth-child(5) { animation-delay: 0.08s; }
.token-row:nth-child(6) { animation-delay: 0.1s; }
