/* ================================================================
   PumpFun Clone — Design Template
   ================================================================
   Color palette: #7bff69 green (matches pump.fun UI)
   See also: website/styles.css (#00ff88 — SDK docs site)
             site/pump.css (#5be45b — PumpOS desktop)
   ================================================================ */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0e0e16;
  --bg-secondary: #13131d;
  --bg-card: #181825;
  --bg-card-hover: #1e1e2e;
  --bg-input: #1a1a28;
  --bg-elevated: #222233;
  --bg-overlay: rgba(10, 10, 18, 0.85);

  --green: #7bff69;
  --green-dim: #5bd94d;
  --green-glow: rgba(123, 255, 105, 0.12);
  --green-bg: rgba(123, 255, 105, 0.08);
  --cyan: #00d4ff;
  --purple: #a855f7;
  --purple-dim: #7c3aed;
  --yellow: #facc15;
  --red: #ef4444;
  --pink: #f472b6;
  --orange: #fb923c;
  --blue: #3b82f6;

  --text: #f1f1f7;
  --text-secondary: #9d9daf;
  --text-muted: #5a5a70;
  --text-dim: #44445a;

  --border: #2a2a3e;
  --border-hover: #3a3a52;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --header-h: 60px;
  --max-w: 1400px;
  --transition: 150ms ease;
  --transition-slow: 300ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: var(--green); color: var(--bg); }

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { display: block; max-width: 100%; }
input, textarea, select { font-family: inherit; }

/* ---------- Utility ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.gradient-text {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.green { color: var(--green); }
.red { color: var(--red); }
.yellow { color: var(--yellow); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ================================================================
   HEADER / NAVBAR
   ================================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(14, 14, 22, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  flex-shrink: 0;
}
.logo img, .logo svg { width: 36px; height: 36px; }
.logo-accent { color: var(--green); }
.logo-crown { font-size: 14px; margin-left: -4px; margin-top: -10px; }

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-link.active { color: var(--green); background: var(--green-bg); }

/* Search */
.header-search {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 16px;
  flex: 1;
  max-width: 400px;
  height: 38px;
  transition: border-color var(--transition);
}
.header-search:focus-within { border-color: var(--green); }
.header-search svg { flex-shrink: 0; color: var(--text-muted); }
.header-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  padding: 0 10px;
}
.header-search input::placeholder { color: var(--text-muted); }

/* Wallet */
.btn-wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--green-dim), var(--green));
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-wallet:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--green-glow); }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  width: 38px; height: 38px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.mobile-toggle span {
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ================================================================
   MAIN LAYOUT
   ================================================================ */
.main { padding-top: var(--header-h); min-height: 100vh; }

/* ================================================================
   TAB BAR / FILTERS
   ================================================================ */
.tab-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex-wrap: wrap;
}
.tab-bar::-webkit-scrollbar { display: none; }

.tab {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.tab:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.tab.active {
  color: var(--green);
  background: var(--green-bg);
  border-color: rgba(123, 255, 105, 0.2);
}

.tab-emoji { margin-right: 4px; }

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--border-hover); color: var(--text); }
.filter-btn svg { width: 14px; height: 14px; }

/* ================================================================
   ACTIVITY TICKER
   ================================================================ */
.ticker-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 32px;
  animation: ticker-scroll 40s linear infinite;
  width: max-content;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.ticker-item img {
  width: 20px; height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.ticker-item .green { font-weight: 600; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================================================
   TOKEN CARD GRID
   ================================================================ */
.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 20px 0;
}

.token-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-slow);
  cursor: pointer;
  position: relative;
}
.token-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.token-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  z-index: 2;
}
.token-card-badge.king {
  background: linear-gradient(135deg, rgba(250,204,21,0.2), rgba(251,146,60,0.2));
  color: var(--yellow);
}

.token-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-secondary);
}

.token-card-body { padding: 14px; }

.token-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.token-card-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-elevated);
  flex-shrink: 0;
}
.token-card-creator {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-card-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.token-card-ticker {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
}

.token-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
  margin-bottom: 12px;
}

