:root {
    --bg-primary: #0d0e12;
    --bg-card: #171923;
    --bg-card-hover: #202331;

    --fs-3xs: 11px;
    --fs-2xs: 12px;
    --fs-xs: 13px;
    --fs-sm: 14px;
    --fs-md: 16px;
    --fs-lg: 18px;
    --fs-xl: 24px;
    --fs-2xl: 32px;

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    --text-primary: #e2e8f0;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --text-white: #ffffff;

    --green: #38a169;
    --red: #e53e3e;
    --orange: #ed8936;
    --yellow: #ecc94b;
    --success-dark: #2f855a;

    --border-color: #242938;
    --border-hover: #3d465d;

    --radius: 16px;
    --transition: .25s;
    --shadow: 0 8px 25px rgba(0, 0, 0, .25);
    --snapshot-indicator-height: 6px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    line-height: 1.55;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    padding: 0 clamp(16px, 2vw, 40px);
    min-height: 100vh;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--fw-semibold);
    line-height: 1.2;
}

.page-main {
    display: block;
}

img {
    display: block;
    max-width: 100%;
}

.modern-header {
    height: 60px;
    display: flex;
    justify-content: center; /* space-between */
    align-items: center;
    gap: 0px; /* 24px */
}

.header-text-group {
    flex: 1;
    max-width: 700px;
    text-align: center;
}

