/* ==========================================================
   PANGAN MASLAHAH — gaya utama
   Warna diatur lewat variabel di :root agar mudah diganti.
   ========================================================== */
:root {
  --brand: #16553a;
  --brand-700: #0f4029;
  --brand-500: #23734f;
  --brand-100: #dcecE2;
  --brand-50: #eef6f1;
  --gold: #c69b1e;
  --gold-soft: #f6ecc8;
  --ink: #17231c;
  --muted: #5f6d64;
  --bg: #faf8f2;
  --surface: #ffffff;
  --line: #e8e3d5;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(23, 35, 28, .05), 0 8px 24px -12px rgba(23, 35, 28, .18);
  --shadow-lg: 0 2px 4px rgba(23, 35, 28, .05), 0 24px 48px -20px rgba(23, 35, 28, .32);

  --tone-success: #1f8a57;
  --tone-primary: #2f6fb5;
  --tone-warning: #c7861a;
  --tone-danger: #c2413b;
  --tone-secondary: #7c867f;

  --bs-body-font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-link-color-rgb: 22, 85, 58;
  --bs-link-hover-color-rgb: 15, 64, 41;
  --bs-border-color: var(--line);
  --bs-focus-ring-color: rgba(22, 85, 58, .25);
}

body { background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
a { text-decoration: none; }
::selection { background: var(--gold-soft); }
.form-control:focus, .form-select:focus { border-color: var(--brand-500); box-shadow: 0 0 0 .2rem rgba(22, 85, 58, .15); }
.form-range::-webkit-slider-thumb { background: var(--brand); }
.form-range::-moz-range-thumb { background: var(--brand); }

/* ---------- Tombol ---------- */
.btn { font-weight: 700; border-radius: 999px; padding-inline: 1.25rem; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1rem; }
.btn-brand { background: var(--brand); color: #fff; border: 0; box-shadow: 0 8px 20px -10px rgba(22, 85, 58, .8); }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--brand-700); color: #fff; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #fff; border: 0; }
.btn-gold:hover { background: #a9820f; color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--brand); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; color: var(--brand-700); border-color: var(--brand-100); }
.btn-outline-brand { color: var(--brand); border: 1.5px solid var(--brand); background: transparent; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn { transition: transform .15s ease, background-color .15s ease, color .15s ease; }

/* ---------- Navbar ---------- */
.site-nav { background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid #d9d2bd; box-shadow: 0 2px 12px -6px rgba(15, 64, 41, .18); padding-block: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-size: 1.15rem; letter-spacing: -.01em; }
.site-nav .brand { font-size: 1.32rem; }
.brand strong { color: var(--brand); font-weight: 800; }
.brand span { font-weight: 600; }
.site-nav .nav-link { white-space: nowrap; font-weight: 600; font-size: 1.05rem; color: #2f3b33; border-radius: 999px; padding: .55rem 1rem !important; transition: background .2s, color .2s; }
.site-nav .nav-link:hover { color: var(--brand-700); background: var(--brand-100); }
.site-nav .nav-link.active, .site-nav .nav-link.active:hover { color: #fff; background: var(--brand); font-weight: 700; box-shadow: 0 6px 14px -6px rgba(22, 85, 58, .6); }
.nav-search { position: relative; }
.nav-search i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.nav-search input { padding-left: 2.4rem; border-radius: 999px; background: #fff; min-width: 190px; height: 44px; }
.site-nav .btn-sm { padding: .45rem 1rem; font-size: .95rem; }
.site-nav .btn { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1799.98px) { .nav-search { display: none !important; } }
@media (min-width: 1200px) and (max-width: 1499.98px) {
  .site-nav .brand { font-size: 1.15rem; }
  .site-nav .brand img { width: 38px; height: 38px; }
  .site-nav .nav-link { font-size: .95rem; padding: .45rem .7rem !important; }
  .site-nav .user-chip-text { display: none; }
}

/* ---------- Umum ---------- */
.section { padding-block: 4.5rem; }
.section-tint { background: linear-gradient(180deg, var(--brand-50), var(--bg)); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); margin: .25rem 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
.link-arrow { font-weight: 700; color: var(--brand); }
.link-arrow i { transition: transform .2s; display: inline-block; }
.link-arrow:hover i { transform: translateX(4px); }
.code { white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; font-weight: 600; color: var(--brand); background: var(--brand-50); border-radius: 6px; padding: .12rem .45rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.panel-title { font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; }
.panel-title i { color: var(--brand); }
.empty-state { text-align: center; padding: 3.5rem 1rem; background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state i { font-size: 2.5rem; color: var(--brand-500); display: block; margin-bottom: .75rem; }
.notice { display: flex; gap: .9rem; align-items: flex-start; background: var(--gold-soft); border: 1px solid #ead9a0; border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.notice i { font-size: 1.4rem; color: #9a7610; }

/* Pola geometris (bintang 8) untuk latar */
:root {
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%2316553a' stroke-opacity='.08' stroke-width='1.3' stroke-linecap='round'%3E%3Cg transform='translate(24 26) rotate(-35) scale(1.1)'%3E%3Cpath d='M0-11C7-7 7 7 0 11C-7 7-7-7 0-11Z'/%3E%3Cpath d='M0-9V9'/%3E%3C/g%3E%3Cg transform='translate(35 33) rotate(40) scale(0.75)'%3E%3Cpath d='M0-11C7-7 7 7 0 11C-7 7-7-7 0-11Z'/%3E%3Cpath d='M0-9V9'/%3E%3C/g%3E%3Cg transform='translate(66 64) rotate(145) scale(1.1)'%3E%3Cpath d='M0-11C7-7 7 7 0 11C-7 7-7-7 0-11Z'/%3E%3Cpath d='M0-9V9'/%3E%3C/g%3E%3Cg transform='translate(55 71) rotate(-140) scale(0.75)'%3E%3Cpath d='M0-11C7-7 7 7 0 11C-7 7-7-7 0-11Z'/%3E%3Cpath d='M0-9V9'/%3E%3C/g%3E%3Ccircle cx='66' cy='22' r='1.6'/%3E%3Ccircle cx='22' cy='66' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 4.5rem 0 5rem; background: var(--pattern), radial-gradient(1200px 500px at 85% -10%, var(--gold-soft), transparent 60%), radial-gradient(900px 500px at -10% 110%, var(--brand-100), transparent 60%); overflow: hidden; }
.hero-title { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); line-height: 1.08; margin: 1rem 0; }
.hero-title span { color: var(--brand); background: linear-gradient(transparent 62%, var(--gold-soft) 0); }
.hero-lead { font-size: 1.1rem; color: var(--muted); max-width: 34rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-stats strong { display: block; font-size: 1.75rem; font-weight: 800; color: var(--brand); line-height: 1; }
.hero-stats span { font-size: .8rem; color: var(--muted); }
@media (max-width: 575px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

.hero-card { display: block; background: var(--surface); border-radius: 24px; padding: 1.5rem; box-shadow: var(--shadow-lg); border: 1px solid var(--line); color: var(--ink); transform: rotate(-1.2deg); transition: transform .35s ease; max-width: 480px; margin-inline: auto; }
.hero-card:hover { transform: rotate(0) translateY(-4px); color: var(--ink); }
.hero-card-top { display: flex; gap: 1rem; align-items: center; padding-bottom: 1.25rem; border-bottom: 1px dashed var(--line); }
.hero-card-top h3 { font-size: 1.05rem; margin: .35rem 0 .5rem; line-height: 1.3; }
.hero-thumb, .hero-thumb.thumb-placeholder { width: 92px; height: 92px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.hero-card-score { display: flex; gap: 1.25rem; align-items: center; padding-top: 1.25rem; }
.hero-dims { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .4rem; }
.hero-dims li { display: grid; grid-template-columns: 7.5rem 1fr 2rem; align-items: center; gap: .5rem; font-size: .8rem; }
.hero-dims li span { color: var(--muted); white-space: nowrap; }
.hero-dims li span i { color: var(--brand); margin-right: .35rem; }
.hero-dims em { font-style: normal; font-weight: 700; text-align: right; }
.hero-card-link { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; font-weight: 700; color: var(--brand); font-size: .9rem; }

.page-hero { padding: 3.25rem 0 1.5rem; background: var(--pattern), linear-gradient(180deg, var(--brand-50), var(--bg)); }
.page-hero h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); margin: .5rem 0; }
.page-hero p { color: var(--muted); max-width: 44rem; margin: 0; }

/* ---------- Tones (badge, ring, pill) ---------- */
.tone-success { --tone: var(--tone-success); }
.tone-primary { --tone: var(--tone-primary); }
.tone-warning { --tone: var(--tone-warning); }
.tone-danger { --tone: var(--tone-danger); }
.tone-secondary { --tone: var(--tone-secondary); }

.halal-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700; color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, #fff); border: 1px solid color-mix(in srgb, var(--tone) 25%, #fff); border-radius: 999px; padding: .2rem .6rem; }
.level-pill { display: inline-block; font-size: .8rem; font-weight: 800; color: #fff; background: var(--tone, var(--brand)); border-radius: 999px; padding: .25rem .75rem; }

.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; border-radius: 999px; padding: .2rem .6rem; white-space: nowrap; }
.chip-success { color: var(--tone-success); background: #e5f4ec; }
.chip-warning { color: #9b6710; background: #fbf0d9; }
.chip-danger { color: var(--tone-danger); background: #fbe6e5; }
.chip-muted { color: var(--muted); background: #eef0ec; }

/* Lingkaran skor */
.score-ring { --size: 58px; --tone: var(--brand); width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: conic-gradient(var(--tone) calc(var(--p) * 1%), #e6eae4 0); transition: --p .9s ease; }
.score-ring span { width: calc(var(--size) - 10px); height: calc(var(--size) - 10px); border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: calc(var(--size) * .28); color: var(--ink); }
.score-ring small { font-size: .6em; margin-left: 1px; }
.ring-lg { --size: 104px; }
.ring-lg span { width: calc(var(--size) - 16px); height: calc(var(--size) - 16px); }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }

/* Batang skor */
.dim-bar { display: block; height: 8px; border-radius: 99px; background: #e8ebe6; overflow: hidden; }
.dim-bar > * { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--brand-500), var(--brand)); transform-origin: left; }
.dim-bar.sm { height: 6px; }
.is-animated .dim-bar > * { animation: grow 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes grow { from { transform: scaleX(0); } }

/* ---------- Kartu produk ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.product-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.product-media { position: relative; aspect-ratio: 4 / 3; background: var(--brand-50); }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-img { transform: scale(1.04); }
.media-top { position: absolute; top: .75rem; left: .75rem; }
.media-top .halal-badge { background: rgba(255, 255, 255, .92); backdrop-filter: blur(4px); }
.media-score { position: absolute; right: .75rem; bottom: -24px; z-index: 1; }
.media-score .score-ring { box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .3); border: 3px solid #fff; --size: 60px; }
.product-body { padding: 1.1rem 1.1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.product-meta { display: flex; gap: .5rem; align-items: center; font-size: .75rem; color: var(--muted); margin-bottom: .4rem; padding-right: 60px; }
.product-meta span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-title { font-size: 1rem; font-weight: 700; line-height: 1.35; margin: 0 0 .75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-dims { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; margin-bottom: .9rem; }
.mini-dim { display: flex; flex-direction: column; align-items: center; gap: .25rem; font-size: .8rem; color: var(--brand-500); }
.mini-dim b { display: block; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brand) calc(var(--v) * 20%), #e6eae4 0); }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; padding-top: .75rem; border-top: 1px solid var(--line); }
.price { font-weight: 800; color: var(--ink); }
.price small { font-weight: 500; color: var(--muted); }
.price-empty { font-weight: 500; font-size: .8rem; color: var(--muted); }

.thumb-placeholder { --h: 140; width: 100%; height: 100%; display: grid; place-items: center; position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, hsl(var(--h) 45% 88%), hsl(var(--h) 35% 76%)); color: hsl(var(--h) 45% 26%); }
.thumb-placeholder span { font-size: 3.2rem; font-weight: 800; opacity: .85; }
.thumb-placeholder i { position: absolute; right: 10%; bottom: 8%; font-size: 1.6rem; opacity: .35; }
.hero-thumb.thumb-placeholder span { font-size: 2rem; }
.hero-thumb.thumb-placeholder i { display: none; }

/* ---------- Dimensi (beranda) ---------- */
.dims-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 991px) { .dims-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .dims-grid { grid-template-columns: 1fr; } }
.dim-tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; transition: transform .25s, box-shadow .25s; }
.dim-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dim-tile > i { font-size: 1.6rem; color: var(--brand); display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); margin-bottom: 1rem; }
.dim-tile h3 { font-size: 1.05rem; margin-bottom: .1rem; }
.dim-aspect { font-size: .8rem; font-weight: 700; color: var(--gold); margin-bottom: .5rem; }
.dim-tile p:last-child { font-size: .88rem; color: var(--muted); margin: 0; }
.dim-num { position: absolute; top: 1rem; right: 1.2rem; font-weight: 800; color: var(--line); font-size: 1.4rem; }

/* ---------- Katalog: filter ---------- */
.filter-bar { display: grid; grid-template-columns: 2fr repeat(2, 1fr); gap: .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
@media (max-width: 991px) { .filter-bar { grid-template-columns: 1fr 1fr; } .filter-search { grid-column: 1 / -1; } }
@media (max-width: 575px) { .filter-bar { grid-template-columns: 1fr; } }
.filter-bar .form-control, .filter-bar .form-select { border-radius: 12px; min-height: 46px; }
.filter-search { position: relative; }
.filter-search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filter-search input { padding-left: 2.6rem; }
.category-chips { grid-column: 1 / -1; display: flex; gap: .5rem; flex-wrap: wrap; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span { display: inline-block; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .15s; background: #fff; }
.chip-radio span:hover { border-color: var(--brand-500); color: var(--brand); }
.chip-radio input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-radio input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.results-count { color: var(--muted); margin-bottom: 1rem; }
#results { transition: opacity .2s; }
#results.is-loading { opacity: .45; pointer-events: none; }

/* ---------- Detail produk ---------- */
.breadcrumb { font-size: .85rem; }
.breadcrumb a { color: var(--muted); }
.detail-media { border-radius: 24px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--brand-50); }
.detail-img { width: 100%; height: 100%; object-fit: cover; }
.detail-media .thumb-placeholder span { font-size: 6rem; }
.detail-media .thumb-placeholder i { font-size: 3rem; }
.detail-title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.2; margin-bottom: 1rem; }
.detail-price { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.detail-price strong { font-size: 1.7rem; font-weight: 800; color: var(--brand); }
.detail-price > span { color: var(--muted); }
.halal-box { display: flex; gap: .85rem; align-items: center; padding: 1rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--tone) 30%, #fff); background: color-mix(in srgb, var(--tone) 8%, #fff); margin-bottom: 1.25rem; }
.halal-box > i { font-size: 1.8rem; color: var(--tone); }
.halal-box strong { display: block; }
.halal-box span { font-size: .88rem; color: var(--muted); }
.detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.5rem; }
@media (max-width: 575px) { .detail-facts { grid-template-columns: 1fr; } }
.detail-facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem; }
.detail-facts dt { font-size: .74rem; font-weight: 600; color: var(--muted); margin-bottom: .2rem; }
.detail-facts dt i { margin-right: .35rem; color: var(--brand); }
.detail-facts dd { margin: 0; font-weight: 700; font-size: .92rem; }
.detail-sub { font-size: 1rem; margin: 1.25rem 0 .65rem; }
.ingredients { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.ingredients li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; }
.detail-desc { color: var(--muted); }

/* ---------- Maslahah Card ---------- */
.maslahah-card { position: relative; background: var(--surface); border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.maslahah-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--brand), var(--gold)); }
.mc-head { display: flex; justify-content: space-between; align-items: center; padding: 1.75rem 1.75rem 1rem; }
.mc-head h2 { font-size: 1.35rem; margin: .2rem 0 0; }
.mc-eyebrow { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.mc-arabic { font-family: "Amiri", serif; font-size: 2.4rem; color: var(--brand); opacity: .25; line-height: 1; }
.mc-summary { display: flex; gap: 1.5rem; align-items: center; margin: 0 1.75rem; padding: 1.25rem; border-radius: var(--radius); background: var(--pattern, none), var(--brand-50); }
.mc-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: center; padding: 1.5rem 1.75rem; }
@media (max-width: 767px) { .mc-body { grid-template-columns: 1fr; } .mc-head, .mc-body { padding-inline: 1.1rem; } .mc-summary { margin-inline: 1.1rem; } }
.dim-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.dim-row { display: flex; gap: .85rem; align-items: flex-start; padding: .6rem; border-radius: 14px; transition: background .2s; }
.dim-row.is-dominant { background: #fbf7e8; }
.dim-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: inline-grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.dim-icon.sm { width: 32px; height: 32px; font-size: .95rem; border-radius: 9px; vertical-align: middle; }
.is-dominant .dim-icon { background: var(--gold); color: #fff; }
.dim-text { flex: 1; min-width: 0; }
.dim-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem; margin-bottom: .35rem; }
.dim-head span { color: var(--muted); font-size: .88rem; }
.dim-head em { margin-left: auto; font-style: normal; font-weight: 800; }
.dim-head em small { font-weight: 500; color: var(--muted); }
.dim-hint { display: block; color: var(--muted); font-size: .76rem; margin-top: .3rem; }
.mc-radar { display: grid; place-items: center; }
.radar { width: 100%; max-width: 300px; overflow: visible; }
.radar-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-axis { stroke: var(--line); }
.radar-area { fill: rgba(35, 115, 79, .22); stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; transform-origin: center; }
.is-animated .radar-area, .is-animated .radar-dot { animation: pop .8s cubic-bezier(.2, .8, .2, 1) both; transform-origin: 50% 50%; transform-box: view-box; }
@keyframes pop { from { transform: scale(0); opacity: 0; } }
.radar-dot { fill: var(--gold); stroke: #fff; stroke-width: 2; }
.radar-label { font-size: 11px; font-weight: 700; fill: var(--muted); font-family: inherit; }
.mc-note { margin: 0; padding: 1rem 1.75rem 1.5rem; font-size: .82rem; color: var(--muted); border-top: 1px dashed var(--line); }
.mc-note i { color: var(--gold); }

/* ---------- Tentang ---------- */
.table-clean th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; background: transparent; }
.table-clean td { background: transparent; }
.formula { font-weight: 700; background: var(--brand-50); padding: 1rem; border-radius: var(--radius-sm); text-align: center; }
.formula span { color: var(--brand); }
.level-scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
@media (max-width: 575px) { .level-scale { grid-template-columns: repeat(2, 1fr); } }
.level-scale div { border-radius: var(--radius-sm); padding: .75rem; background: color-mix(in srgb, var(--tone) 10%, #fff); border-top: 4px solid var(--tone); }
.level-scale strong { display: block; color: var(--tone); }
.level-scale span { font-size: .82rem; font-weight: 600; }
.slider-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .1rem .75rem; margin-bottom: .85rem; }
.slider-row label { grid-column: 1 / -1; font-size: .85rem; font-weight: 700; }
.slider-row label i { color: var(--brand); margin-right: .4rem; }
.slider-row label small { color: var(--muted); font-weight: 500; }
.slider-row output { font-weight: 800; color: var(--brand); width: 2.2rem; text-align: right; }
.sim-result { display: flex; gap: 1.25rem; align-items: center; margin-top: 1.25rem; padding: 1rem; background: var(--brand-50); border-radius: var(--radius); }

/* ---------- Papan ---------- */
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.board-grid-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.board-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; border-left: 5px solid var(--tone-success); }
.board-card.type-kebutuhan { border-left-color: var(--tone-warning); }
.board-card.is-done { opacity: .6; }
.board-card-top { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; font-size: .78rem; color: var(--muted); }
.board-type { display: inline-flex; align-items: center; gap: .35rem; font-weight: 800; color: var(--tone); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.board-card h3 { font-size: 1.02rem; margin-bottom: .6rem; }
.board-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .84rem; color: var(--muted); }
.board-facts i { color: var(--brand); margin-right: .3rem; }
.board-notes { font-size: .85rem; margin: .75rem 0 0; padding-top: .75rem; border-top: 1px dashed var(--line); }
.tabs-pill { display: inline-flex; gap: .25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .3rem; flex-wrap: wrap; }
.tabs-pill a { padding: .45rem 1rem; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; }
.tabs-pill a span { background: var(--brand-50); color: var(--brand); border-radius: 999px; font-size: .72rem; padding: 0 .45rem; }
.tabs-pill a.active { background: var(--brand); color: #fff; }
.tabs-pill a.active span { background: rgba(255, 255, 255, .2); color: #fff; }
.type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.type-toggle input { position: absolute; opacity: 0; }
.type-toggle span { display: block; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .7rem; cursor: pointer; font-weight: 800; font-size: .9rem; color: var(--tone); transition: all .15s; }
.type-toggle span i { margin-right: .35rem; }
.type-toggle span small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; margin-top: .15rem; }
.type-toggle input:checked + span { border-color: var(--tone); background: color-mix(in srgb, var(--tone) 8%, #fff); }
.type-toggle input:focus-visible + span { outline: 2px solid var(--gold); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; background: var(--brand); color: #e9f3ed; border-radius: 24px; padding: 2rem 2.25rem; background-image: var(--pattern, none); }
.cta-band h3 { color: #fff; font-size: 1.35rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-700); color: #cfe0d6; padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.site-footer h6 { color: #fff; font-weight: 800; margin-bottom: 1rem; }
.site-footer a { color: #cfe0d6; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: .45rem; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light strong { color: var(--gold-soft); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; opacity: .8; }

/* ---------- Animasi muncul saat di-scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease var(--delay, 0ms), transform .6s ease var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   PESANAN & KERANJANG
   ========================================================== */
.cart-btn { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--ink); font-size: 1.5rem; transition: background .15s; }
.cart-btn:hover, .cart-btn.active { background: var(--brand-50); color: var(--brand); }
.cart-badge { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.cart-badge[hidden] { display: none; }
.cart-badge.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (min-width: 1200px) { .site-nav .order-xl-last { margin-left: .5rem; } }

.card-order { position: relative; z-index: 2; margin-top: .75rem; }
.btn-add { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100); border-radius: 12px; padding: .5rem; font-size: .85rem; }
.btn-add:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.order-blocked { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .78rem; color: var(--muted); background: #f1f1ec; border-radius: 12px; padding: .5rem; }

.order-box { display: flex; gap: .5rem; flex-wrap: wrap; align-items: stretch; padding: 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: .6rem; }
.order-box .btn { border-radius: 12px; }
.order-box.is-blocked { align-items: center; gap: .85rem; box-shadow: none; background: #f5f4ef; color: var(--muted); }
.order-box.is-blocked > i { font-size: 1.5rem; }
.order-box.is-blocked strong { display: block; color: var(--ink); }
.pickup-hint { font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
.pickup-hint i { color: var(--brand); margin-right: .35rem; }

.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.qty-stepper button { border: 0; background: none; width: 38px; height: 42px; color: var(--brand); font-size: 1.1rem; }
.qty-stepper button:hover { background: var(--brand-50); }
.qty-stepper input { width: 46px; border: 0; text-align: center; font-weight: 800; -moz-appearance: textfield; appearance: textfield; background: transparent; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: none; }
.qty-stepper:focus-within { box-shadow: 0 0 0 .2rem rgba(22, 85, 58, .15); }

.badge-count { background: var(--brand-50); color: var(--brand); border-radius: 99px; font-size: .75rem; padding: .1rem .55rem; }
.cart-list { list-style: none; padding: 0; margin: 0; }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto auto auto; gap: .9rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.cart-line.has-problem { background: #fdf6f5; margin-inline: -1.5rem; padding-inline: 1.5rem; }
.cart-thumb .mini-thumb { width: 56px !important; height: 56px !important; border-radius: 12px; object-fit: cover; }
.cart-info { min-width: 0; }
.cart-info a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-sub { min-width: 84px; text-align: right; }
@media (max-width: 575px) {
  .cart-line { grid-template-columns: 48px 1fr auto; }
  .cart-line .qty-stepper { grid-column: 2; }
  .cart-sub { grid-column: 3; grid-row: 1; }
  .cart-line .btn-icon { grid-column: 3; grid-row: 2; justify-self: end; }
}
.cart-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; gap: 1rem; }
.cart-total span { color: var(--muted); margin-right: .75rem; }
.cart-total strong { font-size: 1.3rem; color: var(--brand); }
@media (min-width: 992px) { .checkout-panel { position: sticky; top: 96px; } }
.pickup-options { display: grid; gap: .5rem; }
.pickup-options input { position: absolute; opacity: 0; }
.pickup-options span { display: flex; align-items: center; gap: .75rem; border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem .9rem; cursor: pointer; transition: all .15s; }
.pickup-options span > i { font-size: 1.2rem; color: var(--brand); width: 38px; height: 38px; display: grid; place-items: center; background: var(--brand-50); border-radius: 10px; flex-shrink: 0; }
.pickup-options b { font-weight: 700; }
.pickup-options b small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.pickup-options input:checked + span { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(22, 85, 58, .12); }
.pickup-options input:checked + span > i { background: var(--brand); color: #fff; }
.pickup-options input:focus-visible + span { outline: 2px solid var(--gold); }
.pickup-options.is-invalid span { border-color: #e3a4a1; }
.checkout-summary { background: var(--brand-50); border-radius: 14px; padding: 1rem; }
.checkout-summary div { display: flex; justify-content: space-between; align-items: baseline; }
.checkout-summary strong { font-size: 1.35rem; color: var(--brand); }
.checkout-summary small { color: var(--muted); display: block; margin-top: .25rem; }

.order-hero { display: flex; gap: 1.25rem; align-items: center; padding: 1.5rem; border-radius: 24px; background: var(--pattern), color-mix(in srgb, var(--tone) 10%, #fff); border: 1px solid color-mix(in srgb, var(--tone) 25%, #fff); }
.order-hero-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--tone); color: #fff; display: grid; place-items: center; font-size: 1.8rem; flex-shrink: 0; }
.order-code { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: .15rem 0 .4rem; }
.order-code strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); letter-spacing: .06em; color: var(--ink); }
.order-steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.order-steps li { position: relative; text-align: center; font-size: .8rem; font-weight: 600; color: var(--muted); padding-top: 3rem; }
.order-steps li span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 50%; background: #eceee9; color: #9aa39c; display: grid; place-items: center; z-index: 1; border: 3px solid var(--bg); }
.order-steps li::before { content: ""; position: absolute; top: 19px; left: -50%; right: 50%; height: 3px; background: #e2e5df; }
.order-steps li:first-child::before { display: none; }
.order-steps li.done span, .order-steps li.current span { background: var(--brand); color: #fff; }
.order-steps li.done::before, .order-steps li.current::before { background: var(--brand); }
.order-steps li.current { color: var(--brand); }
.order-steps li.current span { box-shadow: 0 0 0 5px rgba(22, 85, 58, .15); }
.pickup-name { font-size: 1.3rem; font-weight: 800; margin-bottom: .25rem; }
.pickup-name i { color: var(--brand); margin-right: .5rem; }
.pickup-tip { margin-top: 1rem; font-size: .82rem; background: var(--gold-soft); border-radius: 10px; padding: .6rem .75rem; }
.receipt { list-style: none; padding: 0; margin: 0; }
.receipt li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.receipt small { display: block; color: var(--muted); }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: .9rem; }
.receipt-total strong { font-size: 1.35rem; color: var(--brand); }

.offline-bar { background: #3b3b36; color: #fff; text-align: center; font-size: .85rem; padding: .45rem 1rem; }
.offline-bar[hidden] { display: none; }
.spin-once { display: inline-block; animation: spin .5s ease; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================
   AKUN & ROLE
   ========================================================== */
.nav-actions { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; }
@media (min-width: 1200px) { .nav-actions { margin: 0 0 0 .6rem; } }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: .85rem; display: inline-grid; place-items: center; flex-shrink: 0; letter-spacing: .02em; }
.avatar.sm { width: 32px; height: 32px; font-size: .75rem; }
.user-chip { display: flex; align-items: center; gap: .55rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .25rem .75rem .25rem .25rem; color: var(--ink); }
.user-chip:hover { border-color: var(--brand-100); background: var(--brand-50); }
.user-chip-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.user-chip-text b { font-size: .9rem; }
.user-chip-text small { font-size: .7rem; color: var(--muted); white-space: nowrap; }

.auth-page { background: var(--bg); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; }
@media (max-width: 991px) { .auth-shell { grid-template-columns: 1fr; } .auth-side { display: none !important; } }
.auth-side { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 2.5rem; color: #d6e7dc;
  background: var(--pattern), radial-gradient(700px 400px at 100% 0, rgba(198,155,30,.28), transparent 60%), var(--brand-700); }
.auth-side .brand { font-size: 1.3rem; }
.auth-side h2 { color: #fff; font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.2; }
.auth-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.auth-points li { display: flex; gap: .75rem; align-items: center; }
.auth-points i { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.1); color: var(--gold-soft); display: grid; place-items: center; }
.auth-org { opacity: .85; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; background: var(--pattern); }
.auth-card { width: 100%; max-width: 480px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 2rem; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 1.7rem; margin-bottom: .25rem; }
.auth-card .form-control { border-radius: 12px; }
.auth-back { margin-top: 1.25rem; color: var(--muted); font-size: .9rem; }
.auth-note { display: flex; gap: .7rem; align-items: flex-start; background: var(--gold-soft); border-radius: 12px; padding: .75rem .9rem; margin-bottom: 1rem; font-size: .88rem; }
.auth-note i { font-size: 1.2rem; color: #9a7610; }
.role-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1.25rem; }
.role-tabs a { display: flex; gap: .6rem; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; padding: .7rem .8rem; color: var(--muted); transition: all .15s; }
.role-tabs a > i { font-size: 1.35rem; }
.role-tabs b { font-weight: 800; font-size: .9rem; color: var(--ink); }
.role-tabs b small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); }
.role-tabs a.active { border-color: var(--brand); background: var(--brand-50); color: var(--brand); box-shadow: 0 0 0 3px rgba(22,85,58,.12); }
.store-box { border: 1px dashed var(--brand-100); background: var(--brand-50); border-radius: 14px; padding: .9rem; }
.store-box-title { font-weight: 800; color: var(--brand); margin-bottom: .6rem; }
.password-field { position: relative; }
.pw-toggle { position: absolute; right: .6rem; bottom: .55rem; border: 0; background: none; color: var(--muted); padding: .25rem .4rem; z-index: 5; }
.form-floating.password-field .pw-toggle { bottom: auto; top: 50%; transform: translateY(-50%); }
.col-sm-6.password-field .pw-toggle { right: 1.1rem; bottom: .45rem; }
.col-sm-6.password-field:has(.invalid-feedback) .pw-toggle { bottom: 1.95rem; }

/* Stand & pesanan */
.product-stand { font-size: .8rem; color: var(--brand-500); margin: -.4rem 0 .6rem; font-weight: 600; }
.product-stand i { margin-right: .3rem; }
.stand-hint { display: flex; gap: .8rem; align-items: center; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 14px; padding: .8rem 1rem; margin-bottom: 1rem; }
.stand-hint > i { font-size: 1.4rem; color: var(--brand); width: 42px; height: 42px; background: #fff; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.stand-hint span { display: block; font-size: .75rem; color: var(--muted); }
.stand-hint strong { display: block; }
.stand-hint small { color: var(--muted); }
.cart-stand { display: flex; gap: .5rem; align-items: center; margin-top: .75rem; padding: .5rem .75rem; background: var(--brand-50); border-radius: 10px; font-size: .85rem; color: var(--brand-700); }
.buyer-card { display: flex; gap: .75rem; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: .75rem; margin-bottom: 1rem; }
.checkout-sub { font-size: .95rem; margin: .5rem 0 .6rem; }
.checkout-sub i { color: var(--brand); }
.pickup-summary { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.pickup-summary li { display: flex; gap: .7rem; align-items: center; border: 1.5px solid var(--brand-100); background: var(--brand-50); border-radius: 12px; padding: .65rem .8rem; }
.pickup-summary li > i { color: var(--brand); font-size: 1.15rem; }
.pickup-summary li div { flex: 1; min-width: 0; }
.pickup-summary small { display: block; color: var(--muted); font-size: .76rem; }
.pickup-summary li > span { font-weight: 800; }
.my-orders { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.my-order { display: flex; gap: .9rem; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--tone); border-radius: 14px; padding: .9rem 1rem; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.my-order:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-1px); }
.my-order-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--tone) 12%, #fff); color: var(--tone); font-size: 1.2rem; flex-shrink: 0; }
.order-status { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 800; color: var(--tone, var(--brand)); background: color-mix(in srgb, var(--tone, var(--brand)) 12%, #fff); border-radius: 99px; padding: .2rem .6rem; white-space: nowrap; }

/* ==========================================================
   SPLASH SCREEN (sekali per sesi)
   ========================================================== */
.splash { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 1.5rem; text-align: center; color: #e4efe8; overflow: hidden;
  background: var(--pattern), radial-gradient(900px 600px at 50% 110%, rgba(198,155,30,.35), transparent 60%), radial-gradient(700px 500px at 50% -10%, #1f6b49, transparent 70%), var(--brand-700);
  animation: splash-out .6s ease 2.9s forwards; }
.splash-seen .splash { display: none; }
.js body.has-splash { overflow: hidden; }
.js.splash-seen body.has-splash, .js body.has-splash.splash-done { overflow: auto; }
.splash.is-leaving { animation: splash-out .45s ease forwards; }
@keyframes splash-out { to { opacity: 0; visibility: hidden; transform: scale(1.03); } }
.splash-inner { position: relative; max-width: 560px; }
.splash-logo { width: 112px; height: 112px; border-radius: 28px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6), 0 0 0 6px rgba(255,255,255,.06); animation: splash-pop .8s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes splash-pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } }
.splash-eyebrow { margin: 1.4rem 0 .2rem; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); animation: splash-up .6s ease .25s both; }
.splash-title { color: #fff; font-size: clamp(2.3rem, 1.6rem + 3.5vw, 3.6rem); font-weight: 600; letter-spacing: -.03em; margin: 0; animation: splash-up .6s ease .35s both; }
.splash-title strong { font-weight: 800; color: var(--gold-soft); }
.splash-tagline { font-size: 1.05rem; margin: .6rem auto 1.4rem; max-width: 26rem; animation: splash-up .6s ease .5s both; }
@keyframes splash-up { from { transform: translateY(14px); opacity: 0; } }
.splash-dims { list-style: none; padding: 0; margin: 0 0 1.6rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.splash-dims li { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 99px; padding: .35rem .75rem; animation: splash-up .5s ease both; }
.splash-dims li:nth-child(1) { animation-delay: .65s; } .splash-dims li:nth-child(2) { animation-delay: .75s; } .splash-dims li:nth-child(3) { animation-delay: .85s; }
.splash-dims li:nth-child(4) { animation-delay: .95s; } .splash-dims li:nth-child(5) { animation-delay: 1.05s; }
.splash-dims i { color: var(--gold-soft); }
.splash-bar { width: min(260px, 70vw); height: 4px; margin: 0 auto; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.splash-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transform-origin: left; animation: splash-load 2.6s cubic-bezier(.4,0,.2,1) .2s both; }
@keyframes splash-load { from { transform: scaleX(0); } }
.splash-org { display: inline-flex; align-items: center; gap: .75rem; margin: 2rem 0 0; padding: .7rem 1.2rem; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(227,197,101,.35); text-align: left; line-height: 1.25; font-size: .85rem; animation: splash-up .6s ease 1.1s both; }
.splash-org i { font-size: 1.6rem; color: var(--gold-soft); }
.splash-org strong { color: #fff; font-size: 1.05rem; letter-spacing: .02em; }
.splash-skip { position: absolute; right: 1rem; top: max(1rem, env(safe-area-inset-top)); background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 99px; padding: .35rem .9rem; font-size: .85rem; font-weight: 600; }
.splash-skip:hover { background: rgba(255,255,255,.2); }
.splash-leaves i { position: absolute; width: 60px; height: 90px; border-radius: 0 100% 0 100%; background: linear-gradient(135deg, rgba(227,197,101,.18), rgba(255,255,255,.03)); animation: leaf-float 6s ease-in-out infinite; }
.splash-leaves i:nth-child(1) { left: 8%; top: 14%; transform: rotate(-30deg); }
.splash-leaves i:nth-child(2) { right: 10%; top: 20%; width: 44px; height: 66px; animation-delay: -1.5s; }
.splash-leaves i:nth-child(3) { left: 14%; bottom: 16%; width: 38px; height: 56px; animation-delay: -3s; }
.splash-leaves i:nth-child(4) { right: 14%; bottom: 12%; transform: rotate(40deg); animation-delay: -4s; }
.splash-leaves i:nth-child(5) { left: 44%; top: 6%; width: 28px; height: 42px; animation-delay: -2s; }
.splash-leaves i:nth-child(6) { right: 40%; bottom: 5%; width: 32px; height: 48px; animation-delay: -5s; }
@keyframes leaf-float { 50% { translate: 0 -14px; rotate: 12deg; } }
@media (prefers-reduced-motion: reduce) { .splash { animation: splash-out .3s ease 1.4s forwards !important; } }

/* ==========================================================
   HERO: produk unggulan bergantian
   ========================================================== */
.hero-rotator { position: relative; max-width: 480px; margin-inline: auto; display: grid; }
.hero-rotator .hero-card { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: rotate(-1.2deg) translateY(10px); transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s; }
.hero-rotator .hero-card.is-active { opacity: 1; visibility: visible; transform: rotate(-1.2deg); transition: opacity .6s ease, transform .6s ease; }
.hero-rotator .hero-card.is-active:hover { transform: rotate(0) translateY(-4px); }
.hero-card-top h3 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rotator-dots { display: flex; justify-content: center; gap: .4rem; margin-top: 1.1rem; }
.rotator-dots button { border: 0; background: none; padding: .35rem 0; }
.rotator-dots span { display: block; width: 22px; height: 5px; border-radius: 99px; background: #d9ded6; overflow: hidden; position: relative; }
.rotator-dots button.active span { width: 36px; background: #cfe0d6; }
.rotator-dots button.active span::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform-origin: left; animation: dot-fill var(--interval, 3s) linear forwards; }
.hero-rotator.is-paused .rotator-dots button.active span::after { animation-play-state: paused; }
@keyframes dot-fill { from { transform: scaleX(0); } }

/* ===== Filter rentang skor (katalog) ===== */
.score-filters { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(240px, 1fr) minmax(240px, 1.4fr) auto; gap: .75rem 1.25rem; align-items: start; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.range-filter { min-width: 0; }
.range-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .2rem; font-size: .85rem; }
.range-label { font-weight: 700; color: var(--ink, #1d2b22); white-space: nowrap; }
.range-label i { color: var(--brand); margin-right: .2rem; }
.range-value { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .82rem; }
.range-filter.is-active .range-value { color: var(--brand); }
.range-track { position: relative; height: 28px; }
.range-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 99px; background: #e9e6db; }
.range-fill { position: absolute; top: 50%; height: 6px; margin-top: -3px; border-radius: 99px; background: linear-gradient(90deg, var(--brand-500), var(--brand)); }
.range-track input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; z-index: 3; }
.range-track input[type=range]:focus { outline: none; }
.range-track input[type=range]::-webkit-slider-runnable-track { background: none; height: 28px; }
.range-track input[type=range]::-moz-range-track { background: none; }
.range-track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 2px 6px rgba(15,64,41,.25); cursor: grab; }
.range-track input[type=range]::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 2px 6px rgba(15,64,41,.25); cursor: grab; }
.range-track input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(35,115,79,.25); }
.range-track input[type=range]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.1); }
.dim-ranges summary { cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--brand); list-style: none; padding: .15rem 0 .35rem; }
.dim-ranges summary::-webkit-details-marker { display: none; }
.dim-ranges summary i { margin-right: .25rem; }
.dim-ranges[open] summary { margin-bottom: .2rem; }
.dim-range-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .25rem 1rem; }
.range-compact .range-head { font-size: .78rem; }
.badge-dot { display: inline-grid; place-items: center; min-width: 1.2rem; height: 1.2rem; padding: 0 .3rem; border-radius: 99px; background: var(--brand); color: #fff; font-size: .7rem; margin-left: .25rem; }
.range-reset { font-size: .82rem; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; padding-top: .1rem; }
.range-reset:hover { color: var(--brand); }
@media (max-width: 991.98px) { .score-filters { grid-template-columns: 1fr; } }

/* ===== Papan bertimer ===== */
.board-timer { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; color: var(--brand); background: var(--brand-50); border-radius: 99px; padding: .15rem .55rem; font-variant-numeric: tabular-nums; }
.board-card.is-ending .board-timer { color: #a35b00; background: #fff1d6; animation: pm-pulse 1.4s ease-in-out infinite; }
.board-card.is-expired { opacity: 0; transform: scale(.96); transition: opacity .8s ease, transform .8s ease; }
@keyframes pm-pulse { 50% { opacity: .55; } }
.board-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.board-contact { margin-top: .8rem; padding: .7rem .8rem; border-radius: var(--radius-sm); background: var(--brand-50); font-size: .85rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.board-contact i { color: var(--brand); }
.board-card.is-done .board-contact { opacity: 1; }
.chip-soft { display: inline-block; font-size: .7rem; font-weight: 700; padding: .05rem .45rem; border-radius: 99px; background: var(--gold-soft); color: #8a6a0c; margin-left: .25rem; }
.duration-presets { display: flex; flex-wrap: wrap; gap: .35rem; }
.duration-presets button { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: .25rem .7rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.duration-presets button.active, .duration-presets button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.state-pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 800; color: #fff; background: var(--tone, var(--brand)); border-radius: 99px; padding: .2rem .6rem; white-space: nowrap; }
.tone-dark { --tone: #4b5560; }
.text-brand { color: var(--brand) !important; }
.panel-alert { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(198, 155, 30, .18), var(--shadow); }
.tabs-pill-sm a { font-size: .8rem; padding: .3rem .75rem; }

/* ===== Halaman Info & pembuat ===== */
.creator-card { position: relative; display: flex; align-items: center; gap: 1.5rem; padding: 1.75rem; border-radius: var(--radius); color: #e9f2ec;
  background: var(--pattern), radial-gradient(600px 300px at 100% 0, rgba(198,155,30,.3), transparent 60%), var(--brand-700); box-shadow: var(--shadow-lg); overflow: hidden; }
.creator-avatar { flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: var(--brand-700); background: linear-gradient(135deg, #f3dc8a, var(--gold)); box-shadow: 0 0 0 6px rgba(255,255,255,.12); }
.creator-label { display: inline-flex; gap: .35rem; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #f3dc8a; }
.creator-card h2 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); margin: .25rem 0 .15rem; }
.creator-role { color: #f3dc8a; font-weight: 600; margin-bottom: .75rem; }
.creator-body { flex: 1; min-width: 0; }
.creator-body strong { color: #fff; }
.creator-logo { flex: none; opacity: .95; }
@media (max-width: 767.98px) { .creator-card { flex-direction: column; text-align: center; } .creator-logo { display: none; } }
.info-list { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.25rem; margin: 0; }
.info-list dt { font-weight: 700; color: var(--muted); font-size: .88rem; }
.info-list dd { margin: 0; }
@media (max-width: 575.98px) { .info-list { grid-template-columns: 1fr; gap: .1rem; } .info-list dd { margin-bottom: .6rem; } }
.team-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.team-list li { display: flex; align-items: center; gap: .75rem; }
.team-list .avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; background: var(--brand); }
.team-list .avatar-gold { background: var(--gold); }
.team-list strong { display: block; line-height: 1.2; }
.team-list small { color: var(--muted); }
.info-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.info-features > div { display: flex; flex-direction: column; gap: .2rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.info-features i { font-size: 1.4rem; color: var(--brand); }
.info-features span { font-size: .88rem; color: var(--muted); }