/* Bonding curve progress */
.bonding-progress {
  margin-top: auto;
}
.bonding-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.bonding-progress-bar {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
}
.bonding-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-dim), var(--green));
  border-radius: 2px;
  transition: width 0.5s ease;
}

.token-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.token-stat {
  font-size: 12px;
  color: var(--text-secondary);
}
.token-stat-value {
  font-weight: 700;
  color: var(--text);
}
.token-stat-label {
  color: var(--text-muted);
  font-size: 11px;
}

/* ================================================================
   KING OF THE HILL BANNER
   ================================================================ */
.king-banner {
  background: linear-gradient(135deg, rgba(250,204,21,0.06), rgba(251,146,60,0.06));
  border: 1px solid rgba(250,204,21,0.15);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}
.king-banner-img {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid rgba(250,204,21,0.3);
}
.king-banner-info { flex: 1; }
.king-banner-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.king-banner-name {
  font-size: 20px;
  font-weight: 800;
}
.king-banner-stats {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}
.king-banner-stats strong { color: var(--text); }

/* ================================================================
   TOKEN DETAIL PAGE
   ================================================================ */
.token-page { display: grid; grid-template-columns: 1fr 360px; gap: 20px; padding: 20px 0; }

/* Chart area */
.chart-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.chart-token-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chart-token-img {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.chart-token-name { font-weight: 700; font-size: 18px; }
.chart-token-ticker { color: var(--text-muted); font-size: 14px; }
.chart-token-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--green);
}

.chart-timeframes { display: flex; gap: 4px; }
.chart-tf-btn {
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.chart-tf-btn:hover { color: var(--text); }
.chart-tf-btn.active { color: var(--green); background: var(--green-bg); border-color: rgba(123,255,105,0.15); }

.chart-area {
  height: 400px;
  background: var(--bg-secondary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Fake candlestick chart */
.chart-placeholder {
  width: 100%;
  height: 100%;
}

/* Token info sidebar tabs */
.chart-below-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.chart-below-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.chart-below-tab:hover { color: var(--text); }
.chart-below-tab.active { color: var(--green); border-bottom-color: var(--green); }

/* Thread / comments */
.thread-panel { padding: 16px 20px; max-height: 400px; overflow-y: auto; }
.thread-message {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.thread-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  flex-shrink: 0;
  overflow: hidden;
}
.thread-avatar img { width: 100%; height: 100%; object-fit: cover; }
.thread-body { flex: 1; }
.thread-user {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.thread-user span { color: var(--text-muted); font-weight: 400; font-size: 11px; margin-left: 8px; }
.thread-text { font-size: 14px; color: var(--text); line-height: 1.4; }
.thread-text img { max-width: 200px; border-radius: var(--radius-sm); margin-top: 6px; }

.thread-input-wrap {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}
.thread-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.thread-input:focus { border-color: var(--green); }
.thread-send-btn {
  padding: 10px 20px;
  background: var(--green);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  transition: all var(--transition);
}
.thread-send-btn:hover { background: var(--green-dim); }

/* ================================================================
   TRADING SIDEBAR
   ================================================================ */
.trade-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trade-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

/* Buy/Sell toggle */
.trade-toggle {
  display: flex;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 16px;
}
.trade-toggle-btn {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.trade-toggle-btn.active-buy { background: var(--green); color: var(--bg); }
.trade-toggle-btn.active-sell { background: var(--red); color: white; }

/* Amount input */
.trade-input-group { margin-bottom: 12px; }
.trade-input-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.trade-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  height: 48px;
  transition: border-color var(--transition);
}
.trade-input-wrap:focus-within { border-color: var(--green); }
.trade-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}
.trade-input::placeholder { color: var(--text-dim); }
.trade-input-suffix {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.trade-input-suffix img { width: 18px; height: 18px; border-radius: 50%; }

/* Quick amount buttons */
.trade-quick-amounts {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.trade-quick-btn {
  flex: 1;
  padding: 7px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.trade-quick-btn:hover { border-color: var(--green); color: var(--green); }

/* Slippage */
.trade-slippage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.trade-slippage-value {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Submit */
.trade-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}
.trade-submit.buy-btn {
  background: linear-gradient(135deg, var(--green-dim), var(--green));
  color: var(--bg);
}
.trade-submit.buy-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 24px var(--green-glow); }
.trade-submit.sell-btn {
  background: linear-gradient(135deg, #dc2626, var(--red));
  color: white;
}

/* Token info card */
.token-info-card { padding: 16px; }
.token-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.token-info-row:last-child { border-bottom: none; }
.token-info-key { color: var(--text-muted); }
.token-info-val { color: var(--text); font-weight: 600; }
.token-info-val.green { color: var(--green); }

/* Holder distribution */
.holder-list { max-height: 200px; overflow-y: auto; }
.holder-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
}
.holder-rank { width: 20px; color: var(--text-muted); }
.holder-addr {
  flex: 1;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.holder-pct { font-weight: 700; }
.holder-bar {
  width: 60px; height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
}
.holder-bar-fill { height: 100%; background: var(--green); border-radius: 2px; }

/* ================================================================
   CREATE TOKEN PAGE
   ================================================================ */
.create-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
}
.create-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
}
.create-subtitle {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
  font-size: 15px;
}

.create-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
}
.form-input:focus { border-color: var(--green); }
.form-input::placeholder { color: var(--text-dim); }
textarea.form-input { min-height: 100px; resize: vertical; line-height: 1.5; }

/* Image upload */
.form-upload {
  width: 100%;
  aspect-ratio: 1;
  max-width: 200px;
  background: var(--bg-input);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
  font-size: 14px;
}
.form-upload:hover { border-color: var(--green); color: var(--green); }
.form-upload svg { width: 32px; height: 32px; }

/* Social links row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Switches/checkboxes */
.form-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.form-switch-label {
  font-size: 14px;
  font-weight: 600;
}
.form-switch-desc {
  font-size: 12px;
  color: var(--text-muted);
}
.form-switch {
  width: 44px; height: 24px;
  background: var(--bg-elevated);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.form-switch.active { background: var(--green); }
.form-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition);
}
.form-switch.active::after { transform: translateX(20px); }

.create-submit {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green-dim), var(--green));
  color: var(--bg);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: -0.3px;
}
.create-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 30px var(--green-glow); }

