/* DBK Price Monitor — compact layout aligned with pumpfun_bundle */

:root {
  --section-gap: 0.75rem;
  --dbk-scroll-thumb: #3a3a3a;
  --dbk-scroll-thumb-hover: #525252;
}

body {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  background: #0a0a0a;
  color: #e5e7eb;
}

/* Slim dark scrollbars (Firefox + Chromium) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--dbk-scroll-thumb) transparent;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--dbk-scroll-thumb);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--dbk-scroll-thumb-hover);
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

.app-container {
  position: fixed;
  inset: 0;
  padding: 0;
  background: #0a0a0a;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
}

.dbk-workspace {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 1rem 0;
  overflow: hidden;
}

.dbk-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: stretch;
  gap: var(--section-gap);
}

.dbk-left {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.dbk-main-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 0.75rem;
}

.dbk-layout {
  display: block;
}

.app-header {
  margin-bottom: var(--section-gap);
  text-align: left;
  padding: 0.55rem 0;
  border-bottom: 1px solid #2a2a2a;
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  min-width: 0;
}

.app-header-brand {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 11.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-right: 1rem;
  border-right: 1px solid #2a2a2a;
  align-self: stretch;
}

.app-brand-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  text-decoration: none;
  line-height: 0;
}

.app-brand-logo {
  display: block;
  height: 1.75rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.app-brand-social {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 6px;
  color: #c4b5fd;
  background: #1a1428;
  border: 1px solid #7c3aed;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.15);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.app-brand-social i {
  font-size: 0.95rem;
  line-height: 1;
}

.app-brand-social:hover {
  color: #ddd6fe;
  border-color: #a78bfa;
  background: #24183a;
}

.app-title {
  color: #9945ff;
  margin: 0;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.app-header .text-muted {
  color: #8b8b95 !important;
  font-size: 0.72rem;
  white-space: nowrap;
}

.app-header-token {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.app-header-token .dbk-token-controls {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex-wrap: nowrap;
  gap: 0.4rem;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 0.3rem 0.4rem;
}

.dbk-token-field-label {
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b8b95;
  padding: 0 0.15rem 0 0.25rem;
  user-select: none;
  white-space: nowrap;
}

.app-header-token .dbk-token-controls .form-control {
  flex: 1 1 auto !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0.3rem 0.45rem !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.app-header-token .dbk-token-controls .form-control:focus {
  outline: none;
}

.app-header-token .dbk-token-controls .btn {
  flex: 0 0 auto !important;
  white-space: nowrap;
  border-radius: 6px;
}

.app-header-right {
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-left: 0;
}

.app-header-actions,
.app-header-socials {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.25rem;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 0.25rem;
}

.app-header-actions .icon-btn {
  border: none !important;
  border-radius: 6px !important;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  color: #c4c4c8 !important;
}

.app-header-actions .icon-btn:hover {
  background: #1f1f1f !important;
  color: #fff !important;
}

button.app-brand-social {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
}

.app-header-refresh {
  flex: 0 0 auto;
}

.app-header-refresh .bi {
  font-size: 0.95rem;
  line-height: 1;
}

.app-header-chain {
  min-width: 0;
}

.app-header-chain .dbk-chain-controls {
  width: auto;
  flex-wrap: nowrap;
  gap: 0.25rem;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 0.25rem 0.3rem 0.25rem 0.25rem;
}

.app-header-chain .dbk-chain-controls .icon-btn {
  border: none !important;
  border-radius: 6px;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dbk-chain-picker {
  position: relative;
  min-width: 0;
}

.dbk-chain-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.dbk-chain-picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 7.5rem;
  max-width: 12rem;
  height: 1.85rem;
  padding: 0 0.55rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dbk-chain-picker-trigger:hover,
.dbk-chain-picker.is-open .dbk-chain-picker-trigger {
  background: #1f1f1f;
}

.dbk-chain-picker-trigger:focus-visible {
  outline: 1px solid #9945ff;
  outline-offset: 1px;
}

.dbk-chain-picker-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.dbk-chain-picker-trigger .bi {
  flex: 0 0 auto;
  font-size: 0.7rem;
  color: #8b8b95;
  transition: transform 0.15s ease;
}

.dbk-chain-picker.is-open .dbk-chain-picker-trigger .bi {
  transform: rotate(180deg);
}

.dbk-chain-picker-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 16rem;
  max-height: 14rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: #141414;
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  z-index: 50;
}

.dbk-chain-picker-menu[hidden] {
  display: none !important;
}

.dbk-chain-picker-option {
  display: flex;
  align-items: center;
  width: 100%;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #d1d5db;
  font-size: 0.78rem;
  font-weight: 500;
  text-align: left;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  white-space: nowrap;
}

.dbk-chain-picker-option:hover,
.dbk-chain-picker-option:focus-visible {
  background: #222222;
  color: #fff;
  outline: none;
}

.dbk-chain-picker-option.is-active {
  background: rgba(153, 69, 255, 0.18);
  color: #fff;
}

.dbk-chain-picker-option.is-active::after {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  margin-left: auto;
  border-radius: 50%;
  background: #9945ff;
}

.dbk-col-main,
.dbk-col-side {
  min-width: 0;
}

.dbk-col-side {
  flex: 0 0 clamp(280px, 30vw, 380px);
  width: clamp(280px, 30vw, 380px);
  max-width: none;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  margin: 0;
  padding: 0;
  border-left: 1px solid #2a2a2a;
  background: #0f0f0f;
  overflow: hidden;
  border-radius: 0;
}

.dbk-col-side > .step-container,
.dbk-market-panel,
.dbk-trade-panel {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  border-left: none !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.dbk-col-side > .dbk-market-panel {
  border-bottom: 1px solid #242424 !important;
}

.dbk-trade-panel {
  padding: 0;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.dbk-trade-panel .dbk-trade-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.dbk-tx-dock {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 40;
  margin: 0;
  width: 100%;
  background: #0f0f0f;
  border-top: 1px solid #2a2a2a;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.dbk-tx-dock.is-collapsed .dbk-tx-dock-body {
  display: none;
}

.dbk-tx-dock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.75rem;
  min-height: 2.35rem;
  background: #141414;
  border-bottom: 1px solid #222;
}

.dbk-tx-tabs {
  display: flex;
  align-items: stretch;
  gap: 0.15rem;
  min-width: 0;
  overflow-x: auto;
}

.dbk-tx-tab {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  cursor: default;
  border-bottom: 2px solid transparent;
}

.dbk-tx-tab.is-active {
  color: #e5e7eb;
  border-bottom-color: #9945ff;
}

.dbk-tx-dock-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
}

.dbk-tx-icon-btn {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
}

.dbk-tx-icon-btn:hover {
  color: #e5e7eb;
  background: #1c1c1c;
  border-color: #2a2a2a;
}

.dbk-tx-dock-body {
  max-height: min(38vh, 20rem);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a transparent;
}

.dbk-tx-dock-body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.dbk-tx-dock-body::-webkit-scrollbar-track {
  background: transparent;
}

.dbk-tx-dock-body::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 999px;
}

.dbk-tx-dock-body::-webkit-scrollbar-thumb:hover {
  background: #525252;
}

.dbk-tx-dock-body::-webkit-scrollbar-corner {
  background: transparent;
}

.dbk-tx-table-wrap {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a transparent;
}

.dbk-tx-table-wrap::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.dbk-tx-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.dbk-tx-table-wrap::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 999px;
}

.dbk-tx-table-wrap::-webkit-scrollbar-thumb:hover {
  background: #525252;
}

.dbk-tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  min-width: 52rem;
}

.dbk-tx-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #121212;
  color: #9ca3af;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
  text-align: left;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid #222;
  white-space: nowrap;
}

.dbk-tx-table tbody td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #1c1c1c;
  vertical-align: middle;
  white-space: nowrap;
}

.dbk-tx-table tbody tr:hover td {
  background: #151515;
}

.dbk-tx-empty td {
  color: #6b7280;
  text-align: center;
  padding: 1.1rem 0.75rem !important;
}

.dbk-tx-date {
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}

.dbk-tx-type {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
}

.dbk-tx-type .bi {
  font-size: 0.85rem;
}

.dbk-tx-row.is-buy .dbk-tx-type,
.dbk-tx-row.is-buy .dbk-tx-usd,
.dbk-tx-row.is-buy .dbk-tx-tok,
.dbk-tx-row.is-buy .dbk-tx-eth,
.dbk-tx-row.is-buy .dbk-tx-price {
  color: #86efac;
}

.dbk-tx-row.is-sell .dbk-tx-type,
.dbk-tx-row.is-sell .dbk-tx-usd,
.dbk-tx-row.is-sell .dbk-tx-tok,
.dbk-tx-row.is-sell .dbk-tx-eth,
.dbk-tx-row.is-sell .dbk-tx-price {
  color: #fca5a5;
}

.dbk-tx-row.is-pending td {
  opacity: 0.72;
}

.dbk-tx-row.is-err .dbk-tx-type {
  color: #fca5a5;
}

.dbk-tx-trader {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #d1d5db;
}

.dbk-tx-avatar {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 4px;
  background: linear-gradient(135deg, #627eea, #9945ff);
  flex: 0 0 auto;
}

.dbk-tx-link {
  color: #9ca3af;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 4px;
}

.dbk-tx-link:hover {
  color: #c4b5fd;
  background: #1a1a1a;
}

.dbk-side-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  font-size: 0.8rem;
  color: #e5e7eb;
  margin: 0;
  padding: 0.7rem 0.85rem 0.55rem;
  background: transparent;
  border-bottom: 1px solid #242424;
}

.dbk-side-title-row {
  justify-content: space-between;
  gap: 0.5rem;
}

.dbk-side-title-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.dbk-side-title-inline {
  margin: 0.15rem -0.85rem 0;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  border-top: 1px solid #242424;
}

.dbk-side-title .bi {
  color: #9945ff;
  font-size: 0.85rem;
}

.dbk-token-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem 0.65rem;
  border-bottom: 1px solid #242424;
}

.dbk-token-header-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  max-width: 100%;
}

.dbk-token-header-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
}

.dbk-token-header-sym {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #f3f4f6;
  text-transform: uppercase;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dbk-token-header-sep {
  font-size: 1.15rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1;
}

.dbk-token-header-quote {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #9ca3af;
  text-transform: uppercase;
  line-height: 1.15;
}

.dbk-token-header-copy {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
}

.dbk-token-header-copy:hover:not(:disabled) {
  color: #c4b5fd;
  background: #1a1a1a;
}

.dbk-token-header-copy:disabled {
  opacity: 0.4;
  cursor: default;
}

.dbk-trade-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem 0.9rem;
}

/* Wallet — flush with plane */
.dbk-wallet-box {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.dbk-side-wallet-btns {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.dbk-side-title-row .dbk-side-wallet-btns .btn {
  font-size: 0.7rem;
  height: 1.55rem;
  min-height: 1.55rem;
  padding: 0.15rem 0.4rem;
}

.dbk-side-title-row .dbk-side-wallet-btns .icon-btn {
  width: 1.55rem;
  min-width: 1.55rem;
}

.dbk-side-title-row .dbk-side-wallet-btns #connectWalletBtn.is-connected {
  border-color: rgba(34, 197, 94, 0.45);
  color: #86efac;
}

.dbk-box-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
}

