/* PERKASA FAST OTP — Kawaii Premium layer
   Dimuat setelah app.css. Isi: (1) penghapusan semua badge/pill kapsul → label minimalis berikon,
   (2) desain halaman detail pesanan. Animasi 0.15–0.3 dtk; semua dimatikan oleh prefers-reduced-motion. */

/* ============ 1. TANPA KAPSUL ============ */
/* label status: ikon SVG + teks, aksen garis kiri, tanpa latar bentuk pil */
.stt { display: inline-flex; align-items: center; gap: 7px; padding: 2px 0 2px 9px; border: 0; border-left: 3px solid currentColor; border-radius: 0; background: none; font: 700 12.5px/1.25 var(--sans); white-space: nowrap; }
.stt .ic { width: 15px; height: 15px; stroke-width: 2.1; }
.stt-ok { color: var(--ok); } .stt-bad { color: var(--bad); } .stt-wait { color: var(--wait); }
.stt-lg { font-size: 15px; padding-left: 12px; border-left-width: 4px; gap: 9px; }
.stt-lg .ic { width: 22px; height: 22px; }
.stt-wait .ic { animation: kw-tick 2.4s ease-in-out infinite; transform-origin: 50% 50%; }
/* kelas lama dipertahankan agar template yang belum diganti tetap rapi (tanpa bentuk kapsul) */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0 2px 9px; border: 0; border-left: 3px solid currentColor; border-radius: 0; background: none; font: 700 12.5px/1.25 var(--sans); }
.badge::before { display: none; }
.badge-ok { background: none; border-color: currentColor; }
.badge-bad { background: none; border-color: currentColor; }
.badge-wait { background: none; border-color: currentColor; }
.ps-badge, .ps-demo-tag { padding: 0 0 0 7px; border: 0; border-left: 2px solid currentColor; border-radius: 0; background: none; }
.tp-pill { padding: 0 0 0 22px; border-radius: 0; background: url("/assets/svg/ornaments/deco-sparkle.svg") no-repeat 0 50% / 16px 16px; box-shadow: none; }
.tp-perks li { padding: 0 0 0 20px; border-radius: 0; background: url("/assets/svg/ornaments/deco-sparkle.svg") no-repeat 0 50% / 14px 14px; }
.pg-eyebrow { padding: 0 0 0 26px; border: 0; border-radius: 0; background: none; }
.qd-timer, .pg-hours { border-radius: 12px; }
/* eyebrow & label dokumentasi: teks dengan ikon kilau, tanpa bentuk kapsul */
.eyebrow { padding: 0 0 0 22px; border-radius: 0; background: url("/assets/svg/ornaments/deco-sparkle.svg") no-repeat 0 50% / 16px 16px; }
.dk-badge { padding: 0 0 0 9px; border-radius: 0; background: none; border-left: 3px solid currentColor; }
.ps-badge { background: none !important; border-color: currentColor !important; }
.dk-copy { border-radius: 10px; }
/* jumlah notifikasi: kotak membulat kecil, bukan kapsul */
.dot { border-radius: 7px; }
/* chip saldo di topbar: kartu kecil dengan sudut lembut */
.chip { border-radius: 14px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.chip:hover { transform: translateY(-1px); }

@keyframes kw-tick { 0%, 45%, 100% { transform: rotate(0); } 55% { transform: rotate(180deg); } }

/* ============ 2. HALAMAN PESANAN ============ */
.ord { --ord-glass: rgba(255, 255, 255, .82); --lav: #EFE3FA; position: relative; display: grid; gap: 18px; max-width: 880px; margin: 0 auto; padding-bottom: 8px; min-width: 0; }
.ord > * { min-width: 0; }
.ord h2, .ord h3 { margin: 0; }

.ord-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.ord-back { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 14px; background: var(--white); border: 1px solid var(--border); color: var(--deep-rose); font: 700 14px/1 var(--sans); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .2s ease, background .2s ease; }
.ord-back:hover { background: var(--pale-pink); transform: translateX(-2px); }
.ord-titles { min-width: 0; text-align: center; }
.ord-titles h2 { font: 700 20px/1.2 var(--display); color: var(--ink); }
.ord-id { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 3px 8px; border: 1px dashed var(--soft-rose); border-radius: 8px; background: none; color: var(--text-muted); font: 600 12px/1.2 var(--sans); cursor: pointer; max-width: 100%; transition: background .2s ease; }
.ord-id:hover { background: var(--pale-pink); }
.ord-id .mono { word-break: normal; overflow: hidden; text-overflow: ellipsis; }
.ord-id .ic { width: 13px; height: 13px; }
.ord-bal { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: linear-gradient(135deg, #FFF0F6, #F7EBFF); border: 1px solid var(--border); color: var(--deep-rose); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .2s ease; }
.ord-bal:hover { transform: translateY(-1px); }
.ord-bal span { display: grid; line-height: 1.15; }
.ord-bal small { color: var(--text-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ord-bal b { color: var(--ink); font-size: 14px; }

/* tiket */
.ord-ticket { position: relative; padding: 38px 22px 22px; border-radius: 26px; border: 1px solid var(--border); isolation: isolate; overflow: visible;
  background: radial-gradient(420px 220px at 100% 0, #F7EBFF 0, transparent 70%), radial-gradient(380px 200px at 0 100%, #FFE7F1 0, transparent 70%), var(--ord-glass);
  box-shadow: 0 24px 50px -28px rgba(217, 79, 140, .5), inset 0 1px 0 #fff; backdrop-filter: blur(6px); display: grid; gap: 16px; }
.ord-ticket::before, .ord-ticket::after { content: ""; position: absolute; top: 118px; width: 22px; height: 22px; border-radius: 50%; background: var(--sakura-white); border: 1px solid var(--border); z-index: -1; }
.ord-ticket::before { left: -12px; } .ord-ticket::after { right: -12px; }
.ord-lace { position: absolute; left: 22px; right: 22px; top: 0; width: calc(100% - 44px); height: 14px; object-fit: fill; opacity: .9; pointer-events: none; border-radius: 0 0 8px 8px; }
.ord-keychains { position: absolute; right: 18px; top: -26px; display: flex; gap: 8px; align-items: flex-start; pointer-events: none; z-index: 2; }
.ord-keychains .kc { height: auto; transform-origin: 50% 0; animation: orn-swing 5.5s ease-in-out infinite; filter: drop-shadow(0 6px 6px rgba(217, 79, 140, .22)); }
.ord-keychains .kc-b { animation-delay: -1.6s; margin-top: 8px; } .ord-keychains .kc-c { animation-delay: -3.1s; }

.ord-app { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 6px; }
.ord-logo { width: 68px; height: 68px; flex: none; display: grid; place-items: center; border-radius: 22px; background: linear-gradient(145deg, #fff, #FFEAF3); border: 1px solid var(--border); box-shadow: 0 10px 22px -14px rgba(217, 79, 140, .6), inset 0 -4px 0 rgba(249, 168, 200, .25); }
.ord-logo svg { width: 44px; height: 44px; max-width: 100%; }
.ord-logo-fb .ic { width: 30px; height: 30px; color: var(--romantic); }
.ord-app-txt { min-width: 0; flex: 1 1 180px; }
.ord-app-txt h3 { font: 700 21px/1.2 var(--display); color: var(--ink); overflow-wrap: anywhere; }
.ord-app-txt p { margin: 6px 0 0; display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-weight: 600; font-size: 14px; }
.ord-app-txt .flag { width: 28px !important; height: 20px !important; border-radius: 5px !important; }
.ord-stage { flex: 0 0 auto; }
.ord-lbl { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font: 700 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.ord-lbl .ic { width: 15px; height: 15px; color: var(--romantic); }

/* nomor virtual */
.ord-num { display: grid; gap: 10px; padding: 16px; border-radius: 20px; background: #fff; border: 1.5px solid #F8C8DC; box-shadow: 0 14px 28px -22px rgba(217, 79, 140, .6); position: relative; }
.ord-num-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ord-number { font-size: clamp(22px, 6.4vw, 34px); line-height: 1.15; color: var(--ink); letter-spacing: .04em; word-break: break-all; min-width: 0; }

/* tombol salin dengan animasi sukses */
.ord-copy { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 14px; cursor: pointer; color: #fff; font: 800 14px/1 var(--sans);
  background: linear-gradient(180deg, #F58BBA, #D94F8C); box-shadow: 0 10px 20px -12px rgba(217, 79, 140, .9), inset 0 2px 0 rgba(255, 255, 255, .45); transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.ord-copy:hover { transform: translateY(-1px); }
.ord-copy:active { transform: scale(.96); }
.ord-copy .ic { width: 18px; height: 18px; }
.ord-copy .cp-ok { display: none; }
.ord-copy.copied { background: linear-gradient(180deg, #7CC79A, #3A7A55); box-shadow: 0 10px 20px -12px rgba(58, 122, 85, .9), inset 0 2px 0 rgba(255, 255, 255, .45); animation: kw-pop .35s ease; }
.ord-copy.copied .cp-i { display: none; } .ord-copy.copied .cp-ok { display: inline-flex; }
.ord-copy.copied em { font-size: 0; } .ord-copy.copied em::after { font-size: 14px; content: "Tersalin"; }
@keyframes kw-pop { 0% { transform: scale(.9); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* OTP */
.ord-otp { display: grid; gap: 12px; padding: 16px; border-radius: 20px; border: 1.5px dashed #E7C9F5; background: linear-gradient(135deg, #FBF5FF, #FFF3F9); transition: border-color .3s ease, background .3s ease; }
.ord-otp.has { border-style: solid; border-color: #9ED3B2; background: linear-gradient(135deg, #F0FBF4, #FFFDFB); box-shadow: 0 0 0 5px rgba(158, 211, 178, .18); animation: kw-pop .4s ease; }
.ord-otp-wait { display: flex; align-items: center; gap: 14px; }
.ord-otp-wait img { flex: none; width: 84px; height: 84px; animation: orn-float 4s ease-in-out infinite; }
.ord-otp-wait b { color: var(--ink); } .ord-otp-wait p { margin: 3px 0 8px; color: var(--text-muted); font-size: 13.5px; }
.ord-dots { display: inline-flex; gap: 6px; } .ord-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--romantic); animation: kw-bounce 1.2s ease-in-out infinite; }
.ord-dots i:nth-child(2) { animation-delay: .15s; } .ord-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes kw-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-6px); opacity: 1; } }
.ord-otp-got { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ord-otp-got[hidden], .ord-otp-wait[hidden] { display: none; }
.ord-otp-code { font-size: clamp(30px, 9vw, 44px); line-height: 1.1; letter-spacing: .18em; color: var(--ok); font-weight: 800; min-width: 0; word-break: break-all; }
.ord-prev { margin: 0; color: var(--wait); font-size: 13px; font-weight: 600; } .ord-prev:empty { display: none; }
.ord-msg { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; } .ord-msg .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--romantic); }

.ord-refund-note { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--border); }
.ord-refund-note img { flex: none; width: 56px; height: 56px; } .ord-refund-note p { margin: 2px 0 0; color: var(--text-muted); font-size: 13.5px; }

/* kartu umum */
.ord-card { position: relative; padding: 20px; border-radius: 22px; background: var(--ord-glass); border: 1px solid var(--border); box-shadow: var(--shadow-sm); isolation: isolate; overflow: hidden; }
.ord-card > h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font: 700 16px/1.2 var(--display); color: var(--ink); }
.ord-card > h3 .ic { width: 19px; height: 19px; color: var(--romantic); }

/* countdown */
.ord-clock { display: flex; align-items: center; gap: 18px; padding-right: 90px; }
.ord-ring { position: relative; width: 104px; height: 104px; flex: none; }
.ord-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ord-ring circle { fill: none; stroke-width: 9; }
.rg-bg { stroke: #F9E1EC; } .rg-fg { stroke: var(--romantic); stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke .3s ease; }
.ord-ring.low .rg-fg { stroke: #D9534F; }
.ord-ring-ic { position: absolute; inset: 0; display: grid; place-items: center; color: var(--deep-rose); } .ord-ring-ic .ic { width: 28px; height: 28px; }
.ord-clock-main { display: grid; gap: 8px; min-width: 0; }
.ord-hms { display: flex; align-items: flex-start; gap: 6px; }
.ord-hms div { display: grid; justify-items: center; min-width: 52px; padding: 8px 6px 6px; border-radius: 14px; background: #fff; border: 1px solid var(--border); box-shadow: inset 0 -3px 0 #FDE7F1; }
.ord-hms b { font: 800 24px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); font-variant-numeric: tabular-nums; }
.ord-hms small { margin-top: 4px; color: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ord-hms i { align-self: center; color: var(--soft-rose); font-style: normal; font-weight: 800; padding-bottom: 14px; }
.ord-clock-orn { position: absolute; right: 8px; bottom: 4px; width: 72px; height: 72px; z-index: -1; opacity: .85; animation: orn-float 8s ease-in-out infinite; pointer-events: none; }

/* rincian */
.ord-dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ord-dl div { padding: 11px 13px; border-radius: 14px; background: #fff; border: 1px solid var(--border); min-width: 0; }
.ord-dl dt { margin: 0 0 4px; color: var(--text-muted); font-size: 12px; font-weight: 700; }
.ord-dl dd { margin: 0; color: var(--ink); font-weight: 700; font-size: 14.5px; overflow-wrap: anywhere; }

/* riwayat */
.ord-tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ord-tl li { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.ord-tl li:last-child { padding-bottom: 0; }
.ord-tl li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 0; border-left: 2px dotted var(--soft-rose); }
.tl-dot { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #fff, #FFEAF3); border: 1px solid var(--border); color: var(--deep-rose); }
.tl-dot .ic { width: 18px; height: 18px; }
.ord-tl b { display: block; font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; } .ord-tl small { color: var(--text-muted); font-size: 12.5px; }

/* aksi */
.ord-actions { display: flex; flex-wrap: wrap; gap: 10px; } .ord-actions:empty { display: none; } .ord-actions form { margin: 0; }
.ord-actions .btn { min-height: 46px; }

/* bantuan */
.ord-help { display: grid; gap: 10px; }
.ord-help-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.ord-help-head img { width: 56px; height: 56px; flex: none; animation: orn-rock 6s ease-in-out infinite; }
.ord-help-head > div { flex: 1 1 160px; min-width: 0; } .ord-help-head h3 { font: 700 17px/1.2 var(--display); } .ord-help-head p { margin: 3px 0 0; }
.ord-acc { border-radius: 14px; background: #fff; border: 1px solid var(--border); overflow: hidden; transition: border-color .2s ease; }
.ord-acc[open] { border-color: var(--soft-rose); }
.ord-acc summary { display: flex; align-items: center; gap: 9px; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.ord-acc summary::-webkit-details-marker { display: none; }
.ord-acc summary .ic { width: 18px; height: 18px; color: var(--romantic); } .ord-acc summary .acc-ic { margin-left: auto; transition: transform .25s ease; }
.ord-acc[open] .acc-ic { transform: rotate(45deg); }
.ord-acc p { margin: 0; padding: 0 14px 14px; color: var(--text-muted); font-size: 14px; line-height: 1.6; animation: kw-fade .25s ease; }
@keyframes kw-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ornamen halaman (hanya di ruang kosong sekitar kartu, di belakang konten) */
.ord-deco { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.ord-deco .od { position: absolute; height: auto; opacity: .55; animation: orn-float 9s ease-in-out infinite; }
.od-1 { right: 2%; top: 46%; width: 38px; } .od-2 { left: -18px; top: 62%; width: 72px; transform: rotate(-12deg); animation-delay: -2s; }
.od-3 { right: -14px; bottom: 21%; width: 78px; animation-delay: -4s; } .od-4 { left: 3%; bottom: 3%; width: 44px; animation-delay: -6s; }

/* ============ responsif ============ */
@media (max-width: 640px) {
  .ord { gap: 14px; }
  .ord-top { grid-template-columns: 1fr auto; grid-template-areas: "back bal" "title title"; }
  .ord-back { grid-area: back; justify-self: start; } .ord-bal { grid-area: bal; } .ord-titles { grid-area: title; text-align: left; }
  .ord-titles h2 { font-size: 19px; }
  .ord-ticket { padding: 34px 14px 16px; border-radius: 22px; }
  .ord-keychains { right: 10px; top: -22px; } .ord-keychains .kc { width: 34px; }
  .ord-ticket::before, .ord-ticket::after { display: none; }
  .ord-app { gap: 10px; } .ord-logo { width: 56px; height: 56px; border-radius: 18px; } .ord-logo svg { width: 36px; height: 36px; }
  .ord-stage { flex: 1 1 100%; }
  .ord-num, .ord-otp { padding: 14px; }
  .ord-num-row, .ord-otp-got { flex-direction: column; align-items: stretch; }
  .ord-copy { justify-content: center; width: 100%; min-height: 48px; }
  .ord-otp-wait img { width: 64px; height: 64px; }
  .ord-clock { flex-direction: column; align-items: flex-start; padding: 18px 16px 70px; }
  .ord-ring { width: 88px; height: 88px; } .ord-hms div { min-width: 46px; } .ord-hms b { font-size: 21px; }
  .ord-dl { grid-template-columns: 1fr; }
  .ord-actions { flex-direction: column; } .ord-actions form, .ord-actions .btn { width: 100%; } .ord-actions .btn { justify-content: center; }
  .ord-help-head .btn { width: 100%; justify-content: center; }
  .ord-deco .od-2, .ord-deco .od-4 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ord *, .ord *::before, .ord *::after, .stt .ic { animation: none !important; transition: none !important; }
}
@media print { .ord-deco, .ord-keychains, .ord-lace { display: none !important; } }

/* ============ API Reseller ============ */
.api-hero { display: flex; gap: 16px; align-items: center; position: relative; overflow: hidden; }
.api-hero h2 { font: 700 20px/1.2 var(--display); margin: 0 0 4px; }
.api-hero p { margin: 0; }
.api-hero-orn { flex: none; animation: orn-rock 6s ease-in-out infinite; transform-origin: 50% 0; }
.api-fresh { border-color: #9ED3B2; background: linear-gradient(135deg, #F0FBF4, #FFFDFB); display: grid; gap: 10px; }
.api-fresh h3 { margin: 0; font-size: 16px; }
.api-token { font-size: 13px; word-break: break-all; min-width: 0; flex: 1 1 200px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px dashed #9ED3B2; }
.api-create, .api-list { display: grid; gap: 12px; }
.api-create h3, .api-list h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 16px/1.2 var(--display); }
.api-create h3 .ic, .api-list h3 .ic { width: 19px; height: 19px; color: var(--romantic); }
.api-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.api-form .field { flex: 1 1 200px; }
.api-form .btn[disabled] { opacity: .5; cursor: not-allowed; }
.api-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.api-item { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--border); display: grid; gap: 10px; min-width: 0; }
.api-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.api-item-head b { overflow-wrap: anywhere; min-width: 0; }
.api-meta { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.api-meta dt { color: var(--text-muted); font-size: 12px; font-weight: 700; }
.api-meta dd { margin: 2px 0 0; font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.api-actions { display: flex; gap: 8px; flex-wrap: wrap; } .api-actions form { margin: 0; }
@media (max-width: 640px) {
  .api-meta { grid-template-columns: 1fr; }
  .api-form .btn, .api-actions .btn { width: 100%; justify-content: center; }
  .api-actions form { flex: 1 1 100%; }
  .api-hero-orn { width: 40px; height: auto; }
}

/* ============ Daftar pesanan ============ */
.ord-tabs { margin-bottom: 14px; }
.ord-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.ord-list a.ord-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.ord-list a.ord-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ord-row-logo { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(145deg, #fff, #FFEAF3); border: 1px solid var(--border); }
.ord-row-logo svg { width: 30px; height: 30px; }
.ord-row-logo .ic { width: 22px; height: 22px; color: var(--romantic); }
.ord-row-main { display: grid; gap: 3px; min-width: 0; }
.ord-row-main b { color: var(--ink); overflow-wrap: anywhere; }
.ord-row-main small { font-size: 12.5px; overflow-wrap: anywhere; }
.ord-row-side { display: grid; justify-items: end; gap: 6px; text-align: right; }
.ord-row-side b { color: var(--deep-rose); font-size: 14px; }
.ord-table { display: none; }
@media (min-width: 900px) { .ord-list { display: none; } .ord-table { display: block; } }
.ord-empty { display: grid; justify-items: center; gap: 10px; padding: 30px 20px; }
.ord-empty h3 { margin: 0; font: 700 18px/1.2 var(--display); }
.ord-empty p { margin: 0 0 6px; }
.ord-empty img { animation: orn-float 5s ease-in-out infinite; }

/* ============ Halaman error ============ */
.err-card h1 { font: 800 56px/1 var(--display); color: var(--romantic); margin: 6px 0 0; }
.err-card h2 { font: 700 20px/1.3 var(--display); margin: 6px 0 4px; }
.err-card > img:not(.err-orn) { animation: orn-float 5s ease-in-out infinite; }

/* ============ HP: pastikan tidak ada blok tak terlihat yang mendorong topbar/konten ke bawah ============ */
@media (max-width: 900px) {
  body.app .shell { display: block; min-height: 0; }
  body.app .shell > .side { position: fixed !important; top: 0; left: 0; bottom: 0; height: 100% !important; }
  body.app .shell > .main-col { width: 100%; }
  body.app .topbar { position: sticky; top: 0; }
  /* elemen dekoratif tidak boleh menambah tinggi halaman */
  body.app .orn-layer, body.app .petals, body.app .orn { position: fixed; }
}

/* ============ HP: topbar terkunci di atas layar (tidak ikut turun) ============ */
@media (max-width: 900px) {
  body.app .topbar { position: fixed !important; top: 0; left: 0; right: 0; z-index: 60; }
  body.app .main-col { padding-top: var(--topbar-h, 68px); }
}

/* ============ BERANDA DASHBOARD: kawaii premium ============ */
.hm { display: grid; gap: 18px; position: relative; }
.hm > * { min-width: 0; }

/* sapaan */
.hm-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 2px; }
.hm-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hm-avatar { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 18px; color: #fff; font: 800 22px/1 var(--display);
  background: linear-gradient(145deg, #FFC2DD, #EC78AC); box-shadow: 0 12px 22px -12px rgba(217, 79, 140, .9), inset 0 -4px 0 rgba(217, 79, 140, .25); animation: kw-bob 4s ease-in-out infinite; }
.hm-greet { font: 700 21px/1.2 var(--display); color: var(--ink); overflow-wrap: anywhere; }
.hm-bell { position: relative; width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--deep-rose); transition: transform .2s ease; }
.hm-bell:hover { transform: rotate(-6deg); }
.hm-bell .ic { width: 22px; height: 22px; }
.hm-bell .dot { top: -6px; right: -6px; }
@keyframes kw-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* kartu saldo: gradien lembut, pita dan kilau */
.hm-balance { position: relative; overflow: hidden; isolation: isolate; border-radius: 26px; padding: 22px;
  background: radial-gradient(260px 160px at 100% 0, rgba(255, 255, 255, .45), transparent 70%), linear-gradient(135deg, #FFB7D5 0%, #EC78AC 55%, #D94F8C 100%);
  box-shadow: 0 22px 40px -22px rgba(217, 79, 140, .85), inset 0 1px 0 rgba(255, 255, 255, .5); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.hm-balance::before { content: ""; position: absolute; right: -10px; top: -14px; width: 120px; height: 120px; background: url("/assets/svg/ornaments/glossy-pearl.svg") no-repeat center / contain; opacity: .35; z-index: -1; animation: orn-float 9s ease-in-out infinite; }
.hm-balance::after { content: ""; position: absolute; right: 118px; bottom: -6px; width: 54px; height: 54px; background: url("/assets/svg/ornaments/sparkle-stars.svg") no-repeat center / contain; opacity: .55; z-index: -1; animation: orn-rock 6s ease-in-out infinite; }
.hm-label { display: flex; align-items: center; gap: 8px; font: 600 14px/1.3 var(--sans); opacity: .95; }
.hm-label .ic { width: 18px; height: 18px; }
.hm-amount { display: block; margin-top: 6px; font: 800 clamp(26px, 7vw, 34px)/1.1 var(--display); letter-spacing: .01em; overflow-wrap: anywhere; text-shadow: 0 2px 10px rgba(150, 30, 90, .25); }
.hm-balance .btn-secondary { background: #fff; color: var(--deep-rose); border: 0; border-radius: 14px; box-shadow: 0 10px 20px -12px rgba(120, 20, 70, .6); transition: transform .15s ease; flex: none; }
.hm-balance .btn-secondary:hover { transform: translateY(-1px); }
.hm-balance .btn-secondary:active { transform: scale(.96); }

/* ringkasan: tiga kartu kecil */
.hm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hm-stat { position: relative; padding: 14px 10px; text-align: center; border-radius: 20px; background: rgba(255, 255, 255, .85); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; display: grid; gap: 4px; justify-items: center; }
.hm-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hm-stat b { font: 800 26px/1 var(--display); color: var(--deep-rose); }
.hm-stat:nth-child(1)::after, .hm-stat:nth-child(2)::after, .hm-stat:nth-child(3)::after { content: ""; position: absolute; right: 6px; top: -8px; width: 22px; height: 22px; background: url("/assets/svg/ornaments/deco-sparkle.svg") no-repeat center / contain; opacity: .8; }

/* blok bagian */
.hm-block { position: relative; padding: 18px; border-radius: 24px; background: rgba(255, 255, 255, .82); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.hm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.hm-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 17px/1.2 var(--display); color: var(--ink); }
.hm-head h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 25%, var(--romantic) 70%); box-shadow: 0 0 0 3px rgba(249, 168, 200, .25); flex: none; }
.hm-head .link { font-weight: 800; color: var(--deep-rose); text-decoration: none; font-size: 14px; }
.hm-head .link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* layanan populer: ubin ikon */
.hm-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hm-chip { display: grid; justify-items: center; gap: 8px; padding: 12px 6px; border-radius: 20px; text-decoration: none; color: var(--ink); font: 700 13px/1.2 var(--sans); background: linear-gradient(180deg, #fff, #FFF7FA); border: 1px solid var(--border); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.hm-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--soft-rose); }
.hm-chip:active { transform: scale(.96); }
.hm-chip-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(145deg, #FFEAF3, #FFD6E6); color: var(--deep-rose); box-shadow: inset 0 -3px 0 rgba(249, 168, 200, .35); }
.hm-chip-ic .ic { width: 22px; height: 22px; }
.hm-chip:hover .hm-chip-ic { animation: kw-bob .6s ease-in-out; }

/* pesanan terbaru */
.hm-orders { display: grid; gap: 10px; }
.hm-order { display: grid; gap: 6px; padding: 14px; border-radius: 18px; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--border); transition: transform .2s ease, box-shadow .2s ease; }
.hm-order:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.hm-order-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.hm-order-top b { overflow-wrap: anywhere; color: var(--ink); }

/* daftar mutasi & notifikasi */
.hm-block .list li { padding: 12px 0; border-bottom: 1px dashed #F4DCE7; }
.hm-block .list li:last-child { border-bottom: 0; }
.hm-block .pos { color: var(--ok); font-weight: 800; }
.hm-block .neg { color: var(--bad); font-weight: 800; }

/* panduan: nomor berhias */
.hm-block .steps-list { counter-reset: kw; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hm-block .steps-list li { counter-increment: kw; position: relative; padding: 10px 12px 10px 48px; border-radius: 14px; background: linear-gradient(90deg, #FFF0F6, #FFFAFC); color: var(--ink); font-size: 14.5px; }
.hm-block .steps-list li::before { content: counter(kw); position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(145deg, #FFB7D5, #EC78AC); color: #fff; font: 800 13px/1 var(--sans); box-shadow: 0 6px 12px -6px rgba(217, 79, 140, .8); }

/* ornamen beranda */
.hm::before { content: ""; position: absolute; right: -8px; top: 38%; width: 70px; height: 70px; background: url("/assets/svg/ornaments/bouquet-mini.svg") no-repeat center / contain; opacity: .5; pointer-events: none; z-index: -1; animation: orn-float 10s ease-in-out infinite; }

/* ponsel: susunan rapi */
@media (max-width: 640px) {
  .hm { gap: 14px; }
  .hm-block { padding: 14px; border-radius: 20px; }
  .hm-balance { padding: 18px; border-radius: 22px; flex-direction: column; align-items: stretch; }
  .hm-balance .btn-secondary { width: 100%; text-align: center; justify-content: center; min-height: 44px; }
  .hm-balance::after { display: none; }
  .hm-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-stat b { font-size: 22px; }
  .hm::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hm *, .hm::before, .hm-balance::before, .hm-balance::after { animation: none !important; transition: none !important; }
}

/* ===== beruang kawaii di beranda ===== */
.hm-balance::before { width: 118px !important; height: 118px !important; right: -6px !important; top: -18px !important; background-image: url("/assets/svg/ui/bear-hero.svg") !important; opacity: .95 !important; animation: kw-bob 4.5s ease-in-out infinite !important; }
.hm-balance > div { position: relative; z-index: 1; }
.hm-balance .btn-secondary { position: relative; z-index: 1; }
.hm-who { position: relative; }
.hm-who::after { content: ""; width: 42px; height: 42px; flex: none; margin-left: 2px; background: url("/assets/svg/ui/bear-hero.svg") no-repeat center / contain; animation: kw-bob 3.6s ease-in-out infinite; }
@media (max-width: 640px) { .hm-who::after { display: none; } .hm-balance::before { width: 92px !important; height: 92px !important; top: -20px !important; } }
