/* ==========================================================================
   Veyroq Cockpit — Institutional Audit & Decryption Console
   Palette: Muted Sage Grey (#A5A79B), Warm Cream Beige (#E0D2B5 / #EAE3D2),
            Deep Burgundy (#590907), Deep Ink (#151716).
   ========================================================================== */

:root {
  /* Exact Brand Colors */
  --sage-grey: #A5A79B;
  --sage-dark: #8C8F81;
  --sage-light: #B8B9AF;
  --sage-tint: rgba(165, 167, 155, 0.22);
  --sage-hairline: rgba(140, 143, 129, 0.45);

  --cream-beige: #E0D2B5;
  --cream-light: #F4EEDF;
  --cream-deep: #D4C3A3;
  --cream-canvas: #EAE3D2;
  --cream-surface: #FAF7F0;

  --burgundy: #590907;
  --burgundy-hover: #3E0604;
  --burgundy-light: #7A0C0A;
  --burgundy-tint: rgba(89, 9, 7, 0.12);

  --ink-primary: #151716;
  --ink-secondary: #3A3D3B;
  --ink-muted: #5C605D;

  --green-verified: #15803D;
  --green-tint: rgba(21, 128, 61, 0.12);
  --gold-accent: #C5A059;

  --radius-bento: 16px;
  --radius-card: 12px;
  --radius-sm: 8px;

  --shadow-bento: 0 4px 18px rgba(21, 23, 22, 0.04);
  --shadow-hover: 0 8px 24px rgba(89, 9, 7, 0.08);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--cream-canvas);
  color: var(--ink-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   1. FLOATING TOP NAVIGATION BAR
   -------------------------------------------------------------------------- */
.nav-wrapper {
  padding: 16px 32px 0;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.cockpit-nav {
  background: var(--cream-beige);
  border: 1.5px solid var(--sage-dark);
  border-radius: var(--radius-card);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-bento);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark-img {
  width: 28px;
  height: 28px;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.2px;
  color: var(--burgundy);
}

/* Dynamic Plan Badge beside logo */
.plan-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.plan-badge.free,
.plan-badge.single {
  background: var(--cream-light);
  border: 1.5px solid var(--burgundy-subtle);
  color: var(--burgundy);
}

.plan-badge.none {
  background: var(--sage-grey);
  border: 1px solid var(--sage-dark);
  color: var(--ink-secondary);
}

.plan-badge.enterprise {
  background: var(--cream-light);
  border: 1.5px solid var(--burgundy);
  color: var(--burgundy);
}

.plan-badge.partner {
  background: var(--burgundy);
  border: 1.5px solid var(--burgundy);
  color: #FAF6ED;
}

.btn-plan-manage {
  background: var(--burgundy);
  border: 1px solid var(--burgundy);
  color: #FAF6ED;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-plan-manage:hover {
  background: var(--burgundy-hover);
  color: #FAF6ED;
  border-color: var(--burgundy-hover);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.security-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--ink-secondary);
  font-weight: 500;
  background: var(--cream-light);
  border: 1px solid var(--sage-dark);
  padding: 5px 12px;
  border-radius: 20px;
}

.doc-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.doc-link:hover {
  color: var(--burgundy);
}

/* --------------------------------------------------------------------------
   2. MAIN COCKPIT CONTAINER
   -------------------------------------------------------------------------- */
.cockpit-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cockpit-footer-wrapper {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px 28px;
}

.cockpit-footer {
  background: var(--cream-beige);
  border: 1.5px solid var(--sage-dark);
  border-radius: var(--radius-card);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-secondary);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   3. OPTION A: UNIFIED EDITORIAL METRIC STRIP (Top Hero Area)
   -------------------------------------------------------------------------- */
.unified-metric-strip {
  background: var(--cream-beige);
  border: 1.5px solid var(--sage-dark);
  border-radius: var(--radius-bento);
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1.3fr 1.2fr;
  box-shadow: var(--shadow-bento);
  overflow: hidden;
}

.metric-cell {
  padding: 18px 22px;
  border-right: 1.5px solid var(--sage-hairline);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-cell:last-child {
  border-right: none;
  background: var(--cream-light);
}

.cell-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.cell-stat-big {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 600;
  color: var(--burgundy);
  line-height: 1;
  margin-bottom: 6px;
}

.cell-meta-row {
  font-size: 0.8rem;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-strip-export {
  background: var(--burgundy);
  color: #FAF6ED;
  border: none;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 8px;
  transition: background-color 0.15s ease;
}

.btn-strip-export:hover {
  background: var(--burgundy-hover);
}

/* --------------------------------------------------------------------------
   4. BALANCED TWO-CARD WORKSPACE (Equal 420px Pixel Height)
   -------------------------------------------------------------------------- */
.two-card-workspace {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: stretch;
}

.workspace-card {
  background: var(--cream-beige);
  border: 1.5px solid var(--sage-dark);
  border-radius: var(--radius-bento);
  box-shadow: var(--shadow-bento);
  display: flex;
  flex-direction: column;
  height: 420px; /* Equal calibrated height */
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.workspace-card:hover {
  border-color: var(--burgundy);
}

.card-title-bar {
  padding: 12px 18px;
  background: var(--cream-light);
  border-bottom: 1.5px solid var(--sage-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.card-title-text {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--burgundy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-inner-body {
  padding: 18px 20px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* LEFT CARD: Audit Configuration */
.view-segmented-toggle {
  background: var(--cream-light);
  border: 1px solid var(--sage-dark);
  border-radius: 9px;
  padding: 3px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.segment-btn {
  text-align: center;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--ink-secondary);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.segment-btn.active {
  background: var(--burgundy);
  color: #FAF6ED;
}

.field-group {
  margin-bottom: 11px;
  flex-shrink: 0;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-secondary);
  margin-bottom: 5px;
}

.field-control {
  width: 100%;
  padding: 7px 11px;
  background: var(--cream-light);
  border: 1px solid var(--sage-dark);
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  color: var(--ink-primary);
  outline: none;
  transition: border-color 0.15s ease;
}

.field-control:focus {
  border-color: var(--burgundy);
}

.btn-fetch-rpc {
  margin-top: auto;
  width: 100%;
  background: var(--burgundy);
  color: #FAF6ED;
  font-size: 12px;
  font-weight: 600;
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.btn-fetch-rpc:hover {
  background: var(--burgundy-hover);
}

.btn-fetch-rpc:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-text-link {
  background: transparent;
  border: none;
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  margin-top: 6px;
  text-decoration: underline;
}

/* RIGHT CARD: Decrypted Treasury Transactions */
.table-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-shrink: 0;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream-light);
  border: 1px solid var(--sage-dark);
  border-radius: 8px;
  padding: 5px 10px;
  flex: 1;
  max-width: 280px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 12px;
  width: 100%;
  color: var(--ink-primary);
}

.category-filter-pills {
  display: flex;
  gap: 5px;
}

.cat-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--cream-light);
  border: 1px solid var(--sage-dark);
  cursor: pointer;
  color: var(--ink-secondary);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cat-pill.active {
  background: var(--burgundy);
  color: #FAF6ED;
  border-color: var(--burgundy);
}

.table-scroll-area {
  flex: 1;
  overflow: auto;
  border: 1px solid var(--sage-dark);
  border-radius: 9px;
  background: var(--cream-light);
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ledger-table th {
  position: sticky;
  top: 0;
  background: var(--sage-grey);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-secondary);
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--sage-dark);
  z-index: 2;
}

.ledger-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--sage-hairline);
  vertical-align: middle;
}

.ledger-table tr:hover {
  background: var(--cream-surface);
}

.font-mono {
  font-family: var(--font-mono);
}

.table-tx-link {
  color: var(--burgundy);
  text-decoration: none;
  font-weight: 500;
}

.table-badge {
  background: var(--sage-grey);
  border: 1px solid var(--sage-dark);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-tag-action {
  background: var(--cream-beige);
  border: 1px solid var(--sage-dark);
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-tag-action:hover {
  background: var(--burgundy);
  color: #FAF6ED;
}

.redacted-pill {
  background: var(--ink-primary);
  color: #FAF6ED;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  display: inline-block;
}

/* BOTTOM TRIGGER STRIP FOR LIVE COMPLIANCE MODAL */
.compliance-footer-strip {
  margin-top: 10px;
  background: var(--cream-light);
  border: 1.5px dashed var(--burgundy);
  border-radius: 9px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.compliance-footer-strip:hover {
  background: var(--burgundy-tint);
}

.strip-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.strip-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--burgundy);
}

.strip-meta {
  font-size: 11px;
  color: var(--ink-secondary);
}

.btn-open-compliance {
  background: var(--burgundy);
  color: #FAF6ED;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* --------------------------------------------------------------------------
   5. MODALS (Privy Auth, Live Compliance, Plan Management, Tagging)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21, 23, 22, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-card {
  width: 500px;
  max-width: 95vw;
  background: var(--cream-surface);
  border: 1.5px solid var(--sage-dark);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(89, 9, 7, 0.18);
  position: relative;
  animation: popUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popUp {
  0% { opacity: 0; transform: scale(0.95) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.btn-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream-light);
  border: 1px solid var(--sage-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ink-secondary);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-close:hover {
  background: var(--burgundy);
  color: #FAF6ED;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--burgundy);
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.45;
  margin-bottom: 20px;
}

/* Privy Option Tiles */
.wallet-option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--cream-light);
  border: 1px solid var(--sage-dark);
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  text-align: left;
}

.wallet-option-btn:hover {
  border-color: var(--burgundy);
  background: #FFFFFF;
}

.wallet-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--cream-surface);
  border: 1px solid var(--sage-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy);
  margin-right: 12px;
}

.wallet-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wallet-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
}

.wallet-detail {
  font-size: 11px;
  color: var(--ink-muted);
}

.wallet-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--sage-grey);
  color: var(--ink-primary);
  border: 1px solid var(--sage-dark);
}

