:root {
    /* Cobra theme — inspired by LinkHash. Dark green-tinted base with mint accents. */
    --bg: #0b0f0e;
    --panel: #141a18;
    --panel-2: #1a2220;
    --border: rgba(80, 255, 180, 0.10);
    --text: #e9f3ef;
    --muted: rgba(233, 243, 239, 0.62);
    --positive: #33f0a3;
    --negative: #ff8b8b;
    --accent: #33f0a3;
    --accent2: #1edc8a;
    --accent-dim: rgba(51, 240, 163, 0.12);
    --accent-glow: rgba(51, 240, 163, 0.35);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
                 Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* ---------- Top bar ---------- */
.topbar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 32px;
    background: rgba(20, 26, 24, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar .brand {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 19px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
}
.topbar .brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 0 18px var(--accent-glow);
}
.topbar .brand-text { color: var(--text); }
.topbar .brand-mark {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.topbar .subtitle {
    color: var(--muted);
    font-size: 13px;
}
.topbar .live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(51, 240, 163, 0.10);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    border: 1px solid rgba(51, 240, 163, 0.22);
    margin-left: 16px;
}
.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(0.85); }
}
.topbar .updated {
    margin-left: 12px;
    color: var(--muted);
    font-size: 12px;
}
@media (max-width: 640px) {
    .topbar .live-indicator { font-size: 10px; padding: 3px 8px; }
}
@media (max-width: 640px) {
    .topbar { padding: 12px 16px; gap: 10px; }
    .topbar .subtitle { display: none; }
    .topbar .updated { font-size: 11px; }
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px;
}
@media (max-width: 720px) {
    main { padding: 16px; }
}

/* ---------- Landing hero ---------- */
.landing-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
    margin: 8px 0 56px;
    padding: 32px 8px 0;
}
.landing-hero h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 18px;
    letter-spacing: -0.5px;
    color: var(--text);
}
.landing-hero h1 .accent {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.landing-hero .hero-sub {
    font-size: 16.5px;
    color: var(--muted);
    line-height: 1.65;
    max-width: 560px;
    margin: 0 0 24px;
}
.landing-hero .hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.hero-pill {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--accent-dim);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.hero-mascot-wrap {
    display: flex;
    justify-content: center;
    position: relative;
}
.hero-mascot {
    width: 100%;
    max-width: 460px;
    height: auto;
    filter: drop-shadow(0 0 48px rgba(51, 240, 163, 0.18))
            drop-shadow(0 18px 56px rgba(0, 0, 0, 0.6));
}

/* ---------- Hero markets panel ---------- */
.hero-markets {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 22px;
    font-size: 13px;
    line-height: 1.55;
    position: relative;
    overflow: hidden;
    min-width: 0;
}
.hero-markets::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(80,255,180,.22), transparent);
}
.mkt-section + .mkt-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(80,255,180,.06); }
.mkt-section-title {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    margin: 0 0 8px;
    font-weight: 700;
}
.mkt-row {
    display: grid;
    grid-template-columns: 14px 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 3px 0;
    font-variant-numeric: tabular-nums;
}
.mkt-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--muted);
}
.mkt-dot.up { background: var(--positive); box-shadow: 0 0 8px rgba(51, 240, 163, 0.5); }
.mkt-dot.down { background: var(--negative); box-shadow: 0 0 8px rgba(255, 139, 139, 0.5); }
.mkt-dot.flat { background: rgba(255,255,255,0.25); }
.mkt-name { color: var(--text); font-weight: 500; }
.mkt-value { color: var(--text); font-weight: 700; text-align: right; padding-left: 12px; }
.mkt-chg { text-align: right; font-weight: 600; min-width: 64px; padding-left: 8px; }
.mkt-chg.positive { color: var(--positive); }
.mkt-chg.negative { color: var(--negative); }
.mkt-chg.muted { color: var(--muted); font-weight: 500; }
.mkt-fng .mkt-value { font-weight: 800; }
.mkt-updated {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(80, 255, 180, 0.06);
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.3px;
    text-align: right;
}
.mkt-updated .local-time { color: var(--text); font-weight: 500; }

