/* ============================================================================
   Web3 LLC Trust Vault — dashboard, auth and withdrawal UI
   ----------------------------------------------------------------------------
   Colours, radii and fonts are inherited from the active theme's CSS variables
   with safe fallbacks, so the dashboard matches the site and still renders if
   the theme changes.
   ========================================================================== */

.w3v-shell,
.w3v-auth-wrap {
  --w3v-primary: var(--primary, #3a96ff);
  --w3v-primary-ink: #04121f;
  --w3v-surface: var(--surface, #0f1e2e);
  --w3v-surface-2: var(--surface-2, #131f2e);
  --w3v-bg-alt: var(--bg-alt, #09131d);
  --w3v-line: var(--line, #1e2329);
  --w3v-line-soft: var(--line-soft, rgba(218, 218, 218, 0.12));
  --w3v-text: var(--text, #fff);
  --w3v-muted: var(--text-muted, #dadada);
  --w3v-dim: var(--text-dim, rgba(255, 255, 255, 0.7));
  --w3v-radius: var(--radius, 14px);
  --w3v-radius-sm: var(--radius-sm, 10px);
  --w3v-green: var(--accent-mint, #12ffb8);
  --w3v-gold: var(--secondary, #f0b90b);
  --w3v-red: #ff6b7a;
  --w3v-font: var(--font, "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif);
  color: var(--w3v-text);
  font-family: var(--w3v-font);
}

/* ------------------------------------------------------------ page spacing */
/* Only adjust the bottom spacing: the theme reserves the fixed header height
   in padding-top, and overriding the shorthand would slide content under it. */
.w3v-dashboard-page .w3-page-wrap,
.w3v-auth-page .w3-page-wrap {
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.w3v-dashboard-page .w3-page-head,
.w3v-auth-page .w3-page-head {
  display: none;
}
.w3v-dashboard-page .w3-entry,
.w3v-auth-page .w3-entry {
  max-width: none;
}

/* -------------------------------------------------------------- shell grid */
.w3v-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.w3v-side {
  position: sticky;
  top: calc(var(--header-h, 80px) + 1.5rem);
  background: linear-gradient(180deg, var(--w3v-surface-2), var(--w3v-surface));
  border: 1px solid var(--w3v-line);
  border-radius: var(--w3v-radius);
  padding: 1.25rem;
}

.w3v-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--w3v-line-soft);
}
.w3v-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(58, 150, 255, 0.16);
  color: var(--w3v-primary);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.w3v-user__meta { min-width: 0; display: grid; }
.w3v-user__name { font-weight: 600; }
.w3v-user__email {
  font-size: 0.8rem;
  color: var(--w3v-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* dashboard nav toggle (mobile) */
.w3v-nav-toggle {
  display: none;
  width: 100%;
  margin-top: 1rem;
  padding: 0.7rem 0.9rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--w3v-surface-2);
  border: 1px solid var(--w3v-line);
  border-radius: var(--w3v-radius-sm);
  color: var(--w3v-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.w3v-nav-toggle__bars { display: grid; gap: 4px; width: 20px; }
.w3v-nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.w3v-nav-toggle[aria-expanded="true"] .w3v-nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.w3v-nav-toggle[aria-expanded="true"] .w3v-nav-toggle__bars span:nth-child(2) { opacity: 0; }
.w3v-nav-toggle[aria-expanded="true"] .w3v-nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.w3v-nav { margin-top: 1rem; }
.w3v-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.w3v-nav__link {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: var(--w3v-radius-sm);
  color: var(--w3v-muted);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
}
.w3v-nav__link:hover { background: rgba(255, 255, 255, 0.05); color: var(--w3v-text); }
.w3v-nav__link.is-active {
  background: rgba(58, 150, 255, 0.14);
  border-color: rgba(58, 150, 255, 0.35);
  color: var(--w3v-text);
}
.w3v-nav__link--logout { color: var(--w3v-red); }
.w3v-nav__link--logout:hover { color: #fff; background: rgba(255, 107, 122, 0.15); }

.w3v-side__balance {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: var(--w3v-radius-sm);
  background: rgba(18, 255, 184, 0.07);
  border: 1px solid rgba(18, 255, 184, 0.22);
  display: grid;
  gap: 0.15rem;
}
.w3v-side__label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--w3v-dim); }
.w3v-side__balance strong { font-size: 1.25rem; }

.w3v-main { min-width: 0; display: grid; gap: 1.25rem; }

/* ----------------------------------------------------------------- headings */
.w3v-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.w3v-head h2 { margin: 0; font-size: var(--fs-h3, 1.6rem); line-height: 1.2; }
.w3v-muted { color: var(--w3v-dim); margin: 0.35rem 0 0; }
.w3v-note { color: var(--w3v-dim); font-size: 0.9rem; }
.w3v-block { display: block; color: var(--w3v-dim); margin-top: 0.25rem; }

/* -------------------------------------------------------------------- stats */
.w3v-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.w3v-stat {
  background: var(--w3v-surface);
  border: 1px solid var(--w3v-line);
  border-radius: var(--w3v-radius);
  padding: 1.1rem 1.25rem;
  display: grid;
  gap: 0.3rem;
  align-content: start;
}
.w3v-stat--balance {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(58, 150, 255, 0.22), transparent 60%),
    var(--w3v-surface);
  border-color: rgba(58, 150, 255, 0.35);
}
.w3v-stat__label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--w3v-dim); }
.w3v-stat__value { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.1; font-weight: 700; }
.w3v-stat__value--sm { font-size: 1.05rem; }
.w3v-stat__hint { font-size: 0.8rem; color: var(--w3v-dim); }

/* -------------------------------------------------------------------- cards */
.w3v-card {
  background: var(--w3v-surface);
  border: 1px solid var(--w3v-line);
  border-radius: var(--w3v-radius);
  padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
}
.w3v-card h3 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.w3v-card--accent { border-color: rgba(240, 185, 11, 0.4); background: rgba(240, 185, 11, 0.06); }
.w3v-card--empty { text-align: center; }
.w3v-card--empty p { color: var(--w3v-dim); margin-bottom: 0; }

.w3v-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.w3v-card__head h3 { margin: 0; }
.w3v-card__head a { color: var(--w3v-primary); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.w3v-card__head a:hover { text-decoration: underline; }

.w3v-grid-2 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

/* ------------------------------------------------------------------- tables */
.w3v-table-wrap { overflow-x: auto; }
.w3v-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.w3v-table th,
.w3v-table td {
  text-align: left;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--w3v-line-soft);
  vertical-align: middle;
}
.w3v-table th {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--w3v-dim);
  font-weight: 600;
}
.w3v-table tbody tr:last-child td { border-bottom: 0; }
.w3v-table .w3v-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.w3v-credit { color: var(--w3v-green); }
.w3v-debit { color: #ffb4bd; }
.w3v-table code {
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

/* ------------------------------------------------------------------- badges */
.w3v-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.w3v-badge--pending { background: rgba(240, 185, 11, 0.12); border-color: rgba(240, 185, 11, 0.35); color: var(--w3v-gold); }
.w3v-badge--approved { background: rgba(18, 255, 184, 0.12); border-color: rgba(18, 255, 184, 0.35); color: var(--w3v-green); }
.w3v-badge--rejected,
.w3v-badge--cancelled { background: rgba(255, 107, 122, 0.12); border-color: rgba(255, 107, 122, 0.35); color: #ffb4bd; }
.w3v-badge--completed { background: rgba(58, 150, 255, 0.14); border-color: rgba(58, 150, 255, 0.4); color: #9ecbff; }
.w3v-badge--draft { background: rgba(255, 255, 255, 0.08); }

/* -------------------------------------------------------------------- lists */
.w3v-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.w3v-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--w3v-line-soft);
}
.w3v-list li:last-child { border-bottom: 0; }
.w3v-list small { display: block; color: var(--w3v-dim); font-size: 0.78rem; }

.w3v-details {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0;
}
.w3v-details dt { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--w3v-dim); }
.w3v-details dd { margin: 0.15rem 0 0; }

/* ------------------------------------------------------------------ buttons */
.w3v-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.w3v-btn:active { transform: translateY(1px); }
.w3v-btn--primary { background: var(--w3v-primary); color: #fff; }
.w3v-btn--primary:hover { background: #2b86ec; color: #fff; }
.w3v-btn--ghost {
  background: transparent;
  color: var(--w3v-text);
  border-color: var(--w3v-line, #343a40);
}
.w3v-btn--ghost:hover { border-color: var(--w3v-primary); color: var(--w3v-primary); }
.w3v-btn--block { width: 100%; }

.w3v-link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--w3v-red);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.w3v-link-btn:hover { color: #fff; }

.w3v-inline-form { display: inline; margin: 0; }

/* -------------------------------------------------------------------- forms */
.w3v-form { display: grid; gap: 1rem; }
.w3v-field { display: grid; gap: 0.35rem; }
.w3v-field label { font-weight: 600; font-size: 0.9rem; }
.w3v-form input[type="text"],
.w3v-form input[type="email"],
.w3v-form input[type="password"],
.w3v-form input[type="number"],
.w3v-form select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--w3v-radius-sm);
  border: 1px solid var(--w3v-line, #2a323c);
  background: var(--w3v-bg-alt);
  color: var(--w3v-text);
  font: inherit;
}
.w3v-form input:focus-visible,
.w3v-form select:focus-visible {
  outline: 2px solid var(--w3v-primary);
  outline-offset: 1px;
  border-color: var(--w3v-primary);
}
.w3v-form input::placeholder { color: rgba(255, 255, 255, 0.35); }

.w3v-input-group { display: flex; align-items: stretch; }
.w3v-input-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  border: 1px solid var(--w3v-line, #2a323c);
  border-right: 0;
  border-radius: var(--w3v-radius-sm) 0 0 var(--w3v-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--w3v-dim);
  font-weight: 600;
}
.w3v-input-group input { border-radius: 0 var(--w3v-radius-sm) var(--w3v-radius-sm) 0 !important; }

.w3v-fieldset[hidden],
.w3v-shell [hidden] { display: none !important; }

.w3v-fieldset {
  border: 1px solid var(--w3v-line-soft);
  border-radius: var(--w3v-radius-sm);
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
  margin: 0;
}
.w3v-fieldset legend { padding: 0 0.4rem; font-weight: 600; font-size: 0.9rem; color: var(--w3v-dim); }

.w3v-check { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; color: var(--w3v-muted); }
.w3v-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.w3v-row a { color: var(--w3v-primary); font-size: 0.9rem; }

.w3v-help { margin: 0; font-size: 0.82rem; color: var(--w3v-dim); }
.w3v-limits { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; color: var(--w3v-dim); font-size: 0.85rem; margin: 0 0 1rem; }
.w3v-balance-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--w3v-radius-sm);
  background: rgba(58, 150, 255, 0.1);
  border: 1px solid rgba(58, 150, 255, 0.3);
}
.w3v-balance-bar span { color: var(--w3v-dim); font-size: 0.88rem; }
.w3v-balance-bar strong { font-size: 1.2rem; }
.w3v-empty { color: var(--w3v-dim); margin: 0; }

/* ------------------------------------------------------------------ notices */
.w3v-notice {
  padding: 0.85rem 1.1rem;
  border-radius: var(--w3v-radius-sm);
  border: 1px solid var(--w3v-line);
  background: var(--w3v-surface-2);
  font-size: 0.92rem;
}
.w3v-notice--success { border-color: rgba(18, 255, 184, 0.35); background: rgba(18, 255, 184, 0.08); }
.w3v-notice--error { border-color: rgba(255, 107, 122, 0.4); background: rgba(255, 107, 122, 0.08); }
.w3v-notice--warning { border-color: rgba(240, 185, 11, 0.4); background: rgba(240, 185, 11, 0.07); }
.w3v-notice--info { border-color: rgba(58, 150, 255, 0.35); background: rgba(58, 150, 255, 0.08); }
.w3v-notice a { color: var(--w3v-primary); }

/* -------------------------------------------------------------------- auth */
.w3v-auth-wrap {
  display: grid;
  place-items: center;
  padding-block: clamp(1rem, 3vw, 3rem);
}
.w3v-auth-card {
  width: 100%;
  max-width: 460px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(58, 150, 255, 0.12), transparent 55%),
    var(--w3v-surface);
  border: 1px solid var(--w3v-line);
  border-radius: var(--w3v-radius);
  padding: clamp(1.4rem, 1rem + 2vw, 2.4rem);
  display: grid;
  gap: 1rem;
}
.w3v-auth-card h2 { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.w3v-auth-card .w3v-muted { margin-top: -0.5rem; }
.w3v-auth-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: 0.04em; }
.w3v-auth-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(58, 150, 255, 0.16);
  color: var(--w3v-primary);
  font-size: 0.9rem;
}
.w3v-auth-alt { margin: 0; color: var(--w3v-dim); font-size: 0.92rem; }
.w3v-auth-alt a { color: var(--w3v-primary); font-weight: 600; }
.w3v-auth-fine { margin: 0; font-size: 0.78rem; color: var(--w3v-dim); line-height: 1.5; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1023px) {
  .w3v-shell { grid-template-columns: 1fr; }
  .w3v-side { position: static; }
  .w3v-nav-toggle { display: flex; }
  .w3v-nav { display: none; }
  .w3v-nav.is-open { display: block; }
  .w3v-nav__link { padding: 0.75rem 0.8rem; }
  .w3v-side__balance { margin-top: 1rem; }
  .w3v-head { align-items: flex-start; }
}

@media (max-width: 640px) {
  .w3v-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w3v-stat__value { font-size: 1.3rem; }
  .w3v-balance-bar { flex-direction: column; gap: 0.25rem; }

  /* stacked table rows, labelled from data-label */
  .w3v-table--stack thead { display: none; }
  .w3v-table--stack,
  .w3v-table--stack tbody,
  .w3v-table--stack tr,
  .w3v-table--stack td { display: block; width: 100%; }
  .w3v-table--stack tr {
    border: 1px solid var(--w3v-line-soft);
    border-radius: var(--w3v-radius-sm);
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.5rem;
  }
  .w3v-table--stack td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
    padding: 0.4rem 0.35rem;
    text-align: right;
  }
  .w3v-table--stack td::before {
    content: attr(data-label);
    color: var(--w3v-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: left;
  }
}

@media (max-width: 400px) {
  .w3v-stats { grid-template-columns: 1fr; }
  .w3v-card { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .w3v-btn,
  .w3v-nav-toggle__bars span { transition: none; }
}

/* Keep the private area focused: the public "Connect Wallet" CTA belongs to
   the marketing homepage, not to the signed-in dashboard. */
.w3v-dashboard-page .header-actions > .btn,
.w3v-auth-page .header-actions > .btn,
.w3v-dashboard-page .drawer-cta,
.w3v-auth-page .drawer-cta {
  display: none;
}

/* -------------------------------------------------- overrides vs theme content
   The theme styles .w3-entry links and lists for long-form article content.
   These selectors are one notch more specific so the dashboard keeps its own
   look even if the stylesheet order ever changes. */
body.w3v-dashboard-page .w3-page-wrap .w3-entry,
body.w3v-auth-page .w3-page-wrap .w3-entry { max-width: none; }

body .w3v-shell a,
body .w3v-auth-wrap a { text-decoration: none; }

body .w3v-shell ul,
body .w3v-auth-wrap ul { list-style: none; margin: 0; padding: 0; }
body .w3v-shell li { margin: 0; }

body .w3v-shell .w3v-nav__link { color: var(--w3v-muted); }
body .w3v-shell .w3v-nav__link.is-active { color: var(--w3v-text); }
body .w3v-shell .w3v-nav__link--logout { color: var(--w3v-red); }

body .w3v-shell .w3v-btn--primary,
body .w3v-auth-wrap .w3v-btn--primary { color: #fff; }
body .w3v-shell .w3v-btn--ghost,
body .w3v-auth-wrap .w3v-btn--ghost { color: var(--w3v-text); }

body .w3v-shell .w3v-card h3,
body .w3v-shell .w3v-head h2 { margin-top: 0; }

body .w3v-shell .w3v-card p,
body .w3v-auth-wrap .w3v-auth-card p { margin-top: 0; }

/* Payout reference / reviewer note under a withdrawal request. */
body .w3v-shell .w3v-list .w3v-ref {
  display: block;
  margin-top: 2px;
  color: var(--text-dim, #6E8299);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

/* ============================================================================
   2.0 — crypto withdrawals, ledger and status views
   ========================================================================== */

/* ------------------------------------------------------------------ layout */
.w3v-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.w3v-stack { display: grid; gap: 1rem; }
.w3v-stat--accent { border-color: rgba(240, 185, 11, 0.4); background: rgba(240, 185, 11, 0.07); }
.w3v-stat__meta { font-size: 0.78rem; color: var(--w3v-dim); }
.w3v-help--center { text-align: center; }
.w3v-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  /* Break only where a word would overflow: keeps "SEED-OPENING" on one line. */
  overflow-wrap: anywhere;
  word-break: normal;
}
.w3v-pos { color: var(--w3v-green); font-variant-numeric: tabular-nums; white-space: nowrap; }
.w3v-neg { color: #ffb4bd; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ----------------------------------------------------------- withdrawal form */
.w3v-withdraw { display: grid; gap: 1.25rem; max-width: 640px; }
.w3v-withdraw__balance {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--w3v-radius-sm);
  background: rgba(58, 150, 255, 0.1);
  border: 1px solid rgba(58, 150, 255, 0.3);
}
.w3v-withdraw__balance span { color: var(--w3v-dim); font-size: 0.88rem; }
.w3v-withdraw__balance strong { font-size: 1.25rem; }

.w3v-amount-wrap { display: flex; align-items: stretch; }
.w3v-amount-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 0.85rem;
  border: 1px solid var(--w3v-line, #2a323c);
  border-right: 0;
  border-radius: var(--w3v-radius-sm) 0 0 var(--w3v-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--w3v-dim);
  font-weight: 600;
}
.w3v-amount-wrap input { border-radius: 0 var(--w3v-radius-sm) var(--w3v-radius-sm) 0 !important; }

.w3v-summary {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--w3v-radius-sm);
  border: 1px solid var(--w3v-line-soft);
  background: var(--w3v-bg-alt);
}
.w3v-summary__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: 0.92rem; }
.w3v-summary__row span { color: var(--w3v-dim); }
.w3v-summary__row strong { font-variant-numeric: tabular-nums; }
.w3v-summary__row--total { border-top: 1px solid var(--w3v-line-soft); padding-top: 0.6rem; }
.w3v-summary__row--total strong { color: var(--w3v-green); font-size: 1.1rem; }

/* ------------------------------------------------------- review before send */
.w3v-review {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem;
  border-radius: var(--w3v-radius-sm);
  border: 1px solid rgba(240, 185, 11, 0.45);
  background: rgba(240, 185, 11, 0.07);
}
.w3v-review__title { margin: 0; font-size: 1.05rem; }
.w3v-review__list { display: grid; gap: 0.55rem; margin: 0; }
.w3v-review__list div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.w3v-review__list dt { color: var(--w3v-dim); font-size: 0.85rem; }
.w3v-review__list dd { margin: 0; font-weight: 600; text-align: right; word-break: break-all; }
.w3v-review__note { margin: 0; font-size: 0.82rem; color: var(--w3v-dim); }
.w3v-review__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.w3v-review__actions .w3v-btn { flex: 1 1 180px; }

/* --------------------------------------------------------------- definition */
.w3v-defs {
  display: grid;
  gap: 0.9rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 0;
}
.w3v-defs dt { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--w3v-dim); }
.w3v-defs dd { margin: 0.2rem 0 0; }
.w3v-defs--compact { gap: 0.6rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* --------------------------------------------------------- request history */
.w3v-req { display: grid; gap: 1rem; }
.w3v-req__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.w3v-req__top > span { display: inline-flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.w3v-req__top strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.w3v-req__top small { color: var(--w3v-dim); font-size: 0.82rem; }
.w3v-req__actions { margin: 0; }

/* ---------------------------------------------------------- notifications */
.w3v-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.w3v-feed__item { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start; }
.w3v-feed__dot {
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--w3v-dim);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}
.w3v-feed__item--pending .w3v-feed__dot { background: var(--w3v-gold); }
.w3v-feed__item--approved .w3v-feed__dot,
.w3v-feed__item--completed .w3v-feed__dot { background: var(--w3v-green); }
.w3v-feed__item--rejected .w3v-feed__dot,
.w3v-feed__item--cancelled .w3v-feed__dot { background: var(--w3v-red); }
.w3v-feed__body { display: grid; gap: 0.15rem; }
.w3v-feed__body strong { font-size: 0.95rem; }
.w3v-feed__text { font-size: 0.9rem; color: var(--w3v-muted); }
.w3v-feed__note { font-size: 0.85rem; color: var(--w3v-dim); font-style: italic; }
.w3v-feed__body time { font-size: 0.78rem; color: var(--w3v-dim); }

/* -------------------------------------------------------------------- pill */
.w3v-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  margin-left: auto;
  border-radius: 999px;
  background: var(--w3v-gold);
  color: #241a00;
  font-size: 0.72rem;
  font-weight: 700;
}
.w3v-nav__link { display: flex; align-items: center; gap: 0.5rem; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .w3v-review__list div { flex-direction: column; gap: 0.1rem; }
  .w3v-review__list dd { text-align: left; }
}

@media (max-width: 640px) {
  .w3v-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .w3v-table tr {
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--w3v-line-soft);
  }
  .w3v-table tbody tr:last-child { border-bottom: 0; }
  .w3v-table td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0;
    border: 0;
    text-align: right;
  }
  .w3v-table td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    text-align: left;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--w3v-dim);
  }
  .w3v-table td:empty { display: none; }
  .w3v-amount-prefix { padding: 0 0.7rem; }
}

/* -------------------------------------------------- 2.1 transaction records */
.w3v-table__action { text-align: right; }
.w3v-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--w3v-line-soft);
  background: transparent;
  color: var(--w3v-muted);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.w3v-icon-btn:hover,
.w3v-icon-btn:focus-visible {
  border-color: var(--w3v-primary);
  color: var(--w3v-primary);
  background: rgba(58, 150, 255, 0.08);
}
.w3v-icon-btn[aria-expanded="true"] {
  background: var(--w3v-primary);
  border-color: var(--w3v-primary);
  color: #fff;
}
.w3v-icon-btn[aria-expanded="true"] span[aria-hidden] { transform: rotate(45deg); }
.w3v-icon-btn span[aria-hidden] { display: inline-block; transition: transform 0.2s ease; }

.w3v-table__panel > td {
  background: var(--w3v-bg-alt);
  border-top: 1px solid var(--w3v-line-soft);
  padding: 1rem 1.1rem;
}
.w3v-table__panel .w3v-defs { margin: 0; }

/* --------------------------------------------------------- loading feedback */
.w3v-btn.is-loading,
.w3v-btn[disabled] {
  opacity: 0.85;
  cursor: progress;
}
.w3v-btn.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: w3v-spin 0.7s linear infinite;
}
@keyframes w3v-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .w3v-btn.is-loading::before { animation-duration: 2s; }
  .w3v-icon-btn span[aria-hidden] { transition: none; }
}

@media (max-width: 640px) {
  .w3v-table__panel > td { padding: 0.9rem 0; }
  .w3v-table__panel .w3v-defs { grid-template-columns: 1fr; }
  .w3v-table__action { justify-content: flex-end; }
}
