:root {
    --red: #b70707;
    --red-dark: #740000;
    --red-bright: #ff2424;
    --black: #050505;
    --white: #f7f7f7;
    --panel: rgba(8, 8, 8, .90);
    --border: rgba(255, 255, 255, .26);
    --radius: 18px;
    --photo-ratio: 601 / 404;
    --strip-ratio: 682 / 2048;
}

* { box-sizing: border-box; }
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}
body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--white);
    background: #050505;
}
button, a, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.kiosk-page {
    width: 100vw;
    height: 100vh;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.08)),
        url('../images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.inner-page { padding: 20px 28px; }
.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,.38);
    backdrop-filter: blur(7px);
}

.eyebrow {
    margin-bottom: 7px;
    color: #ff7575;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .22em;
}
h1, h2, p { margin-top: 0; }
h1 {
    margin-bottom: 16px;
    font-size: 52px;
    line-height: .94;
    letter-spacing: -.035em;
}

.btn {
    appearance: none;
    min-height: 56px;
    padding: 0 28px;
    border: 2px solid transparent;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: .08em;
    cursor: pointer;
    transition: .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.btn-solid { background: #bd0505; border-color: #ff3b3b; }
.btn-solid:hover { background: #d10909; }
.btn-outline { background: rgba(0,0,0,.38); border-color: rgba(255,255,255,.72); }
.btn-ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.btn.full { width: 100%; }

.timer-chip {
    min-width: 142px;
    height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 7px;
    background: rgba(0,0,0,.42);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: .04em;
}
.timer-chip.large { width: 100%; height: 56px; font-size: 27px; }
.timer-icon { opacity: .78; font-size: .8em; }

/* ============================================================
   MENU AWAL — tulisan digeser lebih ke tengah dan diperbesar
   ============================================================ */
.home-page { position: relative; }
.home-shell { position: relative; width: 100%; height: 100%; }
.home-copy {
    position: absolute;
    left: 235px;
    top: 50%;
    width: 790px;
    transform: translateY(-47%);
    text-align: center;
}
.brand-title {
    display: block;
    width: 790px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 18px;
    filter: drop-shadow(0 8px 22px rgba(0,0,0,.35));
}
.home-copy form { width: 100%; }
.btn-start {
    width: 100%;
    min-height: 78px;
    font-size: 32px;
    letter-spacing: .13em;
    border-width: 2px;
}

/* ============================================================
   STEP 01 — frame lebih besar, tidak kosong, pink digeser ke kiri
   ============================================================ */
.frame-layout {
    width: 100%;
    height: calc(100vh - 40px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
}
.frame-picker-panel {
    height: 100%;
    min-height: 0;
    padding: 26px 30px 20px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(169, 5, 5, .95), rgba(82, 0, 0, .92));
    display: flex;
    flex-direction: column;
}
.compact-header h1 { margin-bottom: 8px; }
.frame-form {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.frame-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, 250px);
    justify-content: space-around;
    align-items: center;
    column-gap: 22px;
    padding: 0 32px 0 12px;
}
.frame-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.frame-option input { position: absolute; opacity: 0; pointer-events: none; }
.frame-option-pink { transform: translateX(-32px); }
.frame-image-wrap {
    display: block;
    height: 690px;
    aspect-ratio: var(--strip-ratio);
    overflow: hidden;
    background: #000;
    border: 4px solid transparent;
    border-radius: 8px;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.frame-image-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
.frame-option input:checked + .frame-image-wrap {
    border-color: #ff7979;
    box-shadow: 0 14px 36px rgba(0,0,0,.36);
    transform: translateY(-5px) scale(1.01);
}
.frame-option strong {
    margin-top: 9px;
    font-size: 17px;
    letter-spacing: .09em;
}
.frame-bottom-actions {
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.choose-frame-btn { min-width: 180px; font-size: 17px; }
.frame-preview-panel {
    height: 100%;
    min-height: 0;
    padding: 26px 20px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(105,0,0,.96), rgba(24,0,0,.92));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.selected-frame-preview {
    height: 760px;
    max-height: calc(100vh - 190px);
    aspect-ratio: var(--strip-ratio);
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.52);
    border-radius: 7px;
    background: #000;
}
.selected-frame-preview img { width: 100%; height: 100%; display: block; object-fit: contain; }
.preview-label {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
    opacity: .76;
}
.preview-label-top { margin: 0 0 10px; }

/* ============================================================
   STEP 02 — preview kamera dibuat sebesar mungkin di panel utama,
   tetap rasio persis 601:404 agar hasil tidak berubah saat masuk frame
   ============================================================ */
.camera-layout {
    width: 100%;
    height: calc(100vh - 40px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
}
.camera-stage {
    height: 100%;
    min-height: 0;
    padding: 20px 24px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
}
.camera-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex: 0 0 auto;
}
.camera-heading h1 { margin-bottom: 10px; }
.shot-counter {
    padding: 9px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255,255,255,.05);
    font-size: 29px;
    font-weight: 900;
}
.camera-window {
    position: relative;
    width: min(1190px, calc(100% - 24px));
    aspect-ratio: var(--photo-ratio);
    margin: 0 auto;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,.26);
    border-radius: 14px;
    background: #000;
}
.camera-window video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scaleX(-1);
}
.camera-status {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.55);
    color: rgba(255,255,255,.76);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .14em;
}
.camera-status.hidden { display: none; }
.countdown {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    color: #fff;
    font-size: 220px;
    font-weight: 900;
    text-shadow: 0 10px 40px rgba(0,0,0,.7);
}
.countdown.show { display: grid; }
.camera-controls {
    width: min(1190px, calc(100% - 24px));
    margin: 12px auto 0;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 12px;
}
.camera-controls .btn { min-height: 56px; font-size: 17px; }
.capture-sidebar {
    height: 100%;
    min-height: 0;
    padding: 16px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.capture-slots {
    flex: 1;
    min-height: 0;
    display: grid;
    gap: 10px;
}
.capture-slots-four { grid-template-rows: repeat(4, 1fr); }
.capture-slot {
    position: relative;
    min-height: 0;
    width: 100%;
    aspect-ratio: var(--photo-ratio);
    overflow: hidden;
    border: 4px solid transparent;
    border-radius: 7px;
    background: #fff;
}
.capture-slot.active { border-color: var(--red-bright); }
.capture-slot span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #777;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .1em;
}
.capture-slot img {
    width: 100%;
    height: 100%;
    display: none;
    object-fit: contain;
    background: #000;
}
.capture-slot.filled img { display: block; }
.capture-slot.filled span { display: none; }
.sidebar-note {
    margin: 0;
    color: rgba(255,255,255,.68);
    font-size: 13px;
    line-height: 1.4;
}

