:root {
  --background: 168 14% 7%;
  --foreground: 42 22% 95%;
  --card: 174 16% 18%;
  --muted: 174 14% 20%;
  --muted-foreground: 63 11% 60%;
  --border: 174 12% 28%;
  --cream: #dbd5be;
  --green: #273534;
  --success: #34d399;
  --danger: #fb7185;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Geist, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
a,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.bl-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  padding: 0 4.5vw;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.bl-wrap > .bl-topnav {
  flex: 0 0 auto;
  width: 100%;
  max-width: 862px;
  margin: 0 auto;
  padding: 18px 0;
}

.bl-topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bl-back,
.bl-cx-btn,
.bl-help,
.bl-cx-no,
.bl-cx-yes {
  border: 0;
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-size: 13px;
  line-height: 1.5;
  padding: 0;
}

.bl-back {
  color: hsl(var(--muted-foreground) / .85);
  font-weight: 600;
}

.bl-cp-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bl-info-cancel {
  margin-left: auto;
  align-self: center;
  display: flex;
}

.bl-cx-btn {
  color: var(--danger);
  font-weight: 600;
}

.bl-help {
  color: hsl(var(--muted-foreground) / .8);
  font-weight: 600;
}

.bl-outcome {
  display: block;
  align-self: center;
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  white-space: nowrap;
}

.bl-outcome-cancelled {
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
}

.bl-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  gap: 2px;
  padding-bottom: 12vh;
}

.bl-left {
  flex: 0 1 500px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bl-canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  padding: 28px 24px 0;
}

.bl-header {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 14px 20px;
}

.bl-header-l {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  min-width: 0;
}

.bl-tradeid {
  font-family: "Geist Mono", "SFMono-Regular", ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 1px;
  color: hsl(var(--muted-foreground) / .7);
}

.bl-info {
  display: flex;
  align-items: baseline;
  justify-content: center;
  background: transparent;
}

.bl-info-amount {
  display: block;
  width: 100%;
  color: hsl(var(--foreground));
  font-size: 30px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.5px;
}

.bl-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
  padding: 20px;
}

.bl-ac {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  flex: 1;
  padding: 20px 22px;
  background: transparent;
  border: 0;
  border-radius: 16px;
}

.bl-main .bl-ac {
  padding: 0;
  background: transparent;
  border: 0;
}

.bl-ac > div {
  align-self: center;
}

.deposit-panel {
  gap: 12px;
}

.bl-ac-head.centered,
.bl-ac-htxt {
  text-align: center;
}

