/* =========================================================
   TAMPILAN HALAMAN DEPAN — tema pink "jendela"
   Semua warna turunan dari --primary (bisa diubah di admin)
   ========================================================= */
:root {
  --primary: #e2558f;
  --accent: #ffbf2e;
  --p-50:  color-mix(in srgb, var(--primary) 6%, white);
  --p-100: color-mix(in srgb, var(--primary) 14%, white);
  --p-200: color-mix(in srgb, var(--primary) 28%, white);
  --p-300: color-mix(in srgb, var(--primary) 45%, white);
  --p-400: color-mix(in srgb, var(--primary) 70%, white);
  --ink:   color-mix(in srgb, var(--primary) 55%, #4b2238);
  --muted: color-mix(in srgb, var(--primary) 40%, #9a7d8a);
  --lav:   color-mix(in srgb, var(--primary) 30%, #c8b6ff);
  --sky:   color-mix(in srgb, var(--primary) 15%, #bfe0ff);
  --font-title: 'Fredoka', 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink); line-height: 1.6; padding: 24px 16px 40px;
  background-color: var(--p-100);
  background-image:
    radial-gradient(var(--p-50) 2px, transparent 2.5px),
    linear-gradient(var(--p-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--p-200) 1px, transparent 1px);
  background-size: 22px 22px, 44px 44px, 44px 44px;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.hidden { display: none !important; }

/* =================== JENDELA =================== */
.window {
  max-width: 1100px; margin: 0 auto 28px;
  background: var(--p-200); border: 3px solid #fff; border-radius: 24px;
  box-shadow: 0 0 0 2px var(--p-300), 0 14px 30px color-mix(in srgb, var(--primary) 22%, transparent);
  overflow: hidden; transition: max-width .3s;
}
.window.wide { max-width: 1600px; }
.window.minimized .win-body, .window.minimized .menubar, .window.minimized .statusbar { display: none; }

.titlebar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; color: #fff;
}
.titlebar.striped {
  background: repeating-linear-gradient(90deg, var(--p-300) 0 7px, var(--p-400) 7px 14px);
  border-bottom: 3px solid #fff;
}
.titlebar.gradient {
  background: linear-gradient(90deg, var(--p-400), var(--lav) 60%, var(--sky));
  border-bottom: 2px solid var(--p-300);
}
.win-title {
  font-family: var(--font-title); font-weight: 700; font-size: 1.3rem; letter-spacing: .01em;
  text-shadow: 0 2px 0 color-mix(in srgb, var(--primary) 70%, #000), 0 0 1px var(--primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.win-btns { display: flex; gap: 8px; flex-shrink: 0; }
.win-btn {
  width: 38px; height: 32px; border-radius: 10px; border: 2px solid var(--p-200);
  background: #fff; color: var(--primary); font-size: 1.2rem; font-weight: 800; line-height: 1;
  cursor: pointer; box-shadow: 0 3px 0 var(--p-300); transition: transform .1s;
}
.win-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--p-300); }
.win-btn.sq { width: 32px; height: 28px; border-radius: 6px; font-size: 1rem; }
.win-btn.danger { background: color-mix(in srgb, var(--primary) 75%, #ff6b6b); color: #fff; border-color: #fff; }

.win-body { padding: 16px; display: grid; gap: 16px; }

/* =================== BANNER & PROFIL =================== */
.banner {
  position: relative; aspect-ratio: 3 / 1; border-radius: 18px; overflow: hidden;
  border: 3px solid #fff; background: var(--p-100);
}
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* banner bawaan bila admin belum memasang gambar */
.banner-default {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(circle at 20% 30%, #fff8 0 40px, transparent 41px),
    radial-gradient(circle at 80% 70%, #fff6 0 60px, transparent 61px),
    radial-gradient(#fff9 1.5px, transparent 2px) 0 0 / 18px 18px,
    linear-gradient(120deg, var(--p-200), #d9f5d0 50%, var(--p-200));
}
.banner-default h1 {
  font-family: var(--font-title); font-size: clamp(1.8rem, 6vw, 4rem); color: #fff; line-height: 1.1;
  text-shadow: 0 3px 0 var(--primary), 3px 0 0 var(--primary), -3px 0 0 var(--primary), 0 -3px 0 var(--primary), 0 8px 18px #0002;
}
.banner-default p {
  display: inline-block; margin-top: 10px; background: #fff; color: var(--primary); font-weight: 800;
  padding: 4px 16px; border-radius: 999px; font-size: clamp(.8rem, 2vw, 1rem); box-shadow: 0 3px 0 var(--p-300);
}
.sticker { position: absolute; font-size: clamp(1.2rem, 3.5vw, 2.4rem); animation: float 3.5s ease-in-out infinite; filter: drop-shadow(0 3px 0 #fff); }
@keyframes float { 50% { transform: translateY(-8px) rotate(6deg); } }

.profile-card {
  position: relative; background: linear-gradient(#fff, var(--p-100));
  border: 3px solid #fff; border-radius: 18px; padding: 18px 20px 20px 190px; min-height: 150px;
  box-shadow: inset 0 0 0 1px var(--p-200);
}
.avatar {
  position: absolute; left: 22px; top: -62px; width: 140px; height: 140px; border-radius: 50%;
  border: 5px solid #fff; box-shadow: 0 0 0 3px var(--p-300); overflow: hidden;
  background: linear-gradient(135deg, var(--p-100), var(--sky)); display: grid; place-items: center; font-size: 4rem;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.name-pill {
  display: inline-block; font-family: var(--font-title); font-weight: 700; font-style: italic; font-size: 1.25rem;
  color: var(--primary); padding: 4px 22px; border-radius: 999px;
  background: linear-gradient(#fff, var(--sky)); border: 2px solid #fff; box-shadow: 0 2px 6px var(--p-200);
}
.bio { margin: 12px 0 14px; font-size: 1.05rem; color: var(--ink); white-space: pre-line; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.social {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px;
  background: #fff; color: var(--primary); border: 2px solid var(--p-100);
  box-shadow: 0 4px 0 var(--p-200); transition: transform .12s;
}
.social:hover { transform: translateY(-3px); }
.social svg { width: 26px; height: 26px; }

.search-bar {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 3px solid #fff;
  border-radius: 999px; padding: 12px 20px; box-shadow: inset 0 0 0 1px var(--p-200); cursor: text;
}
.search-bar svg { color: var(--primary); }
.search-bar input { border: none; outline: none; background: none; width: 100%; font-size: 1.05rem; }
.search-bar input::placeholder { color: var(--muted); }

/* =================== JENDELA RETRO (MENU) =================== */
.menubar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; background: var(--p-50); border-bottom: 2px solid var(--p-200);
}
.menu-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.menu-tab {
  display: flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 8px;
  border: 2px solid transparent; background: none; cursor: pointer; font-weight: 800; color: var(--ink);
}
.menu-tab svg { width: 18px; height: 18px; }
.menu-tab:hover { background: var(--p-100); }
.menu-tab.active { background: #fff; border-color: var(--p-200); color: var(--primary); box-shadow: inset 0 -2px 0 var(--p-100); }
.menu-right { display: flex; gap: 8px; }
.chip-btn {
  display: flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 8px; font-weight: 800;
  background: #fff; color: var(--ink); border: 2px solid var(--p-200); box-shadow: 0 2px 0 var(--p-300);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.chip-btn svg { width: 18px; height: 18px; color: var(--primary); }
a.chip-btn:hover { color: var(--primary); }

.win-body.inset {
  margin: 12px; padding: 22px; background: #fff; border-radius: 14px;
  border: 2px solid var(--p-200); box-shadow: inset 0 2px 8px var(--p-100); display: block; min-height: 420px;
}
.statusbar {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 6px 16px 10px; font-size: .82rem; color: var(--ink); font-weight: 700;
}

.tab-panel { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.panel-head { text-align: center; margin-bottom: 20px; }
.panel-head h2 { font-family: var(--font-title); color: var(--primary); font-size: clamp(1.4rem, 3vw, 1.8rem); }
.panel-head p { color: var(--muted); font-weight: 600; }

/* =================== KOMPONEN UMUM =================== */
.box { background: var(--p-50); border: 2px solid var(--p-100); border-radius: 18px; box-shadow: 0 4px 0 var(--p-100); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px;
  border-radius: 999px; border: 2px solid #fff; background: var(--primary); color: #fff; font-weight: 800;
  cursor: pointer; box-shadow: 0 3px 0 var(--p-400); transition: transform .1s;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--p-400); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--p-200); box-shadow: 0 3px 0 var(--p-200); }
.btn-sm { padding: 7px 14px; font-size: .88rem; }
.btn-block { width: 100%; }
.mini-btn {
  min-width: 34px; height: 32px; border-radius: 10px; border: 2px solid var(--p-200); background: #fff;
  color: var(--primary); font-weight: 800; cursor: pointer; box-shadow: 0 2px 0 var(--p-200);
}
.mini-btn.wide { padding: 0 12px; }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: .85rem; font-weight: 800; color: var(--muted); }
.input {
  width: 100%; padding: 10px 14px; border: 2px solid var(--p-100); border-radius: 12px; background: #fff; outline: none;
}
.input:focus { border-color: var(--p-300); box-shadow: 0 0 0 3px var(--p-100); }
textarea.input { resize: vertical; min-height: 100px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { color: var(--muted); font-size: .85rem; font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 36px; font-weight: 700; }

/* =================== PRICELIST =================== */
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.chip {
  border: 2px solid var(--p-200); background: #fff; padding: 6px 16px; border-radius: 999px;
  cursor: pointer; font-weight: 800; color: var(--ink); box-shadow: 0 2px 0 var(--p-200);
}
.chip.active { background: var(--primary); color: #fff; border-color: #fff; box-shadow: 0 2px 0 var(--p-400); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.price-card {
  position: relative; display: flex; flex-direction: column; padding: 20px; border-radius: 20px;
  background: #fff; border: 2px solid var(--p-100); box-shadow: 0 5px 0 var(--p-100);
}
.price-card .icon {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.8rem;
  background: var(--p-50); border: 2px dashed var(--p-200); border-radius: 16px; margin-bottom: 10px;
}
.price-card h3 { font-family: var(--font-title); font-size: 1.2rem; color: var(--ink); }
/* logo aplikasi */
.app-logo { width: 72%; height: 72%; object-fit: contain; border-radius: 10px; display: block; }
.app-item summary .icon { width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; }
.app-item summary .icon .app-logo { width: 100%; height: 100%; }
.ci-icon { width: 38px; height: 38px; display: grid; place-items: center; }
.ci-icon .app-logo { width: 100%; height: 100%; }
.price-card .cat { color: var(--muted); font-size: .85rem; font-weight: 700; margin-bottom: 10px; }
.badge {
  position: absolute; top: 14px; right: 14px; background: var(--accent); color: #fff; font-size: .72rem;
  font-weight: 800; padding: 3px 11px; border-radius: 999px; border: 2px solid #fff; box-shadow: 0 2px 0 #0001;
}
.plans { list-style: none; border-top: 2px dashed var(--p-200); padding-top: 8px; margin-bottom: 14px; flex: 1; }
.plans li { display: flex; justify-content: space-between; padding: 5px 0; font-weight: 700; }
.plans li strong { color: var(--primary); }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1; }

/* kartu ringkas: logo, nama, kategori, harga mulai — detail muncul saat diklik */
.price-grid:has(.compact) { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
.price-card.compact { align-items: center; text-align: center; padding: 18px 12px 14px; gap: 2px; }
.price-card.compact .icon { margin: 0 auto 8px; width: 60px; height: 60px; }
.price-card.compact h3 { font-size: 1.05rem; line-height: 1.25; }
.price-card.compact .cat { margin-bottom: 6px; font-size: .78rem; }
.price-card.compact .from { font-size: .82rem; font-weight: 700; color: var(--muted); margin-top: auto; }
.price-card.compact .from strong { display: block; font-size: 1.1rem; color: var(--primary); }
.price-card.compact .see-more { margin-top: 6px; font-size: .78rem; font-weight: 800; color: var(--primary); }
.price-card.compact .badge { top: 8px; right: 8px; font-size: .65rem; padding: 2px 8px; }
@media (max-width: 640px) {
  .price-grid:has(.compact) { grid-template-columns: 1fr 1fr; gap: 10px; }
  .price-card.compact { padding: 14px 8px 12px; }
  .price-card.compact .icon { width: 52px; height: 52px; }
  .price-card.compact h3 { font-size: .95rem; }
}

/* kartu aplikasi bisa diklik → popup jenis plan */
.price-card[data-open] { cursor: pointer; transition: transform .12s; }
.price-card[data-open]:hover { transform: translateY(-3px); }
.price-card[data-open]:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.card-desc { font-size: .9rem; color: var(--muted); font-weight: 600; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.variant-list { list-style: none; border-top: 2px dashed var(--p-200); padding-top: 8px; margin-bottom: 14px; flex: 1; }
.variant-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; font-weight: 700; }
.variant-list li::before { content: '★'; color: var(--primary); margin-right: 6px; }
.variant-list li span:first-child { flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-foot .from { font-size: .88rem; font-weight: 700; color: var(--muted); }
.card-foot .btn { white-space: nowrap; }
.card-foot .from strong { color: var(--primary); font-size: 1.05rem; }
.stock-pill { font-size: .7rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.stock-pill.in { background: #dcf7e3; color: #1f8a4c; }
.stock-pill.out { background: #ffe1e1; color: #c0392b; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.added { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.12); } }
.count-bubble {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--primary); color: #fff; font-size: .75rem; font-weight: 800;
}
.count-bubble.zero { background: var(--p-200); color: var(--ink); }
button.chip-btn { cursor: pointer; font: inherit; font-weight: 800; }

/* =================== POPUP (detail plan & keranjang) =================== */
.popup-bg {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, #000 45%, transparent); animation: fade .2s;
}
@keyframes fade { from { opacity: 0; } }
body.no-scroll { overflow: hidden; }
.window.popup { width: min(640px, 100%); max-height: calc(100vh - 32px); margin: 0; display: flex; flex-direction: column; animation: pop .25s ease; }
.popup-body { padding: 18px; overflow-y: auto; display: grid; gap: 14px; background: var(--p-50); }
.popup-app-head { display: flex; gap: 14px; align-items: center; }
.popup-app-head .icon {
  width: 60px; height: 60px; flex-shrink: 0; display: grid; place-items: center; font-size: 2rem;
  background: var(--p-100); border: 2px dashed var(--p-300); border-radius: 16px;
}
.popup-app-head h3 { font-family: var(--font-title); font-size: 1.4rem; }
.popup-app-head p { color: var(--muted); font-weight: 600; }

.variant { background: #fff; border: 2px solid var(--p-100); border-radius: 18px; padding: 16px 18px; box-shadow: 0 4px 0 var(--p-100); }
.variant.is-out { opacity: .75; }
.variant-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.variant-head h4 { font-family: var(--font-title); font-size: 1.15rem; color: var(--primary); }
.variant .devices { font-size: .92rem; margin-bottom: 4px; }
.variant .details { list-style: none; margin: 0 0 4px; padding: 0; font-size: .92rem; }
.variant .details li { padding: 2px 0 2px 18px; position: relative; }
.variant .details li::before { content: '✦'; position: absolute; left: 0; color: var(--primary); font-size: .8rem; top: 4px; }
.price-rows { list-style: none; margin-top: 10px; border-top: 2px dashed var(--p-200); padding-top: 6px; }
.price-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 7px 0; }
.price-row + .price-row { border-top: 1px solid var(--p-100); }
.price-row .dur { font-weight: 800; }
.price-row .amt { font-weight: 800; color: var(--primary); }
.variant-compare { display: grid; gap: 10px; margin-top: 10px; }
.notes { border: 2px dashed var(--p-300); border-radius: 16px; padding: 12px 16px; margin-top: 10px; }
.notes h4 { font-family: var(--font-title); color: var(--primary); margin-bottom: 4px; }
.notes ul { list-style: none; padding: 0; font-size: .9rem; }
.notes li { padding: 2px 0 2px 18px; position: relative; }
.notes li::before { content: '✧'; position: absolute; left: 0; color: var(--primary); }
.variant-compare .variant { padding: 12px 14px; box-shadow: none; }

/* keranjang */
.cart-list { list-style: none; display: grid; gap: 10px; }
.cart-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  background: #fff; border: 2px solid var(--p-100); border-radius: 16px; padding: 10px 12px;
}
.ci-icon { font-size: 1.6rem; }
.ci-info { display: flex; flex-direction: column; line-height: 1.35; }
.ci-info span { font-size: .85rem; color: var(--muted); font-weight: 700; }
.ci-info .ci-price { color: var(--primary); font-size: .95rem; }
.qty { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.cart-total {
  display: flex; justify-content: space-between; align-items: center; margin: 4px 0 14px;
  padding: 12px 16px; border-radius: 14px; border: 2px dashed var(--p-300); font-weight: 800;
}
.cart-total strong { font-family: var(--font-title); font-size: 1.4rem; color: var(--primary); }

/* =================== INFO APLIKASI =================== */
.app-list { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.app-item { background: var(--p-50); border: 2px solid var(--p-100); border-radius: 18px; box-shadow: 0 4px 0 var(--p-100); }
.app-item summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; gap: 14px; font-weight: 800; }
.app-item summary::-webkit-details-marker { display: none; }
.app-item summary .icon { font-size: 1.6rem; }
.app-item summary .chev { margin-left: auto; transition: transform .2s; color: var(--primary); }
.app-item[open] summary .chev { transform: rotate(180deg); }
.app-item .body { padding: 0 20px 18px 60px; }
.app-item .body ul { margin-top: 8px; padding-left: 4px; list-style: none; }
.app-item .body li { margin: 4px 0; }
.app-item .price-from { display: inline-block; margin-top: 10px; font-weight: 800; color: var(--primary); }

/* kartu penjelasan jenis akun */
.explain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.explain-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-l, 18px);
  background: var(--t-panel, #fff); border: 2px solid var(--t-line, var(--p-100)); box-shadow: var(--sh-m, 0 4px 0 var(--p-100));
}
.explain-img { display: block; padding: 0; border: none; cursor: zoom-in; background: var(--t-deep, var(--p-50)); }
.explain-img img { display: block; width: 100%; max-height: 360px; object-fit: contain; }
.explain-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.explain-body h3 { font-family: var(--font-title); color: var(--primary); font-size: 1.2rem; }
.explain-tag {
  align-self: flex-start; font-size: .75rem; font-weight: 800; padding: 2px 10px; border-radius: var(--r-pill, 999px);
  background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary);
}
.explain-text p { margin: 2px 0; }
.explain-text ul { list-style: none; padding: 0; margin: 4px 0; }
.explain-text li { position: relative; padding: 2px 0 2px 18px; }
.explain-text li::before { content: '★'; position: absolute; left: 0; color: var(--primary); font-size: .8rem; top: 4px; }
.login-popup { width: min(380px, 100%); }
.login-popup .popup-body { gap: 10px; }
.login-error { color: #ff7b7b; font-weight: 800; font-size: .88rem; }
@media (max-width: 640px) {
  .admin-label { display: none; }
  .menu-right { gap: 6px; }
  .menu-right .chip-btn { min-width: 0; padding: 6px 9px; gap: 5px; font-size: .88rem; }
  .menu-right #adminBtn { flex: 0 0 auto; }
}
.img-popup { width: min(900px, 100%); }
.img-popup .popup-body { padding: 10px; }
.img-popup img { display: block; width: 100%; height: auto; border-radius: var(--r-m, 12px); }

/* =================== KRITIK & SARAN =================== */
.fb-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: start; }
.fb-form { padding: 22px; }
.stars { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.stars input { display: none; }
.stars label { font-size: 1.9rem; color: var(--p-200); cursor: pointer; line-height: 1; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--accent); }
.fb-summary { padding: 20px; display: flex; align-items: center; gap: 22px; margin-bottom: 14px; }
.fb-summary .avg { font-family: var(--font-title); font-size: 2.8rem; font-weight: 700; line-height: 1; color: var(--primary); }
.rating-bars { flex: 1; }
.rating-bars .bar { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.rating-bars .track { flex: 1; height: 8px; border-radius: 9px; background: #fff; border: 1px solid var(--p-100); overflow: hidden; }
.rating-bars .fill { height: 100%; background: var(--accent); }
.fb-list { display: grid; gap: 12px; max-height: 520px; overflow-y: auto; padding: 2px 4px 6px 2px; }
.fb-item { padding: 14px 18px; background: #fff; border: 2px solid var(--p-100); border-radius: 16px; box-shadow: 0 3px 0 var(--p-100); }
.fb-item .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.fb-item .who { font-weight: 800; }
.fb-item .when { color: var(--muted); font-size: .8rem; font-weight: 600; }
.fb-item .msg { margin-top: 4px; }
.tag { font-size: .7rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; margin-left: 6px; }
.tag.Kritik { background: #ffe1e1; color: #c0392b; }
.tag.Saran { background: #dcf7e3; color: #1f8a4c; }
.star-txt { color: var(--accent); letter-spacing: 1px; }
.reply { margin-top: 10px; padding: 9px 12px; background: var(--p-50); border-left: 3px solid var(--primary); border-radius: 10px; font-size: .9rem; }
.reply b { color: var(--primary); }

/* =================== KALENDER =================== */
.cal-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.today-card {
  padding: 22px 24px; border-radius: 20px; margin-bottom: 16px; color: #fff; border: 3px solid #fff;
  background: linear-gradient(135deg, var(--p-400), var(--lav));
  box-shadow: 0 0 0 2px var(--p-200), 0 5px 0 var(--p-200);
}
.today-card .day { font-weight: 800; opacity: .95; }
.today-card .date { font-family: var(--font-title); font-size: 1.9rem; font-weight: 700; line-height: 1.2; }
.today-card .time { font-family: var(--font-title); font-size: 2.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.today-card .meta { font-size: .85rem; font-weight: 700; opacity: .9; }
.calendar { padding: 18px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal-head h3 { font-family: var(--font-title); color: var(--primary); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: .75rem; font-weight: 800; color: var(--muted); padding: 4px 0; }
.cal-grid .dow:first-child { color: #e0475b; }
.cal-cell {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; font-weight: 700;
  cursor: pointer; border: 2px solid transparent; background: none;
}
.cal-cell:hover { background: #fff; border-color: var(--p-200); }
.cal-cell.other { color: var(--p-300); }
.cal-cell.sun { color: #e0475b; }
.cal-cell.today { background: var(--primary); color: #fff; box-shadow: 0 3px 0 var(--p-400); }
.cal-cell.selected { border-color: var(--accent); background: #fff8e1; }
.cal-cell.in-range { background: var(--p-100); }
.cal-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.calc-col { display: grid; gap: 16px; }
/* sakelar on/off (kalkulator refund) */
.toggle-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer;
  padding: 12px 14px; margin-bottom: 12px; border-radius: 14px; border: 2px solid var(--p-100); background: var(--p-50);
}
.toggle-row span { display: flex; flex-direction: column; line-height: 1.35; }
.toggle-row small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.toggle {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 44px; height: 24px; border-radius: 999px;
  background: var(--p-300); position: relative; cursor: pointer; transition: background .2s;
}
.toggle::before {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform .2s; box-shadow: 0 1px 3px #0005;
}
.toggle:checked { background: var(--primary); }
.toggle:checked::before { transform: translateX(20px); }
.toggle:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.refund-result { text-align: center; }
.refund-result .big { font-size: 2rem; }
.calc { padding: 20px; }
.calc h3 { font-family: var(--font-title); color: var(--primary); }
.calc .hint { margin-bottom: 12px; }
.result { padding: 14px 16px; border-radius: 14px; background: #fff; border: 2px dashed var(--p-300); }
.result .big { font-family: var(--font-title); font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.result .small { color: var(--muted); font-size: .88rem; font-weight: 600; }

/* =================== PITA RIWAYAT ORDER =================== */
.order-ticker {
  max-width: 1100px; margin: 0 auto 20px; display: flex; align-items: center; overflow: hidden;
  border: 3px solid #fff; border-radius: 999px; background: var(--p-50);
  box-shadow: 0 0 0 2px var(--p-300), 0 4px 0 var(--p-200);
}
.ot-label {
  flex-shrink: 0; padding: 8px 16px; font-weight: 800; font-size: .85rem; white-space: nowrap;
  background: var(--primary); color: #fff; border-radius: 999px 0 0 999px;
}
.ot-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ot-move { display: inline-flex; gap: 34px; padding-left: 20px; white-space: nowrap; animation: ticker 40s linear infinite; }
.order-ticker:hover .ot-move { animation-play-state: paused; }
.ot-item { font-size: .88rem; font-weight: 600; }
.ot-item b { color: var(--primary); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ot-move { animation: none; }
  .ot-track { overflow-x: auto; }
}

/* =================== PROMO & DISKON =================== */
.promo-block { margin-bottom: 22px; padding: 16px; border-radius: 20px; border: 2px dashed var(--primary); background: var(--p-50); }
.promo-title { font-family: var(--font-title); color: var(--primary); text-align: center; font-size: 1.3rem; margin-bottom: 12px; }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.promo-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 16px;
  background: #fff; border: 2px solid var(--p-200); box-shadow: 0 4px 0 var(--p-200);
}
.promo-off {
  position: absolute; top: -10px; right: 12px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800;
  background: var(--accent); color: #111; border: 2px solid #fff; transform: rotate(4deg);
}
.promo-head { display: flex; gap: 10px; align-items: center; }
.promo-head .icon {
  width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; font-size: 1.5rem;
  border-radius: 12px; background: var(--p-100);
}
.promo-head h4 { font-family: var(--font-title); font-size: 1.05rem; line-height: 1.2; }
.promo-head small { color: var(--muted); font-weight: 700; }
.promo-note { font-size: .85rem; font-weight: 600; }
.promo-price s { color: var(--muted); font-size: .9rem; margin-right: 6px; }
.promo-price strong { font-family: var(--font-title); font-size: 1.4rem; color: var(--primary); }
.promo-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.promo-time { font-size: .78rem; font-weight: 700; color: var(--muted); }
.promo-foot .btn { white-space: nowrap; }

/* =================== EMOJI (Twemoji) =================== */
img.emoji { display: inline-block; width: 1em; height: 1em; margin: 0 .05em 0 .1em; vertical-align: -0.12em; border: none; }
.sticker img.emoji { filter: drop-shadow(0 3px 0 #fff8); }

/* =================== TOAST =================== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(140px); z-index: 100;
  background: #fff; color: var(--primary); font-weight: 800; padding: 12px 22px; border-radius: 18px;
  width: max-content; max-width: calc(100vw - 32px);
  border: 2px solid var(--p-200); box-shadow: 0 4px 0 var(--p-300); transition: transform .3s; text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* =================== RESPONSIF =================== */
@media (max-width: 860px) {
  .cal-wrap, .fb-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { padding: 12px 8px 30px; }
  .win-body { padding: 10px; gap: 12px; }
  .win-body.inset { margin: 8px; padding: 14px; }
  .win-title { font-size: 1.05rem; }
  .profile-card { padding: 84px 16px 18px; text-align: center; margin-top: 40px; }
  .avatar { left: 50%; transform: translateX(-50%); top: -62px; width: 124px; height: 124px; }
  .socials { justify-content: center; }
  .social { width: 48px; height: 48px; border-radius: 14px; }
  .banner { aspect-ratio: 2 / 1; }
  .menu-tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .menu-tab { justify-content: center; }
  .menu-right { width: 100%; }
  .menu-right .chip-btn { flex: 1; justify-content: center; }
  .row { grid-template-columns: 1fr; }
  .fb-summary { flex-direction: column; align-items: stretch; text-align: center; }
  .price-row { grid-template-columns: 1fr auto; grid-template-areas: "dur btn" "amt btn"; row-gap: 0; }
  .price-row .dur { grid-area: dur; }
  .price-row .amt { grid-area: amt; }
  .price-row > :last-child { grid-area: btn; }
  .popup-bg { padding: 8px; }
  .popup-body { padding: 12px; }
}
