/* ============================================================
   EtherDEX — Styles
   Ethereum official palette: #627EEA, #8C8CFF, #3C3C6B
   ============================================================ */

:root {
  --eth-blue: #627EEA;
  --eth-light: #8C8CFF;
  --eth-dark: #3C3C6B;
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #151c2c;
  --bg-input: #1a2236;
  --bg-hover: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --border-active: #627EEA;
  --green: #22c55e;
  --red: #ef4444;
  --orange: #f59e0b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

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

a { color: var(--eth-blue); text-decoration: none; }
a:hover { color: var(--eth-light); }

button { cursor: pointer; font-family: var(--font); border: none; outline: none; }
input { font-family: var(--font); outline: none; }

.hidden { display: none !important; }

/* ---- Install Banner ---- */
.install-banner {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #627EEA 0%, #3C3C6B 100%);
  padding: 12px 20px;
  animation: slideDown 0.4s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.install-banner-content {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
}
.install-banner-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,255,255,0.15); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.install-banner-text { flex: 1; }
.install-banner-text strong { display: block; font-size: 14px; color: #fff; }
.install-banner-text span { font-size: 12px; color: rgba(255,255,255,0.8); }
.install-banner-actions { display: flex; gap: 8px; align-items: center; }

.btn-install {
  background: #fff; color: var(--eth-dark);
  padding: 8px 20px; border-radius: 8px;
  font-weight: 600; font-size: 13px;
  transition: transform 0.15s;
}
.btn-install:hover { transform: scale(1.04); }
.btn-dismiss {
  background: transparent; color: rgba(255,255,255,0.7);
  font-size: 22px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
}

/* ---- Header ---- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text { font-size: 20px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.5px; }
.logo-accent { color: var(--eth-blue); }

.nav { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: all 0.2s;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-hover); }
.nav-link.active { color: var(--text-primary); background: var(--bg-input); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.network-badge {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 20px;
  background: var(--bg-input); font-size: 13px;
  font-weight: 500; color: var(--text-secondary);
}
.network-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.btn-connect {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: var(--radius-sm);
  background: var(--eth-blue); color: #fff;
  font-weight: 600; font-size: 14px;
  transition: all 0.2s;
}
.btn-connect:hover { background: #5570d7; transform: translateY(-1px); }
.btn-connect.connected {
  background: var(--bg-input); color: var(--eth-blue);
  border: 1px solid var(--border);
}

.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; padding: 8px;
}
.mobile-menu-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: 0.2s;
}

/* ---- Mobile Nav ---- */
.mobile-nav {
  position: fixed; top: 64px; left: 0; right: 0;
  z-index: 99; background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px; display: flex; flex-direction: column; gap: 8px;
}
.mobile-nav .btn-connect { width: 100%; justify-content: center; margin-top: 8px; }

/* ---- Main ---- */
.main { min-height: calc(100vh - 64px - 60px); padding: 40px 20px; }
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Swap ---- */
.swap-container { max-width: 480px; margin: 0 auto; }

.swap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow);
}
.swap-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.swap-header h2 { font-size: 18px; font-weight: 700; }
.settings-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: 0.2s;
}
.settings-btn:hover { background: var(--bg-input); color: var(--text-primary); }

/* Settings Panel */
.settings-panel {
  background: var(--bg-input); border-radius: var(--radius-md);
  padding: 16px; margin-bottom: 16px;
}
.settings-row { margin-bottom: 12px; }
.settings-row:last-child { margin-bottom: 0; }
.settings-row label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.slippage-options { display: flex; gap: 6px; align-items: center; }
.slip-btn {
  padding: 6px 14px; border-radius: 20px;
  background: var(--bg-card); color: var(--text-secondary);
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); transition: 0.2s;
}
.slip-btn.active, .slip-btn:hover { border-color: var(--eth-blue); color: var(--eth-blue); background: rgba(98,126,234,0.1); }
.slip-input {
  width: 80px; padding: 6px 10px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 13px; text-align: right;
}
.deadline-input {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-secondary);
}
.deadline-input input {
  width: 60px; padding: 6px 10px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 13px; text-align: center;
}

