/* ═══════════════ TWINS JASDOR — page components ═══════════════ */
body { font-weight: 500; }
h1, h2, h3, h4, .section-title, .dialog-title, .sheet-title { font-weight: 800; letter-spacing: -0.01em; }

/* Logo */
.logo img { height: 40px; width: auto; display: block; }
.logo.compact img { height: 32px; }
.drawer-head .logo img { height: 44px; }

/* Hero (compact, so menus show on the first screen) */
.mk-hero {
  margin: 6px 16px 0; padding: 14px 10px 12px 16px; border-radius: var(--r-lg); position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 10px;
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(240, 168, 178, .45) 0%, rgba(240, 168, 178, 0) 60%),
    linear-gradient(160deg, #FBF7F0 0%, #F1E7D8 100%);
  border: 1px solid #E9DDCB;
}
:root[data-theme="dark"] .mk-hero { background: radial-gradient(90% 140% at 100% 0%, rgba(240, 168, 178, .14), transparent 60%), linear-gradient(160deg, #1E1A18, #272220); border-color: var(--border-2); }
.mk-hero-body { flex: 1; min-width: 0; }
.mk-hero-title { font-size: 18px; line-height: 1.18; font-weight: 900; color: var(--heading); letter-spacing: -0.01em; text-wrap: balance; }
.mk-hero-title span { color: #5C4F49; }
:root[data-theme="dark"] .mk-hero-title span { color: var(--primary); }
.mk-hero-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; }
.mk-hero-art { width: 84px; height: auto; flex-shrink: 0; margin: -6px -2px -14px 0; filter: drop-shadow(0 8px 14px rgba(150, 100, 20, .25)); }
.mk-status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; background: rgba(255, 255, 255, .8); color: var(--ok); border: 1px solid rgba(47, 122, 69, .18); }
.mk-status svg { width: 13px; height: 13px; }
.mk-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(47, 122, 69, .16); }
.mk-status.off { color: var(--danger); border-color: rgba(181, 65, 47, .2); }
:root[data-theme="dark"] .mk-status { background: rgba(0, 0, 0, .25); }
.mk-hero-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; color: var(--heading); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(59, 36, 20, .3); }
.mk-hero-link svg { width: 15px; height: 15px; }

.mk-hero-main { display: flex; align-items: center; gap: 6px; }

