/* Disraya Raster Pro — Web Studio Gold & Black Theme (100% Duplikat UI Photoshop v3.3.1) */
:root {
  --bg-page: #050507;
  --bg-win: #09090b;
  --bg-panel: #131317;
  --bg-banner: #050507;
  --bg-ctrl: #38383d;
  --bg-ctrl-hov: #46464d;
  --bg-inp: #26262c;
  --border-subtle: #2c2c34;
  --border-gold: #5c4413;
  --gold-bright: #ffd559;
  --gold-prim: #ebb02e;
  --gold-soft: #ddbe6f;
  --gold-dark: #5c4413;
  --green: #38e078;
  --red: #f55959;
  --white: #f4f1e8;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 50% 0%, #19150b 0%, #050507 65%);
  color: var(--gold-soft);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 12.5px;
  line-height: 1.4;
  min-height: 100vh;
}

.studio-shell {
  max-width: 960px;
  margin: 14px auto 24px;
  background: var(--bg-win);
  border: 1px solid #3a3423;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(235, 176, 46, 0.14);
  overflow: hidden;
}

.win-titlebar {
  background: linear-gradient(180deg, #f3f3f6 0%, #e4e4e9 100%);
  color: #16161a;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #2b2618;
}
.win-title-left { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.star-mark { color: #16161a; font-size: 13px; }
.web-badge {
  background: #141418;
  color: var(--gold-bright);
  border: 1px solid var(--gold-prim);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.btn-mini-gold {
  background: linear-gradient(180deg, #ffd559, #d49618);
  color: #0b0b0e;
  border: 1px solid #8a6210;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
.btn-mini-gold:hover { filter: brightness(1.08); }

.studio-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.studio-body.drag-active {
  outline: 2px dashed var(--gold-bright);
  outline-offset: -6px;
  background: rgba(235, 176, 46, 0.05);
}

/* HEADER BANNER */
.pnl-header {
  background: var(--bg-banner);
  border: 1px solid #27272f;
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.hdr-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.brand-title {
  color: var(--gold-bright);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.brand-sub {
  color: var(--gold-prim);
  font-size: 11.8px;
  line-height: 1.42;
}
.doc-input-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.doc-input-text {
  color: var(--gold-soft);
  font-size: 12px;
  white-space: pre-line;
}
.doc-input-mini-actions { display: flex; gap: 6px; }
.status-ver-line {
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 600;
}
.status-ver-line.synced-fresh { color: var(--green); }
.promo-line {
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 600;
}
.hdr-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.hdr-btns .btn-ps { min-width: 128px; height: 29px; }

.hdr-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}
.logo-wrap {
  width: 146px;
  height: 146px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.logo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid var(--gold-prim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
}
.lf-d { font-size: 56px; font-weight: 900; line-height: 1; }
.lf-sub { font-size: 14px; font-weight: 800; color: var(--gold-prim); }
.wa-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  cursor: pointer;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.34);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.16s ease, box-shadow 0.18s ease;
}
.wa-row:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25d366;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
}
.wa-icon-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.45);
}
.wa-icon-badge svg { width: 22px; height: 22px; display: block; }
.wa-mini-svg { width: 15px; height: 15px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.wa-num { color: var(--gold-bright); font-size: 13px; font-weight: 800; letter-spacing: 0.3px; }
.copyright-txt { color: var(--gold-soft); font-size: 10.5px; opacity: 0.9; }

/* GOLD SHIMMER RIBBON */
.gold-ribbon {
  position: relative;
  height: 16px;
  background: var(--bg-banner);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ribbon-rail {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--gold-dark);
}
.ribbon-sweep {
  position: absolute;
  left: 36%;
  width: 28%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-prim), var(--gold-bright), var(--gold-prim), transparent);
  transition: left 0.45s ease;
}
.ribbon-sweep.sweeping {
  animation: ribbonSweepAnim 0.55s ease-in-out;
}
@keyframes ribbonSweepAnim {
  0% { left: -25%; }
  100% { left: 100%; }
}
.ribbon-diamond {
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--gold-bright);
  border: 1px solid var(--gold-prim);
  transform: translateX(-50%) rotate(45deg);
}
.ribbon-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-prim);
}
.ribbon-dot.left { left: 6px; }
.ribbon-dot.right { right: 6px; }

