/*
  Canonical ZerpSwap header.
  Active pages should share these selectors instead of carrying page-specific
  header/tab/search/wallet variants.
*/
body.mode-tokens .app,
body.embed-draft.zerps-trade-shell .app,
body.wallet-radar-page .app{
  width:100% !important;
  max-width:none !important;
  margin:0 auto !important;
  padding:10px 10px 18px !important;
  box-sizing:border-box !important;
}

body.mode-tokens .embed-meta,
body.embed-draft.zerps-trade-shell .embed-meta,
body.wallet-radar-page .embed-meta{
  width:100% !important;
  min-height:86px !important;
  margin:0 !important;
  padding:10px 2px 8px !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  gap:14px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}

body.mode-tokens .embed-brand,
body.embed-draft.zerps-trade-shell .embed-brand,
body.wallet-radar-page .embed-brand{
  min-width:0 !important;
  flex:0 0 auto !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:14px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  color:#fff !important;
  text-decoration:none !important;
  box-shadow:none !important;
}

body.mode-tokens .embed-logo-wrap,
body.embed-draft.zerps-trade-shell .embed-logo-wrap,
body.wallet-radar-page .embed-logo-wrap{
  width:62px !important;
  height:62px !important;
  flex:0 0 62px !important;
  border:0 !important;
  border-radius:18px !important;
  background:transparent !important;
  display:grid !important;
  place-items:center !important;
  box-shadow:none !important;
  overflow:hidden !important;
}

body.mode-tokens .embed-logo,
body.embed-draft.zerps-trade-shell .embed-logo,
body.wallet-radar-page .embed-logo{
  width:62px !important;
  height:62px !important;
  display:block !important;
  object-fit:contain !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}

body.mode-tokens .embed-brand-copy,
body.embed-draft.zerps-trade-shell .embed-brand-copy,
body.wallet-radar-page .embed-brand-copy{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  gap:5px !important;
  min-width:0 !important;
}

body.mode-tokens .embed-brand-name,
body.embed-draft.zerps-trade-shell .embed-brand-name,
body.wallet-radar-page .embed-brand-name{
  font-family:"Arial Black", Impact, system-ui, sans-serif !important;
  font-size:clamp(36px, 2.6vw, 48px) !important;
  line-height:1 !important;
  letter-spacing:.045em !important;
  text-transform:uppercase !important;
  color:#fff !important;
  text-shadow:0 2px 0 rgba(0,0,0,.35) !important;
  white-space:nowrap !important;
}

body.mode-tokens .site-slogan,
body.embed-draft.zerps-trade-shell .site-slogan,
body.wallet-radar-page .site-slogan{
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
  width:max-content !important;
  max-width:100% !important;
  padding:5px 10px 5px 24px !important;
  border:1px solid rgba(85,245,194,.38) !important;
  border-radius:999px !important;
  background:
    radial-gradient(circle at 12% 50%, rgba(85,245,194,.26), transparent 28%),
    linear-gradient(90deg, rgba(85,245,194,.14), rgba(47,211,255,.08) 48%, rgba(148,73,255,.12)) !important;
  color:#dfffee !important;
  font-family:"Arial Black", Impact, system-ui, sans-serif !important;
  font-size:clamp(9px, .78vw, 12px) !important;
  line-height:1 !important;
  font-weight:1000 !important;
  letter-spacing:.105em !important;
  text-transform:uppercase !important;
  text-shadow:0 0 14px rgba(85,245,194,.38) !important;
  box-shadow:0 0 22px rgba(85,245,194,.11), inset 0 1px 0 rgba(255,255,255,.08) !important;
  white-space:nowrap !important;
}

body.mode-tokens .site-slogan::before,
body.embed-draft.zerps-trade-shell .site-slogan::before,
body.wallet-radar-page .site-slogan::before{
  content:"" !important;
  position:absolute !important;
  left:9px !important;
  top:50% !important;
  width:7px !important;
  height:7px !important;
  border-radius:999px !important;
  background:#55f5c2 !important;
  transform:translateY(-50%) !important;
  box-shadow:0 0 12px #55f5c2, 0 0 24px rgba(47,211,255,.45) !important;
}

body.mode-tokens .tabbar,
body.embed-draft.zerps-trade-shell .tabbar,
body.embed-draft.zerps-trade-shell .embed-meta .tabbar,
body.wallet-radar-page .tabbar{
  min-width:0 !important;
  flex:1 1 auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible !important;
}

