/* ==========================================================================
   GasShield DEX — Uniswap-Grade Web3 Swap Engine Styles
   ========================================================================== */

:root {
  --bg-dark: #070a12;
  --bg-card: rgba(15, 21, 34, 0.82);
  --bg-card-inner: rgba(9, 13, 22, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 245, 155, 0.4);
  --accent-green: #00f59b;
  --accent-green-glow: rgba(0, 245, 155, 0.35);
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.3);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --danger: #f87171;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 20% 15%, rgba(0, 245, 155, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 60%);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.1px, transparent 1.1px);
  background-size: 26px 26px;
  background-position: center top;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(900px circle at 50% 15%, rgba(0, 245, 155, 0.12) 0%, rgba(56, 189, 248, 0.06) 45%, transparent 70%),
    radial-gradient(1000px circle at 85% 65%, rgba(56, 189, 248, 0.10) 0%, rgba(0, 245, 155, 0.04) 50%, transparent 65%);
  filter: blur(75px);
  pointer-events: none;
  z-index: 0;
}

/* Global Interactive Cursor Spotlight (Illuminates Entire Page As Mouse Moves) */
.global-page-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(
    650px circle at var(--mouse-screen-x, 50vw) var(--mouse-screen-y, 35vh),
    rgba(0, 245, 155, 0.14) 0%,
    rgba(56, 189, 248, 0.06) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.25s ease;
}

/* ── Navbar ───────────────────────────────────────────────────────── */
.dex-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: rgba(7, 10, 18, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(0, 245, 155, 0.25) 0%, rgba(0, 245, 155, 0.05) 80%);
  border: 1px solid var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--accent-green-glow);
}

.brand-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.brand-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  background: rgba(0, 245, 155, 0.15);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-left-cluster {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-links-center {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
}

.nav-link-pill {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  user-select: none;
  outline: none;
}

.nav-link-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link-pill.active {
  background: rgba(0, 245, 155, 0.12);
  color: var(--accent-green);
  border-color: rgba(0, 245, 155, 0.3);
  box-shadow: 0 0 12px rgba(0, 245, 155, 0.2);
}

/* ── Uniswap-Grade Search Bar ─────────────────────────────────────── */
.nav-search-wrapper {
  flex: 1;
  max-width: 440px;
  margin: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 7px 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: text;
}

.nav-search-wrapper:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.nav-search-wrapper:focus-within {
  background: rgba(14, 21, 37, 0.95);
  border-color: var(--accent-green);
  box-shadow: 0 0 0 1px var(--accent-green), 0 0 18px rgba(0, 245, 155, 0.18);
}

.nav-search-icon {
  font-size: 13px;
  opacity: 0.6;
  pointer-events: none;
}

.nav-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  width: 100%;
}

.nav-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.nav-search-kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.5);
  user-select: none;
  line-height: 1.2;
}

@media (max-width: 1024px) {
  .nav-search-wrapper {
    display: none;
  }
}

.nav-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gas-tracker-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 245, 155, 0.1);
  border: 1px solid rgba(0, 245, 155, 0.3);
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--accent-green);
  font-weight: 700;
}

.network-pill-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  outline: none;
}

.network-pill-select:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ── Uniswap-Grade Nav Network Dropdown ────────────────────────────── */
.nav-network-container {
  position: relative;
  display: inline-flex;
}

.btn-nav-network-pill {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 0 13px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  box-sizing: border-box;
}

.btn-nav-network-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(56, 189, 248, 0.35);
}

.btn-nav-network-pill:focus-visible {
  border-color: var(--accent-green);
  box-shadow: 0 0 12px rgba(0, 245, 155, 0.3);
}

.net-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.net-pill-icon .net-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.net-pill-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: transform 0.2s ease;
  line-height: 1;
}

.btn-nav-network-pill[aria-expanded="true"] .net-pill-chevron {
  transform: rotate(180deg);
}

.nav-network-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #111726;
  background: linear-gradient(180deg, #131929 0%, #0d1321 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 12px;
  min-width: 270px;
  max-height: 420px;
  z-index: 1200;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(0, 245, 155, 0.15);
  display: none;
  animation: fadeInDrop 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-network-dropdown.active {
  display: flex;
  flex-direction: column;
}

.pool-fee-card:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(0, 245, 155, 0.3) !important;
}

.pool-fee-card.active {
  background: rgba(0, 245, 155, 0.12) !important;
  border-color: #00f59b !important;
}

.pool-step-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

.network-pill-select option,
.act-filter-select option,
select option {
  background-color: #0c121e !important;
  color: #ffffff !important;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
}

.btn-connect-wallet {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--accent-green) 0%, #00c77d 100%);
  color: #070a12;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.2px;
  padding: 0 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 16px var(--accent-green-glow);
  box-sizing: border-box;
  white-space: nowrap;
}

.btn-connect-wallet:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0, 245, 155, 0.5);
  background: #05ffaa;
}

.btn-connect-wallet svg {
  flex-shrink: 0;
}

.btn-connect-wallet .btn-connect-text {
  font-weight: 800;
  line-height: 1;
}

.wallet-nav-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-connect-wallet.connected {
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: none;
  padding: 0 14px;
  gap: 8px;
  font-weight: 700;
}

.btn-connect-wallet.connected:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(56, 189, 248, 0.35);
}

.connected-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

/* ── Uniswap-Grade Connected Wallet Profile Popover ───────────────── */
.wallet-profile-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 350px;
  background: #0d1321;
  background: linear-gradient(180deg, #111726 0%, #0d1321 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(0, 245, 155, 0.15);
  z-index: 1200;
  box-sizing: border-box;
  text-align: left;
  animation: walletPopoverIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes walletPopoverIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wallet-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.wallet-popover-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wallet-popover-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-popover-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.12);
  flex-shrink: 0;
}

.wallet-provider-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  font-size: 14px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

.wallet-popover-info {
  display: flex;
  flex-direction: column;
}

.wallet-popover-addr-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wallet-popover-addr {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.wallet-popover-copy-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.wallet-popover-copy-btn:hover {
  color: var(--accent-green);
  background: rgba(0, 245, 155, 0.1);
}

.wallet-popover-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wallet-popover-icon-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wallet-popover-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.wallet-popover-icon-btn.disconnect:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.3);
}

.wallet-popover-balance-wrap {
  margin-bottom: 16px;
}

.wallet-popover-balance {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.wallet-popover-delta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

.wallet-popover-delta.down {
  color: #ef4444;
}

.wallet-popover-delta.up {
  color: var(--accent-green);
}

.wallet-popover-quick-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.wallet-quick-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.wallet-quick-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 245, 155, 0.3);
  transform: translateY(-1px);
}

.quick-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-btn-icon.send {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.quick-btn-icon.receive {
  background: rgba(0, 245, 155, 0.15);
  color: var(--accent-green);
}

.quick-btn-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.wallet-view-portfolio-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #e2e8f0;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.wallet-view-portfolio-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.wallet-popover-activity {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wallet-popover-activity-header {
  font-size: 13.5px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
  text-align: left;
}

.wallet-popover-activity-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.popover-activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.15s ease;
  cursor: pointer;
}

.popover-activity-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.popover-activity-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.popover-activity-icon-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  font-weight: 700;
}

.popover-chain-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  font-size: 10px;
  line-height: 1;
  background: #0b101b;
  border-radius: 50%;
  padding: 1px;
}

.popover-activity-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}

.popover-activity-action {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.popover-activity-sub {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 175px;
}

.popover-activity-date {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  flex-shrink: 0;
}

.wallet-view-all-activity-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wallet-view-all-activity-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn-settings-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.btn-settings-icon:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ── Main Swap Container ─────────────────────────────────────────── */
.swap-page-wrapper {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 36px 18px 90px 18px;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.dex-tab-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: tabFadeIn 0.25s ease-out;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.trade-hero-heading {
  text-align: center;
  margin-bottom: 24px;
}

.trade-hero-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 6px;
}

.trade-hero-sub {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.5;
}

.swap-card {
  width: 100%;
  max-width: 470px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 245, 155, 0.06);
  backdrop-filter: blur(20px);
  position: relative;
}

.swap-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px 14px 6px;
}

