/* The wallet. Two columns on a desk, one column on a phone. */

/* keeps the footer off the middle of the screen on short pages */
.app-shell { padding: 26px 16px 0; min-height: calc(100vh - 230px); }

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 16px;
  align-items: start;
}

.card { padding: 22px; }
.card > .tabs { margin-bottom: 20px; }

.gate { max-width: 560px; margin: 8vh auto 0; text-align: center; }
.gate .mark {
  width: 116px;
  margin: 0 auto 26px;
  display: block;
  filter: drop-shadow(0 0 34px rgba(6, 87, 254, 0.75)) drop-shadow(0 0 90px rgba(6, 87, 254, 0.35));
  animation: gate-breathe 6s ease-in-out infinite;
}
@keyframes gate-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.025); }
}
.gate h2 { margin-bottom: 12px; }
.gate p { margin: 0 auto 22px; max-width: 46ch; }

.balance-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.balance-big { font-family: var(--mono); font-size: 34px; letter-spacing: -0.04em; line-height: 1.1; }
.balance-sub { color: var(--faint); font-size: 12.5px; }

.asset-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(118, 150, 220, 0.09);
}
.asset-row:last-child { border-bottom: 0; }
.asset-row .sym { font-weight: 600; font-size: 14px; }
.asset-row .nm { font-size: 12px; color: var(--faint); }
.asset-row .amt { margin-left: auto; font-family: var(--mono); font-size: 15px; text-align: right; }
.asset-row .amt small { display: block; color: var(--faint); font-size: 11px; font-family: var(--ui); }
.asset-ico {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(6, 87, 254, 0.14);
  border: 1px solid var(--line);
  font-size: 11px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--blue-soft);
}

.picker { display: flex; gap: 6px; flex-wrap: wrap; }
.picker button {
  height: 34px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.picker button.on { color: var(--text); border-color: rgba(6,87,254,.6); background: rgba(6,87,254,.12); }

.hint { font-size: 12.5px; color: var(--faint); line-height: 1.5; }
.hint strong { color: var(--muted); font-weight: 500; }

.summary { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.summary div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--faint); }
.summary div b { color: var(--text); font-weight: 500; font-family: var(--mono); }

.addr-box {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  background: rgba(4, 7, 16, 0.7); border: 1px solid var(--line);
}
.addr-box code { font-family: var(--mono); font-size: 12px; color: var(--blue-soft); flex: 1; word-break: break-all; }

.progress { height: 3px; border-radius: 2px; background: rgba(118,150,220,.14); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--blue); width: 0; transition: width .25s ease; }

.work {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(3, 5, 11, 0.78);
  backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
}
.work .panel { width: min(460px, 100%); box-shadow: var(--shadow); text-align: center; }
.work h3 { margin-bottom: 6px; }
.work .steps, .work .hint { text-align: left; }

/* the mask does the waiting with you: it lights up while the proof is built */
.work .mask {
  width: 92px;
  display: block;
  margin: 2px auto 16px;
  filter: drop-shadow(0 0 26px rgba(6, 87, 254, 0.8));
  animation: working 1.9s ease-in-out infinite;
}
@keyframes working {
  0%, 100% { opacity: 0.72; transform: scale(0.985); filter: drop-shadow(0 0 18px rgba(6, 87, 254, 0.55)); }
  50% { opacity: 1; transform: scale(1.03); filter: drop-shadow(0 0 40px rgba(6, 87, 254, 0.95)); }
}

.empty-mask {
  width: 58px;
  display: block;
  margin: 10px auto 12px;
  opacity: 0.22;
  filter: drop-shadow(0 0 16px rgba(6, 87, 254, 0.4));
}

.note-list { display: grid; gap: 8px; }
.note {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(4,7,16,.5);
  font-size: 13px;
}
.note .amt { font-family: var(--mono); margin-left: auto; }
.note .lin { font-family: var(--mono); font-size: 11px; color: var(--faint); }

.warn-box {
  border: 1px solid rgba(255, 180, 92, 0.3);
  background: rgba(255, 180, 92, 0.06);
  color: var(--warn);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 920px) {
  .app-grid { grid-template-columns: 1fr; }
}

.page-head { margin: 8px 0 26px; max-width: 70ch; }
.page-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.page-sub { font-size: 16px; margin: 0; }
.cols-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,380px); gap: 16px; align-items: start; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
@media (max-width: 920px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }
.kv { display: grid; gap: 10px; }
.kv > div { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; color: var(--muted); }
.kv > div b { color: var(--text); font-weight: 500; font-family: var(--mono); }
.prop { padding: 16px 18px; }
.prop h3 { font-size: 15px; margin-bottom: 6px; }
.bar { height: 6px; border-radius: 3px; background: rgba(255,107,107,.25); overflow: hidden; margin: 10px 0 6px; }
.bar i { display: block; height: 100%; background: var(--good); }