body.mode-tokens .tab-btn,
body.embed-draft.zerps-trade-shell .tab-btn,
body.embed-draft.zerps-trade-shell .embed-meta .tab-btn,
body.wallet-radar-page .tab-btn{
  flex:0 0 auto !important;
  min-width:132px !important;
  min-height:0 !important;
  height:auto !important;
  padding:10px 16px !important;
  border-radius:999px !important;
  border:1px solid rgba(47,211,255,.30) !important;
  background:#0a1526 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05) !important;
  color:#d7e9fb !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-family:"Arial Black", Impact, system-ui, sans-serif !important;
  font-size:14px !important;
  line-height:1.15 !important;
  font-weight:900 !important;
  letter-spacing:.045em !important;
  text-transform:uppercase !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}

body.mode-tokens .tab-btn.active,
body.embed-draft.zerps-trade-shell .tab-btn.active,
body.embed-draft.zerps-trade-shell .embed-meta .tab-btn.active,
body.wallet-radar-page .tab-btn.active{
  border-color:rgba(55,215,255,.85) !important;
  background:linear-gradient(180deg, rgba(30,120,155,.82), rgba(18,54,95,.92)) !important;
  color:#ffffff !important;
  box-shadow:0 0 18px rgba(47,211,255,.28), inset 0 1px 0 rgba(255,255,255,.12) !important;
}

body.mode-tokens .header-controls,
body.embed-draft.zerps-trade-shell .header-controls,
body.embed-draft.zerps-trade-shell .embed-meta .header-controls,
body.wallet-radar-page .header-controls{
  min-width:0 !important;
  flex:0 1 auto !important;
  margin-left:auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

body.mode-tokens .header-search-wrap,
body.embed-draft.zerps-trade-shell .header-search-wrap,
body.embed-draft.zerps-trade-shell.swap-only-page .header-search-wrap,
body.wallet-radar-page .header-search-wrap{
  min-width:320px !important;
  width:min(32vw, 420px) !important;
  max-width:420px !important;
  height:40px !important;
  display:flex !important;
  align-items:center !important;
  border:1px solid rgba(47,211,255,.32) !important;
  border-radius:14px !important;
  background:#061325 !important;
  overflow:hidden !important;
  box-shadow:none !important;
}

body.mode-tokens .header-search-input,
body.embed-draft.zerps-trade-shell .header-search-input,
body.wallet-radar-page .header-search-input{
  min-width:0 !important;
  flex:1 1 auto !important;
  height:100% !important;
  padding:0 14px !important;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  color:#e8f6ff !important;
  font-family:system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size:14px !important;
  font-weight:700 !important;
}

body.mode-tokens .header-search-input::placeholder,
body.embed-draft.zerps-trade-shell .header-search-input::placeholder,
body.wallet-radar-page .header-search-input::placeholder{
  color:#91abd2 !important;
}

body.mode-tokens .header-search-btn,
body.embed-draft.zerps-trade-shell .header-search-btn,
body.wallet-radar-page .header-search-btn{
  width:44px !important;
  height:40px !important;
  min-width:44px !important;
  border:0 !important;
  border-left:1px solid rgba(47,211,255,.25) !important;
  border-radius:0 !important;
  background:#0b1d39 !important;
  color:#d7e9fb !important;
  display:grid !important;
  place-items:center !important;
  cursor:pointer !important;
}

body.mode-tokens .header-search-btn svg,
body.embed-draft.zerps-trade-shell .header-search-btn svg,
body.wallet-radar-page .header-search-btn svg{
  width:20px !important;
  height:20px !important;
}

body.mode-tokens #headerWalletSlot,
body.embed-draft.zerps-trade-shell #headerWalletSlot,
body.wallet-radar-page #headerWalletSlot{
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
}

body.mode-tokens .top-wallet-chip,
body.mode-tokens .top-wallet-chip.disconnected,
body.embed-draft.zerps-trade-shell #headerWalletSlot #topWalletChip,
body.embed-draft.zerps-trade-shell #headerWalletSlot #topWalletChip.disconnected,
body.embed-draft.zerps-trade-shell .top-wallet-chip,
body.embed-draft.zerps-trade-shell .top-wallet-chip.disconnected,
body.embed-draft.zerps-trade-shell .embed-meta > #topWalletChip,
body.embed-draft.zerps-trade-shell .embed-meta > #topWalletChip.disconnected,
body.wallet-radar-page .top-wallet-chip,
body.wallet-radar-page .top-wallet-chip.disconnected{
  position:relative !important;
  min-height:40px !important;
  height:40px !important;
  min-width:0 !important;
  padding:0 12px !important;
  border-radius:12px !important;
  border:1px solid rgba(47,211,255,.32) !important;
  background:#0b182e !important;
  color:#d7e9fb !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  text-decoration:none !important;
  font-family:system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size:13px !important;
  font-weight:850 !important;
  letter-spacing:.012em !important;
  line-height:1.1 !important;
  box-shadow:none !important;
  white-space:nowrap !important;
  animation:none !important;
  transform:none !important;
}

