/* hp-pages: hpaid styles for this area, loaded on every page (in-app navigation swaps only the page body).
   Payments, Analytics, Capital Flow, Docs, Terms and Privacy. Accent: #3ce8bd, hover #63eecb, soft #9df3dc. */

/* ─── Sealed amount: a lock and redaction bars where a figure would be ─────── */
.hpg-sealed-fig { display:inline-flex; align-items:center; gap:9px; height:34px; font-size:0 !important; letter-spacing:0; }
.hpg-lock { width:19px; height:19px; flex:none; fill:none; stroke:#9df3dc; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.hpg-bars { display:inline-flex; align-items:center; gap:4px; }
.hpg-bars i { display:block; width:16px; height:13px; border-radius:4px; background:linear-gradient(90deg, rgba(60,232,189,.28), rgba(255,160,112,.14), rgba(60,232,189,.28)); background-size:200% 100%; animation:hpgRedact 3.2s ease-in-out infinite; }
.hpg-bars i:nth-child(2) { width:22px; animation-delay:.15s; }
.hpg-bars i:nth-child(3) { width:12px; animation-delay:.3s; }
.hpg-bars i:nth-child(4) { width:19px; animation-delay:.45s; }
.hpg-bars i:nth-child(5) { width:10px; animation-delay:.6s; }
@keyframes hpgRedact { 0%, 100% { background-position:0 0; } 50% { background-position:100% 0; } }
.hpg-receipt .receipt-main > span { margin-top:6px; }
@media (min-width:561px) {
  .hpg-receipt { grid-template-columns:minmax(200px, 1fr) auto 184px; }
  .hpg-receipt .receipt-end { display:flex !important; align-items:center; justify-content:flex-end; gap:10px; }
  .hpg-receipt .receipt-end time { min-width:28px; text-align:right; }
  .hpg-receipt .receipt-details { flex-basis:100%; }
}
.receipt-status.sealed { color:#9df3dc; background:rgba(60,232,189,.12); box-shadow:inset 0 0 0 1px rgba(60,232,189,.22); }
.receipt-status.public { color:#cfcfcd; background:rgba(255,255,255,.07); }
.hpg-flow-ticker { font-size:24px !important; letter-spacing:-.03em; color:#f3f3f1; }
.receipt-details dd a { color:#9df3dc; }
.receipt-details dd a:hover { color:#63eecb; }

/* Visibility tags shared by Payments, Capital Flow and Docs */
.hpg-vis { display:inline-flex; align-items:center; gap:6px; padding:3px 9px; border-radius:99px; font:500 10.5px "DM Mono", monospace; letter-spacing:.06em; text-transform:uppercase; font-style:normal; white-space:nowrap; }
.hpg-vis::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.hpg-vis.public { color:#b9b9b7; background:rgba(255,255,255,.06); }
.hpg-vis.encrypted { color:#9df3dc; background:rgba(60,232,189,.12); }
.hpg-vis.owner { color:#5ee9a0; background:rgba(67,223,141,.1); }

/* ─── Payments ─────────────────────────────────────────────────────────── */
.hpg-pay-summary .payment-total strong { color:#f5f5f3; }
.hpg-pay-title { align-items:center; gap:16px; flex-wrap:wrap; }
.hpg-pay-tools { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.hpg-pay-search { display:flex; align-items:center; gap:8px; height:36px; padding:0 13px; border-radius:999px; background:#101010; border:1px solid #292929; color:#777; transition:border-color .2s; }
.hpg-pay-search:focus-within { border-color:rgba(60,232,189,.55); }
.hpg-pay-search svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.hpg-pay-search input { width:150px; border:0; outline:0; background:transparent; color:#e6e6e4; font-size:12.5px; }
.hpg-why { padding:24px; }
.hpg-why-lead { margin:18px 0 16px; color:#9a9a98; font-size:13px; line-height:1.65; }
.hpg-why-lead b { color:#f0f0ee; font-weight:650; }
.hpg-visibility { display:flex; flex-direction:column; border:1px solid var(--hair); border-radius:16px; overflow:hidden; }
.hpg-vis-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 14px; font-size:13px; color:#d6d6d4; border-bottom:1px solid var(--hair); }
.hpg-vis-row:last-child { border-bottom:0; }
.hpg-why-link { margin-top:14px; width:100%; }
.hpg-most { margin-top:26px; }
.hpg-most h3 { margin:0 0 4px; font-size:15px; letter-spacing:-.02em; color:#e9e9e7; }
.hpg-paid-acct { grid-template-columns:44px minmax(0, 1fr) auto 28px !important; }
.hpg-mini-seal { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:rgba(60,232,189,.1); }
.hpg-mini-seal .hpg-lock { width:14px; height:14px; }
.hpg-empty-note { font-size:12px !important; color:#777 !important; }
.hpg-empty { display:flex; flex-direction:column; align-items:center; gap:10px; padding:40px 26px; }
.hpg-empty b { color:#e9e9e7; font-size:15px; }
.hpg-empty span:not(.sym) { max-width:440px; line-height:1.6; }
.hpg-empty .ghostbtn { margin-top:6px; }

/* ─── Analytics ────────────────────────────────────────────────────────── */
.hpg-an-note { margin:26px 0 0; max-width:760px; color:#8f8f8d; font-size:13px; line-height:1.6; }
.hpg-an-note a { color:#9df3dc; }
.hpg-an-charts { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:18px; margin-top:20px; }
.hpg-an-charts .an-bars i:last-child { background:#3ce8bd; box-shadow:0 0 16px rgba(60,232,189,.3); }
.hpg-an-charts .an-bars i.empty:last-child { background:none; box-shadow:none; border-color:rgba(60,232,189,.35); }
.hpg-an-split { display:grid; grid-template-columns:minmax(0, 1.25fr) minmax(0, 1fr); gap:18px; margin-top:18px; }
.hpg-split-bar { display:flex; gap:4px; height:16px; margin:26px 0 22px; }
.hpg-split-bar i { flex:0 0 var(--w); border-radius:6px; }
.hpg-split-bar i.acct { background:linear-gradient(90deg, #3ce8bd, #63eecb); }
.hpg-split-bar i.house { background:#4a4a48; }
.hpg-split-legend { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.hpg-split-legend > div { display:grid; grid-template-columns:12px 1fr; column-gap:10px; row-gap:4px; align-items:center; }
.hpg-split-legend .dot { width:10px; height:10px; border-radius:50%; }
.hpg-split-legend .dot.acct { background:#3ce8bd; }
.hpg-split-legend .dot.house { background:#6a6a68; }
.hpg-split-legend b { font-size:13.5px; color:#e9e9e7; }
.hpg-split-legend em { grid-column:2; font-style:normal; font-size:26px; letter-spacing:-.035em; color:#f5f5f3; }
.hpg-split-legend small { grid-column:2; color:#8f8f8d; font-size:12px; line-height:1.5; }
.hpg-net-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:22px; }
.hpg-net-grid > div { padding:16px; border-radius:16px; background:#1f1f1f; }
.hpg-net-grid b { display:block; font-size:28px; letter-spacing:-.035em; color:#f5f5f3; }
.hpg-net-grid small { font-size:12px; }
.hpg-net-note { margin:16px 0 0; color:#8a8a88; font-size:12.5px; line-height:1.55; }
.hpg-sealed-word { color:#9df3dc !important; }

/* ─── Capital Flow ─────────────────────────────────────────────────────── */
.hpg-capital .st-split .yp-mark { width:100%; height:100%; }
.hpg-sub { margin:4px 0 0; color:#777; font-size:13px; }
.hpg-stations { position:relative; display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:14px; margin:0; padding:0; list-style:none; counter-reset:none; }
.hpg-stations::before { content:""; position:absolute; left:6%; right:6%; top:44px; height:2px; background:linear-gradient(90deg, rgba(255,255,255,.1), rgba(60,232,189,.55) 55%, rgba(67,223,141,.45)); z-index:0; }
.hpg-station { position:relative; z-index:1; display:flex; flex-direction:column; gap:8px; padding:20px 18px 18px; border-radius:20px; background:var(--card); border:1px solid var(--hair); transition:border-color .2s, transform .25s var(--ease-out); }
.hpg-station:hover { border-color:var(--hair-hover); transform:translateY(-2px); }
.hpg-station-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.hpg-step-no { font:500 11px "DM Mono", monospace; color:#6f6f6d; letter-spacing:.1em; }
.hpg-station b { font-size:15px; letter-spacing:-.02em; color:#f0f0ee; }
.hpg-station p { margin:0; flex:1; color:#8f8f8d; font-size:12.5px; line-height:1.6; }
.hpg-station .hpg-vis { align-self:flex-start; margin-top:4px; }
.hpg-station:nth-child(4) { border-color:rgba(60,232,189,.35); background:radial-gradient(circle at 80% 0%, rgba(60,232,189,.12), transparent 60%), var(--card); }
.hpg-rules { grid-template-columns:repeat(4, minmax(0, 1fr)); }

/* ─── Docs ─────────────────────────────────────────────────────────────── */
.hpg-docs .docs-badges span:last-child { color:#9df3dc; border-color:rgba(60,232,189,.35); background:rgba(60,232,189,.08); }
.hpg-docs .docs-content > section { scroll-margin-top:96px; }
.hpg-doc-h3 { margin:28px 0 12px; font-size:17px; letter-spacing:-.02em; color:#f0f0ee; }
.hpg-vis-table { border:1px solid var(--hair); border-radius:18px; overflow:hidden; background:var(--card); }
.hpg-vis-head, .hpg-vis-line { display:grid; grid-template-columns:minmax(90px, .7fr) minmax(0, 1.6fr) auto; align-items:center; gap:16px; padding:12px 18px; }
.hpg-vis-head { font:500 10.5px "DM Mono", monospace; letter-spacing:.1em; text-transform:uppercase; color:#6f6f6d; background:#141414; border-bottom:1px solid var(--hair); }
.hpg-vis-line { border-bottom:1px solid var(--hair); font-size:14px; color:#cfcfcd; }
.hpg-vis-line:last-child { border-bottom:0; }
.hpg-vis-line b { color:#f0f0ee; font-weight:600; }
.hpg-redact { display:inline-block; width:120px; max-width:100%; height:12px; border-radius:4px; vertical-align:middle; background:linear-gradient(90deg, rgba(60,232,189,.3), rgba(255,160,112,.12), rgba(60,232,189,.3)); background-size:200% 100%; animation:hpgRedact 3.2s ease-in-out infinite; }
.hpg-faq { display:flex; flex-direction:column; gap:10px; }
.hpg-faq details { border:1px solid var(--hair); border-radius:16px; background:var(--card); transition:border-color .2s; }
.hpg-faq details[open] { border-color:rgba(60,232,189,.35); }
.hpg-faq summary { position:relative; padding:16px 48px 16px 18px; cursor:pointer; list-style:none; font-size:15px; font-weight:600; color:#ececea; }
.hpg-faq summary::-webkit-details-marker { display:none; }
.hpg-faq summary::after { content:"+"; position:absolute; right:18px; top:50%; transform:translateY(-50%); font:400 20px Inter, sans-serif; color:#9df3dc; transition:transform .25s var(--ease-out); }
.hpg-faq details[open] summary::after { transform:translateY(-50%) rotate(45deg); }
.hpg-faq details p { margin:0; padding:0 18px 16px; color:#a3a3a1; font-size:14.5px; line-height:1.7; }
.legal-content a, .hpg-docs .doc-inline { color:#9df3dc; }

/* ─── Responsive ───────────────────────────────────────────────────────── */
@media (max-width:1180px) {
  .hpg-stations { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .hpg-stations::before { display:none; }
  .hpg-station:last-child { grid-column:1 / -1; }
  .hpg-rules { grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width:1100px) {
  .hpg-an-charts, .hpg-an-split { grid-template-columns:1fr; }
}
.hpg-sealed-fig .hpg-bars { display:inline-flex !important; }   /* phone rules make every .receipt-main span a block */
@media (max-width:1000px) { .hpg-docs .docs-layout { grid-template-columns:minmax(0, 1fr); } .hpg-docs .docs-content, .hpg-docs .docs-aside { min-width:0; } }
.hpg-path .sectiontitle { flex-wrap:wrap; gap:8px 20px; }
.hpg-capital .flow-row.hpg-receipt .receipt-main span { display:block; line-height:1.4; }
.hpg-capital .flow-row.hpg-receipt .receipt-main span .verified-badge { vertical-align:-2px; }
@media (min-width:821px) { .hpg-capital .receipt-row.flow-row.hpg-receipt { grid-template-columns:minmax(0, 1fr) 112px 150px; gap:14px; } }
@media (max-width:820px) {
  .hpg-payments .payment-filters.hpg-filters { display:flex; }
  .hpg-pay-tools { width:100%; }
  .hpg-pay-search { flex:1; min-width:0; }
  .hpg-pay-search input { width:100%; min-width:0; }
  .hpg-sealed-fig { height:28px; }
  .hpg-bars i { height:11px; }
  .hpg-split-legend { grid-template-columns:1fr; }
  .hpg-vis-head, .hpg-vis-line { grid-template-columns:minmax(70px, .8fr) minmax(0, 1fr) auto; gap:10px; padding:11px 14px; font-size:13px; }
}
@media (max-width:560px) {
  .hpg-stations, .hpg-rules { grid-template-columns:1fr; }
  .hpg-station:last-child { grid-column:auto; }
  .hpg-net-grid b { font-size:23px; }
  .hpg-vis-head span:nth-child(2), .hpg-vis-line > span { display:none; }
  .hpg-vis-head, .hpg-vis-line { grid-template-columns:1fr auto; }
  .hpg-faq summary { font-size:14px; }
}
@media (prefers-reduced-motion:reduce) { .hpg-bars i, .hpg-redact { animation:none; } }