.dbk-box-label .bi {
  color: #9945ff;
}

.dbk-wallet-select-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  overflow: hidden;
}

.dbk-wallet-select-wrap .form-control {
  flex: 1 1 auto;
  min-width: 0;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color-scheme: dark;
}

#walletSelect option {
  background-color: #0f0f0f;
  color: #e5e7eb;
}

#walletSelect optgroup {
  background-color: #1a1a1a;
  color: #9ca3af;
  font-weight: 600;
  font-style: normal;
}

.dbk-copy-btn {
  flex: 0 0 1.85rem;
  width: 1.85rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-left: 1px solid #2a2a2a;
  background: #121212;
  color: #9945ff;
  cursor: pointer;
}

.dbk-copy-btn:hover:not(:disabled) {
  color: #b366ff;
  background: #1a1a1a;
}

.dbk-copy-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.dbk-copy-btn .bi {
  font-size: 0.78rem;
}

/* Buy / Sell tabs */
.dbk-trade-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: transparent;
  border: 1px solid #2a2a2a;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
}

.dbk-trade-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2.15rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dbk-trade-tab + .dbk-trade-tab {
  border-left: 1px solid #2a2a2a;
}

.dbk-trade-tab .bi {
  font-size: 0.95rem;
}

.dbk-trade-tab[data-side="buy"] .bi { color: #86efac; }
.dbk-trade-tab[data-side="sell"] .bi { color: #fca5a5; }

.dbk-trade-tab.is-active[data-side="buy"] {
  background: #1a2e22;
  color: #f3f4f6;
}

.dbk-trade-tab.is-active[data-side="sell"] {
  background: #2a1718;
  color: #f3f4f6;
}

.dbk-swap-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #2a2a2a;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.dbk-swap-leg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 1.4rem;
}

.dbk-swap-leg-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #8b8b95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.dbk-swap-leg-head .dbk-slip-pop {
  flex: 0 0 auto;
}