/* ============================================================
   STEP 03 — strip lebih besar dan proporsional, panel filter diringkas
   ============================================================ */
.editor-layout {
    width: 100%;
    height: calc(100vh - 40px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
}
.editor-preview-panel {
    height: 100%;
    min-height: 0;
    padding: 20px 24px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
}
.editor-head {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.editor-head h1 { margin-bottom: 8px; }
.canvas-wrap {
    flex: 1;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 2px 0 6px;
    overflow: hidden;
}
#stripCanvas {
    display: block;
    height: min(865px, calc(100vh - 165px));
    width: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 7px;
    box-shadow: 0 18px 50px rgba(0,0,0,.46);
}
.filter-panel {
    height: 100%;
    min-height: 0;
    padding: 20px 22px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
}
.small-brand {
    display: block;
    width: min(270px, 94%);
    height: auto;
    margin: 0 auto 12px;
}
.filter-panel h2 {
    margin: 0 0 14px;
    font-size: 28px;
    letter-spacing: .06em;
}
.filter-list { display: grid; gap: 8px; margin-bottom: 12px; }
.filter-btn {
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .07em;
    cursor: pointer;
}
.filter-btn.active { background: #bd0505; border-color: #ff4d4d; }
.filter-panel .sidebar-note { font-size: 13px; }
.filter-panel .btn { margin-top: auto; min-height: 54px; font-size: 16px; }

/* ============================================================
   STEP 04
   ============================================================ */
.payment-layout {
    width: 100%;
    height: calc(100vh - 40px);
    display: grid;
    place-items: center;
}
.payment-card {
    width: min(1500px, 100%);
    height: 100%;
    padding: 24px 30px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
}
.payment-content {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 44px;
    align-items: center;
}
.qris-box {
    width: min(540px, 100%);
    aspect-ratio: 1;
    padding: 22px;
    border-radius: 16px;
    background: #fff;
    color: #111;
    display: grid;
    place-items: center;
    justify-self: center;
}
.qris-image { max-width: 100%; max-height: 100%; object-fit: contain; }
.qris-placeholder { text-align: center; display: grid; gap: 10px; }
.qris-placeholder strong { font-size: 76px; }
.qris-placeholder span { color: #666; font-size: 13px; letter-spacing: .1em; }
.qris-placeholder code { padding: 9px; border-radius: 5px; background: #eee; }
.payment-copy h2 { margin-bottom: 10px; font-size: 48px; }
.payment-copy p { color: rgba(255,255,255,.75); font-size: 18px; line-height: 1.55; }
.demo-warning {
    margin: 18px 0;
    padding: 13px 15px;
    border: 1px solid rgba(255,196,0,.35);
    border-radius: 7px;
    background: rgba(255,196,0,.08);
    color: #ffd56b;
    font-size: 13px;
    letter-spacing: .07em;
}

/* ============================================================
   STEP 05 — strip utuh, QR lebih besar, heading dinaikkan
   ============================================================ */
.download-layout {
    width: 100%;
    height: calc(100vh - 40px);
    display: grid;
    place-items: center;
}
.download-card {
    width: min(1500px, 100%);
    height: 100%;
    padding: 22px 28px;
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 52px;
    align-items: center;
}
.download-preview {
    height: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: visible;
}
.download-preview img {
    display: block;
    height: min(925px, calc(100vh - 90px));
    width: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 7px;
    box-shadow: 0 18px 48px rgba(0,0,0,.48);
}
.download-copy {
    align-self: start;
    padding-top: 72px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.download-heading { width: 100%; }
.download-copy h1 {
    margin-bottom: 10px;
    font-size: 66px;
    line-height: .94;
}
.download-copy p {
    margin-bottom: 14px;
    color: rgba(255,255,255,.75);
    font-size: 18px;
    line-height: 1.45;
}
.qr-download-box {
    width: 390px;
    height: 390px;
    margin: 0 0 16px;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    display: grid;
    place-items: center;
}
.qr-download-box img { width: 100%; height: 100%; object-fit: contain; }
.download-actions {
    width: min(760px, 100%);
    display: grid;
    gap: 8px;
}
.download-actions .btn { min-height: 50px; font-size: 15px; }
.download-timer { margin-top: 12px; }
.hidden-download { position: absolute; left: -9999px; width: 1px; height: 1px; border: 0; }

/* ============================================================
   FINISH
   ============================================================ */
.finish-shell {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 900px;
    transform: translate(-50%, -50%);
    padding: 42px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(0,0,0,.64);
    backdrop-filter: blur(8px);
}
.finish-brand { width: 600px; }
.finish-shell h1 { margin: 0 0 10px; font-size: 62px; }
.finish-shell p { margin-bottom: 24px; color: rgba(255,255,255,.72); font-size: 19px; }
.finish-shell .btn-start { width: min(620px, 100%); }

/* ============================================================
   Fallback jika bukan monitor 1920x1080
   ============================================================ */
@media (max-width: 1500px), (max-height: 900px) {
    .inner-page { padding: 16px 22px; }
    .frame-layout, .camera-layout, .editor-layout, .payment-layout, .download-layout { height: calc(100vh - 32px); }
    .home-copy { left: 12vw; width: min(700px, 48vw); }
    .brand-title { width: 100%; }
    .btn-start { min-height: 66px; font-size: 27px; }
    .frame-grid { grid-template-columns: repeat(3, 220px); }
    .frame-image-wrap { height: min(585px, 65vh); }
    .selected-frame-preview { height: min(650px, calc(100vh - 150px)); }
    .camera-window, .camera-controls { width: min(1040px, calc(100% - 20px)); }
    #stripCanvas { height: min(730px, calc(100vh - 140px)); }
    .download-preview img { height: min(760px, calc(100vh - 68px)); }
    .download-copy { padding-top: 42px; }
    .download-copy h1 { font-size: 54px; }
    .qr-download-box { width: 310px; height: 310px; }
}

/* ============================================================
   STEP 04 — PRICE SELECTION + QRIS / CASH PAYMENT FLOW
   ============================================================ */
.payment-flow-page {
    width: 100%;
    height: calc(100vh - 40px);
}
.payment-flow-card {
    width: min(1720px, 100%);
    height: 100%;
    padding: 24px 28px 26px;
    overflow: hidden;
}
.payment-flow-head {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 12px;
}
.payment-flow-head h1 {
    margin: 0;
    font-size: 56px;
}
.payment-flow-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
    gap: 20px;
}
.payment-step-card {
    min-height: 0;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(17,17,17,.94), rgba(5,5,5,.9));
    overflow: hidden;
}
.payment-step-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.payment-step-number {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #bd0505;
    border: 1px solid #ff5151;
    font-size: 22px;
    font-weight: 900;
}
.payment-step-title h2 {
    margin: 0 0 3px;
    font-size: 27px;
    letter-spacing: .03em;
}
.payment-step-title p {
    margin: 0;
    color: rgba(255,255,255,.58);
    font-size: 13px;
}
.price-mode-switch,
.payment-method-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.price-mode-btn,
.payment-method-btn {
    min-height: 48px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 7px;
    background: rgba(255,255,255,.055);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .08em;
    cursor: pointer;
}
.price-mode-btn.active,
.payment-method-btn.active {
    background: #b80505;
    border-color: #ff4a4a;
}
.discount-condition {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 82px;
    margin-bottom: 13px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 9px;
    background: rgba(255,255,255,.035);
    transition: border-color .16s ease, background .16s ease;
}
.discount-condition.active {
    border-color: rgba(255,205,66,.62);
    background: rgba(255,196,0,.075);
}
.discount-condition-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}
.discount-condition-copy strong {
    color: #ffd66c;
    font-size: 13px;
    letter-spacing: .09em;
}
.discount-condition-copy span {
    color: rgba(255,255,255,.77);
    font-size: 13px;
    line-height: 1.35;
}
.discount-check {
    max-width: 245px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: rgba(255,255,255,.82);
    font-size: 12px;
    line-height: 1.35;
    cursor: pointer;
}
.discount-check input {
    width: 19px;
    height: 19px;
    margin: 0;
    accent-color: #bd0505;
}
.strip-price-grid {
    height: calc(100% - 206px);
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 11px;
}
.strip-price-card {
    position: relative;
    min-height: 0;
    padding: 16px 18px;
    display: grid;
    align-content: center;
    gap: 7px;
    text-align: left;
    border: 2px solid rgba(255,255,255,.14);
    border-radius: 12px;
    background: rgba(255,255,255,.045);
    color: #fff;
    cursor: pointer;
}
.strip-price-card:hover {
    border-color: rgba(255,255,255,.36);
}
.strip-price-card.active {
    border-color: #ff4b4b;
    background: linear-gradient(145deg, rgba(158,0,0,.33), rgba(255,255,255,.055));
    box-shadow: inset 0 0 0 1px rgba(255,75,75,.22);
}
.strip-count {
    font-size: 25px;
    font-weight: 900;
    letter-spacing: .03em;
}
.strip-price-normal,
.strip-price-discount {
    font-size: 14px;
    font-weight: 800;
}
.strip-price-normal { color: rgba(255,255,255,.62); }
.strip-price-discount { color: #81efa0; }
.strip-price-card.discount-active .strip-price-discount {
    font-size: 19px;
}
.strip-price-card:not(.discount-active) .strip-price-normal {
    color: #fff;
    font-size: 19px;
}
.method-step-card {
    display: flex;
    flex-direction: column;
}
.payment-method-panel {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(260px, .82fr) minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
}
.payment-qris-box {
    width: min(320px, 100%);
    aspect-ratio: 1;
    padding: 14px;
    display: grid;
    place-items: center;
    justify-self: center;
    border-radius: 12px;
    background: #fff;
    color: #111;
}
.payment-qris-box .qris-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.payment-qris-placeholder strong { font-size: 58px; }
.payment-qris-placeholder span { font-size: 11px; }
.payment-qris-placeholder code { font-size: 10px; }
.payment-method-info {
    min-width: 0;
}
.method-kicker {
    display: block;
    margin-bottom: 7px;
    color: #ff7777;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
}
.payment-method-info h3 {
    margin: 0 0 10px;
    font-size: 52px;
    line-height: 1;
}
.payment-method-info p {
    margin: 0;
    color: rgba(255,255,255,.7);
    font-size: 14px;
    line-height: 1.5;
}
.cash-method-panel {
    grid-template-columns: 230px minmax(0, 1fr);
}
.cash-icon {
    width: 210px;
    height: 210px;
    display: grid;
    place-items: center;
    justify-self: center;
    border: 2px solid #ff4b4b;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(189,5,5,.35), rgba(0,0,0,.1));
    font-size: 36px;
    font-weight: 900;
    letter-spacing: .08em;
}
.payment-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 9px;
    background: rgba(255,255,255,.055);
}
.payment-summary > div {
    min-width: 0;
    display: grid;
    gap: 4px;
}
.summary-label {
    color: rgba(255,255,255,.52);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}
.payment-summary strong {
    font-size: 14px;
}
.summary-total-wrap { text-align: right; }
.summary-total {
    color: #fff;
    font-size: 28px !important;
}
.payment-validation {
    min-height: 20px;
    margin-bottom: 5px;
    color: #ffcc70;
    font-size: 12px;
    line-height: 1.35;
}
.payment-confirm-btn {
    flex: 0 0 auto;
    min-height: 58px;
    font-size: 16px;
}
.cash-confirm-modal[hidden] { display: none !important; }
.cash-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0,0,0,.76);
    backdrop-filter: blur(8px);
}
.cash-confirm-dialog {
    width: min(620px, 94vw);
    padding: 30px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 16px;
    background: #090909;
    box-shadow: 0 24px 90px rgba(0,0,0,.7);
}
.cash-confirm-dialog h2 {
    margin: 0 0 12px;
    font-size: 34px;
}
.cash-confirm-dialog p {
    color: rgba(255,255,255,.7);
    font-size: 15px;
    line-height: 1.55;
}
.cash-confirm-total {
    margin: 20px 0;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    font-size: 16px;
}
.cash-confirm-total strong { font-size: 26px; }
.cash-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ============================================================
   STEP 05 — QR opens complete download gallery
   ============================================================ */
