/* Design tokens copied from pump.fun production CSS */

:root {
  /* ---- Colors (pump.fun exact) ---- */
  --bg-primary: #0a0d0f;
  --bg-secondary: #0f1316;
  --bg-tertiary: #151a1e;
  --bg-card: #11161a;
  --bg-card-hover: #141a1f;
  --bg-input: #181d21;
  --bg-input-focus: #1c2227;

  --border-primary: #1e252a;
  --border-secondary: #272f36;
  --border-focus: #00d4aa;
  --border-focus-glow: rgba(0, 212, 170, 0.25);

  --text-primary: #f2f4f5;
  --text-secondary: #a0a8ad;
  --text-tertiary: #6b757b;
  --text-inverse: #0a0d0f;
  --text-link: #00d4aa;

  --green-primary: #00d4aa;
  --green-hover: #00e8bb;
  --green-press: #00c099;
  --green-glow: rgba(0, 212, 170, 0.35);
  --green-soft: rgba(0, 212, 170, 0.12);

  --gold-primary: #f5c000;
  --gold-hover: #ffe033;
  --gold-soft: rgba(245, 192, 0, 0.12);

  --red-primary: #ff4757;
  --red-hover: #ff6b77;
  --red-soft: rgba(255, 71, 87, 0.12);

  --purple-primary: #a855f7;
  --purple-soft: rgba(168, 85, 247, 0.12);

  /* ---- Shadows (pump.fun layered) ---- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px var(--green-glow);
  --shadow-glow-gold: 0 0 20px rgba(245, 192, 0, 0.35);
  --shadow-glow-red: 0 0 20px rgba(255, 71, 87, 0.35);

  /* ---- Radii ---- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 9999px;
  --radius-avatar: 12px;

  /* ---- Spacing (4px base) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* ---- Typography ---- */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 13px;
  --text-md: 14px;
  --text-lg: 15px;
  --text-xl: 16px;
  --text-2xl: 18px;
  --text-3xl: 22px;
  --text-4xl: 28px;

  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* ---- Transitions ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 100ms;
  --dur-base: 150ms;
  --dur-slow: 250ms;

  /* ---- Layout ---- */
  --header-h: 56px;
  --banner-h: 120px;
  --filter-h: 52px;
  --sidebar-w: 340px;
  --max-w: 1400px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; font-size: inherit; color: inherit; background: none; border: none; outline: none; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-secondary); border-radius: 4px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }
::selection { background: var(--green-soft); color: var(--green-primary); }

/* ===== Focus Visible ===== */
:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }

/* ===== Layout ===== */
.page { min-height: 100vh; display: flex; flex-direction: column; }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--space-4);
  background: rgba(10, 13, 15, 0.9);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border-primary);
}
.header-left { display: flex; align-items: center; gap: var(--space-4); }
.header-right { display: flex; align-items: center; gap: var(--space-3); }

.logo-link { display: flex; align-items: center; gap: var(--space-2); font-weight: var(--font-bold); font-size: var(--text-lg); letter-spacing: -0.02em; }
.logo-icon { font-size: 20px; }
.logo-text { display: none; }
@media (min-width: 640px) { .logo-text { display: inline; } }

.header-nav { display: flex; gap: var(--space-1); }
.nav-item {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm); font-weight: var(--font-medium);
  color: var(--text-tertiary);
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.nav-item:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.nav-item.active { color: var(--text-primary); background: var(--green-soft); }

.btn-search {
  position: relative;
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  min-width: 260px; height: 40px;
  background: var(--bg-input); border: 1px solid var(--border-primary);
  border-radius: var(--radius-pill);
  color: var(--text-tertiary); font-size: var(--text-sm);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.btn-search:hover { border-color: var(--border-secondary); background: var(--bg-input-focus); }
.btn-search:focus-within { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--border-focus-glow); background: var(--bg-input-focus); }
.btn-search svg { flex-shrink: 0; color: var(--text-tertiary); }
.search-placeholder { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-kbd { display: none; padding: 1px 5px; font-size: 9px; font-weight: var(--font-medium); background: var(--bg-tertiary); border-radius: 3px; color: var(--text-tertiary); }
@media (min-width: 768px) { .search-kbd { display: inline-flex; } }

.btn-wallet {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  height: 40px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-press));
  color: var(--text-inverse); font-weight: var(--font-bold); font-size: var(--text-sm);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glow);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.btn-wallet:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--green-glow); }