.dbk-trade-output-box > .dbk-swap-leg-label {
  margin-bottom: 0.2rem;
}

.dbk-trade-panel-box {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.7rem 0.75rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dbk-trade-output-box {
  padding-bottom: 0.7rem;
  gap: 0.2rem;
  border-top: 1px solid #242424;
}

.dbk-trade-output-values {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.35rem;
  text-align: right;
}

.dbk-trade-output-amount {
  font-size: 1.35rem;
  font-weight: 650;
  color: #e5e7eb;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dbk-trade-output-amount.is-loading {
  color: #9ca3af;
}

.dbk-trade-output-amount.is-empty {
  color: #6b7280;
}

.dbk-trade-output-usd {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 500;
  color: #8b8b95;
  white-space: nowrap;
}

.dbk-trade-output-usd:empty {
  display: none;
}

.dbk-trade-amount-row,
.dbk-trade-slip-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2rem;
}

.dbk-trade-token {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 0.9rem;
  color: #f3f4f6;
  min-width: 3.5rem;
}

.dbk-token-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #627eea, #9945ff);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dbk-token-badge.is-token {
  background: linear-gradient(135deg, #14f195, #0ea5e9);
  color: #04120b;
}

.dbk-trade-amount-input,
.dbk-trade-slip-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #e5e7eb !important;
  font-size: 1.35rem !important;
  font-weight: 650;
  text-align: right;
  padding: 0.15rem 0.2rem !important;
  height: auto !important;
  line-height: 1.2 !important;
}