.swap-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.swap-engine-badge {
  background: rgba(0, 245, 155, 0.12);
  border: 1px solid rgba(0, 245, 155, 0.3);
  color: var(--accent-green);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Token Input Section Box ─────────────────────────────────────── */
.swap-section-box {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 14px 16px;
  transition: border-color 0.2s ease;
}

.swap-section-box:focus-within {
  border-color: var(--border-focus);
}

.section-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.section-box-header .balance-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-max-pill {
  background: rgba(56, 189, 248, 0.15);
  border: none;
  color: var(--accent-cyan);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-max-pill:hover {
  background: rgba(56, 189, 248, 0.28);
}

.section-box-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Universal DEX Number Input Reset - Clean Stepper Removal */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
.token-amount-input::-webkit-outer-spin-button,
.token-amount-input::-webkit-inner-spin-button,
.trade-amount-field::-webkit-outer-spin-button,
.trade-amount-field::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

input[type="number"],
.token-amount-input,
.trade-amount-field {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

.token-amount-input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  font-family: inherit;
  outline: none;
  width: 100%;
  min-width: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.token-amount-input::placeholder {
  color: #475569;
}

.token-select-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 7px 12px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.token-select-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.token-icon-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.token-icon-circle svg {
  width: 100%;
  height: 100%;
  display: block;
}

.section-box-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Flip Tokens Divider ─────────────────────────────────────────── */
.swap-flip-divider {
  display: flex;
  justify-content: center;
  margin: -10px 0;
  position: relative;
  z-index: 2;
}

.swap-flip-btn {
  width: 36px;
  height: 36px;
  background: #151d2f;
  border: 4px solid var(--bg-card);
  border-radius: 12px;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.25s ease, background 0.2s ease;
}

.swap-flip-btn:hover {
  background: #1e293b;
  color: var(--accent-green);
  transform: rotate(180deg);
}

/* ── Uniswap-Grade Sleek Rate & Gas Savings Bar ─────────────────── */
.gas-savings-hero-box {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px 12px;
  margin: 10px 0 14px 0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.gas-savings-hero-box:hover {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(0, 245, 155, 0.3);
}

.savings-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.savings-rate-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.savings-label-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-green);
}

.savings-value-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: #00f59b;
  background: rgba(0, 245, 155, 0.12);
  border: 1px solid rgba(0, 245, 155, 0.25);
  padding: 3px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.savings-dropdown-chevron {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.gas-savings-hero-box.open .savings-dropdown-chevron {
  transform: rotate(180deg);
}

.savings-details-accordion {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11.5px;
  color: var(--text-secondary);
}

.gas-savings-hero-box.open .savings-details-accordion {
  display: block;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-row .val-green {
  color: var(--accent-green);
  font-weight: 700;
}

.detail-row .val-strike {
  text-decoration: line-through;
  color: var(--danger);
  margin-right: 6px;
}

/* ── Smart Multi-Hop Routing Graph (Institutional Tier-1 DEX) ────── */
.swap-routing-graph-card {
  background: rgba(10, 16, 29, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 12px 0 8px 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.swap-routing-graph-card:hover {
  border-color: rgba(0, 245, 155, 0.25);
  box-shadow: 0 10px 30px rgba(0, 245, 155, 0.08);
}

.routing-graph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.routing-header-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.routing-header-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #94a3b8;
}

.routing-protocol-pill {
  font-size: 11px;
  font-weight: 600;
  color: #00f59b;
  background: rgba(0, 245, 155, 0.08);
  border: 1px solid rgba(0, 245, 155, 0.22);
  border-radius: 20px;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.live-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00f59b;
  box-shadow: 0 0 6px #00f59b;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.routing-graph-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.routing-graph-flow::-webkit-scrollbar {
  display: none;
}

.routing-node-box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  background: rgba(18, 26, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  min-width: max-content;
  flex-shrink: 0;
}

.node-token-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-token-icon svg,
.node-token-icon img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.node-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.node-amount {
  font-size: 11px;
  font-weight: 700;
  color: #f8fafc;
  font-family: 'JetBrains Mono', monospace;
}

.node-symbol {
  font-size: 9px;
  font-weight: 600;
  color: #64748b;
}

.routing-beam-track {
  flex: 1;
  min-width: 12px;
  max-width: 28px;
  height: 2px;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: visible;
  flex-shrink: 0;
}

.routing-beam-photon {
  position: absolute;
  top: -2px;
  left: 0;
  width: 7px;
  height: 6px;
  border-radius: 3px;
  background: #00f59b;
  box-shadow: 0 0 8px #00f59b;
  animation: photonTravel 1.6s infinite linear;
}

@keyframes photonTravel {
  0% { left: 0%; opacity: 0.2; }
  50% { opacity: 1; }
  100% { left: 100%; opacity: 0.2; }
}

.routing-hub-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  background: rgba(0, 245, 155, 0.06);
  border: 1px solid rgba(0, 245, 155, 0.25);
  border-radius: 10px;
  min-width: max-content;
  flex-shrink: 0;
  gap: 1px;
}

.hub-shield-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.hub-title {
  font-size: 9.5px;
  font-weight: 700;
  color: #00f59b;
  line-height: 1;
}

.hub-badge {
  font-size: 8px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.3px;
  line-height: 1;
}

.routing-venues-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

.routing-venue-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: rgba(18, 26, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
}

.venue-name {
  font-size: 9.5px;
  font-weight: 600;
  color: #e2e8f0;
}

.venue-pct {
  font-size: 9px;
  font-weight: 700;
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
}

.routing-graph-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 10.5px;
  color: #64748b;
}

.routing-footer-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Shimmer Skeleton Preloaders ─────────────────────────────────── */
.shimmer-skeleton {
  position: relative !important;
  color: transparent !important;
  pointer-events: none !important;
  user-select: none !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.shimmer-skeleton::after {
  content: "" !important;
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%) !important;
  animation: skeletonShimmer 1.4s infinite !important;
  transform: translateX(-100%);
}

@keyframes skeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}

/* ── Institutional Tier-1 HUD Toasts ─────────────────────────────── */
#gasshield-toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 420px;
}

.gasshield-hud-toast {
  position: relative;
  background: rgba(6, 8, 14, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: auto;
  overflow: hidden;
}

.gasshield-hud-toast.toast-success {
  border-color: rgba(0, 245, 155, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 245, 155, 0.15);
}

.gasshield-hud-toast.toast-warning {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(245, 158, 11, 0.15);
}

.gasshield-hud-toast.toast-error {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(239, 68, 68, 0.15);
}

.gasshield-hud-toast.toast-info {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(56, 189, 248, 0.15);
}

.toast-icon-wrap {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-message-wrap {
  flex: 1;
  line-height: 1.4;
  word-break: break-word;
}

.toast-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #00f59b;
  width: 100%;
  transform-origin: left;
  animation: toastProgress 3.6s linear forwards;
}

.gasshield-hud-toast.toast-error .toast-progress-bar {
  background: #ef4444;
}

.gasshield-hud-toast.toast-warning .toast-progress-bar {
  background: #f59e0b;
}

.gasshield-hud-toast.toast-info .toast-progress-bar {
  background: #38bdf8;
}

@keyframes toastProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 480px) {
  #gasshield-toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
  .routing-node-box {
    padding: 5px 7px;
  }
  .node-amount {
    font-size: 10px;
  }
  .routing-beam-track {
    min-width: 8px;
    max-width: 16px;
  }
}

/* ── Main Action Trigger Button ──────────────────────────────────── */
.swap-action-trigger {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-green) 0%, #00c77d 100%);
  border: none;
  border-radius: 18px;
  color: #050811;
  font-size: 16px;
  font-weight: 800;
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px var(--accent-green-glow);
  transition: all 0.2s ease;
  margin-top: 6px;
}

.swap-action-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 245, 155, 0.5);
}

.swap-action-trigger:disabled {
  background: #1e293b;
  color: #64748b;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Security Trust Guarantee Strip ──────────────────────────────── */
.swap-security-strip {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 11px;
  color: var(--text-muted);
}

.sec-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sec-item span:first-child {
  color: var(--accent-green);
}

/* ── Modal Dialogs (Token Selector & Settings) ───────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 10, 0.85);
  display: none !important;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 16px;
}

.modal-overlay.active {
  display: flex !important;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-card {
  background: #0d1322;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 22px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.modal-close-btn:hover {
  color: #fff;
}

/* Token Search Box */
.token-search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  margin-bottom: 14px;
}

.token-search-input:focus {
  border-color: var(--accent-cyan);
}

.quick-tokens-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.quick-token-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.quick-token-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Crosschain Promo Banner */
.crosschain-banner {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(56, 189, 248, 0.1) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cc-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cc-icon {
  font-size: 18px;
  color: #c084fc;
}
.cc-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.cc-desc {
  font-size: 11px;
  color: #cbd5e1;
}
.cc-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 2px;
}
.cc-close-btn:hover { color: #fff; }

/* Connect Wallet Banner inside Modal */
.modal-connect-banner {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(168, 85, 247, 0.15) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 4px 0 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mcb-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mcb-icon {
  font-size: 20px;
}
.mcb-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}
.mcb-subtitle {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}
.btn-modal-connect-cta {
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  color: #040914;
  font-weight: 700;
  font-size: 12px;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
  transition: all 0.15s ease;
}
.btn-modal-connect-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.5);
}

/* Token Section Headers */
.token-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 8px 6px 6px 6px;
  margin-top: 4px;
}

.token-list-wrap {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 4px;
}

.token-list-wrap::-webkit-scrollbar {
  width: 6px;
}
.token-list-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}

.token-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.token-item-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.token-left-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.token-icon-container {
  position: relative;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.token-icon-main {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.token-chain-subbadge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
}

.token-name-wrap {
  text-align: left;
}

.token-name-wrap .token-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.token-symbol-text {
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
}

.token-sub-detail {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.token-contract-snippet {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.8;
}

.token-right-balance {
  text-align: right;
}

.token-balance-usd {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.token-balance-qty {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.empty-tokens-hint {
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin: 6px 0;
}

/* Settings Modal Specifics */
.setting-section {
  margin-bottom: 18px;
}

.setting-title {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.slippage-pills-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.slippage-pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #cbd5e1;
  padding: 8px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.slippage-pill-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.slippage-pill-btn.active {
  background: rgba(0, 245, 155, 0.15);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* ── Web3 Wallet Install & Connect Modal ──────────────────────────── */
.wallet-install-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.5;
}

.wallet-option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.wallet-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: #fff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.wallet-option-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.wallet-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.wallet-item-icon img,
.wallet-item-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.wallet-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.wallet-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.wallet-item-sub {
  font-size: 11.5px;
  color: #94a3b8;
}

.wallet-item-action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.wallet-demo-cta-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: radial-gradient(circle at top left, rgba(0, 245, 155, 0.12) 0%, rgba(0, 245, 155, 0.02) 100%);
  border: 1px solid rgba(0, 245, 155, 0.3);
  margin-bottom: 16px;
  text-align: left;
}

.wallet-demo-cta-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #00f59b;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wallet-demo-cta-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 12px;
}

.btn-wallet-demo-action {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent-green);
  color: #070a12;
  font-weight: 800;
  font-size: 13px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-wallet-demo-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 245, 155, 0.35);
}

/* Active Mobile/Telegram Wallet Launching Assistant State */
.wallet-launching-card {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 18px;
  background: rgba(6, 8, 14, 0.7);
  border: 1px solid rgba(0, 245, 155, 0.25);
  border-radius: 16px;
  margin-bottom: 16px;
  animation: fadeInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wallet-launching-card.active {
  display: flex !important;
}

.wallet-launch-spinner-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(0, 245, 155, 0.08);
  border: 1px solid rgba(0, 245, 155, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  box-shadow: 0 0 25px rgba(0, 245, 155, 0.25);
}

.wallet-launch-spinner-box svg,
.wallet-launch-spinner-box img {
  width: 32px;
  height: 32px;
}

.wallet-launching-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.wallet-launching-hint {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 18px;
  max-width: 320px;
}

.wallet-launch-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn-wallet-launch-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(135deg, #00f59b 0%, #00d2ff 100%);
  color: #06080e !important;
  font-weight: 800;
  font-size: 14px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 18px rgba(0, 245, 155, 0.35);
  transition: all 0.2s ease;
}

.btn-wallet-launch-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 245, 155, 0.5);
}