/* COLLAPSIBLE LIVE CANVAS STRIP */
.canvas-strip {
  background: #0d0d11;
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 8px 10px;
}
.canvas-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 11.5px;
}
.canvas-strip-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.canvas-stage {
  background-image:
    linear-gradient(45deg, #1c1c22 25%, transparent 25%),
    linear-gradient(-45deg, #1c1c22 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1c1c22 75%),
    linear-gradient(-45deg, transparent 75%, #1c1c22 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-color: #131318;
  border: 1px solid #2a2a33;
  border-radius: 5px;
  min-height: 170px;
  max-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}
.canvas-stage canvas {
  max-width: 100%;
  max-height: 270px;
  object-fit: contain;
  display: block;
}

/* PHOTOSHOP-STYLE TABS & PANELS */
.tab-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  overflow: hidden;
}
.tab-strip {
  background: #1d1d22;
  border-bottom: 1px solid #2e2e36;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px 4px 0;
}
.tab-btn {
  background: #23232a;
  color: #a99b72;
  border: 1px solid #30303a;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.tab-btn:hover:not(:disabled) { background: #2d2d36; color: var(--gold-bright); }
.tab-btn.active {
  background: var(--bg-panel);
  color: var(--gold-bright);
  border-color: #4b3d1d;
  font-weight: 700;
  position: relative;
  top: 1px;
}
.tab-btn:disabled { opacity: 0.42; cursor: not-allowed; }
.tab-strip-8 .tab-btn { padding: 5px 9px; font-size: 11.2px; }

.tab-pane { display: none; padding: 9px 11px; }
.tab-pane.active { display: block; }

.ps-panel {
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  background: var(--bg-panel);
  margin: 0;
  padding: 8px 11px 10px;
}
.ps-panel legend {
  color: var(--gold-prim);
  font-size: 11.5px;
  font-weight: 700;
  padding: 0 6px;
}

/* FORM CONTROLS (IDENTIK SCRIPTUI DARK GOLD) */
.form-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 6px;
}
.form-row:last-child { margin-bottom: 0; }
.form-row-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lbl-fixed { min-width: 96px; color: var(--gold-soft); font-size: 12px; }

.inp-ps, .sel-ps {
  background: var(--bg-inp);
  color: #f3f2ed;
  border: 1px solid #44444e;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
}
.inp-ps:focus, .sel-ps:focus { border-color: var(--gold-prim); }
.inp-ps:disabled, .sel-ps:disabled { opacity: 0.45; cursor: not-allowed; }
.inp-mono { font-family: Consolas, "Courier New", monospace; letter-spacing: 0.3px; }
.inp-num { text-align: center; }

.btn-ps {
  background: var(--bg-ctrl);
  color: var(--gold-soft);
  border: 1px solid #52525c;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 11.8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}
.btn-ps:hover:not(:disabled) {
  background: var(--bg-ctrl-hov);
  border-color: var(--gold-prim);
  color: var(--gold-bright);
}
.btn-ps:disabled { opacity: 0.42; cursor: not-allowed; }
.btn-ps-focus { border-color: #2f7ae5; color: #f4d378; }
.btn-open-gold {
  background: linear-gradient(180deg, #ffd559 0%, #d49618 100%);
  color: #09090b;
  border: 1px solid #f7d774;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(235, 176, 46, 0.25);
}
.btn-open-gold:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffe28a 0%, #ebb02e 100%);
  border-color: #fff2b2;
  color: #050507;
  box-shadow: 0 0 16px rgba(255, 213, 89, 0.42);
}
.btn-sm { padding: 4px 10px; font-size: 11.5px; height: 26px; }
.btn-xs {
  background: #282830;
  color: var(--gold-soft);
  border: 1px solid #494955;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.btn-xs:hover { border-color: var(--gold-prim); color: var(--gold-bright); }
.btn-pill { border-radius: 999px; height: 32px; padding: 0 18px; }
.btn-gold-outline { border-color: var(--gold-prim); color: var(--gold-bright); }
.btn-wide-gold {
  width: 100%;
  height: 32px;
  background: #2b2412;
  border-color: var(--gold-prim);
  color: var(--gold-bright);
  font-weight: 700;
}
.btn-wide-gold:hover:not(:disabled) {
  background: linear-gradient(180deg, #ebb02e, #b88212);
  color: #09090b;
}
.btn-run-main {
  background: #141418;
  color: #ffffff;
  border: 1.5px solid #d9d6cc;
  font-weight: 800;
  min-width: 225px;
}
.btn-run-main:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffd559, #d49618);
  border-color: var(--gold-bright);
  color: #09090b;
}

.chk-inline, .rad-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-soft);
  cursor: pointer;
  user-select: none;
  font-size: 12px;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--gold-prim); cursor: pointer; }
input[type="range"] { accent-color: var(--gold-prim); cursor: pointer; }

/* STATUS & TIMER */
.auth-status-line { font-size: 11.8px; margin-top: 3px; font-weight: 600; }
.status-green { color: var(--green); }
.status-red { color: var(--red); }
.gold-prim { color: var(--gold-prim); }
.gold-bright { color: var(--gold-bright); }
.gold-soft { color: var(--gold-soft); }
.desc-gold { color: var(--gold-prim); font-size: 11.8px; }
.desc-bright { color: var(--gold-bright); font-size: 11.8px; }
.hint-txt { color: var(--gold-soft); font-size: 11.2px; opacity: 0.9; margin-top: 4px; }
.sep-pipe { color: #5f5842; margin: 0 3px; }

.timer-prefix { color: var(--gold-prim); font-weight: 800; font-size: 11.5px; }
.timer-clock {
  color: var(--green);
  font-family: Consolas, monospace;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
}
.prog-track {
  height: 11px;
  background: #23232a;
  border: 1px solid #3a3a44;
  border-radius: 6px;
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #ebb02e);
  transition: width 0.35s ease;
}
.trial-end-lbl { font-size: 11.5px; color: var(--gold-soft); min-width: 195px; text-align: right; }

/* WORKSPACE 2-KOLOM */
.mid-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 10px;
}
.mid-grid.locked, .main-tabs-box.locked { opacity: 0.52; pointer-events: none; }
.mid-left { display: flex; flex-direction: column; gap: 9px; }
.radio-row { display: flex; gap: 16px; margin-bottom: 6px; flex-wrap: wrap; }
.cat-desc { color: var(--gold-soft); font-size: 11.6px; line-height: 1.4; }

.color-top-row { display: flex; gap: 10px; align-items: center; margin-bottom: 9px; }
.swatch-box {
  width: 68px;
  height: 44px;
  border: 2px solid var(--gold-bright);
  box-shadow: inset 0 0 0 2px #050507;
  border-radius: 3px;
  flex-shrink: 0;
}
.color-inputs-col { flex: 1; min-width: 0; }
.quick-lbl { color: var(--gold-soft); font-size: 11.6px; margin-bottom: 6px; }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.btn-quick { height: 26px; padding: 0 6px; font-size: 11.5px; }

.mu-swatch {
  display: inline-block;
  width: 28px;
  height: 22px;
  border: 1.5px solid var(--gold-prim);
  border-radius: 3px;
}

/* FOOTER */
.studio-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}
.footer-left, .footer-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* POPUP ACTIONS (TOP-LEFT, IDENTIK PHOTOSHOP) */
.actions-pop-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 900;
}
.actions-pop-win {
  position: fixed;
  top: 72px;
  left: 42px;
  width: 430px;
  max-width: calc(100vw - 24px);
  background: var(--bg-win);
  border: 1px solid #444033;
  border-radius: 9px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}
