
:root {
--green-deep: #1a3a2a;
--green-mid: #2d6a4f;
--green-light: #52b788;
--green-pale: #b7e4c7;
--green-mist: #d8f3dc;
--cream: #faf7f2;
--cream-dark: #f0ebe0;
--brown: #7c6146;
--brown-light: #c9a87c;
--text-dark: #1c1c1c;
--text-mid: #4a4a4a;
--text-light: #8a8a8a;
--white: #ffffff;
--shadow-sm: 0 2px 8px rgba(26,58,42,0.08);
--shadow-md: 0 6px 24px rgba(26,58,42,0.12);
--shadow-lg: 0 16px 48px rgba(26,58,42,0.16);
--radius: 16px;
--radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
font-family: 'Plus Jakarta Sans', sans-serif;
background: var(--cream);
color: var(--text-dark);
overflow-x: hidden;
}

/* ── NAVBAR ── */
nav {
position: fixed;
top: 0; left: 0; right: 0;
z-index: 100;
background: rgba(250,247,242,0.92);
backdrop-filter: blur(16px);
border-bottom: 1px solid rgba(26,58,42,0.08);
padding: 0 5%;
height: 68px;
display: flex;
align-items: center;
justify-content: space-between;
transition: box-shadow .3s;
}

nav.scrolled { box-shadow: var(--shadow-md); }

.nav-brand {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
}

.nav-logo {
width: 36px; height: 36px;
background: var(--green-mid);
border-radius: 10px;
display: flex; align-items: center; justify-content: center;
font-size: 18px;
}

.nav-title {
font-size: 1.15rem;
font-weight: 700;
color: var(--green-deep);
letter-spacing: -0.3px;
}

.nav-title span { color: var(--green-light); }

.nav-links {
display: flex;
gap: 4px;
list-style: none;
}

.nav-links a {
text-decoration: none;
font-size: .875rem;
font-weight: 500;
color: var(--text-mid);
padding: 8px 14px;
border-radius: 8px;
transition: background .2s, color .2s;
}

.nav-links a:hover { background: var(--green-mist); color: var(--green-deep); }
.nav-links a.active { background: var(--green-mid); color: white; }

.nav-badge {
background: var(--green-light);
color: white;
font-size: .7rem;
font-weight: 600;
padding: 2px 7px;
border-radius: 20px;
margin-left: 4px;
}

/* ── NAV RIGHT (login + hamburger) ── */
.nav-right {
display: flex;
align-items: center;
gap: 10px;
}

.btn-login {
background: var(--green-mid);
color: white;
font-family: inherit;
font-size: .85rem;
font-weight: 600;
padding: 9px 20px;
border-radius: 50px;
border: none;
cursor: pointer;
transition: background .2s, transform .15s;
white-space: nowrap;
display: flex;
align-items: center;
gap: 6px;
}

.btn-login:hover { background: var(--green-deep); transform: translateY(-1px); }

/* Avatar saat sudah login */
.nav-avatar {
width: 36px; height: 36px;
background: var(--green-mid);
border-radius: 50%;
display: flex; align-items: center; justify-content: center;
font-size: .85rem;
font-weight: 700;
color: white;
cursor: pointer;
border: 2px solid var(--green-pale);
transition: border-color .2s;
position: relative;
}

.nav-avatar:hover { border-color: var(--green-light); }

.avatar-dropdown {
display: none;
position: absolute;
top: calc(100% + 10px);
right: 0;
background: white;
border-radius: var(--radius-sm);
box-shadow: var(--shadow-lg);
min-width: 180px;
overflow: hidden;
z-index: 200;
border: 1px solid var(--cream-dark);
animation: fadeUp .2s ease;
}

.avatar-dropdown.open { display: block; }

.avatar-dropdown-header {
padding: 14px 16px;
background: var(--green-mist);
border-bottom: 1px solid var(--cream-dark);
}

.avatar-dropdown-name { font-size: .88rem; font-weight: 700; color: var(--green-deep); }
.avatar-dropdown-email { font-size: .75rem; color: var(--text-light); margin-top: 2px; }

.avatar-dropdown a, .avatar-dropdown button {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 11px 16px;
font-family: inherit;
font-size: .85rem;
color: var(--text-mid);
text-decoration: none;
background: none;
border: none;
cursor: pointer;
transition: background .15s;
text-align: left;
}

