.hodl-bridge-window {
  overflow: auto;
  background: #0c1118;
}

.hodl-bridge-shell {
  min-height: 100%;
  padding: 16px;
  color: #e8edf7;
  background:
    linear-gradient(180deg, rgba(18, 24, 36, 0.96), rgba(10, 14, 22, 0.98)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 32px);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hodl-bridge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hodl-bridge-kicker {
  color: #8da1c4;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
}

.hodl-bridge-title {
  margin-top: 3px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1;
}

.hodl-bridge-led {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--hodl-green);
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.75);
  flex: 0 0 auto;
}

.hodl-bridge-route {
  position: relative;
  display: grid;
  gap: 10px;
}

.bridge-chain-panel {
  min-height: 100px;
  padding: 12px;
  border: 1px solid rgba(118, 136, 169, 0.22);
  border-radius: 8px;
  background: #171c2a;
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.bridge-chain-panel:hover {
  border-color: rgba(0, 212, 255, 0.42);
  background: #1a2030;
}

.bridge-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: #7f91b3;
  font-size: 12px;
  font-weight: 700;
}

.bridge-wallet-btn {
  height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(0, 212, 255, 0.24);
  border-radius: 4px;
  color: #bcd2ff;
  background: rgba(0, 84, 227, 0.16);
  font: 700 11px var(--font-system);
  cursor: pointer;
}

.bridge-wallet-btn:hover {
  border-color: rgba(0, 212, 255, 0.58);
  color: #fff;
}

.bridge-chain-main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.bridge-chain-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 31% 24%, rgba(255,255,255,0.32), transparent 34%),
    linear-gradient(145deg, #1e2842, #0a0f1a);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.24), 0 8px 20px rgba(0,0,0,0.32);
}

.bridge-chain-icon img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.36));
}

.bridge-chain-icon img[src$="/ethereum.svg"] {
  filter: brightness(0) invert(1) drop-shadow(0 2px 5px rgba(0,0,0,0.36));
}

