/* ============================================================
   Photobox — Modern Visual Redesign (2026)
   Light / clean kiosk theme · electric-blue accent
   Locked 3:2 letterbox · solid floating overlay cards
   NOTE: Only visuals changed. All IDs / data-testid / JS hooks preserved.
   ============================================================ */

:root {
  --bg:        #eaeef6;
  --bg-deep:   #dfe5f1;
  --card:      #ffffff;
  --ink:       #0c1222;
  --ink-soft:  #26304a;
  --muted:     #64708a;
  --line:      #e5eaf3;
  --line-2:    #d5ddec;
  --dark:      #111827;
  --dark-ink:  #ffffff;

  --accent:      #2f5bff;
  --accent-deep: #1f43d6;
  --accent-soft: #eaf0ff;
  --accent-ink:  #ffffff;
  --accent-glow: 0 12px 30px -8px rgba(47, 91, 255, .55);

  --radius:   22px;
  --radius-l: 30px;
  --radius-s: 14px;

  --shadow:    0 18px 50px -18px rgba(16, 26, 55, .22);
  --shadow-lg: 0 34px 90px -28px rgba(16, 26, 55, .38);
  --shadow-sm: 0 6px 20px -10px rgba(16, 26, 55, .25);

  --font-head: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 720px at 14% -10%, rgba(47, 91, 255, .10), transparent 60%),
    radial-gradient(900px 640px at 100% 6%, rgba(47, 91, 255, .07), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, select, input { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -.02em; margin: 0; }

::selection { background: rgba(47, 91, 255, .18); }

.app-shell { width: min(1460px, 100%); margin: 0 auto; padding: clamp(16px, 3vw, 32px); }
.topbar { display: none; }
.progress { display: none; }
.screen { display: none; }
.screen.active { display: block; }
.muted { color: var(--muted); line-height: 1.65; }
.hidden { display: none !important; }





/* ---------------- Buttons ---------------- */
.btn {
  border: 0; border-radius: var(--radius-s);
  padding: 14px 24px; cursor: pointer; font-weight: 700; font-family: var(--font-body);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; letter-spacing: .01em; position: relative;
}
.btn:hover  { }
.btn:active { }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary   { background: var(--dark); color: #fff; box-shadow: 0 14px 30px -14px rgba(17, 24, 39, .8); }
.btn-secondary { background: #eef1f8; color: var(--ink-soft); border: 1.5px solid var(--line-2); }
.btn-secondary:hover { background: #e7ecf7; }
.btn-accent    { background: linear-gradient(180deg, #3a67ff, var(--accent)); color: var(--accent-ink); box-shadow: var(--accent-glow); }
.btn-accent:hover { box-shadow: 0 18px 40px -10px rgba(47, 91, 255, .6); }
.btn-large { flex: 1; min-height: 62px; font-size: 17px; border-radius: 16px; }
.button-row { display: flex; gap: 14px; }

/* DONE - tombol Mulai Sesi Baru full width */
#btnNewSession {
  width: 100%;
  flex: 1 1 100%;
}

/* ---------------- Start / model selection ---------------- */
.start-page {
  min-height: calc(100dvh - clamp(32px, 6vw, 64px));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(26px, 4vw, 44px); padding: 24px 0;
  transform: scale(1.20);
}
.start-head { text-align: center; }
.brand-lg {
  font-family: var(--font-head);
  font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; letter-spacing: -.045em; line-height: 1;
  background: linear-gradient(120deg, #0c1222 0%, #22345f 55%, var(--accent) 130%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.start-sub { color: var(--muted); font-size: clamp(15px, 1.9vw, 20px); margin-top: 12px; font-weight: 500; }

.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); width: min(1080px, 100%); }
.model-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 16px; cursor: pointer; text-align: center; display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-sm);
}
.model-card:hover { box-shadow: var(--shadow-lg); }
.model-card.active { border-color: var(--accent); box-shadow: 0 22px 55px -18px rgba(47, 91, 255, .5); }
.model-card.active .model-preview { outline: 2px solid rgba(47,91,255,.35); outline-offset: 2px; }
.model-preview { background: #f3f5fb; border-radius: 16px; padding: 16px; display: grid; place-items: center; width: 100%; }
.model-preview img { display: block; width: 100%; max-height: 320px; object-fit: contain; margin: 0 auto; }
.model-name { font-family: var(--font-head); font-size: 20px; font-weight: 700; margin-top: 6px; text-align: center; }
.model-desc { color: var(--muted); font-weight: 600; font-size: 14px; text-align: center; }
.model-print {
  align-self: center; margin-top: 6px; background: var(--accent-soft); color: var(--accent-deep);
  font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.start-button { width: min(340px, 90vw); height: 78px; font-size: 24px; border-radius: 20px; letter-spacing: .06em; }

/* ---------------- Session timer ---------------- */
.session-timer {
  position: fixed; top: clamp(12px, 2vh, 22px); left: 50%; transform: translateX(-50%); z-index: 120;
  background: rgba(12, 18, 34, .9); color: #fff; font-family: var(--font-head);
  font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; letter-spacing: .04em;
  padding: 8px 30px; border-radius: 16px; font-variant-numeric: tabular-nums;
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .5); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
}
.session-timer.warn { background: linear-gradient(180deg, #ff5470, #e11d48); }


/* ============================================================
   STAGE SCREENS (Camera + Review) — 3:2 letterbox + overlay card
   ============================================================ */
#screenCamera.active, #screenReview.active {
  position: fixed; inset: 0; z-index: 60; background: #05070d;
  display: grid; place-items: center; padding: 0; overflow: hidden;
}

/* letterbox 3:2 stage — always fully visible, black bars fill the rest */
.video-wrap, .review-stage {
  position: relative; aspect-ratio: 3 / 2;
  width: min(100vw, calc(100dvh * 3 / 2));
  height: auto; max-height: 100dvh;
  background: #000; overflow: hidden;
}
.video-wrap video, .video-wrap img, .video-wrap canvas, .review-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }


.video-wrap.mirrored video,
.video-wrap.mirrored > img,
.video-wrap.mirrored > canvas {
    transform: scaleX(-1);
}


/* faint vignette so the overlay card reads cleanly */
.video-wrap::after, .review-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 34%);
}

/* Progres foto — segmen modern, konsisten di kamera dan layar review */
.shot-progress { width: 100%; max-width: 460px; text-align: left; margin: 0 auto 2px; }
.shot-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.shot-progress-label { font-size: 11px; font-weight: 800; letter-spacing: .13em; color: var(--muted); }
.shot-progress-count { font-size: 15px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.shot-progress-count b { color: var(--accent); font-size: 21px; font-weight: 900; }
.shot-progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: #e8ebf2; box-shadow: inset 0 1px 2px rgba(18,25,40,.08); }
.shot-progress-fill { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff4778, #ff8a52); box-shadow: 0 2px 8px rgba(255,71,120,.3); transition: width .42s cubic-bezier(.2,.8,.2,1); }
.shot-progress-steps { display: grid; grid-template-columns: repeat(var(--shot-count, 4), minmax(0, 1fr)); gap: 6px; margin-top: 7px; width: 100%; }
.shot-progress-steps span { display: flex; align-items: center; justify-content: center; height: 22px; border-radius: 7px; color: #8a91a1; background: #f0f2f7; font-size: 11px; font-weight: 800; transition: color .2s, background .2s, transform .2s; }
.shot-progress-steps span.done { color: #fff; background: #ff7897; }
.shot-progress-steps span.active { color: #fff; background: linear-gradient(135deg, #ff4778, #f65d8b); transform: translateY(-1px); box-shadow: 0 3px 9px rgba(255,71,120,.22); }
@media (max-width: 520px) { .shot-progress { max-width: 100%; } .shot-progress-label { font-size: 10px; } .shot-progress-count { font-size: 13px; } .shot-progress-count b { font-size: 19px; } }

/* Countdown */
.countdown {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 4;
  background: radial-gradient(closest-side, rgba(5,7,13,.35), rgba(5,7,13,.62));
  color: #fff; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(120px, 26vh, 300px); text-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.countdown.is-camera-prompt { font-size: clamp(28px, 4.6vw, 58px); font-family: var(--font-head); font-weight: 1000; letter-spacing: .015em; line-height: 1.15; text-align: center; padding: 24px; color: #fff; text-shadow: 0 3px 0 rgba(120, 15, 52, .45), 0 5px 18px rgba(0,0,0,.35); }
.countdown.is-camera-prompt { isolation: isolate; }
.countdown.is-camera-prompt::before { z-index: 0; width: clamp(290px, 72vw, 700px); aspect-ratio: 3.1 / 1; border-radius: 28px; border: 4px solid #fff; background: linear-gradient(135deg, #e91e63 0%, #ff386f 48%, #ff7a35 100%); box-shadow: 0 18px 55px rgba(0,0,0,.48), 0 0 0 7px rgba(255,255,255,.18); backdrop-filter: blur(4px); }
.countdown.is-camera-prompt .camera-prompt-text { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 1.5em; padding: .2em .4em; color: #fff; font-size: inherit; font-weight: 1000; line-height: 1.15; text-align: center; text-shadow: 0 3px 2px rgba(70,0,25,.85), 0 0 12px rgba(70,0,25,.45); }

@media (max-width: 520px) { .countdown.is-camera-prompt { font-size: clamp(25px, 7vw, 38px); padding: 18px; } .countdown.is-camera-prompt::before { width: 88vw; aspect-ratio: 2.6 / 1; border-radius: 22px; border-width: 3px; } }
.countdown::before {
  content: ""; position: absolute; width: clamp(180px, 34vh, 380px); aspect-ratio: 1;
  border-radius: 50%; border: 5px solid rgba(255,255,255,.4);
}

/* Status kamera terputus (auto-reconnect tanpa refresh) */
.cam-status {
  position: absolute; top: clamp(14px, 2.4vh, 24px); left: 50%; transform: translateX(-50%); z-index: 8;
  background: rgba(225, 29, 72, .92); color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 22px; border-radius: 999px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
  letter-spacing: .01em;
}

/* Processing overlay — photo stack animation */
.processing {
  position: absolute; inset: 0; z-index: 7;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #0b0f18;
  color: #fff;
}
.processing.hidden { display: none; }
.processing::before {
  content: ""; position: absolute; width: 46%; aspect-ratio: 1; max-width: 420px;
  border-radius: 50%; background: rgba(47,91,255,.07);
}
.processing-content {
  position: relative; z-index: 1; width: min(88vw, 520px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.processing-brand {
  font-family: var(--font-head); font-size: clamp(14px, 2vw, 18px); font-weight: 800;
  letter-spacing: .12em; margin-bottom: clamp(12px, 2vh, 22px); opacity: .9;
}
.processing-brand b { color: var(--accent); }
.processing-photo-stage {
  position: relative; width: clamp(230px, 34vw, 360px); aspect-ratio: 3 / 2;
  margin-bottom: clamp(18px, 2.5vh, 26px);
}
.processing-photo-card {
  position: absolute; inset: 0; overflow: hidden; border-radius: 12px;
  background: #20283b;
  border: 3px solid #fff; box-shadow: 0 10px 24px rgba(0,0,0,.24);
  transition: transform .16s ease, opacity .16s ease;
}
.processing-photo-card.card-1 { transform: translate(-26px, 18px) rotate(-10deg) scale(.88); opacity: .42; }
.processing-photo-card.card-2 { transform: translate(22px, 12px) rotate(8deg) scale(.91); opacity: .55; }
.processing-photo-card.card-3 { transform: translate(-10px, 6px) rotate(-4deg) scale(.95); opacity: .72; }
.processing-photo-card.card-main {
  z-index: 4; transform: translateY(0);
}
.processing-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Mirror foto processing agar sama dengan tampilan kamera/live preview */
  transform: scaleX(-1);
}
.processing-photo-placeholder {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%; height: 100%; display: block;
  background: linear-gradient(135deg, #ffb36b 0%, #ff7892 42%, #a66bdb 72%, #566ee8 100%);
}
.processing-photo-placeholder::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 18% 12%, rgba(255,255,255,.42), transparent 36%),
              linear-gradient(0deg, rgba(39,24,83,.28), transparent 70%);
}
.placeholder-sun {
  position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%;
  right: 17%; top: 15%; background: #fff0b2;
  box-shadow: 0 0 32px rgba(255,240,178,.55);
}
.placeholder-hill { position: absolute; width: 90%; height: 65%; bottom: -32%; border-radius: 50% 50% 0 0; }
.placeholder-hill.hill-back { left: -24%; background: linear-gradient(135deg, #8262d9, #5149a8); transform: rotate(-12deg); }
.placeholder-hill.hill-front { right: -22%; bottom: -42%; background: linear-gradient(135deg, #ff8c9b, #e64e87); transform: rotate(13deg); }
.placeholder-caption { position: absolute; left: 8%; top: 12%; display: flex; flex-direction: column; align-items: flex-start; color: #fff; text-align: left; text-shadow: 0 2px 12px rgba(54,24,85,.25); }
.placeholder-caption-small { font-size: clamp(7px, 1.1vw, 11px); letter-spacing: .22em; font-weight: 800; margin-bottom: 5px; }
.placeholder-caption strong { font-size: clamp(19px, 4.2vw, 39px); line-height: .92; letter-spacing: -.04em; font-weight: 900; }
.placeholder-spark { position: absolute; color: rgba(255,255,255,.9); line-height: 1; }
.placeholder-spark.spark-one { top: 18%; left: 48%; font-size: clamp(18px, 3vw, 28px); }
.placeholder-spark.spark-two { top: 45%; right: 10%; font-size: clamp(14px, 2.4vw, 22px); }
.processing-photo-card.is-new { animation: pb-photo-pop .55s cubic-bezier(.2,.8,.2,1) both; }
.processing-title {
  font-family: var(--font-head); font-size: clamp(23px, 4vh, 34px);
  font-weight: 800; letter-spacing: -.025em;
  margin-top: 20px;
}
.processing-dots { display: flex; gap: 7px; margin: 10px 0 5px; }
.processing-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .3;
  animation: pb-dot .9s ease-in-out infinite;
}
.processing-dots span:nth-child(2) { animation-delay: .16s; }
.processing-dots span:nth-child(3) { animation-delay: .32s; }
.processing-text {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(14px, 2.2vh, 18px);
  color: rgba(255,255,255,.68);
}
@keyframes pb-photo-pop {
  0% { transform: scale(.96) translateY(6px); opacity: .45; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes pb-dot {
  0%,60%,100% { transform: translateY(0); opacity: .3; }
  30% { transform: translateY(-3px); opacity: .8; }
}
@media (prefers-reduced-motion: reduce) {
  .processing-photo-card.card-main, .processing-photo-card.is-new, .processing-dots span { animation: none; }
}

/* Solid floating overlay card (center-bottom) */
.overlay-card {
  position: absolute; left: 50%; bottom: clamp(20px, 4.5vh, 56px); transform: translateX(-50%);
  z-index: 6; width: min(94vw, 620px);
  background: var(--card); border-radius: var(--radius-l);
  box-shadow: 0 34px 80px -24px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255,255,255,.04);
  padding: clamp(18px, 2.6vw, 30px) clamp(20px, 3vw, 36px);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.overlay-counter {
  display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--font-head);
  font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.02em; color: var(--ink);
}
.overlay-counter strong { color: var(--accent); font-weight: 800; }
.overlay-counter .of { color: var(--line-2); font-weight: 700; }
.overlay-counter .total { color: var(--muted); font-weight: 700; }
.overlay-instruction { color: var(--muted); font-size: clamp(13px, 1.5vw, 15.5px); line-height: 1.6; max-width: 46ch; margin: 0; font-weight: 500; }
.overlay-card .button-row { width: 100%; margin-top: 4px; }
.capture-btn { min-width: 260px; min-height: 64px; font-size: 20px; border-radius: 999px; width: 100%; }

/* floating brand chip on the stage */
.stage-brand {
  position: absolute; top: clamp(14px, 2.4vh, 24px); left: clamp(14px, 2.4vw, 26px); z-index: 6;
  background: rgba(255,255,255,.92); color: var(--ink); font-family: var(--font-head); font-weight: 800;
  letter-spacing: -.02em; font-size: 15px; padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); backdrop-filter: blur(6px);
}
.stage-brand b { color: var(--accent); }
.start-admin-brand {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .16s, box-shadow .2s;
}

.start-admin-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -14px rgba(0,0,0,.55);
}

.start-admin-brand:active {
  transform: translateY(0) scale(.97);
}

/* ---------------- Generic card ---------------- */
.center-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 3vw, 38px); border: 1px solid var(--line); }

/* ============================================================
   EDITOR — minimalist & modern
   ============================================================ */
.editor-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, .8fr); gap: 24px; align-items: start; }
.preview-column { position: sticky; top: 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
#finalCanvas {
  width: auto; height: min(78vh, 860px); max-width: 100%; border-radius: 18px;
  box-shadow: var(--shadow-lg); background: #fff; touch-action: none; border: 1px solid var(--line);
}
.zoom-control {
  display: flex; align-items: center; gap: 12px;
  width: min(100%, 460px);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; box-shadow: var(--shadow);
}

.move-control {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: min(100%, 460px);
}

.move-btn {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid var(--line-2);
  background: var(--card);
  color: var(--accent);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color .15s, border-color .15s, transform .15s;
  box-shadow: var(--shadow);
}

.move-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.move-btn:active {
  transform: scale(.94);
}

.zoom-btn {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: #fff; color: var(--accent);
  font-size: 24px; font-weight: 800; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background-color .15s, border-color .15s;
}
.zoom-btn:hover { background: var(--accent-soft); border-color: var(--accent); }
.zoom-btn:active { transform: scale(.94); }
.zoom-slider {
  flex: 1 1 auto; -webkit-appearance: none; appearance: none; height: 6px;
  border-radius: 999px; background: linear-gradient(90deg, var(--accent-soft), var(--accent)); cursor: pointer;
}
.zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff; box-shadow: var(--accent-glow); cursor: pointer;
}
.zoom-slider::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent);
  border: 3px solid #fff; box-shadow: var(--accent-glow); cursor: pointer;
}
.zoom-hint { font-size: 12.5px; color: var(--muted); text-align: center; max-width: 460px; margin: -2px 0 0; }
.editor-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 2.6vw, 30px); }
.editor-panel h2 { font-size: 22px; font-weight: 700; }
.editor-panel h3 { margin-top: 24px; font-size: 12.5px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-body); }
.editor-hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }

.photo-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 4px; }
.photo-tab-item { display: flex; flex-direction: column; gap: 8px; }
.photo-tab {
  border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius-s); padding: 8px 10px;
  font-weight: 700; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 10px;
}
.photo-tab:hover { border-color: var(--line-2); }
.photo-tab.active { background: var(--dark); color: #fff; border-color: var(--dark); box-shadow: var(--shadow-sm); }
.photo-thumb { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: #dde3ee; }
.photo-tab span { flex: 1; text-align: left; }
.btn-retake-photo {
  border: 1.5px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px;
  padding: 7px 12px; font-size: 12px; font-weight: 800; cursor: pointer; }
.btn-retake-photo:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.frame-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;

  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;

  padding: 6px;

  /* khusus touchscreen */
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-overflow-scrolling: touch;

  /* scrollbar dibuat lebih mudah disentuh */
  scrollbar-width: auto;
}

.frame-list::-webkit-scrollbar {
  width: 14px;
}

.frame-list::-webkit-scrollbar-track {
  background: #eef1f8;
  border-radius: 10px;
}

.frame-list::-webkit-scrollbar-thumb {
  background: #aeb8cc;
  border-radius: 10px;
  border: 3px solid #eef1f8;
}

.frame-list::-webkit-scrollbar-thumb:hover {
  background: #8e9ab2;
}
.frame-item {
  border: 2px solid transparent;
  background: #f2f5fb;
  border-radius: var(--radius-s);
  padding: 7px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  -webkit-user-drag: none;
}

.frame-item img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #fff;
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}
.frame-item:hover { background: #fff; }
.frame-item.active { border-color: var(--accent); background: #fff; box-shadow: 0 14px 34px -14px rgba(47,91,255,.5); }
.frame-blank { aspect-ratio: 2/3; display: grid; place-items: center; border-radius: 8px; background: #fff; border: 1.5px dashed var(--line-2); font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .05em; }
.frame-name { font-size: 12px; font-weight: 700; text-align: center; padding: 6px 2px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor-panel .button-row { margin-top: 24px; }

/* ---------------- Uploading ---------------- */
#screenUploading.active { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; }
.status-card { width: min(480px, 100%); text-align: center; }
/* Upload animation saat hasil foto dikirim ke hosting */
.upload-card { overflow: hidden; }
.upload-animation {
  position: relative;
  width: 260px;
  height: 150px;
  margin: 0 auto 14px;
}
.upload-photo {
  position: absolute;
  left: 32px;
  top: 57px;
  width: 58px;
  height: 70px;
  border-radius: 9px;
  border: 4px solid #fff;
  background: linear-gradient(145deg, #ffd66b 0 35%, #ff8e7a 36% 66%, #7cc8ff 67%);
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
  transform-origin: 50% 100%;
}
.upload-photo::after {
  content: '';
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 9px;
  height: 22px;
  border-radius: 4px;
  background: rgba(255,255,255,.72);
}
.photo-a { transform: rotate(-12deg); animation: upload-photo-a 2.2s ease-in-out infinite; }
.photo-b { left: 48px; top: 52px; transform: rotate(2deg); animation: upload-photo-b 2.2s ease-in-out .18s infinite; }
.photo-c { left: 64px; top: 57px; transform: rotate(13deg); animation: upload-photo-c 2.2s ease-in-out .36s infinite; }
.upload-arrow {
  position: absolute;
  left: 113px;
  top: 28px;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  color: var(--accent);
  animation: upload-arrow 1.1s ease-in-out infinite;
}
.upload-cloud {
  position: absolute;
  right: 25px;
  top: 28px;
  width: 102px;
  height: 72px;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.10));
  animation: upload-cloud 2.2s ease-in-out infinite;
}
.cloud-back, .cloud-front { position: absolute; display: block; background: var(--accent-soft); }
.cloud-back { width: 52px; height: 52px; border-radius: 50%; left: 17px; top: 7px; }
.cloud-back::after { content:''; position:absolute; width:43px; height:43px; border-radius:50%; background:var(--accent-soft); left:29px; top:10px; }
.cloud-front { width: 82px; height: 34px; border-radius: 22px; left: 9px; top: 31px; }
.cloud-arrow {
  position: absolute; z-index: 2; left: 43px; top: 25px;
  color: var(--accent); font-size: 24px; line-height: 1; font-weight: 900;
  animation: cloud-arrow 1.1s ease-in-out infinite;
}
.upload-progress {
  width: min(300px, 82vw); height: 7px; margin: 18px auto 8px;
  border-radius: 99px; background: var(--accent-soft); overflow: hidden;
}
.upload-progress span {
  display:block; width:38%; height:100%; border-radius:inherit; background:var(--accent);
  animation: upload-progress 1.25s ease-in-out infinite;
}
@keyframes upload-photo-a { 0%,100% { transform:translate(0,0) rotate(-12deg) scale(1); opacity:.82; } 45% { transform:translate(72px,-28px) rotate(-5deg) scale(.82); opacity:1; } 70% { transform:translate(116px,-45px) rotate(0) scale(.42); opacity:.1; } }
@keyframes upload-photo-b { 0%,100% { transform:translate(0,0) rotate(2deg) scale(1); opacity:.9; } 48% { transform:translate(72px,-25px) rotate(4deg) scale(.82); opacity:1; } 73% { transform:translate(116px,-44px) rotate(0) scale(.42); opacity:.1; } }
@keyframes upload-photo-c { 0%,100% { transform:translate(0,0) rotate(13deg) scale(1); opacity:.76; } 51% { transform:translate(72px,-22px) rotate(8deg) scale(.82); opacity:1; } 76% { transform:translate(116px,-43px) rotate(0) scale(.42); opacity:.1; } }
@keyframes upload-arrow { 0%,100% { opacity:.35; transform:translateY(8px); } 50% { opacity:1; transform:translateY(-2px); } }
@keyframes upload-cloud { 0%,100% { transform:translateY(2px); } 50% { transform:translateY(-4px); } }
@keyframes cloud-arrow { 0%,100% { transform:translateY(3px); } 50% { transform:translateY(-4px); } }
@keyframes upload-progress { 0% { transform:translateX(-130%); } 100% { transform:translateX(360%); } }
@media (prefers-reduced-motion: reduce) {
  .upload-photo, .upload-arrow, .upload-cloud, .cloud-arrow, .upload-progress span { animation:none; }
}

.spinner { width: 62px; height: 62px; border: 6px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 22px; }
.status-card h2 { font-size: 24px; margin-bottom: 8px; }


/* ============================================================
   DONE — prominent QR "scan" screen
   ============================================================ */
#screenDone.active { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: clamp(16px, 3vw, 40px); overflow: auto; }
.done-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 28px); align-items: stretch; width: min(1040px, 100%); }
.done-layout .center-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.done-layout .center-card h2 { font-size: clamp(26px, 3.4vw, 36px); }
.done-layout .center-card > p { color: var(--muted); margin: 8px 0 4px; font-weight: 500; }

/* QR framed with corner brackets + animated scan line */
.qr-frame { position: relative; width: max-content; max-width: 100%; margin: 22px auto 6px; padding: 20px; background: #fff; border-radius: 20px; box-shadow: 0 20px 50px -22px rgba(16,26,55,.4); overflow: hidden; }
.qr-frame::before, .qr-frame::after,
.qr-frame > .qr-corners::before, .qr-frame > .qr-corners::after {
  content: ""; position: absolute; width: 26px; height: 26px; border: 4px solid var(--accent); border-radius: 4px;
}
.qr-frame::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.qr-frame::after  { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.qr-frame > .qr-corners::before { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.qr-frame > .qr-corners::after  { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.qr-scan { position: absolute; left: 14px; right: 14px; top: 14px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 16px 3px rgba(47,91,255,.55);
  z-index: 3; }

#qrcode { display: block; }
#qrcode img, #qrcode canvas { display: block; max-width: 100%; height: auto !important; border-radius: 6px; }

.download-url { display: block; word-break: break-all; color: var(--muted); font-size: 13px; margin: 12px 0 18px; text-decoration: none; }
.download-url:hover { color: var(--accent); }
.done-layout .button-row { width: 100%; }
.done-preview { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: grid; place-items: center; }
.done-preview img { display: block; max-height: 74vh; width: 100%; object-fit: contain; border-radius: 14px; }

/* ---------------- Modal ---------------- */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(8, 12, 22, .68); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.modal-card { background: #fff; border-radius: var(--radius-l); padding: 34px; width: min(430px, 100%); text-align: center; box-shadow: var(--shadow-lg); }
.modal-card h2 { font-size: 25px; margin-bottom: 6px; }
.pin-input { width: 100%; margin: 20px 0 6px; padding: 16px; font-size: 24px; text-align: center; letter-spacing: .5em; border: 1.5px solid var(--line-2); border-radius: var(--radius-s); background: #f7f9fd; }
.pin-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pin-error { color: #e11d48; font-weight: 700; margin: 8px 0 12px; }

/* Keyboard angka touchscreen untuk PIN operator */
.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  width: 100%;
  margin: 8px 0 12px;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.pin-key {
  min-height: 52px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #f7f9fd;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 10px -7px rgba(16,26,55,.55);
}
.pin-key:active {
  transform: scale(.95);
  background: var(--accent-soft);
  border-color: var(--accent);
}
.pin-key-action {
  font-size: 18px;
  color: var(--accent-deep);
}


/* ---------------- Menu Sesi (pojok kanan atas halaman mulai) ---------------- */
.sesi-btn {
  position: fixed; top: clamp(14px, 2.4vh, 24px); right: clamp(14px, 2.4vw, 26px); z-index: 130;
  border: 0; border-radius: 999px; padding: 12px 24px; cursor: pointer;
  font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: .04em;
  background: var(--dark); color: #fff; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
  transition: transform .16s, box-shadow .2s;
}
.sesi-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -14px rgba(0, 0, 0, .55); }
.sesi-btn:active { transform: translateY(0) scale(.97); }
.sesi-card {
  width: min(480px, 100%);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: min(86dvh, 720px);
  max-height: 86dvh;
  min-height: 0;
  overflow: hidden;
}
.sesi-card h2 { text-align: center; flex: 0 0 auto; }

.sesi-list {
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;

  /* Penting: paksa area ini memiliki tinggi yang bisa di-scroll. */
  flex: 1 1 0;
  min-height: 0;
  height: 0;

  overflow-y: auto;
  overflow-x: hidden;

  /* Gesture touchscreen ditangani JS agar swipe di seluruh panel bekerja. */
  touch-action: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;

  scrollbar-width: auto;
  scrollbar-color: #aeb8cc #eef1f8;
  padding: 2px 6px 2px 2px;
}

.sesi-list::-webkit-scrollbar { width: 14px; }
.sesi-list::-webkit-scrollbar-track {
  background: #eef1f8;
  border-radius: 10px;
}
.sesi-list::-webkit-scrollbar-thumb {
  background: #aeb8cc;
  border-radius: 10px;
  border: 3px solid #eef1f8;
}
.sesi-list::-webkit-scrollbar-thumb:hover { background: #8e9ab2; }
.sesi-list .muted { text-align: center; padding: 18px 0; }

.sesi-list *,
.sesi-list *::before,
.sesi-list *::after {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}
.sesi-list img,
.sesi-list svg {
  pointer-events: none;
}

.sesi-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #f7f9fd; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px;
}
.sesi-name { font-weight: 800; font-size: 15px; }
.sesi-time { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 2px; }
.sesi-print { min-height: 46px; padding: 10px 22px; border-radius: 12px; flex: 0 0 auto; }

/* ---------------- Flash layar putih saat jepret ---------------- */
.flash-overlay { position: fixed; inset: 0; z-index: 300; background: #fff; pointer-events: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .editor-layout { grid-template-columns: 1fr; }
  .preview-column { position: static; }
  #finalCanvas { height: min(64vh, 700px); }
  .frame-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }

  .done-layout {
    grid-template-columns: 1fr;
    width: min(620px, 100%);
  }

  .done-layout .center-card,
  .done-preview {
    min-height: auto;
  }

  .done-preview { order: -1; }

  #qrcode,
  #qrcode img,
  #qrcode canvas {
    width: 280px !important;
    height: 280px !important;
  }
}
@media (max-width: 760px) {
  .model-grid { grid-template-columns: 1fr; width: min(460px, 100%); }
  .frame-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .frame-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stack-on-small { flex-direction: column; }
  .overlay-card { width: min(94vw, 620px); border-radius: 24px; }
  .capture-btn { min-width: 0; }
}
/* short landscape (phones landscape / fold) — keep overlay card compact */
@media (max-height: 560px) and (orientation: landscape) {
  .overlay-card { bottom: 12px; padding: 12px 20px; gap: 8px; max-width: min(80vw, 560px); }
  .overlay-instruction { display: none; }
  .overlay-counter { font-size: 22px; }
  .capture-btn { min-height: 54px; font-size: 18px; }
  .btn-large { min-height: 52px; }
}
/* ultra-wide (Fold Ultra unfolded / wide monitors) — cap card width */
@media (min-aspect-ratio: 21/9) {
  .overlay-card { max-width: 560px; }
}

/* ============================================================
   ATTRACT / IDLE MODE
   ============================================================ */
#attractScreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
  z-index: 999999 !important;
}

#attractScreen .screensaver-image {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}
/* ---------------- DONE screen sizing ---------------- */
#screenDone.active { padding: clamp(14px, 2vw, 32px); }

.done-layout {
  display: grid;
  grid-template-columns: minmax(420px, .9fr) minmax(420px, 1.1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  width: min(1280px, 100%);
}

.done-layout .center-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 720px;
  justify-content: center;
  padding: clamp(28px, 3vw, 42px);
}

.done-layout .center-card h2 {
  font-size: clamp(34px, 3vw, 44px);
}

.done-layout .center-card > p {
  color: var(--muted);
  margin: 8px 0 4px;
  font-weight: 500;
  max-width: 360px;
  font-size: 16px;
}

.qr-frame {
  position: relative;
  width: min(390px, 90%);
  max-width: 100%;
  margin: 26px auto 12px;
  padding: 28px;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 20px 50px -22px rgba(16,26,55,.4);
  overflow: hidden;
}

#qrcode {
  width: 320px;
  height: 320px;
  display: grid;
  place-items: center;
}

#qrcode img, #qrcode canvas {
  display: block;
  width: 320px !important;
  height: 320px !important;
  max-width: none;
  border-radius: 8px;
}

.download-url {
  display: block;
  width: 90%;
  max-width: 360px;
  word-break: break-all;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 10px auto 20px;
  text-decoration: none;
}

.done-layout .button-row {
  width: 100%;
  max-width: 390px;
  gap: 12px;
}

.done-layout .button-row .btn {
  flex: 1;
  min-height: 54px;
  padding: 12px 16px;
  font-size: 14px;
}

.done-preview {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  place-items: center;
  min-height: 720px;
}

.done-preview img {
  display: block;
  max-height: 660px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 14px;
}

/* ============================================================
   NUNUMEDIA PINK THEME — CLEAN OVERRIDE
   Theme-only overrides. Layout/size rules stay in the original CSS
   so selectors do not fight or stack on top of each other.
   ============================================================ */

:root {
  --bg: #fff4f7;
  --bg-deep: #ffe7ef;
  --card: #ffffff;
  --ink: #101b35;
  --ink-soft: #26304a;
  --muted: #687086;
  --line: #f3d8e1;
  --line-2: #e9c2cf;
  --dark: #0b2039;
  --dark-ink: #ffffff;

  --accent: #ff2f68;
  --accent-deep: #e91e55;
  --accent-soft: #ffe7ef;
  --accent-ink: #ffffff;
  --accent-glow: 0 14px 34px -10px rgba(255, 47, 104, .48);

  --shadow: 0 18px 50px -20px rgba(102, 32, 57, .20);
  --shadow-lg: 0 34px 90px -28px rgba(102, 32, 57, .30);
  --shadow-sm: 0 7px 22px -11px rgba(102, 32, 57, .20);
}

html, body {
  background-color: var(--bg);
  background-image:
    radial-gradient(700px 430px at -5% 0%, rgba(255, 47, 104, .12), transparent 65%),
    radial-gradient(600px 400px at 105% 8%, rgba(255, 216, 61, .14), transparent 62%),
    linear-gradient(180deg, #fff9fa 0%, var(--bg) 54%, var(--bg-deep) 100%);
}
    
/* Pink identity */
.brand-lg {
  background: linear-gradient(135deg, #101b35 8%, #101b35 42%, #ff2f68 78%, #ff5b88 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-lg::after {
  background: linear-gradient(90deg, #ffd83d, #ff2f68);
}

.model-card.active {
  border-color: var(--accent);
  box-shadow: 0 22px 55px -18px rgba(255, 47, 104, .42);
}

.model-card.active .model-preview {
  outline-color: rgba(255, 47, 104, .25);
}

.model-print {
  background: #fff0a8;
  color: #19213a;
  border-color: #f5dc68;
}

.start-button,
.btn-accent,
.capture-btn {
  background: linear-gradient(135deg, #ff315f 0%, #ff1f69 55%, #e91e55 100%);
  box-shadow: var(--accent-glow);
}

.start-button:hover,
.btn-accent:hover {
  box-shadow: 0 20px 42px -10px rgba(255, 47, 104, .60);
}

.stage-brand {
  color: #101b35;
}

.stage-brand b,
.overlay-counter strong {
  color: var(--accent);
}

.sesi-btn,
.session-timer {
  background-color: #0b2039;
}

.session-timer.warn {
  background: linear-gradient(180deg, #ff4d79, #e91e55);
}

.btn-secondary {
  background: #fff;
  color: #24304b;
  border-color: #e9c2cf;
}

.btn-secondary:hover {
  background: #fff4f7;
  border-color: #ff9ab5;
}

.editor-panel,
.done-preview,
.center-card {
  border-color: #f0d5df;
}

.photo-tab.active {
  background: linear-gradient(135deg, #ff315f, #e91e55);
  border-color: #ff315f;
}

.photo-tab:hover,
.btn-retake-photo:hover {
  border-color: #ff9ab5;
}

.frame-item.active {
  border-color: var(--accent);
  box-shadow: 0 14px 34px -14px rgba(255, 47, 104, .45);
}

.zoom-control {
  border-color: #f0d5df;
}

.zoom-btn,
.move-btn {
  color: var(--accent);
  border-color: #e9c2cf;
}

.zoom-btn:hover,
.move-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.zoom-slider {
  background: linear-gradient(90deg, #ffd2df, var(--accent));
}

.zoom-slider::-webkit-slider-thumb,
.zoom-slider::-moz-range-thumb {
  background: var(--accent);
}

.qr-frame,
.modal-card {
  border-color: #f0d5df;
}

.qr-frame::before,
.qr-frame::after,
.qr-frame > .qr-corners::before,
.qr-frame > .qr-corners::after {
  border-color: var(--accent);
}

.qr-scan {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 16px 3px rgba(255, 47, 104, .48);
}

.pin-input {
  background: #fff6f8;
  border-color: #e9c2cf;
}

.pin-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.sesi-row {
  background: #fff7f9;
  border-color: #f0d5df;
}

/* Mobile: remove the 1.20 scale only where it would make the layout
   exceed a small screen. Desktop/tablet keep the original 1.20 scale. */
@media (max-width: 760px) {
  .start-page {
    transform: none;
    min-height: 100dvh;
    padding: 24px 12px;
  }
}

/* Tombol Ambil Foto saat sedang mengambil foto */
.capture-btn.is-capturing {
  opacity: 0.45;
  filter: saturate(0.5);
  cursor: default;
  transform: none;
}


/* ============================================================
   3D BUTTON SYSTEM — mengikuti gaya tombol pada halaman Download
   Berlaku untuk tombol utama, kamera, editor, zoom, arah, ulangi,
   dan tombol navigasi. Ukuran/layout asli tetap dipertahankan.
   ============================================================ */
.btn,
.start-button,
.capture-btn,
.btn-primary,
.btn-secondary,
.btn-accent,
.btn-large,
.btn-retake-photo,
.move-btn,
.zoom-btn,
.photo-tab {
  position: relative;
  border-style: solid;
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    filter .12s ease,
    background .12s ease,
    border-color .12s ease;
}

/* Tombol utama: pink 3D */
.start-button,
.capture-btn,
.btn-accent,
.btn-primary {
  background: linear-gradient(180deg, #ff5a91 0%, #e63777 55%, #c52563 100%);
  color: #fff;
  border: 1px solid #a91e55;
  box-shadow:
    0 5px 0 #9f1f53,
    0 10px 22px rgba(180,30,88,.25),
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 -2px 0 rgba(120,16,62,.20);
  text-shadow: 0 1px 1px rgba(104,16,55,.35);
}

.start-button:hover,
.capture-btn:hover:not(:disabled),
.btn-accent:hover:not(:disabled),
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #ff6b9d 0%, #ed3d7d 55%, #cf2867 100%);
  filter: saturate(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 6px 0 #9f1f53,
    0 13px 25px rgba(180,30,88,.28),
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 -2px 0 rgba(120,16,62,.20);
}

.start-button:active,
.capture-btn:active:not(:disabled),
.btn-accent:active:not(:disabled),
.btn-primary:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 #9f1f53,
    0 4px 8px rgba(180,30,88,.20),
    inset 0 2px 3px rgba(120,16,62,.20);
}

/* Tombol sekunder juga 3D, tetapi tetap putih */
.btn-secondary {
  background: linear-gradient(180deg, #ffffff 0%, #fff7fa 100%);
  color: #24304b;
  border: 1px solid #d9b9c5;
  box-shadow:
    0 4px 0 #c9a5b3,
    0 8px 16px rgba(75,35,55,.14),
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -2px 0 rgba(120,80,95,.08);
}

.btn-secondary:hover:not(:disabled) {
  background: linear-gradient(180deg, #fff 0%, #fff0f5 100%);
  transform: translateY(-1px);
  box-shadow:
    0 5px 0 #c9a5b3,
    0 10px 19px rgba(75,35,55,.17),
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 -2px 0 rgba(120,80,95,.08);
}

.btn-secondary:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #c9a5b3,
    0 3px 7px rgba(75,35,55,.14),
    inset 0 2px 3px rgba(120,80,95,.10);
}

/* Ulangi Foto */
.btn-retake-photo {
  background: linear-gradient(180deg, #ffffff 0%, #fff1f6 100%);
  border-color: #d9b9c5;
  color: #8b4261;
  box-shadow:
    0 3px 0 #c9a5b3,
    0 6px 12px rgba(75,35,55,.13),
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -2px 0 rgba(120,80,95,.08);
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
}

.btn-retake-photo:hover:not(:disabled) {
  background: linear-gradient(180deg, #fff 0%, #ffe8f1 100%);
  color: #c52563;
  border-color: #e28aa8;
  transform: translateY(-1px);
  box-shadow:
    0 4px 0 #c9a5b3,
    0 8px 15px rgba(180,30,88,.18),
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 -2px 0 rgba(120,80,95,.08);
}

.btn-retake-photo:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #c9a5b3,
    0 3px 6px rgba(75,35,55,.14),
    inset 0 2px 3px rgba(120,80,95,.10);
}

/* Tombol arah editor: kiri / kanan / atas / bawah */
.move-btn {
  background: linear-gradient(180deg, #ffffff 0%, #fff0f5 100%);
  color: #d92d69;
  border: 1px solid #d9b9c5;
  box-shadow:
    0 4px 0 #c9a5b3,
    0 7px 14px rgba(75,35,55,.15),
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -2px 0 rgba(120,80,95,.08);
}

.move-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #fff 0%, #ffe5ef 100%);
  border-color: #e28aa8;
  transform: translateY(-1px);
  box-shadow:
    0 5px 0 #c9a5b3,
    0 9px 17px rgba(180,30,88,.18),
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 -2px 0 rgba(120,80,95,.08);
}

.move-btn:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #c9a5b3,
    0 3px 6px rgba(75,35,55,.14),
    inset 0 2px 3px rgba(120,80,95,.12);
}

/* Tombol + / - zoom */
.zoom-btn {
  background: linear-gradient(180deg, #ff5a91 0%, #e63777 55%, #c52563 100%);
  color: #fff;
  border: 1px solid #a91e55;
  box-shadow:
    0 3px 0 #9f1f53,
    0 6px 12px rgba(180,30,88,.22),
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 -2px 0 rgba(120,16,62,.20);
  text-shadow: 0 1px 1px rgba(104,16,55,.35);
}

.zoom-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #ff6b9d 0%, #ed3d7d 55%, #cf2867 100%);
  transform: translateY(-1px);
  box-shadow:
    0 4px 0 #9f1f53,
    0 8px 15px rgba(180,30,88,.25),
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 -2px 0 rgba(120,16,62,.20);
}

.zoom-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #9f1f53,
    0 3px 6px rgba(180,30,88,.18),
    inset 0 2px 3px rgba(120,16,62,.20);
}

/* Foto 1 / Foto 2 / Foto 3 ... */
.photo-tab {
  background: linear-gradient(180deg, #ffffff 0%, #fff4f8 100%);
  border-color: #d9b9c5;
  box-shadow:
    0 3px 0 #c9a5b3,
    0 6px 12px rgba(75,35,55,.12),
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -2px 0 rgba(120,80,95,.07);
}

.photo-tab:hover {
  border-color: #e28aa8;
  transform: translateY(-1px);
  box-shadow:
    0 4px 0 #c9a5b3,
    0 8px 15px rgba(180,30,88,.16),
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 -2px 0 rgba(120,80,95,.08);
}

.photo-tab:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #c9a5b3,
    0 3px 6px rgba(75,35,55,.12),
    inset 0 2px 3px rgba(120,80,95,.10);
}

.photo-tab.active {
  background: linear-gradient(180deg, #ff5a91 0%, #e63777 55%, #c52563 100%);
  border-color: #a91e55;
  color: #fff;
  box-shadow:
    0 4px 0 #9f1f53,
    0 8px 16px rgba(180,30,88,.23),
    inset 0 1px 0 rgba(255,255,255,.36),
    inset 0 -2px 0 rgba(120,16,62,.18);
}

.photo-tab.active:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #9f1f53,
    0 3px 7px rgba(180,30,88,.18),
    inset 0 2px 3px rgba(120,16,62,.18);
}

/* Tombol yang disabled tetap memiliki bentuk 3D, tetapi redup */
.btn:disabled,
.start-button:disabled,
.capture-btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-accent:disabled,
.btn-retake-photo:disabled,
.move-btn:disabled,
.zoom-btn:disabled {
  opacity: .5;
  filter: saturate(.55);
  cursor: not-allowed;
}

/* Ambil Foto sedang countdown/capture: tetap turun/flat agar status jelas */
.capture-btn.is-capturing {
  opacity: .45;
  filter: saturate(.5);
  cursor: default;
  transform: translateY(1px);
  box-shadow:
    0 2px 0 #9f1f53,
    0 4px 8px rgba(180,30,88,.16),
    inset 0 2px 3px rgba(120,16,62,.18);
}


/* ============================================================
   END SESSION — modern QR + kode sesi
   ============================================================ */
#screenDone.active {
  padding: clamp(12px, 2vw, 28px);
  background: radial-gradient(ellipse at 18% 10%, rgba(255, 77, 137, .11), transparent 42%),
              radial-gradient(ellipse at 85% 90%, rgba(255, 190, 72, .12), transparent 38%);
}
#screenDone .done-layout {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(14px, 2vw, 26px);
  width: min(1180px, 100%);
  align-items: stretch;
}
#screenDone .done-layout .center-card {
  min-width: 0;
  min-height: 0;
  justify-content: center;
  padding: clamp(18px, 2.2vw, 30px);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 24px 65px rgba(68, 25, 48, .12);
  position: relative;
  overflow: hidden;
}
#screenDone .done-layout .center-card::before {
  content: ""; position: absolute; width: 210px; height: 210px; top: -145px; right: -100px;
  border-radius: 50%; background: rgba(255, 63, 125, .08); pointer-events: none;
}
#screenDone .done-layout .center-card h2 { margin: 0; font-size: clamp(29px, 3vw, 40px); letter-spacing: -.04em; }
#screenDone .done-layout .center-card > p { font-size: clamp(12px, 1.15vw, 14px); line-height: 1.5; margin: 8px 0 2px; max-width: 330px; }
#screenDone .qr-frame {
  width: max-content; max-width: 100%; margin: 12px auto 8px; padding: 12px;
  border: 1px solid #f1e6eb; border-radius: 22px;
  box-shadow: 0 12px 28px rgba(60, 22, 42, .10);
}
#screenDone #qrcode { width: 300px; height: 300px; }
#screenDone #qrcode img, #screenDone #qrcode canvas { width: 300px !important; height: 300px !important; max-width: 100%; }
.done-session-code {
  display: flex; align-items: center; gap: 12px; width: min(100%, 340px);
  margin: 3px auto 12px; padding: 12px 15px; text-align: left;
  color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 17px;
  background: linear-gradient(125deg, #8f2058 0%, #d92d69 58%, #f05286 100%);
  box-shadow: 0 10px 24px rgba(217,45,105,.20); position: relative; overflow: hidden;
}
.done-session-code::after { content: ""; position: absolute; width: 100px; height: 100px; right: -55px; bottom: -65px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 14px rgba(255,255,255,.05); pointer-events: none; }
.done-session-code-icon {
  display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.42); border-radius: 12px;
  background: rgba(255,255,255,.15); font-size: 24px; font-weight: 800;
}
.done-session-code-copy { display: flex; flex-direction: column; min-width: 0; gap: 3px; position: relative; z-index: 1; }
.done-session-code-label { font-size: 9px; font-weight: 800; letter-spacing: .16em; color: rgba(255,255,255,.78); }
.done-session-code-copy strong { font-size: clamp(19px, 2vw, 24px); line-height: 1.05; letter-spacing: .04em; font-weight: 800; font-variant-numeric: tabular-nums; }
.done-session-code-copy small { color: rgba(255,255,255,.88); font-size: 9px; line-height: 1.4; }
#screenDone .done-preview { min-width: 0; min-height: 0; padding: 14px; border-radius: 28px; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.92); box-shadow: 0 24px 65px rgba(68,25,48,.12); }
#screenDone .done-preview img { width: auto; max-width: 100%; max-height: min(78vh, 760px); object-fit: contain; border-radius: 16px; }
#screenDone .done-layout .button-row { margin-top: 3px; max-width: 340px; }
#screenDone .done-layout .button-row .btn { min-height: 48px; border-radius: 14px; font-size: 13px; }
@media (max-width: 1024px) {
  #screenDone.active { align-items: start; }
  #screenDone .done-layout { grid-template-columns: 1fr; width: min(620px, 100%); gap: 12px; }
  #screenDone .done-preview { order: -1; }
  #screenDone .done-preview img { width: auto; max-width: 100%; max-height: 42vh; object-fit: contain; }
  #screenDone .done-layout .center-card { padding: 20px 16px; }
  #screenDone #qrcode { width: 260px; height: 260px; }
  #screenDone #qrcode img, #screenDone #qrcode canvas { width: 260px !important; height: 260px !important; }
  #screenDone .qr-frame { padding: 13px; margin-top: 12px; }
}
@media (max-width: 560px) {
  #screenDone.active { padding: 8px; }
  #screenDone .done-layout .center-card, #screenDone .done-preview { border-radius: 20px; }
  #screenDone .done-layout .center-card h2 { font-size: 29px; }
  #screenDone .done-session-code { padding: 10px 12px; }
  #screenDone .done-preview { padding: 10px; }
}
@media (max-height: 760px) and (min-width: 1025px) {
  #screenDone .done-layout .center-card { padding-top: 14px; padding-bottom: 14px; }
  #screenDone #qrcode { width: 240px; height: 240px; }
  #screenDone #qrcode img, #screenDone #qrcode canvas { width: 240px !important; height: 240px !important; }
  #screenDone .qr-frame { padding: 12px; margin: 10px auto 7px; }
  #screenDone .done-session-code { margin-bottom: 7px; padding: 9px 12px; }
}


/* ===== Penyempurnaan visual: countdown minimalis dan halaman akhir ===== */
/* Prompt kamera dibuat bersih: tidak memakai kartu gradasi besar yang menutupi teks. */
.countdown.is-camera-prompt {
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: .015em;
  line-height: 1.15;
  padding: 18px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.85);
}
.countdown.is-camera-prompt::before {
  width: auto;
  height: auto;
  aspect-ratio: auto;
  inset: auto;
  content: none;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}
.countdown.is-camera-prompt .camera-prompt-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  min-height: 0;
  padding: .72em 1.15em;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 999px;
  background: rgba(18,22,32,.82);
  color: #fff;
  font-size: inherit;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (max-width: 520px) {
  .countdown.is-camera-prompt { font-size: clamp(20px, 5.4vw, 30px); padding: 12px; }
  .countdown.is-camera-prompt .camera-prompt-text { padding: .7em 1em; }
}

/* Halaman akhir: gunakan ruang panel kiri lebih maksimal dan seimbangkan padding QR. */
#screenDone.active { padding: clamp(12px, 2vw, 26px); }
#screenDone .done-layout {
  width: min(1180px, 100%);
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: clamp(12px, 1.6vw, 22px);
}
#screenDone .done-layout .center-card {
  width: 100%;
  min-width: 0;
  padding: clamp(18px, 2.2vw, 30px);
  justify-content: center;
}
#screenDone .done-layout .center-card > p {
  max-width: 38ch;
  margin: 8px auto 8px;
  line-height: 1.45;
}
#screenDone .qr-frame {
  width: max-content;
  max-width: 100%;
  padding: 12px;
  margin: 12px auto 8px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(16,26,55,.16);
}
/* Empat sudut merah memiliki jarak identik dari tepi QR, atas/bawah/kiri/kanan. */
#screenDone .qr-frame::before { top: 8px; left: 8px; }
#screenDone .qr-frame::after { top: 8px; right: 8px; }
#screenDone .qr-frame > .qr-corners::before { bottom: 8px; left: 8px; }
#screenDone .qr-frame > .qr-corners::after { bottom: 8px; right: 8px; }
#screenDone .qr-scan { left: 12px; right: 12px; top: 12px; }
#screenDone #qrcode { width: clamp(280px, 25vw, 340px); height: clamp(280px, 25vw, 340px); }
#screenDone #qrcode img,
#screenDone #qrcode canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  object-fit: contain;
}
#screenDone .done-session-code {
  width: min(100%, 390px);
  margin: 4px auto 10px;
}
#screenDone .done-preview { padding: clamp(10px, 1.4vw, 16px); }
#screenDone .done-preview img { max-height: 78vh; }

