/* Fotosphere v9 — Minimal & Clean */
:root{--bg:#f6f7f9;--dark:#18181b;--card:#fff;--bdr:#e4e4e7;--muted:#71717a;--accent:#fb5e93;--accent-hover:#e44b80;--pink:#fb5e93;--r:24px;--safe-top:env(safe-area-inset-top,0px);--safe-bot:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px)}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{font-family:'Plus Jakarta Sans',sans-serif;width:100%;height:100%;overflow:hidden;-webkit-user-select:none;user-select:none;color:var(--dark);background:var(--bg);background-image:radial-gradient(circle at 50% 25%,#ffffff 0%,var(--bg) 85%);-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased}
@media(min-width:769px){html{font-size:clamp(15px,1.08vw,22px)}}

#cam-vid,#slot-cam-vid{filter:brightness(1.14) contrast(1.06) saturate(1.07)}
.screen{position:fixed;inset:0;opacity:0;pointer-events:none;transform:scale(0.985) translateY(6px);transition:opacity .32s cubic-bezier(0.16,1,0.3,1),transform .32s cubic-bezier(0.16,1,0.3,1);z-index:1}
.screen.active{opacity:1;pointer-events:auto;transform:scale(1) translateY(0);z-index:10}

/* Page frame = outer rounded border seen on every page except home */
.pageFrame{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden}

/* Center layout helper */
.vCenter{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem;position:relative}

/* Back button */
.backBtn{position:absolute;top:24px;left:clamp(16px,3vw,50px);z-index:25;width:44px;height:44px;border-radius:50%;background:#ffffff;border:1px solid rgba(0,0,0,0.08);box-shadow:0 4px 14px rgba(0,0,0,0.06);color:var(--dark);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s cubic-bezier(0.16,1,0.3,1)}
.backBtn:hover{transform:translateX(-2px);box-shadow:0 8px 20px rgba(0,0,0,0.1);border-color:rgba(0,0,0,0.15)}
.backBtn:active{transform:scale(0.94)}
#screen-frame .backBtn{display:none!important}

/* Timer pill */
.timerPill{position:absolute;top:27px;right:clamp(16px,3vw,50px);z-index:20;background:var(--dark);border:none;border-radius:50px;padding:0 16px;height:26px;box-sizing:border-box;font-size:.9rem;font-weight:800;letter-spacing:2px;color:#fff;font-variant-numeric:tabular-nums;box-shadow:0 4px 12px rgba(0,0,0,.15);display:flex;align-items:center;justify-content:center;transition:all .3s cubic-bezier(0.34,1.56,0.64,1)}
.timerPill.danger{background:#e53935;box-shadow:0 8px 24px rgba(229,57,53,.3);animation:timerPulse 1s ease-in-out infinite}
@keyframes timerPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}

/* Typography */
.pgTitle{font-size:2.8rem;font-weight:900;letter-spacing:-1px;margin-top:-3vh;color:#09090b;text-align:center;width:100%}
.pgSub{font-size:1.1rem;color:#52525b;font-weight:600;margin-top:.4rem;text-align:center;width:100%}
.pgDesc{font-size:.78rem;color:var(--muted);text-align:center;line-height:1.6;margin-top:1rem}

/* Buttons */
button{font-family:inherit;cursor:pointer;border:none;outline:none;transition:all .15s}
.btn-pink{width:75%;max-width:clamp(480px,38vw,580px);padding:1.15rem 2rem;border-radius:50px;background:linear-gradient(135deg,#ff6b9d,#fb5e93);color:#fff;font-size:1.08rem;font-weight:900;letter-spacing:3.5px;box-shadow:0 10px 28px rgba(251,94,147,.28);margin:1.6rem 0 .6rem;transition:all .15s}
.btn-pink:hover{transform:translateY(-1px);background:linear-gradient(135deg,#ff6096,#e44b80);box-shadow:0 12px 28px rgba(251,94,147,.36)}
.btn-pink:active{transform:translateY(1px);box-shadow:0 4px 12px rgba(251,94,147,.2)}
.btn-accent{background:var(--accent);color:#fff;font-weight:800;padding:.7rem 2rem;border-radius:50px;font-size:.8rem;letter-spacing:1px;transition:all .15s}
.btn-accent:hover{background:var(--accent-hover,#e44b80)}
.btn-accent:active{transform:scale(.95)}
.btn-end{background:var(--accent);color:#fff;font-weight:900;padding:.65rem 1.8rem;border-radius:50px;font-size:.82rem;letter-spacing:2px;box-shadow:0 4px 14px rgba(251,94,147,0.35);transition:all .15s}
.btn-end:hover{background:var(--accent-hover,#e44b80);box-shadow:0 6px 18px rgba(251,94,147,0.45);transform:translateY(-1px)}
.btn-end:active{transform:scale(.95)}
.nextBtn{display:flex;align-items:center;gap:8px;background:var(--accent);color:#fff;font-weight:800;font-size:.78rem;padding:6px 8px 6px 16px;border-radius:50px;white-space:nowrap;box-shadow:0 4px 14px rgba(251,94,147,0.35);transition:all .15s}
.nextBtn:hover{background:var(--accent-hover,#e44b80);box-shadow:0 6px 18px rgba(251,94,147,0.45);transform:translateY(-1px)}
.nextBtn .arrowCircle{width:22px;height:22px;border-radius:50%;border:1.5px solid rgba(255,255,255,.6);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.nextBtn .arrowCircle svg{display:block;width:11px;height:11px;margin-left:1px}
.nextBtn:active{transform:scale(.95)}

/* ═══ HOME ═══ */
.home-hero{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;width:100%}
.home-logo-wrap{display:inline-flex;padding:0;background:transparent;border:none;box-shadow:none;margin-bottom:.6rem;text-decoration:none}
.home-logo-wrap:hover,.home-logo-wrap:active{transform:none}
.home-logo{width:5.4rem;height:5.4rem;object-fit:contain;display:block}
.home-brand{font-size:3rem;font-weight:900;letter-spacing:6px;margin-top:.45rem;color:#09090b}
.home-sub{display:block;font-size:.88rem;font-weight:700;letter-spacing:3.5px;color:#71717a;margin-top:8px;text-transform:uppercase}
.home-tag{font-size:.82rem;color:#888;font-weight:600;margin-top:.7rem}
.home-social{display:flex;gap:1.3rem;margin-top:2rem;flex-wrap:wrap;justify-content:center;align-items:center}
.home-soc-item{display:flex;align-items:center;gap:10px;font-size:.84rem;color:#18181b;text-decoration:none;background:#fff;border:1px solid rgba(0,0,0,.08);padding:10px 20px;border-radius:50px;box-shadow:0 4px 12px rgba(0,0,0,.04);text-align:left;pointer-events:none;cursor:default;user-select:none}
.home-soc-item .socIcon{width:1.45rem;height:1.45rem;border-radius:6px;flex-shrink:0}
.home-soc-item span{color:#18181b;font-size:.84rem;font-weight:700}
.home-pm{margin-top:1.55rem;background:var(--card);border-radius:20px;padding:.95rem 2.5rem;box-shadow:0 6px 20px rgba(0,0,0,.04);border:1px solid rgba(0,0,0,.06);text-align:center}
.pm-lbl{font-size:.58rem;font-weight:800;color:var(--muted);letter-spacing:3.8px;margin-bottom:.5rem;text-transform:uppercase}
.pm-row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;align-items:center}
.pm-row img{height:1.65rem;object-fit:contain}

/* ═══ PAYMENT ═══ */
.pmCards{display:flex;gap:clamp(1.5rem,3vw,2.5rem);justify-content:center;align-items:center;margin-top:clamp(2.2rem,5vh,4rem);padding:0 2rem;flex-wrap:wrap}
.pmCard{
    width:clamp(195px,26vw,285px);
    aspect-ratio:1 / 1.08;
    background:#ffffff;
    border:1.5px solid rgba(0,0,0,0.07);
    border-radius:28px;
    box-shadow:0 18px 40px -12px rgba(0,0,0,0.07),0 4px 12px rgba(0,0,0,0.03);
    display:flex;flex-direction:column;
    cursor:pointer;
    overflow:hidden;
    padding:10px;
    margin-bottom:8px;
    transition:transform .28s cubic-bezier(0.16,1,0.3,1),box-shadow .28s cubic-bezier(0.16,1,0.3,1),border-color .28s ease;
    user-select:none;
}
.pmCard:hover{transform:translateY(-6px);border-color:rgba(251,94,147,0.45);box-shadow:0 24px 48px -12px rgba(251,94,147,0.18),0 8px 20px rgba(0,0,0,0.05)}
.pmCard:active{transform:translateY(-1px) scale(.98)}
.pmTop{
    width:100%;
    flex:1;
    background:#f8f9fb;
    border-radius:20px;
    display:flex;align-items:center;justify-content:center;
    transition:background .25s ease;
}
.pmCard:hover .pmTop{background:#fff0f5}
.pmTop img{width:60%;max-height:62%;object-fit:contain;filter:drop-shadow(0 6px 14px rgba(0,0,0,.07));transition:transform .28s cubic-bezier(0.16,1,0.3,1)}
.pmCard:hover .pmTop img{transform:scale(1.06)}
.pmBottom{
    background:transparent;
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    padding:14px 10px 8px;
}
.pmTitle{
    font-weight:800;
    font-size:clamp(1.1rem,1.4vw,1.35rem);
    color:#18181b;
    text-align:center;
    letter-spacing:-.3px;
    line-height:1.1;
}
.pmDesc{
    font-size:clamp(.72rem,.88vw,.82rem);
    color:#71717a;
    font-weight:600;
    text-align:center;
    margin-top:5px;
    line-height:1.3;
}

/* ═══ TATA CARA PEMBAYARAN (HOW-TO STEPS) ═══ */
.payHowTo{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    margin-top:clamp(1rem,2.2vh,1.75rem);
    padding:10px 20px;
    background:rgba(255,255,255,0.86);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    border:1px solid rgba(0,0,0,0.07);
    border-radius:999px;
    box-shadow:0 8px 24px -6px rgba(0,0,0,0.05);
    max-width:92vw;
    flex-wrap:wrap;
}
.payHowItem{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:clamp(.7rem,.85vw,.78rem);
    font-weight:600;
    color:#52525b;
    line-height:1.35;
}
.payHowItem strong{
    color:#18181b;
    font-weight:800;
}
.payHowNum{
    width:20px;
    height:20px;
    border-radius:50%;
    background:var(--accent);
    color:#ffffff;
    font-size:.66rem;
    font-weight:800;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    box-shadow:0 2px 6px rgba(251,94,147,0.3);
}
.payHowSep{
    width:18px;
    height:1.5px;
    background:#e4e4e7;
    flex-shrink:0;
}


/* ═══ SCAN TICKET ═══ */
.scanBox{width:min(38vh,320px);height:min(38vh,320px);background:#ffffff;border-radius:28px;border:1.5px solid rgba(0,0,0,0.08);box-shadow:0 20px 45px -12px rgba(0,0,0,0.08);position:relative;overflow:hidden;margin:1rem auto}
.scanBox video{width:100%;height:100%;object-fit:cover}
.scanBox #ticket-reader{width:100%;height:100%}
.scanBox #ticket-reader video{width:100%!important;height:100%!important;object-fit:cover!important;transform:none!important}

/* ═══ ACCESS CODE UNIFIED CARD (NO SANDBOX QRIS) ═══ */
.accessCodeCard{
    width:100%;
    max-width:34rem;
    background:#ffffff;
    border-radius:2rem;
    border:1px solid #e4e4e7;
    box-shadow:0 28px 68px -15px rgba(24,24,27,0.08),0 4px 14px rgba(24,24,27,0.03);
    padding:2.6rem 2.5rem 2.4rem;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
}
.accessCodeIconWrap{
    width:3.5rem;
    height:3.5rem;
    border-radius:1.1rem;
    background:#fff1f5;
    border:1px solid #fecdd3;
    color:var(--accent);
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:1.15rem;
}
.accessCodeHeader{
    margin-bottom:1.5rem;
    max-width:26rem;
}
.accessSmartBox{
    width:100%;
    text-align:left;
    padding:1.25rem 1.35rem;
}
.accessInputLabel{
    display:block;
    font-size:.78rem;
    font-weight:800;
    color:#3f3f46;
    margin-bottom:.55rem;
    letter-spacing:.2px;
}
.accessTrialBanner{
    margin-top:.85rem;
    padding-top:.8rem;
    border-top:1px dashed #e2e8f0;
    font-size:.82rem;
    font-weight:500;
    color:#64748b;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:.38rem;
    text-align:center;
}
@media (max-width: 640px) {
    .accessCodeCard{
        padding:1.9rem 1.35rem 1.8rem;
        border-radius:1.6rem;
    }
    .accessSmartBox{
        padding:1rem;
    }
    .qrisInputRow{
        flex-direction:column;
        align-items:stretch;
    }
    .qrisCodeBtn{
        width:100%;
        padding:.85rem 1.2rem;
    }
}

/* ═══ QRIS UNIFIED CHECKOUT (MODERN SPLIT CONTAINER) ═══ */
.qrisCheckoutPage{
    padding:clamp(20px,3vh,36px) clamp(20px,4vw,64px);
    justify-content:center;
    align-items:center;
    overflow-y:auto;
}
.qrisUnifiedShell{
    width:100%;
    max-width:64rem;
    background:#ffffff;
    border-radius:2rem;
    border:1px solid #e4e4e7;
    box-shadow:0 28px 68px -15px rgba(24,24,27,0.09);
    display:grid;
    grid-template-columns:24.5rem 1fr;
    overflow:hidden;
}
.qrisLeftPane{
    background:#f8fafc;
    border-right:1px solid #eef2f6;
    color:#18181b;
    padding:2.2rem 1.85rem;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:.4rem;
    text-align:center;
}
.qrBox{
    width:18.6rem;
    height:18.6rem;
    min-width:18.6rem;
    min-height:18.6rem;
    flex-shrink:0;
    background:#ffffff;
    border:1px solid #e2e8f0;
    border-radius:1.6rem;
    padding:.75rem;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 14px 32px -10px rgba(15,23,42,0.07);
    margin:.1rem auto .9rem;
    overflow:hidden;
}
.qrBox img{
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
    border-radius:.5rem;
}
.qrSkeleton{
    width:100%;
    height:100%;
    position:relative;
    border-radius:.55rem;
    background-color:#f8fafc;
    background-image:
        radial-gradient(#e2e8f0 28%, transparent 29%),
        linear-gradient(110deg, rgba(255,255,255,0) 35%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0) 65%);
    background-size:14px 14px, 220% 100%;
    animation:qrSkShimmer 1.5s infinite linear;
}
.qrSkEye{
    position:absolute;
    width:26%;
    height:26%;
    border:.32rem solid #cbd5e1;
    border-radius:.45rem;
    background:#ffffff;
}
.qrSkEye::after{
    content:"";
    position:absolute;
    inset:22%;
    background:#cbd5e1;
    border-radius:.2rem;
}
.qrSkEye.tl{top:6%;left:6%}
.qrSkEye.tr{top:6%;right:6%}
.qrSkEye.bl{bottom:6%;left:6%}
.qrSkCenter{
    position:absolute;
    inset:37%;
    border-radius:.45rem;
    background:#e2e8f0;
    border:.22rem solid #ffffff;
}
@keyframes qrSkShimmer{
    0%{background-position:0 0, 180% 0}
    100%{background-position:0 0, -40% 0}
}
.qrisPriceBlock{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:.25rem;
    margin-bottom:.4rem;
}
.qrisPriceLabel{
    font-size:.68rem;
    font-weight:800;
    letter-spacing:1.5px;
    color:#64748b;
}
.qrisPromoAppliedRow{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:.5rem;
    flex-wrap:wrap;
    margin-top:.15rem;
}
.qrisOldPrice{
    font-size:.9rem;
    font-weight:700;
    color:#94a3b8;
    text-decoration:line-through;
}
.qrisPromoPill{
    display:inline-flex;
    align-items:center;
    gap:.4rem;
    background:#ecfdf5;
    color:#059669;
    border:1px solid #a7f3d0;
    border-radius:999px;
    padding:.18rem .7rem;
    font-size:.7rem;
    font-weight:800;
}
.qrisPromoClearBtn{
    background:transparent;
    color:#059669;
    border:none;
    font-size:.76rem;
    font-weight:900;
    cursor:pointer;
    padding:0 .15rem;
}
.qrPrice{
    font-size:2.25rem;
    font-weight:900;
    letter-spacing:-0.5px;
    color:#18181b;
    line-height:1.1;
}
.qrisTimerPill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:.42rem;
    margin-top:.2rem;
    padding:.38rem .95rem;
    border-radius:999px;
    background:#ffffff;
    border:1px solid #e2e8f0;
    color:#475569;
    font-size:.76rem;
    font-weight:700;
    font-variant-numeric:tabular-nums;
    box-shadow:0 2px 8px rgba(15,23,42,0.04);
    transition:all .25s ease;
}
.qrisTimerPill strong{
    color:#18181b;
    font-weight:800;
    letter-spacing:.5px;
}
.qrisTimerPill.danger{
    background:#fef2f2;
    border-color:#fecdd3;
    color:#e11d48;
    animation:timerPulse 1s ease-in-out infinite;
}
.qrisTimerPill.danger strong{
    color:#be123c;
}
.qrisStatusText{
    margin-top:.35rem!important;
    min-height:1.95rem;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:.74rem;
    font-weight:600;
    color:#64748b;
    line-height:1.35;
}
.qrisRefPill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:8.6rem;
    height:1.85rem;
    padding:0 .85rem;
    border-radius:999px;
    background:#ffffff;
    border:1px solid #e2e8f0;
    color:#475569;
    font-size:.72rem;
    font-weight:800;
    letter-spacing:1px;
    font-variant-numeric:tabular-nums;
    box-shadow:0 2px 6px rgba(15,23,42,0.03);
}
.qrisRefSkeleton{
    color:#94a3b8;
}
.qrisRefPill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:8.6rem;
    height:1.85rem;
    padding:0 .85rem;
    border-radius:999px;
    background:#ffffff;
    border:1px solid #e2e8f0;
    color:#475569;
    font-size:.72rem;
    font-weight:800;
    letter-spacing:1px;
    font-variant-numeric:tabular-nums;
    box-shadow:0 2px 6px rgba(15,23,42,0.03);
}
.qrisRefSkeleton{
    color:#94a3b8;
}

/* Right Pane: Calm, Structured Steps + Single Code Input */
.qrisRightPane{
    padding:2.3rem 2.6rem;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    text-align:left;
    background:#ffffff;
}
.qrisRightHeader{
    margin-bottom:1.25rem;
}
.qrisStepEyebrow{
    display:inline-block;
    font-size:.7rem;
    font-weight:800;
    letter-spacing:1.5px;
    color:var(--accent);
    margin-bottom:.3rem;
}
.qrisRightTitle{
    font-size:1.75rem;
    font-weight:900;
    color:#18181b;
    letter-spacing:-0.4px;
    line-height:1.15;
}
.qrisRightSub{
    font-size:.88rem;
    font-weight:500;
    color:#71717a;
    margin-top:.3rem;
}
.qrisModernSteps{
    display:flex;
    flex-direction:column;
    gap:1.05rem;
}
.qrisModernStep{
    display:flex;
    align-items:flex-start;
    gap:1rem;
}
.qrisStepBadge{
    width:2.25rem;
    height:2.25rem;
    border-radius:.7rem;
    background:#f4f4f5;
    color:#18181b;
    font-size:.8rem;
    font-weight:900;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    margin-top:1px;
}
.qrisStepHead{
    font-size:.94rem;
    font-weight:800;
    color:#18181b;
}
.qrisStepDesc{
    font-size:.82rem;
    font-weight:500;
    color:#71717a;
    line-height:1.42;
    margin-top:.12rem;
}
.qrisPaneDivider{
    height:1px;
    background:#f1f5f9;
    margin:1.35rem 0;
}
.qrisSmartCodeBox{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:1.35rem;
    padding:1.15rem 1.3rem;
}
.qrisSmartCodeHeader{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:.5rem;
    margin-bottom:.7rem;
}
.qrisSmartCodeTitle{
    font-size:.9rem;
    font-weight:800;
    color:#18181b;
}
.qrisSmartCodeTag{
    font-size:.7rem;
    font-weight:700;
    color:#64748b;
    background:#ffffff;
    border:1px solid #e2e8f0;
    padding:.22rem .65rem;
    border-radius:999px;
}
.qrisInputRow{
    display:flex;
    gap:.6rem;
    align-items:center;
}
.qrisCodeInput{
    flex:1;
    min-width:0;
    padding:.8rem 1rem;
    border:1.5px solid #e2e8f0;
    background:#ffffff;
    border-radius:.85rem;
    font-size:.92rem;
    font-weight:800;
    color:#18181b;
    letter-spacing:1.2px;
    text-transform:uppercase;
    outline:none;
    font-family:inherit;
    transition:all .18s ease;
}
.qrisCodeInput::placeholder{
    font-weight:500;
    font-size:.84rem;
    color:#94a3b8;
    letter-spacing:0;
    text-transform:none;
}
.qrisCodeInput:focus{
    border-color:var(--accent);
    box-shadow:0 0 0 3px rgba(251,94,147,0.12);
}
.qrisCodeBtn{
    background:var(--accent);
    color:#ffffff;
    font-weight:800;
    font-size:.86rem;
    padding:.8rem 1.4rem;
    border-radius:.85rem;
    border:none;
    cursor:pointer;
    white-space:nowrap;
    box-shadow:0 4px 14px rgba(251,94,147,0.28);
    transition:all .18s ease;
}
.qrisCodeBtn:hover{
    background:var(--accent-hover);
    transform:translateY(-1px);
}
.qrisCodeBtn:active{transform:scale(0.97)}
.qrisSmartCodeHint{
    margin-top:.65rem;
    font-size:.82rem;
    font-weight:500;
    color:#64748b;
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:.35rem;
}
.qrisCodeHighlight{
    font-family:inherit;
    font-size:.78rem;
    font-weight:800;
    color:#0f172a;
    background:#ffffff;
    border:1.5px solid #cbd5e1;
    padding:.18rem .55rem;
    border-radius:.45rem;
    letter-spacing:.6px;
    cursor:pointer;
    transition:all .15s ease;
}
.qrisCodeHighlight:hover{
    border-color:var(--accent);
    color:var(--accent);
    background:#fff1f5;
}
.qrisCodeHighlight:active{
    transform:scale(0.96);
}
.qrisCodeFeedback{
    display:none!important;
}

/* Floating Top Notification Bar (Zero Layout Shift) */
.kioskNotifBar{
    position:fixed;
    top:1.5rem;
    left:50%;
    transform:translate(-50%,-18px) scale(0.97);
    opacity:0;
    pointer-events:none;
    z-index:9999;
    display:inline-flex;
    align-items:center;
    gap:.6rem;
    padding:.72rem 1.25rem;
    border-radius:999px;
    font-size:.84rem;
    font-weight:700;
    letter-spacing:.1px;
    white-space:nowrap;
    max-width:92vw;
    box-shadow:0 16px 36px -8px rgba(15,23,42,0.14),0 4px 12px rgba(15,23,42,0.06);
    transition:transform .28s cubic-bezier(0.16,1,0.3,1),opacity .24s ease;
}
.kioskNotifBar.show{
    transform:translate(-50%,0) scale(1);
    opacity:1;
}
.kioskNotifBar.err{
    background:#fff1f2;
    color:#be123c;
    border:1px solid #fecdd3;
}
.kioskNotifBar.ok{
    background:#ecfdf5;
    color:#047857;
    border:1px solid #a7f3d0;
}
.kioskNotifIcon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}
.kioskNotifText{
    overflow:hidden;
    text-overflow:ellipsis;
}

@media (max-width: 820px) {
    .qrisUnifiedShell{
        grid-template-columns:1fr;
        max-width:440px;
    }
    .qrisRightPane{
        padding:24px 22px;
    }
    .qrBox{
        width:200px;
        height:200px;
    }
}

/* ═══ VOUCHER ═══ */
.vcCard{
    background:#ffffff;
    border-radius:28px;
    border:1.5px solid rgba(0,0,0,0.08);
    box-shadow:0 24px 50px -12px rgba(0,0,0,0.08);
    padding:2.5rem 2.5rem 2.8rem;
    text-align:center;
    max-width:460px;
    width:90%;
    margin:1.5rem auto;
}
.vcLabel{font-size:1rem;font-weight:800;color:#18181b;margin-bottom:1.1rem}
.vcInput{
    width:100%;
    padding:0.95rem 1rem;
    border:1.5px solid #e4e4e7;
    background:#f8fafc;
    border-radius:18px;
    font-size:1.45rem;
    font-weight:800;
    text-align:center;
    outline:none;
    margin-bottom:1.2rem;
    font-family:inherit;
    letter-spacing:3px;
    text-transform:uppercase;
    transition:all .2s ease;
}
.vcInput::placeholder{font-weight:600;font-size:.95rem;color:#a1a1aa;letter-spacing:0;text-transform:none;transition:color .2s}
.vcInput:focus::placeholder{color:transparent}
.vcInput:focus{background:#fff;border-color:var(--accent);box-shadow:0 0 0 4px rgba(251,94,147,0.12)}
.vcBtn{
    background:linear-gradient(135deg,#ff6b9d,#fb5e93);
    color:#fff;
    font-weight:800;
    font-size:1rem;
    padding:1rem 2rem;
    border:none;
    border-radius:50px;
    box-shadow:0 8px 24px rgba(251,94,147,0.3);
    letter-spacing:1px;
    cursor:pointer;
    transition:all .2s cubic-bezier(0.16,1,0.3,1);
    width:100%;
}
.vcBtn:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(251,94,147,0.4)}
.vcBtn:active{transform:scale(0.98)}

/* ═══ SPLIT LAYOUT (frame/shoot/emoji/filter pages) ═══ */
.splitWrap{position:absolute;inset:0;overflow:hidden;display:flex;flex-direction:column}
.topLogo{position:absolute;top:1.5rem;left:clamp(1rem,3vw,3.1rem);z-index:20;display:flex;align-items:center;gap:.55rem}
.topLogo img{width:1.75rem;height:1.75rem;border-radius:.4rem;object-fit:contain}
.topLogo span{font-size:1.08rem;font-weight:900;letter-spacing:1.5px;color:var(--dark)}
.splitInner{flex:1;display:flex;gap:clamp(1.1rem,2vw,1.8rem);padding:clamp(1rem,2vw,1.8rem) clamp(1rem,3vw,3.1rem);padding-top:clamp(4.6rem,7.2vh,5.5rem);min-height:0;align-items:stretch;justify-content:center}
.splitL{flex:2.15;min-width:0;max-height:100%;display:flex;min-height:0}
.splitR{flex:1;min-width:19rem;max-width:25.5rem;max-height:100%;display:flex;flex-direction:column;min-height:0}

/* Bordered card (left panel) — Clean Light Theme */
.bCard{width:100%;display:flex;flex-direction:column;background:#ffffff;border:1px solid #e2e8f0;border-radius:1.65rem;box-shadow:0 20px 48px -14px rgba(15,23,42,0.06);overflow:hidden;min-height:0;flex:1}
.bCardHead{background:#f8fafc;border-bottom:1px solid #eef2f6;color:#18181b;font-size:.95rem;font-weight:800;padding:.95rem 1.4rem;letter-spacing:.3px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.bCardTitle{font-size:1.02rem;font-weight:900;color:#18181b;letter-spacing:-.2px}
.frameCustomTicketBtn{background:#ffffff;color:#18181b;border:1px solid #e2e8f0;border-radius:999px;padding:.45rem 1rem;font-size:.74rem;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:.45rem;box-shadow:0 2px 6px rgba(15,23,42,0.04);transition:all .18s ease}
.frameCustomTicketBtn svg{color:var(--accent)}
.frameCustomTicketBtn:hover{border-color:var(--accent);color:var(--accent);transform:translateY(-1px)}
.btnChangeSize{background:#ffffff;color:#475569;border:1.5px solid #e2e8f0;border-radius:999px;padding:.4rem .9rem;font-size:.75rem;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:.35rem;transition:all .18s ease;font-family:inherit;position:relative;z-index:5;flex-shrink:0}
.btnChangeSize:hover{border-color:var(--accent);color:var(--accent);background:#fff1f5}
.btnChangeSize:active{transform:scale(0.96)}

/* Frame Size Selection Screen (4R vs 2R) */
.frameSizeGrid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:1.5rem;
    width:min(92vw, 48rem);
    margin-top:2rem;
}
.frameSizeCard{
    background:#ffffff;
    border:1.5px solid #e2e8f0;
    border-radius:1.75rem;
    padding:2rem 1.75rem;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    cursor:pointer;
    font-family:inherit;
    box-shadow:0 16px 36px -12px rgba(15,23,42,0.06);
    transition:all .22s cubic-bezier(0.16,1,0.3,1);
}
.frameSizeCard:hover{
    border-color:var(--accent);
    transform:translateY(-4px);
    box-shadow:0 22px 44px -12px rgba(251,94,147,0.18);
}
.frameSizeCard:active{
    transform:scale(0.97);
}
.frameSizeVisual{
    height:124px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:1.1rem;
}
.frameSizeBadge{
    display:inline-flex;
    align-items:center;
    padding:.28rem .8rem;
    border-radius:999px;
    background:#fff1f5;
    color:var(--accent);
    border:1px solid #fecdd3;
    font-size:.74rem;
    font-weight:800;
    letter-spacing:.4px;
    margin-bottom:.65rem;
}
.frameSizeTitle{
    font-size:1.25rem;
    font-weight:900;
    color:#18181b;
    letter-spacing:-.3px;
    margin-bottom:.35rem;
}
.frameSizeSub{
    font-size:.86rem;
    font-weight:500;
    color:#64748b;
    line-height:1.45;
    max-width:26ch;
}
@media(max-width:768px){
    .frameSizeGrid{
        grid-template-columns:1fr;
        gap:1rem;
        width:90vw;
        margin-top:1.25rem;
    }
    .frameSizeCard{
        padding:1.4rem 1.25rem;
    }
}
.bCardBody{flex:1;overflow-y:auto;overflow-x:hidden;min-height:0;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;transform:translateZ(0)}
.bCardBody::-webkit-scrollbar{width:6px}
.bCardBody::-webkit-scrollbar-track{background:transparent}
.bCardBody::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}

/* Phone mockup (right panel) — Clean Light Theme */
.phone{width:100%;display:flex;flex-direction:column;background:#ffffff;border:1px solid #e2e8f0;border-radius:1.65rem;box-shadow:0 20px 48px -14px rgba(15,23,42,0.06);overflow:hidden;min-height:0;flex:1}
.phoneScr{flex:1;display:flex;align-items:center;justify-content:center;padding:1rem;position:relative;min-height:0;overflow:hidden;background:#f8fafc}
.phoneScr img{max-width:100%;max-height:100%;object-fit:contain;border-radius:.5rem;box-shadow:0 10px 28px rgba(15,23,42,0.08)}
.phoneFoot{background:#ffffff;border-top:1px solid #eef2f6;color:#18181b;padding:.85rem 1.2rem;display:flex;align-items:center;justify-content:space-between;font-size:.72rem;font-weight:700;flex-shrink:0;gap:.75rem}
.fInfoCol{display:flex;flex-direction:column;gap:2px;line-height:1.25}
.fInfoTitle{font-size:.82rem;font-weight:800;color:#18181b}
.fInfoSub{font-size:.66rem;font-weight:600;color:#64748b}
.fInfoCol.highlight .fInfoTitle{color:var(--accent)}
.fInfoCol.highlight .fInfoSub{color:#64748b}
.prevPh{font-size:.8rem;color:#94a3b8;font-weight:600}

/* ═══ FRAME CATEGORY TABS ═══ */
.catTabs{position:sticky;top:0;z-index:5;flex-shrink:0;padding:.85rem 1.25rem .65rem;border-bottom:1px solid #eef2f6;background:#ffffff}
.catTabsInner{display:flex;gap:.5rem;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:2px}
.catTabsInner::-webkit-scrollbar{display:none}
.catTab{flex-shrink:0;background:#f1f5f9;color:#64748b;padding:.48rem 1.15rem;border-radius:999px;font-weight:800;font-size:.76rem;letter-spacing:.3px;border:1px solid transparent;cursor:pointer;white-space:nowrap;transition:all .18s ease}
.catTab.active{background:var(--accent,#fb5e93);color:#fff;box-shadow:0 4px 12px rgba(251,94,147,.3)}
.catTab:hover:not(.active){background:#e2e8f0;color:#18181b}
.catTab:active{transform:scale(.96)}

/* ═══ FRAME GRID ═══ */
.frameGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(8.2rem,1fr));gap:.75rem;padding:.9rem 1.15rem;contain:layout style}
.fc{background:#ffffff;border:1.5px solid #e2e8f0;border-radius:1rem;padding:.5rem .5rem .65rem;text-align:center;cursor:pointer;transition:border-color .2s ease,transform .2s cubic-bezier(0.16,1,0.3,1),box-shadow .2s ease;min-width:0;overflow:hidden;width:100%;max-width:9.8rem;margin:0 auto;content-visibility:auto;contain-intrinsic-size:135px 220px;transform:translateZ(0);backface-visibility:hidden}
.fc:hover{border-color:#cbd5e1;transform:translateY(-3px);box-shadow:0 12px 24px -8px rgba(15,23,42,.07)}
.fc.sel{border-color:var(--accent);background:#fff0f5;box-shadow:0 10px 24px -6px rgba(251,94,147,.25)}
.fcThumb{width:100%;aspect-ratio:2/3;border-radius:.75rem;overflow:hidden;margin-bottom:.45rem;background:#f8fafc;padding:.3rem}
.fcThumb img{width:100%;height:100%;object-fit:contain;image-rendering:auto;transition:transform .2s ease}
.fc:hover .fcThumb img{transform:scale(1.03)}
.fcName{font-size:.74rem;font-weight:800;color:#18181b;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fcBadge{font-size:.62rem;color:#64748b;font-weight:600;margin-top:1px}

/* ═══ CAMERA ═══ */
.camCol{flex-direction:column!important;display:flex!important;gap:.65rem;min-height:0!important;max-height:100%!important;flex:2!important}
.camCard{flex:1 1 0%!important;background:var(--card);border:1px solid rgba(0,0,0,0.08);border-radius:24px;box-shadow:0 16px 40px -12px rgba(0,0,0,0.07);overflow:hidden;position:relative!important;min-height:0!important}
.camCard video{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important}
.camCD{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:5;background:rgba(0,0,0,.1)}
.camCD span{width:4.4rem;height:4.4rem;border-radius:50%;border:2px solid rgba(255,255,255,.65);display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:900;color:#ffffff;background:rgba(9,9,11,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);text-shadow:0 2px 8px rgba(0,0,0,.4)}
.camFlash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none;z-index:6}
.camTapOverlay{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;cursor:pointer;background:rgba(9,9,11,0.12);transition:opacity .25s ease}
.camTapOverlay.hidden{opacity:0;pointer-events:none}
.camShutterTrigger{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.65rem;pointer-events:none;transition:transform .2s cubic-bezier(0.16,1,0.3,1)}
.camTapOverlay:hover .camShutterTrigger{transform:scale(1.05)}
.camTapOverlay:active .camShutterTrigger{transform:scale(0.95)}
.camShutterCircle{width:68px;height:68px;border-radius:50%;background:rgba(15,23,42,0.65);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:2.5px solid rgba(255,255,255,0.9);box-shadow:0 12px 30px rgba(0,0,0,0.35),0 0 0 1px rgba(255,255,255,0.2);display:flex;align-items:center;justify-content:center;color:#ffffff;animation:shutterPulse 2s infinite ease-in-out}
@keyframes shutterPulse{0%,100%{transform:scale(1);box-shadow:0 12px 30px rgba(0,0,0,0.35),0 0 0 0 rgba(251,94,147,0.4)}50%{transform:scale(1.04);box-shadow:0 14px 36px rgba(0,0,0,0.4),0 0 0 8px rgba(251,94,147,0)}}
.camShutterLabel{padding:.4rem 1.15rem;border-radius:999px;background:rgba(15,23,42,0.65);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,0.25);color:#ffffff;font-size:.8rem;font-weight:800;letter-spacing:1px;text-transform:uppercase;box-shadow:0 4px 14px rgba(0,0,0,0.25)}

/* Crop guide */
.cropGuide{position:absolute;inset:0;z-index:2;pointer-events:none}
.cropBar{position:absolute;background:rgba(15,23,42,0.42);backdrop-filter:blur(1.5px);-webkit-backdrop-filter:blur(1.5px);transition:all .2s cubic-bezier(0.16,1,0.3,1)}
.cropTop{top:0;left:0;right:0}.cropBot{bottom:0;left:0;right:0}
.cropLeft{left:0}.cropRight{right:0}
.cropCenter{position:absolute;border:2.5px dashed rgba(255,255,255,0.92);border-radius:16px;box-shadow:0 0 0 1px rgba(0,0,0,0.3),inset 0 0 0 1px rgba(0,0,0,0.18);pointer-events:none;transition:all .2s cubic-bezier(0.16,1,0.3,1)}

/* Camera controls bar — Clean Light Theme */
.camCtrls{display:grid;grid-template-columns:repeat(5,1fr);gap:.6rem;width:100%;flex-shrink:0;margin-bottom:2px}
.cg{background:#ffffff;border:1px solid #e2e8f0;border-radius:1.05rem;padding:.55rem .75rem .62rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.38rem;box-shadow:0 4px 12px rgba(15,23,42,0.04)}
.cg .cgL{color:#64748b;font-size:.6rem;font-weight:800;letter-spacing:.5px;white-space:nowrap;text-transform:uppercase}
.cgBtns{display:flex;gap:.28rem;align-items:center;justify-content:center;background:#f1f5f9;padding:3px;border-radius:999px;width:fit-content}
.cg .cgB{background:transparent;color:#64748b;font-weight:800;padding:.32rem .85rem;border-radius:999px;font-size:.7rem;border:none;cursor:pointer;white-space:nowrap;transition:all .15s}
.cg .cgB.on{background:var(--accent);color:#fff;box-shadow:0 2px 8px rgba(251,94,147,0.32)}
.cg .cgB:active{transform:scale(.95)}

/* Frame preview slots */
.framePrev{position:relative;max-width:100%;max-height:100%;background:#f2f2f2}
.framePrev .frameImg{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;z-index:2;pointer-events:none}
.framePrev .slotWrap{position:absolute;overflow:hidden;z-index:1}
.framePrev .slotWrap img,.framePrev .slotWrap video{width:100%;height:100%;object-fit:cover;border-radius:2px;display:block}
.retakeBtn{position:absolute;bottom:-14px;left:50%;transform:translateX(-50%);background:var(--accent);color:#fff;font-size:.4rem;font-weight:900;padding:2px 8px;border-radius:50px;z-index:3;cursor:pointer;border:none;white-space:nowrap}
.slotActive{box-shadow:inset 0 0 0 2px rgba(255,255,255,0.8);animation:pulseSlot 1.5s ease-in-out infinite}
@keyframes pulseSlot{0%,100%{box-shadow:inset 0 0 0 2px rgba(255,255,255,0.8)}50%{box-shadow:inset 0 0 0 2px rgba(255,255,255,0.1)}}
.slotNumber{font-size:.5rem;font-weight:900;color:#ccc}
.slotWrap img:hover{filter:brightness(.8);transition:.2s;cursor:pointer}

/* ═══ EMOJI ═══ */
.emojiGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(60px,1fr));gap:8px;padding:12px}
.emojiItem{aspect-ratio:1;border-radius:50%;border:2px solid var(--accent);background:var(--card);display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:all .15s;gap:1px;padding:2px;width:60px;margin:0 auto}
.emojiItem:hover{background:#fef0f0;transform:scale(.95)}
.emojiItem.sel{background:var(--accent);color:#fff;border-color:var(--accent)}
.emojiItem .eChar{font-size:1.1rem}
.emojiItem .eName{font-size:.42rem;font-weight:700;letter-spacing:.2px}
.emojiOverlayItem{position:absolute;pointer-events:none;animation:ePop .3s ease}
@keyframes ePop{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}

/* ═══ FILTER ═══ */
.filterCardHead{justify-content:center;padding:.75rem 1.25rem}
.filterToolbarWrap{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:1.1rem 1.25rem .4rem}
.filterModeSwitch{display:inline-flex;position:relative;background:#f1f5f9;border:1px solid #e2e8f0;padding:4px;border-radius:999px}
.filterModeBtn{position:relative;z-index:2;padding:.5rem 1.35rem;border:none;background:transparent;border-radius:999px;font-size:.78rem;font-weight:800;cursor:pointer;transition:color .25s ease}
.filterGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(9.2rem,1fr));gap:.85rem;padding:.9rem 1.25rem 1.35rem;align-content:start}
.filterItem{background:#ffffff;border:1.5px solid #e2e8f0;border-radius:1rem;padding:.55rem .55rem .7rem;text-align:center;transition:all .2s cubic-bezier(0.16,1,0.3,1);cursor:pointer;width:100%;max-width:10.4rem;margin:0 auto}
.filterItem:hover{border-color:#cbd5e1;transform:translateY(-2px);box-shadow:0 10px 20px -8px rgba(15,23,42,0.07)}
.filterItem.sel{border-color:var(--accent);background:#fff0f5;box-shadow:0 8px 20px -6px rgba(251,94,147,0.25)}
.filterItem .fcThumb{width:100%;aspect-ratio:1;border-radius:.7rem;overflow:hidden;margin-bottom:.45rem;background:#f1f5f9;position:relative;padding:0}
.filterItem .fltThumb{width:100%;height:100%;object-fit:cover}
.filterItem .fcName{font-size:.74rem;font-weight:800;color:#18181b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.filterItem.sel .fcName{color:var(--accent)}
.spin{width:28px;height:28px;border:3px solid var(--bdr);border-top-color:var(--accent);border-radius:50%;animation:sp .7s linear infinite;position:absolute}
@keyframes sp{to{transform:rotate(360deg)}}

/* ═══ DONE ═══ */
.doneSplit{width:100%;height:100%;display:flex;gap:clamp(1.5rem,3vw,3.5rem);padding:clamp(1.5rem,3vw,3rem);align-items:center;justify-content:center}
.doneL{flex:1;min-width:240px;max-width:360px;height:100%;max-height:640px;display:flex;flex-direction:column;flex-shrink:0}
.doneRWrap{flex:1.5;min-width:280px;max-width:520px;height:100%;max-height:640px;display:flex;flex-direction:column;gap:.8rem;flex-shrink:0}
.doneR{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.6rem;background:var(--card);border:1px solid rgba(0,0,0,0.08);border-radius:28px;box-shadow:0 20px 45px -12px rgba(0,0,0,0.07);padding:clamp(1.2rem,2vw,2rem);text-align:center;overflow:hidden}
.donePhone{flex:1;background:var(--card);border:1px solid rgba(0,0,0,0.08);border-radius:28px;box-shadow:0 20px 45px -12px rgba(0,0,0,0.07);overflow:hidden;display:flex;flex-direction:column;min-height:0}
.donePhScr{flex:1;position:relative;display:flex;align-items:center;justify-content:center;padding:10px;min-height:0;overflow:hidden;background:#f8f9fa}
.doneViewLayer{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:10px;opacity:0;pointer-events:none;visibility:hidden;transition:opacity .22s ease, transform .22s ease;transform:scale(0.985)}
.doneViewLayer.active{opacity:1;pointer-events:auto;visibility:visible;transform:scale(1)}
.donePhScr img,.donePhScr video{max-width:100%;max-height:100%;object-fit:contain;border-radius:6px;box-shadow:0 8px 24px rgba(0,0,0,0.08)}
.donePhChin{background:#ffffff;border-top:1px solid #eef2f6;padding:clamp(8px,1.5vw,14px) 10px;flex-shrink:0}
.dtRow{display:flex;gap:6px;justify-content:center;background:#f1f5f9;padding:4px;border-radius:999px;width:fit-content;margin:0 auto}
.dtBtn{background:transparent;color:#64748b;font-weight:800;font-size:clamp(.68rem,.9vw,.78rem);padding:6px clamp(14px,1.5vw,22px);border-radius:999px;border:none;cursor:pointer;opacity:1;transition:all .15s}
.dtBtn.on{background:var(--accent);color:#fff;box-shadow:0 2px 8px rgba(251,94,147,.3)}
.dtBtn:active{transform:scale(.95)}
.doneTitle{font-size:clamp(1rem,2vw,1.5rem);font-weight:900;letter-spacing:clamp(1px,.3vw,3px)}
.doneSub{font-size:clamp(.65rem,1vw,.78rem);color:var(--muted)}
.doneQR{width:clamp(160px,22vw,250px);height:clamp(160px,22vw,250px);display:flex;align-items:center;justify-content:center;overflow:hidden;background:transparent;padding:0;border:none}
.doneQR img{width:100%;height:100%;object-fit:contain;border-radius:0}
.doneSocial{display:flex;gap:clamp(.5rem,1vw,1rem);margin-top:.5rem;flex-wrap:wrap;justify-content:center}
.doneSocItem{display:flex;align-items:center;gap:8px;font-size:clamp(.6rem,.8vw,.7rem);font-weight:700;text-align:left}
.doneSocItem .sIcon{width:28px;height:28px;display:flex;align-items:center;justify-content:center;font-size:1.1rem}
.socIcon{width:clamp(28px,3vw,36px);height:clamp(28px,3vw,36px);object-fit:contain;border-radius:8px;flex-shrink:0}
.socIcon.tt{transform:scale(1.15)}
.doneBot{display:flex;align-items:center;justify-content:flex-end;gap:1rem;width:100%}
.doneHash{background:var(--card);border:1px solid rgba(0,0,0,0.08);border-radius:50px;padding:8px clamp(12px,2vw,24px);font-size:clamp(.6rem,.8vw,.72rem);font-weight:800;letter-spacing:1px}



/* ═══ OVERLAYS ═══ */
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:200;gap:.8rem}
.successCard{background:var(--card);border:1px solid rgba(0,0,0,0.08);border-radius:28px;padding:2.5rem 2.5rem;text-align:center;box-shadow:0 28px 60px -12px rgba(0,0,0,0.25);animation:popInModal .3s cubic-bezier(0.16,1,0.3,1);width:380px;max-width:90vw}
@keyframes popIn{from{transform:scale(.8) translateY(20px);opacity:0;box-shadow:0 0 0 var(--dark)}to{transform:scale(1) translateY(0);opacity:1;box-shadow:0 12px 0 var(--dark)}}
.progTrack{width:100%;height:28px;background:#f4f4f5;border:3px solid var(--dark);border-radius:20px;overflow:hidden;position:relative;box-shadow:inset 0 4px 0 rgba(0,0,0,.05)}
.progFill{width:0%;height:100%;background:repeating-linear-gradient(45deg,var(--pink),var(--pink) 15px,var(--accent) 15px,var(--accent) 30px);background-size:42px 42px;animation:moveStripes 1s linear infinite;transition:width .3s cubic-bezier(0.34,1.56,0.64,1);border-right:3px solid var(--dark);border-radius:0 20px 20px 0}
@keyframes moveStripes{0%{background-position:0 0}100%{background-position:42px 0}}
.successIcon{font-size:2.8rem;margin-bottom:.6rem;display:inline-flex;align-items:center;justify-content:center}
#overlay-modal .successIcon{width:3.4rem;height:3.4rem;border-radius:50%;background:#fff1f2;color:#fb5e93;font-size:1.5rem;margin:0 auto .85rem}
.successText{font-size:1.15rem;font-weight:900;letter-spacing:-.2px;color:#18181b}
.successSub{font-size:.82rem;color:#4CAF50;font-weight:700;margin-top:4px}
#overlay-modal .successSub{color:#64748b;font-weight:600;font-size:.86rem;line-height:1.45;margin-top:.35rem}
.invoiceBox{margin-top:1rem;border-top:2px dashed var(--bdr);padding-top:.8rem}
.invoiceLine{display:flex;justify-content:space-between;font-size:.72rem;padding:3px 0;color:var(--muted)}
.invoiceLine span:last-child{font-weight:800;color:var(--dark)}
.loaderRing{width:44px;height:44px;border:4px solid rgba(255,255,255,.25);border-top-color:#fff;border-radius:50%;animation:sp .7s linear infinite}
.loaderMsg{color:#fff;font-weight:700;letter-spacing:3px;font-size:.7rem}

/* ═══ RETAKE MODAL ═══ */
.retakeCard {
    background: #ffffff;
    border-radius: 28px;
    padding: 1.25rem 1.5rem 1.35rem;
    width: -moz-fit-content;
    width: fit-content;
    max-width: min(92vw, 840px);
    min-width: 320px;
    max-height: 90vh;
    box-shadow: 0 32px 80px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06);
    animation: popInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

@keyframes popInModal {
    from {
        transform: scale(0.92) translateY(14px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.retakeHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.75rem;
}

.retakeBadge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    background: #fff0f5;
    color: var(--pink);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: 1px solid rgba(251, 94, 147, 0.2);
}

.retakeCloseBtn {
    background: #f4f4f5;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #71717a;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.retakeCloseBtn:hover {
    background: #e4e4e7;
    color: #18181b;
}

.retakePreviewWrap {
    width: auto;
    max-width: 100%;
    background: transparent;
    border-radius: 16px;
    padding: 0;
    border: none;
    box-shadow: none;
    margin-bottom: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.retakePreviewImg {
    max-width: 100%;
    max-height: 58vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: block;
    animation: fadeInImg 0.25s ease-out;
}

@keyframes fadeInImg {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.retakeTitle {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.3px;
    color: #18181b;
    margin-bottom: 0.95rem;
}

.retakeDesc {
    display: none;
}

.retakeActions {
    display: flex;
    gap: 14px;
    width: 100%;
    max-width: 480px;
}

.btn-retake-cancel {
    flex: 1;
    padding: 0.9rem 1.25rem;
    border-radius: 50px;
    background: #f4f4f5;
    color: #52525b;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-retake-cancel:hover {
    background: #e4e4e7;
    color: #18181b;
}

.btn-retake-cancel:active {
    transform: scale(0.97);
}

.btn-retake-confirm {
    flex: 1.35;
    padding: 0.9rem 1.4rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff6b9d, #fb5e93);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(251, 94, 147, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.btn-retake-confirm:hover {
    background: linear-gradient(135deg, #ff5c93, #e44b80);
    box-shadow: 0 6px 20px rgba(251, 94, 147, 0.45);
    transform: translateY(-1px);
}

.btn-retake-confirm:active {
    transform: scale(0.97);
}

.emptyFrameMsg{text-align:center;padding:2rem;color:#aaa;font-size:.75rem;font-weight:600}

/* ========================================= */
/*       RESPONSIVE — TABLET (<=1200px)      */
/* ========================================= */
@media screen and (max-width: 1200px) {
  .splitL { flex: 2.5; }
  .splitR { min-width: 220px; max-width: 280px; }
  .pmCard { width: 22vw; }
}

/* ========================================= */
/* ========================================= */
/*       DESKTOP SHOOT BACK & DONE DL BTN    */
/* ========================================= */
.shootBackBtn {
    width: 38px;
    height: 38px;
    top: 22px;
}
.framesizeHeadWrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.25rem;
}
.doneDirectDlBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin-top: .35rem;
    padding: .58rem 1.2rem;
    border-radius: 999px;
    background: #fff1f5;
    border: 1.5px solid #fecdd3;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
    transition: all .18s ease;
}
.doneDirectDlBtn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: translateY(-1px);
}
.rotateLandscapeOverlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.rotateLandscapeCard {
    background: #ffffff;
    border-radius: 1.75rem;
    padding: 2rem 1.6rem 1.7rem;
    max-width: 21rem;
    width: 100%;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.rotatePhoneIcon {
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 1.25rem;
    background: #fff1f5;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    animation: tiltPhoneLandscape 2.2s ease-in-out infinite;
}
@keyframes tiltPhoneLandscape {
    0%, 20% { transform: rotate(0deg); }
    55%, 80% { transform: rotate(-90deg); }
    100% { transform: rotate(0deg); }
}
.rotateLandscapeTitle {
    font-size: 1.22rem;
    font-weight: 900;
    color: #18181b;
    letter-spacing: -0.3px;
}
.rotateLandscapeSub {
    font-size: .84rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.45;
    margin: .45rem 0 1.25rem;
}
.rotateAutoBtn {
    width: 100%;
    padding: .82rem 1.2rem;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: .85rem;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(251, 94, 147, 0.32);
}
.rotateAutoBtn:active { transform: scale(0.97); }
.rotateSkipBtn {
    margin-top: .65rem;
    background: transparent;
    color: #64748b;
    font-size: .76rem;
    font-weight: 700;
    padding: .35rem .75rem;
}

/* ========================================= */
/*       RESPONSIVE — MOBILE (<=900px)       */
/* ========================================= */
@media screen and (max-width: 900px) {
  html, body {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  .screen:not(.active) {
    display: none !important;
  }

  .screen.active {
    position: fixed !important;
    inset: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    flex-direction: column !important;
    transform: none !important;
  }

  #screen-home.active,
  #screen-qris.active,
  #screen-framesize.active,
  #screen-frame.active,
  #screen-shoot.active,
  #screen-filter.active {
    overflow: hidden !important;
  }

  .pageFrame, .splitWrap {
    position: relative;
    min-height: 100dvh;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  /* Solid Mobile Topbar Backdrop (Prevents scrolled content from showing behind logo/timer) */
  .screen.active:not(#screen-home)::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(54px + var(--safe-top));
    background: rgba(246, 247, 249, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
    z-index: 102;
    pointer-events: none;
  }

  /* Clean Centered Mobile Top Bar */
  .backBtn {
    position: fixed !important;
    top: calc(9px + var(--safe-top)) !important;
    left: 12px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
    z-index: 110 !important;
  }
  .topLogo,
  #screen-qris .topLogo,
  #screen-framesize .topLogo,
  #screen-shoot .topLogo,
  #screen-voucher .topLogo {
    position: fixed !important;
    top: calc(16px + var(--safe-top)) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 108 !important;
    gap: 6px !important;
    white-space: nowrap !important;
  }
  .topLogo img {
    width: 22px !important;
    height: 22px !important;
  }
  .topLogo span {
    font-size: 0.9rem !important;
    letter-spacing: 1.4px !important;
    font-weight: 900 !important;
  }
  .timerPill {
    position: fixed !important;
    top: calc(13px + var(--safe-top)) !important;
    right: 12px !important;
    height: 28px !important;
    padding: 0 12px !important;
    font-size: 0.76rem !important;
    letter-spacing: 1px !important;
    border-radius: 50px !important;
    z-index: 110 !important;
  }

  /* Home Screen */
  #screen-home {
    background: transparent !important;
  }
  #screen-home .vCenter {
    padding: calc(2.2rem + var(--safe-top)) 1.5rem calc(1.8rem + var(--safe-bot)) !important;
    min-height: 100dvh !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  #screen-home .home-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 330px;
    margin: auto 0;
  }
  #screen-home .home-logo { width: 64px; height: 64px; }
  #screen-home .home-brand { font-size: 2.05rem; letter-spacing: 4px; margin-top: 0.75rem; font-weight: 900; }
  #screen-home .home-sub { font-size: 0.72rem; letter-spacing: 2.5px; font-weight: 700; margin-top: 6px; color: #71717a; }
  #screen-home .btn-pink {
    width: 100%;
    max-width: 310px;
    height: 52px;
    margin-top: 1.8rem;
    font-size: 0.92rem;
    padding: 0 1.5rem;
    border-radius: 50px;
    letter-spacing: 1.5px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #screen-home .home-tag { font-size: 0.74rem; color: #71717a; margin-top: 0.7rem; }
  #screen-home .home-social {
    width: 100%;
    max-width: 330px;
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 1rem;
  }
  #screen-home .home-soc-item {
    flex: 1;
    font-size: 0.74rem;
    padding: 9px 12px;
    border-radius: 50px;
    justify-content: center;
    gap: 7px;
  }
  #screen-home .home-soc-item .socIcon { width: 20px; height: 20px; }
  #screen-home .home-soc-item span { font-size: 0.74rem; }

  /* Access Code Screen (#screen-qris) — Exact 1 Screen */
  #screen-qris .qrisCheckoutPage {
    padding: calc(58px + var(--safe-top)) 16px calc(20px + var(--safe-bot)) !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    justify-content: center !important;
  }
  #screen-qris .qrisRightTitle { font-size: 1.45rem !important; }
  #screen-qris .qrisRightSub { font-size: 0.82rem !important; }

  /* Frame Size Screen (#screen-framesize) — Exact 1 Screen, Centered, Zero Scroll */
  #screen-framesize .framesizePage {
    padding: calc(58px + var(--safe-top)) 16px calc(20px + var(--safe-bot)) !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
  }
  #screen-framesize .framesizeHeadWrap {
    flex-shrink: 0 !important;
    margin-bottom: 1rem !important;
  }
  #screen-framesize .pgTitle {
    font-size: clamp(1.35rem, 5.2vw, 1.6rem) !important;
    margin-top: 0 !important;
    letter-spacing: -0.4px !important;
    line-height: 1.18 !important;
  }
  #screen-framesize .pgSub {
    font-size: 0.8rem !important;
    margin-top: 0.3rem !important;
    line-height: 1.38 !important;
    max-width: 30ch !important;
  }
  #screen-framesize .frameSizeGrid {
    grid-template-columns: 1fr !important;
    gap: clamp(0.65rem, 1.8dvh, 0.95rem) !important;
    width: 100% !important;
    max-width: 22.5rem !important;
    margin-top: 0 !important;
  }
  #screen-framesize .frameSizeCard {
    padding: clamp(0.9rem, 2.2dvh, 1.3rem) 1.1rem !important;
    border-radius: 1.35rem !important;
  }
  #screen-framesize .frameSizeVisual {
    height: clamp(68px, 11.5dvh, 92px) !important;
    margin-bottom: 0.55rem !important;
  }
  #screen-framesize .frameSizeVisual svg {
    height: 100% !important;
    width: auto !important;
  }
  #screen-framesize .frameSizeTitle { font-size: 1.02rem !important; margin-bottom: 0.2rem !important; }
  #screen-framesize .frameSizeSub { font-size: 0.76rem !important; line-height: 1.35 !important; }

  /* ========================================= */
  /*   FRAME SELECTION — CONTAINED CARD SCROLL */
  /* ========================================= */
  #screen-frame.active {
    overflow: hidden !important;
  }
  #screen-frame .splitWrap {
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }
  #screen-frame .splitInner {
    flex-direction: column !important;
    padding: calc(60px + var(--safe-top)) 12px calc(76px + var(--safe-bot)) 12px !important;
    gap: 0 !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }
  #screen-frame .splitL {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
  }
  #screen-frame .bCard {
    width: 100% !important;
    height: 100% !important;
    border-radius: 1.25rem !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }
  #screen-frame .bCardHead {
    display: flex !important;
    padding: 10px 14px !important;
    border-radius: 1.25rem 1.25rem 0 0 !important;
    flex-shrink: 0 !important;
  }
  #screen-frame .bCardTitle { font-size: 0.88rem !important; }
  #screen-frame .btnChangeSize { font-size: 0.72rem !important; padding: 5px 11px !important; }
  #screen-frame .bCardBody {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }
  #screen-frame .catTabs {
    position: sticky !important;
    top: 0 !important;
    z-index: 12 !important;
    background: #ffffff !important;
    padding: 8px 10px !important;
  }
  #screen-frame .catTab {
    font-size: 0.72rem !important;
    padding: 6px 13px !important;
  }
  #screen-frame .frameGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 10px 10px 18px 10px !important;
  }
  #screen-frame .fc {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 14px !important;
    padding: 7px 7px 9px !important;
  }
  #screen-frame .fc.sel {
    border-color: var(--accent) !important;
    background: #fff0f5 !important;
    box-shadow: 0 6px 18px rgba(251, 94, 147, 0.22) !important;
  }
  #screen-frame .splitR,
  #screen-frame .phone {
    display: contents !important;
  }
  #screen-frame .phoneScr {
    display: none !important;
  }
  #screen-frame .phoneFoot {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 120 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    color: #18181b !important;
    padding: 11px 16px calc(12px + var(--safe-bot)) 16px !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.1) !important;
    border-top: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  #screen-frame .fInfoTitle { font-size: 0.86rem !important; color: #18181b !important; }
  #screen-frame .fInfoSub { font-size: 0.7rem !important; color: #64748b !important; }
  #screen-frame .nextBtn { font-size: 0.82rem !important; padding: 8px 16px !important; }

  /* ========================================= */
  /*   FILTER & STICKER — LIVE PREVIEW + SHEET */
  /* ========================================= */
  #screen-filter .splitInner {
    flex-direction: column !important;
    padding: calc(52px + var(--safe-top)) 10px calc(68px + var(--safe-bot)) 10px !important;
    gap: 8px !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }
  #screen-filter .splitR {
    order: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 44dvh !important;
    min-height: 210px !important;
    flex: none !important;
  }
  #screen-filter .phone {
    height: 100% !important;
    border-radius: 1.15rem !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
  }
  #screen-filter .phoneScr {
    display: flex !important;
    height: 100% !important;
    padding: 10px 14px !important;
    overflow: hidden !important;
  }
  #screen-filter .phoneFoot {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 120 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    padding: 10px 16px calc(11px + var(--safe-bot)) 16px !important;
    border-radius: 18px 18px 0 0 !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08) !important;
  }
  #screen-filter .splitL {
    order: 2 !important;
    width: 100% !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
  }
  #screen-filter .bCard {
    height: 100% !important;
    border-radius: 1.15rem !important;
    border: 1px solid #e2e8f0 !important;
  }
  #screen-filter .bCardHead {
    padding: 8px 11px !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  #screen-filter .bCardTitle { font-size: 0.84rem !important; }
  #screen-filter .filterModeBtn { padding: 5px 11px !important; font-size: 0.72rem !important; }
  #screen-filter .filterGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 8px 10px 14px !important;
  }
  #screen-filter .filterItem {
    padding: 5px 5px 7px !important;
    max-width: none !important;
  }
  #screen-filter .filterItem .fcName { font-size: 0.68rem !important; }
  #screen-filter .stickerSubNav {
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
  }
  #screen-filter .stkNavBtn {
    padding: 5px 11px !important;
    font-size: 0.7rem !important;
  }
  #screen-filter #decor-panel-sticker {
    padding: 8px 10px 14px !important;
  }
  #screen-filter .stickerGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  /* ========================================= */
  /*   SHOOT SCREEN — PORTRAIT FALLBACK        */
  /* ========================================= */
  #screen-shoot .splitInner {
    flex-direction: column !important;
    padding: calc(54px + var(--safe-top)) 10px calc(72px + var(--safe-bot)) 10px !important;
    gap: 8px !important;
    height: 100dvh !important;
  }
  #screen-shoot .splitL {
    width: 100% !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
  }
  #screen-shoot .camCard {
    width: 100% !important;
    flex: 1 1 0% !important;
    border-radius: 18px !important;
  }
  #screen-shoot .camCtrls {
    display: flex !important;
    overflow-x: auto !important;
    gap: 6px !important;
    padding-bottom: 2px !important;
  }
  #screen-shoot .cg {
    padding: 5px 8px !important;
    border-radius: 11px !important;
    flex-shrink: 0 !important;
  }
  #screen-shoot .cg .cgB { padding: 4px 8px !important; font-size: 0.65rem !important; }
  #screen-shoot .splitR,
  #screen-shoot .phone { display: contents !important; }
  #screen-shoot .phoneScr { display: none !important; }
  #screen-shoot .phoneFoot {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 115 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    padding: 9px 16px calc(10px + var(--safe-bot)) !important;
    border-top: 1px solid #e2e8f0 !important;
  }

  /* ========================================= */
  /*   DONE SCREEN — MOBILE SHARE & DOWNLOAD   */
  /* ========================================= */
  .doneSplit {
    flex-direction: column !important;
    padding: calc(56px + var(--safe-top)) 14px calc(2rem + var(--safe-bot)) 14px !important;
    gap: 1.1rem !important;
    height: auto !important;
  }
  .doneL {
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    min-height: 350px !important;
    max-height: 440px !important;
  }
  .doneRWrap {
    width: 100% !important;
    max-width: 340px !important;
    margin: 0 auto !important;
    height: auto !important;
    max-height: none !important;
  }
  .doneR { padding: 1.15rem !important; gap: 0.5rem !important; }
  .doneTitle { font-size: 1.1rem !important; letter-spacing: 2px !important; }
  .doneQR { width: 156px !important; height: 156px !important; margin: 0.25rem auto !important; }
  .btn-end { width: 100% !important; padding: 0.88rem !important; font-size: 0.84rem !important; }
}

/* Show Rotate-to-Landscape Prompt Automatically When Entering Shoot on Portrait Phone */
@media screen and (max-width: 768px) and (orientation: portrait) {
  body:not(.allow-portrait-shoot) #screen-shoot.active #rotate-landscape-overlay {
    display: flex !important;
  }
}

/* ========================================================= */
/*   MOBILE LANDSCAPE STUDIO MODE (ALL SCREENS <= 540px H)   */
/* ========================================================= */
@media screen and (max-width: 960px) and (orientation: landscape) and (max-height: 540px) {
  .screen.active:not(#screen-home)::before {
    height: 38px !important;
  }
  .backBtn {
    top: 4px !important;
    left: 10px !important;
    width: 30px !important;
    height: 30px !important;
  }
  .topLogo,
  #screen-qris .topLogo,
  #screen-framesize .topLogo,
  #screen-voucher .topLogo {
    top: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .topLogo img { width: 18px !important; height: 18px !important; }
  .topLogo span { font-size: 0.78rem !important; }
  .timerPill {
    top: 7px !important;
    right: 10px !important;
    height: 24px !important;
    font-size: 0.7rem !important;
    padding: 0 10px !important;
  }

  /* Home Landscape */
  #screen-home .vCenter {
    padding: 12px 20px !important;
  }
  #screen-home .home-logo { width: 44px !important; height: 44px !important; }
  #screen-home .home-brand { font-size: 1.55rem !important; margin-top: 0.35rem !important; }
  #screen-home .home-sub { font-size: 0.64rem !important; margin-top: 2px !important; }
  #screen-home .btn-pink { height: 42px !important; margin-top: 0.85rem !important; font-size: 0.82rem !important; }
  #screen-home .home-tag { margin-top: 0.35rem !important; font-size: 0.68rem !important; }
  #screen-home .home-social { padding-top: 0.4rem !important; max-width: 340px !important; }
  #screen-home .home-soc-item { padding: 6px 10px !important; font-size: 0.68rem !important; }

  /* Access Code Landscape */
  #screen-qris .qrisCheckoutPage {
    padding: 42px 16px 8px !important;
  }
  #screen-qris .accessCodeCard {
    max-width: 29rem !important;
    padding: 0.95rem 1.35rem !important;
    border-radius: 1.25rem !important;
  }
  #screen-qris .accessCodeIconWrap {
    width: 2.2rem !important;
    height: 2.2rem !important;
    border-radius: 0.7rem !important;
    margin-bottom: 0.4rem !important;
  }
  #screen-qris .accessCodeIconWrap svg { width: 18px !important; height: 18px !important; }
  #screen-qris .accessCodeHeader { margin-bottom: 0.6rem !important; }
  #screen-qris .qrisRightTitle { font-size: 1.15rem !important; }
  #screen-qris .qrisRightSub { font-size: 0.72rem !important; margin-top: 0.15rem !important; }
  #screen-qris .accessSmartBox { padding: 0.7rem 0.9rem !important; border-radius: 0.95rem !important; }
  #screen-qris .accessInputLabel { font-size: 0.68rem !important; margin-bottom: 0.3rem !important; }
  #screen-qris .qrisInputRow { flex-direction: row !important; gap: 0.45rem !important; }
  #screen-qris .qrisCodeInput { padding: 0.52rem 0.75rem !important; font-size: 0.8rem !important; }
  #screen-qris .qrisCodeBtn { width: auto !important; padding: 0.52rem 1.1rem !important; font-size: 0.78rem !important; }
  #screen-qris .accessTrialBanner { margin-top: 0.45rem !important; padding-top: 0.45rem !important; font-size: 0.7rem !important; }

  /* Frame Size Landscape (2 columns side-by-side!) */
  #screen-framesize .framesizePage {
    padding: 42px 20px 10px !important;
  }
  #screen-framesize .framesizeHeadWrap { margin-bottom: 0.55rem !important; }
  #screen-framesize .pgTitle { font-size: 1.2rem !important; }
  #screen-framesize .pgSub { font-size: 0.72rem !important; margin-top: 0.15rem !important; max-width: none !important; }
  #screen-framesize .frameSizeGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
    max-width: 34rem !important;
  }
  #screen-framesize .frameSizeCard {
    padding: 0.7rem 0.9rem !important;
    border-radius: 1.05rem !important;
  }
  #screen-framesize .frameSizeVisual {
    height: 54px !important;
    margin-bottom: 0.35rem !important;
  }
  #screen-framesize .frameSizeTitle { font-size: 0.88rem !important; margin-bottom: 0.1rem !important; }
  #screen-framesize .frameSizeSub { font-size: 0.68rem !important; }

  /* Frame Catalog Landscape */
  #screen-frame .splitInner {
    padding: 42px 12px 58px 12px !important;
  }
  #screen-frame .frameGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  #screen-frame .phoneFoot {
    padding: 7px 14px !important;
  }

  /* Filter & Sticker Landscape (Side-by-side!) */
  #screen-filter .splitInner {
    flex-direction: row !important;
    padding: 42px 10px 8px 10px !important;
    gap: 10px !important;
  }
  #screen-filter .splitL {
    order: 1 !important;
    flex: 1.9 !important;
    height: 100% !important;
  }
  #screen-filter .splitR {
    order: 2 !important;
    flex: 1 !important;
    max-width: 240px !important;
    height: 100% !important;
    min-height: 0 !important;
  }
  #screen-filter .phone {
    display: flex !important;
    flex-direction: column !important;
  }
  #screen-filter .phoneScr {
    flex: 1 !important;
    height: auto !important;
    padding: 6px !important;
  }
  #screen-filter .phoneFoot {
    position: static !important;
    padding: 6px 10px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  #screen-filter .fInfoTitle { font-size: 0.68rem !important; }
  #screen-filter .fInfoSub { font-size: 0.56rem !important; }
  #screen-filter .nextBtn { font-size: 0.7rem !important; padding: 5px 11px !important; }

  /* Shoot Landscape */
  #screen-shoot.active::before {
    height: 36px !important;
  }
  #screen-shoot .topLogo {
    top: 9px !important;
    left: 12px !important;
    transform: none !important;
  }
  #screen-shoot .topLogo img { width: 18px !important; height: 18px !important; }
  #screen-shoot .topLogo span { font-size: 0.78rem !important; }
  #screen-shoot .timerPill {
    top: 9px !important;
    right: 10px !important;
    height: 24px !important;
    font-size: 0.7rem !important;
    padding: 0 10px !important;
  }
  #screen-shoot .splitInner {
    flex-direction: row !important;
    padding: 40px 10px 8px 10px !important;
    gap: 10px !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }
  #screen-shoot .splitL {
    flex: 2.3 !important;
    height: 100% !important;
    gap: 5px !important;
  }
  #screen-shoot .camCard {
    border-radius: 14px !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }
  #screen-shoot .camShutterCircle { width: 48px !important; height: 48px !important; }
  #screen-shoot .camShutterLabel { font-size: 0.66rem !important; padding: 4px 10px !important; }
  #screen-shoot .camCtrls {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 4px !important;
    overflow: visible !important;
  }
  #screen-shoot .cg {
    padding: 3px 4px !important;
    gap: 2px !important;
    border-radius: 9px !important;
  }
  #screen-shoot .cg .cgL { font-size: 0.46rem !important; }
  #screen-shoot .cg .cgB { padding: 2px 6px !important; font-size: 0.56rem !important; }
  #screen-shoot .splitR {
    display: flex !important;
    flex: 1 !important;
    min-width: 145px !important;
    max-width: 215px !important;
    height: 100% !important;
  }
  #screen-shoot .phone {
    display: flex !important;
    height: 100% !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
  }
  #screen-shoot .phoneScr {
    display: flex !important;
    flex: 1 !important;
    padding: 6px !important;
  }
  #screen-shoot .phoneFoot {
    position: static !important;
    padding: 6px 10px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    gap: 6px !important;
  }
  #screen-shoot .fInfoCol {
    min-width: 0 !important;
    overflow: hidden !important;
  }
  #screen-shoot .fInfoTitle {
    font-size: 0.66rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  #screen-shoot .fInfoSub { font-size: 0.56rem !important; }
  #screen-shoot .nextBtn { font-size: 0.68rem !important; padding: 5px 10px !important; }
}

