/* ARC GLOBAL — shared design system (hash.game palette).
   Used by the public site (body.arc-site) and the member dashboard (body.arc-app).
   Charcoal surfaces, one bright green action colour, orange / purple accents
   for secondary metrics, 8–12px radii and heavy numerals. */

[data-public-display][hidden], [data-public-group][hidden] { display:none !important; }

/* Shared announcement: readable without motion, pausable with mouse or keyboard. */
.arc-notice { display:flex; align-items:center; gap:16px; min-height:48px; padding:8px 20px; color:#ffeb3b; background:#166534; border-block:1px solid #22c55e; font:700 14px/1.5 'Figtree',sans-serif; overflow:hidden; }
.arc-notice[hidden] { display:none; }
.arc-notice-badge { flex-shrink:0; padding:4px 10px; border-radius:6px; color:#ffeb3b; background:#14532d; font-size:11px; letter-spacing:.06em; text-transform:uppercase; }
.arc-notice-window { min-width:0; flex:1; overflow:hidden; }
.arc-notice-track { display:flex; width:max-content; animation:arcNoticeScroll 42s linear infinite; }
.arc-notice-track > span { flex-shrink:0; padding-right:80px; white-space:nowrap; }
.arc-notice button { flex-shrink:0; width:30px; height:30px; border:1px solid #ffeb3b; border-radius:6px; background:transparent; color:#ffeb3b; cursor:pointer; }
.arc-notice:is(:hover,:focus-within,.is-paused) .arc-notice-track { animation-play-state:paused; }
@keyframes arcNoticeScroll { to { transform:translateX(-50%); } }
@media (max-width:600px) { .arc-notice { gap:8px; padding:8px 12px; } .arc-notice-badge { font-size:0; padding:0; } .arc-notice-badge::before { content:'★'; font-size:18px; } }
@media (prefers-reduced-motion:reduce) {
    .arc-notice-track { animation:none; width:auto; }
    .arc-notice-track > span { white-space:normal; padding:0; }
    .arc-notice-track > span[aria-hidden] { display:none; }
    .arc-notice button { display:none; }
}

.hg-plan-income { display:grid; grid-template-columns:1.5fr 1fr; gap:30px; align-items:center; margin-bottom:20px; padding:32px; border:1px solid #8b723d; border-radius:16px; background:linear-gradient(120deg,#34301f,#292d2e 65%); }
.hg-plan-income-kicker { margin:0 0 10px!important; color:#ffd976!important; text-transform:uppercase; letter-spacing:.12em; font-size:11px!important; font-weight:800; }
.hg-plan-income h3 { margin:0 0 12px; font-size:clamp(24px,3vw,34px); line-height:1.1; }
.hg-plan-income p { margin:0; color:var(--hg-text-2); line-height:1.7; }
.hg-plan-income > div:last-child { display:grid; gap:6px; padding-left:28px; border-left:1px solid #70603a; }
.hg-plan-income strong { color:#ffe19c; font-size:clamp(38px,5vw,64px); font-weight:900; line-height:1; letter-spacing:-.04em; }
.hg-plan-income span { color:#fff; font-size:14px; font-weight:700; }
.hg-plan-income small { color:var(--hg-text-2); line-height:1.6; }
@media (max-width:700px) { .hg-plan-income { grid-template-columns:1fr; padding:24px; gap:22px; } .hg-plan-income > div:last-child { padding:20px 0 0; border-left:0; border-top:1px solid #70603a; } }

body.arc-site,
body.arc-app {
    --hg-bg: #232626;
    --hg-bg-deep: #1e2121;
    --hg-surface: #292d2e;
    --hg-surface-2: #323738;
    --hg-surface-3: #3a4142;
    --hg-line: rgba(228, 234, 240, .08);
    --hg-line-2: rgba(228, 234, 240, .14);
    --hg-line-strong: #4a5354;
    --hg-text: #ffffff;
    --hg-text-2: #b3bec1;
    --hg-text-3: #849194;
    --hg-text-4: #697072;
    --hg-green: #24ee89;
    --hg-green-btn: #2cd97d;
    --hg-green-press: #22c36f;
    --hg-green-soft: rgba(36, 238, 137, .12);
    --hg-orange: #ff9820;
    --hg-purple: #957aff;
    --hg-red: #f6465d;
    --hg-gold: #ffc72b;
    --hg-radius: 12px;
    --hg-radius-sm: 8px;
    --hg-font: 'Figtree', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --hg-mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --hg-shadow: 0 12px 32px rgba(0, 0, 0, .35);

    /* style.css component variables, remapped so the wallet modal, toast,
       loader and maintenance screen pick up the same palette. */
    --primary: #2cd97d;
    --primary-dark: #22c36f;
    --primary-light: #24ee89;
    --on-primary: #08130d;
    --on-brand: #08130d;
    --accent: #24ee89;
    --accent-soft: #24ee89;
    --secondary: #24ee89;
    --danger: #f6465d;
    --warning: #ff9820;
    --bg: #232626;
    --bg2: #292d2e;
    --bg3: #323738;
    --text: #ffffff;
    --text2: #b3bec1;
    --border: #3a4142;
    --muted: #849194;
    --radius: 12px;
    --radius-sm: 8px;
    --grad-brand: linear-gradient(135deg, #24ee89, #2cd97d);
    --ring-brand: 0 0 0 3px rgba(36, 238, 137, .25);

    background: var(--hg-bg);
    color: var(--hg-text);
    font-family: var(--hg-font);
    font-feature-settings: 'tnum' 1;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

body.arc-site [hidden],
body.arc-app [hidden] { display: none !important; }
body.arc-site a,
body.arc-app a { color: inherit; text-decoration: none; }
body.arc-site :focus-visible,
body.arc-app :focus-visible { outline: 2px solid var(--hg-green); outline-offset: 2px; }
body.arc-site ::selection,
body.arc-app ::selection { background: rgba(36, 238, 137, .3); }

.hg-green { color: var(--hg-green) !important; }
.hg-orange { color: var(--hg-orange) !important; }
.hg-purple { color: var(--hg-purple) !important; }
.hg-red { color: var(--hg-red) !important; }
.hg-dim { color: var(--hg-text-3); }
.hg-mono { font-family: var(--hg-mono); }
.hg-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.hg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 20px;
    border: 0; border-radius: var(--hg-radius-sm);
    background: var(--hg-green-btn); color: #000 !important;
    font: 800 15px/1 var(--hg-font); letter-spacing: 0;
    cursor: pointer; white-space: nowrap; text-decoration: none;
    transition: background .15s ease, transform .1s ease, box-shadow .2s ease;
    box-shadow: 0 0 0 0 rgba(36, 238, 137, 0);
}
.hg-btn:hover { background: var(--hg-green); box-shadow: 0 6px 22px rgba(36, 238, 137, .22); }
.hg-btn:active { transform: translateY(1px); background: var(--hg-green-press); }
.hg-btn[disabled], .hg-btn.is-disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.hg-btn--ghost { background: transparent; color: var(--hg-text) !important; border: 1.6px solid var(--hg-line-2); }
.hg-btn--ghost:hover { background: var(--hg-surface-2); box-shadow: none; }
.hg-btn--dark { background: var(--hg-surface-2); color: var(--hg-text) !important; }
.hg-btn--dark:hover { background: var(--hg-surface-3); box-shadow: none; }
.hg-btn--light { background: #fff; color: #000 !important; }
.hg-btn--light:hover { background: #e9eef0; box-shadow: none; }
.hg-btn--sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.hg-btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.hg-btn--block { display: flex; width: 100%; }
.hg-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.hg-link { color: var(--hg-green) !important; font-weight: 700; cursor: pointer; background: none; border: 0; font: inherit; padding: 0; }
.hg-link:hover { text-decoration: underline; }

/* ── Surfaces ─────────────────────────────────────────────────────── */
.hg-card {
    background: var(--hg-surface);
    border: 1px solid var(--hg-line);
    border-radius: var(--hg-radius);
    padding: 20px;
}
.hg-card--deep { background: var(--hg-bg-deep); }
.hg-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hg-card-head h2, .hg-card-head h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.hg-card-head p { margin: 4px 0 0; color: var(--hg-text-3); font-size: 13px; }
.hg-section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 20px; font-weight: 800; }
.hg-section-title svg { width: 22px; height: 22px; color: var(--hg-green); }

.hg-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; border-radius: 999px;
    background: var(--hg-surface-2); color: var(--hg-text-2);
    font-size: 12px; font-weight: 700; white-space: nowrap;
}
.hg-pill--green { background: var(--hg-green-soft); color: var(--hg-green); }
.hg-pill--orange { background: rgba(255, 152, 32, .12); color: var(--hg-orange); }
.hg-pill--purple { background: rgba(149, 122, 255, .14); color: var(--hg-purple); }
.hg-pill--red { background: rgba(246, 70, 93, .12); color: var(--hg-red); }
.hg-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hg-green); box-shadow: 0 0 0 4px rgba(36, 238, 137, .16); flex: 0 0 auto; }

.hg-change { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 14px; color: var(--hg-green); }
.hg-change.is-down { color: var(--hg-red); }
.hg-change.is-flat { color: var(--hg-text-3); }

/* ── Stat cards (BC token page style) ─────────────────────────────── */
.hg-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hg-stat {
    position: relative; overflow: hidden;
    padding: 20px 22px; border-radius: var(--hg-radius);
    background: var(--hg-bg-deep); border: 1px solid var(--hg-surface-2);
}
.hg-stat--orange { border-color: rgba(255, 152, 32, .22); }
.hg-stat--purple { border-color: rgba(149, 122, 255, .22); }
.hg-stat--green { border-color: rgba(36, 238, 137, .22); }
.hg-stat-label { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; color: var(--hg-text-4); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hg-stat--orange .hg-stat-label { color: var(--hg-orange); }
.hg-stat--purple .hg-stat-label { color: var(--hg-purple); }
.hg-stat--green .hg-stat-label { color: var(--hg-green); }
.hg-stat-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; word-break: break-all; }
.hg-stat-value small { font-size: 15px; font-weight: 700; }
.hg-stat--orange .hg-stat-value small { color: var(--hg-orange); }
.hg-stat--purple .hg-stat-value small { color: var(--hg-purple); }
.hg-stat--green .hg-stat-value small { color: var(--hg-green); }
.hg-stat-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; color: var(--hg-text-3); font-size: 13px; }
.hg-stat-sub b { color: var(--hg-text-2); font-weight: 700; }
.hg-stat-sub .hg-green, .hg-stat-sub .hg-orange, .hg-stat-sub .hg-purple { font-weight: 700; }

.hg-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.hg-kpi { padding: 16px 18px; border-radius: var(--hg-radius); background: var(--hg-surface); border: 1px solid var(--hg-line); min-width: 0; }
.hg-kpi small { display: block; color: var(--hg-text-3); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.hg-kpi strong { display: block; margin-top: 8px; font-size: 24px; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.hg-kpi span { display: block; margin-top: 6px; color: var(--hg-text-3); font-size: 12px; }
.hg-kpi--accent strong { color: var(--hg-green); }

.hg-progress { position: relative; height: 8px; border-radius: 999px; background: var(--hg-surface-3); overflow: hidden; }
.hg-progress > i { position: absolute; inset: 0 auto 0 0; width: var(--v, 0%); min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, var(--hg-green-btn), var(--hg-green)); transition: width .8s cubic-bezier(.2, .7, .2, 1); }
.hg-progress--purple > i { background: linear-gradient(90deg, #7b5cff, var(--hg-purple)); }
.hg-progress--orange > i { background: linear-gradient(90deg, #ff7a00, var(--hg-orange)); }

/* ── Tabs & segmented controls ────────────────────────────────────── */
.hg-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hg-line); overflow-x: auto; scrollbar-width: none; }
.hg-tabs::-webkit-scrollbar { display: none; }
.hg-tab {
    position: relative; flex: 0 0 auto; padding: 14px 18px;
    border: 0; background: none; color: var(--hg-text-3);
    font: 700 15px/1 var(--hg-font); cursor: pointer;
}
.hg-tab:hover { color: var(--hg-text); }
.hg-tab.is-active { color: var(--hg-text); }
.hg-tab.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--hg-text-2); }
.hg-tabpanel[hidden] { display: none !important; }

.hg-segment { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--hg-radius-sm); background: var(--hg-bg-deep); }
.hg-segment button { border: 0; background: none; color: var(--hg-text-3); font: 700 13px/1 var(--hg-font); padding: 7px 11px; border-radius: 6px; cursor: pointer; }
.hg-segment button:hover { color: var(--hg-text); }
.hg-segment button.is-active { background: var(--hg-surface-3); color: var(--hg-text); }

/* ── Tables ───────────────────────────────────────────────────────── */
.hg-table-wrap { overflow-x: auto; border-radius: var(--hg-radius-sm); }
.hg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hg-table th { padding: 10px 12px; background: var(--hg-surface-2); color: var(--hg-text-3); font-size: 12px; font-weight: 700; text-align: left; white-space: nowrap; }
.hg-table th:first-child { border-radius: 6px 0 0 6px; }
.hg-table th:last-child { border-radius: 0 6px 6px 0; }
.hg-table td { padding: 12px; border-bottom: 1px solid var(--hg-line); color: var(--hg-text-2); vertical-align: middle; }
.hg-table td strong, .hg-table td b { color: var(--hg-text); font-weight: 700; }
.hg-table tr:last-child td { border-bottom: 0; }
.hg-table tr.is-current td { background: rgba(36, 238, 137, .06); }
.hg-table tr.is-current td:first-child { box-shadow: inset 3px 0 0 var(--hg-green); }
.hg-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hg-table code { font-family: var(--hg-mono); font-size: 12px; color: var(--hg-text-2); }
.hg-empty { padding: 28px 16px; text-align: center; color: var(--hg-text-3); font-size: 14px; }

/* ── Forms ────────────────────────────────────────────────────────── */
.hg-input {
    width: 100%; min-height: 44px; padding: 0 14px;
    border: 1px solid var(--hg-line-2); border-radius: var(--hg-radius-sm);
    background: var(--hg-bg-deep); color: var(--hg-text);
    font: 600 15px var(--hg-font);
}
.hg-input:focus { outline: none; border-color: var(--hg-green); box-shadow: var(--ring-brand); }
.hg-input::placeholder { color: var(--hg-text-4); }
select.hg-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--hg-text-3) 50%), linear-gradient(135deg, var(--hg-text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.hg-field { display: grid; gap: 6px; }
.hg-field label { color: var(--hg-text-3); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.hg-inline { display: flex; gap: 10px; align-items: stretch; }
.hg-inline .hg-input { flex: 1; min-width: 0; }
.hg-note { margin: 8px 0 0; color: var(--hg-text-3); font-size: 13px; }
.hg-note.is-error { color: var(--hg-red); }
.hg-note.is-ok { color: var(--hg-green); }

/* ── Launch hub (forsol-style countdown) ──────────────────────────── */
.hg-launch { text-align: center; }
.hg-launch-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px;
    background: var(--hg-surface-2); border: 1px solid var(--hg-line);
    color: var(--hg-text-3); font-size: 13px; font-weight: 600;
}
.hg-launch-pill b { color: var(--hg-text); font-weight: 700; }
.hg-launch-title { margin: 18px auto 10px; max-width: 760px; font-size: clamp(30px, 5vw, 56px); font-weight: 900; line-height: 1.04; letter-spacing: -.03em; }
.hg-launch-title em { font-style: normal; color: var(--hg-green); }
.hg-launch-sub { margin: 0 auto; max-width: 540px; color: var(--hg-text-2); font-size: 16px; line-height: 1.6; }
.hg-countdown { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 28px 0; }
.hg-countdown > div {
    display: grid; place-items: center; align-content: center;
    width: clamp(70px, 14vw, 112px); aspect-ratio: 1;
    border-radius: 16px; background: var(--hg-bg-deep);
    border: 1px solid var(--hg-surface-3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 26px rgba(0, 0, 0, .3);
}
.hg-countdown b { font-size: clamp(28px, 5.4vw, 46px); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.hg-countdown span { margin-top: 8px; color: var(--hg-text-3); font-size: 12px; font-weight: 600; }
.hg-countdown > i { color: var(--hg-green); font-style: normal; font-size: 26px; font-weight: 900; }
.hg-launch-live { display: inline-flex; align-items: center; gap: 10px; margin: 26px 0; padding: 14px 22px; border-radius: 999px; background: var(--hg-green-soft); color: var(--hg-green); font-size: 18px; font-weight: 800; }
.hg-launch-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }
.hg-launch-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--hg-bg-deep); border: 1px solid var(--hg-line-2); font-size: 13px; font-weight: 700; color: var(--hg-text-2); white-space: nowrap; }
.hg-launch-chip b { color: var(--hg-green); font-variant-numeric: tabular-nums; }

/* ── Presentations & videos ───────────────────────────────────────── */
.hg-media-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .hg-media-grid { grid-template-columns: 1fr; } }
.hg-docs { display: grid; gap: 0; }
.hg-doc { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hg-line); }
.hg-doc:last-child { border-bottom: 0; }
.hg-doc-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 10px; background: rgba(246, 70, 93, .12); color: #ff7684; font: 800 11px var(--hg-font); letter-spacing: .04em; }
.hg-doc-icon--video { background: rgba(149, 122, 255, .14); color: var(--hg-purple); }
.hg-doc-body { flex: 1; min-width: 0; }
.hg-doc-body strong { display: block; font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.hg-doc-body span { display: block; margin-top: 2px; color: var(--hg-text-3); font-size: 13px; }
.hg-doc-meta { flex: 0 0 auto; color: var(--hg-text-4); font-size: 12px; font-weight: 600; }
.hg-doc > .hg-link { flex: 0 0 auto; font-size: 13px; }
.hg-video { position: relative; overflow: hidden; border-radius: var(--hg-radius); background: #000; aspect-ratio: 16 / 9; border: 1px solid var(--hg-line); }
.hg-video video, .hg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.hg-video-empty { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 20px; background: radial-gradient(circle at 50% 40%, rgba(36, 238, 137, .14), transparent 60%), #0f1111; color: var(--hg-text-3); }
.hg-video-empty img { width: 64px; height: 64px; opacity: .9; }
.hg-video-empty strong { color: var(--hg-text); font-size: 18px; }
.hg-video-link { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; color: #fff; background: radial-gradient(circle at 50% 45%, rgba(36, 238, 137, .2), transparent 62%), #0f1111; }
.hg-video-link i { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--hg-green-btn); color: #000; font-style: normal; font-size: 26px; padding-left: 4px; }
.hg-video-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.hg-video-caption strong { font-size: 16px; font-weight: 800; }
.hg-video-caption span { color: var(--hg-text-3); font-size: 13px; }
.hg-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.hg-video-tile { display: grid; gap: 8px; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.hg-video-tile .hg-video { aspect-ratio: 16 / 9; }
.hg-video-tile strong { font-size: 14px; font-weight: 800; }
.hg-video-tile:hover .hg-video { border-color: var(--hg-green); }

/* ── Leaderboard ──────────────────────────────────────────────────── */
.hg-lb-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.hg-lb-list { display: grid; gap: 6px; margin-top: 14px; }
.hg-lb-row {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 10px; background: var(--hg-surface-2);
}
.hg-lb-row.is-you { background: rgba(36, 238, 137, .1); box-shadow: inset 0 0 0 1px rgba(36, 238, 137, .35); }
.hg-lb-rank { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--hg-bg-deep); color: var(--hg-text-2); font-weight: 800; font-size: 14px; }
.hg-lb-row:nth-child(1) .hg-lb-rank { background: linear-gradient(135deg, #ffd65a, #f2a516); color: #2b1a00; }
.hg-lb-row:nth-child(2) .hg-lb-rank { background: linear-gradient(135deg, #eef2f4, #9aa6ab); color: #1c2224; }
.hg-lb-row:nth-child(3) .hg-lb-rank { background: linear-gradient(135deg, #f0a46b, #b8642a); color: #2a1306; }
.hg-lb-who { min-width: 0; }
.hg-lb-who strong { display: block; font-family: var(--hg-mono); font-size: 14px; font-weight: 500; color: var(--hg-text); }
.hg-lb-who span { display: block; color: var(--hg-text-3); font-size: 12px; }
.hg-lb-value { text-align: right; font-weight: 800; font-size: 16px; white-space: nowrap; }
.hg-lb-value small { display: block; color: var(--hg-text-3); font-size: 11px; font-weight: 600; }
.hg-you, .hg-lb-who .hg-you { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 4px; background: var(--hg-green); color: #000; font: 800 10px var(--hg-font); vertical-align: 2px; }
.hg-doc-body .hg-pill { display: inline-flex; margin-left: 6px; padding: 2px 8px; font-size: 11px; vertical-align: 2px; }
.hg-card-head > a, .hg-card-head > .hg-link, .hg-card-head > .hg-pill { flex: 0 0 auto; white-space: nowrap; }

.hg-run { position: relative; overflow: hidden; border-radius: var(--hg-radius-sm); background: var(--hg-bg-deep); border: 1px solid var(--hg-line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hg-run-track { display: flex; width: max-content; animation: hgRun var(--run-speed, 60s) linear infinite; }
.hg-run:hover .hg-run-track { animation-play-state: paused; }
.hg-run-item { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; white-space: nowrap; font-size: 13px; color: var(--hg-text-2); border-right: 1px solid var(--hg-line); }
.hg-run-item code { font-family: var(--hg-mono); color: var(--hg-text); font-size: 12px; }
.hg-run-item b { color: var(--hg-green); font-weight: 800; }
.hg-run-item i { font-style: normal; font-size: 15px; }
@keyframes hgRun { to { transform: translateX(-50%); } }

/* ── Token page (BC token layout) ─────────────────────────────────── */
.hg-token-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 14px 24px; }
.hg-token-id { display: flex; align-items: center; gap: 10px; grid-column: 1 / -1; }
.hg-token-id img { width: 30px; height: 30px; object-fit: contain; }
.hg-token-id strong { font-size: 20px; font-weight: 800; }
.hg-token-id span { color: var(--hg-text-3); font-size: 15px; font-weight: 700; }
.hg-token-quote { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.hg-token-price { font-size: 24px; font-weight: 800; }
.hg-kv { color: var(--hg-text-3); font-size: 14px; font-weight: 600; }
.hg-kv b { color: var(--hg-text); font-weight: 800; margin-left: 4px; }
.hg-token-links { display: flex; align-items: center; gap: 0; font-size: 14px; font-weight: 700; color: var(--hg-text-2); }
.hg-token-links a, .hg-token-links button { padding: 0 10px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.hg-token-links > * + * { border-left: 1px solid var(--hg-line-2); }
.hg-token-links a:hover, .hg-token-links button:hover { color: var(--hg-text); }
.hg-token-links a:first-child { display: inline-flex; align-items: center; gap: 6px; }
.hg-token-links img { width: 16px; height: 16px; }

.hg-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 22px 24px; border-radius: var(--hg-radius);
    background: radial-gradient(circle at 85% 50%, rgba(36, 238, 137, .14), transparent 45%), var(--hg-bg-deep);
    border: 1px solid var(--hg-surface-2);
}
.hg-banner p { margin: 0; font-size: clamp(18px, 2.2vw, 26px); font-weight: 600; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; }
.hg-banner p span { display: block; color: var(--hg-green); }
.hg-banner p b { display: block; font-weight: 800; }

.hg-flow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 18px; padding: 22px; border-radius: var(--hg-radius); background: var(--hg-bg-deep); border: 1px solid var(--hg-surface-2); }
.hg-flow-legend { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.hg-flow-node { position: relative; display: grid; justify-items: center; gap: 8px; padding: 18px 12px; border-radius: var(--hg-radius); background: var(--hg-surface); border: 1px solid var(--hg-line); text-align: center; }
.hg-flow-node b { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.hg-flow-node span { color: var(--hg-text-3); font-size: 13px; line-height: 1.45; }
.hg-flow-node .hg-flow-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--hg-surface-2); font-size: 26px; }
.hg-flow-node--core { border-color: rgba(36, 238, 137, .4); box-shadow: 0 0 0 4px rgba(36, 238, 137, .06), 0 0 38px rgba(36, 238, 137, .12); }
.hg-flow-node--core .hg-flow-icon { background: radial-gradient(circle, rgba(36, 238, 137, .3), rgba(36, 238, 137, .04)); }
.hg-flow-node--core .hg-flow-icon img { width: 40px; height: 40px; }
.hg-flow-tag { position: absolute; top: -10px; right: 12px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.hg-flow-tag--purple { background: #2a2540; color: var(--hg-purple); }
.hg-flow-tag--green { background: #173527; color: var(--hg-green); }
.hg-flow-tag--orange { background: #3b2a16; color: var(--hg-orange); }

.hg-how { display: grid; gap: 14px; }
.hg-how-step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.hg-how-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; font-size: 14px; }
.hg-how-step:nth-child(1) .hg-how-num { background: #173527; color: var(--hg-green); }
.hg-how-step:nth-child(2) .hg-how-num { background: #2a2540; color: var(--hg-purple); }
.hg-how-step:nth-child(3) .hg-how-num { background: #3b2a16; color: var(--hg-orange); }
.hg-how-step:nth-child(4) .hg-how-num { background: var(--hg-surface-3); color: var(--hg-text); }
.hg-how-step h4 { margin: 4px 0 6px; font-size: 15px; font-weight: 800; }
.hg-how-step:nth-child(1) h4 { color: var(--hg-green); }
.hg-how-step:nth-child(2) h4 { color: var(--hg-purple); }
.hg-how-step:nth-child(3) h4 { color: var(--hg-orange); }
.hg-how-step p { margin: 0; color: var(--hg-text-3); font-size: 13px; line-height: 1.55; }
.hg-how-items { display: grid; gap: 6px; margin-top: 8px; }
.hg-how-items div { padding: 10px 12px; border-radius: var(--hg-radius-sm); background: var(--hg-bg-deep); border: 1px solid var(--hg-line); }
.hg-how-items strong { display: block; font-size: 14px; font-weight: 800; }
.hg-how-items span { color: var(--hg-text-3); font-size: 12px; }

.hg-formula { display: grid; gap: 10px; }
.hg-formula-row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--hg-radius-sm); background: var(--hg-bg-deep); border: 1px solid var(--hg-line); }
.hg-formula-row span { color: var(--hg-text-3); font-size: 13px; font-weight: 700; }
.hg-formula-row code { font-family: var(--hg-mono); font-size: 13px; color: var(--hg-text); overflow-wrap: anywhere; }
.hg-formula-row b { color: var(--hg-green); font-weight: 800; white-space: nowrap; }

.hg-chart-card .hg-card-head { align-items: flex-start; flex-wrap: wrap; }
.hg-chart-quote { display: flex; align-items: baseline; gap: 8px; font-size: 26px; font-weight: 800; }
.hg-chart-meta { margin-top: 4px; color: var(--hg-text-3); font-size: 13px; font-weight: 600; }
.hg-chart-meta b { color: var(--hg-text); }
.hg-chart { position: relative; height: 260px; }
.hg-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hg-chart .grid { stroke: rgba(228, 234, 240, .06); }
.hg-chart .axis { fill: var(--hg-text-4); font: 600 11px var(--hg-font); }
.hg-chart .line { fill: none; stroke: var(--hg-green); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.hg-chart .line--purple { stroke: var(--hg-purple); }
.hg-chart .area { fill: url(#hgArea); opacity: .9; }
.hg-chart .marker { fill: var(--hg-green); stroke: var(--hg-bg-deep); stroke-width: 3; }
.hg-chart .marker--purple { fill: var(--hg-purple); }
.hg-chart-tip { position: absolute; pointer-events: none; transform: translate(-50%, -100%); margin-top: -12px; padding: 7px 10px; border-radius: 8px; background: var(--hg-surface-3); color: var(--hg-text); font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: var(--hg-shadow); }
.hg-chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: var(--hg-text-3); font-size: 12px; font-weight: 700; }
.hg-chart-legend i { display: inline-block; width: 10px; height: 3px; border-radius: 3px; margin-right: 6px; vertical-align: 3px; background: var(--hg-green); }
.hg-chart-legend i.purple { background: var(--hg-purple); }

.hg-swap-quote { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.hg-swap-quote > div { padding: 10px 12px; border-radius: var(--hg-radius-sm); background: var(--hg-bg-deep); border: 1px solid var(--hg-line); min-width: 0; }
.hg-swap-quote span { display: block; color: var(--hg-text-3); font-size: 12px; font-weight: 700; }
.hg-swap-quote b { display: block; margin-top: 2px; font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }

/* ── Marketing plan ───────────────────────────────────────────────── */
.hg-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .hg-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hg-plan-grid { grid-template-columns: 1fr; } }
.hg-plan-card { position: relative; padding: 18px; border-radius: var(--hg-radius); background: var(--hg-surface); border: 1px solid var(--hg-line); }
.hg-plan-card i { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px; border-radius: 12px; background: var(--hg-green-soft); font-style: normal; font-size: 21px; }
.hg-plan-card:nth-child(3n+2) i { background: rgba(149, 122, 255, .14); }
.hg-plan-card:nth-child(3n) i { background: rgba(255, 152, 32, .13); }
.hg-plan-card h4 { margin: 0 0 4px; font-size: 15px; font-weight: 800; }
.hg-plan-card strong { display: block; margin: 6px 0; color: var(--hg-green); font-size: 22px; font-weight: 900; }
.hg-plan-card p { margin: 0; color: var(--hg-text-3); font-size: 13px; line-height: 1.55; }
.hg-rank-badge { display: inline-grid; place-items: center; min-width: 40px; height: 28px; padding: 0 8px; border-radius: 8px; background: var(--hg-surface-3); color: var(--hg-text); font-weight: 900; font-size: 13px; }
.hg-rank-badge.is-a1 { background: #1d3a2b; color: var(--hg-green); }
.hg-rank-badge.is-a2 { background: #233b3b; color: #5fe3d0; }
.hg-rank-badge.is-a3 { background: #2a2540; color: var(--hg-purple); }
.hg-rank-badge.is-a4 { background: #3b2a16; color: var(--hg-orange); }
.hg-rank-badge.is-a5 { background: linear-gradient(135deg, #ffd65a, #f2a516); color: #2b1a00; }

/* ── Info sheet (detail modal for cards, topics, roadmap) ─────────── */
.hg-sheet { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(8, 10, 10, .72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s ease; }
.hg-sheet.is-open { opacity: 1; }
.hg-sheet[hidden] { display: none; }
.hg-sheet-box { position: relative; width: min(620px, 100%); max-height: min(86vh, 760px); overflow: auto; padding: 26px; border-radius: 16px; background: var(--hg-surface); border: 1px solid var(--hg-line-2); box-shadow: var(--hg-shadow); transform: translateY(14px) scale(.98); transition: transform .22s cubic-bezier(.2, .7, .2, 1); }
.hg-sheet.is-open .hg-sheet-box { transform: none; }
.hg-sheet-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--hg-surface-2); color: var(--hg-text-2); font-size: 20px; cursor: pointer; }
.hg-sheet-close:hover { background: var(--hg-surface-3); color: #fff; }
.hg-sheet .hg-sheet-kicker { margin: 0 0 8px; color: var(--hg-green); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hg-sheet h3 { margin: 0 40px 12px 0; font-size: 24px; font-weight: 900; line-height: 1.15; }
.hg-sheet p { margin: 0 0 12px; color: var(--hg-text-2); font-size: 15px; line-height: 1.65; }
.hg-sheet ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.hg-sheet li { position: relative; padding: 10px 12px 10px 34px; border-radius: var(--hg-radius-sm); background: var(--hg-bg-deep); color: var(--hg-text-2); font-size: 14px; line-height: 1.5; }
.hg-sheet li::before { content: ''; position: absolute; left: 13px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--hg-green); }
.hg-sheet-status { display: inline-flex; margin-bottom: 14px; }
.hg-sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
body.hg-locked { overflow: hidden; }

/* ── Shared overlays from style.css, re-skinned ───────────────────── */
body.arc-site .modal-overlay, body.arc-app .modal-overlay { background: rgba(8, 10, 10, .72); backdrop-filter: blur(6px); z-index: 450; }
body.arc-site .modal-box, body.arc-app .modal-box { background: var(--hg-surface); border: 1px solid var(--hg-line-2); border-radius: 16px; color: var(--hg-text); box-shadow: var(--hg-shadow); }
body.arc-site .modal-header h3, body.arc-app .modal-header h3 { color: #fff; font-size: 20px; font-weight: 800; }
body.arc-site .modal-close-btn, body.arc-app .modal-close-btn { width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--hg-surface-2); color: var(--hg-text-2); font-size: 22px; line-height: 1; cursor: pointer; }
body.arc-site .modal-desc, body.arc-app .modal-desc { color: var(--hg-text-3); font-size: 14px; margin-bottom: 16px; }
body.arc-site .wallet-option, body.arc-app .wallet-option { width: 100%; background: var(--hg-surface-2); border: 1.5px solid transparent; color: #fff; font-family: var(--hg-font); text-align: left; }
body.arc-site .wallet-option:hover, body.arc-app .wallet-option:hover { background: var(--hg-surface-3); border-color: var(--hg-green); }
body.arc-site .wallet-option-detected { border-color: rgba(36, 238, 137, .55); background: rgba(36, 238, 137, .07); }
body.arc-site .wo-icon { background: var(--hg-bg-deep); }
body.arc-site .wo-text small { color: var(--hg-text-3); }
body.arc-site .wm-error { background: rgba(246, 70, 93, .1); border: 1px solid rgba(246, 70, 93, .3); color: #ff8e9b; border-radius: var(--hg-radius-sm); }
body.arc-site .wm-retry-btn { background: var(--hg-green-btn); color: #000; border: 0; border-radius: var(--hg-radius-sm); font-weight: 800; }
body.arc-site .wm-pulse-dot, body.arc-site .wm-pulse-ring::before, body.arc-site .wm-pulse-ring::after { background: var(--hg-green); border-color: var(--hg-green); }
body.arc-site .wm-connecting-text { color: var(--hg-text-2); }
body.arc-site .toast, body.arc-app .toast { border-radius: 10px; font-family: var(--hg-font); font-weight: 700; box-shadow: var(--hg-shadow); }
body.arc-site .toast.info, body.arc-app .toast.info { background: var(--hg-surface-3); color: #fff; }
body.arc-site .toast.success, body.arc-app .toast.success { background: var(--hg-green-btn); color: #000; }
body.arc-site .toast.error, body.arc-app .toast.error { background: var(--hg-red); color: #fff; }
body.arc-site .loading-overlay, body.arc-app .loading-overlay { background: rgba(8, 10, 10, .82); backdrop-filter: blur(4px); }
body.arc-site .loading-overlay p, body.arc-app .loading-overlay p { color: var(--hg-text-2); font-weight: 700; }
body.arc-site .spinner span, body.arc-app .spinner span { background: var(--hg-green); }

/* USDT approval modal (built by app.js) */
.usdt-approval-box { max-width: 480px !important; }
.usdt-approval-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.usdt-approval-actions .arc-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 0; border-radius: var(--hg-radius-sm); background: var(--hg-green-btn); color: #000; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; transition: filter .2s, transform .2s; }
.usdt-approval-actions .arc-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.usdt-approval-actions .arc-button--ghost { background: var(--hg-surface-3); color: var(--hg-text); }
.usdt-approval-actions .arc-button:disabled { opacity: .6; cursor: wait; transform: none; }
.usdt-approval-auto { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; color: var(--hg-text-2); font-size: 13px; line-height: 1.5; }
.usdt-approval-auto input { margin-top: 3px; accent-color: var(--hg-green-btn); }
.usdt-approval-detail { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 4px 0 14px; padding: 14px; border-radius: var(--hg-radius-sm); background: var(--hg-bg-deep); font-size: 13px; }
.usdt-approval-detail span { color: var(--hg-text-3); }
.usdt-approval-detail strong { color: #fff; }
.usdt-approval-detail code { font-family: var(--hg-mono); font-size: 12px; color: var(--hg-text); overflow-wrap: anywhere; }
.usdt-approval-warning { margin: 0 0 12px; padding: 12px; border-radius: var(--hg-radius-sm); background: rgba(255, 152, 32, .08); border: 1px solid rgba(255, 152, 32, .25); color: #ffc58a; font-size: 13px; line-height: 1.55; }
.usdt-approval-auto { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; color: var(--hg-text-2); font-size: 13px; }
.usdt-approval-auto input { margin-top: 3px; accent-color: var(--hg-green); }
.usdt-approval-error { margin: 0 0 12px; color: #ff8e9b; font-size: 13px; }
.usdt-approval-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* Maintenance screen */
body.arc-site .maint-box { background: var(--hg-surface); border: 1px solid var(--hg-line-2); }
body.arc-site .maint-btn { background: var(--hg-green-btn); color: #000; }

@media (max-width: 720px) {
    .hg-stats { grid-template-columns: 1fr; }
    .hg-lb-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hg-token-head { grid-template-columns: 1fr; }
    .hg-token-links { flex-wrap: wrap; row-gap: 6px; }
    .hg-token-links a:first-child { padding-left: 0; }
    .hg-flow { grid-template-columns: 1fr; }
    .hg-formula-row { grid-template-columns: 1fr; gap: 6px; }
    .hg-banner { flex-direction: column; align-items: flex-start; }
    .hg-countdown { gap: 6px; }
    .hg-countdown > i { font-size: 18px; }
    .hg-doc { flex-wrap: wrap; }
    .hg-doc-meta, .hg-doc > .hg-link { order: 3; }
    .hg-sheet-box { padding: 22px 18px; }
    .hg-card { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .hg-run-track { animation: none; }
    .hg-progress > i, .hg-sheet, .hg-sheet-box { transition: none; }
}

.hg-member-label,.hg-lb-who .hg-member-label { display:inline-block; max-width:calc(100% - 6px); box-sizing:border-box; overflow-wrap:anywhere; margin-left:6px; padding:2px 6px; border:1px solid #b5a4ee55; border-radius:4px; color:#c8b6ff; background:#b5a4ee15; font-size:10px; font-weight:700; line-height:1.4; vertical-align:middle; white-space:normal; }