.btn-wallet:active { transform: translateY(0); box-shadow: var(--shadow-glow); }
.btn-wallet.connected {
  background: var(--bg-card); color: var(--text-primary);
  border: 1px solid var(--border-primary);
  box-shadow: none;
}
.btn-wallet.connected:hover { background: var(--bg-card-hover); border-color: var(--border-secondary); }
.wallet-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-inverse); box-shadow: 0 0 8px var(--text-inverse); }
.btn-wallet.connected .wallet-dot { background: var(--text-tertiary); box-shadow: none; }

/* ===== BANNER ROW ===== */
.banner-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
}
.banner-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  overflow: hidden;
  min-height: var(--banner-h);
}
.banner-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent);
  pointer-events: none;
}
.banner-badge {
  position: absolute; top: var(--space-2); left: var(--space-2); z-index: 1;
  display: inline-flex; align-items: center;
  padding: 2px var(--space-2);
  font-size: var(--text-xs); font-weight: var(--font-bold); text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-inverse); background: var(--green-primary);
  border-radius: var(--radius-pill);
}
.banner-card.spotlight .banner-badge { background: var(--gold-primary); }
.banner-card.trending .banner-badge { background: var(--red-primary); }
.banner-content { position: relative; z-index: 1; padding: var(--space-4); display: flex; align-items: center; gap: var(--space-3); }
.banner-avatar {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: var(--radius-avatar);
  background: linear-gradient(135deg, var(--green-primary), var(--green-press));
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.banner-card.spotlight .banner-avatar { background: linear-gradient(135deg, var(--gold-primary), #d4a000); }
.banner-card.trending .banner-avatar { background: linear-gradient(135deg, var(--red-primary), #e03e4e); }
.banner-avatar img { width: 100%; height: 100%; object-fit: cover; }
.banner-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.banner-ticker { font-weight: var(--font-bold); font-size: var(--text-xl); color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner-mc { font-size: var(--text-sm); color: var(--text-tertiary); }
.banner-live {
  position: absolute; bottom: var(--space-2); right: var(--space-2); z-index: 1;
  display: flex; align-items: center; gap: 4px;
  padding: 3px var(--space-2);
  font-size: var(--text-xs); font-weight: var(--font-bold);
  color: var(--text-inverse); background: var(--green-primary);
  border-radius: var(--radius-pill);
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-inverse); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
  padding: 0 var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--border-primary);
}
.filter-tabs {
  display: flex; gap: var(--space-1); overflow-x: auto;
  padding-bottom: var(--space-1);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  display: flex; align-items: center; gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm); font-weight: var(--font-medium);
  color: var(--text-tertiary);
  background: transparent; border: 1px solid transparent;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.filter-tab:hover { color: var(--text-primary); background: var(--bg-tertiary); border-color: var(--border-primary); }
.filter-tab.active { color: var(--text-primary); background: var(--green-soft); border-color: var(--green-primary); }
.filter-tab svg { flex-shrink: 0; }

.filter-view-toggle { display: flex; gap: var(--space-1); }
.view-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  color: var(--text-tertiary);
  background: transparent; border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.view-btn:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.view-btn.active { color: var(--green-primary); background: var(--green-soft); border-color: var(--green-primary); }

/* ===== MAIN CONTENT ===== */
.main-content { flex: 1; padding: var(--space-4); max-width: var(--max-w); margin: 0 auto; width: 100%; }
.section-title {
  font-size: var(--text-md); font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
  display: flex; align-items: center; gap: var(--space-2);
}
.title-flame { font-size: var(--text-base); }

/* ===== COIN GRID ===== */
.coin-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3);
}
@media (max-width: 1024px) { .coin-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .coin-grid { grid-template-columns: 1fr; } }

.coin-card {
  background: var(--bg-card); border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.coin-card:hover {
  border-color: var(--border-secondary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.coin-card-avatar {
  aspect-ratio: 1; width: 100%; background: var(--bg-tertiary); overflow: hidden;
}
.coin-card-avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.coin-card:hover .coin-card-avatar img { transform: scale(1.04); }
.coin-card-body { padding: var(--space-3); }
.coin-card-name-row { display: flex; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-1); }
.coin-card-name { font-weight: var(--font-bold); font-size: var(--text-md); color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-card-ticker { font-size: var(--text-sm); color: var(--text-tertiary); font-weight: var(--font-medium); }
.coin-card-creator { font-size: var(--text-xs); color: var(--text-tertiary); margin-bottom: var(--space-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-card-mc { font-weight: var(--font-bold); font-size: var(--text-md); color: var(--text-primary); margin-bottom: var(--space-2); }
.progress-bar-wrap { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
.progress-bar { flex: 1; height: 6px; background: var(--bg-input); border-radius: var(--radius-pill); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--green-primary), var(--green-hover)); border-radius: var(--radius-pill); transition: width var(--dur-slow) var(--ease-out); box-shadow: 0 0 8px var(--green-glow); }
.progress-pct { font-size: var(--text-xs); font-weight: var(--font-bold); color: var(--green-primary); font-variant-numeric: tabular-nums; min-width: 36px; text-align: right; }
.coin-card-meta { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-xs); color: var(--text-tertiary); }
.coin-card-change { font-weight: var(--font-semibold); font-variant-numeric: tabular-nums; }
.coin-card-change.positive { color: var(--green-primary); }
.coin-card-change.negative { color: var(--red-primary); }
.coin-card-replies { display: flex; align-items: center; gap: 3px; }
.coin-card-time { color: var(--text-tertiary); }

/* ===== LOADING ===== */
.loading-indicator { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-8); color: var(--text-tertiary); }
.spinner { width: 32px; height: 32px; border: 2px solid var(--border-primary); border-top-color: var(--green-primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--space-3); margin-top: var(--space-5); }
.page-btn {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm); font-weight: var(--font-medium);
  color: var(--text-tertiary);
  background: var(--bg-card); border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.page-btn:hover:not(:disabled) { color: var(--text-primary); border-color: var(--border-secondary); background: var(--bg-card-hover); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-info { font-size: var(--text-sm); color: var(--text-tertiary); font-variant-numeric: tabular-nums; }

/* ===== DETAIL VIEW ===== */
.view-detail { animation: slideIn 0.25s var(--ease-out); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.detail-layout { display: grid; grid-template-columns: 1fr var(--sidebar-w); gap: var(--space-4); }
@media (max-width: 1024px) { .detail-layout { grid-template-columns: 1fr; } .detail-right { position: sticky; top: calc(var(--header-h) + var(--space-4)); } }
.detail-center { min-width: 0; }
.detail-right { display: flex; flex-direction: column; gap: var(--space-3); }

.btn-back {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm); font-weight: var(--font-medium);
  color: var(--text-tertiary);
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.btn-back:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.btn-back svg { flex-shrink: 0; }

/* ===== CHART SECTION ===== */
.chart-section { background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-3); }
.chart-timeframes { display: flex; gap: var(--space-1); padding: var(--space-3); border-bottom: 1px solid var(--border-primary); background: var(--bg-secondary); }
.tf-btn {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm); font-weight: var(--font-medium);
  color: var(--text-tertiary);
  background: transparent; border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.tf-btn:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.tf-btn.active { color: var(--green-primary); background: var(--green-soft); border-color: var(--green-primary); }

.chart-container { position: relative; height: 320px; padding: var(--space-3); }
.chart-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); }

/* ===== BONDING SECTION ===== */
.bonding-section { background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: var(--radius-lg); padding: var(--space-3); margin-bottom: var(--space-3); }
.bonding-label { display: block; font-size: var(--text-xs); font-weight: var(--font-medium); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-2); }
.progress-bar-wrap { display: flex; align-items: center; gap: var(--space-2); }
.progress-bar { flex: 1; height: 8px; background: var(--bg-input); border-radius: var(--radius-pill); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--green-primary), var(--green-hover)); border-radius: var(--radius-pill); transition: width var(--dur-slow) var(--ease-out); box-shadow: 0 0 12px var(--green-glow); }
.progress-pct { font-size: var(--text-sm); font-weight: var(--font-bold); color: var(--green-primary); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.bonding-status { font-size: var(--text-sm); color: var(--text-tertiary); }

/* ===== DETAIL TABS ===== */
.detail-tabs {
  display: flex; gap: var(--space-1);
  background: var(--bg-secondary); border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg); padding: var(--space-1);
  margin-bottom: var(--space-3);
}
.detail-tab {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm); font-weight: var(--font-semibold);
  color: var(--text-tertiary);
  border-radius: var(--radius-md);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.detail-tab:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.detail-tab.active { color: var(--text-primary); background: var(--bg-card); box-shadow: var(--shadow-sm); }

