/* ── index (home page) ─────────────────────────────────── */

body.page-index {
    background: linear-gradient(160deg, #f0fdf4 0%, #eff6ff 50%, #fefce8 100%);
    min-height: 100vh;
}

body.page-index h1 {
    color: #14532d;
    font-size: 1.75rem;
}

body.page-index .page-content {
    max-width: 52rem;
}

body.page-index .page-content a:not(.site-nav__link) {
    color: #1d4ed8;
    font-weight: 500;
}

body.page-index .page-content a:not(.site-nav__link):hover {
    text-decoration: underline;
}

/* ── tier grid ─────────────────────────────────────────── */

.subscription-tiers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    isolation: isolate;

    /* blockchain 0s and 1s background */
    background-image: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=1200&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

/* dark tinted overlay to keep cards readable against the image */
.subscription-tiers::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 23, 0.72);
    z-index: 0;
}

/* cards sit above the overlay */
.subscription-tiers > .tier-card {
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    .subscription-tiers {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

/* ── individual card ───────────────────────────────────── */

.tier-card {
    position: relative;
    border: 2px solid var(--tier-accent-light, #e2e8f0);
    border-radius: 12px;
    padding: 1.5rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: default;
}

.tier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    border-color: var(--tier-accent, #2563eb);
}

.tier-card.selected {
    border-color: var(--tier-accent, #2563eb);
    background: color-mix(in srgb, var(--tier-accent-light, #bfdbfe) 25%, #fff);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tier-accent, #2563eb) 25%, transparent),
                0 14px 32px rgba(0, 0, 0, 0.15);
}

/* per-tier accent colours — brand: green / blue / yellow / green-yellow blend */
.tier-card[data-tier="1"] {
    --tier-accent:       #16a34a;
    --tier-accent-light: #bbf7d0;
    --tier-accent-dark:  #14532d;
    --tier-btn-text:     #fff;
}
.tier-card[data-tier="2"] {
    --tier-accent:       #2563eb;
    --tier-accent-light: #bfdbfe;
    --tier-accent-dark:  #1e3a8a;
    --tier-btn-text:     #fff;
}
.tier-card[data-tier="3"] {
    --tier-accent:       #ca8a04;
    --tier-accent-light: #fef08a;
    --tier-accent-dark:  #713f12;
    --tier-btn-text:     #1c1917;
}
.tier-card[data-tier="4"] {
    --tier-accent:       #0d9488;
    --tier-accent-light: #99f6e4;
    --tier-accent-dark:  #134e4a;
    --tier-btn-text:     #fff;
}

/* ── badge ─────────────────────────────────────────────── */

.tier-badge {
    display: inline-block;
    background: var(--tier-accent, #2563eb);
    color: var(--tier-btn-text, #fff);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    align-self: flex-start;
}

/* ── card heading ──────────────────────────────────────── */

.tier-title {
    font-size: 1.2rem;
    color: #1e293b;
    margin: 0;
}

/* ── form inside card ──────────────────────────────────── */

.tier-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.tier-form .form-field {
    margin: 0;
}

.tier-form label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.2rem;
}

.tier-form input[readonly] {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
    font-weight: 700;
    cursor: default;
    font-size: 1rem;
}

/* price input gets the tier accent tint */
.tier-form input[id$="-price"] {
    color: var(--tier-accent);
    font-size: 1.15rem;
}

/* ── select button ─────────────────────────────────────── */

.tier-btn {
    width: 100%;
    margin-top: auto;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tier-accent, #2563eb);
    background: transparent;
    border: 2px solid var(--tier-accent, #2563eb);
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tier-btn:hover {
    background: var(--tier-accent, #2563eb);
    color: var(--tier-btn-text, #fff);
}

.tier-card.selected .tier-btn {
    background: var(--tier-accent, #2563eb);
    color: var(--tier-btn-text, #fff);
    letter-spacing: 0.02em;
}

.tier-card.selected .tier-btn::before {
    content: '✓ ';
}

/* ── summary bar ───────────────────────────────────────── */

.tier-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 0.9rem 1.25rem;
    background: linear-gradient(90deg, #14532d 0%, #1e3a5f 50%, #713f12 100%);
    color: #e2e8f0;
    border-radius: 10px;
    animation: fadeSlideIn 0.25s ease;
}

.tier-summary p {
    margin: 0;
    color: #e2e8f0;
}

.tier-summary strong {
    color: #fde047;
}

.tier-summary-cta {
    white-space: nowrap;
    padding: 0.45rem 1rem;
    background: #16a34a;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.tier-summary-cta:hover {
    background: #15803d;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0);   }
}

/* ── Money-use section ─────────────────────────────────── */

.money-use {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* ── Base card ─────────────────────────────────────────── */

.money-use__card {
    flex: 1 1 calc(50% - 0.75rem); /* 2-column grid */
    min-width: 260px;              /* never crush below this */
    background: #fff;
    border-radius: 12px;
    border-left: 4px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.75rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, border-left-color 0.2s ease;
}

.money-use__card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid currentColor;
    opacity: 0.9;
}

.money-use__card p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 0.85rem;
}

.money-use__card p:last-child {
    margin-bottom: 0;
}

/* ── Variant: blockchain (green) ───────────────────────── */

.money-use__card--blockchain {
    border-left-color: #16a34a;
}

.money-use__card--blockchain h2 {
    color: #14532d;
}

.money-use__card--blockchain:hover {
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.15);
    border-left-color: #4ade80;
}

/* ── Variant: uses (blue) ──────────────────────────────── */

.money-use__card--uses {
    border-left-color: #2563eb;
}

.money-use__card--uses h2 {
    color: #1e3a8a;
}

.money-use__card--uses:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
    border-left-color: #60a5fa;
}

/* ── Variant: types (yellow) ───────────────────────────── */

.money-use__card--types {
    border-left-color: #ca8a04;
}

.money-use__card--types h2 {
    color: #713f12;
}

.money-use__card--types:hover {
    box-shadow: 0 6px 20px rgba(202, 138, 4, 0.15);
    border-left-color: #fde047;
}

/* ── Variant: tokens (teal) ────────────────────────────── */

.money-use__card--tokens {
    border-left-color: #0d9488;
}

.money-use__card--tokens h2 {
    color: #134e4a;
}

.money-use__card--tokens:hover {
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.15);
    border-left-color: #2dd4bf;
}

/* ── Variant: platform (purple) — spans full row ───────── */

.money-use__card--platform {
    flex: 1 1 100%;                /* always full width — anchors the bottom */
    border-left-color: #7c3aed;
}

.money-use__card--platform h2 {
    color: #4c1d95;
}

.money-use__card--platform:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.15);
    border-left-color: #a78bfa;
}

/* ── Responsive — tablet ───────────────────────────────── */

@media (max-width: 768px) {
    body.page-index .page-content {
        max-width: 100%;
    }

    .subscription-tiers {
        gap: 1rem;
        padding: 1.25rem;
    }

    .tier-title {
        font-size: 1.1rem;
    }

    .money-use {
        gap: 1.25rem;
    }

    .money-use__card {
        flex: 1 1 calc(50% - 0.625rem); /* stay 2-column on tablet */
        padding: 1.25rem 1.5rem;
    }

    .money-use__card--platform {
        flex: 1 1 100%;
    }
}

/* ── Responsive — mobile ───────────────────────────────── */

@media (max-width: 480px) {
    .tier-card {
        padding: 1rem 0.9rem 0.9rem;
    }

    .tier-title {
        font-size: 1rem;
    }

    .tier-badge {
        font-size: 0.65rem;
    }

    .tier-btn {
        padding: 0.6rem 1rem;
        font-size: 0.88rem;
    }

    /* summary bar stacks vertically */
    .tier-summary {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .tier-summary-cta {
        text-align: center;
        padding: 0.55rem 1rem;
    }

    .money-use {
        gap: 1rem;
        margin-top: 2rem;
    }

    /* single column on small phones */
    .money-use__card,
    .money-use__card--platform {
        flex: 1 1 100%;
        padding: 1rem 1.1rem;
        border-radius: 8px;
    }

    .money-use__card h2 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .money-use__card p {
        font-size: 0.9rem;
        line-height: 1.65;
    }
}

/* ══════════════════════════════════════════════════════════
   Market Prices — third section (outside .page-content)
   ══════════════════════════════════════════════════════════ */

.market-prices {
    max-width: 72rem;
    margin: 3rem auto 0;
    padding: 0 1.5rem 4rem;
    box-sizing: border-box;
}

/* ── Section header ────────────────────────────────────────── */

.market-prices__header {
    margin-bottom: 1.5rem;
}

.market-prices__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.market-prices__title-row h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.market-prices__header p {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0 0 0.4rem;
}

.market-prices__updated {
    display: block;
    font-size: 0.73rem;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

/* ── Refresh controls row ──────────────────────────────────── */

.market-ctrl {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
}

/* ── LIVE badge ────────────────────────────────────────────── */

.market-live-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #34d399;
    padding: 0.18rem 0.55rem;
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    transition: opacity 0.25s ease;
}

.market-has-error .market-live-badge {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(239, 68, 68, 0.1);
}

/* pulsing dot */
.market-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    flex-shrink: 0;
    animation: livePulse 2s ease-in-out infinite;
}

.market-has-error .market-live-dot {
    background: #f87171;
    animation: none;
}

@keyframes livePulse {
    0%, 100% { opacity: 1;   transform: scale(1);    }
    50%       { opacity: 0.4; transform: scale(0.75); }
}

/* ── CSS ring spinner (shown during loading) ───────────────── */

.market-ctrl__spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(148, 163, 184, 0.25);
    border-top-color: #60a5fa;
    animation: spinRing 0.7s linear infinite;
    flex-shrink: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

@keyframes spinRing {
    to { transform: rotate(360deg); }
}

/* ── Loading state ─────────────────────────────────────────── */

.market-is-loading .market-live-badge  { opacity: 0; pointer-events: none; }
.market-is-loading .market-ctrl__spinner { opacity: 1; }

/* ── Countdown text ────────────────────────────────────────── */

.market-ctrl__countdown {
    font-size: 0.72rem;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
    min-width: 7rem;
    text-align: right;
    transition: opacity 0.2s ease;
}

.market-is-loading .market-ctrl__countdown {
    color: #60a5fa;
}

/* ── Refresh button ────────────────────────────────────────── */

.market-ctrl__btn {
    padding: 0.28rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
    white-space: nowrap;
}

.market-ctrl__btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
}

.market-ctrl__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ══════════════════════════════════════════════════════════
   Slider scaffold
   ══════════════════════════════════════════════════════════ */

.market-slider {
    position: relative;
    /* horizontal room for the absolutely-positioned arrows */
    padding: 0 3rem;
    box-sizing: border-box;
}

/* ── Clipping viewport ─────────────────────────────────────── */

.market-slider__viewport {
    overflow: hidden;
    border-radius: 14px;
    /* slight inset so the arrow buttons overlay cleanly */
    margin: 0 0.25rem;
}

/* ── Sliding track ─────────────────────────────────────────── */

.market-slider__track {
    display: flex;
    flex-wrap: nowrap;
    /* transition injected by JS; 'none' for instant boundary jumps */
    will-change: transform;
    /* stop vertical scroll fighting horizontal swipe */
    touch-action: pan-y;
}

/* ── Each slide — width set in pixels by JS ────────────────── */

.market-slide {
    flex-shrink: 0;
}

/* ── Arrow buttons ─────────────────────────────────────────── */

.market-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: none;
    background: #1e293b;
    color: #94a3b8;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
    user-select: none;
}

.market-slider__arrow:hover:not(:disabled) {
    background: #334155;
    color: #f1f5f9;
    transform: translateY(-50%) scale(1.08);
}

.market-slider__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.market-slider__arrow--prev { left:  0; }
.market-slider__arrow--next { right: 0; }

/* ── Dot indicators ────────────────────────────────────────── */

.market-slider__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.1rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #334155;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease, width 0.25s ease;
    flex-shrink: 0;
}

.slider-dot.active {
    background: #60a5fa;
    width: 22px;
    border-radius: 4px;
    transform: none;
}

.slider-dot:hover:not(.active) {
    background: #475569;
    transform: scale(1.2);
}

/* ── Auto-play progress sweep on active dot ────────────────── */

.slider-dot.active {
    position: relative;
    overflow: hidden;
}

.slider-dot.active::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.55);
    animation: dotSweep 3s linear forwards;
}

@keyframes dotSweep {
    from { left: -100%; }
    to   { left:  100%; }
}

/* ── Individual panel card ─────────────────────────────────── */

.market-panel {
    background: #0f172a;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    min-height: 320px;   /* prevents collapse during data load */
    box-sizing: border-box;
}

.market-panel:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.38);
}