.wallet-badge.badge-tag-connected {
  background: #DCFCE7;
  color: #15803D;
  border-color: rgba(21, 128, 61, 0.25);
}

.privy-email-box {
  background: var(--cream-light);
  border: 1px solid var(--sage-dark);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

/* Compliance Certificate Box */
.cert-display-card {
  background: var(--cream-light);
  border: 1.5px dashed var(--burgundy);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.cert-title-badge {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 4px;
}

.cert-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--sage-hairline);
  font-size: 12px;
}

.cert-detail-row .lbl { color: var(--ink-secondary); }
.cert-detail-row .val { font-family: var(--font-mono); font-weight: 500; color: var(--ink-primary); }

.modal-export-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

/* Plan Management Cards */
.plan-manage-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.plan-tile {
  background: var(--cream-light);
  border: 1.5px solid var(--sage-dark);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.plan-tile:hover {
  border-color: var(--burgundy);
  background: var(--cream-beige);
}

.plan-tile.active-tier {
  border-color: var(--sage-dark);
  background: var(--cream-light);
}

.plan-tile-left {
  display: flex;
  flex-direction: column;
}

.plan-tile-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
}

.plan-tile-sub {
  font-size: 11px;
  color: var(--ink-secondary);
}

.btn-select-tier {
  background: var(--cream-beige);
  border: 1px solid var(--sage-dark);
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-select-tier.current {
  background: var(--burgundy);
  color: #FAF6ED;
  border-color: var(--burgundy);
}

.billing-notice-box {
  background: var(--cream-light);
  border: 1px solid var(--sage-dark);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11px;
  color: var(--ink-secondary);
  line-height: 1.4;
  margin-top: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--burgundy);
  color: #FAF6ED;
  border: none;
}