.actions-pop-titlebar {
  background: #ececf0;
  color: #16161a;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}
.actions-pop-body { padding: 10px 12px 12px; }
.actions-pop-hdr {
  background: var(--bg-banner);
  border: 1px solid #2b2b34;
  border-radius: 4px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.ap-brand { color: var(--gold-bright); font-weight: 800; font-size: 12px; }
.ap-key { color: var(--green); font-weight: 800; font-size: 11.5px; }
.ap-status { color: var(--green); font-size: 12px; margin-bottom: 4px; }
.ap-file { color: #f6f4ee; font-size: 11.8px; word-break: break-word; }
.actions-pop-btns { display: flex; gap: 10px; }
.btn-ap-open {
  flex: 1;
  background: #141418;
  color: #fff;
  border: 1.5px solid #e5e2d9;
  font-weight: 800;
}
.btn-ap-open:hover { background: var(--gold-prim); color: #09090b; border-color: var(--gold-bright); }

/* MODALS & ANIMATED LOADER */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(4px);
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.loader-card {
  width: 440px;
  max-width: 100%;
  background: var(--bg-banner);
  border: 1.5px solid var(--gold-prim);
  border-radius: 10px;
  padding: 16px 18px 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9);
}
.loader-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.gold-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3.5px solid var(--gold-dark);
  border-top-color: var(--gold-bright);
  border-right-color: var(--gold-prim);
  animation: spinGold 0.72s linear infinite;
  flex-shrink: 0;
}
@keyframes spinGold { to { transform: rotate(360deg); } }
.loader-title { color: var(--gold-bright); font-weight: 800; font-size: 13px; }
.loader-step { color: var(--gold-soft); font-size: 11.5px; margin-top: 2px; }
.loader-bar-track { height: 6px; background: #262012; border-radius: 4px; overflow: hidden; }
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-prim), var(--gold-bright));
  transition: width 0.2s ease;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-win);
  border: 1.5px solid var(--gold-prim);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 26px 75px rgba(0, 0, 0, 0.9);
}
.modal-lg { max-width: 780px; }
.modal-mockup-xl {
  max-width: 1180px;
  width: 96vw;
  height: 90vh;
  display: flex;
  flex-direction: column;
}
.mockup-iframe {
  flex: 1;
  width: 100%;
  border: 1px solid #2b2b34;
  border-radius: 6px;
  background: #07070a;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a2415;
}
.modal-title { color: var(--gold-bright); font-weight: 800; font-size: 13.5px; }
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.prev-stage {
  background: #000;
  border: 1px solid #35353f;
  border-radius: 6px;
  min-height: 260px;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}