.detail-tab-content { animation: fadeIn 0.15s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.thread-messages, .holders-list, .trades-list { background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: var(--radius-lg); min-height: 200px; }
.thread-empty, .holders-empty, .trades-empty { padding: var(--space-6); text-align: center; color: var(--text-tertiary); font-size: var(--text-sm); }

/* ===== COIN INFO CARD ===== */
.coin-info-card {
  background: var(--bg-card); border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl); padding: var(--space-4);
  position: sticky; top: calc(var(--header-h) + var(--space-4));
}
.coin-info-top { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.coin-info-avatar {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: var(--radius-avatar);
  background: linear-gradient(135deg, var(--green-primary), var(--green-press));
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.coin-info-avatar img { width: 100%; height: 100%; object-fit: cover; }
.coin-info-text { min-width: 0; }
.coin-info-name { font-weight: var(--font-bold); font-size: var(--text-xl); color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.coin-info-ticker { font-size: var(--text-sm); color: var(--text-tertiary); font-weight: var(--font-medium); margin-right: var(--space-2); }
.coin-info-creator { font-size: var(--text-xs); color: var(--text-tertiary); }
.coin-info-mc { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3); background: var(--bg-secondary); border-radius: var(--radius-md); margin-bottom: var(--space-3); }
.mc-label { font-size: var(--text-xs); font-weight: var(--font-medium); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; }
.mc-value { font-weight: var(--font-bold); font-size: var(--text-xl); color: var(--text-primary); font-variant-numeric: tabular-nums; }
.coin-info-address { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); background: var(--bg-secondary); border-radius: var(--radius-md); margin-bottom: var(--space-3); }
.contract-addr { flex: 1; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-copy {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex-shrink: 0;
  color: var(--text-tertiary); background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.btn-copy:hover { color: var(--green-primary); background: var(--green-soft); }
.coin-info-social { display: flex; gap: var(--space-2); }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  font-size: var(--text-base); color: var(--text-tertiary);
  background: var(--bg-secondary); border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.social-link:hover { color: var(--text-primary); border-color: var(--border-secondary); background: var(--bg-tertiary); }

/* ===== TRADE PANEL ===== */
.trade-panel {
  background: var(--bg-card); border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl); padding: var(--space-4);
  position: sticky; top: calc(var(--header-h) + var(--space-4) + 320px);
}
.trade-tabs { display: flex; gap: var(--space-1); margin-bottom: var(--space-3); }
.trade-tab {
  flex: 1;
  padding: var(--space-2);
  font-size: var(--text-sm); font-weight: var(--font-semibold);
  color: var(--text-tertiary);
  background: var(--bg-secondary); border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.trade-tab:hover { color: var(--text-primary); }
.trade-tab.active { color: var(--text-primary); background: var(--bg-card); border-color: var(--border-primary); box-shadow: var(--shadow-sm); }

.trade-input-row { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.trade-input {
  flex: 1; height: 48px;
  padding: 0 var(--space-3);
  font-size: var(--text-xl); font-weight: var(--font-bold); font-family: var(--font-mono);
  color: var(--text-primary);
  background: var(--bg-input); border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.trade-input::placeholder { color: var(--text-tertiary); }
.trade-input:hover { border-color: var(--border-secondary); }
.trade-input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--border-focus-glow); }
.trade-unit {
  padding: 0 var(--space-3);
  font-size: var(--text-md); font-weight: var(--font-medium);
  color: var(--text-tertiary);
  background: var(--bg-secondary); border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
}

.trade-quick-btns { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.quick-btn {
  flex: 1; min-width: 70px;
  padding: var(--space-2);
  font-size: var(--text-sm); font-weight: var(--font-medium);
  color: var(--text-tertiary);
  background: var(--bg-secondary); border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.quick-btn:hover { color: var(--text-primary); border-color: var(--border-secondary); background: var(--bg-tertiary); }
.quick-btn.active { color: var(--green-primary); border-color: var(--green-primary); background: var(--green-soft); }

.trade-pct-btns { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); }
.pct-btn {
  flex: 1;
  padding: var(--space-2);
  font-size: var(--text-sm); font-weight: var(--font-semibold);
  color: var(--text-tertiary);
  background: var(--bg-secondary); border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.pct-btn:hover { color: var(--gold-primary); border-color: var(--gold-primary); background: var(--gold-soft); }

.trade-balance { display: flex; justify-content: space-between; align-items: center; padding: var(--space-3); background: var(--bg-secondary); border-radius: var(--radius-md); margin-bottom: var(--space-3); font-size: var(--text-sm); }
.balance-label { color: var(--text-tertiary); }
.balance-value { font-weight: var(--font-bold); color: var(--text-primary); font-variant-numeric: tabular-nums; }

.btn-place-trade {
  width: 100%; height: 48px;
  font-size: var(--text-md); font-weight: var(--font-bold);
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--green-primary), var(--green-press));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  margin-bottom: var(--space-2);
}
.btn-place-trade:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--green-glow); }
.btn-place-trade:active { transform: translateY(0); }
.btn-place-trade:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.trade-rate { text-align: center; font-size: var(--text-xs); color: var(--text-tertiary); }

/* ===== CREATE VIEW ===== */
.view-create { animation: fadeIn 0.2s var(--ease-out); }
.create-container { max-width: 520px; margin: 0 auto; padding: var(--space-4); }
.create-title { font-weight: var(--font-extrabold); font-size: var(--text-3xl); letter-spacing: -0.02em; margin-bottom: var(--space-1); }
.create-subtitle { color: var(--text-tertiary); font-size: var(--text-sm); margin-bottom: var(--space-6); }
.create-form { display: flex; flex-direction: column; gap: var(--space-4); }
.form-group { display: flex; flex-direction: column; gap: var(--space-1); }
.form-group label { font-size: var(--text-sm); font-weight: var(--font-medium); color: var(--text-secondary); }
.create-input, .create-textarea {
  height: 44px; padding: 0 var(--space-3);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-input); border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.create-input::placeholder, .create-textarea::placeholder { color: var(--text-tertiary); }
.create-input:hover, .create-textarea:hover { border-color: var(--border-secondary); }
.create-input:focus, .create-textarea:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--border-focus-glow); }
.create-textarea { min-height: 80px; padding: var(--space-2) var(--space-3); resize: vertical; }