/* active slide gets a subtle glow matching panel accent */
.market-slide.is-active .market-panel--etf    { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4), 0 8px 32px rgba(0,0,0,0.38); }
.market-slide.is-active .market-panel--crypto { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4), 0 8px 32px rgba(0,0,0,0.38); }
.market-slide.is-active .market-panel--stocks { box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.4), 0 8px 32px rgba(0,0,0,0.38); }

/* ── Responsive arrow sizing ───────────────────────────────── */

@media (max-width: 600px) {
    .market-slider {
        padding: 0 2.2rem;
    }

    .market-slider__arrow {
        width: 2rem;
        height: 2rem;
        font-size: 1.25rem;
    }
}

/* ── Panel header bar ──────────────────────────────────────── */

.market-panel__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.market-panel__head h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
    flex: 1;
}

.market-panel__icon {
    font-size: 1rem;
    line-height: 1;
}

.market-panel__badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    text-transform: uppercase;
}

/* ── Per-panel accent colours ──────────────────────────────── */

.market-panel--etf    { border-top: 3px solid #10b981; }
.market-panel--crypto { border-top: 3px solid #3b82f6; }
.market-panel--stocks { border-top: 3px solid #f59e0b; }

.market-panel--etf    .market-panel__badge { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.market-panel--crypto .market-panel__badge { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }
.market-panel--stocks .market-panel__badge { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }

/* ── Price list ────────────────────────────────────────────── */

.market-panel__list {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
    flex: 1;
}

/* ── Single price row ──────────────────────────────────────── */

.market-row {
    display: grid;
    grid-template-columns: 3.8rem 1fr auto auto;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease;
}

.market-row:last-child { border-bottom: none; }

.market-row:hover { background: rgba(255, 255, 255, 0.04); }

/* brief highlight when a row value updates */
@keyframes rowFlash {
    0%   { background: rgba(96, 165, 250, 0.14); }
    100% { background: transparent; }
}

.market-row--flash { animation: rowFlash 0.9s ease-out forwards; }

.market-row__ticker {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f1f5f9;
    font-variant-numeric: tabular-nums;
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
}

.market-row__ticker em {
    font-style: normal;
    font-size: 0.6rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.market-row__name {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-row__price {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.market-row__change {
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    min-width: 4.5rem;
    text-align: right;
}

.market-row__change.up   { color: #34d399; }
.market-row__change.down { color: #f87171; }

/* ── External link row (stocks CORS fallback) ──────────────── */

.market-row--stock-link {
    grid-template-columns: 3.8rem 1fr auto;
}

.market-row__ext {
    font-size: 0.72rem;
    font-weight: 600;
    color: #fbbf24;
    text-decoration: none;
    white-space: nowrap;
}

.market-row__ext:hover { text-decoration: underline; }

/* ── Notice / error rows ───────────────────────────────────── */

.market-row--notice,
.market-row--error {
    grid-template-columns: 1fr;
    padding: 0.65rem 1rem;
}

.market-row--notice span,
.market-row--error span {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.5;
}

.market-row--error span { color: #f87171; }

/* ── Skeleton loading shimmer ──────────────────────────────── */

@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position:  400px 0; }
}

.market-row--skeleton {
    pointer-events: none;
}

.market-row--skeleton span {
    display: block;
    height: 0.75rem;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.10) 50%,
        rgba(255,255,255,0.04) 75%
    );
    background-size: 800px 100%;
    animation: shimmer 1.4s infinite linear;
}

.market-row--skeleton span:nth-child(1) { width: 3rem; }
.market-row--skeleton span:nth-child(2) { width: 60%;  }
.market-row--skeleton span:nth-child(3) { width: 3.5rem; margin-left: auto; }
.market-row--skeleton span:nth-child(4) { width: 2.5rem; }

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 480px) {
    .market-prices {
        padding: 0 1rem 3rem;
    }

    .market-row {
        grid-template-columns: 3.2rem 1fr auto auto;
        gap: 0.3rem;
        padding: 0.38rem 0.75rem;
    }

    .market-row__name { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   Blockchain Image Slideshow
   ═══════════════════════════════════════════════════════════ */

/* Fade-out to the right, then snap from left and fade in */
@keyframes bc-fade-out-right {
    0%   { opacity: 1;   transform: translateX(0);    }
    100% { opacity: 0;   transform: translateX(60px); }
}

@keyframes bc-fade-in-left {
    0%   { opacity: 0;   transform: translateX(-60px); }
    100% { opacity: 1;   transform: translateX(0);     }
}

.bc-slide-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 7;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.bc-slide-track {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Each slide sits absolutely on top of the same box */
.bc-slide-item {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: none;
}

.bc-slide-item.bc-active {
    opacity: 1;
    pointer-events: auto;
    animation: bc-fade-in-left 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.bc-slide-item.bc-exiting {
    animation: bc-fade-out-right 0.5s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.bc-slide-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 1.25rem;
    display: block;
}

.bc-slide-caption {
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #e2e8f0;
    background: rgba(5, 46, 22, 0.75);
    border: 1px solid rgba(74, 222, 128, 0.3);
    backdrop-filter: blur(6px);
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* Dot indicators */
.bc-slide-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.bc-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(148, 163, 184, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}

.bc-dot.bc-dot--active {
    background: #4ade80;
    transform: scale(1.35);
}

.bc-dot:hover:not(.bc-dot--active) {
    background: rgba(148, 163, 184, 0.65);
}

/* Responsive */
@media (max-width: 640px) {
    .bc-slide-wrapper {
        aspect-ratio: 4 / 3;
        border-radius: 0.875rem;
    }

    .bc-slide-item img {
        border-radius: 0.875rem;
    }
}