.dbk-trade-amount-input:focus,
.dbk-trade-slip-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.dbk-slip-label {
  font-size: 0.82rem;
  color: #9ca3af;
  font-weight: 500;
}

.dbk-trade-settings-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: -0.25rem 0 -0.1rem;
  position: relative;
  z-index: 5;
}

.dbk-slip-pop {
  position: relative;
}

.dbk-settings-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  background: transparent;
  color: #9ca3af;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  line-height: 1;
}

.dbk-settings-btn:hover,
.dbk-settings-btn.is-open {
  color: #e5e7eb;
  border-color: #3a3a3a;
  background: #1c1c1c;
}

.dbk-settings-btn .bi-gear {
  font-size: 0.8rem;
}

.dbk-settings-slip {
  color: #c4b5fd;
  font-variant-numeric: tabular-nums;
}

.dbk-slip-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  width: min(16.5rem, calc(100vw - 2rem));
  background: #141414;
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  padding: 0.7rem 0.75rem 0.65rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  z-index: 30;
}

.dbk-slip-popover[hidden] {
  display: none !important;
}

.dbk-slip-popover-title {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #9ca3af;
}

.dbk-slip-popover .dbk-trade-slip-row {
  flex-wrap: nowrap;
  gap: 0.45rem;
}

.dbk-slip-popover .dbk-slip-label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.dbk-slip-popover .dbk-trade-slip-input {
  font-size: 1.05rem !important;
  background: #1a1a1a !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 8px;
  padding: 0.35rem 0.5rem !important;
  text-align: left;
}

.dbk-seg-inset {
  margin-top: 0.1rem;
}

.dbk-flip-btn {
  flex: 0 0 1.7rem;
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  background: #1a1a1a;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
}

.dbk-flip-btn-mid {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  flex: none;
  margin-top: -0.15rem;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  border-color: #333;
  background: #1a1a1a;
  box-shadow: 0 0 0 3px #0f0f0f;
}

.dbk-flip-btn-mid .bi {
  font-size: 0.9rem;
}

.dbk-flip-btn:hover {
  color: #e5e7eb;
  border-color: #3a3a3a;
  background: #222;
}

.dbk-flip-btn-mid:hover {
  color: #fff;
  border-color: #9945ff;
  background: #221833;
}

.dbk-seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border-top: 1px solid #242424;
  margin: 0 -0.75rem -0.55rem;
}

.dbk-seg-btn {
  border: none;
  border-right: 1px solid #242424;
  background: transparent;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.55rem 0.2rem;
  cursor: pointer;
  min-width: 0;
}

.dbk-seg-btn:last-child {
  border-right: none;
}

.dbk-seg-btn:hover {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.03);
}