.btn-primary:hover {
  background: var(--burgundy-hover);
}

.btn-secondary {
  background: var(--cream-light);
  color: var(--burgundy);
  border: 1px solid var(--sage-dark);
}

.btn-secondary:hover {
  border-color: var(--burgundy);
  background: var(--cream-surface);
}

.btn-sm {
  font-size: 11px;
  padding: 6px 14px;
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   6. CONNECTED ACCOUNT SESSION & COPY HELPERS
   -------------------------------------------------------------------------- */
#btn-wallet-connect.connected {
  background: var(--burgundy);
  color: #FAF6ED;
  border: 1.5px solid var(--burgundy);
}

#btn-wallet-connect.connected:hover {
  background: var(--burgundy-hover);
}

.btn-copy-inline {
  background: var(--cream-light);
  border: 1px solid var(--sage-dark);
  color: var(--burgundy);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-copy-inline:hover {
  background: var(--burgundy);
  color: #FAF6ED;
  border-color: var(--burgundy);
}

.btn-copy-micro {
  background: transparent;
  border: none;
  color: var(--ink-secondary);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.btn-copy-micro:hover {
  color: var(--burgundy);
  background: var(--sage-tint);
}

.account-session-card {
  background: var(--cream-light);
  border: 1px solid var(--sage-dark);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.session-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--burgundy);
  background: var(--cream-surface);
  border: 1px solid var(--sage-dark);
  padding: 3px 8px;
  border-radius: 6px;
}

.session-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 7px 10px;
  background: var(--cream-surface);
  border-radius: 8px;
  border: 1px solid var(--sage-hairline);
}

