*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
:root {
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --primary-glow: rgba(124,58,237,0.25);
    --bg: #0a0a1a;
    --bg-card: rgba(20,20,40,0.95);
    --bg-card-hover: rgba(30,30,55,0.98);
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(124,58,237,0.4);
    --text: #ffffff;
    --text-muted: #9ca3af;
    --text-dim: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}
body { font-family:'Inter',sans-serif; background:var(--bg); color:var(--text); min-height:100vh; }
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:rgba(124,58,237,0.3); border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background:rgba(124,58,237,0.5); }

/* Container */
.container { max-width:1200px; margin:0 auto; padding:2rem 1.5rem; }

/* Page heading */
.page-heading { text-align:center; margin-bottom:1.5rem; }
.page-heading h1 { font-size:1.8rem; font-weight:800; margin:0; }
.page-heading p { color:var(--text-muted); font-size:0.88rem; margin-top:0.5rem; max-width:640px; margin-left:auto; margin-right:auto; line-height:1.5; }

/* Eligibility banner */
.eligibility-banner {
    background:var(--bg-card); border:1px solid var(--border); border-radius:12px;
    padding:1rem 1.25rem; margin-bottom:1.5rem;
    display:flex; flex-direction:column; gap:4px;
}
.eligibility-banner.eligible { border-color:rgba(16,185,129,0.35); background:linear-gradient(135deg, rgba(16,185,129,0.08), rgba(20,20,40,0.95)); }
.eligibility-banner.ineligible { border-color:rgba(239,68,68,0.3); background:linear-gradient(135deg, rgba(239,68,68,0.06), rgba(20,20,40,0.95)); }
.eligibility-banner.loading { border-color:rgba(167,139,250,0.25); }
.eligibility-banner.error { border-color:rgba(239,68,68,0.3); }
.eligibility-banner .eb-tickets { font-size:1rem; font-weight:700; color:var(--text); }
.eligibility-banner .eb-boost { font-size:0.78rem; font-weight:600; color:#a78bfa; background:rgba(167,139,250,0.15); padding:2px 8px; border-radius:6px; margin-left:6px; vertical-align:middle; }
.eligibility-banner .eb-breakdown { font-size:0.78rem; color:var(--text-dim); }
.eligibility-banner .eb-text { font-size:0.88rem; color:var(--text-muted); }
.eligibility-banner.eligible .eb-text { color:var(--success); }
.eligibility-banner.ineligible .eb-text { color:#fca5a5; }

/* Tabs */
.tab-bar {
    display:flex; gap:4px; background:rgba(0,0,0,0.3); border-radius:10px; padding:4px; margin-bottom:1.5rem;
    overflow-x:auto;
}
.tab-btn {
    padding:0.6rem 1.2rem; background:transparent; border:none; border-radius:8px;
    color:var(--text-muted); font-size:0.85rem; font-weight:600;
    cursor:pointer; font-family:inherit; transition:all 0.2s; white-space:nowrap;
}
.tab-btn:hover { color:rgba(255,255,255,0.85); }
.tab-btn.active { background:rgba(124,58,237,0.2); color:#a78bfa; }
.tab-panel { display:none; }
.tab-panel.active { display:block; }

/* Giveaway grid */
.giveaway-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:1.25rem; }

/* Giveaway card */
.giveaway-card {
    background:var(--bg-card); border:1px solid var(--border); border-radius:14px;
    overflow:hidden; transition:all 0.2s; display:flex; flex-direction:column;
}
.giveaway-card:hover { border-color:var(--border-hover); transform:translateY(-2px); box-shadow:0 10px 24px -12px rgba(124,58,237,0.35); }
.gc-image-wrap { position:relative; aspect-ratio:1/1; width:100%; background:rgba(255,255,255,0.04); overflow:hidden; }
.gc-image-wrap > img, .gc-image-wrap > .gc-image-link > img {
    position:absolute; inset:0;
    width:100%; height:100%; object-fit:cover; display:block;
}
.gc-status {
    position:absolute; top:10px; right:10px;
    padding:4px 10px; border-radius:6px;
    font-size:0.7rem; font-weight:700; letter-spacing:0.04em; text-transform:uppercase;
    backdrop-filter:blur(6px);
}
.gc-status-open { background:rgba(16,185,129,0.9); color:#fff; }
.gc-status-upcoming { background:rgba(96,165,250,0.9); color:#fff; }
.gc-status-drawn { background:rgba(167,139,250,0.9); color:#fff; }
.gc-status-completed { background:rgba(255,255,255,0.5); color:#000; }

.gc-body { padding:0.9rem 1rem 1rem; display:flex; flex-direction:column; gap:6px; flex:1; }
.gc-name { font-size:1rem; font-weight:700; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-decoration:none; display:block; }
a.gc-name { cursor:pointer; transition:color 0.15s; }
a.gc-name:hover { color:#a78bfa; }
.gc-image-link { position:absolute; inset:0; display:block; }
.gc-image-link img { transition:transform 0.25s; }
.gc-image-link:hover img { transform:scale(1.04); }
.gc-collection { font-size:0.78rem; color:var(--text-dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gc-countdown-row {
    display:flex; align-items:center; justify-content:space-between;
    gap:0.5rem; margin-top:4px; min-height:1.2rem;
}
.gc-countdown {
    font-size:0.82rem; font-weight:600; color:var(--warning);
    font-variant-numeric:tabular-nums;
}
.gc-countdown.ended { color:var(--text-dim); }
.gc-chance {
    font-size:0.72rem; font-weight:700; line-height:1.2;
    padding:0.15rem 0.5rem; border-radius:999px; white-space:nowrap;
    font-variant-numeric:tabular-nums;
    color:#c4b5fd; background:rgba(124,58,237,0.18); border:1px solid rgba(124,58,237,0.4);
}
.gc-chance.projected { opacity:0.75; font-weight:600; }
.gc-chance.capped {
    color:#fde68a; background:rgba(251,191,36,0.14); border-color:rgba(251,191,36,0.4);
}
.gc-entries { font-size:0.75rem; color:var(--text-muted); }
.gc-action { margin-top:8px; }

/* Card button */
.gc-btn {
    width:100%; padding:11px 12px; border-radius:10px; border:none;
    background:rgba(124,58,237,0.2); color:#c4b5fd;
    font-size:0.82rem; font-weight:700; font-family:inherit;
    cursor:pointer; transition:all 0.15s;
}
.gc-btn:hover:not(:disabled) { background:rgba(124,58,237,0.3); color:#fff; }
.gc-btn:disabled { opacity:0.45; cursor:not-allowed; }
.gc-btn.primary {
    background:linear-gradient(135deg, #7c3aed, #a855f7); color:#fff;
    box-shadow:0 4px 16px -6px rgba(124,58,237,0.5);
}
.gc-btn.primary:hover:not(:disabled) { background:linear-gradient(135deg, #6d28d9, #9333ea); box-shadow:0 6px 24px -6px rgba(124,58,237,0.6); }
.gc-btn.entered { background:rgba(16,185,129,0.18); color:var(--success); border:1px solid rgba(16,185,129,0.3); }

.gc-status-line { font-size:0.82rem; font-weight:600; padding:8px 10px; border-radius:8px; text-align:center; }
.gc-status-line.claimed { background:rgba(16,185,129,0.12); color:var(--success); }
.gc-status-line.muted { color:var(--text-dim); }
.gc-status-line:not(.claimed):not(.muted) { background:rgba(245,158,11,0.12); color:var(--warning); }

/* How it works */
.how-section { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:1.25rem; }
.how-card {
    background:var(--bg-card); border:1px solid var(--border); border-radius:12px; padding:1.5rem;
}
.how-card .how-step { font-size:1.4rem; font-weight:800; color:#a78bfa; margin-bottom:0.5rem; }
.how-card h4 { font-size:0.95rem; margin-bottom:0.5rem; }
.how-card p { font-size:0.8rem; color:var(--text-muted); line-height:1.5; }

/* Empty state */
.empty-state { text-align:center; padding:3rem 1rem; color:var(--text-dim); font-size:0.9rem; }

/* Toast */
.toast {
    position:fixed; bottom:20px; left:50%; transform:translateX(-50%);
    padding:12px 24px; border-radius:10px; font-size:0.85rem; font-weight:600;
    z-index:9999; opacity:0; transition:opacity 0.3s;
    max-width:90vw; text-align:center;
}
.toast.show { opacity:1; }
.toast.success { background:rgba(16,185,129,0.95); color:#fff; }
.toast.error { background:rgba(239,68,68,0.95); color:#fff; }
.toast.info { background:rgba(124,58,237,0.95); color:#fff; }

@media (max-width:640px) {
    .container { padding:1rem; }
    .page-heading h1 { font-size:1.4rem; }
    .giveaway-grid { grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:0.9rem; }
    .gc-body { padding:0.75rem; }
    .gc-name { font-size:0.9rem; }
}

/* ==== Live card highlighting ==== */
.giveaway-card.gc-eligible {
    border-color:rgba(167,139,250,0.55);
    box-shadow:0 0 0 1px rgba(167,139,250,0.35), 0 10px 30px -12px rgba(124,58,237,0.4);
    background:linear-gradient(180deg, rgba(139,92,246,0.06), var(--bg-card));
}
.giveaway-card.gc-eligible:hover {
    border-color:rgba(167,139,250,0.75);
    box-shadow:0 0 0 1px rgba(167,139,250,0.55), 0 14px 36px -10px rgba(124,58,237,0.5);
}
.giveaway-card.gc-entered-card {
    border-color:rgba(16,185,129,0.4);
    box-shadow:0 0 0 1px rgba(16,185,129,0.25);
}

/* Update/sync button stack under an existing entry */
.gc-action-pair { display:flex; flex-direction:column; gap:6px; }
.gc-entered-line { font-size:0.72rem; color:var(--text-dim); text-align:center; }

/* ==== Completed rows ==== */
.giveaway-rows { display:flex; flex-direction:column; gap:10px; }
.giveaway-row {
    display:grid;
    grid-template-columns: 64px minmax(160px, 1.5fr) 0.75fr 0.95fr 0.75fr minmax(220px, 1.5fr);
    gap:12px;
    align-items:center;
    background:var(--bg-card); border:1px solid var(--border); border-radius:12px;
    padding:10px 14px;
    transition:border-color 0.15s, transform 0.15s;
}
.giveaway-row:hover { border-color:var(--border-hover); transform:translateY(-1px); }
.gc-row-thumb { width:64px; height:64px; border-radius:10px; overflow:hidden; display:block; background:rgba(255,255,255,0.04); }
.gc-row-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.gc-row-main { min-width:0; }
.gc-row-name { display:block; font-size:1rem; font-weight:700; color:var(--text); text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
a.gc-row-name:hover { color:#a78bfa; }
.gc-row-collection { font-size:0.78rem; color:var(--text-dim); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gc-row-cell { text-align:left; }
.gc-row-label { font-size:0.68rem; text-transform:uppercase; letter-spacing:0.06em; color:var(--text-dim); font-weight:600; }
.gc-row-value { font-size:0.88rem; font-weight:600; color:var(--text); margin-top:3px; font-variant-numeric:tabular-nums; }
.gc-row-value.highlight { color:#a78bfa; }
.gc-row-value.muted { color:var(--text-dim); }
.gc-row-outcome-wrap { display:flex; justify-content:flex-end; }
.gc-row-outcome { font-size:0.82rem; font-weight:600; padding:6px 12px; border-radius:8px; white-space:nowrap; }
.gc-row-outcome.claimed { background:rgba(16,185,129,0.14); color:var(--success); }
.gc-row-outcome.unclaimed { background:rgba(245,158,11,0.14); color:var(--warning); }
.gc-row-outcome.won { background:rgba(16,185,129,0.18); color:var(--success); }
.gc-row-outcome.muted { color:var(--text-dim); }
.gc-row-claim { width:auto; padding:9px 18px; }

/* Past filter */
.past-filter { margin-bottom:10px; display:flex; justify-content:flex-end; }
.past-filter-toggle {
    display:inline-flex; align-items:center; gap:8px;
    font-size:0.8rem; color:var(--text-muted); cursor:pointer;
    user-select:none; padding:6px 12px; border-radius:8px;
    background:rgba(0,0,0,0.25); border:1px solid var(--border);
}
.past-filter-toggle:hover { color:var(--text); border-color:rgba(167,139,250,0.35); }
.past-filter-toggle input { accent-color:#a78bfa; cursor:pointer; }

@media (max-width:900px) {
    .giveaway-row {
        grid-template-columns: 64px 1fr;
        grid-auto-rows:auto;
        row-gap:8px;
    }
    .gc-row-thumb { width:56px; height:56px; }
    .gc-row-main { grid-column:2; }
    .gc-row-cell { grid-column:2; display:flex; justify-content:space-between; align-items:baseline; gap:10px; }
    .gc-row-cell .gc-row-label { font-size:0.7rem; }
    .gc-row-cell .gc-row-value { margin-top:0; font-size:0.85rem; }
    .gc-row-outcome-wrap { grid-column:1 / -1; justify-content:flex-start; padding-top:4px; }
    .gc-row-claim { width:100%; }
}

/* Winner row (Completed tab) — single line: avatar · name · status pill */
.gc-row-outcome { padding:0; background:transparent; }
.gc-row-outcome.won-row {
    display:inline-flex; align-items:center;
    gap:8px; white-space:nowrap;
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.06);
    border-radius:999px;
    padding:4px 8px 4px 4px;
}
.gc-row-outcome.muted { display:flex; justify-content:flex-end; }

.gc-winner-pfp {
    width:24px; height:24px; border-radius:50%; object-fit:cover; flex-shrink:0;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.12);
}
.gc-winner-pfp-fallback {
    display:inline-flex; align-items:center; justify-content:center;
    font-size:0.7rem; font-weight:700; color:rgba(255,255,255,0.85);
    background:linear-gradient(135deg, rgba(124,58,237,0.55), rgba(167,139,250,0.4));
    font-family:inherit;
}
.gc-out-name {
    font-size:0.82rem; font-weight:600; color:var(--text);
    font-family:ui-monospace, monospace;
    max-width:120px; overflow:hidden; text-overflow:ellipsis;
}

/* Status pill */
.gc-out-pill {
    display:inline-flex; align-items:center; gap:4px;
    padding:3px 10px; border-radius:999px;
    font-size:0.7rem; font-weight:600; letter-spacing:0.02em;
    border:1px solid transparent;
    text-decoration:none;
    transition:background-color 120ms ease, border-color 120ms ease;
}
.gc-out-pill svg { width:10px; height:10px; opacity:0.7; }
.gc-out-orb { width:13px; height:13px; border-radius:3px; vertical-align:middle; opacity:0.85; }
a.gc-out-pill.claimed:hover .gc-out-orb { opacity:1; }
.gc-out-pill.claimed {
    color:#34d399;
    background:rgba(16,185,129,0.12);
    border-color:rgba(16,185,129,0.28);
}
a.gc-out-pill.claimed:hover { background:rgba(16,185,129,0.2); border-color:rgba(16,185,129,0.55); }
.gc-out-pill.pending {
    color:#fbbf24;
    background:rgba(245,158,11,0.1);
    border-color:rgba(245,158,11,0.28);
}
.gc-out-pill.empty {
    color:var(--text-dim);
    background:rgba(255,255,255,0.04);
    border-color:rgba(255,255,255,0.08);
}

/* Inline claim CTA — when current wallet is the winner */
.gc-row-outcome.actionable .gc-row-claim {
    padding:5px 14px; font-size:0.75rem;
    border-radius:999px;
}

@media (max-width:900px) {
    .gc-out-name { max-width:none; }
}

/* ──────────────────────────────────────────────────────────
   Buyback Pools tab
   ──────────────────────────────────────────────────────── */

.pools-loading {
    padding: 36px 20px;
    text-align: center;
    color: var(--text-muted, rgba(255,255,255,0.45));
    font-size: 0.85rem;
    grid-column: 1 / -1;
}

.pools-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.pools-summary-card {
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 12px;
    min-width: 0;
}
.pools-summary-card .ps-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted, rgba(255,255,255,0.45));
    margin-bottom: 6px;
    font-weight: 600;
}
.pools-summary-card .ps-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
.pools-summary-card .ps-sub {
    font-size: 0.7rem;
    color: var(--text-dim, rgba(255,255,255,0.35));
    margin-top: 3px;
}

/* "Next buyback cycle" card — subtle purple tint + help cursor so it
   reads as informational / hoverable (the tooltip explains the 4-hour
   schedule). */
.pools-summary-card.pools-summary-cron {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.25);
    cursor: help;
}
.pools-summary-card.pools-summary-cron .ps-value { color: #c4b5fd; }

/* Inline Solana logo used as a SOL prefix everywhere the denomination
   is shown (summary values, card balances, recent-buyback prices). */
.sol-icon {
    width: 12px; height: 12px;
    border-radius: 50%;
    vertical-align: -2px;
    display: inline-block;
    flex-shrink: 0;
}

.pools-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 6px 0 16px;
}
.pools-search {
    flex: 1; min-width: 200px;
    padding: 9px 14px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}
.pools-search:focus { border-color: rgba(124,58,237,0.5); }
.pools-pagesize {
    padding: 9px 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}
.pools-count {
    font-size: 0.78rem;
    color: var(--text-dim, rgba(255,255,255,0.4));
    white-space: nowrap;
}

.pools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}
.pool-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    background: var(--bg-card, rgba(255,255,255,0.03));
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
    min-width: 0;
}
.pool-card:hover {
    border-color: rgba(124,58,237,0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124,58,237,0.08);
}
.pool-card.pool-ready {
    border-color: rgba(52,211,153,0.45);
    background: linear-gradient(135deg, rgba(52,211,153,0.04), rgba(255,255,255,0.03));
}
.pool-card.pool-ready:hover { border-color: rgba(52,211,153,0.7); box-shadow: 0 8px 28px rgba(52,211,153,0.15); }

.pool-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
/* Wrapper holds the collection logo + an optional token logo overlay
   (bottom-right corner) so projects with token buybacks signal the
   partnership without consuming a chip slot. */
.pool-card-logo-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.pool-card-logo {
    width: 44px; height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(255,255,255,0.05);
    display: block;
}
.pool-card-token-overlay {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    background: #0a0a1a;
    /* Dark ring punches the overlay off the main logo regardless of
       either image's colour palette. */
    box-shadow: 0 0 0 2px #0a0a1a, 0 2px 6px rgba(0,0,0,0.55);
    cursor: help;
}
.pool-card-ident { min-width: 0; flex: 1; }
.pool-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.pool-card-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pool-chip {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.pool-chip.chip-nft    { background: rgba(124,58,237,0.18); color: #c4b5fd; }
.pool-chip.chip-token  { background: rgba(251,191,36,0.16); color: #fcd34d; }
.pool-chip.chip-idle   { background: rgba(255,255,255,0.06); color: var(--text-dim, rgba(255,255,255,0.35)); }
/* Subtle lift on hover so users notice the tooltip is worth reading */
.pool-chip { cursor: help; transition: filter 0.15s; }
.pool-chip:hover { filter: brightness(1.15); }
/* Legacy class names kept in case any pre-existing markup still uses them */
.pool-chip.chip-buy    { background: rgba(124,58,237,0.18); color: #c4b5fd; }
.pool-chip.chip-bid    { background: rgba(59,130,246,0.18); color: #93c5fd; }
.pool-chip.chip-resell { background: rgba(251,191,36,0.16); color: #fcd34d; }

.pool-progress-wrap { min-width: 0; }
.pool-progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
    font-size: 0.78rem;
}
.pool-progress-lead { color: var(--text-muted, rgba(255,255,255,0.5)); font-weight: 600; }
.pool-progress-value { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.pool-progress-value .muted { color: var(--text-dim, rgba(255,255,255,0.35)); font-weight: 500; }
.pool-progress-bar {
    position: relative;
    height: 7px;
    background: rgba(255,255,255,0.06);
    border-radius: 99px;
    overflow: hidden;
}
.pool-progress-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #8b5cf6);
    border-radius: 99px;
    transition: width 0.4s ease;
}
.pool-ready .pool-progress-bar > span { background: linear-gradient(90deg, #10b981, #34d399); }

/* Fixed 4-column rail so NFTs bought + SOL spent always sit in the same
   x-position across every card (cards used to re-flow because auto-fit
   redistributed the two always-present stats to 50%-wide columns on
   cards without burn/send data, and 33% on cards with it). Extra
   conditional stats wrap to a second row instead of shifting the rest. */
.pool-stat-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 14px;
    padding-top: 10px;
    border-top: 1px solid var(--border, rgba(255,255,255,0.06));
}
@media (max-width: 420px) {
    .pool-stat-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pool-stat { min-width: 0; }
.pool-stat .lbl {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-dim, rgba(255,255,255,0.35));
    margin-bottom: 2px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pool-stat .val {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pools-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 22px 0 8px;
}
.pools-page-btn {
    min-width: 32px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 8px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}
.pools-page-btn:hover:not(:disabled):not(.active) { background: rgba(124,58,237,0.1); border-color: rgba(124,58,237,0.3); }
.pools-page-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-color: rgba(124,58,237,0.5);
    color: #fff;
}
.pools-page-btn.disabled, .pools-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.pools-page-gap {
    color: var(--text-dim, rgba(255,255,255,0.3));
    padding: 0 6px;
}

.pools-recent-head {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 32px 0 14px;
    color: #fff;
}
.pools-recent-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.pool-rec-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card, rgba(255,255,255,0.03));
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, transform 0.15s;
}
.pool-rec-card:hover { border-color: rgba(124,58,237,0.35); transform: translateY(-2px); }
.pool-rec-img {
    position: relative;
    aspect-ratio: 1;
    background: rgba(255,255,255,0.04);
    overflow: hidden;
}
.pool-rec-img img { width: 100%; height: 100%; object-fit: cover; }
.pool-rec-ph { width: 100%; height: 100%; background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(59,130,246,0.08)); }
.pool-rec-status {
    position: absolute; bottom: 6px; right: 6px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.pool-rec-holding { background: rgba(167,139,250,0.25); color: #ddd6fe; }
.pool-rec-listed  { background: rgba(251,191,36,0.25);  color: #fde68a; }
.pool-rec-sold    { background: rgba(16,185,129,0.25);  color: #a7f3d0; }
.pool-rec-body { padding: 10px 12px; }
.pool-rec-name { font-size: 0.82rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pool-rec-coll { font-size: 0.72rem; color: var(--text-muted, rgba(255,255,255,0.5)); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pool-rec-price { font-size: 0.78rem; color: #c4b5fd; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