/* Token Input */
.token-input-group {
  background: var(--bg-input);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.token-input-group:focus-within { border-color: var(--border-active); }

.token-input-header {
  display: flex; justify-content: space-between;
  margin-bottom: 8px;
}
.token-label { font-size: 13px; color: var(--text-secondary); }
.token-balance { font-size: 13px; color: var(--text-muted); cursor: pointer; }
.token-balance:hover { color: var(--eth-blue); }

.token-input-row { display: flex; align-items: center; gap: 10px; }
.token-amount {
  flex: 1; background: transparent; border: none;
  font-size: 28px; font-weight: 600; color: var(--text-primary);
  min-width: 0;
}
.token-amount::placeholder { color: var(--text-muted); }
.token-amount::-webkit-outer-spin-button,
.token-amount::-webkit-inner-spin-button { -webkit-appearance: none; }
.token-amount { -moz-appearance: textfield; }

.token-select {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 20px;
  background: var(--bg-card); color: var(--text-primary);
  font-weight: 600; font-size: 15px;
  border: 1px solid var(--border);
  white-space: nowrap; transition: 0.2s;
}
.token-select:hover { border-color: var(--text-muted); }
.token-icon { width: 24px; height: 24px; border-radius: 50%; }

.token-input-footer { margin-top: 6px; }
.usd-value { font-size: 13px; color: var(--text-muted); }

/* Swap Direction */
.swap-direction {
  display: flex; justify-content: center;
  margin: -8px 0; position: relative; z-index: 2;
}
.swap-direction-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-card); border: 3px solid var(--bg-input);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: 0.2s;
}
.swap-direction-btn:hover { color: var(--eth-blue); transform: rotate(180deg); }

/* Price Info */
.price-info {
  margin-top: 16px; padding: 12px 16px;
  background: var(--bg-input); border-radius: var(--radius-md);
}
.price-row {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-secondary);
  padding: 4px 0;
}
.price-impact { color: var(--green); }

/* Swap Button */
.btn-swap {
  width: 100%; margin-top: 16px; padding: 16px;
  border-radius: var(--radius-lg);
  font-size: 16px; font-weight: 700;
  background: var(--eth-blue); color: #fff;
  transition: all 0.2s;
}
.btn-swap:hover:not(:disabled) { background: #5570d7; transform: translateY(-1px); }
.btn-swap:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-swap.error { background: rgba(239,68,68,0.2); color: var(--red); }

/* Recent Transactions */
.recent-transactions {
  margin-top: 24px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 20px;
}
.recent-transactions h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.tx-list { display: flex; flex-direction: column; gap: 8px; }
.tx-empty { text-align: center; padding: 20px; color: var(--text-muted); font-size: 14px; }
.tx-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: var(--bg-input);
  border-radius: var(--radius-md); font-size: 13px;
}
.tx-item-left { display: flex; align-items: center; gap: 10px; }
.tx-item-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(98,126,234,0.15); color: var(--eth-blue);
  display: flex; align-items: center; justify-content: center;
}
.tx-item-detail span { display: block; }
.tx-item-detail .tx-pair { font-weight: 600; color: var(--text-primary); }
.tx-item-detail .tx-time { color: var(--text-muted); font-size: 12px; }
.tx-item-status { font-weight: 600; }
.tx-item-status.confirmed { color: var(--green); }
.tx-item-status.pending { color: var(--orange); }

/* ---- Pool ---- */
.pool-container { max-width: 800px; margin: 0 auto; }
.pool-header-row {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 24px;
}
.pool-header-row h2 { font-size: 22px; font-weight: 700; }

.btn-add-liq {
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: var(--eth-blue); color: #fff;
  font-weight: 600; font-size: 14px; transition: 0.2s;
}
.btn-add-liq:hover { background: #5570d7; }

.pool-cards { display: flex; flex-direction: column; gap: 12px; }
.pool-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  transition: border-color 0.2s;
}
.pool-card:hover { border-color: var(--text-muted); }

.pool-pair { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pool-pair-icons { display: flex; position: relative; }
.pool-icon { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--bg-card); }
.pool-icon.overlap { margin-left: -12px; }
.pool-pair-name { font-weight: 700; font-size: 16px; }
.pool-fee { font-size: 12px; color: var(--text-muted); }