.avatar-dropdown a:hover, .avatar-dropdown button:hover { background: var(--cream); color: var(--green-deep); }
.avatar-dropdown .logout-btn { color: #c62828; border-top: 1px solid var(--cream-dark); }
.avatar-dropdown .logout-btn:hover { background: #fce4ec; }

/* ── HAMBURGER ── */
.hamburger {
display: none;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 5px;
width: 40px;
height: 40px;
background: var(--cream-dark);
border: none;
border-radius: 10px;
cursor: pointer;
padding: 0;
transition: background .2s;
}

.hamburger:hover { background: var(--green-mist); }

.hamburger span {
display: block;
width: 20px;
height: 2px;
background: var(--green-deep);
border-radius: 2px;
transition: transform .3s, opacity .3s, width .3s;
transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV DRAWER ── */
.mobile-nav {
display: none;
position: fixed;
top: 68px;
left: 0; right: 0;
background: rgba(250,247,242,0.98);
backdrop-filter: blur(16px);
border-bottom: 1px solid rgba(26,58,42,0.08);
z-index: 99;
padding: 16px 5% 20px;
box-shadow: var(--shadow-md);
animation: slideDown .25s ease both;
}

.mobile-nav.open { display: block; }

.mobile-nav ul {
list-style: none;
display: flex;
flex-direction: column;
gap: 4px;
margin-bottom: 16px;
}

.mobile-nav ul a {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
font-size: .95rem;
font-weight: 500;
color: var(--text-mid);
padding: 12px 14px;
border-radius: var(--radius-sm);
transition: background .2s, color .2s;
}

.mobile-nav ul a:hover { background: var(--green-mist); color: var(--green-deep); }
.mobile-nav ul a.active { background: var(--green-deep); color: white; }
.mobile-nav ul a .mobile-nav-icon { font-size: 1.1rem; }

.mobile-nav-divider {
height: 1px;
background: var(--cream-dark);
margin: 8px 0;
}

.mobile-login-btn {
width: 100%;
background: var(--green-mid);
color: white;
font-family: inherit;
font-size: .95rem;
font-weight: 600;
padding: 13px;
border: none;
border-radius: var(--radius-sm);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: background .2s;
}

.mobile-login-btn:hover { background: var(--green-deep); }

@keyframes slideDown {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}

/* ── LOGIN MODAL ── */
.login-modal-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(26,58,42,.6);
z-index: 300;
backdrop-filter: blur(6px);
animation: fadeIn .2s ease;
align-items: center;
justify-content: center;
padding: 20px;
}

.login-modal-overlay.open { display: flex; }

.login-modal {
background: white;
border-radius: var(--radius);
width: 100%;
max-width: 420px;
overflow: hidden;
animation: fadeUp .3s ease;
box-shadow: var(--shadow-lg);
}

.login-modal-header {
background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
padding: 32px 32px 28px;
text-align: center;
position: relative;
}

.login-modal-logo {
width: 52px; height: 52px;
background: rgba(255,255,255,.15);
border-radius: 14px;
display: flex; align-items: center; justify-content: center;
font-size: 24px;
margin: 0 auto 14px;
}

.login-modal-title {
font-size: 1.3rem;
font-weight: 700;
color: white;
margin-bottom: 4px;
}

.login-modal-subtitle {
font-size: .85rem;
color: rgba(255,255,255,.65);
}

.login-modal-close {
position: absolute;
top: 14px; right: 14px;
width: 32px; height: 32px;
background: rgba(255,255,255,.15);
border: none;
border-radius: 8px;
color: white;
font-size: 1rem;
cursor: pointer;
display: flex; align-items: center; justify-content: center;
transition: background .2s;
}

.login-modal-close:hover { background: rgba(255,255,255,.25); }

.login-modal-body { padding: 28px 32px 32px; }

.login-tabs {
display: flex;
background: var(--cream);
border-radius: var(--radius-sm);
padding: 4px;
margin-bottom: 24px;
gap: 4px;
}

.login-tab {
flex: 1;
font-family: inherit;
font-size: .85rem;
font-weight: 600;
padding: 9px;
border: none;
border-radius: 7px;
cursor: pointer;
background: transparent;
color: var(--text-light);
transition: background .2s, color .2s;
}

.login-tab.active { background: white; color: var(--green-deep); box-shadow: var(--shadow-sm); }

.form-group { margin-bottom: 16px; }

.form-group label {
display: block;
font-size: .78rem;
font-weight: 600;
color: var(--text-light);
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 7px;
}

.form-input {
width: 100%;
padding: 12px 14px;
border: 1.5px solid var(--cream-dark);
border-radius: var(--radius-sm);
font-family: inherit;
font-size: .9rem;
color: var(--text-dark);
background: var(--cream);
outline: none;
transition: border-color .2s, box-shadow .2s;
}

.form-input:focus {
border-color: var(--green-light);
box-shadow: 0 0 0 3px rgba(82,183,136,.15);
background: white;
}

.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

.login-submit {
width: 100%;
background: var(--green-mid);
color: white;
font-family: inherit;
font-size: .95rem;
font-weight: 600;
padding: 13px;
border: none;
border-radius: var(--radius-sm);
cursor: pointer;
margin-top: 4px;
transition: background .2s, transform .15s;
}

.login-submit:hover { background: var(--green-deep); transform: translateY(-1px); }

.login-divider {
display: flex;
align-items: center;
gap: 12px;
margin: 18px 0;
color: var(--text-light);
font-size: .8rem;
}

.login-divider::before, .login-divider::after {
content: '';
flex: 1;
height: 1px;
background: var(--cream-dark);
}

.login-guest {
width: 100%;
background: transparent;
color: var(--text-mid);
font-family: inherit;
font-size: .88rem;
font-weight: 500;
padding: 11px;
border: 1.5px solid var(--cream-dark);
border-radius: var(--radius-sm);
cursor: pointer;
transition: background .2s, border-color .2s;
}

.login-guest:hover { background: var(--cream); border-color: var(--green-pale); }



.login-error {
background: #fce4ec;
color: #c62828;
font-size: .82rem;
padding: 10px 14px;
border-radius: 8px;
margin-bottom: 14px;
display: none;
}

.login-error.show { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
.hamburger { display: flex; }
.nav-links { display: none !important; }
.btn-login { display: none; }
.nav-avatar-wrap { display: none; }
}

@media (min-width: 769px) {
.mobile-nav { display: none !important; }
}

/* ── HERO ── */
#beranda {
min-height: 100vh;
padding-top: 68px;
background: linear-gradient(160deg, rgba(26, 58, 42, 0.85) 0%, rgba(45, 106, 79, 0.8) 55%, rgba(82, 183, 136, 0.75) 100%), url('../img/hero-image.png') center/cover no-repeat;
display: flex;
flex-direction: column;
justify-content: center;
padding-left: 5%;
padding-right: 5%;
position: relative;
overflow: hidden;
}

#beranda::before {
content: '';
position: absolute;
inset: 0;
background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
pointer-events: none;
}

