/* ============================================
   PORTFOLIO — wallet overview, ZRC-20 holdings,
   recent activity. Reuses trade-page chrome.
   ============================================ */

/* Empty state (no wallet) */
.pf-empty {
  max-width: 560px;
  margin: 80px auto;
  text-align: center;
  padding: 60px 32px;
  border: 1px solid var(--line-2);
  background: var(--bg-elev);
  border-radius: 2px;
}
.pf-empty-mark {
  font-size: 56px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 18px;
}
.pf-empty h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.pf-empty p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 24px;
}
.pf-empty-foot {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.pf-empty-foot a { color: var(--accent); }

/* Connected shell */
.pf-shell {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 28px 0 60px;
}

/* Head card */
.pf-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.pf-head-left {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.pf-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.pf-addr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 12px 14px;
  max-width: 580px;
}
.pf-addr {
  font-family: var(--mono);
  font-size: 14px;
  word-break: break-all;
  color: var(--text);
  flex: 1;
  line-height: 1.45;
}
.pf-copy {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.pf-copy:hover { color: var(--accent); border-color: var(--accent); }

.pf-head-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.pf-sep { color: var(--text-muted); }
.pf-head-meta a {
  color: var(--accent);
  text-decoration: none;
}
.pf-head-meta a:hover { text-decoration: underline; }

.pf-head-right {
  flex-shrink: 0;
  min-width: 240px;
}
.pf-zec-card {
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 280px;
}
.pf-zec-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.pf-zec-value {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.pf-zec-sub {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.pf-zec-sub.warn { color: var(--red); }

/* Cardinal UTXOs row inside the ZEC balance card. Separated from the
   ZEC value by a thin divider so it reads as a related-but-distinct
   piece of info, not a continuation of the balance. */
.pf-zec-slots {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pf-slots-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pf-slots-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.pf-slots-value {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}
.pf-slots-value.pf-slots-warn { color: var(--accent); }
.pf-slots-value.pf-slots-good { color: var(--green); }
.pf-slots-btn {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.pf-slots-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* Sections */
.pf-section { display: flex; flex-direction: column; gap: 18px; }
.pf-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.pf-section-num {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
.pf-section-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 6px;
}
.pf-section-meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* Holdings table */
.pf-table {
  border: 1px solid var(--line-2);
  border-radius: 2px;
  overflow: hidden;
}
.pf-table-head, .pf-table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.4fr 0.8fr;
  gap: 16px;
  padding: 14px 20px;
  align-items: center;
}
.pf-table-head {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.pf-table-row {
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.pf-table-row:last-child { border-bottom: 0; }
.pf-table-row:hover { background: var(--bg-elev); }

.pf-row-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pf-row-ticker-mark {
  width: 36px; height: 36px;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}
.pf-row-ticker-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pf-row-ticker-name {
  font-size: 15px;
  font-weight: 500;
}
.pf-row-ticker-sub {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.pf-row-num {
  font-family: var(--mono);
  font-size: 14.5px;
  color: var(--text);
}
.pf-row-num-sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 3px;
}

.pf-progress-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pf-progress-track {
  height: 4px;
  background: var(--bg-elev);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--line-2);
}
.pf-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}
.pf-progress-fill.done { background: var(--green); }
.pf-progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.pf-row-action {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 9px 14px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.pf-row-action:hover { color: var(--accent); border-color: var(--accent); }

/* TRADING_LOCKED: holder still sees the balance, but the trade CTA is
   replaced with a disabled "Trading soon" badge. No hover state, not
   a link, cursor change makes it clear the action isn't yet live. */
.pf-row-action-locked {
  opacity: 0.55;
  cursor: not-allowed;
  display: inline-block;
}
.pf-row-action-locked:hover {
  color: var(--text-dim);
  border-color: var(--line-2);
}

.pf-empty-row {
  padding: 60px 32px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}
.pf-empty-row strong { display: block; color: var(--text); margin-bottom: 6px; font-weight: 500; font-size: 15px; }
.pf-empty-row p { color: var(--text-muted); font-size: 13px; max-width: 420px; margin: 6px auto 0; line-height: 1.55; }

/* Events */
.pf-events {
  border: 1px solid var(--line-2);
  border-radius: 2px;
  overflow: hidden;
}
.pf-events-loading,
.pf-events-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.pf-event {
  display: grid;
  grid-template-columns: 90px 1fr 1fr 130px;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.pf-event:last-child { border-bottom: 0; }
.pf-event-op {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  text-align: center;
  color: var(--text-dim);
}
.pf-event-op.mint     { color: var(--green); border-color: rgba(74, 222, 128, 0.3); }
.pf-event-op.transfer { color: var(--text);  border-color: var(--line-2); }
.pf-event-op.trade,
.pf-event-op.list     { color: var(--accent); border-color: rgba(244, 183, 40, 0.3); }
.pf-event-op.deploy   { color: #60a5fa; border-color: rgba(96, 165, 250, 0.3); }

.pf-event-ticker {
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 500;
}
.pf-event-amt {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
}
.pf-event-time {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* Small grey text after the amount: "from t1abc…", "0.0001 ZEC/tok", etc.
   Lives inside .pf-event-amt to keep it on the same line on desktop. */
.pf-event-detail {
  color: var(--text-muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

/* Inline cancel button on a 'list' row in the unified feed. Sized to
   match the time-ago line so the row height doesn't jump between
   listing and event rows. */
.pf-event-cancel {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 2px;
  letter-spacing: 0.04em;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.pf-event-cancel:hover:not(:disabled) {
  background: var(--red);
  color: #000;
}
.pf-event-cancel:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pf-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.pf-pager-info {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* Open-listings section was folded into the unified activity feed —
   each open listing now renders as a .pf-event row with op='list' and
   an inline .pf-event-cancel button. The old .pf-listing* styles are
   gone; everything routes through .pf-event styling above. */

@media (max-width: 880px) {
  .pf-table-head, .pf-table-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 8px;
  }
  .pf-table-head > div:nth-child(3),
  .pf-table-head > div:nth-child(4),
  .pf-table-head > div:nth-child(5),
  .pf-table-row > div:nth-child(3),
  .pf-table-row > div:nth-child(4),
  .pf-table-row > div:nth-child(5) { display: none; }
  .pf-event { grid-template-columns: 60px 1fr 80px; }
  .pf-event > div:nth-child(3) { display: none; }
}

/* Phone: 10px header labels and 10px sub-numbers are unreadable.
   Bump to the 11.5/12px floor; tighten padding so the wider type
   still fits without overflow. */
@media (max-width: 480px) {
  .pf-table-head { font-size: 11.5px; letter-spacing: 0.06em; }
  .pf-row-num-sub { font-size: 11.5px; }
  .pf-table-head, .pf-table-row { padding: 10px 12px; }
  .pf-addr-row { padding: 12px 14px; }
}
