.fear-greed-dashboard {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 8px 0 28px;
    color: #f4f7fb;
}

.fear-greed-dashboard [hidden] {
    display: none !important;
}

.fng-hero,
.fng-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: linear-gradient(145deg, #17243a 0%, #111b2d 100%);
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.24);
}

.fng-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 32px;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 10%, rgba(0, 181, 173, 0.18), transparent 34%),
        linear-gradient(145deg, #17243a 0%, #111b2d 100%);
}

.fng-hero__identity {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
}

.fng-hero__icon,
.fng-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(0, 181, 173, 0.34);
    border-radius: 15px;
    background: rgba(0, 181, 173, 0.12);
    color: #54d7d0;
    font-size: 20px;
}

.fng-hero h1 {
    margin: 3px 0 8px;
    color: #f7fbff;
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 750;
    line-height: 1.2;
}

.fng-hero p {
    max-width: 820px;
    margin: 0;
    color: #a9b8cb;
    font-size: 14px;
    line-height: 1.75;
}

.fng-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #55d5cf;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fng-hero__score {
    display: flex;
    flex: 0 0 150px;
    flex-direction: column;
    align-items: flex-end;
    padding-left: 24px;
    border-left: 1px solid rgba(148, 163, 184, 0.2);
    text-align: right;
}

.fng-hero__score > span {
    color: #a9b8cb;
    font-size: 12px;
}

.fng-hero__score strong {
    color: var(--fng-score-color, #55d5cf);
    font-size: 44px;
    line-height: 1.15;
}

.fng-hero__score small {
    margin-left: 4px;
    color: #91a1b7;
    font-size: 15px;
    font-weight: 600;
}

.fng-hero__score em {
    color: var(--fng-score-color, #55d5cf);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.fng-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.fng-card {
    min-width: 0;
    padding: 22px;
    color: #e8eef7;
}

.fng-card__heading {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 48px;
    margin-bottom: 12px;
}

.fng-card__heading h2,
.fng-section-heading h2 {
    margin: 0;
    color: #f4f7fb;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.fng-card__heading p {
    margin: 3px 0 0;
    color: #91a2ba;
    font-size: 11px;
    line-height: 1.5;
}

.fng-card__icon--purple {
    border-color: rgba(167, 139, 250, 0.3);
    background: rgba(139, 92, 246, 0.13);
    color: #b7a0ff;
}

.fng-card__icon--blue {
    border-color: rgba(96, 165, 250, 0.3);
    background: rgba(59, 130, 246, 0.13);
    color: #80bcff;
}

.fng-gauge {
    width: 100%;
    height: 220px;
}

.fng-last-updated {
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    color: #91a2ba;
    font-size: 11px;
    text-align: center;
}

.fng-last-updated i {
    margin-right: 5px;
    color: #55d5cf;
}

.fng-history-list {
    display: flex;
    flex-direction: column;
}

.fng-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 55px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.fng-history-row:last-child {
    border-bottom: 0;
}

.fng-history-row__label,
.fng-history-row__date {
    display: block;
}

.fng-history-row__label {
    color: #e7edf6;
    font-size: 12px;
    font-weight: 650;
}

.fng-history-row__date {
    margin-top: 3px;
    color: #8092aa;
    font-size: 10px;
}

.fng-history-value {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.fng-history-value > span {
    color: var(--fng-score-color, #a9b8cb);
    font-size: 10px;
    text-align: right;
}

.fng-history-value strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 181, 173, 0.12);
    color: var(--fng-score-color, #55d5cf);
    font-size: 12px;
}

.fng-history-row__empty {
    color: #72839a;
    font-size: 11px;
}

.fng-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 12px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.fng-status-badge--stale {
    border-color: rgba(251, 191, 36, 0.28);
    background: rgba(245, 158, 11, 0.12);
    color: #ffd477;
}

.fng-status-badge--fresh {
    border-color: rgba(52, 211, 153, 0.25);
    background: rgba(16, 185, 129, 0.12);
    color: #76e3ba;
}

.fng-status-description {
    margin: 0;
    color: #a4b2c5;
    font-size: 12px;
    line-height: 1.7;
}

.fng-countdown {
    display: block;
    margin-top: 14px;
    color: #f4f7fb;
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

.fear-greed-dashboard > .tab {
    padding-top: 0 !important;
}

.fear-greed-dashboard .fng-chart-card,
.fear-greed-dashboard .fng-explainer {
    margin: 0;
    background: linear-gradient(145deg, #17243a 0%, #111b2d 100%) !important;
}

.fng-chart-card .coins_page_headings,
.fng-explainer .coins_page_headings,
.fng-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.fng-chart-card .coins_page_headings,
.fng-explainer .coins_page_headings {
    margin-bottom: 16px;
}

.fng-chart-card .coins_page_headings > .ui.ribbon.label,
.fng-explainer .coins_page_headings > .ui.ribbon.label,
.fng-explainer .ui.divider {
    display: none;
}

.fng-chart-card .coins_page_headings h2,
.fng-explainer .coins_page_headings h1 {
    margin: 0;
    color: #f4f7fb;
    font-size: 19px;
    font-weight: 700;
}

.fng-range-select select {
    min-width: 145px;
    padding: 10px 34px 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 11px;
    outline: none;
    background: #0e1929;
    color: #e8eef7;
    font-size: 12px;
}

.fng-range-select select:focus {
    border-color: #3ccac3;
    box-shadow: 0 0 0 3px rgba(60, 202, 195, 0.12);
}

.fng-history-chart {
    width: 100%;
    height: 390px;
}

.fng-history-chart--empty {
    height: 0;
}

.fng-gauge svg text,
.fng-history-chart svg text {
    fill: #a9b8cb !important;
}

.fng-chart-message {
    margin: 12px 0 0;
    padding: 13px 15px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 11px;
    background: rgba(59, 130, 246, 0.09);
    color: #b9d8ff;
    font-size: 12px;
}

.fng-chart-message--error {
    border-color: rgba(248, 113, 113, 0.25);
    background: rgba(239, 68, 68, 0.09);
    color: #ffaaaa;
}

.fng-explainer > p,
.fng-explainer li {
    color: #b2bfd0;
    font-size: 13px;
    line-height: 1.8;
}

.fng-explainer ul {
    padding-left: 22px;
}

.fng-explainer li {
    margin: 7px 0;
}

.fng-source-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid rgba(60, 202, 195, 0.25);
    border-radius: 10px;
    color: #74ded8 !important;
    font-size: 12px;
    font-weight: 700;
}

.fng-source-link:hover {
    background: rgba(60, 202, 195, 0.1);
}

.fng-empty-state {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fng-empty-state h2 {
    margin: 0;
    color: #dce5f1;
    font-size: 16px;
}

@media (max-width: 1050px) {
    .fng-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fng-card--status {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .fear-greed-dashboard {
        gap: 12px;
        padding-top: 2px;
    }

    .fng-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        padding: 20px;
    }

    .fng-hero__identity {
        gap: 12px;
    }

    .fng-hero__icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
        font-size: 18px;
    }

    .fng-hero__score {
        align-items: flex-start;
        width: 100%;
        padding: 12px 0 0;
        border-top: 1px solid rgba(148, 163, 184, 0.2);
        border-left: 0;
        text-align: left;
    }

    .fng-overview {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .fng-card {
        padding: 17px;
        border-radius: 16px;
    }

    .fng-card--status {
        grid-column: auto;
    }

    .fng-chart-card .coins_page_headings,
    .fng-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .fng-range-select,
    .fng-range-select select {
        width: 100%;
    }

    .fng-history-chart {
        height: 300px;
    }
}