/* ========================================= */
/*       RESPONSIVE — SMALL PHONE (<=480px)  */
/* ========================================= */
@media screen and (max-width: 480px) {
  .home-brand { font-size: 1.8rem !important; }
  .btn-pink { font-size: 0.9rem !important; padding: 0.95rem !important; }
  #screen-frame .frameGrid { gap: 8px !important; padding: 10px 6px 24px 6px !important; }
  #screen-frame .fc { padding: 6px 6px 8px 6px !important; }
  #screen-frame .fcName { font-size: 0.7rem !important; }
  .doneQR { width: 160px !important; height: 160px !important; }
}

/* ========================================= */
/*       iOS SPECIFIC                        */
/* ========================================= */
@supports (-webkit-touch-callout: none) {
  .screen { padding-bottom: calc(20px + var(--safe-bot)); }
  .vCenter { padding-top: calc(2rem + var(--safe-top)); }
}

.emptyFrameMsg {
    padding: 40px;
    text-align: center;
    color: #888;
    font-weight: 600;
    font-size: 0.9rem;
}


/* ═══ DECOR STEP HEADER & STICKER SUB NAV ═══ */
.decorBackBtn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: .76rem;
    font-weight: 800;
    padding: .42rem .9rem .42rem .65rem;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.18s ease;
}
.decorBackBtn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateX(-2px);
}
.decorBackBtn:active {
    transform: scale(0.96);
}