/* Brand switch (Kopi Kenangan / Fore) */
.mk-brands { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 4px; margin-right: 6px; border-radius: 14px; background: rgba(255, 255, 255, .6); border: 1px solid #E6D9C6; position: relative; z-index: 1; }
:root[data-theme="dark"] .mk-brands { background: rgba(0, 0, 0, .25); border-color: var(--border-2); }
.mk-brands a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 10px; border-radius: 11px; font-size: 13px; font-weight: 800; color: var(--muted); text-decoration: none; transition: background .2s, color .2s; }
.mk-brands a img { width: 20px; height: 20px; border-radius: 6px; object-fit: contain; background: #fff; }
.mk-brands a.active { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 14px -10px rgba(150, 100, 20, .9); }
.mk-brands a:focus-visible { outline: 2px solid var(--heading); outline-offset: 2px; }
.mk-modes.hidden { display: none; }

/* Outlet tier pills */
.pill-premium { background: #EFE5D6; color: #4C403B; }
.pill-regular { background: var(--ok-soft); color: var(--ok); }
:root[data-theme="dark"] .pill-premium { background: rgba(240, 168, 178, .16); color: var(--primary); }
.oc-meta { flex-wrap: wrap; row-gap: 4px; }
.oc-ico { background: var(--primary); color: var(--on-primary); }
:root[data-theme="dark"] .oc-ico { background: var(--primary); color: var(--on-primary); }

/* Mode tabs */
.mk-modes { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 4px; margin: 0 16px 10px; padding: 4px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); }
.mk-modes button { min-height: 42px; border-radius: 14px; font-size: 13.5px; font-weight: 800; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; transition: background .2s var(--ease), color .2s; line-height: 1.1; }
.mk-modes button .mode-tag { font-size: 9.5px; font-weight: 800; letter-spacing: .03em; padding: 1px 6px; border-radius: 6px; background: transparent; color: var(--faint); }
.mk-modes button.active { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 16px -10px rgba(150, 100, 20, .8); }
.mk-modes button.active .mode-tag { color: var(--on-primary); background: rgba(255, 255, 255, .45); }
.mk-modes button:focus-visible { outline: 2px solid var(--heading); outline-offset: 2px; }
.menu-toolbar .menu-search { margin: 0 16px 10px; height: 42px; }
.cat-row.hidden { display: none; }

/* Notices */
#modeNote:empty { display: none; }
#modeNote { padding: 12px 16px 0; }
.mk-banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; line-height: 1.5; color: var(--ink); }
.mk-banner > svg { flex-shrink: 0; color: #5C4F49; margin-top: 1px; width: 20px; height: 20px; }
.mk-banner.warn { background: var(--warn-soft); border-color: #E5D7C3; }
.mk-banner.warn > svg { color: var(--warn); }
.mk-banner b { color: var(--heading); }
#cartWarn .mk-banner { margin-top: 12px; }
.mk-link { font-weight: 800; color: var(--heading); text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }
.mk-note { margin: 10px 0 2px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.mk-note:empty { display: none; }
.mk-blocked .gcard { opacity: .5; }

/* Cards */
.gcard { border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.gcard-art .badge { background: var(--primary); color: var(--on-primary); font-weight: 800; }
.mk-bundle-card .gcard-art { aspect-ratio: .82; background: var(--surface-3); }
.mk-bundle-card .gcard-art img { object-fit: cover; object-position: top; }
.mk-price { display: flex; flex-direction: column; line-height: 1.15; }
.mk-price .price-normal { font-size: 11.5px; }
.mk-from { font-size: 10.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.thumb img.ph-logo, .gcard-art img.ph-logo { filter: none; opacity: .5; border-radius: 12px; }
.price { font-weight: 800; }
.add-btn { box-shadow: 0 6px 14px -8px rgba(150, 100, 20, .9); }

/* Bundle sheet */
.mk-bundle-hero { border-radius: var(--r-lg); overflow: hidden; margin: 0 0 14px; background: var(--surface-2); max-height: 340px; display: grid; place-items: center; }
.mk-bundle-hero img { width: 100%; max-height: 340px; object-fit: contain; }
.mk-bundle-hero.hidden { display: none; }
.mk-variants { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 6px; }
.mk-variant { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 10px 8px 8px; border-radius: var(--r-sm); border: 1.5px solid var(--border); text-align: left; transition: border-color .15s, background .15s; }
.mk-variant img { grid-row: span 2; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.mk-variant-name { font-size: 12.5px; font-weight: 700; color: var(--heading); line-height: 1.25; }
.mk-variant-price { font-size: 12px; font-weight: 800; color: #544842; }
:root[data-theme="dark"] .mk-variant-price { color: var(--primary); }
.mk-variant.picked { border-color: #2B2422; background: var(--primary-soft-2); }
.mk-variant.sold { opacity: .45; }
.bundle-slots.hidden, .bundle-grid.hidden { display: none; }
.bundle-slot.active { border-color: #2B2422; }
.bcand.picked { border-color: #2B2422; }
.bcand:disabled { cursor: not-allowed; }

/* Cart */
.mk-kind { display: inline-block; vertical-align: 2px; font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 2px 6px; border-radius: 6px; background: var(--primary-soft-2); color: var(--heading); }
.seg-sm { margin-bottom: 8px; }
.seg-sm button { min-height: 34px; font-size: 13px; }
.seg button.active { background: var(--primary); color: var(--on-primary); }
.mk-bag { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 16px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14px; }
.mk-bag input { width: 18px; height: 18px; accent-color: #2B2422; }
.mk-bag.hidden { display: none; }
.mk-admin { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: var(--r-md); border: 1.5px solid #DCCDB7; background: #FCFAF6; font-size: 13.5px; color: var(--ink); }
.mk-admin:empty { display: none; }
.mk-admin small { display: block; font-size: 12px; color: var(--muted); }
.mk-admin.off { border-color: var(--danger-soft); background: var(--danger-soft); }
:root[data-theme="dark"] .mk-admin { background: var(--surface-2); border-color: var(--border-2); }
.cs-avatar { background: var(--primary); color: var(--on-primary); }
.cs-avatar.off { background: var(--surface-3); color: var(--danger); }
.cs-admin-txt { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.cs-admin-txt small { font-size: 11px; font-weight: 600; color: var(--muted); }
.cs-admin:disabled { opacity: .5; cursor: not-allowed; }
.cart-item.sold { background: var(--warn-soft); }
.cart-item.sold .ci-warn { color: var(--warn); }

/* Cart bar: soft yellow */
.cart-bar { background: var(--primary); color: var(--on-primary); box-shadow: 0 18px 34px -14px rgba(150, 100, 20, .6); }
:root[data-theme="dark"] .cart-bar { background: var(--primary); color: var(--on-primary); }
.cart-bar-icon { background: rgba(255, 255, 255, .5); }
.cart-bar-badge { background: var(--on-primary); color: var(--primary); border-color: var(--primary); }
:root[data-theme="dark"] .cart-bar-badge { background: var(--on-primary); color: var(--primary); border-color: var(--primary); }

/* Welcome */
.mk-welcome { text-align: center; }
.mk-welcome-logo { width: 150px; height: auto; margin: -4px auto 6px; display: block; }
.mk-rules { list-style: none; text-align: left; margin: 12px 0 18px; padding: 14px 14px 14px 12px; border-radius: var(--r-md); background: #FBF7F0; border: 1px solid #ECE0CF; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
:root[data-theme="dark"] .mk-rules { background: var(--surface-2); border-color: var(--border-2); }
.mk-rules li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; }
.mk-rules li::before { content: ""; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFF8EE' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat; }
.fee-box .mk-rules { margin: 6px 0 0; padding: 0; background: none; border: none; }
.mk-shift { display: flex; justify-content: space-between; padding: 4px 0; }
.mk-shift span { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--heading); }

/* Sent + payment */
.mk-sent-head { text-align: center; margin-bottom: 14px; }
.mk-sent-head .dialog-text { margin-bottom: 0; }
.order-code-box { text-align: center; }
.mk-qris { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--border); margin-bottom: 10px; }
.mk-qris img { width: 100%; max-width: 260px; height: auto; border-radius: 10px; }
.mk-acc { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); margin-bottom: 8px; }
.mk-acc small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mk-acc b { display: block; font-size: 17px; font-weight: 800; color: var(--heading); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.mk-acc span { display: block; font-size: 12px; color: var(--muted); }
.mk-acc .copy-btn { background: var(--primary); color: var(--on-primary); flex-shrink: 0; }
.mk-pay-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 8px; }

/* Testimonials & about */
.mk-testi { columns: 2; column-gap: 8px; }
.mk-testi a { display: block; margin-bottom: 8px; border-radius: 14px; overflow: hidden; break-inside: avoid; background: var(--surface-2); }
.mk-testi img { width: 100%; height: auto; display: block; }
.mk-about-logo { display: block; width: 160px; height: auto; margin: 0 auto 10px; }

/* Wi-Fi field on yellow */
.wifi-field.pass { background: var(--primary); }
.copy-btn { background: var(--on-primary); color: var(--primary); }

@media (min-width: 480px) {
  .mk-hero-title { font-size: 21px; }
  .mk-hero-art { width: 100px; }
  .mk-variants { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .mk-modes button { transition: none; }
}

/* Add-ons as a list: name left, price right, checkbox */
.addon-list { display: flex; flex-direction: column; border: 1.5px solid var(--border); border-radius: var(--r-sm); overflow: hidden; background: var(--bg); }
.addon-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); transition: background .15s; }
.addon-row:last-child { border-bottom: none; }
.addon-row:hover { background: var(--surface-2); }
.addon-row:focus-visible { outline: 2px solid var(--heading); outline-offset: -2px; }
.addon-check { width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px; border: 2px solid var(--border-2); display: grid; place-items: center; color: var(--on-primary); transition: background .15s, border-color .15s; }
.addon-name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.addon-price { flex-shrink: 0; font-size: 14.5px; font-weight: 800; color: var(--heading); font-variant-numeric: tabular-nums; }
.addon-row.active { background: var(--primary-soft); }
.addon-row.active .addon-check { background: var(--primary); border-color: #2B2422; }
.addon-row.active .addon-name { color: var(--heading); }
.addon-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 13px; color: var(--muted); }
.addon-sum b { font-size: 14.5px; color: var(--heading); white-space: nowrap; }
.ci-addons { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.ci-addons > span { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.ci-addons b { color: var(--heading); font-weight: 700; }

/* Payment page (/bayar) */
.mk-pay { padding: 8px 16px 40px; }
.mk-pay-head { text-align: center; padding: 18px 16px; margin: 6px 0 18px; border-radius: var(--r-lg); background: linear-gradient(160deg, #FBF7F0 0%, #F1E7D8 100%); border: 1px solid #E9DDCB; }
:root[data-theme="dark"] .mk-pay-head { background: var(--surface-2); border-color: var(--border-2); }
.mk-pay-total { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.mk-pay-total small { font-size: 12px; font-weight: 700; color: var(--muted); }
.mk-pay-total b { font-size: 24px; font-weight: 900; color: var(--heading); font-variant-numeric: tabular-nums; }
.mk-pay-total .copy-btn { background: var(--primary); color: var(--on-primary); }
.mk-pay-title { font-size: 16px; margin: 0 0 10px; }
.mk-pay-steps { margin: 16px 0 20px 20px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.mk-pay-steps b { color: var(--heading); }
.mk-pay .mk-qris img { max-width: 360px; }

/* status admin slow respon */
.mk-status.slow { color: #B7791F; border-color: rgba(183, 121, 31, .25); }
.mk-status.slow i { box-shadow: 0 0 0 3px rgba(183, 121, 31, .18); }

/* Pilih brand: tombol + daftar mengambang dengan warna tiap brand */
.bs-card[data-brand="kopken"] { --ob: #A3171B; }
.bs-card[data-brand="jiwa"] { --ob: #E4243B; }
.bs-card[data-brand="fore"] { --ob: #157A3E; }
.bs-card[data-brand="tomoro"] { --ob: #E85A1E; }
.bs-card[data-brand="chagee"] { --ob: #D90012; }
.bs-card[data-brand="chatime"] { --ob: #4B0F6E; }
.bs-card[data-brand="starbucks"] { --ob: #00704A; }

.mk-brand-select {
  width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 4px; text-align: left;
  min-height: 60px; padding: 9px 10px 9px 9px; border-radius: 18px;
  background: rgba(255, 255, 255, .86); border: 1.5px solid var(--border-2);
  box-shadow: 0 8px 22px -12px rgba(43, 36, 34, .45), inset 0 1px 0 rgba(255, 255, 255, .9);
  position: relative; z-index: 1;
}
.mk-brand-select:hover { border-color: rgba(43, 36, 34, .55); transform: translateY(-1px); }
.mk-brand-select:active { transform: scale(.985); }
.mk-brand-select:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
:root[data-theme="dark"] .mk-brand-select { background: rgba(0, 0, 0, .28); }
.bs-logo { width: 42px; height: 42px; border-radius: 13px; background: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 0 0 1.5px rgba(43, 36, 34, .22), 0 3px 8px rgba(15, 23, 42, .1); overflow: hidden; }
.bs-logo img { width: 34px; height: 34px; object-fit: contain; }
.mk-brand-select .bs-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.mk-brand-select .bs-txt small { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.mk-brand-select .bs-txt b { font-size: 16px; font-weight: 900; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-count { font-size: 11px; font-weight: 800; color: var(--muted); background: var(--surface-2); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.mk-brand-select .bs-chev { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; background: var(--primary); color: var(--on-primary); flex-shrink: 0; box-shadow: 0 4px 10px -3px rgba(43, 36, 34, .55); }
.mk-brand-select .bs-chev svg { transform: rotate(90deg); transition: transform .25s var(--ease); }

/* Popup pilih brand: grid kartu 2 kolom */
.bs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bs-card {
  text-decoration: none; color: inherit;
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 148px; padding: 18px 10px 16px; border-radius: 22px; text-align: center;
  background: #fff; border: 1.5px solid var(--border);
  box-shadow: 0 6px 18px -10px rgba(15, 23, 42, .18);
  transition: transform .18s var(--ease), border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.bs-card:hover { border-color: color-mix(in srgb, var(--ob) 45%, transparent); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--ob) 55%, transparent); transform: translateY(-2px); }
.bs-card:active { transform: scale(.97); }
.bs-card:focus-visible { outline: 2.5px solid var(--ob); outline-offset: 2px; }
.bs-card-logo { height: 64px; width: 100%; display: grid; place-items: center; }
.bs-card-logo img { max-height: 64px; max-width: 78%; object-fit: contain; }
.bs-card b { font-size: 16px; font-weight: 900; line-height: 1.2; color: var(--ob); }
.bs-card.active { border: 2px solid var(--ob); background: color-mix(in srgb, var(--ob) 7%, #fff); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--ob) 60%, transparent); }
.bs-card-tick { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ob); color: #fff; box-shadow: 0 3px 8px -2px color-mix(in srgb, var(--ob) 70%, transparent); }
:root[data-theme="dark"] .bs-card { background: var(--surface-2); }
:root[data-theme="dark"] .bs-card b { color: color-mix(in srgb, var(--ob) 55%, #fff); }
.bs-sheet { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

/* Pilih admin di keranjang kalau lebih dari 1 yang online */
.mk-admin.multi { display: block; }
.mk-admin-head { font-size: 12.5px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.mk-admin.multi .cs-admins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mk-admin.multi .cs-admin { cursor: pointer; }