.prev-stage canvas { max-width: 100%; max-height: 455px; object-fit: contain; }
.prev-meta { color: var(--gold-soft); font-size: 11.8px; margin-top: 8px; }

/* ORDER PRO MODAL (EMERALD HOVER) */
.ord-badge {
  display: inline-block;
  background: linear-gradient(90deg, #ffe28a, #ebb02e);
  color: #09090b;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.ord-price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ord-price-card {
  text-align: left;
  background: #14141a;
  border: 1.5px solid #3c3520;
  border-radius: 9px;
  padding: 11px 13px;
  color: #fff;
  cursor: pointer;
  transition: all 0.16s ease;
}
.ord-price-card.active {
  border-color: var(--gold-bright);
  background: rgba(235, 176, 46, 0.14);
}
.ord-price-card:hover {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.18);
}
.opc-kicker { font-size: 10.5px; font-weight: 800; color: var(--gold-bright); }
.opc-val { font-size: 19px; font-weight: 900; color: #fff; margin: 2px 0; }
.opc-dur { font-size: 11px; color: var(--gold-soft); }
.ord-feat-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.ord-feat-list li { font-size: 11.8px; color: #eae6da; display: flex; align-items: flex-start; gap: 7px; }
.chk-g {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 4px;
  background: rgba(34, 197, 94, 0.18); border: 1px solid #22c55e; color: #4ade80;
  font-size: 11px; font-weight: 900; flex-shrink: 0; margin-top: 1px;
}
.btn-ord-submit {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #ffe28a, #ebb02e);
  color: #09090b;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.16s ease;
}
.btn-ord-submit:hover {
  background: linear-gradient(135deg, #4ade80, #16a34a);
  color: #fff;
}
.ord-foot-hint { text-align: center; font-size: 11px; color: var(--gold-soft); margin-top: 8px; }



/* LIVE INTERACTIVE HALFTONE PREVIEW STUDIO + PRO PRINT GUARD v8.0 */
.live-quick-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: #14141b;
  border: 1px solid #352e1e;
  border-radius: 5px;
  padding: 5px 9px;
  margin-bottom: 6px;
  font-size: 11.2px;
}
.lqb-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lqb-lbl { color: var(--gold-soft); font-weight: 700; }
.lqb-range { width: 135px; accent-color: var(--gold-bright); cursor: pointer; }
.lqb-sel { width: 92px; padding: 2px 5px; font-size: 11px; }
.lqb-badges { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.lqb-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #1d1d24;
  border: 1px solid #3c3c48;
  color: #888a96;
}
.lqb-pill.on {
  background: rgba(235, 176, 46, 0.16);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}
.live-stage-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 310px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.canvas-stage {
  min-height: 185px;
  max-height: 335px;
}
.canvas-stage canvas#livePreviewCanvas {
  max-width: 100%;
  max-height: 310px;
  display: block;
}
.split-tag {
  position: absolute;
  top: 7px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9.8px;
  font-weight: 800;
  letter-spacing: 0.4px;
  pointer-events: none;
  background: rgba(12, 12, 16, 0.78);
  border: 1px solid rgba(235, 176, 46, 0.55);
  color: #f7e4b2;
  z-index: 4;
}
.split-tag.left { left: 7px; }
.split-tag.right { right: 7px; color: var(--gold-bright); }
.split-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--gold-bright);
  box-shadow: 0 0 10px rgba(235, 176, 46, 0.85);
  cursor: ew-resize;
  z-index: 6;
  transform: translateX(-1px);
}
.split-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8d474, #c98f1a);
  color: #12100a;
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0e0e12;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  letter-spacing: -1px;
}
.live-loupe {
  position: absolute;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  border: 2.5px solid var(--gold-bright);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.9), 0 0 16px rgba(235, 176, 46, 0.45);
  pointer-events: none;
  z-index: 9;
  background: #0d0d11;
}
.pro-guard-box {
  margin: 7px 0 5px;
  padding: 8px 10px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(235, 176, 46, 0.08), rgba(20, 20, 26, 0.92));
  border: 1px solid rgba(235, 176, 46, 0.42);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pro-guard-title {
  font-size: 10.6px;
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: 0.3px;
  margin-bottom: 1px;
}