/* ═══ STICKER SUB NAV & GRID ═══ */
.stickerSubNav {
    display: flex;
    gap: .42rem;
    overflow-x: auto;
    justify-content: flex-end;
    flex-wrap: wrap;
    scrollbar-width: none;
}
.stickerSubNav::-webkit-scrollbar {
    display: none;
}
.stkNavBtn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: .78rem;
    font-weight: 800;
    padding: .48rem 1.15rem;
    border-radius: 999px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.18s ease;
}
.stkNavBtn:hover:not(.on) {
    background: #e2e8f0;
    color: #18181b;
}
.stkNavBtn.on {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 3px 10px rgba(251, 94, 147, 0.3);
}
.stickerHelpHint {
    font-size: .78rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: .65rem;
}
.stkClearAllBtn {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #e11d48;
    font-size: .74rem;
    font-weight: 800;
    padding: .42rem .95rem;
    border-radius: 999px;
    white-space: nowrap;
    cursor: pointer;
    transition: all .18s ease;
}
.stkClearAllBtn:hover {
    background: #ffe4e6;
}
.stickerGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr));
    gap: .8rem;
    padding: .4rem 0;
}
.stkItemBtn {
    aspect-ratio: 1;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 1.15rem;
    padding: .55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(15,23,42,0.03);
}
.stkItemBtn:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--accent);
    background: #fff0f5;
    box-shadow: 0 10px 22px -6px rgba(251, 94, 147, 0.24);
}
.stkItemBtn:active {
    transform: scale(0.94);
}
.stkSvgThumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stkSvgThumb svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ═══ PLACED STICKERS ON FRAME PREVIEW ═══ */
.placedSticker {
    --stk-rot: 0deg;
    position: absolute;
    transform: translate(-50%, -50%) rotate(var(--stk-rot));
    cursor: grab;
    user-select: none;
    touch-action: none;
    pointer-events: auto;
    z-index: 10;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.14s ease;
}
.placedSticker .stkVisualInner {
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.placedSticker.selected {
    z-index: 22;
    outline: 1.8px dashed rgba(251, 94, 147, 0.9);
    outline-offset: 4px;
    border-radius: 10px;
}
.placedSticker .stkDeleteMini,
.placedSticker .stkResizeMini {
    display: none;
}
.placedSticker.selected .stkDeleteMini {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -11px;
    right: -11px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e11d48;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    cursor: pointer;
    z-index: 3;
}
.placedSticker.selected .stkResizeMini {
    display: block;
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 2.5px solid #ffffff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    cursor: nwse-resize;
    touch-action: none;
    z-index: 3;
}
.placedSticker.dragging {
    cursor: grabbing;
    z-index: 25;
    transform: translate(-50%, -50%) rotate(var(--stk-rot)) scale(1.06);
}
.placedSticker.over-trash {
    opacity: 0.45;
    transform: translate(-50%, -50%) rotate(var(--stk-rot)) scale(0.72);
}

.stickerTrashZone {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translate(-50%, 16px) scale(0.92);
    background: rgba(24, 24, 27, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    z-index: 30;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.stickerTrashZone.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
}
.stickerTrashZone.over {
    background: #e11d48;
    border-color: #fda4af;
    transform: translate(-50%, -3px) scale(1.08);
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.45);
}


/* ═══ VOUCHER SCANNER & MODE SWITCH (FEATURE 3) ═══ */
.vcModeSwitch {
    display: inline-flex;
    background: #ffffff;
    padding: 5px;
    border-radius: 9999px;
    gap: 6px;
    margin: 0.8rem auto 1.2rem auto;
    border: 1.5px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.vcModeBtn {
    background: transparent;
    border: none;
    color: #71717a;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 800;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}
.vcModeBtn:hover {
    color: #18181b;
}
.vcModeBtn.active {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(251, 94, 147, 0.35);
    transform: translateY(-1px);
}
.vcViewSection {
    width: 100%;
    animation: fadeIn 0.25s ease;
}
.vcScanBox {
    width: min(38vh, 320px);
    height: min(38vh, 320px);
    background: #18181b;
    border-radius: 28px;
    border: 2px solid rgba(251, 94, 147, 0.45);
    box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    margin: 0.8rem auto;
}
.vcScanBox #voucher-qr-reader {
    width: 100%;
    height: 100%;
}
.vcScanBox #voucher-qr-reader video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: none !important;
}
.vcScanBox.scanSuccessPulse {
    animation: pulseBorderGreen 0.6s ease;
}
@keyframes pulseBorderGreen {
    0% { border-color: #ff2b75; box-shadow: 0 0 20px rgba(255,43,117,0.5); }
    50% { border-color: #10b981; box-shadow: 0 0 35px rgba(16,185,129,0.8); }
    100% { border-color: #ff2b75; }
}
.scanLaser {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff2b75, #ffffff, #ff2b75, transparent);
    box-shadow: 0 0 16px #ff2b75, 0 0 8px #ffffff;
    animation: laserSweep 2.2s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 10;
}
@keyframes laserSweep {
    0% { top: 8%; opacity: 0.3; }
    50% { opacity: 1; }
    100% { top: 90%; opacity: 0.3; }
}
.scanReticle {
    position: absolute;
    inset: 28px;
    pointer-events: none;
    z-index: 9;
}
.scanReticle .corner {
    position: absolute;
    width: 26px; height: 26px;
    border-color: #ff2b75;
    border-style: solid;
}
.scanReticle .corner.tl { top: 0; left: 0; border-width: 4px 0 0 4px; border-top-left-radius: 8px; }
.scanReticle .corner.tr { top: 0; right: 0; border-width: 4px 4px 0 0; border-top-right-radius: 8px; }
.scanReticle .corner.bl { bottom: 0; left: 0; border-width: 0 0 4px 4px; border-bottom-left-radius: 8px; }
.scanReticle .corner.br { bottom: 0; right: 0; border-width: 0 4px 4px 0; border-bottom-right-radius: 8px; }

/* ═══ COPIES MODAL (FEATURE 2) — Clean Light Theme ═══ */
.copiesModalOverlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 1.5rem;
    animation: fadeIn 0.22s ease;
}
.copiesModalCard {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 2rem;
    padding: 2.2rem 2.4rem;
    max-width: 48rem;
    width: 100%;
    box-shadow: 0 28px 64px -12px rgba(15, 23, 42, 0.16);
    text-align: center;
    color: #18181b;
    animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes scaleUp {
    from { transform: scale(0.94); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.copiesHeader {
    margin-bottom: 1.6rem;
}
.copiesTitle {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -0.4px;
    margin: 0 0 0.35rem 0;
    color: #18181b;
}
.copiesSub {
    font-size: .9rem;
    font-weight: 500;
    color: #64748b;
    margin: 0;
}
.copiesOptionsGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.8rem;
}
.copiesOption {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 1.4rem;
    padding: 1.4rem 1rem 1.25rem;
    cursor: pointer;
    position: relative;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
}
.copiesOption:hover {
    border-color: #cbd5e1;
    background: #ffffff;
    transform: translateY(-2px);
}
.copiesOption.active {
    background: #fff0f5;
    border-color: var(--accent);
    box-shadow: 0 12px 28px -8px rgba(251, 94, 147, 0.25);
    transform: translateY(-3px);
}
.copiesOptBadge {
    position: absolute;
    top: -11px;
    padding: 3px 12px;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.copiesOptBadge.standard {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}
.copiesOptBadge.pop {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(251, 94, 147, 0.3);
}
.copiesOptBadge.group {
    background: #18181b;
    color: #ffffff;
}
.copiesNumber {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin: 0.5rem 0 0.15rem 0;
    color: #18181b;
    letter-spacing: -1px;
}
.copiesOption.active .copiesNumber {
    color: var(--accent);
}
.copiesUnit {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 1px;
    margin-bottom: 0.65rem;
}
.copiesDesc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.35;
    min-height: 2.2rem;
    margin-bottom: 0.65rem;
}
.copiesPrice {
    font-size: 0.88rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.38rem 0.85rem;
    width: 90%;
}
.copiesPrice.free {
    background: #ecfdf5;
    color: #059669;
}
.copiesPrice.add {
    background: #ffffff;
    border: 1px solid #fecdd3;
    color: var(--accent);
}
.copiesActions {
    display: flex;
    justify-content: flex-end;
    gap: .85rem;
    align-items: center;
}
.copiesBtnCancel {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    font-size: .9rem;
    font-weight: 800;
    padding: 0.8rem 1.6rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.copiesBtnCancel:hover {
    background: #f1f5f9;
    color: #18181b;
}
.copiesBtnConfirm {
    background: var(--accent);
    border: none;
    color: #ffffff;
    font-size: .95rem;
    font-weight: 800;
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(251, 94, 147, 0.32);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.copiesBtnConfirm:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}
.copiesBtnConfirm:active {
    transform: scale(0.98);
}

/* Done Screen Copies Notification Pill */
.doneCopiesPill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff0f5;
    border: 1.5px solid rgba(251, 94, 147, 0.3);
    color: #18181b;
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.86rem;
    font-weight: 700;
    margin: 0.4rem auto;
    box-shadow: 0 4px 14px rgba(251, 94, 147, 0.12);
    transition: all 0.2s ease;
}
.doneCopiesPill:hover {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-1px);
}
.doneCopiesPill strong {
    color: var(--accent);
    font-weight: 800;
}
.doneCopiesPill:hover strong {
    color: #ffffff;
}
.doneCopiesIcon {
    font-size: 1.15rem;
    animation: printBounce 1.5s infinite ease-in-out;
}
@keyframes printBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@media (max-width: 768px) {
    .copiesModalCard {
        padding: 1.5rem 1.2rem;
    }
    .copiesOptionsGrid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .copiesOption {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 1.2rem;
        text-align: left;
    }
    .copiesNumber {
        font-size: 2rem;
        margin: 0;
    }
    .copiesDesc {
        display: none;
    }
    .copiesPrice {
        width: auto;
    }
}

/* ==========================================================================
   VIRTUAL KEYBOARD MODAL (UNTUK KIOSK LAYAR SENTUH)
   ========================================================================== */
.vkbOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: vkbFadeIn 0.2s ease-out;
}

@keyframes vkbFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.vkbCard {
    background: #ffffff;
    width: 100%;
    max-width: 680px;
    border-radius: 24px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.vkbHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vkbTitleWrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.vkbTitle {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.vkbSub {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.vkbCloseBtn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.vkbCloseBtn:active {
    background: #e2e8f0;
    transform: scale(0.92);
}

.vkbDisplayRow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.vkbDisplay {
    flex: 1;
    min-height: 54px;
    background: #f8fafc;
    border: 2px solid #fb5e93;
    box-shadow: 0 0 0 3px rgba(251, 94, 147, 0.12);
    border-radius: 14px;
    padding: 0.5rem 1.2rem;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #0f172a;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    overflow-x: auto;
    white-space: nowrap;
    position: relative;
}

.vkbCursor {
    display: inline-block;
    width: 2.5px;
    height: 1.2em;
    background-color: #fb5e93;
    margin-left: 3px;
    vertical-align: middle;
    animation: vkbBlink 0.9s infinite;
}

@keyframes vkbBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.vkbPlaceholder {
    font-size: 0.95rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: none;
}

.vkbDisplay:empty::before {
    content: "Sentuh tombol atau ketik di keyboard...";
    font-size: 0.95rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: none;
}

.vkbClearBtn {
    height: 54px;
    padding: 0 1.2rem;
    border-radius: 14px;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #ef4444;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vkbClearBtn:active {
    background: #fee2e2;
    transform: scale(0.95);
}

.vkbNotice {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    animation: vkbNoticeShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.vkbNotice.err {
    display: flex;
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #dc2626;
}

.vkbNotice.ok {
    display: flex;
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    color: #059669;
}

.vkbDisplay.vkbDisplayErr {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22) !important;
    animation: vkbNoticeShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes vkbNoticeShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.vkbKeysGrid {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    user-select: none;
    -webkit-user-select: none;
}

.vkbRow {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
}

.vkbKey {
    flex: 1;
    min-width: 0;
    max-width: 62px;
    height: 52px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 3px 0 #94a3b8;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 0.06s ease, box-shadow 0.06s ease, background 0.06s ease;
}

.vkbKey:hover {
    background: #f8fafc;
}

.vkbKey:active,
.vkbKey.vkbKeyActive {
    transform: translateY(2px) scale(0.96);
    box-shadow: 0 1px 0 #94a3b8;
    background: #e2e8f0;
}

.vkbKey.num {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 800;
}

.vkbKey.action.backspace {
    flex: 1.4;
    max-width: 80px;
    background: #fee2e2;
    border-color: #fecaca;
    box-shadow: 0 3px 0 #fca5a5;
    color: #dc2626;
}

.vkbKey.action.backspace:active,
.vkbKey.action.backspace.vkbKeyActive {
    transform: translateY(2px) scale(0.96);
    box-shadow: 0 1px 0 #fca5a5;
    background: #fecaca;
}

.vkbFooterActions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.3rem;
}

.vkbCancelBtn {
    flex: 1;
    height: 52px;
    border-radius: 14px;
    background: #f1f5f9;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.vkbCancelBtn:active {
    background: #e2e8f0;
    transform: scale(0.97);
}

.vkbSubmitBtn {
    flex: 2;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fb5e93 0%, #e0487d 100%);
    border: none;
    font-weight: 800;
    font-size: 1rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(251, 94, 147, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vkbSubmitBtn:active {
    transform: scale(0.98);
}

@media (max-width: 600px) {
    .vkbCard {
        padding: 1.2rem;
        gap: 0.8rem;
    }
    .vkbKey {
        height: 46px;
        font-size: 1.05rem;
    }
}