.hero-content {
max-width: 700px;
animation: fadeUp .9s ease both;
}

.hero-eyebrow {
font-family: 'Lora', serif;
font-style: italic;
color: var(--green-pale);
font-size: .95rem;
margin-bottom: 16px;
opacity: .85;
}

.hero-title {
font-size: clamp(2.2rem, 5vw, 3.6rem);
font-weight: 700;
color: white;
line-height: 1.15;
letter-spacing: -1px;
margin-bottom: 20px;
}

.hero-title em {
font-family: 'Lora', serif;
font-style: italic;
font-weight: 400;
color: var(--green-pale);
}

.hero-desc {
color: rgba(255,255,255,.75);
font-size: 1.05rem;
line-height: 1.7;
max-width: 520px;
margin-bottom: 36px;
}

.hero-cta {
display: flex;
gap: 12px;
flex-wrap: wrap;
}

.btn-primary {
background: white;
color: var(--green-deep);
font-weight: 600;
font-size: .9rem;
padding: 13px 26px;
border-radius: 50px;
text-decoration: none;
border: none;
cursor: pointer;
transition: transform .2s, box-shadow .2s;
box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }

.btn-outline {
background: transparent;
color: white;
font-weight: 500;
font-size: .9rem;
padding: 13px 26px;
border-radius: 50px;
text-decoration: none;
border: 1.5px solid rgba(255,255,255,.4);
cursor: pointer;
transition: background .2s, border-color .2s;
}

.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }

.hero-stats {
display: flex;
gap: 32px;
margin-top: 56px;
padding-top: 32px;
border-top: 1px solid rgba(255,255,255,.15);
flex-wrap: wrap;
animation: fadeUp 1.1s .2s ease both;
}

.hero-stat-num {
font-size: 1.8rem;
font-weight: 700;
color: white;
display: block;
line-height: 1;
margin-bottom: 4px;
}

.hero-stat-label {
font-size: .8rem;
color: rgba(255,255,255,.6);
font-weight: 400;
}

.hero-blob {
position: absolute;
right: -80px;
top: 50%;
transform: translateY(-50%);
width: 520px;
height: 520px;
border-radius: 50%;
background: radial-gradient(circle, rgba(255,255,255,.07) 0%, transparent 70%);
pointer-events: none;
animation: pulse 6s ease-in-out infinite;
}

/* ── SEARCH SECTION ── */
#cari {
padding: 80px 5%;
background: var(--cream);
}

.section-label {
font-size: .78rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1.5px;
color: var(--green-light);
margin-bottom: 10px;
}

.section-title {
font-size: clamp(1.6rem, 3vw, 2.2rem);
font-weight: 700;
color: var(--green-deep);
letter-spacing: -0.5px;
margin-bottom: 8px;
line-height: 1.2;
}

.section-subtitle {
color: var(--text-light);
font-size: .95rem;
margin-bottom: 36px;
max-width: 480px;
line-height: 1.6;
}

.search-box {
background: white;
border-radius: var(--radius);
padding: 28px;
box-shadow: var(--shadow-md);
max-width: 820px;
}

