/* Gunung Salju Makmur - tampilan baru (pelanggan + admin). Menggantikan style.css dan mobile.css */
:root{
  --ink:#17303f; --muted:#5d7080; --faint:#8a99a6;
  --line:#e1e8ed; --line-strong:#cbd7df;
  --bg:#f5f7f9; --surface:#fff;
  --brand:#1a73a7; --brand-dark:#135a85; --brand-soft:#eaf3f8;
  --ok:#1f7a55; --ok-soft:#e6f4ed; --warn:#8a5d0b; --warn-soft:#fbf1dc;
  --bad:#b23b34; --bad-soft:#fbeceb; --info-soft:#e8f0fb; --info:#2a5db0;
  --r:10px; --r-sm:8px;
  --font:"Public Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);font-size:15px;line-height:1.55;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}
h1,h2,h3,p{margin:0}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
img{max-width:100%}
.hidden{display:none!important}
.lucide{width:1.15em;height:1.15em;stroke-width:2;flex:none;vertical-align:-.2em}

/* ---------- Form ---------- */
label{display:block;font-size:14px;font-weight:600;color:var(--ink);margin-bottom:16px}
label small{font-weight:400;color:var(--faint)}
input,select,textarea{width:100%;margin-top:6px;min-height:44px;padding:10px 12px;border:1px solid var(--line-strong);border-radius:var(--r-sm);background:#fff;font-size:15px;outline:none;transition:border-color .15s,box-shadow .15s}
textarea{resize:vertical;min-height:88px}
input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(26,115,167,.15)}
input::placeholder,textarea::placeholder{color:var(--faint)}
input[type=radio],input[type=checkbox]{width:auto;min-height:0;margin:0;accent-color:var(--brand)}

/* ---------- Tombol ---------- */
.customer-btn,.btn,.mini-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:var(--r-sm);font-weight:600;line-height:1.2;transition:background .15s,border-color .15s,color .15s}
.customer-btn,.btn{min-height:44px;padding:0 18px;font-size:15px;white-space:nowrap}
.customer-btn.small{min-height:36px;padding:0 14px;font-size:14px}
.customer-btn.primary,.btn-primary{background:var(--brand);color:#fff}
.customer-btn.primary:hover,.btn-primary:hover{background:var(--brand-dark)}
.customer-btn.light,.btn-outline{background:#fff;color:var(--ink);border-color:var(--line-strong)}
.customer-btn.light:hover,.btn-outline:hover{background:var(--bg)}
.customer-btn:disabled,.btn:disabled{background:#e9eef2;color:var(--faint);border-color:#e9eef2;cursor:not-allowed}
.btn-full{width:100%}
.mini-btn{min-height:34px;padding:0 12px;font-size:13px;background:#fff;color:var(--ink);border-color:var(--line-strong)}
.mini-btn:hover{background:var(--bg)}
.mini-btn.danger{color:var(--bad);border-color:#e8c4c1}
.mini-btn.danger:hover{background:var(--bad-soft)}
.mini-btn.wa-driver-btn,.mini-btn.wa-chat-btn{color:var(--ok);border-color:#b9dccb}
.mini-btn.wa-driver-btn:hover,.mini-btn.wa-chat-btn:hover{background:var(--ok-soft)}
.mini-btn .lucide{width:15px;height:15px}
.link-btn{background:none;border:0;padding:0;color:var(--brand);font-size:14px;font-weight:600}
.link-btn:hover{text-decoration:underline}
.whatsapp-link .wa-icon{width:20px;height:20px}

/* ---------- Badge ---------- */
.badge,.pay-badge{display:inline-flex;align-items:center;min-height:24px;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.badge.processing{background:var(--info-soft);color:var(--info)}
.badge.shipping{background:var(--warn-soft);color:var(--warn)}
.badge.done{background:var(--ok-soft);color:var(--ok)}
.badge.cancelled{background:var(--bad-soft);color:var(--bad)}
.pay-wait{background:var(--warn-soft);color:var(--warn)}
.pay-check{background:var(--info-soft);color:var(--info)}
.pay-ok{background:var(--ok-soft);color:var(--ok)}
.pay-bad{background:var(--bad-soft);color:var(--bad)}
.pay-cod{background:#eef1f4;color:var(--muted)}

/* ---------- Pelanggan: navigasi ---------- */
.customer-nav{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;height:64px;padding:0 max(20px,calc((100% - 1120px)/2));background:#fff;border-bottom:1px solid var(--line)}
.customer-brand img{display:block;height:34px;width:auto}
.customer-menu{display:flex;align-items:center;gap:4px}
.customer-menu a{padding:8px 14px;border-radius:var(--r-sm);font-size:14px;font-weight:500;color:var(--muted)}
.customer-menu a:hover{color:var(--ink);background:var(--bg)}
.customer-menu a.active{color:var(--brand-dark);background:var(--brand-soft)}
.customer-menu a.customer-orders{display:inline-flex;align-items:center;gap:8px;margin-left:8px;border:1px solid var(--line-strong);color:var(--ink)}
.customer-menu a.customer-orders.active{border-color:transparent}
.orders-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.customer-orders-count{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--brand);color:#fff;font-size:12px;font-weight:700;line-height:20px;text-align:center}

/* ---------- Pelanggan: halaman ---------- */
.customer-page{display:none}
.customer-page.active-page{display:block}
.inner-page,.customer-content-block,.customer-benefit-section{max-width:1120px;margin:0 auto;padding:48px 20px}
.inner-heading,.customer-section-heading{margin-bottom:28px}
.inner-heading h2,.customer-section-heading h2{font-size:28px;line-height:1.25;font-weight:700;letter-spacing:-.01em}
.inner-heading p,.customer-section-heading p{margin-top:6px;color:var(--muted);max-width:620px}
.inner-heading>span,.customer-section-heading>span,.checkout-title>span,.contact-card>span,.about-card>span{display:none}

.customer-hero{max-width:1120px;margin:0 auto;padding:56px 20px 24px;display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center}
.customer-eyebrow{display:block;margin-bottom:12px;font-size:13px;font-weight:500;letter-spacing:.04em;color:var(--muted)}
#home .customer-section-heading>span{display:block;margin-bottom:6px;font-size:13px;font-weight:500;letter-spacing:.04em;color:var(--muted)}
.hero-points{flex-direction:row;flex-wrap:wrap;gap:8px 18px}
.hero-points span{display:inline-flex;align-items:center;gap:6px}
.hero-copy h1{font-size:42px;line-height:1.15;font-weight:700;letter-spacing:-.02em}
.hero-copy>p{margin-top:16px;font-size:17px;color:var(--muted);max-width:520px}
.hero-actions{display:flex;gap:12px;margin-top:28px;flex-wrap:wrap}
.hero-points{list-style:none;margin:28px 0 0;padding:0;display:flex;flex-direction:row;flex-wrap:wrap;gap:8px 18px;color:var(--muted);font-size:14px}
.hero-points li{display:flex;align-items:center;gap:8px}
.hero-points .lucide{color:var(--ok)}
.hero-product-scene{position:relative;display:flex;align-items:center;justify-content:center;min-height:400px;padding:24px;background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.9) 0,rgba(214,238,248,.55) 42%,rgba(214,238,248,0) 70%)}
.hero-product-display{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.hero-cup-image{display:block;max-height:360px;width:auto;object-fit:contain;border-radius:22px;filter:drop-shadow(0 16px 24px rgba(37,91,109,.14))}
.hero-price-card{position:absolute;right:8px;bottom:24px;padding:10px 14px;background:#fff;border:1px solid var(--line);border-radius:var(--r);line-height:1.3}
.hero-price-card small{display:block;color:var(--muted);font-size:12px}
.hero-price-card strong{font-size:20px;font-weight:700}
.hero-price-card span{color:var(--muted);font-size:13px;margin-left:2px}

.customer-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px}
.customer-product-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.mini-product-visual,.order-product-visual{display:flex;align-items:center;justify-content:center;background:var(--brand-soft)}
.mini-product-visual{aspect-ratio:4/3}
.mini-product-visual img,.order-product-visual img{width:100%;height:100%;object-fit:contain;padding:12px}
.customer-product-info{display:flex;flex-direction:column;gap:6px;flex:1;padding:16px}
.customer-product-info h3{font-size:17px;font-weight:600}
.customer-product-info p{color:var(--muted);font-size:14px;flex:1}
.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
.product-bottom strong,.modern-price{font-size:18px;font-weight:700}
.product-bottom small,.modern-price small{font-size:13px;font-weight:400;color:var(--muted)}
.available{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--ok)}
.available::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.available.sold{color:var(--bad)}

.benefit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.benefit-grid article{padding:20px;background:#fff;border:1px solid var(--line);border-radius:12px}
.benefit-grid article>div{display:flex;align-items:center;justify-content:center;width:30px;height:30px;margin-bottom:14px;border-radius:50%;background:var(--brand-soft);color:var(--brand-dark);font-size:14px;font-weight:700}
.benefit-grid h3{font-size:16px;font-weight:600;margin-bottom:6px}
.benefit-grid p{color:var(--muted);font-size:14px}
.customer-section-heading.left{margin-bottom:20px}

.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:stretch}
.about-card{padding:24px;background:#fff;border:1px solid var(--line);border-radius:12px}
.about-card h3{font-size:18px;font-weight:600;margin-bottom:8px}
.about-card h3.mt{margin-top:20px}
.about-card p{color:var(--muted)}
.about-card ul{margin:8px 0 0;padding-left:20px;color:var(--muted)}
.about-card li+li{margin-top:4px}
.about-card.highlight{background:#fff;border-color:var(--line)}

/* ---------- Pelanggan: order ---------- */
.order-page{max-width:900px}
.order-stepper{display:flex;align-items:center;gap:10px;margin-bottom:28px}
.order-stepper .step{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:500;color:var(--faint);white-space:nowrap}
.order-stepper .step b{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:1px solid var(--line-strong);background:#fff;font-size:13px;font-weight:600}
.order-stepper .step.active{color:var(--ink)}
.order-stepper .step.active b{background:var(--brand);border-color:var(--brand);color:#fff}
.order-stepper i{flex:1;height:1px;background:var(--line-strong);min-width:12px}
.order-product-list{display:flex;flex-direction:column;gap:16px}
.order-product-modern{display:grid;grid-template-columns:140px 1fr 220px;gap:20px;align-items:center;padding:16px;background:#fff;border:1px solid var(--line);border-radius:12px}
.order-product-visual{aspect-ratio:1;border-radius:10px}
.order-product-details{display:flex;flex-direction:column;gap:4px}
.order-product-details h3{font-size:18px;font-weight:600}
.order-product-details p{color:var(--muted);font-size:14px}
.order-product-buy{display:flex;flex-direction:column;gap:10px}
.order-product-buy>span{font-size:13px;font-weight:600;color:var(--muted)}
.modern-qty{display:flex;align-items:stretch;border:1px solid var(--line-strong);border-radius:var(--r-sm);overflow:hidden;background:#fff}
.modern-qty button{width:44px;border:0;background:var(--bg);font-size:18px;line-height:1}
.modern-qty button:hover{background:#e9eef2}
.modern-qty input{margin:0;min-height:42px;border:0;border-radius:0;text-align:center;box-shadow:none!important;-moz-appearance:textfield}
.modern-qty input::-webkit-outer-spin-button,.modern-qty input::-webkit-inner-spin-button{-webkit-appearance:none}
.checkout-card{padding:24px;background:#fff;border:1px solid var(--line);border-radius:12px}
.checkout-title{margin-bottom:20px}
.checkout-title h3{font-size:20px;font-weight:700}
.checkout-title p{margin-top:4px;color:var(--muted);font-size:14px}
.customer-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.checkout-actions{display:flex;justify-content:space-between;gap:12px;margin-top:8px;flex-wrap:wrap}
.payment-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}
.payment-cards label{margin:0;cursor:pointer}
.payment-cards label>span{display:flex;flex-direction:column;gap:2px;height:100%;padding:12px 14px 12px 40px;border:1px solid var(--line-strong);border-radius:var(--r);position:relative;background:#fff}
.payment-cards input{position:absolute;opacity:0;pointer-events:none}
.payment-cards label>span::before{content:"";position:absolute;left:14px;top:16px;width:16px;height:16px;border-radius:50%;border:1.5px solid var(--line-strong);background:#fff}
.payment-cards label:has(input:checked)>span{border-color:var(--brand);background:var(--brand-soft)}
.payment-cards label:has(input:checked)>span::before{border-color:var(--brand);background:radial-gradient(circle,var(--brand) 0 4px,#fff 5px)}
.payment-cards strong{font-size:15px}
.payment-cards small{font-weight:400;font-size:13px;color:var(--muted)}
.pay-detail{margin-bottom:16px}
.rek-box{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--r);background:var(--bg)}
.rek-box small{color:var(--muted);font-size:13px}
.rek-box strong{font-size:18px;letter-spacing:.02em}
.rek-box span{color:var(--muted);font-size:14px}
.rek-box em{font-style:normal;font-weight:600;margin-top:4px}
.rek-copy{align-self:flex-start;margin-top:8px;padding:6px 12px;border:1px solid var(--line-strong);border-radius:var(--r-sm);background:#fff;font-size:13px;font-weight:600}
.pay-note{padding:10px 14px;border-radius:var(--r-sm);background:var(--bg);color:var(--muted);font-size:14px;margin-top:10px}
.pay-note.ok{background:var(--ok-soft);color:var(--ok)}
.pay-note.bad{background:var(--bad-soft);color:var(--bad)}
.checkout-summary{margin-bottom:20px;border-top:1px solid var(--line);padding-top:8px}
.summary-row{display:flex;justify-content:space-between;gap:16px;padding:8px 0;font-size:14px}
.summary-row span{color:var(--muted)}
.summary-row strong{text-align:right;font-weight:600}
.summary-total{display:flex;justify-content:space-between;align-items:baseline;gap:16px;border-top:1px solid var(--line);margin-top:6px;padding-top:12px}
.summary-total span{color:var(--muted);font-size:14px}
.summary-total strong{font-size:18px;color:var(--brand-dark)}
.success-card{max-width:520px;margin:0 auto;padding:32px 24px;text-align:center;background:#fff;border:1px solid var(--line);border-radius:12px}
.success-icon{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;margin-bottom:14px;border-radius:50%;background:var(--ok-soft);color:var(--ok)}
.success-icon .lucide{width:26px;height:26px}
.success-card>span{display:block;font-size:14px;color:var(--muted)}
.success-card h3{font-size:26px;font-weight:700;margin:2px 0 10px}
.success-card p{color:var(--muted)}
.success-card .pay-block{text-align:left;margin-top:18px}
.success-card .customer-btn{margin-top:14px}

/* ---------- Pelanggan: pesanan saya ---------- */
.customer-orders-list{display:flex;flex-direction:column;gap:16px}
.customer-order-card{padding:18px;background:#fff;border:1px solid var(--line);border-radius:12px}
.customer-order-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.customer-order-head span{display:block;font-size:12px;color:var(--muted)}
.customer-order-head strong{font-size:16px}
.customer-order-main{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0}
.customer-order-product{display:flex;align-items:center;gap:12px;min-width:0}
.order-thumb img{width:100%;height:100%;object-fit:contain;border-radius:inherit}
.wa-icon{width:15px;height:15px;flex:none}
.order-thumb{overflow:hidden;display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:var(--r-sm);background:var(--brand-soft);color:var(--brand-dark);flex:none}
.customer-order-product h3{font-size:15px;font-weight:600}
.customer-order-product p{font-size:13px;color:var(--muted)}
.order-total-value{font-size:16px;white-space:nowrap}
.status-track{display:flex;align-items:center;gap:8px;padding:6px 0 14px}
.status-step{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--faint);white-space:nowrap}
.status-step b{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;border:1.5px solid var(--line-strong);background:#fff}
.status-step b .lucide{width:13px;height:13px;stroke-width:3}
.status-step.done{color:var(--ink)}
.status-step.done b{background:var(--ok);border-color:var(--ok);color:#fff}
.status-line{flex:1;height:2px;min-width:12px;background:var(--line)}
.status-line.done{background:var(--ok)}
.order-auto-note{font-size:13px;color:var(--muted);margin-bottom:10px}
.order-auto-note strong{color:var(--ink)}
.customer-order-meta{display:flex;flex-direction:column;gap:2px;padding-top:12px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.customer-order-meta strong{color:var(--ink)}
.empty-order{padding:40px 20px;text-align:center;background:#fff;border:1px dashed var(--line-strong);border-radius:12px;color:var(--muted)}
.empty-order>div{display:inline-flex;margin-bottom:8px;color:var(--faint)}
.empty-order .lucide{width:32px;height:32px}
.empty-order h3{font-size:17px;color:var(--ink);margin-bottom:2px}
.pay-block{margin:4px 0 12px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--r);background:var(--bg)}
.pay-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:6px}
.pay-head>span{font-size:13px;font-weight:600;color:var(--muted)}
.pay-form{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.track-details{margin-top:24px;background:#fff;border:1px solid var(--line);border-radius:12px}
.track-details summary{cursor:pointer;padding:14px 18px;list-style:none;font-size:14px;color:var(--muted)}
.track-details summary::-webkit-details-marker{display:none}
.track-details summary span{color:var(--brand);font-weight:600}
.track-order{display:grid;grid-template-columns:1fr auto;gap:12px;padding:0 18px 18px;align-items:end}
.track-order-text{grid-column:1/-1;font-size:14px;color:var(--muted)}
.track-order input{margin:0}
.track-result{display:flex;flex-direction:column;gap:12px;padding:0 18px}
.track-result:not(:empty){padding-bottom:18px}
.track-item{padding:14px;border:1px solid var(--line);border-radius:var(--r);background:var(--bg)}
.track-item-top,.track-item-main{display:flex;justify-content:space-between;align-items:center;gap:12px}
.track-item-main{margin:6px 0 4px;font-size:14px}
.track-item small{color:var(--muted)}
.track-pay{margin-top:8px}
.track-note{font-size:13px;color:var(--muted)}

/* ---------- Pelanggan: kontak, footer ---------- */
.contact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.contact-card{display:flex;flex-direction:column;padding:22px;background:#fff;border:1px solid var(--line);border-radius:12px}
.contact-card h3{font-size:17px;font-weight:600;margin-bottom:6px}
.contact-card p{color:var(--muted);font-size:14px;flex:1}
.contact-action{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:16px}
.contact-number-note{font-size:12px;color:var(--faint)}
.customer-footer{margin-top:24px;background:#173f54;color:#fff}
.customer-footer .footer-brand img{filter:brightness(0) invert(1);opacity:.95}
.customer-footer .footer-brand p,.customer-footer .footer-address p,.customer-footer .footer-links a{color:rgba(255,255,255,.78)}
.customer-footer .footer-links a:hover{color:#fff}
.customer-footer .footer-links strong,.customer-footer .footer-address strong{color:#fff}
.customer-footer .footer-address a{color:#8fd3f0}
.customer-footer .footer-bottom{border-top-color:rgba(255,255,255,.16);color:rgba(255,255,255,.6)}
.footer-inner{max-width:1120px;margin:0 auto;padding:36px 20px;display:grid;grid-template-columns:1.4fr 1fr 1.2fr;gap:32px}
.footer-brand img{height:32px;width:auto;margin-bottom:10px}
.footer-brand p,.footer-address p{color:var(--muted);font-size:14px}
.footer-links,.footer-address{display:flex;flex-direction:column;gap:6px;font-size:14px}
.footer-links strong,.footer-address strong{font-size:14px;margin-bottom:2px}
.footer-links a,.footer-address a{color:var(--muted)}
.footer-links a:hover,.footer-address a:hover{color:var(--brand)}
.footer-address a{display:inline-flex;align-items:center;gap:4px;color:var(--brand);font-weight:600}
.footer-bottom{max-width:1120px;margin:0 auto;padding:16px 20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;color:var(--faint)}
.toast{position:fixed;left:50%;bottom:28px;z-index:300;transform:translate(-50%,16px);max-width:calc(100% - 32px);padding:11px 18px;border-radius:var(--r-sm);background:var(--ink);color:#fff;font-size:14px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.toast.show{opacity:1;transform:translate(-50%,0)}
.tabbar{display:none}
.empty{padding:28px 16px;text-align:center;color:var(--muted)}

/* ---------- Admin: login ---------- */
.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.login-card{width:100%;max-width:400px;padding:32px 28px;background:#fff;border:1px solid var(--line);border-radius:14px}
.login-logo{display:block;height:38px;width:auto;margin:0 0 22px}
.login-card h1{font-size:22px;font-weight:700}
.login-card>p,.login-help{margin:4px 0 20px;color:var(--muted);font-size:14px}
.login-sub{font-size:18px;font-weight:700;margin-bottom:4px}
.login-links{display:flex;justify-content:space-between;gap:12px;margin-top:16px}
.login-more{margin-bottom:16px}
.login-more summary{cursor:pointer;font-size:14px;color:var(--brand);font-weight:600;margin-bottom:10px}
.error-text{min-height:18px;margin-top:10px;color:var(--bad);font-size:14px}
.ok-text{color:var(--ok);font-size:14px}

/* ---------- Admin: kerangka ---------- */
.admin-app{display:grid;grid-template-columns:232px 1fr;min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:20px 14px;background:#fff;border-right:1px solid var(--line)}
.sidebar-brand{padding:4px 8px 20px}
.sidebar-brand img{height:32px;width:auto;display:block}
.side-nav{display:flex;flex-direction:column;gap:2px;flex:1}
.side-link{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:var(--r-sm);font-size:14px;font-weight:500;color:var(--muted)}
.side-link:hover{background:var(--bg);color:var(--ink)}
.side-link.active{background:var(--brand-soft);color:var(--brand-dark);font-weight:600}
.side-link .count{margin-left:auto;min-width:20px;padding:0 6px;border-radius:999px;background:var(--brand);color:#fff;font-size:12px;line-height:20px;text-align:center}
.side-link .count:empty,.side-link .count[data-zero]{display:none}
.logout-btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border:1px solid var(--line-strong);border-radius:var(--r-sm);background:#fff;font-weight:600;color:var(--muted)}
.logout-btn:hover{background:var(--bg);color:var(--ink)}
.admin-main{min-width:0;padding:24px 32px 48px}
.admin-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.admin-header h1{font-size:24px;font-weight:700;letter-spacing:-.01em}
.eyebrow,.admin-label{display:none}
.header-actions{display:flex;align-items:center;gap:10px}
.icon-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid var(--line-strong);border-radius:var(--r-sm);background:#fff;color:var(--ink)}
#bellDot{position:absolute;top:8px;right:9px;width:8px;height:8px;border-radius:50%;background:var(--bad);border:2px solid #fff;display:none}
#bellDot.show,#bellDot.on{display:block}
.notif-status{min-height:42px;gap:8px;padding:0 14px;font-size:14px}
.notif-dot{width:8px;height:8px;border-radius:50%;background:var(--faint)}
.notif-short{display:none}
.notif-on{border-color:#b9dccb;color:var(--ok)}.notif-on .notif-dot{background:var(--ok)}
.notif-off{border-color:#e6d19b;color:var(--warn)}.notif-off .notif-dot{background:#d19a1f}
.notif-blocked{border-color:#e8c4c1;color:var(--bad)}.notif-blocked .notif-dot{background:var(--bad)}
.admin-section{display:block}
.dashboard-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px;padding:20px 24px;background:#fff;border:1px solid var(--line);border-radius:12px}
.dashboard-welcome h2{font-size:18px;font-weight:700}
.dashboard-welcome p{margin-top:4px;color:var(--muted);font-size:14px}
.dashboard-welcome img{height:44px;width:auto}
.stat-grid,.report-stat-grid{display:grid;gap:16px;margin-bottom:20px}
.stat-grid{grid-template-columns:repeat(3,1fr)}
.report-stat-grid{grid-template-columns:repeat(4,1fr)}
.stat-card,.report-stat-card{padding:18px 20px;background:#fff;border:1px solid var(--line);border-radius:12px}
.stat-card span,.report-stat-card span{display:block;font-size:14px;color:var(--muted)}
.stat-card strong,.report-stat-card strong{display:block;margin-top:4px;font-size:28px;line-height:1.2;font-weight:700}
.report-stat-card small{display:block;margin-top:4px;font-size:12px;color:var(--faint)}
.panel{margin-bottom:20px;padding:20px;background:#fff;border:1px solid var(--line);border-radius:12px}
.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.panel-heading h2{font-size:18px;font-weight:700}
.panel-heading p{margin-top:2px;color:var(--muted);font-size:14px}
.notification-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.notification-item:last-child{border-bottom:0}
.notification-item p{font-size:14px}
.notification-item small{color:var(--faint);font-size:12px}
.notification-item.unread strong{font-size:12px;color:var(--brand);background:var(--brand-soft);padding:2px 8px;border-radius:999px}
.cell-stack{display:flex;flex-direction:column;gap:3px;align-items:flex-start}
.cell-stack small{color:var(--muted);font-size:12px}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px}
th{padding:10px 12px;text-align:left;font-size:12px;font-weight:600;color:var(--muted);background:var(--bg);border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:12px;border-bottom:1px solid var(--line);vertical-align:middle}
tbody tr:last-child td{border-bottom:0}
.action-group{display:grid;grid-template-columns:repeat(2,max-content);gap:6px;justify-content:start}
.action-group .mini-btn{white-space:nowrap;justify-content:center}
tbody td:nth-child(5),tbody td:nth-child(7),tbody td:nth-child(8){white-space:nowrap}
.table-wrap table{font-size:13px}
.table-wrap th,.table-wrap td{padding:10px 8px}
.table-wrap .action-group .mini-btn{padding:0 10px;min-height:32px;font-size:12.5px;gap:5px}
.prod-thumb{width:40px;height:40px;object-fit:cover;border-radius:var(--r-sm);border:1px solid var(--line);vertical-align:middle;margin-right:10px;background:var(--brand-soft)}
.report-filter .panel-heading{margin-bottom:12px}
.report-date-filter{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}
.report-date-filter label{margin:0}
.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.report-grid .panel{margin-bottom:0}
.report-panel{min-width:0}
.report-chart{display:flex;align-items:flex-end;gap:10px;height:220px;overflow-x:auto;padding-top:8px}
.chart-empty{margin:auto;color:var(--muted);font-size:14px}
.chart-column{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;min-width:42px;height:100%}
.chart-value{font-size:11px;color:var(--muted);white-space:nowrap}
.chart-bar-area{display:flex;align-items:flex-end;justify-content:center;width:100%;flex:1}
.chart-bar{width:26px;min-height:3px;border-radius:4px 4px 0 0;background:var(--brand)}
.chart-label{font-size:11px;color:var(--faint);white-space:nowrap}
.report-grid+.panel{margin-top:20px}

/* ---------- Modal ---------- */
.modal{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(23,48,63,.45)}
.modal-card{width:100%;max-width:640px;max-height:calc(100vh - 32px);overflow-y:auto;padding:24px;background:#fff;border-radius:14px}
.modal-card.small{max-width:460px}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.modal-head h2{font-size:19px;font-weight:700}
.close-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:0;border-radius:var(--r-sm);background:var(--bg);color:var(--muted)}
.close-btn:hover{background:#e9eef2;color:var(--ink)}
.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px;flex-wrap:wrap}
#payModalActions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.img-field{margin:4px 0 16px}
.img-field>span{display:block;font-size:14px;font-weight:600;margin-bottom:8px}
.img-field small{font-weight:400;color:var(--faint)}
.img-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.img-preview{width:88px;height:88px;object-fit:cover;border-radius:var(--r);border:1px solid var(--line);background:var(--brand-soft)}
.img-actions{display:flex;flex-direction:column;gap:8px;align-items:flex-start;min-width:0}
.img-actions input[type=file]{min-height:0;padding:8px;font-size:13px;margin:0}
.m-burger,.m-overlay{display:none}

/* ---------- Layar kecil ---------- */
@media (max-width:900px){
  .customer-hero{grid-template-columns:1fr;gap:28px;padding-top:32px}
  .hero-copy h1{font-size:34px}
  .hero-product-scene{min-height:300px;background:var(--brand-soft);border-radius:16px}
  .hero-cup-image{max-height:260px}
  .benefit-grid,.contact-grid,.about-grid,.footer-inner{grid-template-columns:1fr}
  .report-stat-grid{grid-template-columns:repeat(2,1fr)}
  .report-grid{grid-template-columns:1fr}
}
@media (max-width:820px){
  body[data-page=customer]{padding-bottom:72px}
  .customer-nav{height:56px;justify-content:center}
  .customer-brand img{height:30px}
  .customer-menu{display:none}
  .inner-page,.customer-content-block,.customer-benefit-section{padding:28px 16px}
  .customer-hero{padding:24px 16px 8px}
  .inner-heading h2,.customer-section-heading h2{font-size:24px}
  .hero-copy h1{font-size:30px}
  .hero-copy>p{font-size:16px}
  .hero-actions .customer-btn{flex:1}
  .customer-product-grid{grid-template-columns:1fr}
  .customer-product-card{flex-direction:row}
  .mini-product-visual{width:112px;aspect-ratio:auto;flex:none}
  .order-stepper{gap:6px}
  .order-stepper .step{font-size:0;gap:0}
  .order-stepper .step b{font-size:13px}
  .order-product-modern{grid-template-columns:96px 1fr;gap:14px}
  .order-product-buy{grid-column:1/-1}
  .checkout-card{padding:18px}
  .customer-form-grid{grid-template-columns:1fr}
  .payment-cards{grid-template-columns:1fr}
  .checkout-actions{flex-direction:column-reverse}
  .checkout-actions .customer-btn{width:100%}
  .customer-order-main{flex-direction:column;align-items:flex-start;gap:8px}
  .status-track{gap:4px}
  .status-step{font-size:12px;gap:5px}
  .status-line{min-width:6px}
  .track-order{grid-template-columns:1fr}
  .footer-inner{padding:28px 16px;gap:22px}
  .footer-bottom{padding:14px 16px}
  .tabbar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:grid;grid-template-columns:repeat(5,1fr);padding:6px 6px calc(6px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line)}
  .tab{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 0;border:0;border-radius:var(--r-sm);background:none;color:var(--muted);font-size:11px;font-weight:500}
  .tab i{position:relative;display:inline-flex}
  .tab .lucide{width:22px;height:22px}
  .tab.on{color:var(--brand-dark);font-weight:600}
  .tab-badge{position:absolute;top:-5px;right:-9px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:var(--brand);color:#fff;font-size:10px;font-weight:700;line-height:16px;text-align:center;font-style:normal}
  .toast{bottom:84px}

  /* admin */
  .admin-app{display:block}
  .sidebar{position:fixed;left:0;top:0;bottom:0;z-index:120;width:260px;transform:translateX(-100%);transition:transform .2s}
  .drawer-open .sidebar{transform:none}
  .m-overlay{position:fixed;inset:0;z-index:110;background:rgba(23,48,63,.4);opacity:0;pointer-events:none;transition:opacity .2s;display:block}
  .drawer-open .m-overlay{opacity:1;pointer-events:auto}
  .m-burger{display:inline-flex;flex-direction:column;justify-content:center;gap:4px;width:42px;height:42px;padding:0 11px;border:1px solid var(--line-strong);border-radius:var(--r-sm);background:#fff;flex:none}
  .m-burger span{display:block;height:2px;border-radius:2px;background:var(--ink)}
  .admin-main{padding:16px 16px 40px}
  .admin-header{gap:10px;margin-bottom:16px}
  .admin-header>div:not(.header-actions){flex:1;min-width:0}
  .admin-header h1{font-size:20px}
  .notif-full{display:none}.notif-short{display:inline}
  .notif-status{padding:0 12px}
  .dashboard-welcome img{display:none}
  .stat-grid{grid-template-columns:1fr 1fr 1fr;gap:10px}
  .stat-card{padding:14px 12px}
  .stat-card strong{font-size:22px}
  .stat-card span{font-size:12px}
  .panel{padding:16px}
  .panel-heading{flex-wrap:wrap}
  .report-date-filter{grid-template-columns:1fr 1fr}
  .report-date-filter .btn{grid-column:1/-1}
  .field-grid{grid-template-columns:1fr}
  .modal{align-items:flex-end;padding:0}
  .modal-card,.modal-card.small{max-width:none;max-height:92vh;border-radius:16px 16px 0 0;padding:20px 18px}
  .modal-actions .btn{flex:1}

  /* tabel menjadi kartu */
  .table-wrap{overflow:visible}
  .table-wrap table{min-width:0}
  .table-wrap td{white-space:normal!important}
  .table-wrap table,.table-wrap tbody,.table-wrap tr,.table-wrap td{display:block;width:100%}
  .table-wrap thead{display:none}
  .table-wrap tbody tr{margin-bottom:12px;padding:6px 14px;border:1px solid var(--line);border-radius:var(--r);background:#fff}
  .table-wrap td{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:9px 0;border-bottom:1px dashed var(--line);text-align:right}
  .table-wrap td:last-child{border-bottom:0}
  .table-wrap td::before{content:attr(data-label);flex:none;color:var(--muted);font-size:13px;text-align:left}
  .table-wrap td .cell-stack{align-items:flex-end}
  .table-wrap td[data-label=Aksi]{display:block;padding:12px 0 8px;text-align:left}
  .table-wrap td[data-label=Aksi]::before{display:none}
  .table-wrap td[data-label=Aksi] .action-group{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .table-wrap td[data-label=Aksi]>.mini-btn{width:calc(50% - 4px)}
  .table-wrap td[data-label=Aksi] .mini-btn{min-height:40px}
  .table-wrap td.empty{display:block;text-align:center}
  .table-wrap td.empty::before{display:none}
}
@media (min-width:821px){.tabbar{display:none!important}}

@media (max-width:600px){
  .hero-product-scene{flex-direction:column;gap:14px;min-height:0;padding:20px 16px 16px;background:var(--brand-soft);border-radius:16px}
  .hero-product-display{height:auto}
  .hero-cup-image{max-height:240px}
  .hero-price-card{position:static;display:flex;align-items:baseline;justify-content:center;gap:6px;width:100%;padding:10px 14px;border-radius:12px}
  .hero-price-card small{display:inline;font-size:13px}
  .hero-price-card strong{font-size:17px}
  .hero-price-card span{font-size:13px;margin-left:0}
}

.customer-menu a:focus:not(:focus-visible){outline:none}

/* Home: judul section di tengah, kartu produk horizontal seperti revisi 21 */
#home .customer-section-heading{text-align:center}
#home .customer-section-heading p{margin-left:auto;margin-right:auto}
.customer-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.customer-product-card{flex-direction:row}
.mini-product-visual{width:170px;aspect-ratio:auto;flex:none;min-height:190px}
.customer-product-info{padding:20px;justify-content:center}
@media (max-width:820px){.customer-product-grid{grid-template-columns:1fr}}
/* Tentang kami: label kecil tampil lagi */
#about .inner-heading>span,#about .about-card>span{display:block;margin-bottom:8px;font-size:13px;font-weight:500;letter-spacing:.04em;color:var(--muted)}
#about .about-card{padding:28px}
.about-grid{grid-template-columns:1fr 1fr}
@media (max-width:820px){.about-grid{grid-template-columns:1fr}}

/* Mobile: ukuran pas satu layar (seperti revisi 21) */
@media (max-width:600px){
  .customer-hero{padding:22px 18px 8px;gap:16px}
  .hero-copy h1{font-size:29px;line-height:1.15}
  .hero-copy>p{font-size:14.5px;line-height:1.6;margin-top:12px}
  .hero-actions{flex-direction:column;gap:10px;margin-top:18px}
  .hero-actions .customer-btn{width:100%;min-height:50px;font-size:16px;justify-content:center}
  .hero-points{margin-top:16px;gap:8px;flex-direction:row;flex-wrap:wrap}
  .hero-points span{font-size:12px;padding:6px 11px;background:#fff;border:1px solid var(--line);border-radius:999px;color:var(--ink)}
  .hero-points span i{width:13px;height:13px}
  .hero-product-scene{padding:18px 14px 14px;gap:12px}
  .hero-cup-image{max-height:220px}
  .hero-price-card{padding:9px 12px}
  .hero-price-card small{font-size:12px}
  .hero-price-card strong{font-size:16px}
  .customer-content-block,.customer-benefit-section{padding-left:18px;padding-right:18px}
  .customer-section-heading{margin-bottom:20px}
  .inner-heading h2,.customer-section-heading h2{font-size:24px}
  .mini-product-visual{width:112px;min-height:150px}
  .customer-product-info{padding:14px}
  .customer-product-card .customer-product-info h3{font-size:16px}
  /* footer ringkas 2 kolom */
  .footer-inner{grid-template-columns:1fr 1fr;padding:24px 18px 16px;gap:18px 16px}
  .footer-brand{grid-column:1/-1}
  .footer-brand img{height:26px;margin-bottom:8px}
  .footer-links,.footer-address{font-size:13px;gap:5px}
  .footer-brand p,.footer-address p{font-size:13px}
  .footer-bottom{padding:12px 18px;font-size:11px;flex-wrap:nowrap;gap:8px}
}

/* Pemilih metode pembayaran */
.pay-picker{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:14px 16px;margin-bottom:20px;background:#fff;border:1px solid var(--line-strong);border-radius:var(--r);text-align:left;cursor:pointer}
.pay-picker small{display:block;font-size:13px;color:var(--muted)}
.pay-picker strong{font-size:16px}
.pay-picker em{display:inline-flex;align-items:center;gap:2px;font-style:normal;font-size:14px;font-weight:600;color:var(--brand)}
.pay-picker em i{width:16px;height:16px}
.pay-sheet{position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;padding:16px}
.pay-sheet.hidden{display:none}
.pay-sheet-backdrop{position:absolute;inset:0;background:rgba(23,48,63,.45)}
.pay-sheet-card{position:relative;width:100%;max-width:440px;background:#fff;border-radius:16px;padding:18px 18px 20px;box-shadow:0 20px 50px rgba(0,0,0,.2)}
.pay-sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;font-size:17px}
.pay-sheet .payment-cards{grid-template-columns:1fr;margin-bottom:0}
@media (max-width:600px){
  .pay-sheet{align-items:flex-end;padding:0}
  .pay-sheet-card{max-width:none;border-radius:16px 16px 0 0;padding-bottom:28px}
}
/* Kotak jumlah lebih ringkas */
.order-product-buy .modern-qty{width:136px;align-self:flex-start}
.order-product-buy .modern-qty button{width:38px}
.order-product-buy .modern-qty input{min-height:38px;width:60px;font-size:15px}
.order-product-buy .customer-btn{align-self:flex-start}
@media (max-width:600px){
  .order-product-buy .customer-btn{width:100%;align-self:stretch}
  .customer-hero{display:flex;flex-direction:column;gap:0}
  .hero-copy{min-height:calc(100svh - 56px);display:flex;flex-direction:column;justify-content:flex-start}
  .hero-product-scene{margin-top:8px}
}


/* Revisi mobile sesuai tampilan awal: rapatkan hero, pertahankan kotak biru,
   dan tampilkan kartu produk vertikal dengan gambar biru selebar kartu. */
@media (max-width: 600px) {
  .customer-hero { display: flex; flex-direction: column; gap: 16px; }
  .hero-copy { min-height: 0 !important; display: block; }
  .hero-product-scene {
    width: 100%; min-height: 300px; margin-top: 0;
    padding: 18px 14px 14px; background: var(--brand-soft);
    border-radius: 16px;
  }
  .hero-product-display { min-height: 220px; }
  .hero-cup-image { max-height: 240px; }
  .hero-price-card { position: static; display: flex; align-items: baseline;
    justify-content: center; gap: 6px; width: 100%; margin-top: 10px;
    padding: 10px 14px; background: #fff; border-radius: 12px; }

  #home .customer-content-block { padding-top: 28px; }
  #home .customer-section-heading { text-align: left; background: transparent;
    border: 0; border-radius: 0; padding: 0; }
  #home .customer-section-heading h2,
  #home .customer-section-heading p { margin-left: 0; margin-right: 0; }

  #home .customer-product-grid { grid-template-columns: 1fr; gap: 16px; }
  #home .customer-product-card { display: flex; flex-direction: column; }
  #home .mini-product-visual { width: 100%; min-height: 0; aspect-ratio: 4 / 3;
    background: var(--brand-soft); }
  #home .mini-product-visual img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
  #home .customer-product-info { padding: 16px; }
}


/* Desktop: manfaatkan ruang layar laptop tanpa mengubah tipografi atau layout mobile. */
@media (min-width: 1200px) {
  .customer-nav {
    padding-left: max(28px, calc((100% - 1320px) / 2));
    padding-right: max(28px, calc((100% - 1320px) / 2));
  }

  .customer-hero {
    max-width: 1320px;
    padding: 64px 28px 32px;
    grid-template-columns: 1.08fr .92fr;
    gap: 64px;
  }

  .hero-copy > p {
    max-width: 600px;
  }

  .hero-product-scene {
    min-height: 460px;
    padding: 30px;
  }

  .hero-cup-image {
    max-height: 420px;
  }

  .hero-price-card {
    right: 18px;
    bottom: 28px;
  }

  .inner-page,
  .customer-content-block,
  .customer-benefit-section {
    max-width: 1320px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .customer-product-grid {
    gap: 24px;
  }

  .mini-product-visual {
    width: 220px;
    min-height: 220px;
  }

  .customer-product-info {
    padding: 24px;
  }
}

@media (min-width: 1600px) {
  .customer-hero,
  .inner-page,
  .customer-content-block,
  .customer-benefit-section {
    max-width: 1400px;
  }
}

/* ===== Update: kode email, barang rusak, laporan ===== */
.code-send-btn{margin:2px 0 6px}
.code-msg{min-height:18px;margin:0 0 12px;font-size:13px;color:var(--bad)}
.code-msg.ok-text{color:var(--ok)}
.heading-actions{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.wa-mode{margin:0;font-size:12px;color:var(--muted)}
.wa-mode select{min-height:40px;margin-top:2px}
.edit-order-code{font-size:14px;font-weight:600;color:var(--muted);margin-left:6px}
.dmg-text{color:var(--bad);font-weight:600}
.due-text{color:#b45309;font-weight:600}
.cell-stack{display:flex;flex-direction:column;gap:2px}
.cell-stack small{font-size:12px;white-space:normal}
.damage-box{margin:12px 0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.damage-box p{margin:4px 0 10px;font-size:13px;color:var(--muted)}
.damage-preview{margin-top:10px;padding:10px 12px;border-radius:10px;background:#fff;border:1px solid var(--line);font-size:14px}
.damage-preview div{display:flex;justify-content:space-between;gap:12px;padding:2px 0}
.damage-preview .total{margin-top:4px;padding-top:6px;border-top:1px dashed var(--line);font-size:16px}
.damage-preview small{display:block;margin-top:4px;color:var(--muted)}
.damage-preview.muted{color:var(--muted)}
.damage-preview.bad{background:var(--bad-soft);color:var(--bad);border-color:transparent}
.report-date-cell{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.report-detail-btn{border:1px solid var(--line);background:#fff;border-radius:999px;padding:5px 12px;font-size:12px;font-weight:600;color:var(--primary,#1a73a7);cursor:pointer}
.report-detail-btn:hover{background:var(--bg)}
.report-total-row td{background:var(--bg);font-weight:700;border-top:2px solid var(--line)}
.report-detail-container>td{background:var(--bg);padding:12px 16px}
.report-order-list{display:grid;gap:8px}
.report-order{display:grid;grid-template-columns:1.2fr 1.4fr auto;gap:12px;align-items:center;padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:10px}
.report-order.has-damage{border-color:var(--bad);background:var(--bad-soft)}
.report-order .ro-who,.report-order .ro-qty,.report-order .ro-money{display:flex;flex-direction:column;gap:2px;font-size:14px}
.report-order small{color:var(--muted);font-size:12px}
.ro-damage{font-style:normal;font-weight:700;color:var(--bad);font-size:13px}
.ro-money{align-items:flex-end}
.report-freezer h4{margin:8px 0 2px;font-size:14px}
@media (max-width:900px){.report-order{grid-template-columns:1fr}.ro-money{align-items:flex-start}}
@media (max-width:700px){.report-detail-container td::before{display:none}.report-detail-container>td{padding:8px 0}}


/* =====================================================================
   UPDATE: ikon mata password, barang rusak (geser), laporan, edit pesanan
   ===================================================================== */

/* ---------- Password: ikon mata ---------- */
.pw-wrap{position:relative;display:block}
.pw-wrap input{padding-right:46px}
.pw-toggle{position:absolute;right:4px;top:6px;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:0;border-radius:var(--r-sm);background:transparent;color:var(--muted)}
.pw-toggle:hover{color:var(--ink);background:var(--bg)}
.pw-toggle[aria-pressed=true]{color:var(--brand)}

/* ---------- Barang rusak: buka / tutup ---------- */
.dmg-slide{margin:4px 0 16px;border:1px solid var(--line);border-radius:var(--r);background:#fff;overflow:hidden}
.dmg-toggle{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:10px 14px;border:0;background:transparent;text-align:left;font-size:15px;font-weight:600;color:var(--ink)}
.dmg-toggle span{flex:none}
.dmg-toggle small{flex:1;min-width:0;text-align:right;font-size:12.5px;font-weight:500;color:var(--faint)}
.dmg-toggle small.dmg-has{color:var(--bad);font-weight:600}
.dmg-chev{flex:none;color:var(--muted);transition:transform .25s ease}
.dmg-slide.open .dmg-chev{transform:rotate(180deg)}
.dmg-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .28s ease}
.dmg-slide.open .dmg-body{grid-template-rows:1fr}
.dmg-inner{min-height:0;overflow:hidden;padding:0 14px}
.dmg-slide.open .dmg-inner{padding:2px 14px 4px;border-top:1px solid var(--line)}
.dmg-hint{margin:12px 0;font-size:13px;color:var(--muted)}
.dmg-inner label{margin-bottom:12px}

/* ---------- Edit pesanan: ramping ---------- */
.modal-card.compact{max-width:520px;padding:18px 20px}
.modal-card.compact .modal-head{margin-bottom:12px}
.modal-card.compact .modal-head h2{font-size:17px}
.modal-card.compact .close-btn{width:32px;height:32px}
.edit-order-form label{margin-bottom:10px;font-size:13px}
.edit-order-form input,.edit-order-form select,.edit-order-form textarea{min-height:40px;margin-top:4px;padding:8px 10px;font-size:14px}
.edit-order-form textarea{min-height:60px;resize:none}
.edit-order-form .field-grid{gap:0 10px}
.field-grid-qty{grid-template-columns:1.5fr 1fr}
.edit-order-form .damage-preview{margin:2px 0 12px;padding:8px 10px;font-size:13px;border-radius:8px}
.edit-order-form .damage-preview .dp-line{display:flex;justify-content:space-between;gap:10px;padding:1px 0}
.edit-order-form .damage-preview .dp-line.total{margin-top:3px;padding-top:5px;border-top:1px dashed var(--line);font-size:14px}
.edit-order-form .damage-preview small{margin-top:3px;font-size:12px}
.edit-order-form .modal-actions{margin-top:2px}
.edit-order-form .modal-actions .btn{min-height:42px}
@media (max-width:820px){
  .modal-card.compact{padding:16px 16px 18px;max-height:94vh}
  .edit-order-form .field-grid{grid-template-columns:1fr 1fr}
  .field-grid-qty{grid-template-columns:1.4fr 1fr}
  .edit-order-form .field-grid>label.hidden+label,.edit-order-form .field-grid>label:only-child{grid-column:auto}
}
@media (max-width:380px){
  .edit-order-form .field-grid{grid-template-columns:1fr}
  .field-grid-qty{grid-template-columns:1.4fr 1fr}
}

/* ---------- Laporan: tampilan baru ---------- */
.report-hero{display:grid;grid-template-columns:1.1fr 1fr;gap:0;margin-bottom:14px;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.report-hero-main{padding:22px 24px;background:linear-gradient(135deg,#135a85,#1a73a7);color:#fff}
.report-hero-main span{display:block;font-size:14px;font-weight:500;opacity:.9}
.report-hero-main strong{display:block;margin:6px 0 4px;font-size:34px;line-height:1.15;font-weight:700;letter-spacing:-.01em}
.report-hero-main small{display:block;font-size:13px;opacity:.8}
.report-hero-split{display:grid;grid-template-columns:1fr 1fr}
.report-hero-split>div{padding:22px 20px;min-width:0}
.report-hero-split>div+div{border-left:1px solid var(--line)}
.report-hero-split span{display:block;font-size:13px;color:var(--muted)}
.report-hero-split strong{display:block;margin:6px 0 4px;font-size:22px;line-height:1.2;font-weight:700;overflow-wrap:anywhere}
.report-hero-split small{display:block;font-size:12px;color:var(--faint)}
.rh-ok strong{color:var(--ok)}
.rh-warn strong{color:#b45309}
.report-mini-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}
.report-mini{padding:14px 16px;background:#fff;border:1px solid var(--line);border-radius:12px;min-width:0}
.report-mini span{display:block;font-size:13px;color:var(--muted)}
.report-mini strong{display:block;margin:3px 0 2px;font-size:24px;line-height:1.2;font-weight:700}
.report-mini small{display:block;font-size:12px;color:var(--faint)}
.report-mini-bad strong{color:var(--bad)}

.report-table{border-collapse:separate;border-spacing:0}
.report-table th{background:transparent;border-bottom:1px solid var(--line-strong);padding:10px 12px}
.report-table .report-date-row td{padding:14px 12px;border-bottom:1px solid var(--line)}
.report-date-cell strong{font-weight:600}
.report-detail-btn{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-dark)}
.report-detail-btn:hover{background:#dcebf4}
.report-detail-container>td{padding:10px 12px 16px;background:var(--bg)}
.report-order{grid-template-columns:1.1fr 1.3fr auto auto;gap:12px;border-radius:10px}
.ro-goto{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:0 12px;border:1px solid var(--brand);border-radius:var(--r-sm);background:#fff;color:var(--brand-dark);font-size:13px;font-weight:600;white-space:nowrap}
.ro-goto:hover{background:var(--brand);color:#fff}
.ro-goto .lucide{width:15px;height:15px}
.report-order.has-damage .ro-goto{border-color:var(--bad);color:var(--bad)}
.report-order.has-damage .ro-goto:hover{background:var(--bad);color:#fff}

/* baris pesanan yang dituju dari laporan */
tr.order-focus td{background:#fff7d6!important;transition:background .4s}
tr.order-focus{outline:2px solid #e6b800;outline-offset:-2px;animation:orderPulse 1.2s ease 2}
@keyframes orderPulse{50%{outline-color:transparent}}

@media (max-width:900px){
  .report-hero{grid-template-columns:1fr}
  .report-hero-split>div+div{border-left:1px solid var(--line)}
  .report-hero-split{border-top:1px solid var(--line)}
  .report-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .report-order{grid-template-columns:1fr auto}
  .report-order .ro-qty{grid-column:1/-1;order:3}
  .report-order .ro-money{align-items:flex-end}
  .ro-goto{grid-column:1/-1;order:4;width:100%}
}
@media (max-width:820px){
  .report-hero-main{padding:18px}
  .report-hero-main strong{font-size:30px}
  .report-hero-split>div{padding:16px 14px}
  .report-hero-split strong{font-size:18px}
  .report-mini{padding:12px 14px}
  .report-mini strong{font-size:22px}
  .report-filter .report-date-filter{grid-template-columns:1fr 1fr}
  .report-table tbody tr.report-date-row{padding:0 14px 6px;overflow:hidden}
  .report-table tbody tr.report-date-row td:first-child{display:block;margin:0 -14px 4px;padding:12px 14px;background:var(--brand-soft);border-bottom:0;text-align:left}
  .report-table tbody tr.report-date-row td:first-child::before{display:none}
  .report-table tbody tr.report-date-row td:first-child .report-date-cell{justify-content:space-between}
  .report-table tbody tr.report-detail-container{display:block;margin:-6px 0 12px;padding:0;border:0;background:transparent}
  .report-table tbody tr.report-detail-container>td{display:block;padding:0}
  .report-table tbody tr.report-total-row{background:var(--brand-soft);border-color:var(--brand-soft)}
  .report-table tbody tr.report-total-row td{border-bottom-color:rgba(26,115,167,.18)}
}

/* aman dari melebar ke samping di HP */
.admin-main,.panel,.report-hero,.report-mini-grid{min-width:0;max-width:100%}
@media (max-width:820px){.admin-main{overflow-x:clip}}

/* =====================================================================
   UKURAN HOME: disamakan dengan revisi 21 (desktop & mobile).
   Hanya ukuran (tinggi, lebar, jarak, grid). Font dan gaya huruf TIDAK diubah.
   ===================================================================== */

/* ----- Desktop & tablet lebar ----- */
.customer-nav{height:76px;padding:0 max(5.5%,calc((100% - 1180px)/2))}
.customer-brand img{width:220px;max-width:38vw;height:auto}
.customer-menu{gap:30px}

.customer-hero{
  max-width:none;margin:0;min-height:540px;
  padding:62px max(6%,calc((100% - 1160px)/2));
  grid-template-columns:1.02fr .98fr;gap:34px;overflow:hidden
}
.hero-copy{max-width:590px}
.hero-copy h1{margin:15px 0 18px}
.hero-copy>p{max-width:520px;margin:0}
.hero-actions{gap:11px;margin:25px 0 23px}
.customer-btn{min-height:43px;padding:11px 18px}
.hero-points{margin:0;gap:9px 18px}
.hero-product-scene{height:420px;min-height:0;min-width:0;padding:0}
.hero-product-display{height:auto}
.hero-cup-image{width:min(100%,475px);max-height:405px}
.hero-price-card{right:1%;bottom:3%;padding:12px 16px}

.customer-content-block,.inner-page{max-width:1160px;padding:68px 28px}
.customer-section-heading{margin-bottom:27px}
.customer-section-heading h2,.inner-heading h2{margin:8px 0 7px}
.customer-section-heading p,.inner-heading p{margin:0}

.customer-product-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,390px),1fr));gap:18px}
.customer-product-card{display:grid;grid-template-columns:150px minmax(0,1fr)}
.mini-product-visual{width:auto;min-height:190px;aspect-ratio:auto}
.customer-product-info{padding:21px;justify-content:flex-start}
.customer-product-info h3{margin:7px 0 5px}
.customer-product-info p{margin:0}
.product-bottom{flex-wrap:wrap;gap:10px;margin-top:17px}

.customer-benefit-section{max-width:none;margin:0;padding:62px max(6%,calc((100% - 1104px)/2))}
.customer-section-heading.left{max-width:1104px;margin:0 auto 24px}
.benefit-grid{max-width:1104px;margin:0 auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.benefit-grid article{min-height:168px;padding:22px}
.benefit-grid article>div{width:34px;height:34px;margin-bottom:0;border-radius:6px}
.benefit-grid h3{margin:13px 0 5px}
.benefit-grid p{margin:0}

.inner-page{min-height:420px}
.inner-heading{margin-bottom:30px}
.about-grid,.contact-grid{gap:17px}
.customer-footer{margin-top:22px}
.footer-inner{max-width:1160px;padding:43px 28px 34px;gap:55px;grid-template-columns:1.4fr .7fr 1fr}
.footer-bottom{max-width:1160px;padding:14px 28px 18px}

/* ----- Tablet (<= 900px) ----- */
@media (max-width:900px){
  .customer-nav{padding:0 4%}
  .customer-brand img{width:190px}
  .customer-menu{gap:16px}
  .customer-hero{min-height:0;grid-template-columns:1fr;padding:55px 7%;gap:28px}
  .hero-product-scene{height:400px}
  .benefit-grid{grid-template-columns:1fr}
  .footer-inner{grid-template-columns:1fr;gap:28px}
}

/* ----- Mobile (<= 820px, memakai menu bawah) ----- */
@media (max-width:820px){
  body[data-page=customer]{padding-bottom:84px}
  .customer-nav{height:auto;min-height:0;padding:10px 14px;justify-content:center}
  .customer-brand img{width:150px;max-width:none}
  .customer-hero{display:grid;grid-template-columns:1fr;min-height:0;padding:22px 18px 28px;gap:16px}
  .hero-copy{min-height:0!important;display:block;max-width:none}
  .hero-copy h1{margin:0}
  .hero-copy>p{margin:12px 0 0}
  .hero-actions{flex-direction:column;align-items:stretch;gap:10px;margin:18px 0 0}
  .hero-actions .customer-btn{width:100%;min-height:50px}
  .hero-points{margin:16px 0 0;gap:8px}
  .hero-product-scene,.hero-product-scene.hero-product-photo{
    position:relative;display:flex;flex-direction:row;height:230px;min-height:0;width:100%;
    margin:0;padding:0;border-radius:20px
  }
  .hero-product-display{height:100%;min-height:0}
  .hero-cup-image{max-height:210px;width:auto;max-width:100%}
  .hero-price-card{position:absolute;right:2%;bottom:2%;display:block;width:auto;margin:0;padding:9px 12px;border-radius:12px}
  .hero-price-card small,.hero-price-card span{display:block;margin:0}

  .customer-content-block,.customer-benefit-section,.inner-page{padding:28px 16px;min-height:0}
  #home .customer-content-block{padding-top:28px}
  .customer-benefit-section{margin:0}
  .customer-section-heading{margin-bottom:20px}
  .customer-product-grid,#home .customer-product-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
  .customer-product-card,#home .customer-product-card{display:grid;grid-template-columns:1fr;border-radius:16px;overflow:hidden}
  .mini-product-visual,#home .mini-product-visual{width:100%;min-height:0;aspect-ratio:4/3}
  .customer-product-info,#home .customer-product-info{padding:14px}
  .benefit-grid article{min-height:0}
  .footer-inner{grid-template-columns:1fr 1fr;gap:18px 16px;padding:24px 18px 16px}
  .footer-brand{grid-column:1/-1}
  .footer-bottom{padding:12px 18px}
}

/* =====================================================================
   HOME (index.html) disamakan dengan revisi 21: hero penuh layar,
   judul besar, label kecil, poin satu baris. Font tidak diubah.
   ===================================================================== */
html body[data-page="customer"] #home{background:#fff}
html body[data-page="customer"] .customer-eyebrow{display:block;margin:0 0 12px;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--brand-dark)}
html body[data-page="customer"] .hero-copy h1 span{display:inline;color:var(--brand)}
html body[data-page="customer"] #home .customer-section-heading>span{display:block;margin-bottom:6px;font-size:11px;font-weight:700;letter-spacing:.12em;color:var(--brand-dark)}
html body[data-page="customer"] .customer-hero{background:#eef5f9}
html body[data-page="customer"] .hero-price-card{display:block}
html body[data-page="customer"] .hero-price-card small,html body[data-page="customer"] .hero-price-card span{display:block;margin:0;font-size:10px}
html body[data-page="customer"] .hero-price-card strong{display:block;font-size:19px;line-height:1.25}
html body[data-page="customer"] .hero-points span{font-size:11px;font-weight:600}
html body[data-page="customer"] .hero-points span i,html body[data-page="customer"] .hero-points span svg{width:12px;height:12px;color:var(--ok)}
html body[data-page="customer"] .hero-actions .customer-btn{font-size:13px}

@media (min-width:901px){
  html body[data-page="customer"] .customer-menu a{padding:8px 0;background:transparent}
  html body[data-page="customer"] .customer-menu a.customer-orders{padding:8px 14px;font-size:13px}
  html body[data-page="customer"] .customer-menu a.active{box-shadow:inset 0 -2px 0 var(--brand-dark);border-radius:0;color:var(--brand-dark);font-weight:700}
  html body[data-page="customer"] .customer-hero{min-height:624px;align-items:center;padding-top:62px;padding-bottom:62px}
  html body[data-page="customer"] .hero-copy{max-width:none}
  html body[data-page="customer"] .hero-copy h1{font-size:clamp(36px,4.2vw,56px);line-height:1.1;margin:0 0 18px}
  html body[data-page="customer"] .hero-copy>p{font-size:15px;line-height:1.8;max-width:520px}
  html body[data-page="customer"] .hero-actions .customer-btn{min-height:44px;padding:0 18px}
  html body[data-page="customer"] .hero-points{flex-wrap:nowrap;gap:9px 18px}
  html body[data-page="customer"] .hero-product-scene{height:500px}
  html body[data-page="customer"] .hero-cup-image{width:min(100%,520px);max-height:440px}
  html body[data-page="customer"] .hero-price-card{right:0;bottom:35px;padding:14px 16px;min-width:113px}
  html body[data-page="customer"] #home .customer-content-block{padding:76px 28px 64px}
  html body[data-page="customer"] .customer-section-heading h2{font-size:clamp(28px,3vw,34px);line-height:1.25;margin:8px 0 7px}
  html body[data-page="customer"] .customer-product-info{padding:18px 21px}
}
@media (max-width:900px){
  html body[data-page="customer"] .customer-hero{background:#eef5f9}
  html body[data-page="customer"] .hero-points span{padding:6px 11px}
  html body[data-page="customer"] .hero-price-card{padding:12px 14px;min-width:113px}
  html body[data-page="customer"] .customer-section-heading h2{font-size:26px}
}
@media (max-width:900px){
  html body[data-page="customer"] .customer-eyebrow{margin-bottom:22px}
  html body[data-page="customer"] .hero-actions .customer-btn{font-size:16px}
}

/* Penanda jumlah pesanan: titik samar, tanpa angka timbul */
html body[data-page="customer"] .customer-orders-count,.tabbar .tab-badge{min-width:0;width:8px;height:8px;padding:0;border:0;border-radius:50%;font-size:0;line-height:0;color:transparent;background:#a9d3ea;box-shadow:none;opacity:.85}
.tabbar .tab-badge{top:-1px;right:-4px}
.modern-qty input::placeholder{color:#b7c3cc;opacity:1}

/* =====================================================================
   LAPORAN (desktop): tenang, sedikit warna. Merah hanya untuk
   barang rusak dan yang belum dibayar. Tombol "Buka di Order" biru.
   ===================================================================== */
tr.order-focus td{background:var(--brand-soft)!important}
tr.order-focus{outline:2px solid var(--brand)}
.report-order.has-damage{background:#fff;border-color:var(--line);box-shadow:inset 3px 0 0 var(--bad)}
.rh-warn strong,.report-mini-bad strong{color:var(--bad)}

@media (min-width:901px){
  .report-hero{grid-template-columns:1.25fr 1fr 1fr;margin-bottom:14px;border-radius:12px}
  .report-hero-main{background:#fff;color:var(--ink);padding:22px 26px;border-right:1px solid var(--line)}
  .report-hero-main span{color:var(--muted);font-weight:500;opacity:1;font-size:13px}
  .report-hero-main strong{font-size:32px;margin:6px 0 4px}
  .report-hero-main small{opacity:1;color:var(--faint);font-size:12px}
  .report-hero-split{display:contents}
  .report-hero-split>div{padding:22px 26px;border-left:0!important}
  .report-hero-split>div+div{border-left:1px solid var(--line)!important}
  .report-hero-split strong{font-size:26px}
  .rh-ok strong{color:var(--ink)}
  .report-mini-grid{gap:14px}
  .report-mini{padding:16px 20px;border-radius:12px}
  .report-mini strong{font-size:26px}
  .report-detail-btn{background:#fff;border-color:var(--line-strong);color:var(--ink)}
  .report-detail-btn:hover{background:var(--bg)}
  .report-table th{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-weight:600}
  .report-table tr.report-total-row td{background:var(--bg);font-weight:700;border-top:2px solid var(--line-strong)}
}
.due-text,.rh-warn strong,.bad-text{color:var(--bad)}

/* ===== Laporan: kartu ringkas, rapi, minim warna ===== */
.rh-bar{height:6px;border-radius:99px;background:#e8edf1;overflow:hidden;margin:10px 0 8px}
.rh-bar i{display:block;height:100%;width:0;border-radius:99px;background:#2b3a46;transition:width .4s ease}
@media (min-width:901px){
  .report-hero{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 1px 2px rgba(23,48,63,.04),0 8px 24px rgba(23,48,63,.04);overflow:hidden}
  .report-hero-main,.report-hero-split>div{padding:26px 30px}
  .report-hero-main span,.report-hero-split span{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
  .report-hero-main strong{font-size:38px;letter-spacing:-.02em;margin:10px 0 6px;color:var(--ink)}
  .report-hero-split strong{font-size:28px;letter-spacing:-.01em;margin:10px 0 0}
  .report-hero-main small,.report-hero-split small{font-size:12.5px;color:var(--faint)}
  .rh-warn strong{color:var(--bad)}
  .rh-warn strong+small{margin-top:14px}
  .report-mini-grid{gap:16px;margin-bottom:22px}
  .report-mini{padding:18px 22px;border-radius:14px;box-shadow:0 1px 2px rgba(23,48,63,.04)}
  .report-mini span{font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}
  .report-mini strong{font-size:28px;margin:6px 0 2px}
}
}

/* ===== Home: judul satu warna, hero mengisi layar, botol dengan bayangan ===== */
html body[data-page="customer"] .hero-copy h1 span{color:inherit}
@media (min-width:901px){
  html body[data-page="customer"] .customer-hero{min-height:max(624px,calc(100svh - 76px))}
}
html body[data-page="customer"] .hero-product-display{position:relative;display:flex;align-items:center;justify-content:center}
html body[data-page="customer"] .hero-cup-image{position:relative;z-index:1;filter:drop-shadow(0 14px 16px rgba(24,64,92,.16));-webkit-box-reflect:below -2px linear-gradient(to bottom,transparent 88%,rgba(255,255,255,.14))}
html body[data-page="customer"] .hero-product-display::after{content:"";position:absolute;left:50%;bottom:8%;transform:translateX(-50%);width:58%;height:22px;border-radius:50%;background:radial-gradient(ellipse at center,rgba(24,64,92,.30) 0%,rgba(24,64,92,.12) 45%,transparent 72%);filter:blur(5px);z-index:0}

/* ===== Laporan: kartu ringkasan dengan sentuhan warna lembut ===== */
@media (min-width:901px){
  .report-hero{grid-template-columns:1.25fr 1fr 1fr}
  .report-hero-split{display:contents}
  .report-hero-main{background:linear-gradient(180deg,#eef5fa 0%,#fff 70%);box-shadow:inset 0 3px 0 #1a73a7}
  .report-hero-main strong{color:#165f8a}
  .report-hero-main span{color:#3f6f8c}
  .rh-ok{background:linear-gradient(180deg,#edf7f1 0%,#fff 70%);box-shadow:inset 0 3px 0 #2f9e6f}
  .rh-ok strong{color:#1f7a55}
  .rh-ok span{color:#4d8a6e}
  .rh-ok .rh-bar{background:#d5eadf}
  .rh-ok .rh-bar i{background:#2f9e6f}
  .rh-warn{background:linear-gradient(180deg,#fdf0ee 0%,#fff 70%);box-shadow:inset 0 3px 0 #d9534f}
  .rh-warn span{color:#a8605c}
}

/* =====================================================================
   REVISI HP: hero satu layar, judul produk rata tengah, kartu produk kecil,
   tombol menu admin ikut saat scroll. Laporan desktop diberi sedikit warna.
   ===================================================================== */
html body[data-page="customer"] #home .customer-section-heading{text-align:center}
@media (max-width:820px){
  html body[data-page="customer"] #home .customer-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  html body[data-page="customer"] #home .customer-product-card{border-radius:14px}
  html body[data-page="customer"] #home .mini-product-visual{aspect-ratio:1/1;min-height:0}
  html body[data-page="customer"] #home .mini-product-visual img{padding:8px}
  html body[data-page="customer"] #home .customer-product-info{padding:12px}
  html body[data-page="customer"] #home .customer-product-info h3{font-size:15px;margin:4px 0}
  html body[data-page="customer"] #home .customer-product-info p{font-size:12px;line-height:1.5}
  html body[data-page="customer"] #home .product-bottom{margin-top:10px;gap:8px}
  html body[data-page="customer"] #home .product-bottom .customer-btn{width:100%;min-height:38px;padding:0 12px;font-size:14px}

  .admin-header{position:sticky;top:0;z-index:45;margin:-16px -16px 14px;padding:12px 16px;background:rgba(245,247,249,.96);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
}
@media (min-width:901px){
  .report-hero-main{background:linear-gradient(180deg,#f1f7fb,#fff)}
  .report-hero-main strong{color:var(--brand-dark)}
  .rh-ok{background:linear-gradient(180deg,#f0f8f3,#fff)}
  .rh-ok strong{color:var(--ok)}
  .rh-ok .rh-bar i{background:var(--ok)}
  .rh-warn{background:linear-gradient(180deg,#fdf3f2,#fff)}
  .report-hero-main,.rh-ok,.rh-warn{box-shadow:inset 0 3px 0 var(--line)}
  .report-hero-main{box-shadow:inset 0 3px 0 var(--brand)}
  .rh-ok{box-shadow:inset 0 3px 0 var(--ok)}
  .rh-warn{box-shadow:inset 0 3px 0 var(--bad)}
}
@media (max-width:820px){
  .report-table tbody tr.report-date-row td:first-child{width:calc(100% + 28px);box-sizing:border-box}
}

/* ===== HP: hero satu layar. Urutan: judul, deskripsi, tombol, es cup, ceklis ===== */
@media (max-width:820px){
  html body[data-page="customer"] .customer-hero{display:flex!important;flex-direction:column;min-height:calc(100svh - 51px - 44px);padding:18px 16px 14px;gap:0}
  html body[data-page="customer"] .hero-copy{display:contents!important;min-height:0!important}
  html body[data-page="customer"] .hero-copy h1{order:1;margin:0 0 12px;padding:0;align-self:stretch;text-align:left}
  html body[data-page="customer"] .hero-copy>p{order:2}
  html body[data-page="customer"] .hero-actions{order:3;width:100%;max-width:none;flex-direction:row!important;flex-wrap:nowrap;gap:10px;margin:16px 0 0}
  html body[data-page="customer"] .hero-actions .customer-btn{flex:1 1 0;width:auto;min-width:0;padding:0 10px;white-space:nowrap}
  html body[data-page="customer"] .hero-product-scene{order:4;flex:1 1 0;min-height:170px;width:100%;height:auto;aspect-ratio:auto;margin:14px 0 12px;display:flex;align-items:center;justify-content:center}
  html body[data-page="customer"] .hero-product-display{height:100%;width:100%}
  html body[data-page="customer"] .hero-cup-image{max-height:92%;width:auto;max-width:78%;object-fit:contain}
  html body[data-page="customer"] .hero-price-card{padding:8px 12px;min-width:0;right:10px;bottom:10px}
  html body[data-page="customer"] .hero-price-card strong{font-size:16px}
  html body[data-page="customer"] .hero-points{order:5;display:flex;flex-wrap:wrap;gap:6px;margin:0}
  html body[data-page="customer"] .hero-points span{padding:5px 10px;font-size:11.5px}
}

/* ===== Admin: tombol Keluar di bawah menu Notifikasi ===== */
.side-nav .logout-btn{width:100%;margin-top:14px}

/* ===== Lupa / ganti password: ramping ===== */
.login-card.compact{padding:20px 22px}
.login-card.compact .login-head{display:none}
.login-card.compact .login-logo{height:32px;margin:0 0 14px}
.login-card.compact label{margin-bottom:10px;font-size:13px}
.login-card.compact input{padding:9px 12px}
.login-card.compact .login-sub{font-size:17px;margin-bottom:2px}
.login-card.compact .login-help{margin:2px 0 12px;font-size:13px}
.login-card.compact .login-links{margin-top:10px}
.damage-box input::placeholder,#editDamagedQty::placeholder{color:#b7c3cc;opacity:1}


/* =====================================================================
   REVISI MOBILE (maks 600px). Desktop & tablet tidak diubah sama sekali.
   1. Beranda pas satu layar  2. Header merk tidak ikut scroll
   3. Edit pesanan lebih ramping + info barang rusak lebih jelas
   ===================================================================== */
@media (max-width:600px){
  /* Header merk diam di atas, ikut tergulung saat scroll */
  body[data-page="customer"] .customer-nav{position:static}

  /* Beranda: seluruh isi hero muat dalam satu layar (di atas menu bawah).
     Urutan tetap: judul, deskripsi, tombol, es cup, ceklis. */
  html body[data-page="customer"] #home .customer-hero{
    display:flex!important;flex-direction:column;gap:0;
    height:calc(100vh - 51px - 72px);
    height:calc(100svh - 51px - 72px);
    min-height:0;padding:12px 18px 10px;overflow:hidden
  }
  html body[data-page="customer"] #home .hero-copy h1{font-size:clamp(23px,7vw,28px);line-height:1.15;margin:0 0 8px}
  html body[data-page="customer"] #home .hero-copy>p{font-size:13.5px;line-height:1.5;margin:0}
  html body[data-page="customer"] #home .hero-actions{margin:12px 0 0;gap:8px}
  html body[data-page="customer"] #home .hero-actions .customer-btn{min-height:44px;font-size:14.5px}
  html body[data-page="customer"] #home .hero-product-scene{flex:1 1 0;min-height:60px;height:auto;margin:10px 0;padding:6px 12px;overflow:hidden}
  html body[data-page="customer"] #home .hero-cup-image{max-height:100%;height:100%;width:auto;max-width:78%;object-fit:contain}
  html body[data-page="customer"] #home .hero-price-card{position:absolute;right:10px;bottom:10px;left:auto;width:auto;margin:0;display:block;padding:6px 10px;border-radius:12px}
  html body[data-page="customer"] #home .hero-price-card small{display:block;font-size:10.5px}
  html body[data-page="customer"] #home .hero-price-card strong{font-size:15px}
  html body[data-page="customer"] #home .hero-price-card span{font-size:11px}
  html body[data-page="customer"] #home .hero-points{flex:none;margin:0;gap:5px 6px}
  html body[data-page="customer"] #home .hero-points span{gap:4px;font-size:11.5px;line-height:1.2;padding:5px 9px;white-space:nowrap}
  html body[data-page="customer"] #home .hero-points span i,
  html body[data-page="customer"] #home .hero-points span svg{width:11px;height:11px}

  /* ---- Edit pesanan (admin): lebih ramping ---- */
  .modal-card.compact{padding:12px 14px 14px}
  .modal-card.compact .modal-head{margin-bottom:8px}
  .modal-card.compact .modal-head h2{font-size:16px}
  .edit-order-form label{margin-bottom:7px;font-size:12px;font-weight:600}
  .edit-order-form input,.edit-order-form select,.edit-order-form textarea{min-height:38px;margin-top:3px;padding:6px 10px;font-size:14px;border-radius:10px}
  .edit-order-form textarea{min-height:48px}
  .edit-order-form .field-grid{grid-template-columns:1fr 1fr;gap:0 8px}
  .edit-order-form .field-grid-qty{grid-template-columns:1.5fr 1fr}
  .edit-order-form .modal-actions{gap:8px;margin-top:4px}
  .edit-order-form .modal-actions .btn{min-height:42px}

  /* Info barang rusak: jelas terlihat */
  .edit-order-form .damage-preview.muted{
    display:flex;align-items:flex-start;gap:8px;margin:2px 0 10px;padding:9px 11px;
    background:#fff6e0;border:1px solid #f1d38a;border-radius:10px;
    color:#7a5200;font-size:13px;font-weight:600;line-height:1.4
  }
  .edit-order-form .damage-preview.muted::before{
    content:"i";flex:none;width:18px;height:18px;border-radius:50%;background:#e8a317;color:#fff;
    font-size:12px;font-weight:700;line-height:18px;text-align:center;font-style:italic
  }
}