.dbk-seg-btn.is-active {
  color: #f3f4f6;
  background: rgba(153, 69, 255, 0.12);
}

.dbk-trade-action {
  width: 100%;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  height: 2.25rem !important;
  border-radius: 8px !important;
}

.dbk-trade-action.is-buy {
  background: #14f195 !important;
  border-color: #14f195 !important;
  color: #000 !important;
}

.dbk-trade-action.is-buy:hover {
  background: #10c97a !important;
  border-color: #10c97a !important;
}

.dbk-trade-action.is-sell {
  background: #7f1d1d !important;
  border-color: #9f2a2a !important;
  color: #fecaca !important;
}

.dbk-trade-action.is-sell:hover {
  background: #991b1b !important;
}

.dbk-trade-quote {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.15rem 0.25rem;
  color: #9ca3af;
  text-align: center;
  cursor: pointer;
  transition: color 0.15s ease;
}

.dbk-trade-quote[hidden] {
  display: none !important;
}

.dbk-trade-quote:hover {
  color: #d1d5db;
  background: transparent;
  border: none;
}

.dbk-trade-quote .bi {
  position: static;
  flex: 0 0 auto;
  font-size: 0.7rem;
  opacity: 0.7;
  transform: none;
}

.dbk-trade-quote-text {
  min-width: 0;
  flex: 0 1 auto;
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}

.dbk-trade-quote.is-empty .dbk-trade-quote-text {
  color: #6b7280;
}

.dbk-trade-quote.is-loading .dbk-trade-quote-text {
  opacity: 0.55;
}

.dbk-trade-quote-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  opacity: 0;
  background: transparent;
  overflow: hidden;
  z-index: 2;
}

.dbk-trade-quote.is-loading .dbk-trade-quote-bar {
  opacity: 1;
}

.dbk-trade-quote-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #d4c19c, #14f195, #d4c19c, transparent);
  transform: translateX(-120%);
}

.dbk-trade-quote.is-loading .dbk-trade-quote-bar::after {
  animation: dbk-quote-load 1.05s ease-in-out infinite;
}

@keyframes dbk-quote-load {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.dbk-import-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
}

@media (max-width: 980px) {
  .app-container {
    flex-direction: column;
  }

  .dbk-workspace {
    flex: 1 1 auto;
    min-height: 0;
  }

  .dbk-shell {
    flex-direction: column;
  }

  .dbk-col-side {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    max-height: 55vh;
    max-width: none;
    margin: 0;
    border-left: none;
    border-top: 1px solid #2a2a2a;
  }

  .dbk-trade-panel {
    border-radius: 8px;
    max-height: none;
  }
}

.nox-live-float {
  position: fixed;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem 0.35rem 0.55rem;
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  pointer-events: none;
  user-select: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nox-live-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nox-live-float .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.monitor-block {
  font-size: 0.7rem;
  color: #9ca3af;
  white-space: nowrap;
  line-height: 1;
}

.monitor-live-status {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4b5563;
  flex: 0 0 auto;
}

.monitor-live-status.is-live .live-dot {
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 1.4s ease-out infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.step-container {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 0;
  margin-bottom: var(--section-gap);
  border-left: 3px solid #9945ff;
  overflow: hidden;
}

.step-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.step-header-side {
  flex: 0 0 140px;
  background: #1e1e1e;
  padding: 0.65rem 0.85rem;
  border-right: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.step-body-side {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: flex-start;
  padding: 0.65rem 0.85rem;
}

.step-title {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  text-align: right;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.25rem;
  min-height: 1.75rem;
  color: #e5e7eb;
}

.step-content {
  padding-left: 0;
  width: 100%;
  margin: 0 !important;
}

.step-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.step-inline-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.65rem;
  margin: 0;
  min-height: 1.75rem;
  width: 100%;
}

.step-inline-controls .form-control {
  flex: 1 1 220px;
  min-width: 160px;
}

.dbk-token-controls .dbk-chain-select {
  flex: 0 0 auto;
  width: auto;
  min-width: 7.5rem;
  max-width: 10rem;
}

.dbk-chain-controls .dbk-chain-select {
  flex: 0 1 14rem;
  min-width: 8rem;
  max-width: 18rem;
  width: auto;
}

.dbk-chain-controls .icon-btn {
  flex: 0 0 auto;
}

.dbk-rpc-chain-label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.15rem;
}

.dbk-rpc-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dbk-rpc-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dbk-rpc-row .form-control {
  flex: 1 1 auto;
  min-width: 0;
}

.dbk-rpc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.dbk-rpc-status {
  white-space: pre-wrap;
  font-size: 0.72rem;
  color: #9ca3af;
  min-height: 1.2rem;
  line-height: 1.35;
}

.form-control-sm {
  height: 1.75rem;
  min-height: 1.75rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  border-radius: 4px;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  height: 1.75rem;
  min-height: 1.75rem;
  line-height: 1.25rem;
  border-radius: 4px;
}

.icon-btn {
  width: 1.75rem;
  min-width: 1.75rem;
  padding: 0 !important;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
}

.dbk-meta {
  margin-top: 0;
  color: #9ca3af;
  font-size: 0.75rem;
  word-break: break-all;
}

.dbk-meta-inline {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
  line-height: 1.75rem;
}

.dbk-market-panel {
  padding: 0;
  overflow: hidden;
  flex: 0 0 auto;
}

.dbk-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0.65rem 0.85rem 0.75rem;
  border: 1px solid #2a2a2a;
  background: #0f0f0f;
}