.search-row {
display: flex;
gap: 12px;
flex-wrap: wrap;
}

.search-field {
flex: 1;
min-width: 200px;
}

.search-field label {
display: block;
font-size: .78rem;
font-weight: 600;
color: var(--text-light);
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 8px;
}

.search-input {
width: 100%;
padding: 12px 16px;
border: 1.5px solid var(--cream-dark);
border-radius: var(--radius-sm);
font-family: inherit;
font-size: .9rem;
color: var(--text-dark);
background: var(--cream);
outline: none;
transition: border-color .2s, box-shadow .2s;
appearance: none;
}

select.search-input {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232d6a4f%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem top 50%;
  background-size: 0.65em auto;
  padding-right: 2.5rem;
}

.search-input:focus {
border-color: var(--green-light);
box-shadow: 0 0 0 3px rgba(82,183,136,.15);
background: white;
}

.search-btn {
align-self: flex-end;
background: var(--green-mid);
color: white;
font-family: inherit;
font-weight: 600;
font-size: .9rem;
padding: 12px 28px;
border: none;
border-radius: var(--radius-sm);
cursor: pointer;
transition: background .2s, transform .15s;
white-space: nowrap;
}

.search-btn:hover { background: var(--green-deep); transform: translateY(-1px); }
.search-btn:disabled { 
  background: var(--text-light); 
  cursor: not-allowed; 
  transform: none; 
  opacity: 0.8;
}

.search-tags {
margin-top: 16px;
display: flex;
gap: 8px;
flex-wrap: wrap;
align-items: center;
}

.search-tags-label { font-size: .8rem; color: var(--text-light); }

.tag {
background: var(--green-mist);
color: var(--green-deep);
font-size: .8rem;
font-weight: 500;
padding: 5px 12px;
border-radius: 20px;
cursor: pointer;
transition: background .2s;
border: none;
font-family: inherit;
}

.tag:hover { background: var(--green-pale); }

/* Search Results */
.search-results {
margin-top: 28px;
display: none;
animation: fadeUp .4s ease both;
}

.search-results.visible { display: block; }

.results-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 14px;
margin-top: 16px;
}

.result-card {
background: white;
border: 1.5px solid var(--cream-dark);
border-radius: var(--radius-sm);
padding: 18px;
transition: border-color .2s, box-shadow .2s;
}

.result-card:hover { border-color: var(--green-pale); box-shadow: var(--shadow-sm); }

.result-commodity {
font-size: .8rem;
color: var(--text-light);
margin-bottom: 4px;
}

.result-price {
font-size: 1.25rem;
font-weight: 700;
color: var(--green-deep);
margin-bottom: 2px;
}

.result-unit { font-size: .75rem; color: var(--text-light); }

.result-change {
display: inline-flex;
align-items: center;
gap: 3px;
font-size: .78rem;
font-weight: 600;
margin-top: 8px;
padding: 3px 8px;
border-radius: 20px;
}

.result-change.up { background: #e8f5e9; color: #2e7d32; }
.result-change.down { background: #fce4ec; color: #c62828; }
.result-change.flat { background: var(--cream-dark); color: var(--text-light); }

/* ── HARGA SECTION ── */
#harga {
padding: 80px 5%;
background: white;
}

/* ── PREDIKSI PANEL ── */
.prediksi-panel {
background: var(--cream);
border-radius: var(--radius);
padding: 28px;
margin-top: 24px;
}

.prediksi-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
flex-wrap: wrap;
gap: 16px;
margin-bottom: 20px;
}

.prediksi-title {
font-size: 1.05rem;
font-weight: 700;
color: var(--green-deep);
margin-bottom: 4px;
}

.prediksi-subtitle {
font-size: .8rem;
color: var(--text-light);
}

.prediksi-controls {
display: flex;
flex-wrap: wrap;
gap: 8px;
}

.prediksi-select {
font-family: inherit;
font-size: .8rem;
font-weight: 600;
padding: 8px 14px;
border: 1.5px solid var(--cream-dark);
border-radius: var(--radius-sm);
background: white;
color: var(--text-mid);
outline: none;
cursor: pointer;
transition: border-color .2s, box-shadow .2s;
appearance: none;
background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232d6a4f%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
background-repeat: no-repeat;
background-position: right .75rem top 50%;
background-size: .6em auto;
padding-right: 2rem;
}

.prediksi-select:focus {
border-color: var(--green-light);
box-shadow: 0 0 0 3px rgba(82,183,136,.15);
}

.prediksi-cek-btn {
font-family: inherit;
font-size: .82rem;
font-weight: 700;
padding: 8px 18px;
border: none;
border-radius: var(--radius-sm);
background: var(--green-mid);
color: white;
cursor: pointer;
transition: background .2s, transform .15s, opacity .2s;
white-space: nowrap;
flex-shrink: 0;
}