.btn-wallet-launch-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-weight: 600;
  font-size: 13px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wallet-launch-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
}

.btn-wallet-launch-back {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: color 0.2s ease;
}

.btn-wallet-launch-back:hover {
  color: #94a3b8;
}

.wallet-modal-mobile-note {
  font-size: 11.5px;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wallet-modal-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.wallet-copy-text {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
  text-align: left;
}

.btn-wallet-copy-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-wallet-copy-url:hover {
  background: rgba(56, 189, 248, 0.22);
  transform: translateY(-1px);
}

/* ── Uniswap-Grade DEX Wide Tab Views (Explore, Pool, Portfolio) ── */
.dex-wide-header {
  width: 100%;
  max-width: 1080px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.dex-wide-title-wrap {
  display: flex;
  flex-direction: column;
}

.dex-wide-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #fff;
}

.dex-wide-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.explore-filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
}

.explore-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.explore-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.explore-chip.active {
  background: rgba(0, 245, 155, 0.15);
  color: var(--accent-green);
  border-color: rgba(0, 245, 155, 0.4);
}

.btn-new-position {
  background: linear-gradient(135deg, var(--accent-green) 0%, #00c77d 100%);
  color: #070a12;
  border: none;
  font-size: 13.5px;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 16px var(--accent-green-glow);
  transition: all 0.2s ease;
}

.btn-new-position:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0, 245, 155, 0.5);
}

/* ══ UNISWAP-EXACT POOL SECTION STYLING ═════════════════════════════ */
.pool-hero-section {
  width: 100%;
  max-width: 1080px;
  margin-bottom: 28px;
  text-align: left;
}

.pool-hero-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.pool-hero-subtitle {
  font-size: 15px;
  font-weight: 500;
  color: #717886;
  margin-bottom: 24px;
}

.pool-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-pool-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-pool-pill.btn-pool-primary {
  background: #00f59b;
  background: linear-gradient(135deg, #00f59b 0%, #00d684 100%);
  color: #06080e;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 245, 155, 0.35);
}

.btn-pool-pill.btn-pool-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 245, 155, 0.55);
  filter: brightness(1.06);
}

.btn-pool-pill.btn-pool-secondary {
  background: #17181f;
  background: rgba(255, 255, 255, 0.05);
  color: #c4cad4;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-pool-pill.btn-pool-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.pool-pill-icon {
  font-size: 14px;
}

