*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #030303;
  --bg2: #0a0a0a;
  --bg3: #111111;
  --bg4: #1a1a1a;
  --border: #1f1f1f;
  --border2: #2a2a2a;
  --text: #e0e0e0;
  --text2: #999999;
  --text3: #666666;
  --accent: #ccff00;
  --accent-dim: rgba(204, 255, 0, 0.15);
  --accent-hover: #b3e600;
  --green: #22c55e;
  --red: #ef4444;
  --font: 'JetBrains Mono', 'Cascadia Code', 'Consolas', monospace;
  --radius: 8px;
  --radius-sm: 4px;
}

html { font-size: 14px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 3, 3, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo svg { width: 32px; height: 32px; }
.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--accent);
}
.beta-badge {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(204,255,0,0.12);
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-left: 4px;
  position: relative;
  top: -1px;
}
.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.nav {
  display: flex;
  gap: 24px;
  flex: 1;
}
.nav-link {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.network-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.network-menu {
  position: absolute;
  top: 48px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  z-index: 200;
  min-width: 200px;
}
.network-option {
  padding: 8px 12px;
  font-size: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text2);
  transition: background .1s;
}
.network-option:hover { background: var(--bg3); color: var(--text); }
.network-option.active { color: var(--accent); background: var(--accent-dim); }
.btn-connect {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-connect:hover { background: var(--accent); color: var(--bg); }
.wallet-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}
.wallet-addr {
  color: var(--text2);
  font-family: var(--font);
}
.wallet-bal {
  color: var(--accent);
  font-weight: 500;
}
.hidden { display: none !important; }

/* ── Main ── */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  flex: 1;
  width: 100%;
}
.page { display: none; }
.page.active { display: block; }

/* ── Page Header ── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
}
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.page-subtitle {
  font-size: 0.8rem;
  color: var(--text3);
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-wrap {
  position: relative;
}
.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.search-input {
  font-family: var(--font);
  font-size: 0.8rem;
  padding: 8px 12px 8px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  background: var(--bg2);
  color: var(--text);
  width: 220px;
  outline: none;
  transition: border-color .15s;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text3); }

/* ── Image Upload ── */
.image-upload { position: relative; }
.image-upload-zone {
  border: 2px dashed var(--border2);
  border-radius: var(--radius);
  padding: 32px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text3);
}
.image-upload-zone:hover { border-color: var(--accent); background: var(--accent-dim); }
.image-upload-zone.drag-over { border-color: var(--accent); background: var(--accent-dim); }
.image-upload-zone svg { opacity: 0.5; }
.image-upload-or {
  font-size: 0.72rem;
  color: var(--text3);
}
.image-preview {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border2);
  background: var(--bg3);
  margin: 0 auto;
}
.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.image-preview-remove:hover { background: var(--red); }

.form-fee-note {
  display: block;
  font-size: 0.68rem;
  color: var(--text3);
  margin-top: 2px;
}

/* ── Buttons ── */
.btn {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-large {
  padding: 12px 28px;
  font-size: 0.9rem;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm {
  padding: 4px 10px;
  font-size: 0.7rem;
}
.btn-danger {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
}
.btn-danger:hover { background: var(--red); color: white; }

/* ── Stats Bar ── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 16px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.stat { text-align: center; }
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 0.7rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Trending Tokens ── */
.trending-section {
  margin-bottom: 20px;
}
.section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.trending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.trending-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s;
  position: relative;
}
.trending-card:hover { border-color: var(--accent); }
.trending-card.pinned { border-color: var(--accent); box-shadow: 0 0 12px var(--accent-dim); }
.trending-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.7rem;
  color: var(--accent);
}
.trending-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.trending-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.trending-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trending-stat-label {
  font-size: 0.65rem;
  color: var(--text3);
  text-transform: uppercase;
}
.trending-stat-value {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}
.trending-empty {
  padding: 24px;
  text-align: center;
  color: var(--text3);
  font-size: 0.8rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  grid-column: 1 / -1;
}
@media (max-width: 768px) {
  .trending-grid { grid-template-columns: 1fr; }
}