.download-card-assets {
    width: min(1600px, 100%);
    grid-template-columns: 430px minmax(0, 1fr);
    gap: 62px;
    padding: 18px 30px;
}
.download-card-assets .download-preview img {
    height: min(940px, calc(100vh - 76px));
    max-height: 100%;
    object-fit: contain;
}
.download-assets-copy {
    align-self: stretch;
    justify-content: center;
    padding-top: 18px;
}
.download-assets-copy .download-heading {
    width: 100%;
    max-width: 880px;
}
.download-assets-copy .download-heading h1 {
    margin-bottom: 9px;
    font-size: 68px;
}
.download-assets-copy .download-heading p {
    margin-bottom: 14px;
    font-size: 18px;
}
.download-qr-row {
    display: grid;
    grid-template-columns: 410px minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    margin-bottom: 14px;
}
.qr-download-box-large {
    width: 410px;
    height: 410px;
    margin: 0;
}
.download-file-list {
    min-width: 0;
    display: grid;
    gap: 12px;
    align-content: center;
}
.download-list-label {
    color: #ff7777;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .13em;
}
.download-file-list strong {
    display: block;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    font-size: 20px;
    letter-spacing: .035em;
}
.download-file-list p {
    margin: 2px 0 0;
    color: rgba(255,255,255,.68);
    font-size: 14px;
    line-height: 1.45;
}
.download-actions-assets {
    width: min(900px, 100%);
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.download-actions-assets .btn {
    min-height: 48px;
    padding: 0 18px;
    font-size: 13px;
}

/* ============================================================
   PUBLIC DOWNLOAD GALLERY — responsive for phone QR access
   ============================================================ */
.gallery-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    color: #fff;
    background:
        linear-gradient(rgba(0,0,0,.62), rgba(0,0,0,.78)),
        url('../images/bg.png') center / cover fixed no-repeat,
        #050505;
}
.gallery-shell {
    width: min(1180px, calc(100% - 34px));
    margin: 0 auto;
    padding: 30px 0 56px;
}
.gallery-header {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 22px;
    padding: 20px 24px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    background: rgba(5,5,5,.82);
    backdrop-filter: blur(10px);
}
.gallery-brand {
    width: 100%;
    height: auto;
    display: block;
}
.gallery-header h1 {
    margin: 0 0 7px;
    font-size: clamp(38px, 5vw, 68px);
}
.gallery-header p {
    margin: 0;
    color: rgba(255,255,255,.69);
    font-size: 16px;
    line-height: 1.45;
}
.gallery-feature-grid {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 18px;
    margin-bottom: 18px;
}
.gallery-asset-card,
.gallery-photos-section,
.gallery-error {
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    background: rgba(6,6,6,.86);
    backdrop-filter: blur(10px);
}
.gallery-asset-card {
    min-width: 0;
    padding: 18px;
}
.gallery-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 15px;
}
.gallery-card-head > div {
    display: grid;
    gap: 3px;
}
.gallery-card-head span {
    color: #ff7979;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .13em;
}
.gallery-card-head strong {
    font-size: 21px;
}
.gallery-download-btn {
    min-height: 44px;
    padding: 0 17px;
    font-size: 12px;
}
.gallery-strip-preview {
    height: 620px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}