.create-cost-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Show more */
.show-more-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
}

/* ================================================================
   PROFILE PAGE
   ================================================================ */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--border);
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 22px; font-weight: 800; }
.profile-addr {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.profile-stats-row {
  display: flex;
  gap: 24px;
  margin-top: 10px;
}
.profile-stat { font-size: 13px; color: var(--text-secondary); }
.profile-stat strong { color: var(--text); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-dim); }
.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--text-secondary); color: var(--text); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .token-page { grid-template-columns: 1fr; }
  .trade-panel { order: -1; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-toggle { display: flex; }
  .header-search { max-width: none; }
  .btn-wallet span { display: none; }
  .token-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
  .king-banner { flex-direction: column; text-align: center; }
  .king-banner-stats { justify-content: center; }
  .tab-bar { flex-wrap: nowrap; }
  .filter-group { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; text-align: center; }
  .profile-stats-row { justify-content: center; }
}

@media (max-width: 480px) {
  .token-grid { grid-template-columns: 1fr; }
  .trade-quick-amounts { flex-wrap: wrap; }
}

/* ================================================================
   MOBILE NAV OVERLAY
   ================================================================ */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(16px);
  z-index: 999;
  display: none;
  flex-direction: column;
  padding: 20px;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--green); background: var(--green-bg); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.3s ease forwards; }

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 var(--green-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
.pulse-green { animation: pulse-green 2s ease infinite; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* Live indicator */
.live-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-green 2s ease infinite;
}

/* ================================================================
   TRANSACTION HISTORY TABLE
   ================================================================ */
.tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tx-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.tx-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.tx-table tr:hover { background: rgba(255,255,255,0.01); }
.tx-type {
  font-weight: 700;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}
.tx-type.buy { color: var(--green); background: var(--green-bg); }
.tx-type.sell { color: var(--red); background: rgba(239,68,68,0.08); }
