/* hp-home: hpaid styles for Home, Explore and 404, loaded on every page (in-app navigation swaps only the page body).
   Orange family: core #3ce8bd, hover #63eecb, soft #9df3dc. */

/* ─── Shared bits ─────────────────────────────────────────────────────────── */
.hp-lock { width:1em; height:1em; flex:none; }
.hp-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; min-height:260px; padding:34px 24px; text-align:center; border:1px dashed var(--hair-2); border-radius:20px; background:radial-gradient(60% 80% at 50% 0%, rgba(60,232,189,.07), transparent 70%), rgba(255,255,255,.012); grid-column:1 / -1; }
.hp-empty b { font-size:17px; font-weight:700; letter-spacing:-.02em; color:#f2f2ef; }
.hp-empty p { margin:0; max-width:380px; color:#7d7d7b; font-size:13px; line-height:1.55; }
.hp-empty .primarybtn { margin-top:10px; }
.hp-empty-mark { display:grid; place-items:center; margin-bottom:4px; filter:drop-shadow(0 8px 22px rgba(60,232,189,.22)); }
.hp-empty-side { min-height:220px; }
.hp-empty-row { flex-direction:row; justify-content:flex-start; min-height:0; text-align:left; gap:16px; padding:22px 24px; }
.hp-empty-row .hp-empty-mark { margin:0; }
.hp-empty-row p { max-width:none; }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hp-hero { position:relative; isolation:isolate; }
.hp-hero-rings { position:absolute; z-index:-1; left:50%; top:46%; width:min(1100px, 150vw); aspect-ratio:1; transform:translate(-50%, -50%); pointer-events:none; -webkit-mask-image:radial-gradient(closest-side, #000 30%, transparent 100%); mask-image:radial-gradient(closest-side, #000 30%, transparent 100%); }
.hp-hero-rings svg { width:100%; height:100%; overflow:visible; }
.hp-hero-rings circle { fill:none; stroke:rgba(60,232,189,.16); stroke-width:1.2; stroke-dasharray:4 10; transform-origin:400px 400px; animation:hpRingSpin 90s linear infinite; }
.hp-hero-rings circle:nth-child(2) { stroke:rgba(60,232,189,.11); stroke-dasharray:2 14; animation-duration:120s; animation-direction:reverse; }
.hp-hero-rings circle:nth-child(3) { stroke:rgba(60,232,189,.08); stroke-dasharray:60 30; animation-duration:160s; }
.hp-hero-rings circle:nth-child(4) { stroke:rgba(255,255,255,.04); stroke-dasharray:1 12; animation-duration:200s; animation-direction:reverse; }
.hp-hero:before { content:""; position:absolute; z-index:-1; left:50%; top:38%; width:620px; height:380px; transform:translate(-50%, -50%); background:radial-gradient(closest-side, rgba(60,232,189,.16), transparent); filter:blur(20px); pointer-events:none; }
@keyframes hpRingSpin { to { transform:rotate(360deg); } }

.homehero .hero-news.hp-news { border-color:rgba(60,232,189,.38); background:linear-gradient(90deg, rgba(60,232,189,.16), rgba(60,232,189,.04)); color:#f3e6dc; }
.homehero .hero-news.hp-news:hover { border-color:rgba(60,232,189,.7); }
.homehero .hero-news.hp-news .hn-tag { background:#3ce8bd;color:#04140f; }
.homehero .hero-news.hp-news .hn-logo .sym { display:block; }

.hp-hero h1 { line-height:1.04; }
.hp-hero h1 .hp-x-word { display:inline-grid; place-items:center; vertical-align:-.08em; width:.92em; height:.92em; margin:0 .02em; }
.hp-hero h1 .hp-x-logo { width:100%; height:100%; display:block; filter:drop-shadow(0 .08em .3em rgba(0,0,0,.5)); }
.hp-hero h1 .hp-x-logo rect { stroke:rgba(255,255,255,.18); stroke-width:.6; }
.hp-pill { position:relative; display:inline-block; padding:0 .16em .04em; border-radius:.2em; background:#3ce8bd;color:#04140f; box-shadow:inset 0 -.06em 0 rgba(0,0,0,.18), 0 .12em .5em rgba(60,232,189,.32); overflow:hidden; }
.hp-pill:after { content:""; position:absolute; inset:0; background:linear-gradient(105deg, transparent 35%, rgba(255,255,255,.34) 50%, transparent 65%); transform:translateX(-120%); animation:hpShine 5.5s var(--ease-out, ease) infinite 1.2s; }
@keyframes hpShine { 0% { transform:translateX(-120%); } 22%, 100% { transform:translateX(120%); } }

.hp-hero .hero-composer .hp-composer-x { display:grid; place-items:center; flex:none; width:30px; height:30px; margin-left:8px; }
.hp-hero .hero-composer .hp-composer-logo { width:30px; height:30px; display:block; }
.hp-hero .hero-composer:focus-within { border-color:rgba(60,232,189,.55); box-shadow:0 22px 65px rgba(0,0,0,.42), 0 0 0 4px rgba(60,232,189,.1), inset 0 1px rgba(255,255,255,.07); }

.hp-proof span { gap:8px; }
.hp-proof img { width:16px; height:16px; border-radius:50%; object-fit:cover; }
.hp-proof .hp-proof-x { width:16px !important; height:16px !important; }
.hp-proof .sym { display:inline-block; }

/* ─── Bento ───────────────────────────────────────────────────────────────── */
.hp-home .home-bento { margin-top:6px; }
.hp-slot .token-image img { filter:saturate(1.05); }
.hp-slot .token-type { color:#9df3dc; }
.hp-slot h3 { color:#d7d7d4; }
.hp-slot .cardstats span { color:#9df3dc; }

.hp-sealed-amt { display:inline-flex !important; align-items:center; gap:7px; padding:3px 11px 3px 9px; border-radius:999px; background:rgba(60,232,189,.12); border:1px solid rgba(60,232,189,.28); color:#c2f7e9; font-size:14px !important; font-weight:700; letter-spacing:-.01em !important; line-height:1.4; }
.hp-sealed-amt .hp-lock { width:13px; height:13px; color:#3ce8bd; }
.hp-preview > div:first-child { gap:6px; }
.hp-preview-empty { display:flex; flex-direction:column; gap:10px; }
.hp-preview-empty p { margin:8px 4px 0; color:#7a7a78; font-size:12.5px; line-height:1.55; }
.hp-skel { opacity:.55; animation:hpSkel 2.6s ease-in-out infinite; animation-delay:calc(var(--i) * 260ms); }
.hp-skel .hp-bar { display:inline-block; width:92px; height:9px; border-radius:6px; background:rgba(255,255,255,.12); vertical-align:middle; }
.hp-skel .hp-dot { display:inline-block; width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.08); }
@keyframes hpSkel { 0%, 100% { opacity:.4; } 50% { opacity:.7; } }

.hp-mini-sub { margin-top:4px; color:#727270; font-size:12px; }

/* Fee-route demo: the amount scrambles, then seals. */
.hp-scramble { display:flex; align-items:center; gap:10px; min-height:52px; }
.hp-amt-digits { color:#d8d8d5; font-variant-numeric:tabular-nums; filter:blur(.3px); }
.hp-amt-lock { display:grid; place-items:center; width:36px; height:36px; border-radius:11px; background:rgba(60,232,189,.14); border:1px solid rgba(60,232,189,.32); color:#3ce8bd; }
.hp-amt-lock .hp-lock { width:18px; height:18px; }
.hp-amt-dots { color:#9df3dc; letter-spacing:.06em; font-size:.86em; }
.hp-scramble.is-sealed .hp-amt-lock { animation:hpSeal .5s var(--ease-spring, ease) both; }
@keyframes hpSeal { from { transform:scale(.6); opacity:0; } to { transform:none; opacity:1; } }
.hp-confirm-ring .sym { display:block; }
.launch-feature .rd-confirm { color:#9df3dc; }

/* What stays private. */
.hp-private-feature h3 { margin-bottom:12px !important; }
.hp-private { display:flex; flex-direction:column; gap:5px; }
.hp-private-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:4px 0; border-bottom:1px solid rgba(255,255,255,.045); font-size:12.5px; color:#a9a9a6; }
.hp-private-row:last-child { border-bottom:0; }
.hp-vis { display:inline-flex; align-items:center; gap:5px; padding:2px 8px; border-radius:6px; font:500 10.5px "DM Mono", ui-monospace, monospace; font-style:normal; letter-spacing:.02em; }
.hp-vis.public { color:#9a9a98; background:rgba(255,255,255,.05); }
.hp-vis.encrypted { color:#c2f7e9; background:rgba(60,232,189,.13); }
.hp-vis .hp-lock { width:10px; height:10px; }

/* ─── Top coins / accounts ────────────────────────────────────────────────── */
.hp-venue-tag { display:inline-flex; align-items:center; gap:7px; height:30px; padding:0 12px 0 5px; border-radius:999px; border:1px solid var(--hair); background:rgba(255,255,255,.03); color:#bdbdba; font-size:12.5px; font-weight:600; }
.hp-venue-tag img { width:20px; height:20px; border-radius:50%; }
.hp-h2-x { display:inline-grid; place-items:center; width:30px; height:30px; }
.hp-h2-logo { width:30px; height:30px; display:block; }
.tsp-plat.tsp-x { background:rgba(255,255,255,.08); color:#e9e9e7; }
.tsp-plat.tsp-x .tsp-plat-logo { width:14px; height:14px; }
.tsp-badge.hp-ring-ready { background:rgba(60,232,189,.12); color:#c2f7e9; }
.tsp-badge .owner-mark .sym { display:block; }

/* ─── Sealed receipts ─────────────────────────────────────────────────────── */
.receipt-row.hp-receipt { grid-template-columns:minmax(0, 1fr) 150px 170px; }
.hp-receipt .receipt-main { display:flex; flex-direction:column; align-items:flex-start; gap:7px; min-width:0; }
.hp-receipt .receipt-main span { flex-wrap:wrap; }
.hp-receipt .receipt-main a:hover strong, .hp-receipt .hp-via a:hover { color:#9df3dc; }
.hp-via { color:#727270; font-size:12px; }
.hp-via a { color:#bdbdba; font-weight:600; }
.hp-receipt .receipt-end { display:flex; flex-direction:column; align-items:flex-end; justify-content:center; gap:5px; }
.receipt-status.hp-status-sealed { display:inline-flex; align-items:center; justify-content:center; gap:6px; color:#c2f7e9; background:rgba(60,232,189,.12); }
.receipt-status.hp-status-sealed .hp-lock { width:11px; height:11px; color:#3ce8bd; }
.hp-tx { display:inline-flex; align-items:center; gap:4px; color:#8d8d8b; font-size:11.5px; font-weight:600; }
.hp-tx svg { width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:2; }
.hp-tx:hover { color:#9df3dc; }
.receipt-row.hp-most { gap:14px; }
.hp-most-who { display:flex; align-items:center; gap:12px; min-width:0; }
.hp-most-who > span:last-child { display:flex; flex-direction:column; min-width:0; }
.hp-most-who b { font-size:14.5px; font-weight:650; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hp-most-who small { color:#7d7d7b; font-size:12px; }
.hp-most-count { display:flex; flex-direction:column; align-items:flex-end; flex:none; }
.hp-most-count b { font-size:22px; letter-spacing:-.03em; color:#f5f5f3; }
.hp-most-count small { color:#9df3dc; font-size:11px; font-weight:600; }

/* ─── How it works ────────────────────────────────────────────────────────── */
.hp-how .sectiontitle { align-items:end; }
.hp-how .sectiontitle .eyebrow { color:#3ce8bd; }
.hp-steps { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px; }
.hp-step { position:relative; padding:26px 26px 28px; border-radius:22px; background:var(--card); border:1px solid var(--hair); overflow:hidden; transition:border-color .2s, transform .3s var(--ease-out, ease); }
.hp-step:hover { border-color:rgba(60,232,189,.35); transform:translateY(-2px); }
.hp-step:after { content:""; position:absolute; right:-60px; top:-60px; width:170px; height:170px; border-radius:50%; border:14px solid rgba(60,232,189,.06); pointer-events:none; }
.hp-step-n { position:absolute; right:22px; top:20px; font:500 12px "DM Mono", monospace; color:#5f5f5d; letter-spacing:.08em; }
.hp-step-icon { display:block; margin-bottom:18px; }
.hp-step h3 { margin:0 0 8px; font-size:18px; font-weight:700; letter-spacing:-.03em; }
.hp-step p { margin:0; color:#8a8a88; font-size:13.5px; line-height:1.62; }

/* ─── Claim banner ────────────────────────────────────────────────────────── */
.hp-claim-banner { position:relative; overflow:hidden; isolation:isolate; }
.hp-claim-banner .eyebrow { color:#3ce8bd; }
.hp-banner-rings { position:absolute; z-index:-1; right:-80px; top:50%; width:420px; aspect-ratio:1; transform:translateY(-50%); pointer-events:none; }
.hp-banner-rings svg { width:100%; height:100%; }
.hp-banner-rings circle { fill:none; stroke:rgba(60,232,189,.14); stroke-width:10; }
.hp-banner-rings circle:nth-child(2) { stroke:rgba(60,232,189,.09); stroke-dasharray:180 60; }
.hp-banner-rings circle:nth-child(3) { stroke:rgba(60,232,189,.05); stroke-width:4; }

/* ─── Explore ─────────────────────────────────────────────────────────────── */
.hp-ex-hero { position:relative; overflow:hidden; isolation:isolate; }
.hp-ex-hero .hp-banner-rings { right:-60px; width:360px; }
.hp-ex-hero p { max-width:640px; }
.hp-ex-stats { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.hp-ex-stats > span { display:inline-flex; align-items:center; gap:7px; height:30px; padding:0 12px; border-radius:999px; border:1px solid var(--hair); background:rgba(255,255,255,.03); color:#a9a9a6; font-size:12.5px; }
.hp-ex-stats b { color:#f5f5f3; font-weight:700; }
.hp-mode-tabs { margin-right:auto; }
.hp-acct-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:14px; }
.hp-acct { display:flex; flex-direction:column; gap:14px; padding:18px; border-radius:20px; background:var(--card); border:1px solid var(--hair); transition:border-color .2s, transform .3s var(--ease-out, ease); }
.hp-acct:hover { border-color:var(--hair-hover); transform:translateY(-2px); }
.hp-acct-top { display:flex; align-items:center; gap:12px; min-width:0; }
.hp-acct-top > span:last-child { display:flex; flex-direction:column; min-width:0; }
.hp-acct-top b { display:flex; align-items:center; gap:5px; font-size:15px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hp-acct-top small { color:#7d7d7b; font-size:12.5px; }
.hp-acct-top .verified-badge { width:14px; height:14px; min-width:14px; }
.hp-acct-coins { display:flex; gap:6px; min-height:32px; }
.hp-acct-coins img { width:32px; height:32px; border-radius:9px; object-fit:cover; border:1px solid var(--hair-2); }
.hp-acct-coins em { display:grid; place-items:center; min-width:32px; height:32px; padding:0 6px; border-radius:9px; background:rgba(255,255,255,.05); color:#9a9a98; font-size:11.5px; font-style:normal; font-weight:650; }
.hp-acct-stats { display:flex; gap:16px; color:#7a7a78; font-size:12.5px; }
.hp-acct-stats b { color:#f2f2ef; font-weight:750; margin-right:3px; }
.hp-acct-badge { display:inline-flex; align-items:center; gap:6px; align-self:flex-start; padding:3px 9px 3px 4px; border-radius:7px; background:rgba(255,255,255,.06); color:#a5a5a3; font-size:12px; font-weight:600; }
.hp-acct-badge.ready { background:rgba(60,232,189,.12); color:#c2f7e9; }
.hp-acct-badge .sym, .hp-acct-badge .owner-mark { display:block; }
.hp-acct-badge .owner-mark { width:16px; height:16px; }

/* ─── 404 ─────────────────────────────────────────────────────────────────── */
.hp-404 { min-height:100vh; display:grid; place-items:center; text-align:center; padding:24px; position:relative; overflow:hidden; isolation:isolate; }
.hp-404 .hp-hero-rings { top:50%; }
.hp-404 h1 { font-size:40px; letter-spacing:-.04em; margin:18px 0 8px; }
.hp-404 p { color:#8f8f8d; margin:0 0 22px; }
.hp-404-actions { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }

/* ─── Small screens ───────────────────────────────────────────────────────── */
@media (max-width:1100px) {
  .hp-steps { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  .hp-hero h1 .hp-x-word { width:.88em; height:.88em; }
  .hp-hero .hero-composer .hp-composer-x { display:none; }
  .receipt-row.hp-receipt { grid-template-columns:minmax(0, 1fr) auto; }
  .hp-receipt .receipt-route { display:none; }
  .hp-empty-row { flex-direction:column; text-align:center; }
  .hp-banner-rings { opacity:.5; }
  .hp-ex-stats > span { height:28px; font-size:12px; }
}
@media (prefers-reduced-motion:reduce) {
  .hp-hero-rings circle, .hp-pill:after, .hp-skel { animation:none !important; }
}

/* Fixes over the inherited hero span shimmer (refine.css .homehero h1 span) and card layouts. */
.homehero h1 .hp-pill {color:#04140f; -webkit-text-fill-color:#fff; background:#3ce8bd; background-size:auto; -webkit-background-clip:border-box; background-clip:border-box; animation:none; }
.homehero h1 .hp-x-word { color:inherit; background:none; -webkit-background-clip:border-box; background-clip:border-box; animation:none; }
.preview-payment > div:first-child > b.hp-sealed-amt { align-self:flex-start; }
.hp-receipt .receipt-main > b.hp-sealed-amt { align-self:flex-start; }
.hp-private { display:grid; grid-template-columns:1fr 1fr; column-gap:16px; row-gap:0; }
.hp-private-row { padding:5px 0; }
.hp-private-row:nth-last-child(2):nth-child(odd) { border-bottom:1px solid rgba(255,255,255,.045); }
.hp-preview-empty p { margin:0 4px 6px; }
.launch-filters .tabs[hidden], .hp-acct-grid[hidden], .coin-grid[hidden], .ex-block[hidden] { display:none !important; }
.hp-mode-tabs { flex:none; }
/* Symbols inside chip rows: the chip's own span rules must not reach the symbol's span. */
.hp-proof .sym, .hp-ex-stats .sym { height:var(--sym); width:var(--sym); padding:0; border:0; border-radius:50%; background:#0b0b0b; gap:0; }
.hp-proof .sym svg, .hp-ex-stats .sym svg { width:100% !important; height:100% !important; }
.hp-acct-stats { flex-wrap:wrap; gap:4px 14px; }
.hp-acct-stats span { white-space:nowrap; }