.prediksi-cek-btn:hover:not(:disabled) { background: var(--green-deep); transform: translateY(-1px); }
.prediksi-cek-btn:disabled { 
  background: var(--text-light); 
  cursor: not-allowed; 
  opacity: 0.8;
}

.prediksi-placeholder {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
background: var(--cream);
border-radius: var(--radius-sm);
color: var(--text-light);
font-size: .88rem;
text-align: center;
line-height: 1.6;
}

.prediksi-placeholder-icon { font-size: 2.5rem; line-height: 1; }

.prediksi-chart-wrap {
height: 280px;
position: relative;
}

.prediksi-loading {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: var(--cream);
gap: 10px;
font-size: .82rem;
font-weight: 600;
color: var(--text-light);
z-index: 5;
border-radius: var(--radius-sm);
}

.prediksi-spinner {
width: 32px;
height: 32px;
color: var(--green-mid);
animation: spin 1s linear infinite;
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

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

@media (max-width: 600px) {
  .prediksi-header { flex-direction: column; align-items: stretch; }
  .prediksi-controls { 
    width: 100%; 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px; 
  }
  .prediksi-select { 
    width: 100%; 
    min-width: 0; 
    font-size: 0.95rem; 
    padding: 12px 15px; 
    height: auto;
    background-position: right 0.8rem top 50%;
    border-color: #cbd5e0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  }
  .prediksi-cek-btn { 
    grid-column: span 2; 
    padding: 14px; 
    font-size: 0.95rem;
    margin-top: 4px;
    box-shadow: var(--shadow-sm);
  }
}

@media (max-width: 420px) {
  .prediksi-controls { 
    grid-template-columns: 1fr; 
  }
  .prediksi-cek-btn { 
    grid-column: span 1; 
  }
}

.harga-header {
display: flex;
justify-content: space-between;
align-items: flex-end;
margin-bottom: 40px;
flex-wrap: wrap;
gap: 20px;
}

.komoditas-tabs {
display: flex;
gap: 8px;
flex-wrap: wrap;
}

.tab-btn {
background: var(--cream);
border: 1.5px solid transparent;
color: var(--text-mid);
font-family: inherit;
font-size: .85rem;
font-weight: 500;
padding: 8px 16px;
border-radius: 50px;
cursor: pointer;
transition: all .2s;
}

.tab-btn:hover { background: var(--green-mist); color: var(--green-deep); }
.tab-btn.active { background: var(--green-deep); color: white; border-color: var(--green-deep); }

.harga-grid {
display: grid;
grid-template-columns: 1fr 1.6fr;
gap: 24px;
}

@media (max-width: 900px) {
  .harga-grid { display: flex !important; flex-direction: column !important; gap: 16px !important; }
  .chart-panel { padding: 20px 10px !important; } /* Lebih rapat ke kiri untuk mobile */
  .commodity-list { 
    flex-direction: row; 
    overflow-x: auto; 
    padding-bottom: 8px; 
    margin-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .commodity-card {
    min-width: 260px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  /* Box statistik agar tidak berdesakan di mobile */
  .chart-summary {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }
}

/* Komoditas Cards */
.commodity-list {
display: flex;
flex-direction: column;
gap: 10px;
}

.commodity-card {
background: var(--cream);
border-radius: var(--radius-sm);
padding: 16px 18px;
display: flex;
align-items: center;
gap: 14px;
cursor: pointer;
border: 1.5px solid transparent;
transition: border-color .2s, background .2s, box-shadow .2s;
}

.commodity-card:hover { background: var(--green-mist); border-color: var(--green-pale); }
.commodity-card.active { background: var(--green-deep); border-color: var(--green-deep); }
.commodity-card.active .c-name { color: white; }
.commodity-card.active .c-price { color: var(--green-pale); }
.commodity-card.active .c-unit { color: rgba(255,255,255,.5); }

.c-icon {
font-size: 1.6rem;
width: 42px;
height: 42px;
background: white;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
box-shadow: var(--shadow-sm);
}

.commodity-card.active .c-icon { background: rgba(255,255,255,.15); box-shadow: none; }

.c-info { flex: 1; min-width: 0; }
.c-name { font-size: .88rem; font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.c-unit { font-size: .75rem; color: var(--text-light); }

.c-right { text-align: right; flex-shrink: 0; }
.c-price { font-size: 1rem; font-weight: 700; color: var(--green-deep); }
.c-change { font-size: .75rem; font-weight: 600; }
.c-change.up { color: #2e7d32; }
.c-change.down { color: #c62828; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.pagination-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--cream-dark);
  background: white;
  color: var(--text-mid);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.pagination-btn:hover {
  background: var(--green-mist);
  color: var(--green-deep);
  border-color: var(--green-pale);
}

.pagination-btn.active {
  background: var(--green-deep);
  color: white;
  border-color: var(--green-deep);
}

/* Chart Panel */
.chart-panel {
background: var(--cream);
border-radius: var(--radius);
padding: 28px;
}

.chart-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 24px;
flex-wrap: wrap;
gap: 12px;
}

.chart-commodity-name {
font-size: 1.15rem;
font-weight: 700;
color: var(--green-deep);
}

.chart-price-now {
font-size: 2rem;
font-weight: 700;
color: var(--green-deep);
margin-top: 2px;
line-height: 1;
}

.chart-period-btns {
display: flex;
gap: 4px;
}

.period-btn {
font-family: inherit;
font-size: .78rem;
font-weight: 600;
padding: 5px 11px;
border-radius: 6px;
border: none;
background: white;
color: var(--text-light);
cursor: pointer;
transition: background .2s, color .2s;
}

.period-btn.active { background: var(--green-mid); color: white; }
.period-btn:hover:not(.active) { background: var(--green-mist); color: var(--green-deep); }

.chart-wrap {
height: 220px;
position: relative;
}

.chart-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(2px);
  z-index: 10;
  gap: 12px;
  color: var(--text-light);
  font-size: .88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.chart-summary {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
margin-top: 24px;
}



.chart-stat {
background: white;
border-radius: var(--radius-sm);
padding: 14px;
text-align: center;
}

.chart-stat-label { font-size: .73rem; color: var(--text-light); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .8px; }
.chart-stat-value { font-size: 1rem; font-weight: 700; color: var(--green-deep); }

/* ── BERITA SECTION ── */
#berita {
padding: 80px 5%;
background: var(--cream);
}

.berita-header {
display: flex;
justify-content: space-between;
align-items: flex-end;
margin-bottom: 36px;
flex-wrap: wrap;
gap: 16px;
}

.berita-grid {
display: grid;
grid-template-columns: 1.6fr 1fr;
gap: 20px;
}

@media (max-width: 800px) {
.berita-grid { grid-template-columns: 1fr; }
nav .nav-links { display: none; }
}

.news-featured {
background: var(--green-deep);
border-radius: var(--radius);
padding: 32px;
position: relative;
overflow: hidden;
aspect-ratio: 4 / 3;
display: flex;
flex-direction: column;
justify-content: flex-end;
cursor: pointer;
transition: transform .2s;
}

.news-featured:hover { transform: translateY(-3px); }

.news-featured::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(to top, rgba(26,58,42,.95) 0%, rgba(26,58,42,.3) 60%, transparent 100%);
z-index: 1;
}

.news-featured-bg {
position: absolute;
inset: 0;
background: linear-gradient(135deg, var(--green-mid) 0%, var(--green-deep) 100%);
opacity: .6;
}

.news-featured-emoji {
position: absolute;
top: 24px;
right: 28px;
font-size: 5rem;
opacity: .15;
z-index: 0;
}

.news-featured-content { position: relative; z-index: 2; }

.news-category {
display: inline-block;
font-size: .73rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
background: var(--green-light);
color: white;
padding: 4px 10px;
border-radius: 20px;
margin-bottom: 12px;
}

.news-featured-title {
font-size: 1.25rem;
font-weight: 700;
color: white;
line-height: 1.35;
margin-bottom: 12px;
}

.news-meta {
font-size: .78rem;
color: rgba(255,255,255,.55);
display: flex;
gap: 12px;
}

.news-list {
display: flex;
flex-direction: column;
gap: 12px;
}

.news-card {
background: white;
border-radius: var(--radius-sm);
padding: 18px;
cursor: pointer;
border: 1.5px solid transparent;
transition: border-color .2s, box-shadow .2s, transform .15s;
display: flex;
gap: 14px;
}

.news-card:hover { border-color: var(--green-pale); box-shadow: var(--shadow-sm); transform: translateY(-1px); }

.news-card-icon {
font-size: 1.6rem;
flex-shrink: 0;
width: 44px;
height: 44px;
background: var(--cream);
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
}

.news-card-title {
font-size: .88rem;
font-weight: 600;
color: var(--text-dark);
line-height: 1.4;
margin-bottom: 6px;
}

.news-card-meta {
font-size: .75rem;
color: var(--text-light);
}

.view-all-btn {
font-family: inherit;
font-size: .85rem;
font-weight: 600;
color: var(--green-mid);
background: transparent;
border: 1.5px solid var(--green-pale);
padding: 9px 20px;
border-radius: 50px;
cursor: pointer;
transition: background .2s, color .2s;
}

.view-all-btn:hover { background: var(--green-mist); }

/* ── TICKER ── */
.ticker-wrap {
background: var(--green-deep);
overflow: hidden;
padding: 10px 0;
}

.ticker-track {
display: flex;
gap: 0;
animation: tickerScroll 35s linear infinite;
width: max-content;
}

.ticker-item {
display: flex;
align-items: center;
gap: 6px;
padding: 0 28px;
color: rgba(255,255,255,.8);
font-size: .82rem;
font-weight: 500;
white-space: nowrap;
border-right: 1px solid rgba(255,255,255,.1);
}

.ticker-item .t-name { color: rgba(255,255,255,.5); }
.ticker-item .t-price { color: white; font-weight: 700; }
.ticker-item .t-up { color: #69f0ae; }
.ticker-item .t-down { color: #ff6b6b; }

/* ── FOOTER ── */
footer {
background: var(--green-deep);
color: rgba(255,255,255,.6);
padding: 56px 5% 32px;
}

.footer-grid {
display: grid;
grid-template-columns: 2fr 1fr 1fr;
gap: 48px;
margin-bottom: 48px;
}

@media (max-width: 700px) {
.footer-grid { grid-template-columns: 1fr; gap: 32px; }
.harga-grid { grid-template-columns: 1fr; }
}

.footer-brand-name { font-size: 1.2rem; font-weight: 700; color: white; margin-bottom: 10px; }
.footer-desc { font-size: .85rem; line-height: 1.7; max-width: 280px; }
.footer-col-title { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: white; margin-bottom: 16px; font-weight: 600; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,.6); font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: var(--green-pale); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: var(--green-pale); text-decoration: none; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
from { opacity: 0; transform: translateY(24px); }
to { opacity: 1; transform: translateY(0); }
}

@keyframes tickerScroll {
from { transform: translateX(0); }
to { transform: translateX(-50%); }
}

@keyframes pulse {
0%, 100% { transform: translateY(-50%) scale(1); opacity: .07; }
50% { transform: translateY(-50%) scale(1.08); opacity: .12; }
}

.fade-in {
opacity: 0;
transform: translateY(20px);
transition: opacity .6s, transform .6s;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── MODAL ── */
.modal-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(26,58,42,.6);
z-index: 200;
backdrop-filter: blur(4px);
animation: fadeIn .2s ease;
}

.modal-overlay.open { display: flex; align-items: center; justify-content: center; padding: 20px; }

.modal-box {
background: white;
border-radius: var(--radius);
padding: 32px;
max-width: 500px;
width: 100%;
animation: fadeUp .3s ease;
}

.modal-title { font-size: 1.2rem; font-weight: 700; color: var(--green-deep); margin-bottom: 8px; }
.modal-source { font-size: .8rem; color: var(--text-light); margin-bottom: 16px; }
.modal-body { font-size: .9rem; line-height: 1.7; color: var(--text-mid); margin-bottom: 20px; }
.modal-close { background: var(--cream); border: none; font-family: inherit; font-size: .85rem; font-weight: 600; padding: 10px 22px; border-radius: 50px; cursor: pointer; color: var(--text-mid); transition: background .2s; }
.modal-close:hover { background: var(--cream-dark); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--green-pale); border-radius: 3px; }

/* ── PREDIKSI INFLASI SECTION ── */
#inflasi {
  padding: 80px 5%;
  background: var(--cream-dark);
}

.inflasi-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 960px) {
  .inflasi-layout { grid-template-columns: 1fr; }
}

/* Form Card */
.inflasi-form-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--cream-dark);
}