.pill-soon {
    background: rgba(255, 218, 87, 0.18);
    color: #ffda57;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: 4px;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .hero-markets {
        font-size: 12.5px;
        padding: 16px 18px;
    }
}
@media (max-width: 900px) {
    .landing-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
        padding: 24px 0 0;
        margin-bottom: 36px;
    }
    .landing-hero .hero-pills { justify-content: center; }
    .landing-hero h1 { font-size: 34px; }
    .hero-mascot { max-width: 280px; }
}
@media (max-width: 480px) {
    .landing-hero h1 { font-size: 28px; }
    .landing-hero .hero-sub { font-size: 14.5px; }
}

/* ---------- Portfolio section (wraps hero + tactic-grid) ---------- */
.portfolio-section {
    margin: 0 0 56px;
}
.portfolio-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 26px;
    padding-bottom: 18px;
    position: relative;
    flex-wrap: wrap;
}
.portfolio-section-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(51, 240, 163, 0.55) 0%,
        rgba(51, 240, 163, 0.18) 22%,
        rgba(255, 255, 255, 0.05) 60%,
        transparent 100%);
}
.portfolio-section-heading {
    flex: 1 1 auto;
    min-width: 0;
}
.portfolio-section-eyebrow {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    opacity: 0.9;
}
.portfolio-section-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.4px;
    line-height: 1.1;
    background: linear-gradient(90deg, #ffffff 0%, #d4f6e6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.portfolio-section-sub {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
    max-width: 720px;
}
.portfolio-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(51, 240, 163, 0.08);
    color: var(--accent);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border: 1px solid rgba(51, 240, 163, 0.22);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(51, 240, 163, 0.08);
}
.portfolio-section .hero { margin-bottom: 24px; }
.portfolio-section .tactic-grid { margin-bottom: 0; }
@media (max-width: 640px) {
    .portfolio-section-header h2 { font-size: 24px; }
    .portfolio-section-header { align-items: flex-start; }
}

/* ---------- Hero block ---------- */
.hero {
    margin-bottom: 40px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 24px;
}
@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 540px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .hero-stat .value { font-size: 26px; }
}
.hero-stat {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 26px;
    position: relative;
    overflow: hidden;
}
.hero-stat::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(80, 255, 180, 0.18), transparent);
}
.hero-stat .label {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.hero-stat .value {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
}
.hero-stat .value.muted { color: var(--muted); }
.hero-stat .sublabel {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}
.hero-stat.allocation-chart-wrap {
    padding: 16px 20px;
}

/* ---------- Tactic grid ---------- */
.tactic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 56px;
}
@media (max-width: 720px) {
    .tactic-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Tactic filter bar (above grid) ---------- */
.tactic-filter-bar {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    margin-bottom: 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.tactic-filter-bar::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(80, 255, 180, 0.18), transparent);
}

/* ---------- Tactic pagination wrap (below grid) ---------- */
.tactic-pag-wrap {
    margin-top: 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.tactic-pag-wrap::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(80, 255, 180, 0.18), transparent);
}
.tactic-pag-wrap .pagination-bar {
    border-top: none;
    background: transparent;
}
.tactic-empty {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 56px 24px;
    margin-top: 0;
}