.logo-title {
    margin: 0;
    margin-bottom: 6px;
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    letter-spacing: -0.5px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.logo-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.logo-title .logo-suffix {
    font-weight: var(--fw-regular);
    letter-spacing: 0.5px;
    background: linear-gradient(120deg,
            #a0aec0 30%,
            #ffffff 50%,
            #a0aec0 70%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.header-subtitle {
    margin: 0;
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: var(--text-muted, #718096);
    line-height: 1.4;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.timer-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: 100px;
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
    white-space: nowrap;
}

.timer-badge strong {
    color: var(--text-white, #ffffff);
}

.spin-icon {
    font-size: var(--fs-2xs);
    color: var(--green, #38a169);
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--text-white, #ffffff);
    color: var(--bg-primary, #0d0e12);
    padding: 10px 24px;
    border-radius: 100px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-btn[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

a:focus-visible,
.login-btn:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* Mobile layout (768px and below). */
@media (max-width: 768px) {
    .modern-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .logo-title {
        font-size: var(--fs-xl);
        text-align: left;
    }

    .header-subtitle {
        font-size: var(--fs-xs);
    }

    .header-actions {
        width: auto;
    }

    .timer-badge {
        display: none !important;
    }

    .login-btn {
        padding: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        justify-content: center;
        gap: 0;
    }

    .login-btn span,
    .login-btn text {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Reserved for narrow-screen header refinements when needed. */
}

.section-title {
    font-size: var(--fs-sm);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: var(--fw-semibold);
    color: var(--text-secondary);
    margin: 64px 0 16px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    margin-top: 16px;
    margin-bottom: 16px;
}

.section-head .section-title {
    margin: 0;
    white-space: nowrap;
    font-size: var(--fs-xs);
}

.watchlist-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.watchlist-count {
    font-variant-numeric: tabular-nums;
}

.watchlist-toggle-btn:hover {
    color: var(--text-white);
}

.watchlist-toggle-btn.is-active {
    color: #f6c343;
    background: rgba(246, 195, 67, 0.14);
}

.dashboard-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 8px;
    align-items: stretch;
    width: 100%;
}

.dashboard-container.is-watchlist-only {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.dashboard-carousel::-webkit-scrollbar {
    height: 6px;
}

.dashboard-carousel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.dashboard-carousel .stat-box {
    flex: 0 0 220px;
    min-width: 220px;
    height: 158px;
    scroll-snap-align: start;
}

.dashboard-carousel .box-title {
    height: 28px;
    margin-bottom: 6px;
    font-size: var(--fs-2xs);
    gap: 6px;
    overflow: hidden;
}

.dashboard-carousel .price-row {
    min-height: 24px;
    align-items: center;
}

.dashboard-carousel .sub-value {
    min-height: 14px;
    margin-top: 2px;
}

.dashboard-carousel .main-value {
    font-size: var(--fs-md);
    line-height: 1.05;
}

.dashboard-carousel .sub-value,
.dashboard-carousel .stat-txt,
.dashboard-carousel .gauge-labels {
    font-size: var(--fs-3xs);
}

.dashboard-carousel .stat-txt {
    min-height: 34px;
    margin-top: 6px;
    line-height: 1.35;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dashboard-carousel .chart-container {
    min-height: 52px;
    height: 52px;
}

.dashboard-carousel .gauge-wrapper {
    height: 6px;
    margin: 6px 0;
}

.dashboard-carousel .gauge-pointer {
    width: 11px;
    height: 11px;
}

.snapshot-head {
    margin-top: 8px;
}

.snapshot-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    width: 100%;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.snapshot-grid::-webkit-scrollbar {
    height: 6px;
}

.snapshot-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.seo-content {
    margin-top: 32px;
    padding: 0px 16px 16px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-card);
}

.seo-lead {
    font-size: var(--fs-xs);
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

.seo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.seo-kicker {
    margin: 0;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--text-muted);
}

.seo-card h3 {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--text-white);
    margin: 5px 0 7px;
}

.seo-article-body {
    margin: 0;
    font-size: var(--fs-xs);
    line-height: 1.6;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.seo-data-value {
    font-weight: var(--fw-semibold);
    color: var(--text-white);
}

.seo-data-positive {
    color: var(--green);
}

.seo-data-negative {
    color: var(--red);
}

.seo-data-neutral {
    color: var(--text-muted);
}

.seo-article-meta {
    margin: 8px 0 0;
    font-size: 10px;
    color: var(--text-muted);
}

.seo-explainer {
    margin-top: 8px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.12);
}

.seo-explainer h3 {
    margin-bottom: 6px;
    font-size: var(--fs-xs);
    color: var(--text-white);
}

.seo-explainer p {
    font-size: var(--fs-2xs);
    line-height: 1.6;
    color: var(--text-secondary);
}

.snapshot-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
        "label"
        "value"
        "indicator"
        "meta";
    row-gap: 8px;
    flex: 1 0 212px;
    min-width: 212px;
    padding: 8px 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.snapshot-price-row {
    gap: 10px;
    align-items: baseline;
}

.snapshot-copy {
    position: relative;
    z-index: 1;
    margin-top: 2px;
    font-size: var(--fs-3xs);
    line-height: 1.35;
    color: var(--text-muted);
}

.snapshot-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.snapshot-card,
.snapshot-card-global,
.snapshot-card-fng {
    scroll-snap-align: start;
}

.snapshot-label,
.snapshot-value,
.snapshot-meta,
.snapshot-bar {
    position: relative;
    z-index: 1;
}

.snapshot-label {
    grid-area: label;
    font-size: var(--fs-2xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
}

.snapshot-value {
    grid-area: value;
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    line-height: 1;
    color: var(--text-white);
}

.snapshot-gauge {
    grid-area: indicator;
    align-self: start;
    margin-top: 0;
}

.snapshot-gauge-labels {
    margin-top: 6px;
}

.snapshot-meta {
    grid-area: meta;
    font-size: var(--fs-3xs);
    color: var(--text-muted);
    line-height: 1.35;
}

.snapshot-mini-chart-wrap {
    grid-area: meta;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 40px;
    overflow: visible;
    margin-top: auto;
}

.snapshot-mini-chart {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.snapshot-bar {
    grid-area: indicator;
    align-self: start;
    height: var(--snapshot-indicator-height);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.snapshot-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--yellow), var(--green));
    transition: width 0.4s ease;
}

.snapshot-bar.is-stacked {
    display: flex;
    height: var(--snapshot-indicator-height);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.snapshot-bar.is-stacked .dominance-segment {
    height: 100%;
    width: 0;
    transition: width 0.4s ease;
    border-radius: 0;
}

.snapshot-bar.is-stacked .dominance-segment-btc {
    background: #f7931a;
}

.snapshot-bar.is-stacked .dominance-segment-eth {
    background: #627eea;
}

.snapshot-bar.is-stacked .dominance-segment-other {
    background: rgba(148, 163, 184, 0.22);
}

.snapshot-card-dominance {
    /* border-color: var(--border-color);
    background: var(--bg-card); */
    grid-template-rows: auto auto 1fr auto;
    row-gap: 8px;
}

.snapshot-card-dominance .snapshot-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-secondary);
}

.dominance-title-legend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-3xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0;
    text-transform: none;
}

.dominance-title-btc {
    color: #f7931a;
}

.dominance-title-eth {
    color: #627eea;
}

.dominance-title-other {
    color: #94a3b8;
}

.dominance-breakdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "top2 gap"
        "ratio delta";
    grid-area: meta;
    align-items: baseline;
    gap: 4px 10px;
    margin-top: 0;
    width: 100%;
}

#dominance-summary {
    position: relative;
    display: block;
    grid-area: value;
    min-height: 24px;
    width: 100%;
}

.snapshot-card-dominance .snapshot-bar {
    grid-area: indicator;
    align-self: start;
    margin-top: 0;
}

.dominance-value {
    position: absolute;
    top: 0;
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
    line-height: 1;
}

.dominance-percent {
    font-weight: var(--fw-bold);
    font-size: var(--fs-xl);
    line-height: 1;
    color: var(--text-white);
}

.dominance-coin-icon {
    font-size: 0.9em;
    line-height: 1;
}

.dominance-separator {
    color: var(--text-muted);
    font-weight: var(--fw-regular);
}

.dominance-value-btc {
    left: 0;
    color: inherit;
}

.dominance-value-btc .dominance-coin-icon {
    color: #f7931a;
}

.dominance-value-eth {
    left: var(--eth-start, 50%);
    color: inherit;
}

.dominance-value-eth .dominance-coin-icon {
    color: #627eea;
}

.dominance-value-other {
    color: inherit;
}

.dominance-label {
    color: var(--text-secondary);
    font-weight: var(--fw-semibold);
}

.dominance-item {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
    white-space: nowrap;
    color: var(--text-muted);
}

.dominance-item-top2 {
    grid-area: top2;
}

.dominance-item-gap {
    grid-area: gap;
}

.dominance-item-ratio {
    grid-area: ratio;
}

.dominance-item-top2delta {
    color: var(--text-muted);
}

.dominance-delta-up {
    color: var(--green);
}

.dominance-delta-down {
    color: var(--red);
}

.dominance-delta-flat {
    color: var(--text-muted);
}

.dominance-label-btc {
    color: #f7931a;
}

.dominance-label-eth {
    color: #627eea;
}

.dominance-label-other {
    color: var(--text-secondary);
}

.snapshot-card-btc .snapshot-bar span {
    background: linear-gradient(90deg, #f7931a 0%, #f6c343 55%, #fde68a 100%);
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
    white-space: nowrap;
    color: var(--text-muted);
    align-self: center;
}

.snapshot-card-global .snapshot-gauge,
.snapshot-card-global .snapshot-bar,
.snapshot-card-volume .snapshot-gauge,
.snapshot-card-volume .snapshot-bar {
    display: none;
}

.snapshot-card-global .snapshot-label,
.snapshot-card-fng .snapshot-label {
    color: var(--text-secondary);
}

.snapshot-card-global .snapshot-meta,
.snapshot-card-fng .snapshot-meta {
    color: var(--text-muted);
}

.fng-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
    width: 100%;
}

.fng-meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    white-space: nowrap;
    color: var(--text-muted);
}

.fng-meta-label {
    color: var(--text-secondary);
    font-weight: var(--fw-semibold);
}

.fng-delta-up {
    color: var(--green);
}

.fng-delta-down {
    color: var(--red);
}

.fng-delta-flat {
    color: var(--text-muted);
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100px;
    min-width: 0;
    overflow: hidden;
}

.stat-box:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.stat-txt {
    font-size: var(--fs-xs);
    font-weight: var(--fw-regular);
    color: var(--text-muted);
    margin-top: 8px;
}

.box-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
    min-height: 32px;
}

.title-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.box-pin {
    margin-left: auto;
}

.coin-site-link {
    margin-left: 4px;
    padding-left: 8px;
    padding-right: 8px;
    height: 24px;
    font-size: 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    text-decoration: none;
    text-transform: none;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.coin-site-link:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.08);
}

.watch-toggle {
    margin-left: auto;
    border: 1px solid transparent;
    border-radius: 999px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    transition: transform var(--transition), color var(--transition), background var(--transition), border-color var(--transition);
}

.watch-toggle:hover {
    color: #f6c343;
}

.watch-toggle.is-active {
    color: #f6c343;
    background: rgba(246, 195, 67, 0.14);
}

.is-hidden-by-watchlist {
    display: none !important;
}

.coin-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--text-white);
    background: var(--text-white);
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
}