.gallery-strip-preview img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.gallery-gif-preview {
    width: 100%;
    aspect-ratio: 601 / 404;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}
.gallery-gif-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.gallery-photos-section {
    padding: 20px;
}
.gallery-section-title h2 {
    margin: 0 0 16px;
    font-size: 30px;
}
.gallery-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.gallery-photo-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
}
.gallery-photo-card > img {
    width: 100%;
    aspect-ratio: 601 / 404;
    display: block;
    object-fit: contain;
    background: #000;
}
.gallery-photo-card > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
}
.gallery-photo-card strong {
    font-size: 16px;
}
.gallery-error {
    width: min(760px, 100%);
    margin: 15vh auto 0;
    padding: 34px;
    text-align: center;
}
.gallery-error .gallery-brand {
    width: min(390px, 90%);
    margin: 0 auto 24px;
}
.gallery-error h1 {
    margin-bottom: 12px;
    font-size: 48px;
}
.gallery-error p {
    color: rgba(255,255,255,.7);
    font-size: 16px;
}

@media (max-width: 1500px), (max-height: 900px) {
    .payment-flow-card { width: min(1450px, 100%); padding: 16px 20px; }
    .payment-flow-head h1 { font-size: 42px; }
    .payment-flow-head { margin-bottom: 8px; }
    .payment-step-card { padding: 14px; }
    .payment-step-title { margin-bottom: 9px; }
    .payment-step-number { width: 38px; height: 38px; flex-basis: 38px; font-size: 18px; }
    .payment-step-title h2 { font-size: 22px; }
    .price-mode-btn, .payment-method-btn { min-height: 39px; font-size: 12px; }
    .discount-condition { min-height: 67px; margin-bottom: 9px; padding: 8px 10px; }
    .discount-condition-copy span, .discount-check { font-size: 10px; }
    .strip-price-grid { height: calc(100% - 173px); gap: 8px; }
    .strip-price-card { padding: 10px 13px; }
    .strip-count { font-size: 20px; }
    .strip-price-card.discount-active .strip-price-discount,
    .strip-price-card:not(.discount-active) .strip-price-normal { font-size: 16px; }
    .payment-method-panel { gap: 14px; padding: 10px; }
    .payment-qris-box { width: min(245px, 100%); }
    .payment-method-info h3 { font-size: 40px; }
    .cash-icon { width: 170px; height: 170px; font-size: 28px; }
    .payment-summary { padding: 8px 10px; margin-bottom: 6px; }
    .summary-total { font-size: 22px !important; }
    .payment-confirm-btn { min-height: 48px; font-size: 13px; }
    .download-card-assets { grid-template-columns: 360px minmax(0, 1fr); gap: 38px; }
    .download-qr-row { grid-template-columns: 320px minmax(0, 1fr); gap: 20px; }
    .qr-download-box-large { width: 320px; height: 320px; }
    .download-assets-copy .download-heading h1 { font-size: 53px; }
}