/* ---------- Stock perp universe panel (landing page) ---------- */
.stock-universe {
    margin: 0 0 56px;
}
.stock-universe-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 26px;
    padding-bottom: 18px;
    position: relative;
    flex-wrap: wrap;
}
.stock-universe-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(51, 240, 163, 0.55) 0%,
        rgba(51, 240, 163, 0.18) 22%,
        rgba(255, 255, 255, 0.05) 60%,
        transparent 100%);
}
.stock-universe-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
    letter-spacing: -0.2px;
}
.stock-universe-sub {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
    max-width: 720px;
}
.stock-universe-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(51, 240, 163, 0.08);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    border: 1px solid rgba(51, 240, 163, 0.18);
    white-space: nowrap;
    flex-shrink: 0;
}
/* ---------- Filter bar (CMC-style toggle pills) ---------- */
.universe-filters {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
    padding: 18px 22px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.universe-filters::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(80, 255, 180, 0.18), transparent);
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.filter-label {
    font-size: 10.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    min-width: 64px;
}
.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-pill {
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: inherit;
    letter-spacing: 0.2px;
}
.filter-pill:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.10);
}
.filter-pill.active {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: rgba(51, 240, 163, 0.35);
    box-shadow: 0 0 0 0 var(--accent-glow);
}
.filter-pill-logo {
    height: 14px;
    width: auto;
    opacity: 0.95;
}
.pill-count {
    background: rgba(255, 255, 255, 0.07);
    color: var(--muted);
    padding: 1px 7px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.filter-pill.active .pill-count {
    background: rgba(51, 240, 163, 0.18);
    color: var(--accent);
}
.filter-pill-soon {
    background: rgba(255, 218, 87, 0.18);
    color: #ffda57;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* ---------- Flat universe table ---------- */
.universe-table-wrap {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.universe-table-wrap::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(80, 255, 180, 0.18), transparent);
    z-index: 1;
}
.universe-flat-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13.5px;
}
.universe-flat-table thead th {
    background: rgba(20, 26, 24, 0.96);
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 10.5px;
    letter-spacing: 0.9px;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 2;
}
.universe-flat-table thead th.num {
    text-align: right;
}
.universe-flat-table thead th.rank-col {
    width: 48px;
    text-align: center;
}
.universe-flat-table thead th.sortable-header {
    cursor: pointer;
    user-select: none;
    transition: color 0.12s ease;
}
.universe-flat-table thead th.sortable-header:hover {
    color: var(--text);
}
.universe-flat-table thead th.sortable-header.sort-active {
    color: var(--accent);
}
.universe-flat-table thead th .sort-arrow {
    display: inline-block;
    width: 12px;
    text-align: right;
    margin-left: 3px;
    font-size: 10px;
    opacity: 0.35;
    transition: opacity 0.12s ease;
}
.universe-flat-table thead th.sortable-header:hover .sort-arrow {
    opacity: 0.7;
}
.universe-flat-table thead th.sort-active .sort-arrow {
    opacity: 1;
    font-size: 9px;
}
.universe-flat-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
}
.universe-flat-table tbody tr:last-child td { border-bottom: none; }
.universe-flat-table tbody tr {
    transition: background 0.1s ease;
}
.universe-flat-table tbody tr:hover {
    background: rgba(51, 240, 163, 0.03);
}
.universe-flat-table .num {
    text-align: right;
}
.universe-flat-table .strong {
    font-weight: 700;
}
.universe-flat-table .rank-col {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.universe-flat-table .ticker-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}
.universe-flat-table .ticker-sym {
    font-weight: 700;
    color: var(--text);
    font-size: 14px;
    letter-spacing: 0.3px;
}
.universe-flat-table .ticker-name {
    font-size: 11px;
    color: var(--muted);
    font-weight: 400;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Pagination bar ---------- */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid rgba(80, 255, 180, 0.06);
    background: rgba(20, 26, 24, 0.55);
    gap: 16px;
    flex-wrap: wrap;
}
.pagination-left, .pagination-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pag-label {
    color: var(--muted);
    font-size: 12.5px;
    letter-spacing: 0.2px;
}
.pag-select-wrap {
    position: relative;
}
.pag-select {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 28px 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.15s ease;
    /* Custom dropdown arrow */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%238b949e' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 6px;
}
.pag-select:hover {
    border-color: rgba(80, 255, 180, 0.25);
    color: var(--accent);
}
.pag-select:focus {
    outline: none;
    border-color: rgba(80, 255, 180, 0.40);
    box-shadow: 0 0 0 2px var(--accent-dim);
}
.pag-info {
    color: var(--text);
    font-size: 12.5px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    min-width: 130px;
    text-align: center;
}
.pag-btn {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.12s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}
.pag-btn:not(:disabled):hover {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: rgba(80, 255, 180, 0.25);
}
.pag-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
@media (max-width: 540px) {
    .pagination-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .pagination-left, .pagination-right {
        justify-content: space-between;
    }
}

.universe-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--muted);
}
.empty-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.7; }
.empty-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-sub { font-size: 13px; max-width: 460px; margin: 0 auto; line-height: 1.5; }

