/* 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; } }

/* ============ DOKUMENTASI API: hero kawaii ============ */
.dk-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: 30px 28px 26px !important;
  background: radial-gradient(360px 220px at 100% 0, rgba(255, 255, 255, .55), transparent 70%), radial-gradient(300px 200px at 0 100%, #F7EBFF, transparent 70%), linear-gradient(135deg, #FFE3EF 0%, #FFB7D5 60%, #F9A8C8 100%) !important;
  border: 1px solid #F8C8DC !important; box-shadow: 0 24px 48px -26px rgba(217, 79, 140, .75), inset 0 1px 0 rgba(255, 255, 255, .7); }
.dk-hero::before { content: ""; position: absolute; right: -6px; top: -4px; width: 170px; height: 170px; background: url("/assets/svg/ui/bear-hero.svg") no-repeat center / contain; z-index: -1; animation: kw-bob 4.5s ease-in-out infinite; }
.dk-hero::after { content: ""; position: absolute; left: 12px; bottom: 10px; width: 64px; height: 64px; background: url("/assets/svg/ornaments/sparkle-stars.svg") no-repeat center / contain; opacity: .7; z-index: -1; animation: orn-rock 6s ease-in-out infinite; }
.dk-hero .eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 0 0 0 26px; background: url("/assets/svg/ornaments/deco-sparkle.svg") no-repeat 0 50% / 18px 18px; font: 800 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--deep-rose); }
.dk-hero h1 { font: 800 clamp(24px, 5.6vw, 38px)/1.15 var(--display) !important; color: var(--ink); max-width: 17ch; margin: 10px 0 8px; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.dk-hero .lead { max-width: 46ch; color: #5A3B4C; font-size: 15.5px; line-height: 1.65; margin: 0 0 14px; }
.dk-hero .dk-notice { margin-top: 6px; max-width: 52ch; padding: 12px 14px 12px 40px; border-radius: 16px; background: rgba(255, 255, 255, .78); border: 1px solid #F8C8DC; color: var(--ink); font-size: 13.5px; position: relative; }
.dk-hero .dk-notice::before { content: "\2661"; position: absolute; left: 14px; top: 11px; color: var(--romantic); font-size: 16px; }
@media (max-width: 640px) {
  .dk-hero { padding: 24px 18px 20px !important; border-radius: 24px; }
  .dk-hero::before { width: 112px; height: 112px; right: -10px; top: -6px; opacity: .9; }
  .dk-hero::after { display: none; }
  .dk-hero h1 { max-width: 100%; padding-right: 96px; }
}
.dk-sec { border-radius: 22px; }
.dk-sec h2 { display: flex; align-items: center; gap: 10px; }
.dk-sec h2::before { content: ""; width: 12px; height: 12px; flex: none; 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); }
.dk-code { border-radius: 18px; overflow: hidden; box-shadow: 0 14px 28px -20px rgba(120, 40, 80, .6); border: 1px solid #F3D5E4; }
.dk-code-bar { background: linear-gradient(90deg, #FFE3EF, #F7EBFF); }
.dk-copy { border-radius: 12px !important; transition: transform .15s ease; }
.dk-copy:active { transform: scale(.94); }

/* ============ AMBIL API KEY: tampilan kawaii ============ */
.api-hero { border-radius: 26px; background: linear-gradient(135deg, #FFF0F6 0%, #F7EBFF 100%); border: 1px solid #F8C8DC; padding: 22px; align-items: center; gap: 18px; }
.api-hero-orn { width: 84px !important; height: 84px !important; flex: none; }
.api-hero h2 { font: 800 22px/1.2 var(--display) !important; color: var(--ink); }
.api-hero p { color: #5A3B4C; }
.api-create, .api-list, .api-fresh { border-radius: 24px; padding: 20px; }
.api-create { background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.api-form .field input { border-radius: 14px; }
.api-form .btn-primary { min-height: 46px; border-radius: 16px; }
.api-item { border-radius: 20px; padding: 16px; box-shadow: 0 10px 22px -18px rgba(120, 40, 80, .6); transition: transform .2s ease, box-shadow .2s ease; }
.api-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.api-item-head b { font: 700 16px/1.2 var(--display); color: var(--ink); }
.api-meta div { padding: 9px 11px; border-radius: 14px; background: #FFF7FA; border: 1px solid #F8E3EE; }
.api-actions .btn { border-radius: 14px; }
.api-fresh { border-radius: 24px; }
.api-token { border-radius: 14px; padding: 14px; font-size: 13.5px; }

/* =====================================================================
   REDESIGN FULL-BLEED: Dokumentasi API & Ambil API Key
   Tanpa border, outline, card, atau kotak pembungkus. Konten menyatu dengan latar.
   ===================================================================== */

/* --- lepas batas lebar & padding dari layout yang membungkus halaman --- */
.content:has(.api-page) { max-width: none; padding: 0 !important; gap: 0; }
main:has(.dk-fw) > .wrap, main:has(.dk-fw) .wrap { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }

/* ================= AMBIL API KEY ================= */
.api-page { --pad: clamp(16px, 4vw, 40px); display: grid; gap: 0; width: 100%; padding-bottom: 40px; overflow: hidden;
  background: linear-gradient(180deg, #FFF3F8 0%, #FFFAFC 60%, #FFFFFF 100%); }
.api-page .card { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
.api-page .muted, .api-page p { color: #6B4A5C; }

/* hero: beruang besar, mengambang di latar */
.api-hero { position: relative; display: flex !important; align-items: center; gap: 18px; padding: clamp(28px, 5vw, 48px) var(--pad) 36px !important; overflow: visible; background: radial-gradient(520px 260px at 100% 0%, #F7EBFF 0%, transparent 70%), radial-gradient(420px 240px at 0% 0%, #FFE1EE 0%, transparent 70%) !important; }
.api-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; background: url("/assets/svg/ui/wave-band.svg") repeat-x 0 100% / 400px 40px; pointer-events: none; }
.api-hero-orn { width: clamp(88px, 22vw, 124px) !important; height: auto !important; flex: none; animation: kw-bob 4.5s ease-in-out infinite; filter: drop-shadow(0 16px 18px rgba(217, 79, 140, .25)); }
.api-hero > div { min-width: 0; }
.api-hero h2 { font: 800 clamp(24px, 5vw, 34px)/1.15 var(--display) !important; color: var(--ink); margin: 0 0 8px; }
.api-hero p { margin: 0 0 8px; font-size: 15px; line-height: 1.6; max-width: 48ch; }
.api-hero a { color: var(--deep-rose); font-weight: 800; text-decoration: none; }
.api-hero a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* bagian: ruang tanpa kotak */
.api-create, .api-list, .api-fresh { padding: 0 var(--pad) !important; margin-top: 28px; display: grid; gap: 14px; }
.api-create h3, .api-list h3, .api-fresh h3 { display: flex; align-items: center; gap: 10px; margin: 0; font: 800 19px/1.2 var(--display); color: var(--ink); }
.api-create h3::before, .api-list h3::before { content: ""; width: 34px; height: 34px; flex: none; background: url("/assets/svg/ornaments/key-gold.svg") no-repeat center / contain; }
.api-create h3 .ic, .api-list h3 .ic, .api-fresh h3 .ic { display: none; }

/* form: isian berisi lembut, tanpa garis */
.api-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.api-form .field { flex: 1 1 220px; display: grid; gap: 6px; font-weight: 700; color: var(--ink); font-size: 14px; }
.api-form .field input { border: 0 !important; outline: 0; background: #FFEAF3; border-radius: 16px; padding: 14px 16px; box-shadow: inset 0 -2px 0 rgba(217, 79, 140, .18); font: 600 15px/1.2 var(--sans); color: var(--ink); transition: background .2s ease, box-shadow .2s ease; }
.api-form .field input:focus { background: #FFF7FB; box-shadow: inset 0 -3px 0 var(--romantic), 0 0 0 4px rgba(249, 168, 200, .25); }
.api-form .btn-primary { min-height: 50px; padding: 0 22px; border-radius: 18px; box-shadow: 0 14px 26px -14px rgba(217, 79, 140, .9); }

/* daftar key: baris penuh dengan latar tipis, dipisah ruang */
.api-items { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.api-item { display: grid; gap: 12px; padding: 18px var(--pad) !important; margin: 0 calc(-1 * var(--pad)) !important; border: 0 !important; border-radius: 0 !important; background: linear-gradient(90deg, #FFF0F6 0%, rgba(255, 240, 246, 0) 80%); box-shadow: none !important; transition: background .25s ease; }
.api-item:hover { background: linear-gradient(90deg, #FFE3EF 0%, rgba(255, 227, 239, 0) 85%); transform: none !important; }
.api-item-head b { font: 800 17px/1.2 var(--display); color: var(--ink); }
.api-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; margin: 0; }
.api-meta div { padding: 0 !important; background: none !important; border: 0 !important; }
.api-meta dt { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #9B7A8B; }
.api-meta dd { font-size: 15px; color: var(--ink); }
.api-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.api-actions .btn { border-radius: 999px !important; min-height: 42px; box-shadow: none; }
.api-actions .btn-ghost { background: #fff; color: var(--deep-rose); }

/* token baru: sorotan lembut, bukan kotak */
.api-fresh { background: linear-gradient(90deg, #E6F6EA, rgba(230, 246, 234, 0)); margin-top: 28px; padding: 22px var(--pad) !important; }
.api-token { background: #fff !important; border: 0 !important; border-radius: 16px !important; box-shadow: inset 0 -2px 0 rgba(108, 180, 134, .35); font: 700 14px/1.4 ui-monospace, Menlo, monospace; padding: 14px 16px !important; color: #2D6B47; }
.api-fresh .ord-num-row { gap: 12px; }

@media (max-width: 640px) {
  .api-hero { flex-direction: column; align-items: flex-start; }
  .api-hero-orn { width: 96px !important; }
  .api-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ================= DOKUMENTASI API ================= */
main:has(.dk-fw) { background: linear-gradient(180deg, #FFF3F8 0%, #FFFAFC 40%, #FFFFFF 100%); }
.dk-fw { width: 100%; display: grid; grid-template-columns: minmax(230px, 280px) minmax(0, 1fr); gap: 0; padding-top: 0 !important; padding-bottom: 60px !important; }

/* sidebar: tanpa garis, bagian aktif dengan latar pink */
.dk-side { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 36px 20px 24px clamp(16px, 3vw, 36px) !important; position: sticky; top: 0; max-height: 100vh; overflow-y: auto; }
.dk-side-title { font: 800 15px/1.3 var(--display) !important; color: var(--deep-rose); margin: 0 0 14px !important; letter-spacing: .02em; }
.dk-search { border: 0 !important; outline: 0; width: 100%; background: #FFEAF3; border-radius: 16px; padding: 12px 14px; font: 600 14px/1.2 var(--sans); color: var(--ink); box-shadow: inset 0 -2px 0 rgba(217, 79, 140, .15); }
.dk-search:focus { background: #FFF7FB; box-shadow: inset 0 -3px 0 var(--romantic); }
.dk-side nav a { display: block; border: 0 !important; border-radius: 12px; padding: 9px 12px; margin: 2px 0; color: #5A3B4C; font-weight: 700; font-size: 14px; text-decoration: none; transition: background .2s ease, color .2s ease, transform .15s ease; }
.dk-side nav a:hover { background: #FFE3EF; color: var(--deep-rose); transform: translateX(3px); }
.dk-side nav a.on, .dk-side nav a[aria-current="true"] { background: linear-gradient(90deg, #FFD0E4, #FFEAF3); color: var(--deep-rose); }

/* konten utama: lebar penuh dengan napas */
.dk-main { padding: 0 clamp(18px, 4vw, 56px) 40px; min-width: 0; }

/* hero: ombak dan beruang, tanpa kotak */
.dk-hero { position: relative; background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; padding: 36px 0 44px !important; overflow: visible; isolation: isolate; }
.dk-hero::before { content: ""; position: absolute; right: clamp(0px, 4vw, 40px); top: 4px; width: clamp(140px, 22vw, 210px); height: clamp(140px, 22vw, 210px); background: url("/assets/svg/ui/bear-hero.svg") no-repeat center / contain; z-index: -1; animation: kw-bob 4.5s ease-in-out infinite; filter: drop-shadow(0 18px 20px rgba(217, 79, 140, .22)); }
.dk-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: url("/assets/svg/ui/sakura-band.svg") repeat-x 0 0 / 240px 40px; opacity: .9; z-index: -1; pointer-events: none; }
.dk-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 0 0 0 28px !important; background: url("/assets/svg/ornaments/deco-sparkle.svg") no-repeat 0 50% / 18px 18px !important; font: 800 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--deep-rose); }
.dk-hero h1 { font: 800 clamp(28px, 5.4vw, 52px)/1.1 var(--display) !important; color: var(--ink); max-width: 16ch; margin: 14px 0 14px; }
.dk-hero .lead { max-width: 52ch; color: #6B4A5C; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.7; margin: 0 0 20px; }
.dk-hero .dk-notice { background: none !important; border: 0 !important; box-shadow: none !important; padding: 12px 0 12px 34px !important; max-width: 56ch; color: #7A4E63; font-size: 14px; position: relative; }
.dk-hero .dk-notice::before { content: ""; position: absolute; left: 0; top: 10px; width: 24px; height: 24px; background: url("/assets/svg/ornaments/heart-bubble.svg") no-repeat center / contain; }
@media (max-width: 900px) {
  .dk-fw { grid-template-columns: 1fr; }
  .dk-side { position: static; max-height: none; padding: 24px clamp(16px, 4vw, 32px) 8px !important; }
  .dk-side nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .dk-side nav a { white-space: nowrap; background: #fff; }
  .dk-hero { padding-top: 24px !important; }
  .dk-hero::before { width: 130px; height: 130px; right: 8px; top: -6px; opacity: .95; }
}

/* sections: tanpa kotak, dipisah ruang & penanda */
.dk-sec { background: none !important; border: 0 !important; box-shadow: none !important; padding: 36px 0 !important; margin: 0 !important; border-radius: 0 !important; }
.dk-sec + .dk-sec { border-top: 0 !important; }
.dk-sec h2 { display: flex; align-items: center; gap: 12px; font: 800 clamp(22px, 3vw, 28px)/1.2 var(--display) !important; color: var(--ink); }
.dk-sec h2::before { content: ""; width: 30px; height: 30px; flex: none; background: url("/assets/svg/ornaments/sparkle-stars.svg") no-repeat center / contain; }
.dk-sec h3 { font: 800 18px/1.3 var(--display); color: var(--ink); }
.dk-sec p { color: #5A3B4C; line-height: 1.7; }
.dk-code { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; overflow: visible; }
.dk-code-bar { background: linear-gradient(90deg, #FFE3EF 0%, rgba(255, 227, 239, 0) 100%) !important; padding: 10px 14px !important; border-radius: 16px 16px 0 0; display: flex; justify-content: space-between; align-items: center; }
.dk-code-bar span { font: 800 13px/1 var(--sans); color: var(--deep-rose); letter-spacing: .04em; }
.dk-code pre { background: #FFF7FB !important; border: 0 !important; border-radius: 0 0 16px 16px !important; padding: 16px !important; margin: 0 !important; }
.dk-copy { background: #fff !important; border: 0 !important; border-radius: 999px !important; padding: 7px 14px !important; color: var(--deep-rose) !important; font-weight: 800; box-shadow: 0 6px 14px -10px rgba(217, 79, 140, .8); transition: transform .15s ease; }
.dk-copy:active { transform: scale(.94); }
.dk-notice, .dk-sec .glass, .dk-hero .glass { background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; }
.dk-top { background: none !important; border: 0 !important; box-shadow: none !important; }

/* ===== PERBAIKAN: padding bagian API key (spesifisitas) & bawah dari bottom nav ===== */
.api-page .api-create, .api-page .api-list, .api-page .api-fresh { padding-left: var(--pad) !important; padding-right: var(--pad) !important; }
.api-page .api-hero { padding-left: var(--pad) !important; padding-right: var(--pad) !important; }
.api-page { padding-bottom: 130px !important; }
.api-page .api-hero { margin-top: 0; }
.api-page .api-hero::before { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; background: url("/assets/svg/ornaments/sparkle-stars.svg") no-repeat center / contain; opacity: .35; pointer-events: none; animation: orn-rock 7s ease-in-out infinite; }
.api-page .api-form .field input { min-width: 0; width: 100%; }
.api-page .api-form .btn-primary { width: 100%; justify-content: center; }
.api-page .api-item { margin-left: 0 !important; margin-right: 0 !important; padding-left: var(--pad) !important; padding-right: var(--pad) !important; }
.api-page .api-actions .btn { width: 100%; justify-content: center; }
.api-page .api-actions form { flex: 1 1 100%; margin: 0; }

/* ===== PERBAIKAN: kode dokumentasi terbaca jelas ===== */
.dk-code pre, .dk-code pre code, .dk-code code { color: #3E2433 !important; font-size: 13.5px !important; line-height: 1.7 !important; text-shadow: none !important; }
.dk-code pre { background: #FFF9FC !important; }
.dk-code pre code span, .dk-code code span { color: inherit !important; }
.dk-code-bar span { color: #C0306E !important; }

/* ===== KAWAII: aksen manis ===== */
.dk-sec h2::after { content: ""; flex: 1; height: 10px; margin-left: 8px; background: radial-gradient(circle, #F9A8C8 2px, transparent 2.5px) 0 50% / 14px 10px repeat-x; opacity: .8; }
.dk-code { position: relative; }
.dk-code::after { content: ""; position: absolute; right: -6px; top: -12px; width: 34px; height: 34px; background: url("/assets/svg/ornaments/deco-sparkle.svg") no-repeat center / contain; pointer-events: none; animation: orn-float 6s ease-in-out infinite; }
.api-items .api-item:nth-child(odd) { background: linear-gradient(90deg, #FFF0F6 0%, rgba(255, 240, 246, 0) 80%); }
.api-items .api-item:nth-child(even) { background: linear-gradient(90deg, #F7EBFF 0%, rgba(247, 235, 255, 0) 80%); }
.api-items .api-item { position: relative; }
.api-items .api-item::before { content: ""; position: absolute; right: var(--pad); top: 14px; width: 34px; height: 34px; background: url("/assets/svg/ornaments/heart-bubble.svg") no-repeat center / contain; opacity: .55; }
.api-create h3::after, .api-list h3::after { content: ""; flex: 1; height: 10px; margin-left: 6px; background: radial-gradient(circle, #F9A8C8 2px, transparent 2.5px) 0 50% / 14px 10px repeat-x; opacity: .8; }
.api-fresh { position: relative; }
.api-fresh::after { content: ""; position: absolute; right: var(--pad); top: -18px; width: 62px; height: 62px; background: url("/assets/svg/ui/bear-hero.svg") no-repeat center / contain; animation: kw-bob 4s ease-in-out infinite; }

/* ============ HALAMAN ERROR: full-bleed, tanpa card/border ============ */
main:has(.err-fw) > .wrap, main:has(.err-fw) .wrap, .content:has(.err-fw) { max-width: none !important; padding: 0 !important; }
.err-fw { position: relative; isolation: isolate; min-height: min(78vh, 720px); width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: clamp(40px, 8vw, 88px) clamp(20px, 5vw, 56px) 120px; overflow: hidden; background: radial-gradient(640px 320px at 50% 0%, #FFE3EF 0%, transparent 70%), radial-gradient(520px 300px at 100% 100%, #F3E5FF 0%, transparent 70%), linear-gradient(180deg, #FFF5F9 0%, #FFFFFF 100%); }
.err-art { width: clamp(150px, 34vw, 230px); height: auto; animation: kw-bob 4.5s ease-in-out infinite; filter: drop-shadow(0 22px 22px rgba(217, 79, 140, .25)); }
.err-code { margin: 6px 0 0; font: 800 clamp(56px, 16vw, 128px)/1 var(--display); letter-spacing: .02em; background: linear-gradient(135deg, #F58BBA, #C2407F 60%, #9B7BD8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err-fw h1 { margin: 0; font: 800 clamp(22px, 4.2vw, 34px)/1.2 var(--display); color: var(--ink); }
.err-msg { margin: 0; max-width: 46ch; color: #6B4A5C; font-size: clamp(15px, 1.6vw, 17px); line-height: 1.7; }
.err-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.err-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: #fff; color: var(--deep-rose); font: 800 15px/1 var(--sans); text-decoration: none; box-shadow: 0 10px 22px -16px rgba(217, 79, 140, .8); transition: transform .15s ease, box-shadow .2s ease; }
.err-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 26px -14px rgba(217, 79, 140, .8); }
.err-btn:active { transform: scale(.96); }
.err-btn-main { background: linear-gradient(135deg, #F58BBA, #D94F8C); color: #fff; box-shadow: 0 16px 28px -14px rgba(217, 79, 140, .9); }
.err-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 40px; object-fit: cover; pointer-events: none; z-index: -1; }
.err-deco { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.err-deco .ed { position: absolute; height: auto; opacity: .55; animation: orn-float 9s ease-in-out infinite; }
.ed-1 { top: 10%; left: 4%; } .ed-2 { top: 18%; right: 6%; animation-delay: -3s; } .ed-3 { bottom: 26%; left: 8%; animation-delay: -5s; } .ed-4 { bottom: 14%; right: 4%; animation-delay: -2s; }
@media (max-width: 640px) { .ed-4, .ed-3 { display: none; } .err-fw { padding-bottom: 110px; } }
@media (prefers-reduced-motion: reduce) { .err-art, .err-deco .ed { animation: none !important; } }

/* ============ NAVBAR BAWAH: terkunci + ikon kawaii ============ */
@media (max-width: 900px) {
  body.app .bnav { position: fixed !important; left: 0; right: 0; bottom: 0; top: auto !important; z-index: 65; transform: translateZ(0); -webkit-transform: translateZ(0); will-change: transform; backface-visibility: hidden; margin: 0; background: linear-gradient(180deg, rgba(255, 250, 252, .94), rgba(255, 244, 249, .98)); border-top: 0 !important; box-shadow: 0 -14px 30px -20px rgba(217, 79, 140, .45) !important; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important; gap: 4px !important; }
  body.app .bnav::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; background: url("/assets/svg/ui/wave-band.svg") repeat-x 0 100% / 400px 14px; pointer-events: none; }
  body.app .bnav a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 4px 0 6px !important; border-radius: 18px !important; background: none !important; color: #8A6A7A !important; font: 800 11px/1.1 var(--sans) !important; transition: transform .2s ease, color .2s ease; -webkit-tap-highlight-color: transparent; }
  body.app .bnav a:active { transform: scale(.92); }
  body.app .bnav .bn-ic { width: 40px; height: 40px; transition: transform .25s cubic-bezier(.3, 1.4, .6, 1); filter: drop-shadow(0 6px 8px rgba(217, 79, 140, .18)); }
  body.app .bnav a.on { color: var(--deep-rose) !important; background: none !important; }
  body.app .bnav a.on .bn-ic { transform: translateY(-4px) scale(1.12); animation: kw-bob 2.8s ease-in-out infinite; }
  body.app .bnav a.on::after { content: ""; position: absolute; bottom: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--romantic); box-shadow: 0 0 0 3px rgba(249, 168, 200, .25); }
  body.app .has-bnav .content { padding-bottom: 124px; }
}
@media (prefers-reduced-motion: reduce) { body.app .bnav a.on .bn-ic { animation: none !important; } }