body.mode-tokens .top-wallet-chip::before,
body.embed-draft.zerps-trade-shell .top-wallet-chip::before,
body.wallet-radar-page .top-wallet-chip::before{
  display:none !important;
  content:none !important;
}

body.mode-tokens .top-wallet-chip .wallet-ico,
body.embed-draft.zerps-trade-shell .top-wallet-chip .wallet-ico,
body.wallet-radar-page .top-wallet-chip .wallet-ico{
  width:19px !important;
  height:19px !important;
  min-width:19px !important;
  display:grid !important;
  place-items:center !important;
  filter:none !important;
}

body.mode-tokens .top-wallet-chip .wallet-ico svg,
body.embed-draft.zerps-trade-shell .top-wallet-chip .wallet-ico svg,
body.wallet-radar-page .top-wallet-chip .wallet-ico svg{
  width:19px !important;
  height:19px !important;
  color:#d7e9fb !important;
}

body.mode-tokens .top-wallet-chip .dot,
body.embed-draft.zerps-trade-shell .top-wallet-chip .dot,
body.wallet-radar-page .top-wallet-chip .dot{
  width:8px !important;
  height:8px !important;
  min-width:8px !important;
  border-radius:999px !important;
  background:#34d399 !important;
  box-shadow:0 0 8px rgba(52,211,153,.58) !important;
}

body.mode-tokens .top-wallet-chip:not(.disconnected) .dot,
body.embed-draft.zerps-trade-shell .top-wallet-chip:not(.disconnected) .dot,
body.wallet-radar-page .top-wallet-chip:not(.disconnected) .dot{
  background:#67e8f9 !important;
  box-shadow:0 0 8px rgba(103,232,249,.65) !important;
}

body.mode-tokens .top-wallet-chip #topWalletChipText,
body.mode-tokens .top-wallet-chip span:not(.wallet-ico):not(.dot):not(.chev),
body.embed-draft.zerps-trade-shell .top-wallet-chip #topWalletChipText,
body.wallet-radar-page .top-wallet-chip #topWalletChipText{
  color:#e6f4ff !important;
  opacity:1 !important;
  font-family:system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size:13px !important;
  font-weight:850 !important;
  line-height:1.1 !important;
}

body.mode-tokens .top-wallet-chip .chev,
body.embed-draft.zerps-trade-shell .top-wallet-chip .chev,
body.wallet-radar-page .top-wallet-chip .chev{
  color:#b9c8dd !important;
  font-size:11px !important;
  line-height:1 !important;
  opacity:.9 !important;
}

@media (max-width:1500px){
  body.mode-tokens .embed-brand,
  body.embed-draft.zerps-trade-shell .embed-brand,
  body.wallet-radar-page .embed-brand{
    gap:12px !important;
  }

  body.mode-tokens .embed-logo-wrap,
  body.embed-draft.zerps-trade-shell .embed-logo-wrap,
  body.wallet-radar-page .embed-logo-wrap{
    width:54px !important;
    height:54px !important;
    flex-basis:54px !important;
  }

  body.mode-tokens .embed-logo,
  body.embed-draft.zerps-trade-shell .embed-logo,
  body.wallet-radar-page .embed-logo{
    width:54px !important;
    height:54px !important;
  }

  body.mode-tokens .embed-brand-name,
  body.embed-draft.zerps-trade-shell .embed-brand-name,
  body.wallet-radar-page .embed-brand-name{
    font-size:34px !important;
  }

  body.mode-tokens .tab-btn,
  body.embed-draft.zerps-trade-shell .tab-btn,
  body.embed-draft.zerps-trade-shell .embed-meta .tab-btn,
  body.wallet-radar-page .tab-btn{
    flex:0 0 auto !important;
    min-width:112px !important;
    padding:10px 13px !important;
    font-size:13px !important;
  }

  body.mode-tokens .header-search-wrap,
  body.embed-draft.zerps-trade-shell .header-search-wrap,
  body.embed-draft.zerps-trade-shell.swap-only-page .header-search-wrap,
  body.wallet-radar-page .header-search-wrap{
    min-width:260px !important;
    width:min(28vw, 340px) !important;
  }

  body.mode-tokens .top-wallet-chip,
  body.embed-draft.zerps-trade-shell .top-wallet-chip,
  body.wallet-radar-page .top-wallet-chip{
    padding:0 10px !important;
    gap:8px !important;
    font-size:12px !important;
  }
}