.pool-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.pool-stat-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.pool-stat-value { font-size: 15px; font-weight: 600; }
.pool-apr { color: var(--green); }

/* ---- Charts ---- */
.charts-container { max-width: 900px; margin: 0 auto; }

.chart-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 24px;
  flex-wrap: wrap; gap: 16px;
}
.chart-header h2 { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.chart-price-display { display: flex; align-items: baseline; gap: 10px; }
.chart-current-price { font-size: 32px; font-weight: 800; letter-spacing: -1px; }
.chart-change {
  font-size: 14px; font-weight: 600; padding: 4px 8px;
  border-radius: 6px;
}
.chart-change.up { color: var(--green); background: rgba(34,197,94,0.1); }
.chart-change.down { color: var(--red); background: rgba(239,68,68,0.1); }

.chart-timeframes { display: flex; gap: 4px; }
.tf-btn {
  padding: 6px 14px; border-radius: 8px;
  background: transparent; color: var(--text-muted);
  font-size: 13px; font-weight: 600; transition: 0.2s;
}
.tf-btn:hover { color: var(--text-primary); }
.tf-btn.active { background: var(--bg-input); color: var(--text-primary); }

.chart-canvas-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  margin-bottom: 24px; height: 400px; position: relative;
}
#price-chart { width: 100% !important; height: 100% !important; }

.market-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.market-stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px;
}
.ms-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.ms-value { font-size: 16px; font-weight: 700; }

/* ---- Modals ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 420px;
  max-height: 80vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-header {
  display: flex; justify-content: space-between;
  align-items: center; padding: 20px 20px 16px;
}
.modal-header h3 { font-size: 17px; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-input); color: var(--text-secondary);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: 0.2s;
}
.modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }

.modal-search {
  width: calc(100% - 40px); margin: 0 20px 12px;
  padding: 12px 16px; border-radius: var(--radius-md);
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 14px;
}
.modal-search::placeholder { color: var(--text-muted); }
.modal-search:focus { border-color: var(--eth-blue); }

.token-list { padding: 0 8px 12px; }
.token-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--radius-md);
  cursor: pointer; transition: 0.15s;
}
.token-list-item:hover { background: var(--bg-hover); }
.token-list-item img { width: 36px; height: 36px; border-radius: 50%; }
.token-list-item-info { flex: 1; }
.token-list-item-info .tl-symbol { font-weight: 600; font-size: 15px; }
.token-list-item-info .tl-name { font-size: 12px; color: var(--text-muted); }
.token-list-item .tl-balance { text-align: right; font-size: 13px; color: var(--text-secondary); }

/* Feedback Modal */
.feedback-modal { padding: 0; max-width: 440px; overflow: visible; }
.feedback-modal .modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; }

/* ---- Toast ---- */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 300; display: flex; flex-direction: column;
  gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 14px 20px; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.3s ease;
  max-width: 360px;
}
.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }
.toast-icon { font-size: 18px; flex-shrink: 0; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

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

/* ---- Loading Skeleton ---- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-hover) 50%, var(--bg-input) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- Swap Loading Overlay ---- */
.swap-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.swap-overlay.visible { opacity: 1; pointer-events: auto; }

.swap-overlay-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  max-width: 400px; width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: swapCardIn 0.4s ease;
}
@keyframes swapCardIn {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.swap-loading-ring {
  position: relative; width: 80px; height: 80px;
  margin: 0 auto 24px;
}
.swap-loading-eth {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: ethPulse 1.5s ease-in-out infinite;
}
@keyframes ethPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.swap-loading-title {
  font-size: 20px; font-weight: 700; margin-bottom: 6px;
  color: var(--text-primary);
}
.swap-loading-sub {
  font-size: 13px; color: var(--text-secondary);
  margin-bottom: 24px; min-height: 20px;
}

.swap-loading-steps {
  display: flex; flex-direction: column; gap: 12px;
  text-align: left; padding: 0 12px;
}
.swap-step {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--text-muted);
  transition: color 0.3s;
}
.swap-step.active { color: var(--eth-blue); }
.swap-step.done { color: var(--green); }