.inflasi-form-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.inflasi-form-group {
  margin-bottom: 16px;
}

.inflasi-form-label {
  display: block;
  font-size: .73rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 7px;
}

.inflasi-form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .88rem;
  color: var(--text-dark);
  background: var(--cream);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232d6a4f%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem top 50%;
  background-size: .6em auto;
  padding-right: 2.2rem;
  cursor: pointer;
}

.inflasi-form-select:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(82,183,136,.15);
  background-color: white;
}

/* Periode tombol */
.inflasi-period-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.inflasi-period-btn {
  padding: 9px 4px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-family: inherit;
  color: var(--text-mid);
  cursor: pointer;
  text-align: center;
  background: white;
  transition: all .15s;
  font-weight: 500;
}

.inflasi-period-btn.active {
  background: var(--green-mist);
  border-color: var(--green-light);
  color: var(--green-deep);
  font-weight: 700;
}

.inflasi-divider {
  border: none;
  border-top: 1px solid var(--cream-dark);
  margin: 18px 0;
}

/* Faktor Cards */
.inflasi-faktor-label {
  font-size: .73rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.inflasi-faktor-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inflasi-faktor-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--cream-dark);
  cursor: pointer;
  background: white;
  transition: all .15s;
}

.inflasi-faktor-item.active-raya  { border-color: #c89c2b; background: #fdf6e3; }
.inflasi-faktor-item.active-cuaca { border-color: #4a90d9; background: #eaf3fc; }
.inflasi-faktor-item.active-bbm   { border-color: #c0392b; background: #fdecea; }

.inflasi-faktor-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.fi-raya-bg  { background: #fdf6e3; }
.fi-cuaca-bg { background: #eaf3fc; }
.fi-bbm-bg   { background: #fdecea; }

.inflasi-faktor-info { flex: 1; }
.inflasi-faktor-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-dark);
}
.inflasi-faktor-sub {
  font-size: .73rem;
  color: var(--text-light);
}

.inflasi-faktor-check {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .7rem;
  transition: all .15s;
}
.inflasi-faktor-check.checked {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: white;
}

.inflasi-run-btn {
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  background: var(--green-mid);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, transform .15s;
}
.inflasi-run-btn:hover:not(:disabled) { background: var(--green-deep); transform: translateY(-1px); }
.inflasi-run-btn:disabled { opacity: .65; cursor: not-allowed; }

/* Result Column */
.inflasi-result-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Placeholder */
.inflasi-placeholder {
  background: white;
  border-radius: var(--radius);
  border: 1.5px dashed var(--cream-dark);
  padding: 60px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: var(--text-light);
  font-size: .9rem;
  line-height: 1.6;
}

.inflasi-placeholder-icon { font-size: 3rem; }

/* Metric Cards */
.inflasi-metrics-card {
  background: white;
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--cream-dark);
}

.inflasi-result-meta {
  font-size: .78rem;
  color: var(--text-light);
  margin-bottom: 14px;
}
.inflasi-result-meta span { color: var(--text-dark); font-weight: 600; }

.inflasi-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.inflasi-metric-box {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.inflasi-metric-lbl {
  font-size: .73rem;
  color: var(--text-light);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.inflasi-metric-val {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
}

.inflasi-metric-val.danger { color: #c0392b; }
.inflasi-metric-val.warn   { color: #b7770d; }
.inflasi-metric-val.ok     { color: var(--green-mid); }

.inflasi-metric-sub {
  font-size: .73rem;
  color: var(--text-light);
  margin-top: 3px;
}

/* Status Banner */
.inflasi-banner {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1.5px solid;
  margin-top: 12px;
}

.inflasi-banner.danger { background: #fdecea; border-color: #f5b7b1; }
.inflasi-banner.warn   { background: #fdf6e3; border-color: #f9d171; }
.inflasi-banner.ok     { background: var(--green-mist); border-color: var(--green-pale); }

.inflasi-banner-icon { font-size: 1.3rem; margin-top: 1px; }
.inflasi-banner-title { font-size: .9rem; font-weight: 700; color: var(--text-dark); }
.inflasi-banner-text  { font-size: .8rem; color: var(--text-mid); line-height: 1.6; margin-top: 2px; }

/* Chart Card (re-use existing chart panel style) */
.inflasi-chart-card {
  background: white;
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--cream-dark);
}

.inflasi-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.inflasi-chart-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--green-deep);
}

.inflasi-chart-sub {
  font-size: .75rem;
  color: var(--text-light);
  margin-top: 2px;
}

.inflasi-chart-legend {
  display: flex;
  gap: 14px;
}

.inflasi-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  color: var(--text-light);
}

.inflasi-legend-dot {
  width: 10px; height: 10px;
  border-radius: 3px;
}

.inflasi-chart-wrap {
  height: 220px;
  position: relative;
}

/* Faktor Kontribusi Card */
.inflasi-kontribusi-card {
  background: white;
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--cream-dark);
}

.inflasi-kontribusi-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 14px;
}

.inflasi-faktor-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--cream-dark);
}

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

.inflasi-faktor-row-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.inflasi-faktor-row-body { flex: 1; }
.inflasi-faktor-row-name { font-size: .85rem; font-weight: 600; color: var(--text-dark); }
.inflasi-faktor-row-desc { font-size: .73rem; color: var(--text-light); margin-top: 1px; }

.inflasi-faktor-row-impact { text-align: right; min-width: 80px; }
.inflasi-faktor-pct { font-size: .95rem; font-weight: 700; }
.inflasi-faktor-pct.danger { color: #c0392b; }
.inflasi-faktor-pct.warn   { color: #b7770d; }
.inflasi-faktor-pct.blue   { color: #2471a3; }
.inflasi-faktor-pct.ok     { color: var(--green-mid); }
.inflasi-faktor-lbl { font-size: .7rem; color: var(--text-light); margin-top: 1px; }

.inflasi-bar-bg {
  height: 4px;
  background: var(--cream-dark);
  border-radius: 2px;
  margin-top: 5px;
  width: 80px;
}

.inflasi-bar-fill {
  height: 4px;
  border-radius: 2px;
  transition: width .5s ease;
}

/* Loading state */
.inflasi-loading {
  background: white;
  border-radius: var(--radius);
  padding: 60px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-light);
  font-size: .88rem;
  font-weight: 600;
}