/* ── Token Table ── */
.token-table-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.token-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr 1fr 1fr;
  padding: 12px 20px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.token-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr 1fr 1fr;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  cursor: pointer;
  transition: background .1s;
  font-size: 0.8rem;
}
.token-row:last-child { border-bottom: none; }
.token-row:hover { background: var(--bg3); }

.token-row.skeleton {
  cursor: default;
  pointer-events: none;
}
.skel {
  height: 14px;
  background: var(--bg4);
  border-radius: 2px;
  animation: skelPulse 1.5s ease-in-out infinite;
}
.skel-wide { width: 80%; }
.skel-sm { width: 50%; }
@keyframes skelPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.td-token {
  display: flex;
  align-items: center;
  gap: 10px;
}
.token-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  overflow: hidden;
}
.token-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.token-name {
  font-weight: 600;
  color: var(--text);
}
.token-symbol {
  font-size: 0.7rem;
  color: var(--text2);
}
.td-price { font-weight: 500; color: var(--text); }
.td-mcap { color: var(--text2); font-size: 0.78rem; }
.td-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}
.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--bg4);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}
.progress-pct {
  font-size: 0.7rem;
  color: var(--text3);
  min-width: 32px;
  text-align: right;
}
.td-volume { color: var(--text2); font-size: 0.78rem; }
.td-creator {
  color: var(--text3);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Empty State ── */
.empty-state {
  padding: 64px 24px;
  text-align: center;
  color: var(--text3);
}
.empty-icon { font-size: 2rem; margin-bottom: 12px; }
.empty-state h3 { color: var(--text2); font-size: 1rem; margin-bottom: 6px; }
.empty-state p { font-size: 0.78rem; margin-bottom: 20px; }

/* ── Create Form ── */
.create-form {
  max-width: 640px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.required { color: var(--red); }
.form-input {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 0.85rem;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text3); }
.form-textarea { resize: vertical; min-height: 56px; }
.form-hint {
  display: block;
  font-size: 0.68rem;
  color: var(--text3);
  margin-top: 4px;
}
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border2);
}
.form-fee { font-size: 0.78rem; color: var(--text3); }
.form-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
}
.form-status.success { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.form-status.error { background: rgba(239,68,68,0.1); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.form-status.loading { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(204,255,0,0.2); }

/* ── MetaMask Warning ── */
.metamask-warning {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(204,255,0,0.05);
  border: 1px solid rgba(204,255,0,0.15);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.metamask-warning strong { color: var(--accent); display: block; margin-bottom: 4px; }
.metamask-warning a { color: var(--accent); text-decoration: underline; }
.metamask-warning a:hover { color: #fff; }

/* ── Token Detail Overlay ── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
}
.overlay-panel {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 90vw;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
}
.overlay-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text2);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.overlay-close:hover { color: var(--text); }

/* ── Detail Content ── */
.detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.detail-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  overflow: hidden;
}
.detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.detail-name { font-size: 1.2rem; font-weight: 700; }
.detail-symbol { font-size: 0.8rem; color: var(--text2); }
.btn-share {
  margin-left: auto;
  padding: 6px 14px;
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text2);
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-share:hover { color: var(--accent); border-color: var(--accent); }
.detail-desc {
  font-size: 0.78rem;
  color: var(--text2);
  margin-bottom: 20px;
  line-height: 1.6;
}
.detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.detail-stat {
  background: var(--bg3);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.detail-stat-label {
  font-size: 0.68rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.detail-stat-value { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.detail-stat-usd { font-size: 0.72rem; font-weight: 400; color: #666; margin-top: 2px; }

.detail-curve-wrap {
  padding: 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.detail-curve-label {
  font-size: 0.7rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.detail-curve-wrap canvas { width: 100%; height: auto; }

.progress-bar-wrap {
  height: 14px;
  background: var(--bg4);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
}
.progress-bar-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 7px;
  box-shadow: inset 0 0 20px rgba(204,255,0,0.08);
  pointer-events: none;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8ab000, #ccff00 40%, #e5ff66 60%, #ccff00);
  background-size: 200% 100%;
  border-radius: 7px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  animation: progress-shimmer 2s linear infinite;
}
@keyframes progress-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: 0 0; }
}
.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15));
  border-radius: 0 7px 7px 0;
}
.progress-bar-pct {
  font-size: 0.72rem;
  color: var(--text2);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.progress-bar-pct .ticker-num {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
}

.detail-trade {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.graduated-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  margin-bottom: 12px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}
.grad-pair-link {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 2px 8px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  transition: all 0.15s;
}
.grad-pair-link:hover { background: var(--accent); color: var(--bg); }
.grad-pair {
  font-size: 0.65rem;
  color: var(--text3);
  cursor: pointer;
  user-select: none;
}
.grad-pair:hover { color: var(--accent); }
.addr-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 12px 0;
}
.addr-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.addr-row + .addr-row { border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }
.addr-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 36px;
  text-transform: uppercase;
}
.addr-row code {
  flex: 1;
  font-family: var(--font);
  font-size: 0.62rem;
  color: var(--text2);
  word-break: break-all;
}
.copy-btn {
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 600;
  padding: 3px 10px;
  background: var(--bg4);
  border: 1px solid var(--border2);
  border-radius: 4px;
  color: var(--text2);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.trade-panel {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.trade-panel h4 {
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.trade-panel.buy h4 { color: var(--green); }
.trade-panel.sell h4 { color: var(--red); }
.trade-input-group {
  margin-bottom: 10px;
}
.trade-input-group label {
  display: block;
  font-size: 0.68rem;
  color: var(--text3);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.trade-input-row {
  display: flex;
  gap: 8px;
}
.trade-input-row input {
  flex: 1;
  padding: 8px 10px;
  font-family: var(--font);
  font-size: 0.82rem;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
}
.trade-input-row input:focus { border-color: var(--accent); }
/* Percentage preset buttons */
.pct-buttons {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.pct-btn {
  flex: 1;
  padding: 4px 0;
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 600;
  background: var(--bg4);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
}
.pct-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.balance-hint {
  font-size: 0.62rem;
  color: var(--text3);
  margin-top: 4px;
}
.trade-info {
  font-size: 0.7rem;
  color: var(--text3);
  margin-top: 4px;
}
.trade-btn {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity .15s;
}
.trade-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.trade-btn.buy-btn { background: var(--green); color: white; }
.trade-btn.buy-btn:hover:not(:disabled) { opacity: 0.9; }
.trade-btn.sell-btn { background: var(--red); color: white; }
.trade-btn.sell-btn:hover:not(:disabled) { opacity: 0.9; }

.detail-creator-info {
  margin-top: 16px;
  padding: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--text3);
}
.detail-creator-info strong { color: var(--text2); }
.detail-creator-info a {
  color: var(--accent);
  text-decoration: none;
}
.detail-creator-info a:hover { text-decoration: underline; }

/* ── About Page ── */
.about-content {
  max-width: 720px;
  margin: 0 auto;
}
.about-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 32px;
  color: var(--accent);
}
.about-content h2:first-child { margin-top: 0; }
.about-content > p {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 24px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.about-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.about-card-icon { font-size: 1.5rem; margin-bottom: 8px; }
.about-card h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.about-card p { font-size: 0.78rem; color: var(--text2); line-height: 1.6; }
.about-fees { margin-bottom: 32px; }
.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.fee-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}
.fee-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--accent);
}
.fee-sub { padding-left: 32px !important; color: var(--text3) !important; }
.fee-sub + td { color: var(--text2) !important; font-weight: 400 !important; }
.about-curve { margin-bottom: 32px; }
.about-curve canvas { width: 100%; height: auto; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.about-curve-note { font-size: 0.72rem; color: var(--text3); margin-top: 8px; }

/* ── Toast ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  min-width: 280px;
  max-width: 400px;
  animation: toastIn .3s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.toast.success { background: #0f2416; color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.toast.error { background: #24100f; color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.toast.info { background: #1a1a0a; color: var(--accent); border: 1px solid rgba(204,255,0,0.3); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .header-inner { padding: 0 12px; gap: 12px; }
  .nav { gap: 12px; }
  .main { padding: 16px; }
  .page-header { flex-direction: column; }
  .page-actions { width: 100%; }
  .search-input { width: 100%; }
  .stats-bar { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .token-table-header,
  .token-row {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
  .th-volume, .td-volume,
  .th-creator, .td-creator { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .detail-stats { grid-template-columns: 1fr; }
  .detail-trade { grid-template-columns: 1fr; }
  .overlay-panel { width: 95vw; padding: 16px; }
  .about-grid { grid-template-columns: 1fr; }
  .header-right { gap: 8px; }
  .network-badge { display: none; }
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 16px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text3);
  gap: 16px;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-logo {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.78rem;
}
.footer-version {
  font-size: 0.62rem;
  padding: 1px 6px;
  border-radius: 2px;
  background: rgba(204,255,0,0.1);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.footer-center {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-sep {
  color: var(--border2);
}
.footer-right {
  font-size: 0.7rem;
  color: var(--text3);
}
.footer-x-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text3);
  text-decoration: none;
  font-size: 0.72rem;
  transition: color .15s;
}
.footer-x-link:hover { color: var(--accent); }
.footer-x-link svg { opacity: 0.6; }
.footer-x-link:hover svg { opacity: 1; }

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .footer-center {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ── Benefits Banner ── */
.benefits-banner {
  display: flex;
  gap: 12px;
  margin: 0 16px 16px;
  flex-wrap: wrap;
}
.benefit-item {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.benefit-item strong { color: var(--accent); }

@media (max-width: 768px) {
  .benefits-banner { flex-direction: column; }
  .benefit-item { min-width: 0; }
}

/* ── Hamburger Menu ── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  padding: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  cursor: pointer;
  gap: 5px;
  z-index: 100;
  margin-left: auto;
}
.hamburger-btn span {
  display: block;
  width: 20px; height: 2.5px;
  background: #ccc;
  border-radius: 2px;
  transition: all 0.2s;
}
.hamburger-btn.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

@media (max-width: 768px) {
  .hamburger-btn { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-direction: column;
    padding: 8px 16px 12px;
    gap: 2px;
    z-index: 99;
  }
  .nav.open { display: flex; }
  .nav .nav-link { padding: 12px 16px; width: 100%; border-radius: 8px; }
}

/* ── Claim Fees Page ── */
.claim-content { max-width: 640px; margin: 0 auto; padding: 20px 16px; }
.claim-prompt { text-align: center; padding: 40px 20px; color: var(--text-secondary); }
.claim-tokens { display: flex; flex-direction: column; gap: 12px; }
.claim-token-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  gap: 12px;
}
.claim-token-info { flex: 1; min-width: 0; }
.claim-token-name { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.claim-token-symbol { font-size: 0.75rem; color: var(--text3); }
.claim-token-fees { text-align: right; flex-shrink: 0; }
.claim-fee-amount { font-weight: 600; color: var(--accent); font-size: 0.95rem; }
.claim-fee-label { font-size: 0.68rem; color: var(--text3); }
.claim-btn {
  padding: 6px 14px; border-radius: 6px; font-size: 0.75rem; font-weight: 600;
  cursor: pointer; border: none; background: var(--accent); color: #000;
  transition: opacity 0.15s;
}
.claim-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.claim-btn:hover:not(:disabled) { opacity: 0.85; }

/* Mint NFT Page */
.mint-content { max-width: 640px; margin: 0 auto; padding: 0 16px; }
#mintStatus { padding: 12px 20px; background: var(--bg2); border-radius: 8px; display: inline-block; }
#mintResultImage img {
  border-radius: 8px;
  image-rendering: auto;
}
@media (max-width: 600px) {
  .mint-content { padding: 0 8px; }
  #mintResultImage { max-width: 100% !important; }
}