.swap-step-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text-muted); flex-shrink: 0;
  transition: all 0.3s;
}
.swap-step.active .swap-step-dot {
  background: var(--eth-blue);
  box-shadow: 0 0 8px rgba(98,126,234,0.5);
  animation: dotPulse 1s infinite;
}
.swap-step.done .swap-step-dot {
  background: var(--green);
  box-shadow: 0 0 6px rgba(34,197,94,0.4);
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* ---- TX Success Modal ---- */
.tx-success-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  max-width: 440px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: swapCardIn 0.5s ease;
  position: relative;
}
.tx-success-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-input); color: var(--text-secondary);
  font-size: 20px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; border: none;
  transition: 0.2s;
}
.tx-success-close:hover { background: var(--bg-hover); color: var(--text-primary); }

.tx-success-header { text-align: center; margin-bottom: 24px; }
.tx-success-check {
  margin-bottom: 16px; display: inline-block;
  animation: checkBounce 0.6s ease;
}
@keyframes checkBounce {
  0% { transform: scale(0); } 50% { transform: scale(1.15); } 100% { transform: scale(1); }
}
.tx-check-path {
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: checkDraw 0.5s 0.3s ease forwards;
}
@keyframes checkDraw { to { stroke-dashoffset: 0; } }

.tx-success-title {
  font-size: 22px; font-weight: 800; color: var(--text-primary);
  margin-bottom: 6px;
}
.tx-success-subtitle {
  font-size: 13px; color: var(--text-secondary); line-height: 1.5;
}

.tx-success-amounts {
  background: var(--bg-input); border-radius: var(--radius-md);
  padding: 16px; margin-bottom: 20px;
}
.tx-success-amount-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.tx-amt-from, .tx-amt-to {
  display: flex; align-items: center; gap: 10px;
}
.tx-amt-from img, .tx-amt-to img { border-radius: 50%; }
.tx-amt-value { display: block; font-size: 16px; font-weight: 700; color: var(--text-primary); }
.tx-amt-green { color: var(--green); }
.tx-amt-symbol { font-size: 12px; color: var(--text-muted); }
.tx-amt-arrow { flex-shrink: 0; }

.tx-success-qr {
  text-align: center; padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.tx-qr-label {
  font-size: 11px; color: var(--text-muted); margin-top: 10px;
}

.tx-success-details {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 24px;
}
.tx-detail-row {
  display: flex; justify-content: space-between;
  align-items: center; font-size: 13px;
}
.tx-detail-label { color: var(--text-muted); }
.tx-detail-value {
  color: var(--text-secondary); font-weight: 500;
  font-family: 'Inter', monospace;
}
.tx-hash-copy { cursor: pointer; transition: 0.2s; }
.tx-hash-copy:hover { color: var(--eth-blue); }

.tx-detail-confirmed {
  display: flex; align-items: center; gap: 6px;
  color: var(--green); font-weight: 600;
}
.confirmed-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(34,197,94,0.5);
}

.tx-success-actions {
  display: flex; gap: 10px;
}
.tx-action-btn {
  flex: 1; padding: 12px 16px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; transition: 0.2s; cursor: pointer; border: none;
}
.tx-view-btn {
  background: var(--bg-input); color: var(--text-secondary);
  border: 1px solid var(--border);
}
.tx-view-btn:hover { border-color: var(--text-muted); color: var(--text-primary); }
.tx-done-btn {
  background: var(--eth-blue); color: #fff;
}
.tx-done-btn:hover { background: #5570d7; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav { display: none; }
  .header-actions .network-badge { display: none; }
  .header-actions .btn-connect { display: none; }
  .mobile-menu-btn { display: flex; }
  .header-inner { gap: 16px; }

  .chart-canvas-wrap { height: 280px; }
  .chart-current-price { font-size: 26px; }

  .pool-stats { gap: 16px; }
  .pool-header-row { flex-direction: column; gap: 12px; align-items: stretch; }

  .main { padding: 24px 16px; }
  .swap-card { padding: 16px; }
  .token-amount { font-size: 22px; }

  .install-banner-content { flex-wrap: wrap; }
  .install-banner-text { min-width: 0; }

  .toast-container { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: 100%; }
}