.upload-zone {
  position: relative;
  padding: var(--space-6) var(--space-4);
  background: var(--bg-secondary); border: 2px dashed var(--border-primary);
  border-radius: var(--radius-lg); text-align: center;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.upload-zone:hover { border-color: var(--green-primary); background: var(--green-soft); }
.upload-zone.drag-over { border-color: var(--green-primary); background: var(--green-soft); }
.upload-icon { margin: 0 auto var(--space-2); color: var(--text-tertiary); transition: color var(--dur-fast) var(--ease-out); }
.upload-zone:hover .upload-icon { color: var(--green-primary); }
.upload-text { font-weight: var(--font-medium); color: var(--text-primary); margin-bottom: var(--space-1); }
.upload-hint { font-size: var(--text-xs); color: var(--text-tertiary); }
.upload-preview { margin-top: var(--space-3); border-radius: var(--radius-md); overflow: hidden; }
.upload-preview img, .upload-preview video { width: 100%; height: auto; border-radius: var(--radius-md); }

.toggles-group { display: flex; flex-direction: column; gap: var(--space-2); }
.toggle-label {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3); background: var(--bg-secondary); border: 1px solid var(--border-primary);
  border-radius: var(--radius-md); cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.toggle-label:hover { border-color: var(--border-secondary); background: var(--bg-tertiary); }
.toggle-label:has(input:checked) { border-color: var(--green-primary); background: var(--green-soft); }
.toggle-label input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-slider {
  position: relative; flex-shrink: 0; width: 44px; height: 24px;
  background: var(--bg-input); border: 1px solid var(--border-primary);
  border-radius: var(--radius-pill);
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.toggle-slider::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--text-tertiary); box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-spring), background var(--dur-base) var(--ease-out);
}
.toggle-label input:checked + .toggle-slider { background: var(--green-primary); border-color: var(--green-primary); box-shadow: 0 0 12px var(--green-glow); }
.toggle-label input:checked + .toggle-slider::after { transform: translateX(20px); background: var(--text-inverse); }
.toggle-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.toggle-text strong { font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--text-primary); }
.toggle-desc { font-size: var(--text-xs); color: var(--text-tertiary); }

