/* Phase 2 additions only. Everything here is new surface area — nothing in
   styles.css is overridden except where noted. */

/* --------------------------------------------------------- account pill */

.acct { position: relative; }

.acct-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 700;
}

.acct-pill:hover { background: rgba(255, 255, 255, 0.09); }

.acct-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #10b981;
  flex: none;
}

.acct-pill .total { color: var(--text-muted); }
.acct-pill .chev { color: var(--text-muted); display: flex; }

.acct-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-height: 560px;
  overflow-y: auto;
  padding: 14px;
  border-radius: 14px;
  background: #0c0d0f;
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  display: none;
  text-align: left;
}

.acct.open .acct-panel { display: block; }

.acct-top { display: flex; align-items: center; justify-content: space-between; }
.acct-top .nm { font-size: 13px; font-weight: 700; }

.acct-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
}

.acct-badge i { width: 6px; height: 6px; border-radius: 999px; background: #10b981; }

.acct-total { margin-top: 6px; font-size: 28px; font-weight: 800; letter-spacing: -0.8px; }
.acct-break { margin-top: 2px; font-size: 11px; font-weight: 700; color: var(--text-muted); }

.acct-addr {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--surface-sunk);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.acct-addr button { margin-left: auto; display: flex; color: var(--text-muted); }
.acct-addr button:hover { color: var(--text-bright); }

.acct-div { height: 1px; margin: 12px 0; background: var(--line); }

.acct-how {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.acct-how:hover { color: var(--text-bright); }
.acct-how-body { display: none; margin-top: 8px; }
.acct-how-body.open { display: block; }

.acct-sec {
  margin-top: 13px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.acct-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 6px;
  margin: 0 -6px;
  border-radius: 9px;
}

.acct-row:hover { background: var(--hover); }
.acct-row .ico { position: relative; flex: none; }
.acct-row .ico > img { width: 28px; height: 28px; border-radius: 999px; object-fit: cover; }
.acct-row .s { font-size: 12px; font-weight: 800; }
.acct-row .c { font-size: 10px; font-weight: 700; color: var(--text-muted); }
.acct-row .r { margin-left: auto; text-align: right; }
.acct-row .r .a { font-size: 12px; font-weight: 800; }
.acct-row .r .u { font-size: 10px; font-weight: 700; color: var(--text-muted); }
.acct-row .r .p { font-size: 10px; font-weight: 800; }

.acct-actions { display: flex; gap: 8px; margin-top: 14px; }

.acct-actions .btn {
  flex: 1;
  height: 40px;
  font-size: 12px;
  border-radius: 10px;
}

.acct-logout {
  width: 100%;
  height: 36px;
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: #fca5a5;
}

.acct-logout:hover { background: rgba(252, 165, 165, 0.08); }

/* ----------------------------------------------------- the asset dropper */

.dropper { position: relative; }

.dropper-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  text-align: left;
}

.dropper-btn:hover { background: rgba(255, 255, 255, 0.07); }
.dropper-btn .ico { position: relative; flex: none; }
.dropper-btn .ico > img { width: 28px; height: 28px; border-radius: 999px; object-fit: cover; }
.dropper-btn .s { font-size: 13px; font-weight: 800; }
.dropper-btn .c { font-size: 10px; font-weight: 700; color: var(--text-muted); }
.dropper-btn .r { margin-left: auto; text-align: right; }
.dropper-btn .r .a { font-size: 12px; font-weight: 800; }
.dropper-btn .r .u { font-size: 10px; font-weight: 700; color: var(--text-muted); }
.dropper-btn .chev { color: var(--text-muted); display: flex; flex: none; }

.dropper-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 306px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  background: #0c0d0f;
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.62);
  display: none;
}

.dropper.open .dropper-menu { display: block; }

.dropper-menu .gh {
  padding: 7px 8px 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dropper-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border-radius: 9px;
  text-align: left;
}

.dropper-opt:hover { background: var(--hover); }
.dropper-opt[disabled] { opacity: 0.36; cursor: not-allowed; }
.dropper-opt .ico { position: relative; flex: none; }
.dropper-opt .ico > img { width: 26px; height: 26px; border-radius: 999px; object-fit: cover; }
.dropper-opt .s { font-size: 12px; font-weight: 800; }
.dropper-opt .c { font-size: 10px; font-weight: 700; color: var(--text-muted); }
.dropper-opt .r { margin-left: auto; text-align: right; }
.dropper-opt .r .a { font-size: 12px; font-weight: 800; }
.dropper-opt .r .u { font-size: 10px; font-weight: 700; color: var(--text-muted); }

.tag-default {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(var(--accent-rgb), 0.16);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--accent);
  vertical-align: 1px;
}

/* ------------------------------------------------------ trade card extras */

.amt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--surface-sunk);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.amt-row input {
  flex: 1;
  min-width: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.amt-row input::placeholder { color: rgba(255, 255, 255, 0.28); }
.amt-row .unit { font-size: 13px; font-weight: 800; color: var(--text-muted); flex: none; }

.receive {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.receive b { color: var(--text-bright); font-weight: 800; }

.cash-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.07);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-bright);
}

.cash-line .k { color: var(--text-muted); }

.pos-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.pos-line b { color: var(--text-bright); font-weight: 800; }

/* -------------------------------------------------------- quick buy pill */

.qb {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 11px;
  font-weight: 800;
}

.qb:hover { background: var(--accent-dark); }
.qb[data-done="1"] { background: var(--up); color: #06210f; }

/* --------------------------------------------------------------- toasts */

.toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: grid;
  gap: 8px;
  width: 320px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #101114;
  border: 1px solid var(--line-2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  animation: toast-in 0.22s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

.toast .ok { color: var(--up); flex: none; margin-top: 1px; }
.toast .t { font-size: 12px; font-weight: 800; }
.toast .s { margin-top: 2px; font-size: 11px; font-weight: 600; line-height: 1.5; color: var(--text-muted); }

/* ------------------------------------------------------- chain badge chip */

.chain-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--text-bright);
}

.chain-chip img { width: 11px; height: 11px; border-radius: 999px; }

.badge-stack {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.badge-stack .badge { position: static; }

/* ---------------------------------------------------------- modal extras */

.field { margin-top: 12px; }

.field > .l {
  display: block;
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rows { display: grid; gap: 7px; }

.pick {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  text-align: left;
}

.pick:hover { background: rgba(255, 255, 255, 0.07); }
.pick[aria-pressed="true"] { border-color: rgba(var(--accent-rgb), 0.45); background: rgba(var(--accent-rgb), 0.08); }
.pick .ico { position: relative; flex: none; }
.pick .ico > img { width: 26px; height: 26px; border-radius: 999px; object-fit: cover; }
.pick .s { font-size: 12px; font-weight: 800; }
.pick .c { font-size: 10px; font-weight: 700; color: var(--text-muted); }
.pick .r { margin-left: auto; text-align: right; font-size: 12px; font-weight: 800; }

.tx-details {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-sunk);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.tx-details div {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.tx-details div b { color: var(--text-bright); font-weight: 800; }