.pool-pill-plus {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

/* Pool 3 Metrics Cards Grid */
.pool-metrics-grid {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.pool-metric-card {
  background: #111319;
  background: rgba(17, 19, 25, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 22px 24px;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pool-metric-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.pool-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pool-metric-label {
  font-size: 13.5px;
  font-weight: 500;
  color: #717886;
}

.btn-pool-collect {
  background: #252730;
  border: none;
  color: #717886;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pool-collect:hover:not(:disabled) {
  background: rgba(0, 245, 155, 0.18);
  color: #00f59b;
}

.btn-pool-collect:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.pool-metric-value {
  font-size: 32px;
  font-weight: 700;
  color: #646a78;
  letter-spacing: -0.6px;
  line-height: 1;
  margin-top: 10px;
}

/* "No positions" Banner */
.pool-no-positions-banner {
  width: 100%;
  max-width: 1080px;
  background: linear-gradient(135deg, rgba(13, 21, 35, 0.95) 0%, rgba(9, 14, 25, 0.95) 50%, rgba(6, 10, 18, 0.98) 100%);
  background-image: 
    radial-gradient(rgba(0, 245, 155, 0.08) 1.5px, transparent 1.5px),
    linear-gradient(135deg, rgba(13, 21, 35, 0.95) 0%, rgba(9, 14, 25, 0.95) 50%, rgba(6, 10, 18, 0.98) 100%);
  background-size: 24px 24px, 100% 100%;
  border: 1px solid rgba(0, 245, 155, 0.18);
  border-radius: 20px;
  padding: 44px 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 0 50px rgba(0, 245, 155, 0.04);
}

.pool-no-pos-deco {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.85;
}

.pool-no-pos-deco.left {
  left: 24px;
}

.pool-no-pos-deco.right {
  right: 24px;
}

.pool-no-positions-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.pool-no-pos-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.pool-no-pos-desc {
  font-size: 13.5px;
  color: #9ca3af;
  line-height: 1.55;
  margin: 0 auto;
}

/* Top Pools Table */
.top-pools-container {
  width: 100%;
  max-width: 1080px;
}

.top-pools-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.4px;
}

.top-pools-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.top-pools-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.top-pools-table thead th {
  font-size: 12.5px;
  font-weight: 600;
  color: #717886;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.top-pools-table thead th.sorted {
  color: #ffffff;
}

.top-pools-table thead th.th-num {
  width: 44px;
  text-align: left;
}

.top-pools-table thead th.th-tvl,
.top-pools-table thead th.th-vol1d,
.top-pools-table thead th.th-vol30d,
.top-pools-table thead th.th-ratio,
.top-pools-table thead th.th-apr {
  text-align: right;
}

.top-pools-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.15s ease;
}

.top-pools-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.top-pools-table tbody td {
  padding: 16px 16px;
  vertical-align: middle;
  white-space: nowrap;
}

.td-pool-num {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  width: 44px;
}

.td-pool-pair-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dual-token-avatars {
  display: flex;
  align-items: center;
  position: relative;
  width: 46px;
  height: 32px;
  flex-shrink: 0;
}

.token-circle-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  border: 2px solid #0d0f17;
  position: relative;
}

.token-circle-avatar.token-first {
  z-index: 2;
}

.token-circle-avatar.token-second {
  margin-left: -10px;
  z-index: 1;
}

.token-avatar-eth {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
}
.token-avatar-usdg {
  background: linear-gradient(135deg, #059669, #10b981);
}
.token-avatar-xdp {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
}
.token-avatar-usdc {
  background: linear-gradient(135deg, #1e40af, #2563eb);
}
.token-avatar-usds {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
}
.token-avatar-usdt {
  background: linear-gradient(135deg, #047857, #10b981);
}

.pool-pair-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pool-pair-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.pool-pair-meta {
  font-size: 12px;
  color: #717886;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pool-meta-dot {
  color: #4b5563;
}

.pool-meta-hook {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.td-pool-num-val {
  text-align: right;
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  font-family: var(--font-mono);
  letter-spacing: -0.2px;
}

/* Responsive Overrides */
@media (max-width: 860px) {
  .pool-hero-title {
    font-size: 26px;
  }
  .pool-metrics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .pool-no-pos-deco {
    display: none;
  }
  .pool-no-positions-banner {
    padding: 30px 18px;
  }
}

/* ══ UNISWAP-EXACT EXPLORE TAB STYLING ══════════════════════════════ */
.explore-protocol-stats-row {
  width: 100%;
  max-width: 1080px;
  display: flex;
  align-items: center;
  gap: 36px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.explore-proto-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proto-stat-label {
  font-size: 13px;
  font-weight: 500;
  color: #717886;
}

.proto-stat-val {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.4px;
  font-family: var(--font-sans);
}

/* Stocks Section */
.explore-section-block {
  width: 100%;
  max-width: 1080px;
  margin-bottom: 30px;
}

.explore-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.explore-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.explore-sec-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin: 0;
}

.explore-tag-new {
  background: #00f59b;
  color: #06080e;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  line-height: 1.2;
}

.explore-tag-new.mini {
  font-size: 9px;
  padding: 1px 6px;
  margin-left: 4px;
}

.explore-link-btn {
  background: none;
  border: none;
  color: #717886;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.explore-link-btn:hover {
  color: #ffffff;
}

.explore-stocks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.explore-stock-card {
  background: #111319;
  background: rgba(17, 19, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 96px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.explore-stock-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.stock-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.stock-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stock-icon-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.bg-dark-x {
  background: #000;
  border: 1px solid #333;
}

.bg-circle {
  background: #0284c7;
}

.bg-feather {
  background: #eab308;
  color: #000;
}

.bg-google {
  background: #2563eb;
}

.stock-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stock-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.stock-provider {
  font-size: 11.5px;
  color: #717886;
  font-weight: 500;
}

.stock-card-bottom {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
}

.stock-price {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-mono);
}

.stock-delta {
  font-size: 12px;
  font-weight: 600;
}

.stock-delta.down {
  color: #ef4444;
}

.stock-delta.up {
  color: #10b981;
}

/* Earn Section */
.earn-block {
  margin-bottom: 34px;
}

.explore-earn-header {
  margin-bottom: 12px;
}

.explore-earn-sub {
  font-size: 13.5px;
  color: #717886;
  margin-top: 3px;
}

.explore-earn-pills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.explore-earn-pill {
  background: #111319;
  background: rgba(17, 19, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.explore-earn-pill:hover {
  border-color: rgba(232, 121, 249, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 121, 249, 0.1);
}

.earn-pill-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.earn-pill-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.earn-pill-symbol {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.earn-pill-apy {
  font-size: 13.5px;
  font-weight: 700;
  color: #e879f9;
}

/* Main Subtabs Navigation */
.explore-tokens-header-bar {
  width: 100%;
  max-width: 1080px;
  margin-bottom: 14px;
}

.explore-subnav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.explore-subnav-btn {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: #717886;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
  transition: color 0.15s ease;
}

.explore-subnav-btn:hover {
  color: #d1d5db;
}

.explore-subnav-btn.active {
  color: #ffffff;
}

.explore-subnav-btn.active::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

/* Filter Toolbar & Controls */
.explore-filter-toolbar {
  width: 100%;
  max-width: 1080px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.explore-category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.explore-cat-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9999px;
  padding: 7px 15px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.explore-cat-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.explore-cat-pill.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.cat-pill-icon {
  font-size: 12px;
}

.explore-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.explore-dropdown-wrap {
  position: relative;
}

.btn-explore-dropdown {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 7px 16px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-explore-dropdown:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}

.dropdown-arrow-icon {
  font-size: 11px;
  color: #9ca3af;
}

.explore-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #181920;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 8px;
  min-width: 175px;
  z-index: 100;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
  display: none;
}

.explore-dropdown-menu.active {
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: fadeInDrop 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDrop {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.explore-dropdown-menu .dropdown-item {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.explore-dropdown-menu .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.explore-dropdown-menu .dropdown-item.active {
  color: #ffffff;
  font-weight: 600;
}

.item-check {
  color: #00f59b;
  font-weight: 800;
}

.item-check-round {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

/* Network Selector Grid Icon */
.network-multi-grid-icon {
  display: grid;
  grid-template-columns: repeat(2, 6px);
  gap: 2px;
  align-items: center;
}

.network-multi-grid-icon.mini {
  grid-template-columns: repeat(2, 5px);
  gap: 2px;
}

.grid-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.network-multi-grid-icon.mini .grid-dot {
  width: 5px;
  height: 5px;
}

.dot-eth { background: #627eea; }
.dot-poly { background: #8247e5; }
.dot-arb { background: #28a0f0; }
.dot-op { background: #ff0420; }

.network-dropdown-menu {
  min-width: 260px;
  padding: 10px;
}

.dropdown-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.dropdown-search-input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  width: 100%;
}

.net-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.net-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease;
  background: transparent;
}

.net-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.arb-badge, .eth-badge, .base-badge, .op-badge, .poly-badge, .bnb-badge, .avax-badge, .blast-badge, .robinhood-badge, .arc-badge, .ink-badge, .sep-badge, .all-networks-badge {
  background: transparent;
  color: #fff;
}

/* Filter Tokens Input (Screenshot 3 Signature Pink Focus) */
.explore-search-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 6px 14px;
  transition: all 0.2s ease;
}

.explore-search-input-box:focus-within,
.explore-search-input-box.active {
  border-color: #00f59b;
  box-shadow: 0 0 0 2px rgba(0, 245, 155, 0.25);
}

.explore-search-input {
  background: none;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13px;
  width: 120px;
  transition: width 0.2s ease;
}

.explore-search-input:focus {
  width: 160px;
}

.btn-clear-search {
  background: none;
  border: none;
  color: #717886;
  cursor: pointer;
  font-size: 11px;
  display: none;
}

.btn-clear-search.visible {
  display: inline-block;
}

/* Tokens Table Styling */
.explore-table-wrapper {
  width: 100%;
  max-width: 1080px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.explore-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  text-align: left;
}

.explore-table thead th {
  font-size: 12.5px;
  font-weight: 600;
  color: #717886;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.explore-table thead th.sorted {
  color: #ffffff;
}

.explore-table thead th.th-exp-num {
  width: 44px;
  text-align: left;
}

.explore-table thead th.th-exp-token {
  min-width: 180px;
}

.explore-table thead th.th-exp-price {
  width: 110px;
  text-align: right;
}

.explore-table thead th.th-exp-1h {
  width: 85px;
  text-align: right;
}

.explore-table thead th.th-exp-1d {
  width: 85px;
  text-align: right;
}

.explore-table thead th.th-exp-fdv {
  width: 100px;
  text-align: right;
}

.explore-table thead th.th-exp-vol {
  width: 105px;
  text-align: right;
}

.explore-table thead th.th-exp-chart {
  width: 125px;
  text-align: right;
}

.explore-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: background 0.15s ease;
}

.explore-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.explore-table tbody td {
  padding: 15px 16px;
  vertical-align: middle;
  white-space: nowrap;
}

.td-exp-num {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  width: 44px;
}

.td-exp-token-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.token-main-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.token-name-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.token-full-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.token-sub-symbol {
  font-size: 12px;
  color: #717886;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Uniswap Multi-Chain Network Hover Capsule Engine ── */
.token-sub-symbol-group {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 20px;
}

.token-sub-symbol-default {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #717886;
  font-weight: 500;
  transition: opacity 0.15s ease;
}

.token-sub-networks-hover {
  display: none;
  align-items: center;
  transition: opacity 0.15s ease;
}

/* Hover reveal on Explore Table Rows */
.explore-table tbody tr:hover .token-sub-symbol-default,
.explore-table tbody tr.is-active .token-sub-symbol-default {
  display: none !important;
}

.explore-table tbody tr:hover .token-sub-networks-hover,
.explore-table tbody tr.is-active .token-sub-networks-hover {
  display: inline-flex !important;
  animation: fadeInNetPill 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hover reveal in Token Selector Modal */
.token-item-row:hover .token-sub-symbol-default,
.token-item-row.is-active .token-sub-symbol-default {
  display: none !important;
}

.token-item-row:hover .token-sub-networks-hover,
.token-item-row.is-active .token-sub-networks-hover {
  display: inline-flex !important;
  animation: fadeInNetPill 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInNetPill {
  from {
    opacity: 0;
    transform: translateY(1px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Networks Capsule (Exact Uniswap Geometry matching screenshot) */
.networks-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1.5px 6px 1.5px 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.networks-badge-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
}

.networks-count-text {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: -0.1px;
  white-space: nowrap;
}

.networks-badge-pill:hover .networks-count-text {
  color: #ffffff;
}

.networks-icon-stack {
  display: inline-flex;
  align-items: center;
}

.net-stack-circle {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid #0d111c;
  margin-left: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.net-stack-circle:first-child {
  margin-left: 0;
}

.copy-snippet-icon {
  font-size: 10px;
  cursor: pointer;
  color: #717886;
}

.copy-snippet-icon:hover {
  color: #ffffff;
}

.td-exp-val {
  text-align: right;
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  font-family: var(--font-mono);
}

.td-exp-delta {
  text-align: right;
  font-size: 14px;
  font-weight: 600;
}

.td-exp-delta.up {
  color: #10b981;
}

.td-exp-delta.down {
  color: #ef4444;
}

.td-exp-delta.neutral {
  color: #9ca3af;
}

.td-exp-chart-cell {
  text-align: right;
  width: 125px;
  min-width: 125px;
}

.stock-mini-sparkline {
  width: 72px !important;
  height: 26px !important;
  display: block;
  flex-shrink: 0;
}

.explore-sparkline-canvas {
  width: 110px !important;
  height: 28px !important;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Live Price Flash Effect */
@keyframes priceGlowGreen {
  0% { color: #10b981; text-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
  100% { color: #ffffff; text-shadow: none; }
}

@keyframes priceGlowRed {
  0% { color: #ef4444; text-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
  100% { color: #ffffff; text-shadow: none; }
}

.price-flash-up {
  animation: priceGlowGreen 1.2s ease-out;
}

.price-flash-down {
  animation: priceGlowRed 1.2s ease-out;
}

/* Avatar Classes for 26+ Top Market Tokens */
.token-avatar-bnb { background: linear-gradient(135deg, #f59e0b, #d97706); }
.token-avatar-xrp { background: linear-gradient(135deg, #334155, #0f172a); }
.token-avatar-doge { background: linear-gradient(135deg, #eab308, #ca8a04); }
.token-avatar-ada { background: linear-gradient(135deg, #0284c7, #0369a1); }
.token-avatar-avax { background: linear-gradient(135deg, #e11d48, #be123c); }
.token-avatar-link { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.token-avatar-sui { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.token-avatar-pepe { background: linear-gradient(135deg, #22c55e, #15803d); }
.token-avatar-uni { background: linear-gradient(135deg, #ec4899, #db2777); }
.token-avatar-arb { background: linear-gradient(135deg, #2563eb, #1e40af); }
.token-avatar-op { background: linear-gradient(135deg, #ef4444, #dc2626); }
.token-avatar-near { background: linear-gradient(135deg, #10b981, #059669); }
.token-avatar-apt { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.token-avatar-pol { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.token-avatar-shib { background: linear-gradient(135deg, #ea580c, #c2410c); }
.token-avatar-ldo { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.token-avatar-aave { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.token-avatar-render { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.token-avatar-fet { background: linear-gradient(135deg, #6366f1, #4338ca); }

.token-main-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f172a;
}

/* Real-Time Live Streaming Market Badge */
.live-stream-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-left: 10px;
  vertical-align: middle;
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: livePulseAnim 1.4s ease-in-out infinite;
}

@keyframes livePulseAnim {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}


/* Mobile Responsiveness for Explore */
@media (max-width: 900px) {
  .explore-stocks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .explore-earn-pills-row {
    grid-template-columns: 1fr;
  }
  .explore-protocol-stats-row {
    gap: 18px;
  }
  .explore-proto-stat .proto-stat-val {
    font-size: 20px;
  }
}

.portfolio-wallet-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.portfolio-wallet-badge.connected {
  border-color: rgba(0, 245, 155, 0.4);
  color: var(--accent-green);
  background: rgba(0, 245, 155, 0.08);
}

/* DEX Stats Grid */
.dex-stats-bar {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.dex-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
}

.stat-delta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 600;
}

.stat-delta.up {
  color: var(--accent-green);
}

.stat-delta.down {
  color: var(--danger);
}

/* DEX Tables */
.dex-table-wrapper {
  width: 100%;
  max-width: 1080px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px 20px;
  overflow-x: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
}

.table-section-heading {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dex-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dex-table th {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.dex-table td {
  padding: 15px 14px;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  white-space: nowrap;
}

.dex-table tbody tr {
  transition: background 0.15s ease;
}

.dex-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.token-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.token-cell-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}

.token-cell-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.token-cell-name {
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.token-cell-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.tier-badge {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
}

.apy-badge {
  background: rgba(0, 245, 155, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(0, 245, 155, 0.3);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  display: inline-block;
}

.btn-table-action {
  background: rgba(0, 245, 155, 0.12);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-table-action:hover {
  background: var(--accent-green);
  color: #070a12;
}

/* Portfolio History List */
.portfolio-history-card {
  width: 100%;
  max-width: 1080px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.history-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-tag {
  background: rgba(0, 245, 155, 0.15);
  color: var(--accent-green);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
}

.history-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}

.history-time {
  font-size: 11px;
  color: var(--text-muted);
}

.history-saved {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-green);
  text-align: right;
}

/* Pool pair modal */
.pool-pair-select-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin-bottom: 10px;
}

.pool-token-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  color: #fff;
}

/* ── Uniswap-Grade Portfolio Architecture Styles ───────────────── */
.portfolio-profile-header {
  width: 100%;
  max-width: 1080px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.port-profile-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.port-avatar-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, #38bdf8 0%, #0284c7 60%, #0369a1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.port-address-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.port-address-text {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
}

.btn-copy-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.port-profile-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-toggle-pill {
  background: rgba(0, 245, 155, 0.12);
  border: 1px solid rgba(0, 245, 155, 0.35);
  color: var(--accent-green);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.demo-toggle-pill:hover {
  background: rgba(0, 245, 155, 0.2);
}

.btn-port-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-port-pill:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Portfolio Sub-Tabs Nav */
.portfolio-subtabs-nav {
  width: 100%;
  max-width: 1080px;
  display: flex;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
  padding-bottom: 4px;
}

.port-subtab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 2px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  font-family: inherit;
}

.port-subtab-btn:hover {
  color: #fff;
}

.port-subtab-btn.active {
  color: #fff;
  font-weight: 700;
}

.port-subtab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Sub-Views */
.port-subview {
  width: 100%;
  max-width: 1080px;
}

/* 2-Column Overview Layout (Matching Uniswap Reference) */
.port-overview-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  margin-bottom: 28px;
}

.port-chart-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.port-valuation-header {
  margin-bottom: 12px;
}

.port-hero-balance {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  line-height: 1.1;
}

.port-hero-delta {
  font-size: 14px;
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.port-hero-delta.down {
  color: #fd366e;
}

.port-hero-delta.up {
  color: var(--accent-green);
}

.port-chart-canvas-wrap {
  width: 100%;
  height: 230px;
  position: relative;
  margin: 10px 0 16px 0;
}

#portfolioCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-hover-tooltip {
  position: absolute;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -120%);
  z-index: 10;
  white-space: nowrap;
}

.timeframe-pills-row {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 20px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeframe-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.timeframe-pill:hover {
  color: #fff;
}

.timeframe-pill.active {
  background: #1e293b;
  color: #fff;
}

/* Right Column: 2x2 Quick Action Cards */
.port-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.port-actions-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.action-grid-card {
  background: #1a1622;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
}

.action-grid-card:hover {
  background: #241e30;
  border-color: rgba(253, 54, 110, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.action-grid-card .ag-icon {
  font-size: 20px;
  color: #fd366e;
}

.action-grid-card .ag-label {
  font-size: 14px;
  font-weight: 700;
  color: #fd366e;
}

/* Performance Card */
.port-performance-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.perf-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.perf-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-tip-icon {
  font-size: 12px;
  color: var(--text-muted);
  cursor: help;
}

.perf-time-badge {
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.perf-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.perf-label {
  color: var(--text-secondary);
}

.perf-val {
  font-weight: 700;
  font-family: var(--font-mono);
}

.perf-val.down {
  color: #fd366e;
}

.perf-val.up {
  color: var(--accent-green);
}

/* Quick Token Preview Strip */
.port-preview-strip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px;
}

.preview-strip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.btn-link-action {
  background: none;
  border: none;
  color: #38bdf8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-link-action:hover {
  text-decoration: underline;
}

.port-quick-tokens-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-token-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.15s ease;
}

.quick-token-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* NFT Gallery Grid */
.nft-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  padding: 8px 0;
}

.nft-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nft-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.nft-img-wrap {
  width: 100%;
  height: 180px;
  background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
}

.nft-network-chip {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.nft-card-body {
  padding: 12px 14px;
}

.nft-coll-title {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nft-item-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 2px 0 8px 0;
}

.nft-floor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.nft-floor-val {
  font-weight: 700;
  color: var(--accent-green);
  font-family: var(--font-mono);
}

/* ── Uniswap Exact Activity Tab Styles ─────────────────────────── */
.activity-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.act-filters-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.act-custom-dropdown-wrap,
.port-net-dropdown-wrap {
  position: relative;
  display: inline-flex;
}

.act-filter-dropdown-btn,
.btn-port-net-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.btn-port-net-pill {
  border-radius: 20px;
  padding: 8px 16px;
}

.act-filter-dropdown-btn:hover,
.btn-port-net-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(56, 189, 248, 0.35);
}

.act-filter-dropdown-btn[aria-expanded="true"],
.btn-port-net-pill[aria-expanded="true"] {
  border-color: rgba(0, 245, 155, 0.5);
  box-shadow: 0 0 16px rgba(0, 245, 155, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.act-filter-btn-icon,
.port-net-current-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
}

.act-filter-chevron,
.port-net-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: transform 0.2s ease;
  line-height: 1;
}

.act-filter-dropdown-btn[aria-expanded="true"] .act-filter-chevron,
.btn-port-net-pill[aria-expanded="true"] .port-net-chevron {
  transform: rotate(180deg);
}

.act-custom-dropdown-menu,
.port-net-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #0d1321;
  background: linear-gradient(180deg, #131929 0%, #0d1321 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 6px;
  min-width: 170px;
  z-index: 1100;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 1px 1px rgba(0, 245, 155, 0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: fadeInDrop 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.port-net-dropdown-menu {
  right: 0;
  left: auto;
  min-width: 195px;
}

.act-custom-dropdown-item,
.port-net-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.act-custom-dropdown-item:hover,
.port-net-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.act-custom-dropdown-item.active,
.port-net-dropdown-item.active {
  background: rgba(0, 245, 155, 0.12);
  color: #00f59b;
}

.act-item-left,
.port-net-item-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.act-item-icon,
.port-net-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.act-item-check,
.port-net-check {
  color: #00f59b;
  font-size: 13px;
  font-weight: 800;
}

.act-search-right {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 8px 16px;
  width: 250px;
  transition: all 0.2s ease;
}

.act-search-right:focus-within {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.act-search-icon {
  font-size: 13px;
  color: var(--text-muted);
}

.act-search-input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  outline: none;
  width: 100%;
  font-family: inherit;
}

.act-search-input::placeholder {
  color: var(--text-muted);
}

/* Activity Table */
.activity-table-card {
  width: 100%;
  max-width: 1080px;
  background: transparent;
}

.activity-table-header-row {
  display: grid;
  grid-template-columns: 100px 140px 1fr 200px;
  align-items: center;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.activity-row-item {
  display: grid;
  grid-template-columns: 100px 140px 1fr 200px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
  border-radius: 12px;
}

.activity-row-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.act-col.col-time {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.act-col.col-type {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.act-type-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
}

.act-type-icon.swapped {
  color: #38bdf8;
}

.act-type-icon.received {
  color: #fff;
}

.act-type-icon.sent {
  color: #fd366e;
}

.act-col.col-amount {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.amount-swap-pair {
  display: flex;
  align-items: center;
  gap: 14px;
}

.amount-arrow {
  color: var(--text-muted);
  font-size: 16px;
}

.token-amount-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.token-circle-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
  background: #1e293b;
  flex-shrink: 0;
}

.token-circle-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.token-chain-badge-small {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #070a12;
  border: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  overflow: hidden;
}

.token-chain-badge-small svg {
  width: 100%;
  height: 100%;
  display: block;
}

.token-amount-meta {
  display: flex;
  flex-direction: column;
}

.token-amt-value {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
}

.token-amt-fiat {
  font-size: 12px;
  color: var(--text-muted);
}

.act-col.col-address {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.addr-meta-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.addr-hash-link {
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.addr-hash-link:hover {
  color: #38bdf8;
}

.addr-avatar-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #00f59b 0%, #0284c7 100%);
  display: inline-block;
}

.gas-saved-chip {
  font-size: 11px;
  color: var(--accent-green);
  font-weight: 700;
  margin-top: 3px;
}

/* QR Box Mock */
.receive-qr-box {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px auto;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0, 245, 155, 0.2);
}

.qr-canvas-mock {
  width: 150px;
  height: 150px;
  background: 
    linear-gradient(45deg, #070a12 25%, transparent 25%),
    linear-gradient(-45deg, #070a12 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #070a12 75%),
    linear-gradient(-45deg, transparent 75%, #070a12 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.qr-center-shield {
  font-size: 28px;
  background: #fff;
  padding: 4px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.receive-address-display {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  word-break: break-all;
  color: #cbd5e1;
}

/* Mobile Bottom Tabs */
.mobile-bottom-tabs {
  display: none;
}

/* ── Responsive Mobile Optimization ─────────────────────────────── */
@media (max-width: 640px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }
  .dex-nav {
    padding: 8px 10px;
    gap: 6px;
    justify-content: space-between;
  }
  .nav-links-center {
    display: none;
  }
  .gas-tracker-pill {
    display: none;
  }
  .brand-title {
    display: none;
  }
  .nav-brand {
    gap: 0;
    flex-shrink: 0;
  }
  .nav-controls-right {
    gap: 6px;
    flex-shrink: 0;
  }
  .network-pill-select {
    padding: 6px 8px;
    font-size: 11px;
    max-width: 105px;
  }
  .btn-connect-wallet {
    padding: 6px 10px;
    font-size: 11.5px;
    min-height: 36px;
    gap: 5px;
  }
  .btn-settings-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
    flex-shrink: 0;
  }
  .swap-page-wrapper {
    padding: 14px 10px 84px 10px;
  }
  .trade-hero-title {
    font-size: 26px;
    letter-spacing: -0.6px;
  }
  .trade-hero-sub {
    font-size: 13px;
    padding: 0 8px;
  }
  .dex-wide-title {
    font-size: 22px;
  }
  .dex-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-value {
    font-size: 18px;
  }
  .dex-table-wrapper {
    padding: 10px 8px;
    border-radius: 14px;
  }
  .swap-card {
    border-radius: 18px;
    padding: 14px 12px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .token-amount-input {
    font-size: 22px;
  }
  .btn-select-token {
    padding: 6px 10px;
    min-height: 38px;
  }
  .swap-cta-btn {
    min-height: 48px;
    font-size: 15px;
    border-radius: 14px;
  }
  .token-modal-card {
    max-width: 95vw;
    border-radius: 20px;
    padding: 16px 14px;
    margin: 10px auto;
  }

  /* Portfolio Mobile Layout */
  .port-overview-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .portfolio-profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .port-profile-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .portfolio-subtabs-nav {
    overflow-x: auto;
    gap: 16px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  .port-hero-balance {
    font-size: 32px;
  }
  .port-chart-canvas-wrap {
    height: 190px;
  }
  .port-actions-2x2 {
    gap: 10px;
  }
  .action-grid-card {
    padding: 14px 12px;
  }
  .nft-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Activity Mobile Layout */
  .activity-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .act-filters-left {
    justify-content: space-between;
  }
  .act-search-right {
    width: 100%;
  }
  .activity-table-header-row {
    display: none;
  }
  .activity-row-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    margin-bottom: 8px;
  }
  .amount-swap-pair {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  /* Show Mobile Bottom Navigation */
  .mobile-bottom-tabs {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(7, 10, 18, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 999;
    padding: 8px 12px max(8px, env(safe-area-inset-bottom)) 12px;
    justify-content: space-around;
    align-items: center;
  }

  .mobile-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    padding: 4px 12px;
    border-radius: 10px;
  }

  .mobile-tab-btn .m-icon {
    font-size: 18px;
  }

  .mobile-tab-btn.active {
    color: var(--accent-green);
    background: rgba(0, 245, 155, 0.08);
  }
}

@media (max-width: 380px) {
  .dex-nav {
    padding: 8px 10px;
  }
  .brand-title {
    font-size: 16px;
  }
  .swap-card {
    padding: 12px 10px;
  }
  .swap-token-box {
    padding: 10px 8px;
  }
  .token-amount-input {
    font-size: 20px;
  }
  .dex-stats-bar {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   TOKEN DETAIL PAGE (Uniswap Exact Token & Stock Trading Page)
   ══════════════════════════════════════════════════════════════════════ */
.token-detail-view {
  max-width: 1260px;
  margin: 0 auto;
  padding: 24px 24px 140px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch !important;
  text-align: left;
  gap: 26px;
  animation: fadeIn 0.25s ease-out;
  box-sizing: border-box;
}

/* Breadcrumbs */
.token-detail-breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #717886;
}

.btn-breadcrumb-back {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-breadcrumb-back:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.token-breadcrumb-path {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crumb-link {
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s;
}

.crumb-link:hover {
  color: #ffffff;
}

.crumb-sep {
  color: #475569;
  font-size: 12px;
}

.crumb-active {
  color: #ffffff;
  font-weight: 700;
}

/* Header */
.token-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.token-detail-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.token-detail-avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.token-detail-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.token-detail-avatar img,
.token-detail-avatar svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.token-detail-net-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  border: 1.5px solid #070a12;
  overflow: hidden;
}

.token-detail-net-badge svg {
  width: 100%;
  height: 100%;
  display: block;
}

.token-detail-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.token-detail-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Multi-Network Dropdown Pill beside Token Name (Uniswap Standard) */
.token-networks-pill-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-detail-networks-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-detail-networks-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-detail-networks-pill .pill-chevron {
  font-size: 10px;
  color: #94a3b8;
}

.detail-networks-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: rgba(13, 19, 33, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 6px;
  min-width: 210px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-networks-dropdown .dropdown-network-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.detail-networks-dropdown .dropdown-network-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.detail-networks-dropdown .dropdown-network-item .active-dot {
  margin-left: auto;
  color: #00f59b;
  font-size: 10px;
}

.token-detail-name {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.4px;
  margin: 0;
}

.token-detail-symbol-pill {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.token-detail-submeta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #717886;
}

.meta-bullet {
  color: #475569;
}

.token-detail-address-btn {
  background: transparent;
  border: none;
  color: #717886;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}

.token-detail-address-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

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

.token-header-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.token-header-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

.token-header-action-btn.btn-starred {
  color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

.token-header-action-btn.btn-starred svg {
  fill: #f59e0b !important;
}

/* Action Popovers (Share & More Options) */
.detail-action-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(13, 19, 33, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 6px;
  min-width: 200px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: fadeIn 0.18s ease-out;
}

.detail-action-popover button,
.detail-action-popover a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.detail-action-popover button:hover,
.detail-action-popover a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.detail-action-popover svg {
  flex-shrink: 0;
  color: #94a3b8;
}

.detail-action-popover button:hover svg,
.detail-action-popover a:hover svg {
  color: #ffffff;
}

/* Trade Settings Popover */
.trade-settings-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(13, 19, 33, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px);
  border-radius: 16px;
  padding: 16px;
  width: 290px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeIn 0.18s ease-out;
}

.settings-popover-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.settings-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.settings-info-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 10px;
  cursor: help;
}

.slippage-presets-row {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-slip-preset {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 0;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-slip-preset:hover {
  color: #ffffff;
}

.btn-slip-preset.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.slip-custom-wrap {
  position: relative;
  width: 65px;
}

.slip-custom-wrap input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  padding: 5px 14px 5px 6px;
  color: #ffffff;
  font-size: 11.5px;
  font-family: var(--font-mono);
  outline: none;
  box-sizing: border-box;
  text-align: right;
}

.slip-custom-wrap .slip-percent-sign {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #64748b;
  pointer-events: none;
}

.deadline-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 6px 12px;
}

.deadline-input-wrap input {
  width: 50px;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.deadline-input-wrap span {
  font-size: 12px;
  color: #64748b;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}

.toggle-sub {
  font-size: 10.5px;
  color: #64748b;
}

/* Limit Order Config Block */
.limit-order-config-block {
  background: #0b111e;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
  margin-bottom: 2px;
  animation: fadeIn 0.2s ease-out;
}

.limit-config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.btn-limit-invert-rate {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #38bdf8;
  font-size: 14px;
  padding: 2px 7px;
  border-radius: 6px;
  cursor: pointer;
}

.limit-rate-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
}

.limit-rate-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-mono);
}

.limit-rate-symbol {
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
  margin-left: 8px;
}

.limit-quick-adjust-row {
  display: flex;
  gap: 6px;
}

.btn-limit-quick {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 5px 0;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-limit-quick:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn-limit-quick.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.limit-expiry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.limit-expiry-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.limit-expiry-pills {
  display: flex;
  gap: 4px;
}

.btn-expiry-pill {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 3px 7px;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-expiry-pill:hover {
  color: #ffffff;
}

.btn-expiry-pill.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Horizontal Divider separating header and main grid */
.token-detail-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 18px 0 28px;
}

/* Main Grid Layout: Desktop 2-Column Grid (Chart + Trade Card) */
.token-detail-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 32px;
  align-items: start;
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
}

/* Left Column: Price, Live Chart, Stats, About, Transactions */
.token-detail-left-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  min-width: 0;
  text-align: left;
}

/* Right Column: Sticky Swap Card on Desktop */
.token-detail-right-col {
  display: block;
  width: 390px;
  flex-shrink: 0;
}

/* Desktop Web Layout (min-width: 1025px): Show 2-Column Trade Card, Hide Bottom Floating Button */
@media (min-width: 1025px) {
  .token-detail-main-grid {
    grid-template-columns: minmax(0, 1fr) 390px !important;
    display: grid !important;
  }
  .token-detail-right-col {
    display: block !important;
  }
  .token-floating-action-dock {
    display: none !important;
  }
  .token-detail-view {
    padding-bottom: 60px !important;
  }
}

/* Tablet & Mobile Layout (max-width: 1024px): 1-Column, Hide Heavy Card, Show Sleek Floating Swap Pill */
@media (max-width: 1024px) {
  .token-detail-main-grid {
    grid-template-columns: 1fr !important;
    display: block !important;
  }
  .token-detail-right-col {
    display: none !important;
  }
  .token-floating-action-dock {
    display: flex !important;
  }
  .token-detail-view {
    padding-bottom: 110px !important;
  }
}

/* Embedded In-Chart Top-Left Price Box (Uniswap Exact Placement) */
.token-chart-embedded-price {
  position: absolute;
  top: 18px;
  left: 24px;
  z-index: 12;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Point 5: Exact 36px Price Font Size (-2px from 38px) with 60FPS Uniswap Tick Keyframes */
.token-chart-embedded-price .token-detail-price {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.8px;
  font-family: var(--font-mono);
  line-height: 1;
  transition: color 0.4s ease, transform 0.3s ease;
}

@keyframes priceTickUp {
  0% {
    color: #00f59b;
    text-shadow: 0 0 16px rgba(0, 245, 155, 0.45);
    transform: translateY(-1px);
  }
  100% {
    color: #ffffff;
    text-shadow: none;
    transform: translateY(0);
  }
}

@keyframes priceTickDown {
  0% {
    color: #ef4444;
    text-shadow: 0 0 16px rgba(239, 68, 68, 0.45);
    transform: translateY(1px);
  }
  100% {
    color: #ffffff;
    text-shadow: none;
    transform: translateY(0);
  }
}

.token-detail-price.tick-up {
  animation: priceTickUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.token-detail-price.tick-down {
  animation: priceTickDown 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.token-chart-embedded-price .token-detail-delta {
  font-size: 14.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.token-detail-delta.up {
  color: #10b981;
}

.token-detail-delta.down {
  color: #ef4444;
}

/* Hero Canvas Chart */
.token-chart-container {
  position: relative;
  width: 100%;
  height: 400px;
  background-color: rgba(8, 12, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

/* Uniswap-Grade Floating Trade CTA Button */
.token-floating-action-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2147483640;
  width: calc(100% - 32px);
  max-width: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  pointer-events: none;
  animation: dockSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dockSlideUp {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.btn-uniswap-floating-cta {
  pointer-events: auto;
  width: 100%;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #4c6ef5;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 32px rgba(76, 110, 245, 0.45), 0 4px 14px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-uniswap-floating-cta:hover {
  background: #3b5bdb;
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(76, 110, 245, 0.65), 0 6px 18px rgba(0, 0, 0, 0.6);
}

.btn-uniswap-floating-cta:active {
  transform: scale(0.98);
}

.btn-cta-circle-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #ffffff;
  flex-shrink: 0;
}

.btn-cta-text {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.token-hero-chart-canvas {
  width: 100%;
  height: 360px;
  display: block;
  cursor: crosshair;
}

/* Scrubbing Tooltip */
.chart-scrub-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(13, 19, 33, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -125%);
  z-index: 10;
  white-space: nowrap;
}

.scrub-tooltip-price {
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
}

.scrub-tooltip-time {
  color: #94a3b8;
  font-size: 11px;
}

/* Chart Axes - Extends All the Way Down to Bottom Timeline */
.chart-y-axis-labels {
  position: absolute;
  right: 14px;
  top: 72px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: #94a3b8;
  text-align: right;
  pointer-events: none;
}

.chart-x-axis-labels {
  position: absolute;
  left: 24px;
  right: 85px;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  font-family: var(--font-mono);
  pointer-events: none;
}

.chart-x-axis-labels .axis-bold {
  color: #94a3b8;
  font-weight: 700;
}

/* Chart Toolbar */
.token-chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.chart-timeframe-pills {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-time-pill {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-time-pill.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.chart-view-toggles {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chart-type-toggle-group,
.chart-metric-toggle-group {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-chart-type-icon {
  background: transparent;
  border: none;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  color: #94a3b8;
  transition: all 0.15s;
}

.btn-chart-type-icon.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-metric-pill {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: #94a3b8;
  transition: all 0.15s;
}

.btn-metric-pill.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Right Column: Uniswap Dedicated Trade Card */
.token-trade-card {
  position: sticky;
  top: 86px;
  background: rgba(13, 19, 33, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trade-card-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trade-card-mode-pills {
  display: flex;
  gap: 4px;
}

.btn-trade-mode-pill {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #717886;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-trade-mode-pill.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-trade-settings {
  background: transparent;
  border: none;
  font-size: 17px;
  color: #717886;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}

.btn-trade-settings:hover {
  color: #ffffff;
}

.trade-input-block {
  background: #090e18;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.trade-input-block:focus-within {
  border-color: rgba(0, 245, 155, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 245, 155, 0.15);
}

.trade-input-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #717886;
  font-weight: 500;
}

.trade-balance-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
}

.btn-balance-max {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 6px;
  cursor: pointer;
}

.trade-input-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trade-amount-field {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-mono);
}

.trade-amount-field::placeholder {
  color: #475569;
}

.btn-token-picker-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 6px 12px;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.btn-token-picker-pill:hover {
  background: rgba(255, 255, 255, 0.14);
}

.picker-token-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trade-input-usd {
  font-size: 13px;
  color: #717886;
  font-family: var(--font-mono);
}

.trade-invert-row {
  display: flex;
  justify-content: center;
  margin: -6px 0;
  z-index: 2;
}

.btn-trade-invert {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #0c111c;
  border: 2px solid #06080e;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.2s, color 0.15s;
}

.btn-trade-invert:hover {
  transform: rotate(180deg);
  color: #ffffff;
}

.trade-route-shield-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #717886;
  padding: 0 4px;
}

.shield-tag-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #00f59b;
  font-weight: 600;
}

.route-fee-text {
  color: #64748b;
}

.btn-detail-trade-action {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: #717886;
  cursor: not-allowed;
  transition: all 0.2s;
  text-align: center;
}

.btn-detail-trade-action.ready {
  background: linear-gradient(135deg, #00f59b, #00d684);
  color: #06080e;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 245, 155, 0.35);
}

.btn-detail-trade-action.ready:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 245, 155, 0.45);
}

.trade-disclaimer-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #717886;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 10px 12px;
}

.disclaimer-info-icon {
  color: #94a3b8;
  font-size: 13px;
  flex-shrink: 0;
}

/* Notice Banner */
.token-market-notice-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: #94a3b8;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.notice-info-icon {
  font-size: 16px;
  color: #94a3b8;
  flex-shrink: 0;
}

.notice-link {
  color: #38bdf8;
  text-decoration: underline;
}

/* Section Common Titles */
.token-detail-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  text-align: left;
}

.token-sec-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  text-align: left;
}

/* Stats Grid */
.token-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 40px;
  margin-top: 6px;
  width: 100%;
  text-align: left;
}

.stat-box-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 6px;
}

.stat-box-label {
  font-size: 13px;
  color: #717886;
  font-weight: 500;
  text-align: left;
}

.stat-box-val {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-mono);
  letter-spacing: -0.3px;
  text-align: left;
}

/* About Section */
.token-about-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

.token-links-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.token-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.token-link-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.token-link-pill .pill-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #94a3b8;
  transition: color 0.15s;
}

.token-link-pill:hover .pill-icon-svg {
  color: #ffffff;
}

.token-link-pill .external-arrow-svg {
  color: #64748b;
  margin-left: 2px;
  transition: transform 0.2s ease, color 0.15s ease;
}

.token-link-pill:hover .external-arrow-svg {
  color: #ffffff;
  transform: translate(1px, -1px);
}

/* Transactions & Pools Section */
.tx-pools-subnav-row {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.btn-txpool-tab {
  background: transparent;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: #717886;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
  transition: color 0.15s;
}

.btn-txpool-tab:hover {
  color: #ffffff;
}

.btn-txpool-tab.active {
  color: #ffffff;
}

.btn-txpool-tab.active::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 0;
  right: 0;
  height: 2px;
  background: #00f59b;
  border-radius: 2px;
}

.token-tx-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.token-tx-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
}

.token-tx-table th {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-align: left;
  padding: 10px 14px;
}

.token-tx-table td {
  font-size: 13.5px;
  font-weight: 500;
  color: #cbd5e1;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.015);
  border-radius: 8px;
  font-family: var(--font-mono);
}

.token-tx-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

.tx-type-buy {
  color: #10b981;
  font-weight: 700;
}

.tx-type-sell {
  color: #ef4444;
  font-weight: 700;
}

/* Responsiveness for Token Detail & Mobile DEX App */
@media (max-width: 1024px) {
  .token-detail-main-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .token-detail-left-col {
    display: contents;
  }
  .token-chart-container {
    order: 1;
    height: 300px;
  }
  .token-hero-chart-canvas {
    height: 255px;
  }
  .token-chart-toolbar {
    order: 2;
  }
  .token-detail-right-col {
    order: 3;
    margin: 8px 0 16px 0;
  }
  .token-market-notice-banner {
    order: 4;
  }
  .stats-section {
    order: 5;
  }
  .token-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-section {
    order: 6;
  }
  .tx-pools-section {
    order: 7;
  }
}

@media (max-width: 640px) {
  /* Hide heavy multi-column desktop footer on mobile to keep app interface clean */
  .site-footer {
    display: none !important;
  }
  .token-detail-view {
    padding: 14px 12px 90px;
  }
  .token-detail-name {
    font-size: 20px;
  }
  .token-detail-price {
    font-size: 28px;
  }
  .token-detail-price-box {
    flex-wrap: wrap;
    gap: 12px;
  }
  .token-chart-container {
    height: 260px;
  }
  .token-hero-chart-canvas {
    height: 215px;
  }
  .token-chart-toolbar {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
  }
  .chart-timeframe-pills {
    gap: 4px;
  }
  .btn-time-pill {
    padding: 4px 8px;
    font-size: 11px;
  }
  .token-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .chart-x-axis-labels {
    font-size: 9px;
  }
}

/* ══ DEX SITE FOOTER & SOCIAL MEDIA STYLING ═════════════════════════════ */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 50% 0%, rgba(13, 20, 36, 0.75) 0%, #04060a 80%);
  padding: 48px 24px 96px 24px;
  position: relative;
  z-index: 10;
  margin-top: 60px;
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

/* Left side: Solo Logo Brand */
.footer-logo-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  transition: transform 0.25s ease;
}

.footer-logo-brand:hover {
  transform: scale(1.05);
}

.footer-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(0, 245, 155, 0.5));
  transition: filter 0.3s ease;
}

.footer-logo-brand:hover .footer-logo-img {
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.75));
}

.footer-brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #ffffff;
}

/* Right side: Icon-Only Luxury Social Buttons */
.footer-social-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8 !important;
  text-decoration: none !important;
  position: relative;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.footer-icon-btn svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.footer-icon-btn:hover {
  transform: translateY(-3px) scale(1.06);
}

/* Individual Brand Glow States */
.footer-icon-btn.x-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
}

.footer-icon-btn.fb-btn:hover {
  color: #1877f2 !important;
  background: rgba(24, 119, 242, 0.12);
  border-color: rgba(24, 119, 242, 0.55);
  box-shadow: 0 0 20px rgba(24, 119, 242, 0.45);
}

.footer-icon-btn.tg-bot-btn:hover {
  color: #00f59b !important;
  background: rgba(0, 245, 155, 0.12);
  border-color: rgba(0, 245, 155, 0.55);
  box-shadow: 0 0 20px rgba(0, 245, 155, 0.45);
}

.footer-icon-btn.tg-grp-btn:hover {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.45);
}

.footer-icon-btn.discord-btn:hover {
  color: #818cf8 !important;
  background: rgba(129, 140, 248, 0.14);
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 0 20px rgba(129, 140, 248, 0.45);
}

/* Tooltip on hover */
.footer-icon-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #090e1a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  z-index: 20;
}

.footer-icon-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Divider Line */
.footer-divider {
  max-width: 1200px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.08) 75%, transparent 100%);
  margin: 32px auto 24px auto;
}

/* Bottom Row */
.footer-bottom-row {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.footer-links-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links-row a {
  color: #94a3b8 !important;
  font-size: 12.5px;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.footer-links-row a:hover {
  color: #00f59b !important;
}

@media (max-width: 768px) {
  .site-footer {
    padding-bottom: 96px;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-bottom-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-links-row {
    justify-content: center;
  }
}

.btn-more-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(0, 245, 155, 0.45) !important;
  box-shadow: 0 4px 14px rgba(0, 245, 155, 0.12);
  transform: translateY(-1px);
}

/* ── Uniswap-Grade Nav Network Selector ── */
.nav-network-container {
  position: relative;
  display: inline-block;
}

.btn-nav-network-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9999px;
  padding: 6px 13px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  height: 38px;
}

.btn-nav-network-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.net-pill-icon {
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.net-pill-icon .net-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.net-pill-label {
  font-weight: 600;
  white-space: nowrap;
}

.net-pill-chevron {
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.btn-nav-network-pill[aria-expanded="true"] .net-pill-chevron {
  transform: rotate(180deg);
}

.nav-network-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #13151b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 10px;
  width: 250px;
  max-height: 420px;
  z-index: 1000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeInDrop 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-network-dropdown .dropdown-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 7px 12px;
  margin-bottom: 4px;
}

.nav-network-dropdown .dropdown-search-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 12.5px;
  width: 100%;
  outline: none;
}

.nav-network-dropdown .dropdown-search-input::placeholder {
  color: #64748b;
}

.nav-network-dropdown .network-items-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  max-height: 330px;
  padding-right: 2px;
}

.nav-network-dropdown .dropdown-item {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
  width: 100%;
}

.nav-network-dropdown .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.nav-network-dropdown .dropdown-item.active {
  color: #ffffff;
  font-weight: 600;
}

.nav-network-dropdown .net-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Pool Fee Cards & Price Step Buttons ── */
.pool-fee-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.pool-fee-card:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}
.pool-fee-card.active {
  background: rgba(0, 245, 155, 0.12) !important;
  border-color: #00f59b !important;
  box-shadow: 0 0 16px rgba(0, 245, 155, 0.15);
}

.pool-step-btn {
  transition: all 0.15s ease;
}
.pool-step-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}
.pool-step-btn:active {
  transform: scale(0.92);
}

/* ── Power Button Floating Context Menu (Screenshot 4) ── */
.popover-power-wrap {
  position: relative;
  display: inline-block;
}

.power-context-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #12131a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 6px;
  min-width: 220px;
  z-index: 1200;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  display: none;
  flex-direction: column;
  gap: 2px;
  animation: fadeInDrop 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Invisible bridge so mouse pointer never leaves hover zone between button and menu */
.power-context-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -20px;
  right: -20px;
  height: 18px;
  background: transparent;
  pointer-events: auto;
}

.power-context-menu.active {
  display: flex !important;
}

.power-menu-item {
  background: none;
  border: none;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
}

.power-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.power-menu-item.disconnect-item {
  color: #f87171;
}

.power-menu-item.disconnect-item:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.power-menu-icon {
  font-size: 14px;
  width: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

/* ── Uniswap-Grade Settings Drawer (Screenshot 3) ── */
.settings-drawer-card {
  max-width: 420px;
  background: #111218 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  padding: 22px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

.settings-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.settings-back-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.settings-back-btn:hover {
  color: #ffffff;
  transform: translateX(-2px);
}

.settings-drawer-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.settings-group {
  margin-bottom: 18px;
}

.settings-group-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: capitalize;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 4px;
  color: #f1f5f9;
  font-size: 13.5px;
  font-weight: 500;
}

.settings-row.clickable {
  cursor: pointer;
  border-radius: 10px;
  padding: 9px 8px;
  margin: 0 -4px;
  transition: background 0.15s ease;
}

.settings-row.clickable:hover {
  background: rgba(255, 255, 255, 0.05);
}

.settings-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-row-icon {
  font-size: 15px;
  width: 18px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-row-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 13px;
}

.settings-chevron {
  font-size: 16px;
  line-height: 1;
}

.settings-info-tooltip {
  font-size: 12px;
  color: #64748b;
  cursor: help;
}

/* Theme Pill Switcher */
.theme-pill-selector {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.theme-opt-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-opt-btn:hover {
  color: #ffffff;
}

.theme-opt-btn.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* Uniswap iOS-Style Toggle Switch */
.uniswap-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.uniswap-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2b2f3d;
  transition: .25s ease;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s ease;
  border-radius: 50%;
}

.uniswap-toggle-switch input:checked + .toggle-slider.pink {
  background-color: #ff007a;
}

.uniswap-toggle-switch input:checked + .toggle-slider.gray {
  background-color: #00f59b;
}

.uniswap-toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* ── Settings Sub-Drawers: Currency, Language & App Data ── */
.settings-picker-card {
  max-width: 420px;
  background: #111218 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  padding: 22px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

.settings-picker-search-wrap {
  margin-bottom: 14px;
}

.settings-picker-search {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}

.settings-picker-search:focus {
  border-color: #00f59b;
}

.settings-picker-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.settings-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
}

.settings-picker-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.settings-picker-item.active {
  background: rgba(0, 245, 155, 0.08);
  color: #00f59b;
  font-weight: 600;
}

.settings-picker-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-picker-item-symbol {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.settings-picker-check {
  color: #00f59b;
  font-weight: 700;
  font-size: 14px;
}

.app-data-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Light Theme Tokens & Adjustments */
body.light-theme {
  background: #f8fafc !important;
  color: #0f172a !important;
}

body.light-theme .app-header {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body.light-theme .nav-tab-btn {
  color: #64748b !important;
}

body.light-theme .nav-tab-btn.active {
  color: #0f172a !important;
  background: #e2e8f0 !important;
}

body.light-theme .swap-card,
body.light-theme .portfolio-card,
body.light-theme .pool-card,
body.light-theme .settings-drawer-card,
body.light-theme .settings-picker-card,
body.light-theme .modal-card,
body.light-theme .wallet-popover {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .settings-drawer-title,
body.light-theme .settings-row span,
body.light-theme .settings-group-label,
body.light-theme .settings-picker-item {
  color: #0f172a !important;
}

body.light-theme .settings-row.clickable:hover,
body.light-theme .settings-picker-item:hover {
  background: #f1f5f9 !important;
}

body.light-theme .theme-pill-selector {
  background: #e2e8f0 !important;
}

body.light-theme .theme-opt-btn {
  color: #64748b !important;
}

body.light-theme .theme-opt-btn.active {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .swap-input-container {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body.light-theme .swap-input {
  color: #0f172a !important;
}

/* ── Active User Liquidity Position Cards ── */
.user-position-card {
  background: #111218;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.user-position-card:hover {
  border-color: rgba(0, 245, 155, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.user-pos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-pos-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
}

.user-pos-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 245, 155, 0.12);
  color: #00f59b;
  border: 1px solid rgba(0, 245, 155, 0.25);
}

.user-pos-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 10px 12px;
}

.user-pos-stat-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.user-pos-stat-lbl {
  font-size: 11px;
  color: #94a3b8;
}

/* Mobile Safe-Area Bottom Padding */
@media (max-width: 768px) {
  .dex-main-container,
  .app-main,
  #tabTrade,
  #tabExplore,
  #tabPool,
  #tabPortfolio,
  #tabTokenDetail {
    padding-bottom: calc(85px + env(safe-area-inset-bottom)) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   UNISWAP-GRADE TOKEN NETWORK BADGES & REVIEW SWAP DRAWER MODAL
   ═══════════════════════════════════════════════════════════════════════ */

/* 1. Token Icon with Chained Network Badge */
.token-icon-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.token-network-mini-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #06080e;
  border: 1.5px solid #06080e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.token-network-mini-badge svg {
  width: 9px;
  height: 9px;
  display: block;
}

/* Network Mini Badges */
.net-mini-badge {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7.5px;
  font-weight: 800;
  color: #ffffff;
}

.net-mini-badge.badge-arb { background: #28a0f0; }
.net-mini-badge.badge-eth { background: #627eea; }
.net-mini-badge.badge-base { background: #0052ff; }
.net-mini-badge.badge-op { background: #ff0420; font-size: 6.5px; }
.net-mini-badge.badge-poly { background: #8247e5; }
.net-mini-badge.badge-bnb { background: #f0b90b; color: #1e2026; }
.net-mini-badge.badge-avax { background: #e84142; }
.net-mini-badge.badge-default { background: #1e293b; font-size: 8px; }

/* 2. Review Swap Modal / Drawer */
.review-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.review-modal-card {
  width: 100%;
  max-width: 440px;
  background: #0c1019;
  background: linear-gradient(180deg, #0e1422 0%, #090d15 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 245, 155, 0.08);
  padding: 16px 22px 22px;
  position: relative;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-modal-overlay.active .review-modal-card {
  transform: translateY(0) scale(1);
}

.review-drawer-handle {
  width: 38px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  margin: 0 auto 12px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.review-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

.review-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.review-close-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* Swap Rows */
.review-swap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 16px 18px;
  transition: border-color 0.2s ease;
}

.review-swap-row:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.review-row-text {
  text-align: left;
}

.review-row-amount {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.review-row-amount.emerald-glow {
  color: #00f59b;
  text-shadow: 0 0 20px rgba(0, 245, 155, 0.3);
}

.review-row-usd {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
  font-weight: 500;
}

.review-token-avatar-wrap {
  position: relative;
  display: inline-flex;
}

.review-token-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.review-token-circle svg {
  width: 100%;
  height: 100%;
  display: block;
}

.token-icon-main {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.token-icon-main svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Universal Mini Network Badge (Uniswap Standard) */
.net-mini-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

.net-mini-badge svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  display: block !important;
}

#reviewNetworkCost {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

#reviewNetCostBadge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

#reviewNetCostBadge .net-mini-badge,
#reviewNetCostBadge svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  display: block !important;
}

.review-net-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50%;
  background: #090d15;
  border: 2px solid #090d15;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  overflow: hidden !important;
  z-index: 2;
}

.review-net-badge .net-mini-badge,
.review-net-badge svg {
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  min-height: 13px !important;
  max-width: 13px !important;
  max-height: 13px !important;
  display: block !important;
}

/* Arrow Divider & Live Quote */
.review-arrow-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
  height: 32px;
}

.review-arrow-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111726;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.review-live-quote-pill {
  position: absolute;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  padding: 4px 10px;
}

.live-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00f59b;
  box-shadow: 0 0 8px #00f59b;
  animation: liveQuotePulse 1.8s infinite;
}

@keyframes liveQuotePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Details Box */
.review-details-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 12px 16px;
  margin: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-detail-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.review-detail-line .r-label {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.review-detail-line .r-info-icon {
  font-size: 11px;
  opacity: 0.6;
  cursor: help;
}

.review-detail-line .r-value {
  color: #ffffff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.review-detail-line .highlight-free {
  color: #00f59b;
  font-weight: 700;
}

.review-detail-line .val-shield-save {
  color: #38bdf8;
  font-weight: 700;
}

.review-detail-line .r-route-pill {
  font-size: 11px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Primary Action Button */
.review-confirm-btn {
  width: 100%;
  padding: 16px 20px;
  border-radius: 18px;
  background: #00f59b;
  background: linear-gradient(135deg, #00f59b 0%, #00d684 100%);
  color: #06080e;
  font-size: 17px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 245, 155, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.2px;
}

.review-confirm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 245, 155, 0.42);
  filter: brightness(1.05);
}

.review-confirm-btn:active {
  transform: translateY(1px);
}

.review-confirm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Mobile Bottom-Sheet Positioning */
@media (max-width: 600px) {
  .review-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .review-modal-card {
    max-width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
    padding: 16px 20px calc(24px + env(safe-area-inset-bottom));
  }
}