/* Mobile: hide 4h + ticker name to fit narrow screens */
@media (max-width: 640px) {
    .universe-flat-table thead th:nth-child(6),
    .universe-flat-table tbody td:nth-child(6) {
        display: none;
    }
    .universe-flat-table .ticker-name { display: none; }
    .universe-flat-table thead th,
    .universe-flat-table tbody td { padding: 12px 10px; font-size: 12.5px; }
    .universe-filters { padding: 14px 16px; }
    .filter-label { min-width: 56px; }
}

/* ---------- SEO/About blurb (long-form content for indexers) ---------- */
.seo-blurb {
    max-width: 920px;
    margin: 0 auto 72px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.75;
}
.seo-blurb h2 {
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 14px;
    letter-spacing: -0.2px;
}
.seo-blurb p { margin: 0 0 16px; }
.seo-blurb strong { color: var(--text); }
.seo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}
.seo-list li {
    position: relative;
    padding: 10px 0 10px 22px;
    border-bottom: 1px solid rgba(80, 255, 180, 0.06);
}
.seo-list li:last-child { border-bottom: none; }
.seo-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent);
}
.seo-list strong { color: var(--accent); }
@media (max-width: 720px) {
    .seo-blurb { padding: 0 4px; }
    .seo-blurb h2 { font-size: 19px; }
    .seo-blurb { font-size: 14px; }
}
.tactic-card {
    display: block;
    background: var(--panel);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 14px;
    padding: 24px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.18s ease;
    position: relative;
    overflow: hidden;
}
.tactic-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(80, 255, 180, 0.18), transparent);
}
.tactic-card:hover {
    transform: translateY(-4px);
    border-color: rgba(80, 255, 180, 0.32);
    box-shadow:
        0 16px 44px rgba(0, 0, 0, 0.5),
        0 0 32px var(--accent-dim);
}
.tactic-card:hover .tactic-badge {
    box-shadow: 0 0 14px var(--accent-glow);
}
.tactic-badge {
    transition: box-shadow 0.18s ease;
}
.tactic-card h2 { transition: color 0.18s ease; }
.tactic-card:hover h2 { color: #fff; }
.tactic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.tactic-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    text-transform: uppercase;
    color: #000;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.tactic-status {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    animation: livePulse 1.6s ease-in-out infinite;
}
.status-pending {
    color: rgba(255, 218, 87, 0.85);
    background: rgba(255, 218, 87, 0.08);
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 218, 87, 0.18);
}
.tactic-card-pending { opacity: 0.85; }
.tactic-card-pending:hover { opacity: 1; }
.tactic-card h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
}
.tactic-card .subtitle {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 16px;
}
.tactic-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.stat-label {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}
.stat-value {
    font-size: 16px;
    font-weight: 600;
}
.stat-value small {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    margin-left: 4px;
}

.tactic-curve {
    height: 60px;
    margin-top: 8px;
}

.tactic-exchange {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(80, 255, 180, 0.06);
}
.exchange-label {
    font-size: 10.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
}
.exchange-logo {
    height: 18px;
    width: auto;
    opacity: 0.92;
    filter: brightness(1.05);
}

/* ---------- Colors ---------- */
.positive { color: var(--positive); }
.negative { color: var(--negative); }
.muted { color: var(--muted); }

/* ---------- Detail page ---------- */
.back-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 16px;
    display: inline-block;
}
.back-link:hover { color: var(--text); }

.detail-hero {
    background: var(--panel);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 14px;
    padding: 28px 32px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}
.detail-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(80, 255, 180, 0.18), transparent);
}
.detail-hero {
    position: relative;
    overflow: hidden;
}
@media (max-width: 900px) {
    .detail-hero {
        grid-template-columns: 1fr;
        padding: 24px 20px;
        gap: 16px;
    }
    .detail-stats {
        grid-template-columns: repeat(3, auto) !important;
        gap: 20px !important;
    }
    .detail-stats .stat-value { font-size: 16px; }
}
@media (max-width: 540px) {
    .detail-stats {
        grid-template-columns: repeat(2, auto) !important;
        gap: 16px 24px !important;
    }
}
.detail-hero h1 {
    margin: 8px 0 4px;
    font-size: 26px;
    font-weight: 600;
}
.detail-hero .subtitle {
    color: var(--muted);
    margin: 0;
}
.detail-hero .phase-tag {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
}
.detail-stats {
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 32px;
}
.detail-stats .stat-value { font-size: 18px; }