.bl-ac-title {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.bl-ac-desc {
  max-width: 390px;
  margin: 4px auto 0;
  color: hsl(var(--muted-foreground));
  font-size: 13px;
  line-height: 1.5;
}

.bl-bigtimer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.bl-rt-label {
  font-family: "Geist Mono", "SFMono-Regular", ui-monospace, monospace;
  color: hsl(var(--muted-foreground) / .85);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.bl-rt-time {
  font-family: "Geist Mono", "SFMono-Regular", ui-monospace, monospace;
  color: hsl(var(--foreground));
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}

.bl-terms-summary {
  width: 414px;
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: hsl(var(--foreground));
  background: hsl(var(--muted) / .52);
  border: 1px solid hsl(var(--border));
  border-radius: 11px;
}

.bl-terms-h {
  font-size: 12px;
  font-weight: 600;
}

.bl-ac-cta,
.bl-modal-ok {
  min-width: 220px;
  padding: 11px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--cream);
  color: #1a1300;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.bl-ac-cta:hover,
.bl-modal-ok:hover {
  filter: brightness(1.06);
}

.bl-ac-cta:disabled,
.bl-modal-ok:disabled {
  cursor: not-allowed;
  opacity: .46;
  filter: none;
}

.bl-ac-cta.muted {
  min-width: 260px;
  background: hsl(var(--muted) / .6);
  color: hsl(var(--muted-foreground) / .7);
}

.bl-ac-wait {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #8aa7c8;
  font-size: 12px;
}

.bl-ac-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #60a5fa;
  animation: pulse-dot 1.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: .35;
    transform: scale(.86);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.bl-ac-guide {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #9ab0c6;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
}

.info-dot {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #9ab0c6;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  line-height: 1;
}

.bl-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
}

.deposit-copy {
  gap: 9px;
  margin-top: 48px;
}

.bl-copy-label {
  color: hsl(var(--muted-foreground));
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.address-display {
  max-width: 320px;
  color: hsl(var(--foreground));
  font-family: "Geist Mono", "SFMono-Regular", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  word-break: break-all;
}

.bl-copy-row {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.bl-copy-code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 9px;
  padding: 10px 12px;
  font-family: "Geist Mono", "SFMono-Regular", ui-monospace, monospace;
  font-size: 13px;
}

.bl-copy-btn {
  flex: 0 0 auto;
  padding: 10px 16px;
  color: hsl(var(--foreground));
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}

.center-copy {
  padding: 9px 18px;
}

.bl-dep-card {
  width: 396px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .015);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  text-align: center;
}

.bl-dep-card p {
  margin: 0;
  color: #888;
  font-size: 12px;
  line-height: 1.45;
}

.bl-dep-waiting {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  color: #888;
  font-size: 12px;
  text-align: left;
}

.bl-rail {
  position: absolute;
  left: calc(50% + 252px);
  top: 0;
  bottom: 12vh;
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 0 0;
}

.bl-header-spacer {
  flex: 0 0 auto;
  visibility: hidden;
  pointer-events: none;
}

.bl-tl {
  --sh: 115px;
  position: relative;
  flex: 1;
  overflow: hidden;
  padding: 0 18px;
  background: transparent;
  border: 0;
  border-radius: 16px;
}

.bl-tl-track {
  position: absolute;
  top: 50%;
  left: 34px;
  right: 18px;
  display: flex;
  flex-direction: column;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
  transform: translateY(calc(var(--sh) * -0 - var(--sh) / 2));
}

.bl-wrap[data-screen="deposit"] .bl-tl-track,
.bl-wrap[data-screen="acknowledge"] .bl-tl-track {
  transform: translateY(calc(var(--sh) * -1 - var(--sh) / 2));
}

.bl-wrap[data-screen="setup"] .bl-step[data-step="buyer"] {
  opacity: 0;
}

.bl-step {
  position: relative;
  flex: 0 0 var(--sh);
  display: flex;
  gap: 16px;
  opacity: .34;
  transition: opacity .38s ease;
}

.bl-step[data-state="current"],
.bl-step[data-state="done"] {
  opacity: 1;
}

.bl-col {
  position: relative;
  flex: 0 0 38px;
}

.bl-conn {
  position: absolute;
  left: 50%;
  top: 34px;
  width: 2px;
  height: calc(var(--sh) - 34px);
  transform: translateX(-50%);
  background: rgba(219, 213, 190, .08);
  border-radius: 3px;
  z-index: 1;
  overflow: hidden;
}

.bl-step[data-state="done"] .bl-conn {
  background: rgba(64, 96, 91, .24);
}

.bl-node {
  position: absolute;
  top: 0;
  left: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(9, 13, 12, .78);
  border: 1px solid rgba(219, 213, 190, .1);
  color: rgba(219, 213, 190, .22);
  z-index: 4;
  transition:
    background-color .42s ease,
    border-color .42s ease,
    box-shadow .42s ease,
    color .42s ease;
}

.bl-step[data-state="done"] .bl-node {
  color: rgba(219, 213, 190, .9);
  background: #273a37;
  border-color: rgba(88, 116, 111, .42);
  box-shadow: 0 0 0 1px rgba(219, 213, 190, .02), 0 0 16px rgba(39, 58, 55, .32);
}

.bl-step[data-state="current"] .bl-node {
  color: #1a1300;
  background: var(--cream);
  border-color: rgba(255, 249, 224, .82);
  box-shadow:
    0 0 0 2px rgba(219, 213, 190, .16),
    0 0 20px rgba(219, 213, 190, .56),
    0 0 42px rgba(219, 213, 190, .2);
  animation: blNodeArrive .48s cubic-bezier(.2, .85, .2, 1) both;
}

.bl-ico {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.bl-ico svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bl-ring {
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(219, 213, 190, .2);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 16px rgba(219, 213, 190, .16);
  animation: blHalo 1.55s ease-in-out infinite;
}

.bl-ring2 {
  inset: -11px;
  opacity: .2;
  animation-delay: .55s;
}

@keyframes blNodeArrive {
  0% {
    transform: translateX(-50%) scale(.84);
    opacity: .45;
    filter: blur(.25px);
  }
  62% {
    transform: translateX(-50%) scale(1.08);
  }
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes blHalo {
  0%,
  100% {
    opacity: .18;
    transform: scale(.96);
  }
  50% {
    opacity: .4;
    transform: scale(1.16);
  }
}

.bl-step:not([data-state="current"]) .bl-ring {
  display: none;
}

.bl-flow {
  position: absolute;
  left: 19px;
  top: var(--flow-start);
  width: 18px;
  height: 58px;
  transform: translate3d(-50%, 0, 0) scaleY(.72);
  transform-origin: 50% 18%;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  will-change: transform, opacity;
}

.bl-flow::before,
.bl-flow::after {
  content: "";
  position: absolute;
  left: 50%;
  border-radius: 999px;
  transform: translateX(-50%);
}

.bl-flow::before {
  top: 0;
  width: 14px;
  height: 58px;
  background: linear-gradient(180deg, transparent 0%, rgba(219, 213, 190, .04) 12%, rgba(250, 244, 215, .32) 43%, rgba(219, 213, 190, .12) 68%, transparent 100%);
  filter: blur(4px);
}

.bl-flow::after {
  top: 8px;
  width: 2px;
  height: 42px;
  background: linear-gradient(180deg, transparent 0%, rgba(250, 244, 215, .18) 18%, rgba(255, 250, 224, .94) 48%, rgba(219, 213, 190, .22) 72%, transparent 100%);
  filter: blur(.35px);
  box-shadow: 0 0 8px rgba(250, 244, 215, .42);
}

.bl-wrap[data-screen="setup"] .bl-flow-setup {
  --flow-start: 24px;
  animation: blSilkFlow 1.82s cubic-bezier(.32, 0, .18, 1) infinite;
}

.bl-wrap[data-screen="deposit"] .bl-flow-deposit,
.bl-wrap[data-screen="acknowledge"] .bl-flow-deposit {
  --flow-start: calc(var(--sh) + 24px);
  animation: blSilkFlow 1.82s cubic-bezier(.32, 0, .18, 1) infinite;
}

@keyframes blSilkFlow {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -8px, 0) scaleY(.48);
  }
  14% {
    opacity: .28;
    transform: translate3d(-50%, 1px, 0) scaleY(.74);
  }
  36% {
    opacity: .92;
    transform: translate3d(-50%, 18px, 0) scaleY(1);
  }
  74% {
    opacity: .78;
    transform: translate3d(-50%, 45px, 0) scaleY(.96);
  }
  92% {
    opacity: 0;
    transform: translate3d(-50%, 58px, 0) scaleY(.58);
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, 58px, 0) scaleY(.58);
  }
}

