.prices-section {
    position: relative;
    padding-top: var(--sp-12);
    padding-bottom: var(--sp-12);
    background: var(--c-surface);
}

.prices-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-6);
    margin-bottom: var(--sp-8);
}

.prices-meta-controls {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

.prices-status-box {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    background: var(--c-surface-alt, #f8fafc);
    padding: var(--sp-2) var(--sp-4);
    border: 1px solid var(--c-line, #e2e8f0);
    border-radius: var(--r-full, 9999px);
    white-space: nowrap;
}

.live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.live-status-pill.is-fallback {
    color: #f59e0b;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: live-pulse 2s infinite;
}

.pulse-dot.warning-dot {
    background-color: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
}

@keyframes live-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.prices-updated {
    margin: 0;
    color: var(--c-text-muted, #64748b);
    font-size: var(--fs-xs, 0.8125rem);
    white-space: nowrap;
}

.prices-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2, 0.5rem);
    padding: var(--sp-2, 0.5rem) var(--sp-4, 1rem);
    border: 1px solid var(--c-line, #e2e8f0);
    border-radius: var(--r-full, 9999px);
    background: var(--c-surface-alt, #ffffff);
    color: var(--c-text, #1e293b);
    font-size: var(--fs-xs, 0.8125rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.prices-refresh-btn:hover {
    border-color: var(--c-primary, #0f172a);
    background: var(--c-surface, #f1f5f9);
    color: var(--c-primary, #0f172a);
    transform: translateY(-1px);
}

.prices-refresh-btn .refresh-icon {
    transition: transform 0.4s ease;
}

.prices-refresh-btn.is-loading .refresh-icon {
    animation: refresh-spin 0.8s linear infinite;
}

@keyframes refresh-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero Highlight Card for TL/kg */
.prices-hero-card {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    margin-bottom: var(--sp-8);
    padding: var(--sp-6) var(--sp-8);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--r-xl, 1rem);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
    position: relative;
    overflow: hidden;
}

.prices-hero-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.25) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.hero-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.hero-card-badge svg {
    color: #e11d48;
}

.hero-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-8);
    flex-wrap: wrap;
}

.hero-card-label {
    display: block;
    font-size: var(--fs-sm, 0.875rem);
    color: #94a3b8;
    margin-bottom: var(--sp-1);
}

.hero-card-value {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.hero-card-value small {
    font-size: 1rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-left: 4px;
}

.hero-card-desc {
    max-width: 480px;
    margin: 0;
    font-size: var(--fs-xs, 0.8125rem);
    line-height: 1.5;
    color: #cbd5e1;
}

/* Prices Cards Grid */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-5, 1.25rem);
}

.price-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--sp-5);
    padding: var(--sp-6);
    border: 1px solid var(--c-line, #e2e8f0);
    border-radius: var(--r-xl, 1rem);
    background: var(--c-surface-alt, #ffffff);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-card:hover {
    transform: translateY(-3px);
    border-color: var(--c-line-hover, #cbd5e1);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
}

.price-card-header {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.price-type-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 3px 8px;
    border-radius: var(--r-full, 9999px);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.badge-lme {
    background: rgba(225, 29, 72, 0.08);
    color: #be123c;
}

.badge-tcmb {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

.badge-calc {
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
}

.price-card h3 {
    margin: 0;
    color: var(--c-text-muted, #475569);
    font-size: var(--fs-sm, 0.875rem);
    font-weight: 600;
    line-height: 1.35;
}

.price-value {
    display: flex;
    align-items: baseline;
    gap: var(--sp-2);
    color: var(--c-text, #0f172a);
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.price-value small {
    color: var(--c-text-muted, #64748b);
    font-size: var(--fs-xs, 0.8125rem);
    font-weight: 600;
}

.price-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--sp-3);
    border-top: 1px dashed var(--c-line, #f1f5f9);
}

.price-source-date {
    color: var(--c-text-muted, #64748b);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.prices-source-info {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--sp-4);
    margin-top: var(--sp-6);
    padding: var(--sp-4) var(--sp-5);
    border: 1px solid color-mix(in srgb, var(--c-brand) 18%, var(--c-line));
    border-radius: var(--r-lg);
    background: linear-gradient(120deg, var(--c-brand-soft), var(--c-surface));
}

.prices-source-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border-radius: var(--r-full);
    color: var(--c-text-invert);
    background: var(--c-brand);
    font-family: Georgia, serif;
    font-size: var(--fs-lg);
    font-weight: 700;
}

.prices-source-info strong {
    display: block;
    margin-bottom: var(--sp-1);
    color: var(--c-text);
    font-size: var(--fs-sm);
}

.prices-source-info p {
    margin: 0;
    color: var(--c-text-muted);
    font-size: var(--fs-xs);
    line-height: 1.5;
}

.prices-source-info a {
    white-space: nowrap;
    color: var(--c-brand);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
}

.prices-source-info a:hover {
    color: var(--c-brand-hover);
}

.price-direction {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--r-full, 9999px);
    font-size: 0.75rem;
    font-weight: 700;
}

.price-direction.is-up {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.price-direction.is-down {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.price-direction.is-stable {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.prices-footer {
    margin-top: var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prices-notice {
    margin: 0;
    color: var(--c-text-muted, #64748b);
    font-size: var(--fs-xs, 0.8125rem);
}

.prices-fallback-note {
    display: block;
    color: var(--c-text-muted, #94a3b8);
    font-size: var(--fs-xs, 0.75rem);
}

/* Skeleton animation */
.price-skeleton {
    overflow: hidden;
}

.price-skeleton-line {
    height: var(--sp-4);
    border-radius: var(--r-full);
    background: #e2e8f0;
    animation: prices-pulse 1.2s var(--ease-in-out, ease-in-out) infinite alternate;
}

.price-skeleton-line + .price-skeleton-line {
    width: 68%;
    height: var(--sp-8);
    margin-top: var(--sp-8);
}

@keyframes prices-pulse {
    from { opacity: .45; }
    to { opacity: .9; }
}

@media (max-width: 64rem) {
    .prices-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 40rem) {
    .prices-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: var(--sp-4);
    }

    .prices-hero-card {
        padding: var(--sp-5);
    }

    .hero-card-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-4);
    }

    .prices-grid {
        grid-template-columns: 1fr;
    }

    .prices-source-info {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .prices-source-info a {
        grid-column: 2;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .price-skeleton-line,
    .pulse-dot,
    .prices-refresh-btn.is-loading .refresh-icon {
        animation: none;
    }
}