.main-value {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--text-white);
    line-height: 1;
}

.percentage {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}

.price-row-market-cap {
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--text-muted);
    margin-left: auto;
    text-align: right;
}

.percent-up {
    color: var(--green);
}

.percent-down {
    color: var(--red);
}

.sub-value {
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coin-meta-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
    min-height: 14px;
}

.coin-meta-item {
    font-size: var(--fs-3xs);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coin-meta-range {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
}

.coin-meta-rsi {
    flex: 0 0 auto;
    text-align: right;
    margin-left: auto;
}

.coin-meta-sep {
    color: var(--text-muted);
}

.coin-range-icon {
    color: var(--text-muted);
}

.coin-high {
    font-weight: var(--fw-semibold);
}

.coin-low {
    font-weight: var(--fw-semibold);
}

.coin-range-percent {
    color: var(--text-muted);
}

.coin-range-line {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coin-range-scale {
    width: 100%;
}

.coin-range-progress {
    position: relative;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
    overflow: hidden;
}

.coin-range-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: rgba(148, 163, 184, 0.50);
}

.coin-range-ends {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.coin-rsi-value {
    font-weight: var(--fw-semibold);
    color: #b386f4;
}

.coin-rsi-state {
    color: var(--text-muted);
    margin-left: 2px;
}

.coin-rsi-overbought {
    color: #b386f4;
}

.coin-rsi-oversold {
    color: #b386f4;
}

.coin-rsi-neutral {
    color: #b386f4;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 64px;
    overflow: visible;
    margin-top: auto;
}

.gauge-wrapper {
    position: relative;
    width: 100%;
    height: var(--snapshot-indicator-height);
    border-radius: 4px;
    overflow: visible;
    background: linear-gradient(90deg, 
        #e53e3e 0%, #e53e3e 25%, 
        #ed8936 25%, #ed8936 50%, 
        #8ccf61 50%, #8ccf61 75%, 
        #2f855a 75%, #2f855a 100%
    );
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, .5);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.gauge-pointer {
    animation: pulse 2.5s infinite;
    position: absolute;
    left: 0%;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--bg-card);
    transform: translate(-50%, -50%);
    transition: left 0.8s ease;
    z-index: 2;
    pointer-events: none;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: var(--fs-3xs);
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    color: var(--text-muted);
}

@media (max-width:1500px) {
    .dashboard-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .dashboard-container.is-watchlist-only {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width:1200px) {
    .dashboard-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .dashboard-container.is-watchlist-only {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width:900px) {
    body {
        padding: 16px;
    }

    .dashboard-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-container.is-watchlist-only {
        grid-template-columns: 1fr;
    }

    .main-value {
        font-size: var(--fs-xl);
    }
}

@media (max-width:600px) {
    body {
        padding: 16px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .header h1 {
        font-size: 24px;
    }

    .dashboard-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dashboard-container.is-watchlist-only {
        grid-template-columns: 1fr;
    }

    .dashboard-carousel {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding-bottom: 6px;
        scroll-snap-type: x proximity;
    }

    .dashboard-carousel .stat-box {
        flex: 0 0 76vw;
        min-width: 76vw;
        height: 154px;
        padding: 8px;
    }

    .dashboard-carousel .box-title {
        font-size: var(--fs-2xs);
        height: 24px;
        margin-bottom: 5px;
    }

    .dashboard-carousel .price-row {
        min-height: 22px;
    }

    .dashboard-carousel .sub-value {
        min-height: 12px;
    }

    .dashboard-carousel .main-value {
        font-size: var(--fs-sm);
    }

    .dashboard-carousel .chart-container {
        min-height: 48px;
        height: 48px;
    }

    .dashboard-carousel .stat-txt {
        font-size: var(--fs-2xs);
        min-height: 24px;
        margin-top: 4px;
    }

    .section-head {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .section-head .section-title {
        margin: 0;
        font-size: var(--fs-xs);
        letter-spacing: 1px;
        white-space: nowrap;
    }

    .watchlist-toggle-btn {
        padding: 7px 11px;
        font-size: var(--fs-2xs);
        margin-left: auto;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .stat-box {
        min-height: 150px;
        height: auto;
        padding: 10px;
        border-radius: 12px;
    }

    .dashboard-carousel .stat-box {
        height: 154px;
        border-radius: 12px;
    }

    .main-value {
        font-size: var(--fs-md);
        line-height: 1.1;
    }

    .price-row {
        gap: 6px;
    }

    .percentage {
        font-size: var(--fs-2xs);
    }

    .chart-container {
        height: 58px;
    }

    .box-title {
        font-size: var(--fs-xs);
        min-height: 24px;
        margin-bottom: 6px;
        gap: 6px;
    }

    .coin-icon {
        width: 18px;
        height: 18px;
        border-width: 1px;
    }

    .sub-value {
        font-size: var(--fs-2xs);
    }

    .coin-meta-row {
        gap: 6px;
        margin-top: 1px;
    }

    .coin-meta-item {
        font-size: 10px;
    }

    .stat-txt {
        font-size: var(--fs-2xs);
        line-height: 1.35;
        margin-top: 6px;
    }

    .gauge-wrapper {
        height: 6px;
        margin: 6px 0;
    }

    .gauge-pointer {
        width: 12px;
        height: 12px;
    }

    .gauge-labels {
        margin-top: 6px;
        font-size: var(--fs-2xs);
    }

    .snapshot-grid .snapshot-card {
        flex: 0 0 76vw;
        min-width: 76vw;
    }

    .seo-card {
        padding: 10px;
        border-radius: 12px;
    }

    .seo-content {
        border-radius: 14px;
    }

    .seo-lead {
        font-size: var(--fs-2xs);
        line-height: 1.6;
        margin-bottom: 10px;
    }

    .seo-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        gap: 8px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 4px;
        align-items: stretch;
    }

    .seo-grid .seo-card {
        flex: 0 0 78vw;
        min-width: 78vw;
        scroll-snap-align: start;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .seo-article-body,
    .seo-explainer p {
        font-size: var(--fs-2xs);
    }

    .seo-kicker,
    .seo-article-meta {
        font-size: 10px;
    }

    .seo-explainer {
        padding: 9px;
    }

    .seo-card h3 {
        font-size: var(--fs-xs);
    }

    .snapshot-card-btc,
    .snapshot-card-eth {
        grid-template-rows: auto auto 20px auto;
        row-gap: 8px;
    }

    .snapshot-card-btc .snapshot-bar,
    .snapshot-card-eth .snapshot-bar {
        width: 100%;
        margin: 0;
        align-self: center;
    }

    .snapshot-card-dominance .snapshot-bar {
        margin: 6px 0;
    }

    #dominance-summary {
        min-height: 24px;
    }

    .dominance-value-eth {
        left: var(--eth-start, 50%);
    }

    .dominance-breakdown {
        gap: 4px 10px;
    }
}

@media (max-width:380px) {
    .dashboard-carousel .stat-box {
        flex-basis: 82vw;
        min-width: 82vw;
    }

    .stat-box {
        min-height: 142px;
        height: auto;
    }

    .header h1 {
        font-size: var(--fs-lg);
    }

    .main-value {
        font-size: var(--fs-sm);
    }

    .box-title {
        font-size: var(--fs-2xs);
    }

    .sub-value {
        font-size: var(--fs-2xs);
    }

    .coin-meta-item {
        font-size: 9.5px;
    }

    .percentage {
        font-size: var(--fs-2xs);
    }

    .snapshot-grid {
        gap: 8px;
    }

    .snapshot-grid .snapshot-card {
        flex-basis: 82vw;
        min-width: 82vw;
    }

    .snapshot-card-btc,
    .snapshot-card-eth {
        grid-template-rows: auto auto 20px auto;
    }

    .seo-grid .seo-card {
        flex-basis: 84vw;
        min-width: 84vw;
    }

}

.modern-footer {
    margin-top: 80px;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color, #242938);
    background: var(--bg-primary, #0d0e12);
    color: var(--text-secondary, #a0aec0);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.footer-logo {
    font-weight: var(--fw-semibold);
    color: var(--text-white, #ffffff);
    margin-bottom: 16px;
}

.brand-tagline {
    font-weight: var(--fw-regular);
    color: var(--text-muted, #718096);
}

.footer-links-grid {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h4 {
    color: var(--text-white, #ffffff);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: var(--fw-semibold);
}

.footer-column a {
    color: var(--text-secondary, #a0aec0);
    text-decoration: none;
    font-size: var(--fs-xs);
    margin-bottom: 12px;
    transition: all var(--transition, 0.25s);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-column a:hover {
    color: var(--text-white, #ffffff);
    transform: translateX(4px);
}

.footer-legal {
    border-top: 1px solid var(--border-color, #242938);
    padding-top: 30px;
}

.disclaimer-text {
    font-size: var(--fs-2xs);
    line-height: 1.6;
    color: var(--text-muted, #718096);
    margin-bottom: 24px;
    text-align: justify;
}

.disclaimer-text strong {
    color: var(--text-secondary, #a0aec0);
}

.copyright-row {
    text-align: center;
    font-size: var(--fs-xs);
    color: var(--text-muted, #718096);
}

@media (max-width: 768px) {
    .modern-footer {
        padding: 40px 0 20px;
    }

    .footer-main {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links-grid {
        gap: 32px;
        flex-direction: column;
    }

    .disclaimer-text {
        text-align: left;
    }
}

.legal-page {
    padding: 36px 0 12px;
}

.legal-wrap {
    max-width: 860px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
}

.legal-title {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-semibold);
    margin-bottom: 10px;
    color: var(--text-white);
}

.legal-updated {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    margin-bottom: 20px;
}

.legal-wrap h2 {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: var(--fs-lg);
    color: var(--text-white);
}

.legal-wrap p {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

.legal-wrap ul {
    margin: 6px 0 12px 20px;
    color: var(--text-secondary);
}

.legal-wrap li {
    margin-bottom: 6px;
    line-height: 1.7;
    font-size: var(--fs-sm);
}

.legal-wrap a {
    color: var(--text-white);
}

@media (max-width: 768px) {
    .legal-page {
        padding: 20px 0 6px;
    }

    .legal-wrap {
        padding: 16px;
    }

    .legal-title {
        font-size: 24px;
    }

    .legal-wrap h2 {
        font-size: 16px;
    }
}

.fng-status {
    font-size: var(--fs-3xs);
    line-height: 1;
    color: var(--text-secondary);
}

.footer-logo-text {
    margin-bottom: 12px;
}