/* =========================================================
   HOHO COFFEE — style.css
   Warna & komponen mengikuti desain Figma "Hoho Coffee"
   ========================================================= */
:root {
    --brown-950: #22140d;
    --brown-900: #2b1a13;
    --brown-800: #3a2318;
    --brown-700: #4b2d1e;
    --brown-500: #8a5a3c;
    --brown-300: #a7826a;
    --cream: #fbf1e4;
    --cream-100: #fdf8f1;
    --cream-200: #f3e6d6;
    --beige: #ebe1d6;
    --beige-card: #f0e2d2;
    --card-dark: #2a1f1a;
    --card-slate: #262b28;
    --yellow: #f5b731;
    --orange: #d9731f;
    --green: #1f8a4c;
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--brown-900);
    background: var(--cream);
    min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; }
.text-cream { color: var(--cream) !important; }
.text-orange { color: var(--orange) !important; }
.text-brown { color: var(--brown-800) !important; }
.bg-brown { background: var(--brown-800) !important; }
.fw-800 { font-weight: 800; }

/* ---------- Logo ---------- */
.logo { width: 92px; height: auto; display: block; }
.logo-sm { width: 70px; }
.logo-dark { color: var(--brown-800); }

/* ---------- Tombol ---------- */
.btn-hoho {
    background: var(--brown-800); color: var(--cream);
    border-radius: 50px; padding: .7rem 1.6rem; font-weight: 600; border: 0;
    transition: .2s;
}
.btn-hoho:hover { background: var(--brown-950); color: #fff; transform: translateY(-1px); }
.btn-cream {
    background: var(--cream-200); color: var(--brown-900); border-radius: 50px;
    padding: .55rem 1.4rem; font-weight: 600; border: 0;
}
.btn-cream:hover { background: #fff; color: var(--brown-900); }
.btn-pill { border-radius: 50px; font-weight: 600; }
.btn-xs { padding: .2rem .8rem; font-size: .72rem; border-radius: 6px; font-weight: 600; }
.label-dark {
    display: inline-block; background: var(--brown-900); color: #fff;
    padding: .55rem 1.1rem; border-radius: 10px; font-weight: 700; font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}

/* =========================================================
   HEADER & NAVBAR (user)
   ========================================================= */
.site-header {
    background: var(--brown-800);
    border-radius: 0 0 22px 22px;
    padding: 14px 0;
    position: sticky; top: 0; z-index: 1030;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.nav-pills-hoho { flex: 1; justify-content: space-evenly; }
.pill-link {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--cream-200); color: var(--brown-900);
    border-radius: 50px; padding: .6rem 2rem; text-decoration: none;
    font-weight: 500; transition: .2s; min-width: 110px;
}
.pill-link:hover { background: #fff; color: var(--brown-900); transform: translateY(-2px); }
.pill-link.active { background: #fff; font-weight: 700; box-shadow: 0 0 0 3px var(--orange) inset; }
.cart-btn {
    position: relative; width: 44px; height: 44px; border-radius: 50%;
    background: var(--cream-200); color: var(--brown-900);
    display: grid; place-items: center; font-size: 1.2rem; text-decoration: none;
}
.cart-badge {
    position: absolute; top: -4px; right: -4px; background: var(--orange); color: #fff;
    font-size: .7rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px;
    display: grid; place-items: center; padding: 0 5px;
}
.burger { color: var(--cream); font-size: 1.8rem; padding: 0 .3rem; border: 0; }
.burger:hover { color: #fff; }
.offcanvas-hoho { background: var(--brown-800); color: var(--cream); max-width: 300px; }

/* =========================================================
   MAIN (latar krem + gelombang + biji kopi)
   ========================================================= */
.site-main {
    position: relative; overflow: hidden;
    min-height: calc(100vh - 200px);
    padding-bottom: 140px;
    background:
        url('../img/wave-bottom.svg') bottom center / 100% 140px no-repeat,
        var(--cream);
}
.site-main::before {
    content: ''; position: absolute; left: -80px; top: 40%;
    width: 260px; height: 260px; border-radius: 50%; background: #f1dcc2; opacity: .55; z-index: 0;
}
.site-main > * { position: relative; z-index: 1; }
.bean { position: absolute !important; width: 54px; z-index: 0 !important; pointer-events: none; }
.bean-left { left: -14px; top: 180px; transform: rotate(30deg); }
.bean-right { right: -10px; top: 40px; transform: rotate(-25deg); }

/* ---------- HERO ---------- */
.hero { padding: 70px 0 30px; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 800; letter-spacing: -2px; line-height: 1; }
.hero .tagline { font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 500; margin: .6rem 0 1.8rem; }
.hero .btn-hoho { font-size: 1.2rem; padding: .8rem 1.8rem; }
.hero-visual { position: relative; max-width: 480px; margin: 0 auto; }
.hero-visual .hero-cup {
    width: 58%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 26px 26px 60px 60px;
    transform: rotate(-12deg); box-shadow: 0 25px 40px rgba(74, 40, 20, .35);
}
.hero-visual .hero-script {
    position: absolute; right: -10px; top: 26%; font-family: 'Lobster', cursive;
    font-size: clamp(2rem, 4.6vw, 3.6rem); color: #fff; line-height: .95; transform: rotate(-10deg);
    -webkit-text-stroke: 8px var(--brown-800); paint-order: stroke fill;
    text-shadow: 0 6px 0 var(--brown-800);
}
.hero-visual::after {
    content: ''; position: absolute; right: -40%; top: -10%; width: 300px; height: 300px;
    border-radius: 50%; background: #f1dcc2; z-index: -1;
}

/* ---------- Section title ---------- */
.section-title {
    display: flex; align-items: center; gap: 14px;
    font-weight: 800; font-size: 1.9rem; margin-bottom: 1.8rem;
}
.section-title::after { content: ''; width: 72px; height: 2px; background: var(--brown-900); }

/* ---------- Best Selling ---------- */
.best-card {
    background: var(--beige-card); border-radius: 20px; padding: 2.2rem 1.5rem 2rem;
    text-align: center; height: 100%; transition: .25s; text-decoration: none; display: block;
}
.best-card:hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(74, 40, 20, .15); }
.best-card img {
    width: 150px; height: 190px; object-fit: cover; border-radius: 10px 10px 26px 26px;
    border-top: 14px solid #faf6f0; box-shadow: 0 14px 22px rgba(0, 0, 0, .2);
}
.best-card h6 { margin-top: 1.5rem; font-weight: 600; font-size: 1.1rem; }
.best-card .price { font-size: .85rem; color: var(--brown-500); }

/* ---------- Loyalty / Promo ---------- */
.loyalty-box {
    background: var(--brown-800); color: var(--cream); border-radius: 18px;
    padding: 2rem 2.4rem; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}
.loyalty-box .divider { width: 1px; align-self: stretch; background: rgba(255, 255, 255, .2); }
.promo-box {
    background: linear-gradient(110deg, #3a2318 55%, #6b3d1f 100%); color: #fff;
    border-radius: 22px; padding: 2.4rem; display: flex; gap: 2rem; align-items: center; flex-wrap: wrap;
}
.promo-box .tag { background: var(--orange); font-size: .68rem; font-weight: 700; padding: .25rem .7rem; border-radius: 30px; }
.promo-box h3 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; margin: .8rem 0; }
.promo-box h3 span { color: var(--yellow); }
.promo-box .harga { font-family: 'Playfair Display', serif; font-size: 2.4rem; line-height: 1; }
.promo-box .v-line { width: 1px; align-self: stretch; background: rgba(255, 255, 255, .15); }

/* ---------- About ---------- */
.about-img { border-radius: 22px; width: 100%; height: 380px; object-fit: cover; box-shadow: 0 16px 34px rgba(0, 0, 0, .15); }
.about-map { border: 0; border-radius: 22px; width: 100%; height: 380px; box-shadow: 0 16px 34px rgba(0, 0, 0, .12); }
.about h2 { font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--brown-800); color: var(--cream); padding: 2.2rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 1.5rem; }
.footer-grid > * + * { border-left: 1px solid rgba(255, 255, 255, .15); padding-left: 1.5rem; }
.footer-item { display: flex; gap: .8rem; align-items: center; font-size: .85rem; opacity: .85; }
.site-footer hr { border-color: rgba(255, 255, 255, .15); margin: 1.6rem 0 1rem; }
.social {
    width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%;
    display: grid; place-items: center; color: var(--cream); text-decoration: none;
}
.social:hover { background: var(--cream); color: var(--brown-800); }
.footer-user { padding: 1.4rem 0; }
.footer-pill {
    background: #151010; color: #fff; text-decoration: none; font-weight: 800; font-size: .8rem;
    padding: .55rem 1.6rem; border-radius: 10px; letter-spacing: 1px;
}
.footer-pill:hover { background: #000; color: var(--yellow); }

/* =========================================================
   AUTH (login / register / reset)
   ========================================================= */
.auth-wrap { padding: 50px 0 30px; }
.auth-card {
    max-width: 580px; margin: 0 auto; background: #faf8f4; border-radius: 22px; overflow: hidden;
    box-shadow: 0 20px 40px rgba(60, 30, 10, .15);
}
.auth-card .auth-head { background: var(--brown-800); color: #fff; text-align: center; padding: .8rem; font-weight: 600; font-size: 1.1rem; }
.auth-card .auth-body { padding: 1.6rem 2.4rem 2rem; }
.input-hoho { position: relative; }
.input-hoho > i:first-child { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--brown-800); }
.input-hoho .form-control, .input-hoho .form-select {
    border: 1px solid var(--brown-500); border-radius: 50px; padding: .65rem 2.8rem .65rem 2.6rem;
    background: transparent; font-size: .9rem;
}
.input-hoho .form-control:focus { box-shadow: 0 0 0 .2rem rgba(217, 115, 31, .2); border-color: var(--orange); }
.toggle-pass { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--brown-800); }
.form-check-input:checked { background-color: var(--brown-800); border-color: var(--brown-800); }
.or-line { display: flex; align-items: center; gap: 1rem; font-size: .78rem; text-align: center; }
.or-line::before, .or-line::after { content: ''; flex: 0 0 40px; height: 1px; background: #bbb; }

/* =========================================================
   SHOP / KATALOG
   ========================================================= */
.side-label {
    display: inline-block; background: var(--brown-900); color: #fff; font-weight: 700;
    padding: .6rem 1.2rem; border-radius: 10px; font-size: 1.05rem; box-shadow: 0 6px 12px rgba(0, 0, 0, .15);
}
.search-box { position: relative; flex: 1; }
.search-box input { border-radius: 10px; border: 1px solid #ddd; background: #faf6f1; padding: .45rem 2.2rem .45rem .9rem; font-size: .82rem; }
.search-box i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #999; font-size: .8rem; }
.btn-dark-hoho { background: var(--brown-900); color: #fff; border-radius: 8px; font-weight: 600; font-size: .85rem; padding: .45rem 1rem; border: 0; }
.btn-dark-hoho:hover { background: #000; color: #fff; }
.chip {
    display: inline-block; border-radius: 30px; padding: .3rem 1.3rem; font-size: .78rem; font-weight: 500;
    border: 1px solid #ddd; background: #fff; color: var(--brown-900); text-decoration: none;
}
.chip.active { background: var(--brown-900); color: #fff; border-color: var(--brown-900); }
.chip-fav { color: #c8102e; font-weight: 600; }
.chip-fav.active { background: #c8102e; color: #fff; border-color: #c8102e; }
.promo-mini { font-family: 'Lobster', cursive; color: #fff; font-size: 1.6rem; -webkit-text-stroke: 5px var(--brown-800); paint-order: stroke fill; transform: rotate(-8deg); }

.product-row {
    background: var(--card-dark); color: #fff; border-radius: 12px; padding: 14px 18px;
    display: flex; align-items: center; gap: 16px; margin-bottom: 14px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12); transition: .2s;
}
.product-row:hover { transform: translateX(4px); }
/* Stok habis: baris redup/abu-abu, tombol tambah tidak bisa ditekan */
.product-row.habis .thumb, .product-row.habis h6, .product-row.habis p { filter: grayscale(1); opacity: .5; }
.product-row.habis .price-badge { background: #6b6b6b; color: #ddd; text-decoration: line-through; }
.product-row.habis .icon-circle.add { background: #444; border-color: #444; color: #888; cursor: not-allowed; opacity: 1; }
.badge-habis { display: inline-block; white-space: nowrap; background: #b3261e; color: #fff; font-size: .68rem; font-weight: 700; padding: .15rem .7rem; border-radius: 20px; text-transform: uppercase; letter-spacing: .03em; }
.product-row .thumb { width: 74px; height: 74px; border-radius: 8px; object-fit: cover; background: #fff; flex-shrink: 0; }
.product-row h6 { font-weight: 700; margin: 0 0 .3rem; }
.product-row p { font-size: .76rem; color: #ddd; margin: 0 0 .4rem; }
.price-badge { background: var(--yellow); color: var(--brown-900); font-size: .72rem; font-weight: 700; padding: .15rem .7rem; border-radius: 20px; display: inline-block; }
.stock-badge { font-size: .7rem; color: #bbb; margin-left: .5rem; }
.icon-circle {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    border: 1px solid #777; background: transparent; color: #fff; font-size: .9rem; transition: .2s;
}
.icon-circle.fav.on { color: #ff4d6d; border-color: #ff4d6d; }
.icon-circle.add { background: #fff; color: var(--brown-900); border-color: #fff; font-size: 1.2rem; }
.icon-circle.add:hover { background: var(--yellow); }
.icon-circle:disabled { opacity: .35; }

/* ---------- Pagination ---------- */
.hoho-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 1.2rem; flex-wrap: wrap; }
.pg-btn {
    width: 36px; height: 36px; border-radius: 8px; border: 1px solid #ddd; background: #fff;
    display: grid; place-items: center; text-decoration: none; color: var(--brown-900); font-size: .82rem; font-weight: 500;
}
.pg-btn.active { background: var(--brown-900); color: #fff; border-color: var(--brown-900); }
.pg-btn.disabled { pointer-events: none; opacity: .4; }
.pg-dots { color: #999; padding: 0 4px; }

/* =========================================================
   KARTU PESANAN (Order user, Pesanan Masuk, Status, Riwayat)
   ========================================================= */
.panel-box {
    background: var(--beige); border-radius: 22px; padding: 1.5rem; border: 1px solid #e2d6c8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}
.order-card {
    background: var(--card-slate); color: #fff; border-radius: 14px; padding: 14px;
    display: grid; grid-template-columns: 130px 1fr 2fr auto; gap: 16px; align-items: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18); margin-bottom: 14px;
}
.order-card.brown { background: var(--card-dark); }
.pay-box {
    border-radius: 8px; padding: 10px; text-align: center; font-size: .7rem; min-height: 74px;
    display: flex; flex-direction: column; justify-content: center;
}
.pay-box b { display: block; font-size: 1rem; font-weight: 800; line-height: 1.15; }
.pay-cash { background: #8ee39e; color: #15301e; }
.pay-qris { background: #fbe9ea; color: #b11226; border: 1px solid #f3c2c8; }
.pay-wait { background: #444; color: #ddd; }
.pay-tolak { background: #f8d7da; color: #842029; }
.queue-box { border: 1px solid #455; border-radius: 8px; padding: 8px; text-align: center; margin-top: 8px; font-size: .62rem; color: #aaa; }
.queue-box b { color: var(--yellow); font-size: 1.15rem; display: block; }
.no-badge { background: #2563eb; color: #fff; font-size: .7rem; font-weight: 700; border-radius: 6px; padding: .1rem .5rem; }
.order-meta .nama { font-weight: 700; }
.order-meta .sub { font-size: .72rem; color: #bbb; }
.order-meta .proses { font-size: .74rem; color: var(--yellow); }
.order-meta .total { display: inline-block; border: 1px solid #3c5a46; background: #1d2a22; color: #5ce08a; font-size: .78rem; border-radius: 6px; padding: .2rem .6rem; margin-top: .4rem; font-weight: 600; }
.eta { display: inline-block; font-size: .68rem; background: #4b3416; color: #ffcf7a; border: 1px solid #a07128; border-radius: 6px; padding: .1rem .5rem; margin-top: .3rem; }
.item-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.item-col { background: #1f2421; border: 1px solid #39403b; border-radius: 8px; padding: 8px 10px; font-size: .74rem; }
.order-card.brown .item-col { background: #241a15; border-color: #3d2e25; }
.item-col .head { text-align: center; font-weight: 700; font-size: .66rem; letter-spacing: 1px; border: 1px solid #555; border-radius: 4px; padding: 2px; margin-bottom: 6px; background: rgba(255, 255, 255, .05); }
.item-col .row-i { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.qty-pill { background: #3a3f3c; border-radius: 4px; padding: 0 6px; font-weight: 700; font-size: .66rem; }
.order-actions { display: flex; flex-direction: column; gap: 8px; min-width: 100px; }
.btn-proses { background: #0b84d6; color: #fff; }
.btn-proses:hover { background: #0a6fb5; color: #fff; }
.btn-tolak { background: #dc2626; color: #fff; }
.btn-tolak:hover { background: #b91c1c; color: #fff; }
.btn-sukses { background: #7cfc00; color: #12300a; }
.status-pill { border-radius: 8px; padding: .4rem .9rem; font-size: .75rem; font-weight: 700; text-align: center; }
.time-list { font-size: .72rem; font-family: ui-monospace, monospace; }
.time-list span { color: #aaa; display: inline-block; width: 64px; font-family: var(--font); }
.time-list b { color: var(--yellow); font-weight: 500; }

/* =========================================================
   DETAIL PESANAN & PEMBAYARAN
   ========================================================= */
.detail-wrap { max-width: 900px; margin: 40px auto 0; background: var(--beige); border-radius: 30px; padding: 3rem 2.2rem 2rem; position: relative; border: 1px solid #e2d6c8; }
.detail-wrap > .label-top { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); background: #000; color: #fff; border-radius: 30px; padding: .45rem 1.5rem; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.mini-label { font-size: .68rem; font-weight: 700; letter-spacing: .5px; color: #555; text-transform: uppercase; margin-bottom: .3rem; }
.white-box { background: #fff; border-radius: 12px; padding: 14px 16px; }
.cart-item { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.cart-item .ic { width: 36px; height: 36px; border-radius: 8px; background: #e7f7ee; color: var(--green); display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.cart-item .ic img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .nm { font-weight: 600; font-size: .85rem; line-height: 1.2; }
.cart-item .pr { font-size: .72rem; color: #888; }
.qty-ctl { display: flex; align-items: center; gap: 4px; background: #f1ede8; border-radius: 30px; padding: 2px; margin-left: auto; }
.qty-ctl button { width: 26px; height: 26px; border: 0; background: transparent; border-radius: 50%; font-weight: 700; }
.qty-ctl button:hover { background: #fff; }
.qty-ctl span { min-width: 22px; text-align: center; font-size: .8rem; font-weight: 600; }
.poin-opt { border: 1px solid #ddd; background: #f6f3ef; border-radius: 6px; font-size: .74rem; padding: .3rem .8rem; font-weight: 600; }
.poin-opt.active { background: var(--green); color: #fff; border-color: var(--green); }
.poin-opt.all { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.poin-opt.all.active { box-shadow: 0 0 0 3px rgba(245, 158, 11, .35); }
.form-switch .form-check-input:checked { background-color: var(--green); border-color: var(--green); }
.gold-badge { background: #fff1c2; color: #a16207; border: 1px solid #f5d76e; font-size: .62rem; font-weight: 700; padding: .1rem .5rem; border-radius: 20px; }
.total-big { font-size: 1.9rem; font-weight: 800; }
.qris-card { max-width: 340px; margin: 0 auto; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 34px rgba(0, 0, 0, .18); position: relative; }
.qris-card::before, .qris-card::after { content: ''; position: absolute; width: 90px; height: 120px; background: #ef3b4f; }
.qris-card::before { left: -50px; top: 90px; transform: skewY(-40deg); }
.qris-card::after { right: -40px; bottom: -40px; transform: skewY(-40deg); }
.qris-card .inner { position: relative; z-index: 1; padding: 18px 22px; text-align: center; }
.qris-logo { font-weight: 900; font-size: 1.3rem; letter-spacing: 2px; border: 2px solid #000; padding: 0 6px; display: inline-block; }
#qrcode { display: inline-block; padding: 8px; background: #fff; }
#qrcode img, #qrcode canvas { width: 200px !important; height: 200px !important; }
.pay-panel { max-width: 560px; margin: -10px auto 0; background: var(--brown-950); color: #fff; border-radius: 14px; padding: 16px; position: relative; z-index: 2; }
.pay-panel .box { border: 1px solid #3a2a20; border-radius: 10px; padding: 10px 12px; background: #1a100b; }
/* Kartu Loyalty Points (Detail Pesanan) */
#formPoin { border: 1px solid #f0e4d2; box-shadow: 0 6px 18px rgba(60, 35, 20, .08); }
.loy-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.loy-ic { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #f5c542, #e08e0b); color: #fff; display: grid; place-items: center; font-size: 1rem; flex-shrink: 0; }
.loy-title { font-weight: 700; font-size: .92rem; }
.loy-switch { margin: 0 0 0 auto; display: flex; align-items: center; gap: 10px; padding-left: 0; font-size: .82rem; font-weight: 600; }
.loy-switch .form-check-input { float: none; margin: 0; width: 2.6em; height: 1.35em; cursor: pointer; }
.loy-switch .form-check-input:checked { background-color: var(--green, #198754); border-color: var(--green, #198754); }
.loy-balance { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: linear-gradient(135deg, #3a2318, #5a3a28); color: #fff; }
.loy-lbl { font-size: .58rem; letter-spacing: .1em; font-weight: 700; opacity: .65; }
.loy-num { font-size: 1.8rem; font-weight: 800; line-height: 1.1; color: #ffd36b; font-variant-numeric: tabular-nums; }
.loy-num small { font-size: .8rem; font-weight: 600; color: #fff; opacity: .8; }
.loy-worth { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .2); }
.loy-worth b { font-size: 1.15rem; }
.loy-rate { margin-left: auto; font-size: .72rem; font-weight: 600; background: rgba(255, 255, 255, .14); padding: .3rem .8rem; border-radius: 20px; white-space: nowrap; }
.loy-empty { margin-top: 10px; font-size: .78rem; color: #8a6d3b; background: #fff8e6; border: 1px dashed #f0d58a; border-radius: 10px; padding: 8px 12px; }
.loy-sub { margin: 14px 0 8px; font-size: .78rem; font-weight: 600; color: #5a4a40; }
.loy-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.loy-opt { border: 1.5px solid #e6dccf; background: #faf6f1; border-radius: 12px; padding: 10px 12px; text-align: center; line-height: 1.25; transition: all .15s; }
.loy-opt b { display: block; font-size: .9rem; color: #3a2318; }
.loy-opt span { font-size: .7rem; color: #198754; font-weight: 600; }
.loy-opt:hover:not(:disabled) { border-color: #b48459; transform: translateY(-1px); }
.loy-opt:disabled { opacity: .4; cursor: not-allowed; }
.loy-opt.active { background: #e9f7ef; border-color: #198754; box-shadow: 0 0 0 3px rgba(25, 135, 84, .15); }
.loy-opt.all { background: #fff4de; border-color: #f0b84a; }
.loy-opt.all.active { background: #ffe9bd; border-color: #e08e0b; box-shadow: 0 0 0 3px rgba(224, 142, 11, .2); }
.loy-applied { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .78rem; color: #146c43; background: #e9f7ef; border: 1px solid #b7e3c9; border-radius: 10px; padding: 8px 12px; }
.loy-left { background: #fff; border: 1px solid #b7e3c9; border-radius: 20px; padding: .1rem .7rem; font-weight: 600; }
@media (max-width: 575px) { .loy-switch { margin-left: 0; width: 100%; } .loy-rate { margin-left: 0; } .loy-worth { padding-left: 0; border-left: 0; } }

/* Kartu hitung mundur pembayaran */
.countdown-card { --cd: #e0b341; border: 1px solid #3a2a20; border-radius: 14px; padding: 14px 16px 12px; background: linear-gradient(160deg, #241711, #150c08); }
.countdown-card[data-level="ok"] { --cd: #3ecf8e; }
.countdown-card[data-level="warn"] { --cd: #e0b341; }
.countdown-card[data-level="danger"] { --cd: #ff5a5f; }
.cd-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cd-title { font-size: .62rem; font-weight: 800; letter-spacing: .08em; color: #e0b341; }
.cd-state { font-size: .62rem; font-weight: 700; padding: .15rem .6rem; border-radius: 20px; color: var(--cd); border: 1px solid var(--cd); }
.countdown-card[data-level="danger"] .cd-state { animation: cdPulse 1s infinite; }
.cd-digits { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 10px 0 8px; }
.cd-unit { min-width: 84px; text-align: center; background: #0e0805; border: 1px solid #3a2a20; border-radius: 12px; padding: 6px 10px 4px; }
.cd-unit b { display: block; font-size: 2.4rem !important; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--cd); }
.cd-unit small { font-size: .55rem; letter-spacing: .12em; opacity: .55; }
.cd-colon { font-size: 2rem; font-weight: 800; color: var(--cd); opacity: .7; padding-bottom: 14px; }
.cd-bar { height: 6px; border-radius: 6px; background: #2b1d15; overflow: hidden; }
.cd-bar span { display: block; height: 100%; width: 100%; background: var(--cd); border-radius: 6px; transition: width 1s linear, background .3s; }
.cd-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: .64rem; opacity: .6; }
@keyframes cdPulse { 50% { opacity: .45; } }
.btn-upload { background: #b48459; color: #fff; }
.btn-upload:hover { background: #9a6d45; color: #fff; }

/* ---------- Profile ---------- */
.profile-wrap { max-width: 560px; margin: 40px auto 0; background: #a47e63; border-radius: 26px; padding: 1.6rem 1.8rem; box-shadow: 0 0 0 30px var(--beige); }
.profile-wrap label { font-size: .75rem; font-weight: 700; color: var(--brown-950); margin-bottom: .2rem; }
.profile-wrap .form-control { border-radius: 8px; border: 0; font-size: .88rem; padding: .55rem .8rem; }
.avatar-lg { width: 90px; height: 90px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 2.6rem; color: #8a8a8a; overflow: hidden; border: 3px solid #fff; }
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.poin-card { background: #3f2a1f; color: #fff; border-radius: 12px; padding: 8px 14px; display: flex; align-items: center; gap: 10px; }
.poin-card .star { width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--brown-900); display: grid; place-items: center; }

/* =========================================================
   PANEL ADMIN & FRONT OFFICE (sidebar)
   ========================================================= */
body.panel { background: var(--brown-950); }
.panel-wrapper { display: flex; min-height: 100vh; }
.panel-sidebar {
    width: 288px; background: var(--brown-900); color: var(--cream); flex-shrink: 0;
    display: flex; flex-direction: column; padding: 30px 24px 22px; box-shadow: 4px 0 24px rgba(0, 0, 0, .25);
    position: sticky; top: 0; height: 100vh; z-index: 1040; transition: transform .3s;
}
.sidebar-brand { text-align: center; margin-bottom: 18px; }
.sidebar-brand .logo { margin: 0 auto 8px; width: 100px; }
.sidebar-brand small { font-size: .6rem; letter-spacing: 1.5px; opacity: .7; }
.sidebar-nav { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; flex: 1; overflow-y: auto; }
.sidebar-link {
    display: flex; align-items: center; justify-content: space-between;
    color: var(--cream); text-decoration: none; font-weight: 600; padding: .55rem 1rem;
    border-radius: 10px; transition: .2s; font-size: .92rem;
}
.sidebar-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar-link.active { background: var(--cream-100); color: var(--brown-900); font-size: 1.1rem; font-weight: 700; padding: .55rem 1rem; box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.sidebar-badge { background: var(--orange); color: #fff; border-radius: 20px; font-size: .68rem; padding: .1rem .5rem; }
.sidebar-logout { background: var(--brown-950); color: var(--cream); text-decoration: none; border-radius: 8px; padding: .6rem 1rem; font-size: .85rem; }
.sidebar-logout:hover { background: #000; color: #fff; }
.sidebar-backdrop { display: none; }

.panel-main {
    flex: 1; min-width: 0; position: relative;
    background:
        url('../img/wave-top.svg') top center / 100% 70px no-repeat,
        url('../img/wave-bottom.svg') bottom center / 100% 110px no-repeat,
        var(--cream);
    display: flex; flex-direction: column;
}
.panel-topbar { display: flex; align-items: center; justify-content: center; padding: 30px 20px 10px; position: relative; }
.burger-panel { position: absolute; left: 14px; top: 22px; background: var(--brown-900); color: #fff; border-radius: 10px; font-size: 1.3rem; padding: .2rem .6rem; }
.burger-panel:hover { background: #000; color: #fff; }
.date-pill { background: #f7ece0; border: 1px solid #e7d5c3; border-radius: 6px; padding: .35rem .8rem; font-size: .8rem; display: flex; gap: .5rem; align-items: center; }
.date-pill .sep { opacity: .4; }
.date-pill b { font-size: .72rem; }
.panel-content { flex: 1; padding: 20px 30px 130px; }
.panel-footer { position: absolute; bottom: 14px; left: 30px; font-size: .7rem; color: rgba(255, 255, 255, .6); }

.welcome { padding-top: 90px; }
.welcome h1 { font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -1.5px; margin-bottom: .1rem; }
.welcome p { font-weight: 600; font-size: 1.1rem; }
.role-tag { background: #ead8c8; font-size: .62rem; font-weight: 700; padding: .15rem .6rem; border-radius: 4px; vertical-align: middle; }
.menu-grid-box { background: rgba(232, 220, 207, .7); border-radius: 22px; padding: 22px; max-width: 900px; margin: 30px auto 0; border: 1px solid #e3d5c5; box-shadow: 0 20px 40px rgba(0, 0, 0, .06); }
.menu-tile { background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--brown-900); display: block; box-shadow: 0 4px 12px rgba(0, 0, 0, .06); transition: .25s; }
.menu-tile:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 0, 0, .12); color: var(--brown-900); }
.menu-tile .ic { height: 110px; display: grid; place-items: center; }
.menu-tile .ic span { width: 48px; height: 48px; border-radius: 50%; background: #f3ebe4; display: grid; place-items: center; font-size: 1.3rem; }
.menu-tile .lbl { background: #f7f2ec; padding: .7rem; text-align: center; font-weight: 600; font-size: .85rem; }
.menu-tile .count { position: absolute; top: 10px; right: 12px; }

.table-hoho { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }
.table-hoho table { margin: 0; font-size: .82rem; }
.table-hoho thead th { background: #efe6dd; font-size: .7rem; font-weight: 700; letter-spacing: .5px; padding: .9rem .7rem; border: 0; white-space: nowrap; }
.table-hoho td { padding: .9rem .7rem; vertical-align: middle; border-color: #f1ebe5; }
.table-hoho tbody tr:nth-child(even) td { background: #fbf8f5; }
.member-tag { background: #fff3e6; color: var(--orange); font-size: .6rem; font-weight: 600; padding: .1rem .5rem; border-radius: 4px; }
.day-tag { background: #fff; border: 1px solid #ddd; font-size: .7rem; padding: .1rem .5rem; border-radius: 4px; white-space: nowrap; }
.table-beige { background: #e4d9cc; border-radius: 16px; overflow: hidden; }
.table-beige .table-head-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
.table-beige table { margin: 0; font-size: .8rem; }
.table-beige thead th { background: #f4f1ed; font-size: .68rem; font-weight: 700; border: 0; padding: .8rem .6rem; }
.table-beige td { background: transparent !important; border-color: #f4f1ed; padding: .8rem .6rem; vertical-align: middle; }
.form-card { background: #fff; border-radius: 18px; padding: 1.6rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .06); max-width: 760px; }
.form-card .form-control, .form-card .form-select { border-radius: 10px; font-size: .88rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1199.98px) {
    .order-card { grid-template-columns: 120px 1fr; }
    .order-card .item-cols { grid-column: 1 / -1; }
    .order-card .order-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
}
@media (max-width: 991.98px) {
    .panel-sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); }
    .panel-sidebar.show { transform: none; box-shadow: 10px 0 30px rgba(0, 0, 0, .3); }
    .sidebar-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 1035; }
    .panel-content { padding: 16px 16px 120px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > * + * { border-left: 0; padding-left: 0; }
    .hero { padding-top: 40px; text-align: center; }
    .hero-visual { margin-top: 30px; }
    .loyalty-box .divider, .promo-box .v-line { display: none; }
    .about-img, .about-map { height: 280px; }
}
@media (max-width: 767.98px) {
    .logo { width: 72px; }
    .site-header { border-radius: 0 0 16px 16px; padding: 10px 0; }
    .pill-link { padding: .5rem 1.2rem; min-width: 0; }
    .section-title { font-size: 1.5rem; }
    .best-card img { width: 110px; height: 140px; }
    .best-card { padding: 1.4rem 1rem; }
    .loyalty-box, .promo-box { padding: 1.5rem; text-align: center; justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; text-align: left; }
    .product-row { padding: 10px; gap: 10px; flex-wrap: wrap; }
    .product-row .thumb { width: 60px; height: 60px; }
    .product-row .info { flex: 1; min-width: 0; }
    .order-card { grid-template-columns: 1fr; }
    .item-cols { grid-template-columns: 1fr; }
    .detail-wrap { padding: 2.6rem 1rem 1.4rem; border-radius: 20px; }
    .profile-wrap { padding: 1.2rem; box-shadow: 0 0 0 12px var(--beige); }
    .auth-card .auth-body { padding: 1.4rem; }
    .bean { width: 36px; }
    .total-big { font-size: 1.5rem; }
    .panel-topbar { padding-top: 70px; }
    .table-hoho, .table-beige { overflow-x: auto; }
    .panel-footer { left: 16px; }
}
.min-w-0 { min-width: 0; }

/* ===== Biodata FO / Ajuan perubahan (Figma: Biodata Saya, Edit Biodata FO, Ajuan Perubahan) ===== */
.bio-card { background: #f1e8e1; border: 1px solid #eadfd6; border-radius: 20px; padding: 24px; max-width: 1000px; }
.bio-outer { background: #efe6df; border-radius: 22px; padding: 28px; max-width: 1060px; }
.bio-inner { background: #faf8f5; border-radius: 16px; padding: 24px 28px; }
.bio-label, .bio-field label { display: block; font-size: .72rem; font-weight: 600; margin-bottom: 6px; color: #2b1d16; }
.bio-input { background: #fff; border-radius: 10px; padding: .55rem .8rem; font-size: .8rem; min-height: 40px; display: flex; align-items: center; }
.bio-inner .form-control, .bio-inner .form-select { background-color: #fff; border: 1px solid #e6dfd8; border-radius: 10px; font-size: .8rem; }
.bio-photo { position: relative; border-radius: 22px; overflow: hidden; border: 3px solid #fff; background: #ddd; aspect-ratio: 1 / 1.25; }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; }
.bio-photo-id { position: absolute; left: 8px; bottom: 8px; color: #fff; font-size: .6rem; font-weight: 700; background: rgba(0, 0, 0, .55); padding: 2px 8px; border-radius: 6px; }
.bio-file { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 20px; padding: 4px 12px 4px 4px; border: 1px solid #e6dfd8; }
.bio-file-btn { background: #1d130e; color: #fff; font-size: .72rem; font-weight: 600; border-radius: 16px; padding: .4rem .9rem; cursor: pointer; margin: 0; }
.btn-warning-hoho { background: #e8a93a; color: #2b1d16; font-weight: 600; font-size: .8rem; border-radius: 10px; padding: .55rem 1.3rem; border: 0; }
.btn-warning-hoho:hover { background: #d6962a; color: #2b1d16; }
.btn-green-hoho { background: #1f5238; color: #fff; font-weight: 600; font-size: .8rem; border-radius: 12px; padding: .6rem 1rem; border: 0; }
.btn-green-hoho:hover { background: #17402c; color: #fff; }
.btn-red-hoho { background: #e0262d; color: #fff; font-weight: 600; font-size: .78rem; border-radius: 10px; padding: .5rem 1.4rem; border: 0; }
.btn-red-hoho:hover { background: #c01c22; color: #fff; }
.btn-ok-hoho { background: #22c55e; color: #fff; font-weight: 600; font-size: .78rem; border-radius: 10px; padding: .5rem 1.2rem; border: 0; }
.btn-ok-hoho:hover { background: #16a34a; color: #fff; }
.cmp-card { background: #ebe3d9; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.cmp-card thead th { background: #2b1d16; color: #fff; font-size: .68rem; font-weight: 600; padding: .8rem .6rem; border: 0; }
.cmp-card td { background: transparent !important; border: 0; padding: 1.3rem .6rem; font-size: .78rem; vertical-align: middle; }
.cmp-card tr.cmp-diff td { background: #f4efe7 !important; }
.cmp-dot { font-size: .6rem; color: #8a8a8a; margin-right: 4px; }
.cmp-dot.on { color: #e8801a; }
.cmp-new { background: #fff3c4; border: 1px solid #f2d36b; border-radius: 4px; padding: 2px 8px; font-size: .68rem; font-weight: 700; }
.cmp-none { background: #fff; border-radius: 4px; font-size: .62rem; padding: 3px 8px; color: #8a8a8a; display: inline-block; }
.cmp-check { width: 18px; height: 18px; accent-color: #8b4513; }
.fo-edit-card { background: #ebe3d9; border-radius: 22px; padding: 26px 28px; max-width: 1100px; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.fo-edit-card .form-control, .fo-edit-card .form-select { background-color: #fff; border: 1px solid #e6dfd8; border-radius: 10px; font-size: .8rem; }

/* dashboard sesuai Figma */
.mg-admin { max-width: 1166px; padding: 40px; margin-top: 48px; }
.mg-admin .menu-tile .ic { height: 193px; }
.mg-admin .menu-tile .ic span { width: 80px; height: 80px; font-size: 1.9rem; }
.mg-admin .menu-tile .lbl { padding: 1.1rem; }
.mg-fo { max-width: 1020px; padding: 24px; margin-top: 56px; }
.mg-fo .menu-tile .ic { height: 147px; }
.mg-fo .menu-tile .ic span { width: 44px; height: 44px; font-size: 1.05rem; }
.mg-fo .menu-tile .lbl { padding: .85rem; font-size: .75rem; }

/* ===== Form produk (Figma: Tambah / Edit Data Stok) ===== */
.prod-card { background: #e2d9c8; border-radius: 22px; padding: 28px 32px 32px; max-width: 1220px; margin-left: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.prod-card.is-edit { max-width: 1120px; }
.prod-banner { background: #1f130d; color: #fff; text-align: center; font-weight: 700; font-size: .95rem; border-radius: 12px; padding: .85rem 1rem; margin-bottom: 22px; }
.prod-card.is-edit .prod-banner { background: #16221c; margin: 0 20px 22px; }
.prod-label { font-size: .68rem; font-weight: 700; margin-bottom: 6px; display: block; color: #2b1d16; }
.prod-in { background-color: #fff; border: 0; border-radius: 10px; font-size: .78rem; padding: .7rem .9rem; }
.prod-drop { border: 2px dashed #fff; border-radius: 16px; background: #fff; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; text-align: center; }
.prod-drop.has { padding: 8px; min-height: 0; aspect-ratio: 16 / 10; background: #fff; }
.prod-drop.has img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.prod-drop > b { font-size: .78rem; margin-top: 12px; }
.prod-drop > small { font-size: .62rem; color: #8a8a8a; }
.prod-ic { width: 52px; height: 52px; border-radius: 50%; background: #efe6dc; display: grid; place-items: center; font-size: 1.4rem; color: #6b5a4e; }
.prod-tag { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .55rem; border-radius: 4px; padding: 1px 6px; }
.prod-note { background: #fff; border-left: 4px solid #1f5238; border-radius: 10px; padding: .7rem .9rem; font-size: .65rem; display: flex; align-items: center; }
.prod-note i { color: #1f5238; font-size: 1rem; }
.stok-step { display: flex; align-items: center; gap: 10px; }
.st-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; font-weight: 700; font-size: 1.1rem; box-shadow: 0 2px 6px rgba(0, 0, 0, .1); }
.st-box { flex: 1; background: #fff; border-radius: 20px; display: flex; align-items: center; padding: 0 14px; height: 38px; }
.st-box input { flex: 1; border: 0; text-align: center; font-weight: 700; font-size: .85rem; background: transparent; outline: 0; -moz-appearance: textfield; }
.st-box input::-webkit-outer-spin-button, .st-box input::-webkit-inner-spin-button { -webkit-appearance: none; }
.st-box select { border: 0; background: transparent; font-size: .65rem; color: #6b6b6b; outline: 0; width: 56px; }
.btn-black-hoho { background: #16120f; color: #fff; font-weight: 600; font-size: .78rem; border-radius: 10px; padding: .5rem 1.5rem; border: 0; }
.btn-black-hoho:hover { background: #000; color: #fff; }

/* ===== Daftar produk panel (Figma: Data Stok Produk) ===== */
body.panel .label-dark.fs-5, body.panel .label-dark.fs-4 { font-size: 1.35rem !important; padding: .8rem 1.5rem; border-radius: 14px; }
body.panel .product-row { margin: 0 54px 17px 14px; padding: 19px 22px; gap: 20px; border-radius: 14px; }
body.panel .product-row .thumb { width: 97px; height: 97px; border-radius: 10px; object-fit: contain; padding: 4px; }
body.panel .product-row h6 { font-size: 1rem; margin-bottom: .45rem; }
body.panel .product-row p { font-size: .72rem; color: #e6e6e6; margin-bottom: .6rem; }
body.panel .product-row .btn-xs { min-width: 112px; font-size: .68rem; padding: .3rem .6rem; border-radius: 6px; }
body.panel .product-row .btn-danger { background: #c0292d; border-color: #c0292d; }
body.panel .product-row .btn-primary { background: #2a6ae0; border-color: #2a6ae0; }
body.panel .hoho-pagination { margin-top: 18px; }

/* lebar konten tengah per halaman (Figma) */
.pw { margin-left: auto; margin-right: auto; width: 100%; }
.pw-1216 { max-width: 1216px; }
.pw-1260 { max-width: 1260px; }
.pw-1376 { max-width: 1376px; }

/* kartu pesanan panel — lebih lapang seperti Figma */
body.panel .label-dark.fs-5, body.panel .label-dark.fs-4 { font-size: 1.55rem !important; padding: .8rem 1.6rem; }
body.panel .order-card { padding: 22px 20px; gap: 20px; grid-template-columns: 128px 1fr 2fr auto; margin-bottom: 16px; }
body.panel .pay-box { min-height: 112px; font-size: .78rem; }
body.panel .item-col { padding: 12px 14px; font-size: .8rem; min-height: 96px; }
body.panel .order-meta .nama { font-size: 1.05rem; }
body.panel .panel-box { padding: 1.8rem 1.5rem; }

/* Jadwal FO (Figma) */
.jd-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px rgba(0, 0, 0, .06); }
.jd-card thead th { background: #f4f1ed; font-size: .62rem; font-weight: 700; padding: 1rem .6rem; border: 0; }
.jd-card td { vertical-align: middle; padding: .9rem .6rem; border-color: #f1ede8; }
.jd-foto { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.jd-pill { display: inline-block; background: #efe8df; border-radius: 20px; font-size: .62rem; padding: .25rem .8rem; }
.jd-pill.f { background: #fff6dc; }
.jd-pill.jam { background: #f4f1ed; font-weight: 700; }
/* kartu pesanan panel: tanpa antrean/eta (Figma) */
body.panel .queue-box, body.panel .eta { display: none; }

/* =========================================================
   HOMEPAGE & layout user — disesuaikan dengan Figma (frame 1728)
   ========================================================= */
body.site .container-xxl { max-width: none; padding-left: clamp(16px, 3.4vw, 58px); padding-right: clamp(16px, 3.4vw, 58px); }
.site-header { padding: 21px 0; min-height: 146px; display: flex; align-items: center; border-radius: 0 0 28px 28px; }
.site-header > .container-xxl { padding-left: clamp(16px, 1.8vw, 30px); padding-right: clamp(16px, 5.8vw, 100px); width: 100%; }
.site-header .logo { width: 108px; }
.site-header .pill-link { padding: .95rem 2.3rem; font-size: 1.2rem; min-width: 150px; }
.hero { padding: 24px 0 20px; }
.hero > .container-xxl > .row { min-height: 440px; }
.hero h1 { font-size: clamp(3rem, 7.1vw, 7.6rem); letter-spacing: -3px; }
.hero .tagline { font-size: clamp(1.5rem, 2.8vw, 3rem); margin: .4rem 0 2.2rem; }
.hero .btn-hoho { font-size: clamp(1.1rem, 1.6vw, 1.75rem); padding: 1.15rem 2.4rem; }
.hero-visual { max-width: none; margin: 0; display: flex; justify-content: flex-end; padding-right: clamp(0px, 5vw, 90px); }
.hero-visual::after { display: none; }
.hero-img { width: min(584px, 100%); height: auto; }
.section-title { font-size: clamp(1.7rem, 2.2vw, 2.4rem); margin-bottom: 1.4rem; }
.section-title::after { width: 90px; }
.best-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 420px)); justify-content: space-between; padding: 0 clamp(0px, 3vw, 52px); }
.best-card { border-radius: 34px; min-height: 482px; padding: 2.2rem 1rem 2rem; background: #f1e4d4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; }
.best-card img { width: 100%; max-width: 352px; height: auto; border: 0; border-radius: 0; box-shadow: none; object-fit: contain; }
.best-card h6 { margin: 0; font-size: 1.35rem; font-weight: 500; text-align: center; }
.loyalty-box { border-radius: 30px; padding: 2.7rem 3rem; min-height: 224px; position: relative; }
.loyalty-box h3 { font-size: 2.2rem; }
.loyalty-box .crown { color: #f3e6d6; margin-bottom: .6rem; }
.loyalty-box p { font-size: 1.05rem; }
.loyalty-box .btn-cream { font-size: 1.05rem; padding: .95rem 2.4rem !important; }
.about { padding: 3rem 0 4rem !important; }
.about-map { height: 591px; border-radius: 40px; }
.about h2 { font-size: clamp(2rem, 2.6vw, 2.8rem); }
.about p { font-size: 1.15rem; line-height: 1.55; max-width: 520px !important; }
.about .btn-hoho { font-size: 1rem; padding: .9rem 2rem !important; }
.site-footer { padding: 3.2rem 0 5rem; }
.footer-grid { grid-template-columns: 1.1fr 1.4fr 1.3fr 1fr; }
.footer-grid > * + * { padding-left: 3rem; }
@media (max-width: 991px) {
    .best-grid { grid-template-columns: 1fr; gap: 1rem; }
    .best-card { min-height: 360px; }
    .about-map { height: 320px; }
}
.hero > .container-xxl > .row { min-height: 530px; }
.best-card img, .hero-img { mix-blend-mode: normal; }
.loyalty-section, section:has(> .container-xxl > .loyalty-box) { padding-top: 4rem !important; padding-bottom: 1.2rem !important; }
.about { padding: .6rem 0 2rem !important; }

/* ===== Auth (Figma: Login / Register / Reset) ===== */
.auth-wrap { padding: 85px 0 60px; }
.auth-card { max-width: 981px; border-radius: 28px; background: #faf8f4; }
.auth-card .auth-head { padding: 1rem; font-size: 1.5rem; font-weight: 700; background: #3d2314; }
.auth-card .auth-body { padding: 2.2rem 3.5rem 3rem; }
.auth-card .logo { width: 160px; }
.auth-card .input-hoho { margin-bottom: 2.6rem !important; }
.auth-card .input-hoho .form-control, .auth-card .input-hoho .form-select { height: 50px; border-color: #7a3b2e; font-size: .95rem; padding-left: 3.2rem; }
.auth-card .input-hoho > i:first-child { left: 22px; }
.role-row { font-size: .95rem; margin-bottom: 1.4rem !important; }
.role-row .form-check-input { width: 1.25rem; height: 1.25rem; border: 2px solid #3d2314; background-color: transparent; }
.btn-auth { height: 56px; border-radius: 50px; font-size: 1.05rem; background: #3d2314; display: flex; align-items: center; justify-content: center; }
.auth-card .or-line { font-size: .95rem; margin: 1.6rem 0 !important; }
.auth-card .or-line::before, .auth-card .or-line::after { flex: 0 0 64px; }

/* Logo PNG (terang/gelap) */
.logo-img { display: block; line-height: 0; }
.logo-img img { width: 100%; height: auto; }
.logo-img .l-dark { display: none; }
.logo-dark .logo-img .l-light, .logo-dark.logo-img .l-light { display: none; }
.logo-dark .logo-img .l-dark, .logo-dark.logo-img .l-dark { display: block; }
.site-header .logo-img.logo { width: 108px; }
.auth-card .logo-img.logo { width: 175px; }
.sidebar-brand .logo-img.logo { width: 100px; margin: 0 auto 8px; }
.logo-img.logo-sm { width: 70px; }

/* Register (Figma) */
.auth-wrap.reg { padding: 130px 0 40px; }
.auth-card.wide { max-width: 878px; }
.auth-card.wide .auth-head { font-size: 2.1rem; padding: .7rem; }
.auth-card.wide .auth-body { padding: 2.6rem 2.7rem 2.6rem; }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.reg-grid label { display: block; font-weight: 700; font-size: 1.02rem; margin-bottom: .5rem; }
.reg-grid > div { margin-bottom: .55rem; }
.reg-in { width: 100%; height: 50px; border: 1px solid #8a4b3a; border-radius: 50px; background: #faf6f1; padding: 0 1.3rem; font-size: .98rem; color: #3d2314; }
.reg-in::placeholder { color: #8c7a70; }
select.reg-in { appearance: auto; padding-right: 1rem; }
.reg-btn { width: 430px !important; max-width: 100%; height: 52px; margin-top: 1.4rem; box-shadow: 0 6px 14px rgba(0, 0, 0, .2); }
.reg .or-line::before, .reg .or-line::after { flex: 0 0 200px; }
/* Reset password (Figma) */
.auth-wrap.rst { padding: 145px 0 60px; }
.reset-card { max-width: 760px; margin: 0 auto; background: #e8e3dc; border-radius: 40px; padding: 3rem; box-shadow: 0 10px 26px rgba(0, 0, 0, .1); }
.reset-chip { display: inline-block; background: #1a1210; color: #fff; font-weight: 700; font-size: 1.15rem; padding: .7rem 1.7rem; border-radius: 50px; margin-bottom: 1.6rem; }
.reset-card label { display: block; font-weight: 500; font-size: 1.02rem; margin-bottom: .6rem; }
.reset-in { width: 100%; height: 52px; border: 1px solid #ddd6cd; background: #fff; border-radius: 14px; padding: 0 1.3rem; font-size: .98rem; margin-bottom: 1.5rem; }
.reset-actions { display: flex; gap: 1rem; margin-top: 2.4rem; }
.reset-btn { flex: 1; height: 52px; border-radius: 50px !important; font-size: 1rem !important; display: flex; align-items: center; justify-content: center; }
.btn-red-hoho.reset-btn { background: #d9363b; }
.reg-btn { margin: 1.4rem auto 0 !important; }
.reset-card .position-relative { margin-bottom: 1.5rem; }
.reset-card .position-relative .reset-in { margin-bottom: 0; }
.site-header .logo-img.logo { margin-left: -14px; }

/* ===== Shop user (Figma: Daftar Produk) ===== */
.site-header .nav-pills-hoho { flex: 0 0 auto; display: flex; justify-content: flex-start; gap: clamp(40px, 9.1vw, 158px); margin-left: clamp(20px, 10.6vw, 183px); }
.site-header .pill-link { min-width: 150px; }
.site-header .pill-link.active { background: var(--cream-200); font-weight: 500; box-shadow: none; }
.site-header .cart-btn { margin-left: auto; }
.shop-sec { padding: 28px 0 40px; }
.shop-sec > .container-xxl { padding-left: clamp(16px, 2.5vw, 43px); padding-right: clamp(16px, 3vw, 51px); }
.shop-side { width: 300px; }
.shop-side .side-label { font-size: 1.75rem; padding: .75rem 1.7rem; border-radius: 16px; }
.shop-side .search-box input { background: #fff; height: 44px; }
.shop-side .btn-dark-hoho { height: 40px; padding: 0 1.3rem; }
.shop-promo { margin: 3.2rem 0 3.4rem -10px; }
.shop-promo img { width: 285px; mix-blend-mode: multiply; }
.shop-side .chip { font-size: .72rem; font-weight: 600; padding: .35rem 1.7rem; }
.shop-side .chip.active { background: var(--brown-900); color: #fff; }
.shop-list .product-row { padding: 21px 24px; gap: 20px; margin-bottom: 16px; border-radius: 16px; background: #231a17; }
.shop-list .product-row .thumb { width: 97px; height: 97px; border-radius: 10px; object-fit: contain; padding: 4px; }
.shop-list .product-row h6 { font-size: 1.25rem; font-weight: 600; margin-bottom: .55rem; }
.shop-list .product-row p { font-size: .95rem; color: #eee; }
.shop-list .icon-circle { width: 40px; height: 40px; }
.shop-list .hoho-pagination .pg-btn { width: 36px; height: 36px; }
@media (max-width: 991px) { .shop-side { width: 100%; } .site-header .nav-pills-hoho { display: none !important; } }

/* ===== Order user (Figma) ===== */
body.site .panel-box { max-width: 1410px; margin: 0 auto; padding: 1.8rem 1.8rem 1.6rem; border-radius: 24px; }
body.site .panel-box .label-dark { font-size: 1.75rem; padding: .7rem 1.7rem; border-radius: 14px; margin: .1rem 0 1.4rem; }
body.site .panel-box .order-card { max-width: 1150px; margin-left: auto; margin-right: auto; padding: 20px; grid-template-columns: 200px 1fr 2fr auto; gap: 22px; margin-bottom: 40px; }
body.site .pay-box { min-height: 104px; font-size: .78rem; }
body.site .pay-box b { font-size: 1.25rem; }
body.site .queue-box { margin-top: 10px; padding: 12px; }
body.site .queue-box b { font-size: 1.7rem; }
body.site .order-meta .nama { font-size: 1.2rem; }
body.site .order-meta .proses, body.site .item-col .row-i span:first-child { font-family: Consolas, 'Courier New', monospace; }
body.site .order-meta .total { font-family: Consolas, 'Courier New', monospace; font-size: 1.05rem; padding: .4rem .9rem; }
body.site .item-col { padding: 14px 16px; min-height: 110px; }
body.site .status-pill { padding: .7rem 1.3rem; font-size: .85rem; }

/* Profile (Figma) */
.profile-outer { background: var(--beige); max-width: 854px; margin: 0 auto; padding: 34px 92px; border-radius: 22px; border: 1px solid #e2d6c8; }
.profile-wrap { max-width: 670px; margin: 0 auto; padding: 2.4rem 2.5rem 2.4rem; box-shadow: none; border-radius: 40px; }
.profile-wrap label { font-size: .72rem; margin-bottom: .3rem; }
.profile-wrap .form-control { height: 42px; border-radius: 10px; }
.profile-wrap .mb-2 { margin-bottom: .75rem !important; }
.profile-wrap .input-hoho .form-control { background: #fff !important; padding-right: 3rem !important; }
.profile-wrap .toggle-pass { color: #555; }
.profile-wrap .avatar-lg { width: 96px; height: 96px; }
.profile-chip { background: #1b1f1c; color: #fff; font-weight: 600; font-size: 1rem; border-radius: 50px; padding: .8rem 1.5rem; display: inline-block; }
.profile-wrap .btn { height: 40px; display: inline-flex; align-items: center; }
body.site .panel-box .label-dark { font-size: 1.6rem; padding: .6rem 1.6rem; }
.profile-wrap .mb-2 { margin-bottom: .3rem !important; }
.profile-wrap label.btn { color: #fff; font-weight: 600; margin: 0; }
.profile-wrap .d-flex.align-items-center.gap-3.mb-3 { margin-bottom: .6rem !important; }
.profile-wrap { padding: 2rem 2.5rem 2rem; }

/* ===== Detail Pesanan (Figma) — skala lebih besar ===== */
.detail-wrap { max-width: 896px; margin-top: 52px; border-radius: 40px; padding: 4rem 3rem 2.4rem; }
.detail-wrap > .label-top { top: -22px; padding: .8rem 2.1rem; font-size: 1.05rem; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
.detail-wrap .mini-label { font-size: .72rem; margin-bottom: .65rem; margin-top: .4rem; }
.detail-wrap .white-box { border-radius: 14px; padding: 20px 22px; font-size: 1.02rem; }
.detail-wrap .white-box.py-2 { padding-top: 13px !important; padding-bottom: 13px !important; }
.detail-wrap .row.g-3 { --bs-gutter-x: 24px; margin-bottom: 1.6rem !important; }
.cart-item { gap: 16px; padding: 16px 16px; border-radius: 14px; }
.cart-item .ic { width: 44px; height: 44px; border-radius: 10px; }
.cart-item .nm { font-size: 1.02rem; font-weight: 500; }
.cart-item .pr { font-size: .82rem; }
.qty-ctl { padding: 4px 6px; }
.qty-ctl button { width: 30px; height: 30px; }
.poin-opt { font-size: .88rem; padding: .5rem 1rem; border-radius: 8px; }
.detail-wrap #formPoin { padding: 22px 24px; border: 1px solid #e8ddd0; }
.detail-wrap #formPoin .form-check-input:checked { background-color: #1f8a4c; border-color: #1f8a4c; }
.detail-wrap #formPoin .form-switch .form-check-input { width: 2.9em; height: 1.5em; }
.total-big { font-size: 2.1rem; }
.detail-wrap .btn.btn-pill { font-size: .98rem; padding: .85rem 1.6rem !important; font-weight: 600; }
.detail-wrap .btn-primary { background: #0a84d6; border-color: #0a84d6; }
.detail-wrap .btn-success { background: #1f7a4a; border-color: #1f7a4a; }
.detail-wrap .btn-danger { background: #d9291f; border-color: #d9291f; }

/* ===== Pembayaran QRIS (Figma) ===== */
.qris-card { max-width: 456px; background: none; border-radius: 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, .12); margin: 0 auto; }
.qris-card::before, .qris-card::after { display: none; }
.qris-card img { display: block; width: 100%; height: auto; }
.pay-panel { max-width: 670px; margin: -2px auto 0; border-radius: 16px; padding: 24px; background: #17100c; }
.pay-panel .box { border-radius: 12px; padding: 14px 16px; font-size: 1rem; }
.pay-panel .box b { font-size: 1.35rem; }
.pay-panel .btn { height: 38px; font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.pay-panel .btn-success { background: #0f9d6e; border-color: #0f9d6e; }
.pay-panel .btn-upload { background: #b48459; }
.pay-panel .btn-outline-light { white-space: nowrap; }
/* jarak antar kartu Best Selling selalu ada (tidak menempel di layar < 1728) */
.best-grid { column-gap: clamp(24px, 4vw, 137px); row-gap: 1.2rem; }
@media (max-width: 991px) { .best-grid { grid-template-columns: 1fr; } }

/* Radio "Login As Admin / Front Office" — jelas saat dipilih */
.role-row { gap: 1rem 2rem !important; }
.role-row .form-check { display: flex; align-items: center; gap: .6rem; padding: 0; margin: 0; cursor: pointer; user-select: none; }
.role-row .form-check-input { float: none; margin: 0; flex: 0 0 auto; width: 1.35rem; height: 1.35rem; cursor: pointer; appearance: none; -webkit-appearance: none; border: 2px solid #3d2314; border-radius: 50%; background: transparent !important; background-image: none !important; position: relative; transition: border-color .15s, box-shadow .15s; }
.role-row .form-check-input::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #3d2314; transform: scale(0); transition: transform .15s ease; }
.role-row .form-check-input:checked { border-color: #3d2314; box-shadow: 0 0 0 3px rgba(61, 35, 20, .18); }
.role-row .form-check-input:checked::after { transform: scale(1); }
.role-row .form-check-input:focus-visible { outline: 2px solid #d9731f; outline-offset: 2px; }
.role-row .form-check:hover .form-check-input { border-color: #d9731f; }
.role-row .form-check-label { cursor: pointer; font-weight: 500; }