/* Di layar pendek, gunakan ruang vertikal dengan lebih efisien. */
@media (max-height: 760px) and (min-width: 1025px) {
  #screenDone .done-layout .center-card { padding-top: 10px; padding-bottom: 10px; }
  #screenDone #qrcode { width: 260px; height: 260px; }
  #screenDone #qrcode img, #screenDone #qrcode canvas { width: 100% !important; height: 100% !important; }
  #screenDone .qr-frame { padding: 10px; margin: 8px auto 5px; }
}
@media (max-width: 1024px) {
  #screenDone .done-layout { grid-template-columns: 1fr; width: min(680px, 100%); }
  #screenDone .done-layout .center-card { padding: 18px 16px; }
  #screenDone #qrcode { width: min(320px, 72vw); height: min(320px, 72vw); }
  #screenDone #qrcode img, #screenDone #qrcode canvas { width: 100% !important; height: 100% !important; }
  #screenDone .done-preview img { max-height: 44vh; }
}
@media (max-width: 560px) {
  #screenDone.active { padding: 8px; }
  #screenDone .done-layout .center-card { padding: 16px 12px; }
  #screenDone #qrcode { width: min(290px, 76vw); height: min(290px, 76vw); }
  #screenDone .qr-frame { padding: 10px; margin: 8px auto 6px; }
}