.detail-label {
  color: var(--ink-muted);
  font-weight: 500;
}

.detail-value {
  color: var(--ink-primary);
  font-weight: 600;
  font-family: var(--font-mono);
}

.session-address-block,
.session-balance-block {
  background: var(--cream-surface);
  border: 1px solid var(--sage-dark);
  border-radius: 10px;
  padding: 12px;
}

.balance-display-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.balance-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--burgundy);
}

.address-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.address-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.address-network-label {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 500;
}

.address-display-box {
  padding: 8px 10px;
  background: var(--cream-light);
  border: 1px dashed var(--sage-dark);
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--burgundy);
  font-weight: 600;
  word-break: break-all;
  line-height: 1.45;
  margin-bottom: 10px;
  user-select: all;
}

.address-action-row {
  display: flex;
  gap: 8px;
}

.address-action-row .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  text-decoration: none;
}

.btn-disconnect-session {
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  color: var(--burgundy);
  border: 1.5px solid var(--burgundy);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-disconnect-session:hover {
  background: var(--burgundy);
  color: #FAF6ED;
}

/* --------------------------------------------------------------------------
   8. TREASURY VAULT TWO-TIER CONTROLS & SIWE MODAL (EIP-4361 Guardrails)
   -------------------------------------------------------------------------- */
.vault-tier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding: 4px 0;
}

.badge-tier {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-tier.unverified {
  background: var(--cream-surface);
  color: var(--ink-secondary);
  border: 1px solid var(--sage-dark);
}

.badge-tier.verified {
  background: #EAF4EE;
  color: #1E6B37;
  border: 1px solid #B8DEC3;
}

.btn-verify-tier {
  background: transparent;
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-verify-tier:hover {
  background: var(--burgundy);
  color: #FAF6ED;
}

.btn-verify-tier.verified {
  border-color: #1E6B37;
  color: #1E6B37;
  cursor: default;
}

.btn-verify-tier.verified:hover {
  background: transparent;
  color: #1E6B37;
}

.siwe-security-notice {
  background: var(--cream-surface);
  border: 1px solid var(--sage-dark);
  border-left: 3px solid var(--burgundy);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.security-notice-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.security-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 8px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.security-checklist li {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-primary);
  position: relative;
  padding-left: 14px;
}

.security-checklist li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--burgundy);
  font-weight: bold;
}

.security-checklist code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--cream-light);
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid var(--sage-hairline);
}

.security-warning-box {
  font-size: 11px;
  font-weight: 600;
  color: #8A201C;
  background: #FDF2F0;
  border: 1px solid #F5C6C2;
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1.4;
}

.siwe-challenge-box {
  background: var(--cream-surface);
  border: 1px solid var(--sage-dark);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--ink-primary);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 140px;
  overflow-y: auto;
  margin: 0;
}

/* Auditor Policy Items & List */
.auditor-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 10px;
}

.auditor-item {
  background: var(--cream-surface);
  border: 1px solid var(--sage-dark);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auditor-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.auditor-meta strong {
  color: var(--burgundy);
  font-weight: 600;
}

.auditor-meta small {
  color: var(--ink-secondary);
  font-size: 11px;
}

@media (max-width: 1024px) {
  .unified-metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-card-workspace {
    grid-template-columns: 1fr;
  }
  .workspace-card {
    height: auto;
    min-height: 320px;
  }
  .table-scroll-area {
    max-height: 360px;
  }
}