.bridge-chain-name {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.bridge-chain-address {
  margin-top: 3px;
  min-height: 15px;
  color: #7f91b3;
  font: 11px var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bridge-chain-balance {
  margin-top: 3px;
  min-height: 15px;
  color: #9fb4dc;
  font: 11px var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bridge-swap-btn {
  width: 34px;
  height: 34px;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  border: 1px solid rgba(118, 136, 169, 0.35);
  border-radius: 999px;
  color: #cbd8f2;
  background: #101522;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  font: 900 17px var(--font-system);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 140ms ease, border-color 140ms ease, color 140ms ease;
}

.bridge-swap-btn:hover {
  transform: translate(-50%, -50%) rotate(180deg);
  border-color: var(--hodl-orange);
  color: var(--hodl-orange-light);
}

.bridge-field {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(118, 136, 169, 0.18);
  border-radius: 8px;
  background: #171c2a;
}

.bridge-field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bridge-field span {
  color: #7f91b3;
  font-size: 12px;
  font-weight: 800;
}

.bridge-amount-main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.bridge-token-bubble {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  outline: 1px solid rgba(255,255,255,0.95);
  outline-offset: 0;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.bridge-token-bubble img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 999px;
  object-fit: cover;
}

.bridge-amount-control {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
}

.bridge-amount-control span {
  color: #7f91b3;
  font: 800 12px var(--font-system);
}

.bridge-max-btn {
  height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(255, 149, 0, 0.34);
  border-radius: 4px;
  color: #ffd08a;
  background: rgba(255, 149, 0, 0.1);
  font: 800 11px var(--font-system);
  cursor: pointer;
}

.bridge-max-btn:hover:not(:disabled) {
  border-color: var(--hodl-orange);
  color: #fff;
}

.bridge-max-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.bridge-field input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 0;
  outline: 0;
  color: #f5f7fb;
  background: transparent;
  font-family: var(--font-mono);
}

.bridge-amount-input {
  font-size: 24px;
}

.bridge-recipient-input {
  font-size: 12px;
}

.bridge-field input::placeholder {
  color: #56627b;
}

.bridge-action-btn {
  height: 48px;
  border: 1px solid rgba(255, 149, 0, 0.45);
  border-radius: 7px;
  color: #1b1204;
  background: linear-gradient(180deg, #ffbf54, #ff9500);
  font: 800 13px var(--font-system);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 149, 0, 0.18);
}

.bridge-action-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

.bridge-action-btn:disabled {
  cursor: not-allowed;
  color: #65708a;
  background: #1a2030;
  border-color: rgba(118, 136, 169, 0.18);
  box-shadow: none;
}

.bridge-status {
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 6px;
  font: 12px/1.35 var(--font-system);
  background: rgba(255,255,255,0.045);
}

.bridge-status-muted {
  color: #93a4c4;
}

.bridge-status-success {
  color: #a6ffd4;
  background: rgba(0, 255, 136, 0.1);
}

.bridge-status-error {
  color: #ffb8b8;
  background: rgba(255, 68, 68, 0.12);
}

.bridge-result {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 7px;
  border: 1px solid rgba(0, 255, 136, 0.24);
  background: rgba(0, 255, 136, 0.08);
}

.bridge-result[hidden] {
  display: none;
}

.bridge-result-title {
  color: #d9ffe9;
  font-weight: 800;
}

.bridge-result a,
.bridge-contracts a {
  color: #8bdcff;
  text-decoration: none;
  font-size: 12px;
}

.bridge-result a:hover,
.bridge-contracts a:hover {
  color: #fff;
  text-decoration: underline;
}

.bridge-contracts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 0;
}

.bridge-powered {
  color: #8b94aa;
  font-size: 11px;
  line-height: 1.2;
}

.bridge-powered strong {
  color: #fff;
}

.bridge-wallet-picker {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 8, 13, 0.58);
}

.bridge-wallet-picker-panel {
  width: min(330px, 100%);
  max-height: min(460px, calc(100vh - 48px));
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(118, 136, 169, 0.32);
  border-radius: 8px;
  background: #111725;
  box-shadow: 0 22px 54px rgba(0,0,0,0.48);
  overflow: auto;
}

.bridge-wallet-picker-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #f2f6ff;
  font: 800 13px var(--font-system);
}

.bridge-wallet-picker-top button {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(118, 136, 169, 0.28);
  border-radius: 4px;
  color: #cbd8f2;
  background: #171c2a;
  font: 900 18px/1 var(--font-system);
  cursor: pointer;
}

.bridge-wallet-picker-top button:hover {
  border-color: rgba(255, 149, 0, 0.5);
  color: #fff;
}

.bridge-wallet-list {
  display: grid;
  gap: 8px;
}

.bridge-wallet-option {
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(118, 136, 169, 0.22);
  border-radius: 7px;
  color: #e8edf7;
  background: #171c2a;
  font: 800 12px var(--font-system);
  text-align: left;
  cursor: pointer;
}

.bridge-wallet-option:hover {
  border-color: rgba(0, 212, 255, 0.48);
  background: #1b2233;
}

.bridge-wallet-option-no-icon {
  grid-template-columns: minmax(0, 1fr);
}

.bridge-wallet-option-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #cfe0ff;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  font: 900 11px var(--font-system);
}

.bridge-wallet-option-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.bridge-wallet-option-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

.bridge-wallet-option-icon-empty {
  width: 0;
}

.bridge-wallet-option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .hodl-bridge-shell {
    padding: 12px;
    gap: 10px;
  }

  .hodl-bridge-title {
    font-size: 22px;
  }

  .bridge-chain-panel {
    min-height: 104px;
    padding: 12px;
  }

  .bridge-action-btn {
    height: 46px;
  }
}