/* ===== Update lanjutan: prompt kamera 2x dan panel QR lebih proporsional ===== */
/* Perbesar tulisan LIHAT KAMERA sekitar 200%, tetap minimalis dan terbaca. */
.countdown.is-camera-prompt {
  font-size: clamp(42px, 6.4vw, 88px) !important;
  padding: 20px !important;
}
.countdown.is-camera-prompt .camera-prompt-text {
  padding: .62em 1.05em !important;
  gap: .38em !important;
  border-width: 2px !important;
  border-radius: 999px !important;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .countdown.is-camera-prompt {
    font-size: clamp(30px, 8vw, 48px) !important;
    padding: 10px !important;
  }
  .countdown.is-camera-prompt .camera-prompt-text {
    padding: .65em .85em !important;
    gap: .28em !important;
  }
}

/* Panel kiri: samakan bentuk/ukuran elemen, kurangi ruang kosong,
   dan gunakan lebar kartu untuk QR, kode sesi, serta tombol. */
#screenDone .done-layout {
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr) !important;
  gap: clamp(12px, 1.5vw, 20px) !important;
  width: min(1240px, 100%) !important;
}
#screenDone .done-layout .center-card {
  padding: clamp(14px, 1.6vw, 22px) !important;
  gap: 0;
}
#screenDone .done-layout .center-card > p {
  max-width: 42ch;
  margin: 7px auto 6px !important;
}
#screenDone .qr-frame {
  max-width: 100%;
  padding: 10px !important;
  margin: 8px auto 7px !important;
  border-radius: 16px !important;
}
#screenDone #qrcode {
  width: clamp(280px, 25vw, 340px) !important;
  height: clamp(280px, 25vw, 340px) !important;
  max-width: 100%;
}
#screenDone #qrcode img,
#screenDone #qrcode canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
}
#screenDone .done-session-code {
  width: 100% !important;
  max-width: 390px;
  margin: 3px auto 8px !important;
  padding: 11px 13px !important;
  border-radius: 15px !important;
}
#screenDone .done-layout .button-row {
  width: 100% !important;
  max-width: 390px !important;
  margin: 2px auto 0 !important;
}
#screenDone .done-layout .button-row .btn {
  width: 100%;
}
#screenDone .done-preview {
  display: grid;
  place-items: center;
  padding: clamp(10px, 1.2vw, 15px) !important;
}
#screenDone .done-preview img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}
@media (max-height: 760px) and (min-width: 1025px) {
  #screenDone .done-layout .center-card { padding-top: 8px !important; padding-bottom: 8px !important; }
  #screenDone #qrcode { width: 250px !important; height: 250px !important; }
  #screenDone .qr-frame { padding: 8px !important; margin: 6px auto 5px !important; }
  #screenDone .done-session-code { padding: 8px 11px !important; margin-bottom: 5px !important; }
}
@media (max-width: 1024px) {
  #screenDone .done-layout { grid-template-columns: 1fr !important; width: min(680px, 100%) !important; }
  #screenDone .done-layout .center-card { padding: 18px 16px !important; }
  #screenDone #qrcode { width: min(320px, 72vw) !important; height: min(320px, 72vw) !important; }
}
@media (max-width: 560px) {
  #screenDone .done-layout .center-card { padding: 14px 12px !important; }
  #screenDone #qrcode { width: min(290px, 76vw) !important; height: min(290px, 76vw) !important; }
  #screenDone .qr-frame { padding: 8px !important; margin: 7px auto 5px !important; }
}