/* BATCH FOLDER CONFIRMATION & OUTPUT FOLDER EXPLORER MODAL (100% PARITAS PHOTOSHOP) */
.batch-confirm-box {
  background: #121218;
  border: 1px solid #3c331e;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.65;
  color: #efe9d8;
}
.batch-confirm-box .bc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding: 3px 0;
}
.batch-confirm-box .bc-row:last-child { border-bottom: none; }
.batch-confirm-box .bc-k { color: var(--gold-soft); font-weight: 700; min-width: 118px; }
.batch-confirm-box .bc-v { color: #ffffff; font-weight: 600; text-align: right; word-break: break-word; }
.batch-res-summary {
  background: #121218;
  border: 1px solid #3a3320;
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 11.8px;
  color: #f3ead1;
  margin-bottom: 8px;
  line-height: 1.5;
}
.batch-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding: 4px 2px;
}
.batch-file-tile {
  background: #14141c;
  border: 1px solid #2e2e38;
  border-radius: 6px;
  padding: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.batch-file-tile:hover { border-color: var(--gold-bright); }
.batch-file-thumb {
  width: 100%;
  height: 98px;
  object-fit: contain;
  border-radius: 4px;
  background-image:
    linear-gradient(45deg, #22222a 25%, transparent 25%),
    linear-gradient(-45deg, #22222a 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #22222a 75%),
    linear-gradient(-45deg, transparent 75%, #22222a 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-color: #16161d;
}
.batch-file-name {
  font-size: 10.5px;
  font-weight: 700;
  color: #f6eed8;
  word-break: break-all;
  line-height: 1.25;
}
.batch-file-meta {
  font-size: 9.8px;
  color: var(--gold-soft);
}



/* TAB 4: HYBRID RASTER (DETAIL-LOCK + BREATHABLE HALFTONE) */
.tab-strip-4 { flex-wrap: wrap; }
.tab-strip-4 .tab-btn { padding: 5px 7px; font-size: 10.7px; }
.hybrid-info-note {
  margin: 0 0 7px;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(235, 176, 46, 0.11);
  border: 1px solid rgba(235, 176, 46, 0.55);
  color: #fde68a;
  font-size: 10.8px;
  line-height: 1.4;
}

/* TAB 3: TRANSPARAN RASTER (0% KNOCK-OUT) */
.tab-strip-3 .tab-btn { padding: 5px 8px; font-size: 11.2px; }
.trans-noknock-note {
  margin: 0 0 7px;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #bae6fd;
  font-size: 10.8px;
  line-height: 1.4;
}

/* POPUP OTOMATIS KUOTA TAUTAN WEB MAKSIMAL (3/3) */
.quota-modal-card {
  max-width: 490px;
  text-align: center;
  border: 1.5px solid #ef4444;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.92), 0 0 34px rgba(239, 68, 68, 0.24);
  padding: 18px 20px 16px;
}
.quota-alert-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  background: rgba(239, 68, 68, 0.16);
  border: 2.5px solid #ef4444;
  color: #f87171;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}
.quota-badge-pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.55);
  color: #fca5a5;
  font-size: 10.8px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.quota-title {
  margin: 0 0 6px;
  color: var(--gold-bright);
  font-size: 16px;
  font-weight: 900;
}
.quota-desc {
  margin: 0 0 12px;
  color: #f3efe4;
  font-size: 12.2px;
  line-height: 1.5;
}
.quota-stats-box {
  background: #14141a;
  border: 1px solid #353028;
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  font-size: 11.8px;
}
.qs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.qs-row span { color: var(--gold-soft); }
.quota-advice-box {
  background: rgba(235, 176, 46, 0.1);
  border: 1px solid rgba(235, 176, 46, 0.38);
  border-radius: 8px;
  padding: 9px 11px;
  margin-bottom: 13px;
  font-size: 11.6px;
  color: #f4ead0;
  line-height: 1.48;
  text-align: left;
}
.quota-sec-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}
.quota-sec-actions .btn-ps { flex: 1; min-width: 120px; }

/* ANIMATED POPUP BADGE */
.anim-badge-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 4px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  background: rgba(56, 224, 120, 0.18);
  border: 2.5px solid var(--green);
  color: var(--green);
}
.anim-badge-ring.info { background: rgba(235, 176, 46, 0.18); border-color: var(--gold-bright); color: var(--gold-bright); }
.anim-badge-ring.error { background: rgba(245, 89, 89, 0.18); border-color: var(--red); color: var(--red); }
.anim-pop-title { color: var(--gold-bright); font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.anim-pop-detail { color: var(--gold-soft); font-size: 12px; white-space: pre-line; line-height: 1.5; }

/* ============================================================================
 * RESPONSIVE DESIGN SUITE — HP, TABLET, IPAD, LAPTOP, DESKTOP & ULTRAWIDE
 * ============================================================================ */
html, body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
img, canvas, iframe { max-width: 100%; }
.inp-ps, .sel-ps { max-width: 100%; }

/* 1. TABLET & IPAD (LANDSCAPE / PORTRAIT <= 1024px) */
@media (max-width: 1024px) {
  .studio-shell {
    width: calc(100% - 20px);
    max-width: 100%;
    margin: 10px auto 18px;
  }
  .logo-wrap { width: 118px; height: 118px; }
  .hdr-btns .btn-ps { min-width: 112px; }
  .tab-strip-8 {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 2px;
  }
  .tab-strip-8 .tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 7px 11px;
  }
  .modal-mockup-xl {
    width: 98vw;
    height: 94dvh;
  }
}

/* 2. IPAD PORTRAIT & SMALL TABLET (<= 860px) */
@media (max-width: 860px) {
  .pnl-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 13px;
  }
  .hdr-right {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    border-top: 1px solid #23232c;
    padding-top: 10px;
    flex-wrap: wrap;
  }
  .logo-wrap { width: 64px; height: 64px; }
  .lf-d { font-size: 28px; }
  .lf-sub { font-size: 8px; }
  .copyright-txt { width: 100%; text-align: left; }
  .mid-grid { grid-template-columns: 1fr; }
  .ord-price-grid { grid-template-columns: 1fr; }
  .trial-end-lbl { min-width: 0; text-align: left; width: 100%; }
  .modal-card { max-height: 92dvh; overflow-y: auto; }
}