@media (max-width: 780px) {
    .gallery-shell { width: min(100% - 22px, 680px); padding-top: 12px; }
    .gallery-header { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
    .gallery-brand { width: min(290px, 82%); margin: 0 auto; }
    .gallery-header { text-align: center; }
    .gallery-header h1 { font-size: 38px; }
    .gallery-feature-grid { grid-template-columns: 1fr; }
    .gallery-strip-preview { height: min(78vh, 680px); }
    .gallery-photo-grid { grid-template-columns: 1fr; }
    .gallery-card-head { align-items: flex-start; flex-direction: column; }
    .gallery-card-head .gallery-download-btn { width: 100%; }
    .gallery-photo-card > div { flex-direction: column; align-items: stretch; }
    .gallery-photo-card strong { text-align: center; }
    .gallery-download-btn { width: 100%; }
}
.payment-method-panel[hidden] { display: none !important; }

/* ============================================================
   PAYMENT V3 — SPLIT MULTI-PAGE FLOW (1920x1080)
   ============================================================ */
.payment-stage-page {
    width: 100%;
    height: calc(100vh - 40px);
    display: grid;
    place-items: center;
}
.payment-stage-shell {
    width: min(1510px, 100%);
    height: 100%;
    min-height: 0;
    padding: 30px 34px;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(110deg, rgba(6,6,6,.96), rgba(7,7,7,.91) 64%, rgba(52,0,0,.58));
}
.payment-stage-header {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
}
.payment-stage-header h1 {
    margin: 0 0 9px;
    font-size: 58px;
    line-height: .96;
}
.payment-stage-header p {
    margin: 0;
    color: rgba(255,255,255,.65);
    font-size: 17px;
}
.package-form {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.package-mode-row {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.package-mode-btn {
    min-height: 96px;
    padding: 16px 20px;
    border: 2px solid rgba(255,255,255,.16);
    border-radius: 13px;
    background: rgba(255,255,255,.045);
    color: #fff;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "kicker kicker" "title small";
    column-gap: 18px;
    align-items: end;
    text-align: left;
    cursor: pointer;
}
.package-mode-btn:hover { border-color: rgba(255,255,255,.34); }
.package-mode-btn.active {
    border-color: #ff4646;
    background: linear-gradient(120deg, rgba(169,8,8,.42), rgba(255,255,255,.055));
    box-shadow: inset 0 0 0 1px rgba(255,70,70,.18);
}
.package-mode-btn.discount.active {
    border-color: #ffd25c;
    background: linear-gradient(120deg, rgba(130,86,0,.35), rgba(255,255,255,.055));
}
.package-mode-kicker {
    grid-area: kicker;
    color: #ff7777;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}
.package-mode-btn.discount .package-mode-kicker { color: #ffd56a; }
.package-mode-btn strong {
    grid-area: title;
    font-size: 28px;
    letter-spacing: .04em;
}
.package-mode-btn small {
    grid-area: small;
    justify-self: end;
    color: rgba(255,255,255,.62);
    font-size: 13px;
    line-height: 1.35;
}
.package-strip-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(var(--package-columns, 4), minmax(0, 1fr));
    gap: 16px;
}
.package-strip-grid.package-grid-many {
    grid-auto-rows: minmax(0, 1fr);
}
.package-strip-grid.package-grid-many .package-strip-number { font-size: 54px; }
.package-strip-grid.package-grid-many .package-strip-label { margin-bottom: 5px; font-size: 12px; }
.package-strip-grid.package-grid-many .package-strip-price { font-size: 24px; }
.package-strip-card {
    min-width: 0;
    padding: 20px;
    border: 2px solid rgba(255,255,255,.13);
    border-radius: 16px;
    background: rgba(255,255,255,.035);
    color: #fff;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    cursor: pointer;
}
.package-strip-card:hover { border-color: rgba(255,255,255,.32); }
.package-strip-card.active {
    border-color: #ff4444;
    background: radial-gradient(circle at 50% 30%, rgba(179,7,7,.38), rgba(255,255,255,.035) 62%);
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(0,0,0,.24);
}
.package-strip-number {
    font-size: 78px;
    line-height: .9;
    font-weight: 900;
}
.package-strip-label {
    margin-bottom: 14px;
    color: rgba(255,255,255,.63);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .16em;
}
.package-strip-price {
    font-size: 30px;
    font-weight: 900;
}
.package-strip-old-price {
    color: rgba(255,255,255,.5);
    font-size: 12px;
    text-decoration: line-through;
}
.package-strip-old-price[hidden] { display: none; }
.instagram-discount-box {
    flex: 0 0 auto;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 11px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    transition: max-height .18s ease, opacity .18s ease, padding .18s ease, margin .18s ease;
}
.instagram-discount-box.visible {
    max-height: 112px;
    opacity: 1;
    margin-top: 16px;
    padding: 14px 18px;
    border-color: rgba(255,211,88,.46);
    background: rgba(255,194,0,.07);
}
.instagram-discount-copy { display: grid; gap: 3px; }
.instagram-badge {
    color: #ffd66b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .15em;
}
.instagram-discount-copy strong { font-size: 15px; }
.instagram-discount-copy p {
    margin: 0;
    color: rgba(255,255,255,.58);
    font-size: 12px;
}
.instagram-agreement {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.8);
    font-size: 13px;
    cursor: pointer;
}
.instagram-agreement input {
    width: 22px;
    height: 22px;
    accent-color: #b80505;
}
.package-footer {
    flex: 0 0 auto;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}
.package-summary { display: grid; gap: 2px; }
.package-summary > span {
    color: rgba(255,255,255,.5);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .15em;
}
.package-summary strong { font-size: 35px; }
.package-summary small { color: rgba(255,255,255,.59); font-size: 13px; }
.package-footer-actions { min-width: 430px; display: grid; gap: 6px; }
.package-validation { min-height: 18px; color: #ffd56a; font-size: 12px; text-align: right; }
.package-next-btn { width: 100%; min-height: 62px; font-size: 15px; }

.method-stage-content {
    min-height: 0;
    flex: 1;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 24px;
}
.payment-order-summary {
    min-height: 0;
    padding: 26px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(145,4,4,.34), rgba(255,255,255,.035));
    display: flex;
    flex-direction: column;
}
.order-summary-label {
    color: #ff8181;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
}
.order-summary-strip-count {
    margin: 30px 0;
    display: flex;
    align-items: end;
    gap: 12px;
}
.order-summary-strip-count strong { font-size: 96px; line-height: .78; }
.order-summary-strip-count span { padding-bottom: 7px; font-size: 18px; font-weight: 900; }
.order-summary-line {
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    justify-content: space-between;
    gap: 15px;
}
.order-summary-line span { color: rgba(255,255,255,.56); }
.order-summary-total {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.16);
    display: grid;
    gap: 4px;
}
.order-summary-total span { color: rgba(255,255,255,.55); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.order-summary-total strong { font-size: 38px; }
.order-discount-reminder { margin: 14px 0 0; color: #ffd56a; font-size: 12px; line-height: 1.45; }
.method-choice-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.method-choice-form { min-height: 0; }
.method-choice-card {
    width: 100%;
    height: 100%;
    padding: 30px;
    border: 2px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.035);
    color: #fff;
    display: grid;
    grid-template-rows: 1fr auto auto;
    justify-items: start;
    text-align: left;
    cursor: pointer;
    position: relative;
}
.method-choice-card:hover {
    border-color: #ff4646;
    background: rgba(145,4,4,.20);
    transform: translateY(-3px);
}
.method-choice-icon {
    width: 150px;
    height: 150px;
    align-self: center;
    justify-self: center;
    border-radius: 24px;
    display: grid;
    place-items: center;
}
.qr-icon-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    padding: 20px;
    border: 7px solid #fff;
}
.qr-icon-grid i { width: 100%; height: 100%; border: 7px solid #fff; }
.cash-choice-icon {
    border: 4px solid #fff;
    border-radius: 50%;
    font-size: 54px;
    font-weight: 900;
}
.method-choice-copy { display: grid; gap: 5px; }
.method-choice-copy small { color: #ff7979; font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.method-choice-copy strong { font-size: 42px; }
.method-choice-copy span { color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.4; }
.method-choice-arrow { position: absolute; right: 28px; bottom: 29px; font-size: 30px; }
.payment-stage-bottom-bar {
    flex: 0 0 auto;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.payment-stage-bottom-bar span { color: rgba(255,255,255,.5); font-size: 13px; }
.payment-back-btn { min-width: 210px; min-height: 54px; }

.payment-confirm-layout {
    min-height: 0;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(430px, .85fr) minmax(0, 1.15fr);
    gap: 58px;
    align-items: center;
    padding: 0 46px 30px;
}
.payment-main-qris-box {
    width: min(570px, 100%);
    aspect-ratio: 1;
    padding: 20px;
    justify-self: center;
    border-radius: 22px;
    background: #fff;
    display: grid;
    place-items: center;
    color: #111;
}
.payment-main-qris-box > img { width: 100%; height: 100%; object-fit: contain; }
.payment-missing-qris { text-align: center; display: grid; gap: 12px; }
.payment-missing-qris strong { font-size: 86px; letter-spacing: -.05em; }
.payment-missing-qris span { color: #666; font-size: 13px; }
.payment-missing-qris code { padding: 11px 14px; border-radius: 7px; background: #eee; font-size: 12px; }
.payment-confirm-copy { max-width: 650px; display: flex; flex-direction: column; align-items: flex-start; }
.payment-confirm-brand { width: 330px; max-width: 70%; margin-bottom: 24px; }
.payment-confirm-kicker { color: #ff7d7d; font-size: 12px; font-weight: 900; letter-spacing: .15em; }
.payment-confirm-amount { margin: 4px 0 18px; font-size: 72px; line-height: 1; }
.payment-confirm-order {
    width: 100%;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 11px;
    overflow: hidden;
}
.payment-confirm-order > div { padding: 13px 15px; display: grid; gap: 4px; background: rgba(255,255,255,.035); }
.payment-confirm-order > div + div { border-left: 1px solid rgba(255,255,255,.12); }
.payment-confirm-order span { color: rgba(255,255,255,.5); font-size: 11px; }
.payment-confirm-order b { font-size: 15px; }
.payment-confirm-copy > p { color: rgba(255,255,255,.65); font-size: 14px; line-height: 1.5; }
.payment-final-form { width: 100%; margin-top: 12px; }
.payment-final-btn { width: 100%; min-height: 64px; font-size: 15px; }
.payment-text-back { margin-top: 14px; color: rgba(255,255,255,.58); font-size: 13px; text-decoration: none; }
.payment-text-back:hover { color: #fff; }
.cash-visual-card {
    width: min(570px, 100%);
    aspect-ratio: 1;
    justify-self: center;
    border: 2px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(181,7,7,.42), rgba(12,12,12,.96) 65%);
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    position: relative;
}
.cash-visual-small { color: #ff8383; font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.cash-visual-card > strong { font-size: 88px; line-height: 1; }
.cash-visual-rupiah { position: absolute; right: 76px; bottom: 82px; font-size: 48px; font-weight: 900; opacity: .18; }
.cash-confirm-notice {
    width: 100%;
    margin-top: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(255,197,61,.38);
    border-radius: 9px;
    background: rgba(255,191,0,.07);
    display: grid;
    gap: 4px;
}
.cash-confirm-notice strong { color: #ffd66e; font-size: 12px; letter-spacing: .12em; }
.cash-confirm-notice span { color: rgba(255,255,255,.72); font-size: 13px; }

/* ============================================================
   STEP 05 V3 — ONE ZIP DOWNLOAD
   ============================================================ */
.package-download-layout {
    width: 100%;
    height: calc(100vh - 40px);
    display: grid;
    place-items: center;
}
.package-download-card {
    width: min(1320px, 100%);
    height: 100%;
    padding: 26px 34px;
    border-radius: 22px;
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 58px;
    align-items: center;
    background: linear-gradient(110deg, rgba(6,6,6,.96), rgba(7,7,7,.91) 64%, rgba(52,0,0,.58));
}
.package-download-preview {
    height: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
}
.package-download-preview img {
    display: block;
    height: min(940px, calc(100vh - 84px));
    width: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 18px 56px rgba(0,0,0,.52);
}
.package-download-copy {
    min-width: 0;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.package-download-heading h1 { margin-bottom: 8px; font-size: 64px; }
.package-download-heading p { margin: 0 0 14px; color: rgba(255,255,255,.67); font-size: 16px; }
.package-download-qr {
    width: 410px;
    height: 410px;
    margin: 0 0 16px;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
}
.package-download-qr img { width: 100%; height: 100%; object-fit: contain; }
.package-download-actions {
    width: min(650px, 100%);
    display: grid;
    gap: 9px;
}
.package-download-actions .btn { width: 100%; min-height: 56px; font-size: 15px; }
.package-download-timer { margin-top: 12px; }

@media (max-width: 1500px), (max-height: 900px) {
    .payment-stage-shell { width: min(1450px, 100%); padding: 18px 24px; }
    .payment-stage-header { margin-bottom: 15px; }
    .payment-stage-header h1 { font-size: 46px; }
    .package-mode-btn { min-height: 78px; padding: 12px 16px; }
    .package-strip-number { font-size: 62px; }
    .package-strip-price { font-size: 25px; }
    .instagram-discount-box.visible { max-height: 96px; padding: 10px 14px; }
    .package-footer { margin-top: 12px; padding-top: 11px; }
    .order-summary-strip-count strong { font-size: 76px; }
    .method-choice-icon { width: 120px; height: 120px; }
    .payment-confirm-layout { padding: 0 30px 18px; gap: 40px; }
    .payment-main-qris-box, .cash-visual-card { width: min(460px, 100%); }
    .payment-confirm-amount { font-size: 60px; }
    .package-download-card { width: min(1250px, 100%); grid-template-columns: 340px minmax(0, 1fr); gap: 42px; padding: 18px 28px; }
    .package-download-preview img { height: min(790px, calc(100vh - 58px)); }
    .package-download-heading h1 { font-size: 54px; }
    .package-download-qr { width: 335px; height: 335px; }
}

/* ============================================================
   REVISION 20260828 — HOME CENTER + FRAME REVIEW RETAKE + QR CENTER
   ============================================================ */

/* 1) MENU AWAL: posisi sama seperti halaman finish — benar-benar center. */
.home-copy {
    left: 50% !important;
    top: 50% !important;
    width: 830px !important;
    max-width: calc(100vw - 120px);
    transform: translate(-50%, -50%) !important;
    text-align: center;
}
.home-copy .brand-title {
    width: 830px !important;
    max-width: 100%;
    margin-bottom: 20px;
}
.home-copy .btn-start {
    width: 100%;
    min-height: 82px;
    font-size: 33px;
}

/* 2) STEP 02: hasil jepretan langsung berada di dalam frame photostrip pilihan. */
.camera-layout-strip-review {
    grid-template-columns: minmax(0, 1fr) 330px;
}
.camera-stage {
    padding: 18px 24px;
}
.camera-mode-copy {
    max-width: 850px;
    margin: -2px 0 10px;
    color: rgba(255,255,255,.62);
    font-size: 14px;
    line-height: 1.35;
}
.camera-window {
    width: min(1160px, calc(100% - 24px));
}
.camera-controls-review {
    width: min(1160px, calc(100% - 24px));
}
.shot-counter {
    min-width: 86px;
    text-align: center;
}
.review-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    text-align: center;
    background: rgba(0,0,0,.52);
    backdrop-filter: blur(2px);
}
.review-overlay[hidden] { display: none; }
.review-overlay strong {
    font-size: 42px;
    letter-spacing: .04em;
}
.review-overlay span {
    max-width: 660px;
    color: rgba(255,255,255,.82);
    font-size: 17px;
    line-height: 1.45;
}

.capture-strip-sidebar {
    padding: 14px 16px 16px;
    gap: 9px;
    align-items: center;
}
.capture-strip-heading {
    width: 100%;
    display: grid;
    gap: 4px;
    text-align: center;
}
.capture-strip-heading strong {
    font-size: 15px;
    letter-spacing: .11em;
}
.capture-strip-heading span {
    min-height: 34px;
    color: rgba(255,255,255,.62);
    font-size: 11px;
    line-height: 1.35;
}
.live-strip-shell {
    position: relative;
    height: min(690px, calc(100vh - 245px));
    aspect-ratio: 682 / 2048;
    flex: 0 0 auto;
    overflow: hidden;
    background: #070707;
    border-radius: 7px;
    box-shadow: 0 14px 34px rgba(0,0,0,.46);
}
.live-strip-frame {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}
.live-strip-slot {
    position: absolute;
    left: 6.0117%;
    width: 88.1232%;
    height: 19.7266%;
    z-index: 2;
    overflow: hidden;
    border: 2px solid transparent;
    background: #050505;
    cursor: default;
    transition: border-color .14s ease, box-shadow .14s ease, filter .14s ease;
}
.live-strip-slot[data-slot="0"] { top: 6.8848%; }
.live-strip-slot[data-slot="1"] { top: 27.9297%; }
.live-strip-slot[data-slot="2"] { top: 48.9746%; }
.live-strip-slot[data-slot="3"] { top: 70.0195%; }
.live-strip-slot img {
    width: 100%;
    height: 100%;
    display: none;
    object-fit: cover;
}
.live-strip-slot span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.56);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}
.live-strip-slot.filled img { display: block; }
.live-strip-slot.filled span { display: none; }
.live-strip-slot.active {
    border-color: rgba(255,67,67,.95);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.65);
}
.live-strip-slot.retake-selected {
    z-index: 2;
    border-color: #ff2525;
    box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px rgba(255,37,37,.92);
    cursor: pointer;
}
.retake-picker {
    width: 100%;
    display: grid;
    gap: 6px;
    text-align: center;
}
.retake-picker[hidden] { display: none; }
.retake-picker > span {
    color: #ff8585;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
}
.retake-number-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.retake-number-row button {
    min-height: 30px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 5px;
    background: rgba(255,255,255,.06);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}
.retake-number-row button.active {
    border-color: #ff4747;
    background: #a90808;
}

/* Dalam review mode, empat jendela strip menjadi area pemilihan. */
.capture-strip-sidebar:has(.retake-picker:not([hidden])) .live-strip-slot.filled {
    cursor: pointer;
}

/* 3) STEP 05: title, QR, tombol DOWNLOAD/FINISH semuanya satu sumbu tengah. */
.package-download-copy {
    align-items: center !important;
    justify-content: center;
    text-align: center;
}
.package-download-heading {
    width: min(700px, 100%);
    text-align: center;
}
.package-download-heading h1 {
    margin-left: auto;
    margin-right: auto;
}
.package-download-heading p {
    margin-left: auto;
    margin-right: auto;
}
.package-download-qr {
    margin: 4px auto 18px !important;
}
.package-download-actions {
    width: min(660px, 100%);
    margin: 0 auto;
}
.package-download-timer {
    margin: 12px auto 0;
}

@media (max-width: 1500px), (max-height: 900px) {
    .home-copy {
        width: 730px !important;
        max-width: 48vw;
    }
    .home-copy .brand-title { width: 730px !important; }
    .camera-layout-strip-review { grid-template-columns: minmax(0, 1fr) 290px; }
    .live-strip-shell { height: min(600px, calc(100vh - 220px)); }
    .camera-window,
    .camera-controls-review { width: min(1040px, calc(100% - 20px)); }
    .package-download-copy { align-items: center !important; }
}

/* ============================================================
   DYNAMIC FRAME LIBRARY — unlimited frame options in fixed 1920x1080 artboard
   ============================================================ */
.frame-carousel-area {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 12px;
}
.frame-carousel-window {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.24) transparent;
    scroll-behavior: smooth;
    display: flex;
    align-items: center;
}
.frame-carousel-window::-webkit-scrollbar { height: 8px; }
.frame-carousel-window::-webkit-scrollbar-thumb { background: rgba(255,255,255,.24); border-radius: 8px; }
.frame-grid.frame-grid-dynamic {
    flex: none;
    min-width: max-content;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 82px;
    padding: 0 38px;
}
.frame-grid-dynamic .frame-option {
    flex: 0 0 250px;
    width: 250px;
    scroll-snap-align: center;
}
.frame-carousel-btn {
    width: 52px;
    height: 72px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 10px;
    background: rgba(0,0,0,.28);
    color: #fff;
    font-size: 50px;
    line-height: 1;
    cursor: pointer;
}
.frame-carousel-btn:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.46); }
.frame-count-copy {
    color: rgba(255,255,255,.54);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
}

/* ============================================================
   KEYBOARD KIOSK NAVIGATION
   Arrow keys move the active control. Enter executes it.
   ============================================================ */
.keyboard-help {
    position: absolute;
    left: 50%;
    bottom: 10px;
    z-index: 500;
    transform: translateX(-50%);
    min-height: 40px;
    padding: 7px 14px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 9px;
    background: rgba(0,0,0,.78);
    box-shadow: 0 8px 22px rgba(0,0,0,.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: rgba(255,255,255,.9);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    pointer-events: none;
    white-space: nowrap;
}
.keyboard-help-title {
    color: #ff7a7a;
    letter-spacing: .13em;
}
.keyboard-help-command {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.keyboard-help-separator { color: rgba(255,255,255,.36); }
.keyboard-help kbd {
    min-width: 25px;
    height: 25px;
    padding: 0 6px;
    border: 1px solid rgba(255,255,255,.45);
    border-bottom-width: 3px;
    border-radius: 5px;
    background: rgba(255,255,255,.09);
    display: inline-grid;
    place-items: center;
    color: #fff;
    font: inherit;
    letter-spacing: 0;
}

.keyboard-focus,
.keyboard-focus:focus,
.keyboard-focus:focus-visible {
    outline: 4px solid #ffd75e !important;
    outline-offset: 5px !important;
}

.frame-option.keyboard-focus {
    outline: 0 !important;
}
.frame-option.keyboard-focus .frame-image-wrap {
    border-color: #ffd75e !important;
    box-shadow: 0 0 0 4px #fff, 0 18px 42px rgba(0,0,0,.42) !important;
    transform: translateY(-5px) scale(1.01);
}
.live-strip-slot.keyboard-focus {
    z-index: 6;
    outline-offset: 2px !important;
}
.instagram-agreement:focus-within {
    outline: 4px solid #ffd75e;
    outline-offset: 5px;
    border-radius: 5px;
}

@media (max-width: 900px), (max-height: 620px) {
    .keyboard-help {
        bottom: 6px;
        transform: translateX(-50%) scale(.9);
        transform-origin: center bottom;
    }
}