/* ---------------- Modern print quantity step ---------------- */
.print-count-step {
  width: min(520px, 92vw);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(120, 133, 164, .2);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(246,248,255,.96));
  box-shadow: 0 26px 70px rgba(20, 31, 61, .13), inset 0 1px 0 rgba(255,255,255,.9);
  text-align: center;
  color: #17213a;
  animation: printCountIn .24s ease-out;
}
@keyframes printCountIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.print-count-icon {
  display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px;
  color: #ff315f; border-radius: 24px;
  background: linear-gradient(145deg, #fff0f4, #ffe0e9);
  box-shadow: inset 0 0 0 1px rgba(255,49,95,.1);
}
.print-count-icon svg { width: 43px; height: 43px; }
.print-count-eyebrow { margin: 0 0 7px; color: #f02b5a; font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.print-count-step h2 { margin: 0; font-size: clamp(27px, 4vw, 36px); font-weight: 850; letter-spacing: -.04em; }
.print-count-description { margin: 10px 0 25px; color: #737d93; font-size: 14px; line-height: 1.55; }
.print-count-control {
  display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 36px);
  padding: 18px 16px; border: 1px solid #e7eaf2; border-radius: 24px;
  background: #fff; box-shadow: 0 12px 28px rgba(30,43,77,.06);
}
.print-count-adjust {
  display: grid; place-items: center; width: 62px; height: 62px; flex: 0 0 62px;
  border: 0; border-radius: 19px; background: #f2f4fa; color: #25314d;
  font-size: 35px; line-height: 1; font-weight: 500; cursor: pointer; transition: transform .15s, background .15s, opacity .15s;
}
.print-count-adjust:not(:disabled):active { transform: scale(.94); background: #ffe4eb; color: #e91e55; }
.print-count-adjust:disabled { opacity: .3; cursor: not-allowed; }
.print-count-value-wrap { min-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.print-count-value-wrap strong { font-size: 54px; line-height: 1.05; font-weight: 900; letter-spacing: -.05em; color: #17213a; font-variant-numeric: tabular-nums; }
.print-count-value-wrap span { font-size: 10px; font-weight: 900; letter-spacing: .16em; color: #8790a4; }
.print-count-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 24px; color: #7a8499; font-size: 12px; }
.print-count-dot { width: 7px; height: 7px; border-radius: 50%; background: #31b77a; box-shadow: 0 0 0 4px rgba(49,183,122,.12); }
.print-count-actions { display: flex; gap: 12px; }
.print-back-button { min-width: 120px; min-height: 64px; border-radius: 18px; }
.print-confirm-button { flex: 1; width: auto; min-width: 0; height: 64px; font-size: 19px; border-radius: 18px; }
@media (max-width: 560px) {
  .print-count-step { border-radius: 24px; padding: 24px 18px; }
  .print-count-control { gap: 15px; padding: 14px 10px; }
  .print-count-adjust { width: 54px; height: 54px; flex-basis: 54px; border-radius: 16px; }
  .print-count-value-wrap { min-width: 78px; }
  .print-count-value-wrap strong { font-size: 47px; }
  .print-count-actions { gap: 9px; }
  .print-back-button { min-width: 100px; }
}
/* Popup izin posting media sosial */
.social-permission-card p {
  margin: 12px 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.social-permission-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-permission-actions .btn {
  min-height: 54px;
  font-size: 17px;
  font-weight: 800;
}

.social-yes {
  background: #16a34a !important;
  color: #fff !important;
  border-color: #16a34a !important;
}

.social-no {
  background: #dc2626 !important;
  color: #fff !important;
  border-color: #dc2626 !important;
}

@media (max-width: 480px) {
  .social-permission-card {
    padding: 24px;
  }

  .social-permission-actions {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   POPUP IZIN SOSMED - UKURAN BESAR
   =================================================== */

#socialPermissionModal {
  padding: clamp(18px, 3vw, 42px);
}

#socialPermissionModal .social-permission-card {
  width: min(760px, calc(100vw - 48px));
  max-width: 760px;
  padding: clamp(30px, 4vw, 52px);
  border: 2px solid #f3d8e1;
  border-radius: 30px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
}

#socialPermissionModal #socialPermissionTitle {
  margin: 0 0 18px;
  color: #17233b;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: -.025em;
}

#socialPermissionModal .social-permission-card p {
  max-width: 610px;
  margin: 0 auto 30px;
  color: #5b6477;
  font-size: clamp(19px, 1.8vw, 25px);
  line-height: 1.55;
}

#socialPermissionModal .social-permission-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

#socialPermissionModal .social-permission-actions .btn {
  min-height: 78px;
  padding: 18px 24px;
  border-radius: 18px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  font-weight: 800;
  box-shadow: 0 7px 0 rgba(0, 0, 0, .08);
  transition: transform .12s ease, filter .12s ease;
  touch-action: manipulation;
}

#socialPermissionModal .social-permission-actions .btn:active {
  transform: translateY(2px);
  filter: brightness(.96);
}

#socialPermissionModal .social-yes {
  background: #16a34a !important;
  color: #fff !important;
  border: 2px solid #15803d !important;
}

#socialPermissionModal .social-no {
  background: #dc2626 !important;
  color: #fff !important;
  border: 2px solid #b91c1c !important;
}

@media (max-width: 560px) {
  #socialPermissionModal {
    padding: 14px;
  }

  #socialPermissionModal .social-permission-card {
    width: 100%;
    padding: 28px 22px;
    border-radius: 24px;
  }

  #socialPermissionModal #socialPermissionTitle {
    font-size: clamp(27px, 7vw, 34px);
  }

  #socialPermissionModal .social-permission-card p {
    margin-bottom: 24px;
    font-size: 19px;
  }

  #socialPermissionModal .social-permission-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #socialPermissionModal .social-permission-actions .btn {
    min-height: 66px;
    font-size: 22px;
  }
}
