/* Upbit market snapshot — dark dashboard (homepage) */
.market-snapshot-section {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #e2e8f0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.market-snapshot-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 3.5rem 1rem 4rem;
}

.market-snapshot-head {
    text-align: center;
    margin-bottom: 2rem;
}

.market-snapshot-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #00aeef;
    margin-bottom: 0.5rem;
}

.market-snapshot-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.market-snapshot-desc {
    font-size: 0.875rem;
    color: #94a3b8;
}

.market-snapshot-updated {
    margin-top: 0.75rem;
    font-size: 0.6875rem;
    color: #64748b;
}

.market-snapshot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .market-snapshot-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.market-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 1rem;
    padding: 1.25rem 1.125rem;
    min-height: 20rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.market-card-head {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.market-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #f1f5f9;
}

.market-card-sub {
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    color: #64748b;
}

.market-gas-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 0;
}

.market-gas-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.2;
}

.market-gas-unit {
    font-size: 1rem;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 0.25rem;
}

.market-gas-transfer {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.market-gas-transfer strong {
    color: #e2e8f0;
    font-weight: 600;
}

.market-price-note {
    margin-top: auto;
    padding-top: 0.875rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 0.6875rem;
    color: #64748b;
    text-align: center;
}

.market-chart-wrap {
    position: relative;
    flex: 1;
    min-height: 9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.market-chart-wrap canvas {
    max-height: 10rem;
}

.market-dominance-list {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.625rem;
}

.market-dominance-row {
    display: grid;
    grid-template-columns: 3.5rem 1fr 3rem;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.market-dominance-label {
    color: #cbd5e1;
    font-weight: 600;
}

.market-dominance-bar {
    height: 0.375rem;
    border-radius: 9999px;
    background: rgba(148, 163, 184, 0.15);
    overflow: hidden;
}

.market-dominance-bar span {
    display: block;
    height: 100%;
    border-radius: 9999px;
}

.market-dominance-bar .btc {
    background: linear-gradient(90deg, #f7931a, #ffb347);
}

.market-dominance-bar .eth {
    background: linear-gradient(90deg, #627eea, #8b9cff);
}

.market-dominance-bar .others {
    background: linear-gradient(90deg, #64748b, #94a3b8);
}

.market-dominance-pct {
    text-align: right;
    color: #e2e8f0;
    font-weight: 600;
}

.market-gauge-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
}

.market-gauge-chart {
    position: relative;
    width: 100%;
    max-width: 14rem;
    height: 7rem;
}

.market-gauge-value {
    position: absolute;
    left: 50%;
    bottom: 0.25rem;
    transform: translateX(-50%);
    text-align: center;
}

.market-gauge-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.market-gauge-label {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.market-gauge-scale {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 14rem;
    margin-top: 0.5rem;
    font-size: 0.6875rem;
    color: #64748b;
}

.market-card-source {
    margin-top: auto;
    padding-top: 0.875rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 0.625rem;
    color: #475569;
    text-align: center;
}

.market-card-error {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    font-size: 0.75rem;
    text-align: center;
}