.bl-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-top: 0;
}

.bl-l {
  min-height: 34px;
  display: flex;
  align-items: center;
  color: hsl(var(--foreground));
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.bl-step[data-state="done"] .bl-l {
  color: rgba(219, 213, 190, .58);
}

.bl-step[data-state="current"] .bl-l {
  color: hsl(var(--foreground));
  font-weight: 700;
}

.bl-s {
  min-height: 3px;
  color: hsl(var(--muted-foreground));
  font-size: 12px;
}

.bl-meta {
  display: flex;
  gap: 8px;
  color: hsl(var(--muted-foreground));
  font-family: "Geist Mono", "SFMono-Regular", ui-monospace, monospace;
  font-size: 11px;
  margin-top: 3px;
}

.bl-step[data-state="done"] .bl-meta {
  color: rgba(219, 213, 190, .45);
}

.bl-onchain-fixed {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bl-kv-full {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 3px 0;
  border: 0;
}

.bl-kv-full span {
  color: hsl(var(--muted-foreground));
  font-size: 10px;
}

.bl-kv-val {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bl-kv-full code {
  color: hsl(var(--foreground));
  font-family: "Geist Mono", "SFMono-Regular", ui-monospace, monospace;
  font-size: 11px;
  white-space: nowrap;
}

.bl-explorer {
  color: #92b19d;
  font-size: 12px;
}

.scrollbar-sim {
  position: absolute;
  left: calc(50% + 214px);
  top: 210px;
  width: 10px;
  height: 488px;
  border-radius: 5px;
  background: rgba(219, 213, 190, .14);
}

.scrollbar-sim::after {
  content: "";
  position: absolute;
  inset: 0 2px;
  border-radius: 4px;
  background: rgba(219, 213, 190, .36);
}

.bl-modal-ov {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .66);
  backdrop-filter: blur(4px);
  animation: blFadeIn .18s ease both;
}

@keyframes blFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.bl-modal {
  width: 100%;
  max-width: 520px;
  max-height: 722px;
  overflow: auto;
  padding: 22px 24px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
}

.bl-modal:not(.recovery-modal) {
  min-height: 546px;
  display: flex;
  flex-direction: column;
}

.bl-modal:not(.recovery-modal) .bl-modal-ok {
  margin-top: auto;
}

.bl-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bl-modal-title {
  flex: 1;
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 17px;
  font-weight: 800;
}

.bl-modal-x {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: hsl(var(--muted-foreground));
  background: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
}

.bl-modal-intro {
  margin: 16px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  line-height: 1.55;
}

.bl-modal-sec {
  margin-top: 18px;
}

.bl-modal-h5 {
  margin: 0 0 9px;
  color: hsl(var(--muted-foreground));
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.bl-steps,
.bl-warns {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bl-steps {
  counter-reset: step;
}

.bl-steps li {
  position: relative;
  min-height: 22px;
  padding-left: 32px;
  color: hsl(var(--foreground));
  font-size: 13px;
  line-height: 1.5;
  counter-increment: step;
}

.bl-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--cream);
  background: #dbd5be1a;
  font-family: "Geist Mono", "SFMono-Regular", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
}

.bl-modal-warn {
  padding: 14px 16px;
  border: 1px solid rgba(251, 113, 133, .28);
  border-radius: 10px;
  background: rgba(251, 113, 133, .035);
}

.bl-modal-warn .bl-modal-h5 {
  color: var(--danger);
}

.bl-warns li {
  position: relative;
  padding-left: 15px;
  color: hsl(var(--foreground) / .88);
  font-size: 12px;
  line-height: 1.5;
}

.bl-warns li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--danger);
}