.detail-chart {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    height: 320px;
}
.detail-chart h3 { margin: 0; font-size: 14px; color: var(--muted); }
.detail-chart canvas { height: 250px !important; }

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.tz-note {
    font-size: 12px;
    letter-spacing: 0.3px;
}

/* ---------- Strategy expectation note (per-tactic) ---------- */
.strategy-note {
    background: linear-gradient(135deg,
        rgba(51, 240, 163, 0.04) 0%,
        rgba(20, 26, 24, 0.75) 60%);
    border: 1px solid rgba(80, 255, 180, 0.14);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 36px;
    align-items: center;
}
.strat-eyebrow {
    color: var(--accent);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-weight: 700;
    margin-bottom: 8px;
}
.strat-headline {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}
.strat-body, .strat-range {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
    margin: 0 0 10px;
}
.strat-body strong, .strat-range strong { color: var(--accent); }

.strat-right {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(80,255,180,0.06);
    border-radius: 10px;
    padding: 14px 18px;
}
.strat-table-title {
    font-size: 10.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 8px;
}
.strat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.strat-table td { padding: 4px 0; }
.strat-table .year { color: var(--muted); }
.strat-table .ret { text-align: right; font-weight: 700; }
.strat-table .ret.positive { color: var(--positive); }
.strat-table .ret.negative { color: var(--negative); }

@media (max-width: 900px) {
    .strategy-note {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px 20px;
    }
    .strat-headline { font-size: 19px; }
}

.curve-placeholder {
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, transparent, rgba(88, 166, 255, 0.03));
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 32px;
}
.curve-placeholder-icon { font-size: 32px; opacity: 0.7; }
.curve-placeholder-title { font-size: 16px; font-weight: 600; color: var(--text); }
.curve-placeholder-sub { font-size: 13px; color: var(--text); text-align: center; }
.curve-placeholder-sub.muted { color: var(--muted); }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
}
.panel h3 { margin: 0 0 16px; font-size: 14px; color: var(--muted); }

/* ---------- Holdings panel ---------- */
.holdings-panel {
    padding: 28px 32px;
    margin-bottom: 32px;
}

.holdings-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px;
    align-items: center;
}

.holdings-chart-wrap {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    margin: auto;
}
.holdings-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}
.holdings-chart-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
.holdings-chart-center .center-label {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.holdings-chart-center .center-value {
    color: var(--text);
    font-size: 22px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.holdings-table-wrap {
    overflow-x: auto;
}
.holdings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}
.holdings-table thead th {
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 10.5px;
    letter-spacing: 0.8px;
    padding: 0 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.holdings-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.holdings-table tbody tr:last-child td { border-bottom: none; }
.holdings-table td.num, .holdings-table th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.holdings-table td.strong { font-weight: 600; }
.holdings-table tbody tr:hover {
    background: rgba(255,255,255,0.025);
}
.holdings-table tr.cash-row {
    color: var(--muted);
}

.asset-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.asset-icon {
    position: relative;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.asset-icon img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
}
.asset-icon .icon-fallback {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    display: none;
}
.asset-name {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.weight-pill {
    background: var(--accent-dim);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {
    .holdings-layout {
        grid-template-columns: 1fr;
    }
    .holdings-chart-wrap {
        max-width: 260px;
    }
}

/* ---------- Open position card ---------- */
.position-card {
    margin-bottom: 24px;
    padding: 28px 32px;
}
.position-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.position-header h3 { margin: 0; font-size: 14px; color: var(--muted); }
.side-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.side-badge.positive { background: rgba(63, 185, 80, 0.15); color: var(--positive); }
.side-badge.negative { background: rgba(248, 81, 73, 0.15); color: var(--negative); }
.side-badge.sm { padding: 2px 8px; font-size: 10px; letter-spacing: 0.5px; }

.position-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 28px;
}
.pos-stat { min-width: 0; }
.pos-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}
.pos-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.pos-sub {
    font-size: 12px;
    margin-top: 2px;
}
/* Highlight the Unrealized P&L cell so the eye lands there first */
.pos-stat-highlight .pos-value {
    font-size: 22px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .position-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .position-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Trade history table ---------- */
.table-scroll { overflow-x: auto; }
.trade-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}
.trade-table thead th {
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 10.5px;
    letter-spacing: 0.8px;
    padding: 0 12px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}
.trade-table tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.trade-table tbody tr:last-child td { border-bottom: none; }
.trade-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.trade-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.trade-table .strong { font-weight: 600; }

.exit-reason {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.exit-reason.exit-tp { background: rgba(63, 185, 80, 0.12); color: var(--positive); }
.exit-reason.exit-sl { background: rgba(248, 81, 73, 0.12); color: var(--negative); }
.exit-reason.exit-manual { background: rgba(255, 255, 255, 0.05); color: var(--muted); }

/* ---------- Live market table ---------- */
.market-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.market-header h3 { margin: 0; font-size: 14px; color: var(--muted); }

.sector-block {
    margin-bottom: 28px;
}
.sector-block:last-child { margin-bottom: 0; }
.sector-title {
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--accent-dim);
}
.market-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}
.market-table thead th {
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.6px;
    padding: 4px 12px;
    text-align: left;
}
.market-table tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-variant-numeric: tabular-nums;
}
.market-table tbody tr:last-child td { border-bottom: none; }
.market-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.market-table .num { text-align: right; }
.market-table .strong { font-weight: 600; }