.dbk-metric.dbk-metric-wide {
  grid-column: span 3;
}

.dbk-metric:not(.dbk-metric-wide) {
  grid-column: span 2;
}

.dbk-metric {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  border-right: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  padding: 0.6rem 0.45rem 0.65rem;
  text-align: center;
  min-width: 0;
  transition: background 0.15s ease;
}

.dbk-metric:nth-child(2),
.dbk-metric:nth-child(5) {
  border-right: none;
}

.dbk-metric:nth-child(n + 3) {
  border-bottom: none;
}

.dbk-metric:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: #2a2a2a;
}

.dbk-metric.dbk-metric-wide {
  background: transparent;
  border-color: #2a2a2a;
}

.dbk-metric-label {
  font-size: 0.6rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b8b96;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dbk-metric.dbk-metric-wide .dbk-metric-label {
  color: #8b8b96;
}

.dbk-metric-value {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f3f4f6;
  line-height: 1.15;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.dbk-metric.dbk-metric-wide .dbk-metric-value {
  font-size: 1.05rem;
}

.dbk-metric-sub {
  display: none;
}

@keyframes dbk-run-out {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-120%); opacity: 0; }
}
@keyframes dbk-run-in {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.dbk-text-run {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.dbk-run-out,
.dbk-run-in {
  display: block;
  white-space: nowrap;
}
.dbk-run-out {
  position: absolute;
  inset: 0 auto auto 0;
  animation: dbk-run-out 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.dbk-run-in {
  animation: dbk-run-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@media (prefers-reduced-motion: reduce) {
  .dbk-run-out,
  .dbk-run-in { animation: none; }
}

.dbk-details {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  width: 100%;
  min-width: 0;
}

@media (max-width: 1100px) {
  .dbk-details { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .app-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .app-header-brand {
    order: 1;
  }

  .app-brand-logo {
    height: 1.55rem;
    max-width: 100%;
  }

  .app-header-right {
    order: 2;
    margin-left: auto;
  }

  .app-header-token {
    order: 3;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
  }

  .app-header-token .dbk-token-controls {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .app-header-token .dbk-token-controls .form-control {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

@media (max-width: 640px) {
  .dbk-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-header-side { flex: 0 0 100%; border-right: none; border-bottom: 1px solid #2a2a2a; }
  .step-title { justify-content: flex-start; text-align: left; }

  .app-header-right {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
  }

  .app-header-actions,
  .app-header-socials {
    flex-wrap: wrap;
  }

  .app-header-chain .dbk-chain-controls {
    flex-wrap: wrap;
  }
}

.dbk-detail {
  min-width: 0;
  overflow: hidden;
}

.dbk-details .muted {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 0.1rem;
}

.dbk-detail-value {
  color: #e5e7eb;
  font-size: 0.8125rem;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.dbk-detail-value.mono,
.dbk-addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dbk-detail-addr {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
}

.dbk-detail-addr .dbk-addr {
  flex: 0 1 auto;
  min-width: 0;
  width: auto;
  max-width: 100%;
}

.dbk-detail-copy {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.dbk-detail-copy:hover:not(:disabled) {
  color: #c4b5fd;
  background: #1a1a1a;
}

.dbk-detail-copy:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.dbk-detail-copy .bi {
  font-size: 0.78rem;
  line-height: 1;
}

.dbk-detail-stack {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.dbk-detail-stack .sub {
  font-size: 0.72rem;
  color: #9ca3af;
}

.ext-link { color: #c4b5fd; text-decoration: none; }
.ext-link:hover { color: #ddd6fe; text-decoration: underline; }

.dbk-trade-warn {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.dbk-trade-balances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.15rem 0 0;
  color: #d1d5db;
  font-size: 0.75rem;
}

.dbk-bal-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.dbk-bal-row:last-child {
  justify-content: flex-end;
  text-align: right;
}

.dbk-bal-amt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.dbk-bal-usd {
  flex: 0 0 auto;
  color: #8b8b95;
  font-size: 0.7rem;
  white-space: nowrap;
}

.dbk-bal-usd:empty {
  display: none;
}

.dbk-wallet-manage {
  padding: 0.75rem 0.85rem;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #121212;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dbk-modal[hidden] {
  display: none !important;
}

.dbk-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dbk-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.dbk-modal-panel {
  position: relative;
  z-index: 1;
  width: min(28rem, 100%);
  max-height: min(85vh, 36rem);
  display: flex;
  flex-direction: column;
  background: #141414;
  border: 1px solid #2f2f2f;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.dbk-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #2a2a2a;
  background: #1a1a1a;
}

.dbk-modal-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: #f3f4f6;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dbk-modal-title .bi {
  color: #9945ff;
}

.dbk-modal-close {
  border: 1px solid #2a2a2a;
  background: #1c1c1c;
  color: #9ca3af;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.dbk-modal-close:hover {
  color: #e5e7eb;
  border-color: #3a3a3a;
}

.dbk-modal-body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: auto;
}

.dbk-wallet-list-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-top: 0.25rem;
}

.dbk-wallet-empty {
  font-size: 0.78rem;
  color: #6b7280;
  padding: 0.35rem 0.1rem;
}

.dbk-trade-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #a0a0a0;
  margin-bottom: 0.1rem;
}

.dbk-wallet-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dbk-wallet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #d1d5db;
  padding: 0.45rem 0.5rem;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #101010;
}

.dbk-wallet-item.is-default {
  border-color: #4c1d95;
  background: #16101f;
}

.dbk-wallet-item-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
}

.dbk-wallet-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dbk-wallet-default-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c4b5fd;
}

.dbk-wallet-item-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
}

.dbk-wallet-item-actions .btn {
  white-space: nowrap;
}

.dbk-toast-stack {
  position: fixed;
  right: 1rem;
  top: 1rem;
  bottom: auto;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.dbk-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  background: #161616;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  color: #e5e7eb;
  font-size: 0.8rem;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dbk-toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

.dbk-toast.is-ok {
  border-color: #14532d;
  border-top: 3px solid #86efac;
}

.dbk-toast.is-err {
  border-color: #7f1d1d;
  border-top: 3px solid #fca5a5;
}

.dbk-toast.is-pending {
  border-color: #3f3f46;
  border-top: 3px solid #fcd34d;
}

.dbk-toast-icon {
  flex: 0 0 auto;
  margin-top: 0.05rem;
  font-size: 0.95rem;
}

.dbk-toast.is-ok .dbk-toast-icon { color: #86efac; }
.dbk-toast.is-err .dbk-toast-icon { color: #fca5a5; }
.dbk-toast.is-pending .dbk-toast-icon { color: #fcd34d; }

.dbk-toast-body {
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}

.dbk-toast-close {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 0.85rem;
}

.dbk-toast-close:hover {
  color: #e5e7eb;
}

.dbk-wallet-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid #2a2a2a;
}

.dbk-wallet-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.privy-iframe-warning {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  line-height: 1.35;
}

.privy-iframe-warning a {
  color: #fde68a;
}

.privy-bridge-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.privy-bridge-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.privy-bridge-error {
  color: #fca5a5;
}

.privy-bridge-status {
  color: #9ca3af;
}

.dbk-trade-status {
  font-size: 0.75rem;
  color: #9ca3af;
  min-height: 0;
  word-break: break-all;
  text-align: center;
}

.dbk-trade-status:empty,
.dbk-trade-status.is-idle {
  display: none;
}

.dbk-trade-status.is-ok { color: #86efac; }
.dbk-trade-status.is-err { color: #fca5a5; }
.dbk-trade-status.is-pending { color: #fde68a; }