.bl-modal-ok {
  width: 100%;
  margin-top: 20px;
}

.recovery-modal {
  max-width: 526px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.recovery-modal .bl-modal-ok {
  margin-top: auto;
}

.bl-modal-ic {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #dbd5be15;
  color: var(--cream);
}

.modal-file {
  margin-top: 14px;
}

.bl-confirm-line {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 16px 0 0;
  color: #cfcfcf;
  font-size: 12.5px;
  line-height: 1.5;
}

.bl-confirm-line input {
  width: 13px;
  height: 13px;
  margin-top: 3px;
  accent-color: #60a5fa;
}

.bl-closed-card {
  width: 150px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  text-align: left;
}

.bl-closed-card strong {
  color: #cfcfcf;
  font-size: 14px;
  line-height: 21px;
}

.bl-closed-card p {
  margin: 0;
  color: #9a9a9a;
  font-size: 12.5px;
  line-height: 1.55;
  letter-spacing: -.15px;
  white-space: nowrap;
}

.bl-wrap[data-screen="cancelled"] .bl-tl-track {
  transform: translateY(calc(var(--sh) * -0 - var(--sh) / 2));
}

.bl-step[data-state="cancelled"] {
  opacity: 1;
}

.bl-step[data-state="cancelled"] .bl-node {
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted));
  border-color: hsl(var(--border));
  box-shadow: none;
}

.bl-step[data-state="cancelled"] .bl-l {
  color: hsl(var(--foreground) / .8);
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