.socials-group h4 { font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--text-secondary); margin-bottom: var(--space-2); }
.social-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
@media (max-width: 480px) { .social-inputs { grid-template-columns: 1fr; } }

.create-preview { padding: var(--space-3); background: var(--bg-secondary); border: 1px solid var(--border-primary); border-radius: var(--radius-lg); }
.preview-card { display: flex; align-items: center; gap: var(--space-3); }
.preview-avatar { width: 56px; height: 56px; border-radius: var(--radius-avatar); background: var(--bg-tertiary); overflow: hidden; flex-shrink: 0; }
.preview-info { display: flex; flex-direction: column; gap: 2px; }
.preview-ticker { font-weight: var(--font-bold); font-size: var(--text-lg); color: var(--text-primary); }
.preview-name { font-size: var(--text-sm); color: var(--text-tertiary); }

.btn-create {
  height: 48px;
  font-size: var(--text-md); font-weight: var(--font-bold);
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--green-primary), var(--green-press));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.btn-create:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 24px var(--green-glow); }
.btn-create:active:not(:disabled) { transform: translateY(0); }
.btn-create:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.create-note { text-align: center; font-size: var(--text-xs); color: var(--text-tertiary); margin-top: var(--space-3); }

/* ===== FOOTER ===== */
.footer { padding: var(--space-4); border-top: 1px solid var(--border-primary); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); margin-bottom: var(--space-2); }
.footer-links a { font-size: var(--text-sm); color: var(--text-tertiary); transition: color var(--dur-fast) var(--ease-out); }
.footer-links a:hover { color: var(--green-primary); }
.footer-copy { text-align: center; font-size: var(--text-xs); color: var(--text-tertiary); }

/* ===== UTILITIES ===== */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== SKELETON LOADING ===== */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
.skeleton-card { border-radius: var(--radius-lg); overflow: hidden; }
.skeleton-avatar { aspect-ratio: 1; width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.skeleton-body { padding: var(--space-3); }
.skeleton-line { height: 12px; border-radius: var(--radius-sm); margin-bottom: var(--space-2); }
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-progress { height: 6px; border-radius: var(--radius-pill); margin-bottom: var(--space-2); }
.skeleton-meta { display: flex; gap: var(--space-3); }
.skeleton-meta > * { flex: 1; height: 10px; border-radius: var(--radius-sm); }