/* ---------- Info button + modal ---------- */
.info-col {
    width: 36px;
    text-align: center;
}
.info-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    padding: 0;
}
.info-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.05);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-overlay[hidden] { display: none; }

.modal-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px;
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.2s ease-out;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    color: var(--muted);
    border: none;
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.modal-icon {
    width: 56px;
    height: 56px;
    position: relative;
    flex-shrink: 0;
}
.modal-icon img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
}
.modal-icon .icon-fallback {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    display: none;
}
.modal-coin {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
}
.modal-name {
    color: var(--muted);
    font-size: 14px;
    margin-top: 2px;
}

.modal-body p {
    color: var(--text);
    line-height: 1.65;
    font-size: 14.5px;
    margin: 0 0 24px;
}

.cmc-link {
    display: inline-block;
    background: var(--accent);
    color: #062015;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.15s ease;
    box-shadow: 0 0 0 1px var(--accent-glow);
}
.cmc-link:hover {
    background: var(--accent2);
    box-shadow: 0 4px 18px var(--accent-glow);
    transform: translateY(-1px);
}

/* Stock-modal: text-only ticker badge instead of an image icon */
.stock-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #062015;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Tighter info button for the dense market table rows */
.market-table .info-btn {
    width: 22px;
    height: 22px;
}
.market-table .info-col {
    width: 30px;
    text-align: center;
}

.metric-table {
    width: 100%;
    border-collapse: collapse;
}
.metric-table th {
    text-align: left;
    color: var(--muted);
    font-weight: 400;
    padding: 8px 12px 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.metric-table td {
    text-align: right;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}
.metric-table tr:last-child th, .metric-table tr:last-child td { border-bottom: none; }

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.activity-list li {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
    font-size: 13px;
}
.activity-list li:last-child { border-bottom: none; }
.activity-kind {
    background: var(--panel-2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    text-transform: uppercase;
}
.activity-time {
    color: var(--muted);
    font-size: 11px;
}

.site-footer {
    margin-top: 100px;
    padding: 26px 48px 30px;
    color: var(--muted);
    font-size: 12.5px;
    letter-spacing: 0.3px;
    /* Subtle inset hairline at top — far less visible than a solid border */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    /* Very faint gradient gives the footer a sense of depth without changing color */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 30%);
}
.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 32px;
    align-items: center;
}
.footer-left {
    text-align: left;
    color: #b8c0c8;
    font-weight: 400;
}
.footer-brand {
    color: #b8c0c8;
    font-weight: 400;
    letter-spacing: 0.2px;
}
.footer-center {
    text-align: center;
    color: #8b949e;
    letter-spacing: 0.4px;
    font-weight: 400;
}
.footer-right {
    text-align: right;
    line-height: 1.6;
}
.footer-corp {
    color: #e6edf3;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 12.5px;
}
.footer-addr {
    color: #8b949e;
    font-size: 12px;
    letter-spacing: 0.7px;
    font-weight: 400;
}