@media (max-width:1180px){
  body.mode-tokens .embed-meta,
  body.embed-draft.zerps-trade-shell .embed-meta,
  body.wallet-radar-page .embed-meta{
    flex-direction:row !important;
    flex-wrap:wrap !important;
    min-height:0 !important;
  }

  body.mode-tokens .tabbar,
  body.embed-draft.zerps-trade-shell .tabbar,
  body.embed-draft.zerps-trade-shell .embed-meta .tabbar,
  body.wallet-radar-page .tabbar{
    order:3 !important;
    flex-basis:100% !important;
    justify-content:flex-start !important;
    overflow-x:auto !important;
    padding-bottom:2px !important;
    scrollbar-width:none !important;
  }

  body.mode-tokens .tabbar::-webkit-scrollbar,
  body.embed-draft.zerps-trade-shell .tabbar::-webkit-scrollbar,
  body.wallet-radar-page .tabbar::-webkit-scrollbar{
    display:none !important;
  }

  body.mode-tokens .header-controls,
  body.embed-draft.zerps-trade-shell .header-controls,
  body.embed-draft.zerps-trade-shell .embed-meta .header-controls,
  body.wallet-radar-page .header-controls{
    order:2 !important;
    flex:1 1 auto !important;
  }
}

@media (max-width:760px){
  body.mode-tokens .app,
  body.embed-draft.zerps-trade-shell .app,
  body.wallet-radar-page .app{
    padding:6px 8px 14px !important;
  }

  body.mode-tokens .embed-meta,
  body.embed-draft.zerps-trade-shell .embed-meta,
  body.wallet-radar-page .embed-meta{
    gap:7px !important;
    padding:6px 0 8px !important;
    align-items:center !important;
  }

  body.mode-tokens .embed-logo-wrap,
  body.embed-draft.zerps-trade-shell .embed-logo-wrap,
  body.wallet-radar-page .embed-logo-wrap{
    width:40px !important;
    height:40px !important;
    flex-basis:40px !important;
    border-radius:14px !important;
  }

  body.mode-tokens .embed-logo,
  body.embed-draft.zerps-trade-shell .embed-logo,
  body.wallet-radar-page .embed-logo{
    width:40px !important;
    height:40px !important;
  }

  body.mode-tokens .embed-brand-name,
  body.embed-draft.zerps-trade-shell .embed-brand-name,
  body.wallet-radar-page .embed-brand-name{
    font-size:24px !important;
  }

  body.mode-tokens .site-slogan,
  body.embed-draft.zerps-trade-shell .site-slogan,
  body.wallet-radar-page .site-slogan{
    max-width:min(72vw, 330px) !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    font-size:8px !important;
    padding:3px 7px 3px 18px !important;
    letter-spacing:.055em !important;
  }

  body.mode-tokens .site-slogan::before,
  body.embed-draft.zerps-trade-shell .site-slogan::before,
  body.wallet-radar-page .site-slogan::before{
    left:8px !important;
    width:6px !important;
    height:6px !important;
  }

  body.mode-tokens .tab-btn,
  body.embed-draft.zerps-trade-shell .tab-btn,
  body.embed-draft.zerps-trade-shell .embed-meta .tab-btn,
  body.wallet-radar-page .tab-btn{
    min-width:94px !important;
    padding:7px 10px !important;
    font-size:11px !important;
    border-radius:14px !important;
  }

  body.mode-tokens .header-controls,
  body.embed-draft.zerps-trade-shell .header-controls,
  body.embed-draft.zerps-trade-shell .embed-meta .header-controls,
  body.wallet-radar-page .header-controls{
    width:100% !important;
    flex-basis:100% !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:6px !important;
  }

  body.mode-tokens .header-search-wrap,
  body.embed-draft.zerps-trade-shell .header-search-wrap,
  body.embed-draft.zerps-trade-shell.swap-only-page .header-search-wrap,
  body.wallet-radar-page .header-search-wrap{
    min-width:0 !important;
    width:100% !important;
    max-width:none !important;
    height:38px !important;
    border-radius:13px !important;
  }

  body.mode-tokens .header-search-btn,
  body.embed-draft.zerps-trade-shell .header-search-btn,
  body.wallet-radar-page .header-search-btn{
    height:38px !important;
    width:42px !important;
    min-width:42px !important;
  }

  body.mode-tokens #headerWalletSlot,
  body.embed-draft.zerps-trade-shell #headerWalletSlot,
  body.wallet-radar-page #headerWalletSlot{
    width:100% !important;
  }

  body.mode-tokens .top-wallet-chip,
  body.embed-draft.zerps-trade-shell .top-wallet-chip,
  body.wallet-radar-page .top-wallet-chip{
    width:100% !important;
    min-height:38px !important;
    height:38px !important;
    border-radius:13px !important;
    padding:0 12px !important;
  }
}