/* 3. SMARTPHONE / HP (<= 600px) */
@media (max-width: 600px) {
  body { font-size: 13px; }
  .studio-shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    min-height: 100dvh;
  }
  .win-titlebar {
    padding: 8px 11px;
    padding-top: max(8px, env(safe-area-inset-top));
    font-size: 11.8px;
  }
  .studio-body {
    padding: 10px 10px calc(18px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .brand-title { font-size: 14.5px; line-height: 1.3; }
  .brand-sub { font-size: 11px; }
  .doc-input-text { font-size: 11.5px; }

  .hdr-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .hdr-btns .btn-ps {
    min-width: 0;
    width: 100%;
    height: 36px;
    padding: 0 8px;
    font-size: 11.8px;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 36px;
  }
  .tab-pane { padding: 10px 9px; }
  .ps-panel { padding: 9px 9px 11px; }

  /* Form controls touch-friendly & bebas zoom otomatis iOS */
  .inp-ps, .sel-ps {
    font-size: 14px;
    min-height: 36px;
    padding: 6px 8px;
  }
  .btn-ps { min-height: 36px; font-size: 12px; }
  .btn-sm { min-height: 34px; height: auto; padding: 6px 10px; }
  .btn-xs { min-height: 30px; padding: 4px 10px; font-size: 11.5px; }
  .btn-pill { height: 40px; }
  .btn-wide-gold { height: auto; min-height: 40px; padding: 8px 12px; line-height: 1.3; }

  .lbl-fixed { min-width: 100%; font-size: 11.8px; margin-bottom: -2px; }
  #etDeviceID, #etLicenseKey, #btnActivateKey,
  #ddPrintSize, #ddFitMode, #ddCustomPreset, #ddPngComp,
  #ddDtfChoke, #ddMocUpType, #ddMocUpSide, #ddMocUpBg,
  #ddCsMode, #ddCsColorCount, #ddCsSizeMode, #ddCsShirtMode,
  #ddCsChoke, #ddCsLpi, #ddCsDotShape, #ddCsAngleMode,
  #etBatchSrc, #etCariFolderPath, #ddCariFileList {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100%;
  }
  #slEdgeTol, #slCenterProt, #slFullDensity {
    width: 100% !important;
    flex: 1 1 140px;
  }
  .form-row > span[style*="min-width"] {
    min-width: 100% !important;
  }
  .sep-pipe { display: none; }

  .color-top-row { flex-direction: column; align-items: stretch; }
  .swatch-box { width: 100%; height: 38px; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .btn-quick { height: 32px; font-size: 11.5px; }

  /* Footer mobile: Tombol utama JALANKAN RASTER paling atas & lebar penuh */
  .studio-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 9px;
    padding-top: 6px;
  }
  .footer-right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .btn-run-main {
    width: 100%;
    min-width: 0;
    height: 44px;
    font-size: 13.5px;
    order: -1;
  }
  .footer-left {
    justify-content: space-between;
    width: 100%;
  }
  #btnCancel { width: 100%; }

  /* Modals mobile full-fit */
  .modal-mask { padding: 8px; }
  .modal-card { padding: 12px; width: 100%; max-width: 100%; }
  .modal-mockup-xl {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    padding: 6px;
    border: none;
  }
  .modal-mask:has(.modal-mockup-xl) { padding: 0; }
  .modal-title { font-size: 12.2px; }
  .prev-stage { min-height: 180px; max-height: 50dvh; }
  .prev-stage canvas { max-height: 46dvh; }
}

/* 4. HP LAYAR KECIL (<= 380px) */
@media (max-width: 380px) {
  .hdr-btns { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-title { font-size: 13.5px; }
  .timer-clock { font-size: 15px; }
}