@media (max-width: 800px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }
    .footer-left, .footer-right { text-align: center; }
}

/* ============================================================
   Cross-Exchange Arbitrage Scanner
   ============================================================ */
.arb-section { margin-top: 56px; }

.arb-top3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}
@media (max-width: 900px) {
    .arb-top3 { grid-template-columns: 1fr; }
}
.arb-hero-card {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
    overflow: hidden;
}
.arb-hero-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent, var(--accent2)), transparent);
}
.arb-hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at top right, var(--accent, var(--accent2)) 0%, transparent 55%);
    opacity: 0.06;
}
.arb-hero-rank {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.arb-hero-coin {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.2px;
    margin-bottom: 12px;
}
.arb-hero-profit {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.05;
    letter-spacing: -0.5px;
}
.arb-hero-krw {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
    margin-bottom: 14px;
}
.arb-hero-stats {
    display: flex;
    gap: 18px;
    margin-bottom: 14px;
}
.arb-hero-stats > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.arb-hero-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.arb-hero-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.arb-hero-val.positive { color: var(--accent); }

.arb-hero-route, .arb-section .ticker-cell + td {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.arb-ex-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: color-mix(in srgb, var(--ex-color, var(--accent)) 14%, transparent);
    color: var(--ex-color, var(--accent));
    border: 1px solid color-mix(in srgb, var(--ex-color, var(--accent)) 28%, transparent);
    white-space: nowrap;
}
.arb-arrow {
    color: var(--muted);
    font-size: 18px;
    font-weight: 600;
}
.arb-arrow-sm {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    margin: 0 2px;
}

/* Coverage chip row */
.arb-coverage-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.arb-coverage-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.arb-coverage-chip.arb-down { opacity: 0.45; }
.arb-coverage-chip.arb-total-chip {
    background: rgba(51, 240, 163, 0.08);
    color: var(--accent);
    border-color: rgba(51, 240, 163, 0.22);
}
.arb-coverage-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    box-shadow: 0 0 5px currentColor;
}

/* Tighten the route cell in the table */
.arb-section .universe-flat-table td:nth-child(3) {
    white-space: nowrap;
}

/* Phase 2: compat status badges + hero card top row */
.arb-hero-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.arb-status {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.arb-status.arb-verified {
    background: rgba(51, 240, 163, 0.15);
    color: var(--accent);
    border: 1px solid rgba(51, 240, 163, 0.32);
}
.arb-status.arb-unknown {
    background: rgba(255, 218, 87, 0.16);
    color: #ffda57;
    border: 1px solid rgba(255, 218, 87, 0.32);
}
.arb-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin-right: 12px;
    color: var(--muted);
}
.arb-legend .arb-status { font-size: 10px; padding: 1px 6px; }

/* Clickable exchange badge — opens that exchange's spot page for the asset */
.arb-ex-link {
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.arb-ex-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.15);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--ex-color, var(--accent)) 28%, transparent);
}
.arb-ex-link:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

/* ---------- Top-bar nav (Strategies / Signals) ---------- */
/* margin-left:auto pushes the nav + LIVE + Auto-refresh group to the right edge.
   Brand stays on the left; the right cluster reads: nav | LIVE | updated */
.topbar-nav {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.topbar-link {
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 7px;
    letter-spacing: 0.3px;
    transition: color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.topbar-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}
.topbar-link.active {
    color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
                0 0 0 1px rgba(51, 240, 163, 0.16);
}
.topbar-link.active:hover {
    background: var(--accent-dim);
    color: var(--accent);
}
@media (max-width: 640px) {
    .topbar-nav { gap: 0; padding: 2px; }
    .topbar-link { font-size: 12px; padding: 6px 11px; letter-spacing: 0.2px; }
}

/* ---------- Signals page intro header ---------- */
.signals-intro {
    margin: 0 0 36px;
}
.signals-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin: 0 0 10px;
    background: linear-gradient(90deg, #ffffff 0%, #d4f6e6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.signals-sub {
    font-size: 14px;
    color: var(--muted);
    max-width: 760px;
    line-height: 1.6;
    margin: 0;
}
