/* ==========================================================
   ForgeLab Aksesoris — mengikuti design system sheva-studio.com
   (ink gelap, kartu "plate" dengan bayangan keras, aksen oranye)
   ========================================================== */
:root {
  color-scheme: dark;
  --ink: #0d1016; --ink2: #151a23; --ink3: #1d2330;
  --card: #161b25; --card2: #1b212d;
  --edge: #252c3a; --edge2: #333c4e; --drop: #06080c;
  --orange: #ff8a2b; --orange-hi: #ffa04f; --orange-deep: #b4520e;
  --amber: #ffc23d; --mint: #34e3a4; --mint-deep: #138a5e;
  --sky: #5aa8ff; --pink: #ff6fb5; --red: #ff5d6c;
  --text: #cdd5e2; --bright: #f7f9fc; --muted: #93a0b5; --dim: #6b778c;
  --line: rgba(255,255,255,0.07);
  --r: 14px; --r2: 20px;
  --plate: 0 6px 0 var(--drop);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --f-head: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif;
  --f-body: "Plus Jakarta Sans", Inter, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--ink); }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  color: var(--text); font: 14.5px/1.55 var(--f-body);
  background:
    radial-gradient(900px 500px at 0% -10%, rgba(255,138,43,0.10), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(90,168,255,0.06), transparent 60%),
    linear-gradient(rgba(255,255,255,0.024) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255,255,255,0.024) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--ink);
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-head); font-weight: 800; color: var(--bright); letter-spacing: -0.01em; }
h2 { font-size: 20px; letter-spacing: -0.2px; }
.sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.sub.small, .small { font-size: 12.5px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- Tombol (plate) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 13px; text-decoration: none;
  font: 800 13.5px var(--f-body); letter-spacing: .01em; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
}
.btn svg { width: 17px; height: 17px; }
.btn-gold { color: #1a0e04; background: var(--orange); border: 2px solid var(--orange-hi); box-shadow: 0 5px 0 var(--orange-deep); }
.btn-gold:hover:not(:disabled) { background: var(--orange-hi); transform: translateY(-2px); box-shadow: 0 7px 0 var(--orange-deep); }
.btn-gold:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--orange-deep); }
.btn-ghost { color: var(--bright); background: var(--card2); border: 2px solid var(--edge2); box-shadow: 0 5px 0 var(--drop); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--drop); border-color: #44506a; }
.btn-ghost:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--drop); }
.btn-sm { padding: 8px 14px; border-radius: 11px; font-size: 12.5px; box-shadow: 0 4px 0 var(--orange-deep); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; transform: none; }

/* ---------- Layout ---------- */
.glass { background: var(--card); border: 2px solid var(--edge); border-radius: var(--r2); box-shadow: var(--plate); }

/* ---------- Pill/badge ---------- */
.pill {
  display: inline-block; padding: 5px 12px; border-radius: 999px; white-space: nowrap;
  font: 800 11.5px var(--f-body); letter-spacing: .08em;
  color: var(--mint); background: rgba(52,227,164,0.10); border: 2px solid rgba(52,227,164,0.45);
}
.pill.bad { color: var(--red); background: rgba(255,93,108,0.10); border-color: rgba(255,93,108,0.45); }

/* ---------- Panel kiri ---------- */
.panel { padding: 14px; }
.seg {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; padding: 4px; margin-bottom: 18px;
  border-radius: 13px; background: var(--ink2); border: 2px solid var(--edge);
}
#tatSeg { grid-template-columns: repeat(3, 1fr); }
.seg-btn { border: 0; background: transparent; color: var(--muted); padding: 8px 4px; border-radius: 9px; font: 700 12px var(--f-body); white-space: nowrap; transition: .15s; }
.seg-btn:hover { color: var(--bright); }
.seg-btn.active { background: var(--orange); color: #1a0e04; box-shadow: 0 3px 0 var(--orange-deep); }
.tab { display: none; padding: 0 2px; }
.tab.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

.field { display: block; margin-bottom: 16px; }
.lbl { display: flex; justify-content: space-between; align-items: center; font: 800 11px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.lbl output { color: var(--bright); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }

input[type=number], input[type=text], input[type=email], input[type=tel], input[type=search], input[type=password], select {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 2px solid var(--edge);
  background: var(--ink2); color: var(--bright); font: 500 14px var(--f-body); transition: .15s;
}
select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 36px; font-weight: 600; font-size: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2393a0b5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 15px;
}
select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,138,43,0.18); }
select option, select optgroup { background-color: var(--ink2); color: var(--bright); }
select optgroup { color: var(--muted); font-weight: 800; }
input::placeholder { color: var(--dim); }
input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,138,43,0.18); }
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 40px var(--ink2) inset !important;
  -webkit-text-fill-color: var(--bright) !important;
  caret-color: var(--bright) !important;
  transition: background-color 5000s ease-in-out 0s;
}
::selection {
  background: var(--orange);
  color: #fff;
}
input[type=color] { width: 100%; height: 42px; border: 2px solid var(--edge); border-radius: 12px; background: var(--ink2); padding: 3px; cursor: pointer; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--orange-deep), var(--orange)) 0 0 / var(--pct, 50%) 100% no-repeat, var(--ink3); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--ink3); }
input[type=range]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--orange); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; margin-top: -6px; border-radius: 50%;
  background: var(--bright); border: 4px solid var(--orange); box-shadow: 0 3px 0 var(--drop);
}
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--bright); border: 4px solid var(--orange); }

.chips { display: flex; gap: 6px; }
.chips.wrap { flex-wrap: wrap; }
.chips button {
  flex: 1; padding: 9px 12px; border-radius: 11px; border: 2px solid var(--edge2);
  background: var(--card2); color: var(--muted); font: 700 13px var(--f-body); white-space: nowrap;
  box-shadow: 0 3px 0 var(--drop); transition: .15s;
}
.chips button:hover { color: var(--bright); }
.chips button.on { color: #1a0e04; background: var(--orange); border-color: var(--orange-hi); box-shadow: 0 3px 0 var(--orange-deep); }

.switch { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 14px; color: var(--text); cursor: pointer; }
.switch input { display: none; }
.switch i { position: relative; width: 42px; height: 24px; flex: none; border-radius: 99px; background: var(--ink3); border: 2px solid var(--edge2); transition: .2s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: .2s; }
.switch input:checked + i { background: var(--mint-deep); border-color: var(--mint); }
.switch input:checked + i::after { left: 20px; background: #fff; }
.switch.small { font-size: 13px; margin-top: 8px; }

.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 150px; padding: 16px; margin-bottom: 18px; border-radius: 16px; cursor: pointer; text-align: center;
  color: var(--muted); font-size: 13.5px; border: 2px dashed var(--edge2);
  background: repeating-conic-gradient(rgba(255,255,255,0.025) 0 25%, transparent 0 50%) 0 0 / 18px 18px, var(--ink2);
  transition: .2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--orange); color: var(--bright); background-color: rgba(255,138,43,0.06); }
.dropzone img { max-width: 100%; max-height: 120px; object-fit: contain; }
.dz-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #1a0e04; background: var(--orange); box-shadow: 0 4px 0 var(--orange-deep); }
.dropzone img:not([hidden]) ~ .dz-icon { display: none; }

.text-btn { border: 0; background: none; padding: 4px 0; color: var(--muted); font: 700 12.5px var(--f-body); }
.text-btn:hover { color: var(--orange-hi); }
.lbl .link-btn { border: 0; background: none; padding: 0; color: var(--orange-hi); font: 800 11px var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.lbl .link-btn:hover { text-decoration: underline; }

/* ---------- Tengah: viewport ---------- */
.viewport {
  position: relative; flex: 1; min-height: 0; height: 100%; border-radius: var(--r2); overflow: hidden; border: 2px solid var(--edge); box-shadow: var(--plate);
  background:
    radial-gradient(55% 50% at 50% 45%, rgba(255,138,43,0.10), transparent 70%),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--ink2);
}
.viewport > canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; cursor: grab; touch-action: none; }
.viewport > canvas:active { cursor: grabbing; }

.vp-tools {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%); z-index: 2;
  display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 14px;
  background: var(--card); border: 2px solid var(--edge); box-shadow: 0 4px 0 var(--drop);
}
.vp-tools button, .vp-pill button { border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; transition: .15s; }
.vp-tools button { width: 38px; height: 38px; border-radius: 10px; }
.vp-tools svg { width: 19px; height: 19px; }
.vp-tools button:hover, .vp-pill button:hover { color: var(--bright); background: rgba(255,255,255,0.06); }
.vp-tools button.active { color: #1a0e04; background: var(--orange); box-shadow: 0 3px 0 var(--orange-deep); }
.vp-sep { height: 2px; margin: 3px 6px; background: var(--edge); border-radius: 2px; }
.vp-top { position: absolute; right: 12px; top: 12px; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.vp-pill { display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--card); border: 2px solid var(--edge); box-shadow: 0 4px 0 var(--drop); }
.vp-pill button { height: 30px; min-width: 30px; padding: 0 11px; border-radius: 8px; font: 700 12.5px var(--f-body); }
.vp-pill svg { width: 16px; height: 16px; }
.vp-pill button.active { color: #1a0e04; background: var(--orange); }
.vp-help {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; pointer-events: none;
  display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; font-size: 11.5px; color: var(--muted);
}
.vp-help kbd {
  display: inline-block; margin-right: 4px; padding: 1px 6px; border-radius: 6px; font: 700 10.5px var(--f-body);
  color: var(--bright); background: var(--card2); border: 1px solid var(--edge2); box-shadow: 0 2px 0 var(--drop);
}
.busy { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 12px; background: rgba(13,16,22,0.55); backdrop-filter: blur(3px); color: var(--bright); font-weight: 700; }
.spinner { width: 24px; height: 24px; border: 3px solid var(--edge2); border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hint-float {
  position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); z-index: 2;
  padding: 10px 18px; border-radius: 12px; font: 700 13px var(--f-body); color: var(--bright); white-space: nowrap;
  background: var(--card2); border: 2px solid var(--edge2); box-shadow: 0 4px 0 var(--drop); transition: .15s;
}
.hint-float:hover { border-color: var(--orange); transform: translateX(-50%) translateY(-2px); }
.hint-float b { color: var(--orange); margin-right: 4px; }

/* ---------- Kanan ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { padding: 18px 16px; border-radius: 18px; }
.stat-h { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.stat-h svg { width: 18px; height: 18px; color: var(--orange); }
.stat:nth-child(2) .stat-h svg { color: var(--sky); }
.stat-v { font: 800 28px var(--f-head); color: var(--bright); margin: 8px 0 6px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; }
.stat-d { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--mint); white-space: nowrap; }
.stat-d i { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); flex: none; }
.stat-d.bad { color: var(--red); } .stat-d.bad i { background: var(--red); }
.stat-d.muted { color: var(--muted); }

.card { padding: 22px 20px; }
.card-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.price { font: 800 20px var(--f-head); color: var(--orange); }
.card input { margin-bottom: 10px; }
.rings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.ring {
  height: 56px; border-radius: 13px; display: grid; place-items: center;
  border: 2px solid var(--edge); background: var(--ink2); box-shadow: 0 4px 0 var(--drop);
  color: var(--dim); font: 800 14px var(--f-head); letter-spacing: .06em; transition: .3s;
}
.ring.ready { color: var(--bright); border-color: var(--edge2); }
.ring.paid[data-fmt=glb] { border-color: var(--orange); color: var(--orange); background: rgba(255,138,43,0.08); }
.ring.paid[data-fmt=obj] { border-color: var(--sky); color: var(--sky); background: rgba(90,168,255,0.08); }
.ring.paid[data-fmt=fbx] { border-color: var(--pink); color: var(--pink); background: rgba(255,111,181,0.08); }
.ring.paid[data-fmt=stl] { border-color: var(--mint); color: var(--mint); background: rgba(52,227,164,0.08); }
.pay-note { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 11.5px; color: var(--muted); }
.pay-note svg { width: 14px; height: 14px; color: var(--mint); flex: none; }

.orders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.orders li { padding: 12px 14px; border-radius: 14px; background: var(--ink2); border: 2px solid var(--edge); }
.orders .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.orders .oid { font-size: 11.5px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; }
.orders .st { font: 800 10.5px var(--f-body); letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; color: var(--amber); background: rgba(255,194,61,0.12); }
.orders .st.paid { color: var(--mint); background: rgba(52,227,164,0.12); }
.orders .st.failed { color: var(--red); background: rgba(255,93,108,0.12); }
.orders .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.orders .actions:empty { display: none; }
.orders .btn-ghost {
  padding: 6px 11px; border-radius: 9px; font: 800 12px var(--f-body); text-decoration: none;
  border-width: 2px; box-shadow: 0 3px 0 var(--drop);
}
.orders a.btn-ghost { color: #1a0e04; background: var(--orange); border-color: var(--orange-hi); box-shadow: 0 3px 0 var(--orange-deep); }
#noOrders[hidden] { display: none; }

/* ---------- Dock (mobile) ---------- */
.dock { display: none; }
.dock-btn { width: 50px; height: 50px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.dock-btn svg { width: 24px; height: 24px; fill: currentColor; }
.dock-btn.active { color: var(--bright); background: var(--card2); }
.fab {
  width: 62px; height: 62px; margin: -26px 2px 0; border-radius: 18px; border: 2px solid var(--orange-hi);
  display: grid; place-items: center; font-size: 28px; font-weight: 800; color: #1a0e04;
  background: var(--orange); box-shadow: 0 5px 0 var(--orange-deep);
}
.fab:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--orange-deep); }

/* ---------- Field transform ---------- */
.xyz-row { display: grid; grid-template-columns: 58px repeat(3, 1fr); gap: 5px; align-items: center; margin-bottom: 6px; }
.xyz-name { font-size: 12px; color: var(--muted); font-weight: 600; }
.ax { position: relative; display: block; }
.ax i { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font: 800 10px var(--f-body); font-style: normal; pointer-events: none; }
.ax.x i { color: #ff5d73; } .ax.y i { color: #7fe05a; } .ax.z i { color: var(--sky); }
.ax input { padding: 7px 6px 7px 20px; border-radius: 10px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ax input:disabled { opacity: .45; }

/* ---------- Tab tekstur ---------- */
.uv-wrap { border-radius: 16px; overflow: hidden; border: 2px solid var(--edge); background: var(--ink); box-shadow: 0 4px 0 var(--drop); }
.uv-editor { position: relative; aspect-ratio: 1; overflow: hidden; }
.uv-editor canvas { position: absolute; inset: 0; display: block; touch-action: none; }
.uv-coord { position: absolute; right: 8px; bottom: 6px; z-index: 1; color: var(--text); font: 10.5px ui-monospace, Consolas, monospace; pointer-events: none; text-shadow: 0 1px 2px #000; }
.uv-tools { display: flex; align-items: center; gap: 6px; padding: 7px; border-top: 2px solid var(--edge); background: var(--card2); }
.uv-tools select {
  flex: 1; min-width: 0; height: 30px; padding: 0 8px; border-radius: 9px; border: 2px solid var(--edge2);
  background: var(--ink2); color: var(--bright); font: 600 12px var(--f-body);
}
.mini-check { display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; cursor: pointer; }
.mini-check input { accent-color: var(--orange); margin: 0; }
.uv-tools button { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--edge2); background: var(--ink2); font-size: 15px; }
.uv-tools button:hover { border-color: var(--orange); color: var(--orange); }
.tex-rows { display: flex; flex-direction: column; gap: 8px; }
.tex-row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px; text-align: left; border-radius: 14px;
  border: 2px solid var(--edge); background: var(--ink2); color: var(--text); box-shadow: 0 3px 0 var(--drop); transition: .15s;
}
.tex-row:hover { border-color: var(--edge2); }
.tex-row.active { border-color: var(--orange); background: rgba(255,138,43,0.07); }
.tex-thumb { width: 46px; height: 46px; flex: none; border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(#2a3242 0 25%, #1d2330 0 50%) 0 0 / 10px 10px; }
.tex-thumb canvas { width: 100%; height: 100%; display: block; }
.tex-meta { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tex-meta b { font-size: 12.5px; font-weight: 700; color: var(--bright); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tex-meta small { font-size: 11px; color: var(--muted); }
.tex-tags { display: flex; gap: 4px; margin-top: 2px; }
.tex-tags i { font-style: normal; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 6px; background: var(--card2); color: var(--muted); }
.tex-tags i.ok { background: rgba(52,227,164,0.12); color: var(--mint); }

/* ================= Panel Material Properties ala Blender ================= */
.bp {
  margin: 0 -4px 12px; padding: 8px; border-radius: 10px; background: #303030; border: 1px solid #1a1a1a;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 12.5px; color: #e6e6e6;
}
.bp-crumb { display: flex; align-items: center; gap: 6px; padding: 2px 4px 8px; white-space: nowrap; overflow: hidden; font-size: 12px; }
.bp-crumb i { color: #8a8a8a; font-style: normal; }
.bp-crumb span { overflow: hidden; text-overflow: ellipsis; }
.bp-slots { background: #282828; border-radius: 4px; padding: 4px; min-height: 64px; margin-bottom: 8px; }
.bp-slot { display: flex; align-items: center; gap: 7px; padding: 3px 8px; border-radius: 3px; }
.bp-slot.active { background: #4772b3; color: #fff; }
.bp-ball { width: 12px; height: 12px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 35%, #fff, #9a9a9a 55%, #444); }
.bp-namefield { display: flex; align-items: center; gap: 7px; height: 24px; padding: 0 8px; margin-bottom: 8px; border-radius: 4px; background: #1d1d1d; }
.bp-panel { border-radius: 4px; background: #3d3d3d; margin-bottom: 3px; }
.bp-head { padding: 5px 8px; color: #e6e6e6; cursor: default; }
.bp-panel:not(.open) .bp-head { color: #cfcfcf; }
.bp-body { padding: 4px 8px 8px; display: flex; flex-direction: column; gap: 4px; }
.bp-row { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 6px; }
.bp-label { text-align: right; color: #d6d6d6; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-node, .bp-num {
  grid-column: 2 / 4; height: 22px; display: flex; align-items: center; gap: 7px; padding: 0 8px;
  border-radius: 4px; background: #282828; font-size: 12px; white-space: nowrap; overflow: hidden;
}
.sock { width: 9px; height: 9px; border-radius: 50%; flex: none; border: 1px solid #111; }
.sock.green { background: #63c763; } .sock.yellow { background: #c7c729; } .sock.purple { background: #6363c7; }
.bp-toggle { cursor: pointer; grid-column: 2; }
.bp-toggle input { display: none; }
.bp-toggle .off-txt { display: none; }
.bp-toggle input:not(:checked) ~ .on-txt { display: none; }
.bp-toggle input:not(:checked) ~ .off-txt { display: inline; }
.bp-toggle input:not(:checked) ~ .sock { background: #777; }
.bp-color { grid-column: 3; width: 34px !important; height: 22px !important; padding: 1px !important; border-radius: 4px !important; border: 0 !important; background: #282828 !important; }
.bp-row:has(#png_texture_cap:checked) .bp-color { display: none; }
.bp-row:has(#png_texture_cap:checked) .bp-toggle { grid-column: 2 / 4; }
.bp-num { position: relative; justify-content: center; padding: 0; background: #545454; cursor: ew-resize; user-select: none; touch-action: none; }
.bp-num:hover { background: #656565; }
.bp-num .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #4772b3; pointer-events: none; }
.bp-num .val { position: relative; font-variant-numeric: tabular-nums; pointer-events: none; }
.bp-num.editing .val, .bp-num.editing .fill { display: none; }
.bp-num input {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 4px; padding: 0 8px;
  background: #1d1d1d; color: #fff; font: inherit; text-align: center; box-shadow: inset 0 0 0 1px #4772b3;
}



/* ==================== Layar pembuka ==================== */
.landing {
  position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; text-align: center; overflow: hidden;
}
.landing-glow {
  position: absolute; inset: auto; width: 900px; height: 900px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,138,43,0.16), transparent 62%); filter: blur(10px);
  animation: glow 6s ease-in-out infinite alternate;
}
@keyframes glow { from { transform: scale(0.92); opacity: .8; } to { transform: scale(1.05); opacity: 1; } }
.landing-in { position: relative; max-width: 860px; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,138,43,0.10); border: 2px solid rgba(255,138,43,0.55); color: var(--text); font-size: 13px; font-weight: 600;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(52,227,164,0.2); }
.eyebrow b { color: var(--orange-hi); }
.landing h1 { font-size: clamp(40px, 7.4vw, 92px); line-height: 0.98; letter-spacing: -0.045em; margin: 22px 0 18px; }
.landing h1 em { font-style: normal; color: var(--orange); white-space: nowrap; }
.lead { margin: 0 auto; max-width: 640px; color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.6; }
.btn-xl { margin-top: 34px; padding: 18px 34px; border-radius: 16px; font-size: 17px; box-shadow: 0 6px 0 var(--orange-deep); }
.btn-xl svg { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.btn-xl:hover svg { transform: translateX(4px); }
.steps { display: flex; align-items: center; gap: 12px; margin-top: 46px; }
.step {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-align: left; border-radius: 16px;
  background: var(--card); border: 2px solid var(--edge); box-shadow: var(--plate);
}
.step b { display: block; color: var(--bright); font-size: 14px; }
.step small { color: var(--muted); font-size: 12px; }
.step-n { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; font: 800 14px var(--f-head); color: #1a0e04; background: var(--orange); box-shadow: 0 3px 0 var(--orange-deep); }
.step-arrow { color: var(--orange); font-size: 22px; font-weight: 800; }
.landing-foot { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 22px; font-size: 12.5px; color: var(--dim); }
.landing-foot a { color: var(--muted); text-decoration: none; font-weight: 600; }
.landing-foot a:hover { color: var(--orange-hi); }

/* ==================== Workspace full layar ==================== */
.ws {
  position: fixed; inset: 0; display: grid; gap: 14px; padding: 14px;
  grid-template-columns: 320px minmax(0, 1fr) 300px;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "top top top" "left center right";
}
body[data-screen="landing"] .ws { display: none; }
body[data-screen="workspace"] .landing { display: none; }
body[data-screen="workspace"] .ws { animation: wsIn .35s var(--ease); }
@keyframes wsIn { from { opacity: 0; transform: translateY(10px); } }

.ws-top {
  grid-area: top; display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 8px;
  background: var(--card); border: 2px solid var(--edge); border-radius: 16px; box-shadow: 0 4px 0 var(--drop);
}
.ws-back {
  width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center;
  border: 2px solid var(--edge2); background: var(--card2); color: var(--text); box-shadow: 0 3px 0 var(--drop);
}
.ws-back:hover { color: var(--bright); border-color: #44506a; }
.ws-back svg { width: 18px; height: 18px; }
.ws-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; overflow: hidden; }
.ws-brand img { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.ws-brand div { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.ws-brand b { font: 800 15px var(--f-head); color: var(--bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-brand .sub { margin: 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-top-actions { display: flex; align-items: center; gap: 10px; }
.ws-top-actions .btn-sm { box-shadow: 0 3px 0 var(--drop); }
.tag-sandbox { font: 800 10.5px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); padding: 4px 9px; border-radius: 8px; background: rgba(255,194,61,0.1); border: 1px solid rgba(255,194,61,0.35); }
.icon-link { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--mint); background: var(--card2); border: 2px solid var(--edge2); box-shadow: 0 3px 0 var(--drop); }
.icon-link svg { width: 18px; height: 18px; }

.ws-left { grid-area: left; overflow-y: auto; min-height: 0; }
.ws-center { grid-area: center; min-height: 0; display: flex; }
.ws-right { grid-area: right; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 14px; padding-bottom: 6px; }
.ws-left, .ws-right { scrollbar-width: thin; scrollbar-color: var(--edge2) transparent; }
.ws-left::-webkit-scrollbar, .ws-right::-webkit-scrollbar { width: 6px; }
.ws-left::-webkit-scrollbar-thumb, .ws-right::-webkit-scrollbar-thumb { background: var(--edge2); border-radius: 6px; }
.ws-right .card { padding: 18px 16px; }
.ws-right .stat { padding: 14px; }
.ws-right .stat-v { font-size: 22px; }
.ws-right .stats { gap: 10px; }
.ws-left .seg { position: sticky; top: -14px; z-index: 2; margin: -14px -14px 16px; border-radius: 0; border-width: 0 0 2px; padding: 10px; background: var(--card); }

/* ==================== Responsif ==================== */
@media (max-width: 1180px) {
  .ws { grid-template-columns: 300px minmax(0, 1fr) 270px; }
  .ws-right .stats { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  /* Layar pembuka (Landing) Mobile */
  .landing {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 32px 16px 40px;
    height: 100%;
  }
  .landing-in {
    margin: auto 0;
    width: 100%;
  }
  .landing h1 {
    font-size: clamp(30px, 8vw, 50px);
    line-height: 1.05;
    margin: 16px 0 12px;
  }
  .lead {
    font-size: 13.5px;
    line-height: 1.5;
  }
  .btn-xl {
    padding: 13px 22px;
    font-size: 15px;
    border-radius: 14px;
    margin-top: 18px;
  }
  .steps {
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
    width: 100%;
    max-width: 360px;
  }
  .step-arrow { display: none; }
  .step { width: 100%; padding: 10px 14px; }
  .landing-foot {
    position: static;
    margin-top: 26px;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding-bottom: 12px;
  }

  /* Workspace Layout Mobile */
  .ws {
    gap: 8px;
    padding: 6px 6px calc(86px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(185px, 36vh) minmax(0, 1fr);
    grid-template-areas: "top" "center" "panel";
  }
  .ws-left, .ws-right {
    grid-area: panel;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 34px;
  }
  body[data-panel="settings"] .ws-right,
  body[data-panel="download"] .ws-left {
    display: none;
  }

  /* Header Mobile: baris 1 untuk logo & aksi, baris 2 full-width untuk switcher Logo 3D / Studio Tattoo */
  .ws-top {
    flex-wrap: wrap;
    gap: 6px;
    padding: 7px 8px;
    border-radius: 14px;
  }
  .ws-back {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .ws-brand {
    flex: 1;
    min-width: 0;
  }
  .ws-brand img {
    width: 26px;
    height: 26px;
  }
  .ws-brand b {
    font-size: 13.5px;
  }
  .ws-brand .sub {
    display: none;
  }
  .ws-top-actions {
    gap: 5px;
    flex: none;
    margin-left: auto;
  }
  .ws-top-actions .btn-sm:not(.orders-btn),
  .tag-sandbox,
  .tag-dev,
  .ws-top .pill {
    display: none;
  }
  .orders-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    border-radius: 9px;
    display: inline-flex;
  }
  .orders-btn span {
    display: none;
  }
  .orders-btn .count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    font-size: 9.5px;
  }
  .icon-link {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .undo-group {
    padding: 2px;
    border-radius: 10px;
  }
  .icon-btn {
    width: 28px;
    height: 28px;
  }

  /* Viewport Controls Mobile: bungkus rapi tanpa terpotong di kanan */
  .vp-help { display: none; }
  .vp-top {
    left: 6px;
    right: 6px;
    top: 6px;
    justify-content: space-between;
    gap: 4px;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }
  .vp-pill {
    flex: none;
    padding: 2px;
    border-radius: 10px;
  }
  .vp-pill button {
    height: 26px;
    min-width: 26px;
    padding: 0 6px;
    font-size: 10.5px;
    border-radius: 7px;
  }
  .anim-pill button {
    padding: 0 4px;
  }
  .vp-pill svg {
    width: 14px;
    height: 14px;
  }
  .vp-tools {
    top: auto;
    bottom: 8px;
    left: 8px;
    transform: none;
    flex-direction: row;
    padding: 4px;
    gap: 4px;
    border-radius: 11px;
  }
  .vp-tools button {
    width: 33px;
    height: 33px;
    border-radius: 8px;
  }
  .vp-tools svg {
    width: 16px;
    height: 16px;
  }
  .vp-sep {
    width: 2px;
    height: 18px;
    margin: 0 2px;
  }
  .hint-float {
    bottom: 54px;
    font-size: 12px;
    padding: 8px 14px;
    max-width: 88%;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  /* Panel Pengaturan Mobile */
  .panel {
    padding: 12px 10px;
    border-radius: 16px;
  }
  .ws-left .seg {
    position: sticky;
    top: -12px;
    z-index: 2;
    margin: -12px -10px 14px;
    border-radius: 0;
    border-width: 0 0 2px;
    padding: 6px;
    background: var(--card);
  }
  .seg-btn {
    font-size: 11px;
    padding: 6px 1px;
    border-radius: 7px;
  }
  .chips button {
    padding: 7px 8px;
    font-size: 11.5px;
    border-radius: 9px;
  }
  .dropzone {
    min-height: 110px;
    padding: 12px;
    margin-bottom: 14px;
    font-size: 12.5px;
  }
  .dropzone img {
    max-height: 85px;
  }
  .dz-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  /* Panel Download Mobile */
  .ws-right .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .ws-right .stat {
    padding: 11px 10px;
    border-radius: 14px;
  }
  .ws-right .stat-h {
    font-size: 11.5px;
    gap: 6px;
  }
  .ws-right .stat-v {
    font-size: 18px;
    margin: 4px 0 3px;
  }
  .ws-right .stat-d {
    font-size: 11px;
  }
  .ws-right .card {
    padding: 16px 12px;
    border-radius: 16px;
  }
  .card-h {
    margin-bottom: 12px;
  }
  .card-h h2 {
    font-size: 17px;
  }
  .price {
    font-size: 18px;
  }
  .rings {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 12px;
  }
  .ring {
    height: 48px;
    border-radius: 10px;
    font-size: 13px;
  }
  #sec-buy input {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 11px;
    margin-bottom: 8px;
  }
  #buyBtn {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 12px;
  }

  /* Dock Navigasi Mobile */
  .dock {
    position: fixed;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom, 10px));
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 6px;
    width: calc(100% - 20px);
    max-width: 390px;
    padding: 5px 8px;
    border-radius: 18px;
    background: rgba(22,27,37,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--edge);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 4px 0 var(--drop);
  }
  .dock-btn {
    width: auto;
    height: 46px;
    flex: 1;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font: 700 10.5px var(--f-body);
    border-radius: 10px;
    color: var(--muted);
  }
  .dock-btn svg { width: 20px; height: 20px; }
  .dock-btn.active {
    color: var(--bright);
    background: rgba(255,255,255,0.08);
  }
  .fab {
    width: 54px;
    height: 54px;
    margin: -22px 2px 0;
    border-radius: 16px;
    font-size: 24px;
    box-shadow: 0 5px 0 var(--orange-deep), 0 0 16px rgba(255,138,43,0.3);
  }
}

/* Landscape Mode on Mobile */
@media (max-width: 900px) and (orientation: landscape) {
  .ws {
    padding: 8px 8px 64px;
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-areas: "top top" "center panel";
  }
  .dock {
    bottom: 6px;
    padding: 4px 8px;
    height: 44px;
    max-width: 340px;
  }
  .dock-btn { height: 38px; }
  .dock-btn svg { width: 17px; height: 17px; }
  .fab {
    width: 44px;
    height: 44px;
    margin-top: -18px;
    font-size: 20px;
  }
}

@media (max-height: 640px) and (min-width: 901px) {
  .steps { margin-top: 26px; }
  .btn-xl { margin-top: 22px; }
}

/* ---------- Undo/redo, watermark, info background ---------- */
.undo-group { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--ink2); border: 2px solid var(--edge); }
.icon-btn { width: 32px; height: 30px; border: 0; border-radius: 8px; display: grid; place-items: center; background: transparent; color: var(--text); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover:not(:disabled) { background: var(--card2); color: var(--bright); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.watermark {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; user-select: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='150'%3E%3Ctext x='10' y='90' transform='rotate(-24 130 75)' font-family='Arial,sans-serif' font-size='17' font-weight='800' fill='%23ffffff' fill-opacity='0.09' letter-spacing='2'%3EFORGELAB %C2%B7 PREVIEW%3C/text%3E%3C/svg%3E");
  background-size: 260px 150px;
}
.bg-info { margin: -6px 0 14px; color: var(--mint); min-height: 0; }
.bg-info:empty { display: none; }
@media (max-width: 900px) { .undo-group { display: flex; } }

/* ---------- Editor background (modal) ---------- */
.btn-edit-bg { margin: 0 0 16px; padding: 10px 14px; font-size: 13px; }
.btn-edit-bg svg { width: 16px; height: 16px; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(5,7,10,0.72); backdrop-filter: blur(6px); }
.modal-card {
  width: min(1200px, 100%); height: min(860px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 18px;
  background: var(--card); border: 2px solid var(--edge); border-radius: var(--r2); box-shadow: 0 10px 0 var(--drop);
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-head .sub b { color: var(--bright); }
.bge-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bge-tools .chips { flex: none; }
.bge-tools .chips button { flex: none; }
.bge-tol { flex: 1; min-width: 180px; max-width: 320px; }
.bge-tol .lbl { margin-bottom: 2px; }
.bge-actions { display: flex; gap: 8px; margin-left: auto; }
.btn-sm2 { padding: 8px 12px; border-radius: 10px; font-size: 12.5px; box-shadow: 0 3px 0 var(--drop); }
.bge-stage {
  position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 14px; border: 2px solid var(--edge); cursor: crosshair; touch-action: none;
  background: repeating-conic-gradient(#2a3242 0 25%, #1d2330 0 50%) 0 0 / 22px 22px;
}
.bge-stage canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; image-rendering: auto; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.modal-btns { display: flex; gap: 10px; }
@media (max-width: 900px) {
  .modal { padding: 8px; }
  .modal-card { padding: 12px; }
  .bge-actions { margin-left: 0; }
  .modal-foot .sub { display: none; }
}

/* ---------- Glow / Emissive ---------- */
.glow-card { margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--ink2); border: 2px solid var(--edge); }
.glow-switch { margin: 0; font-weight: 700; color: var(--bright); }
.tag-rbx { font: 800 10px var(--f-body); letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; color: var(--sky); background: rgba(90,168,255,0.12); }
#glowOpts { margin-top: 14px; }
.glow-card:not(.on) #glowOpts { display: none; }
#glowOpts[data-mode="bright"] .glow-only-color, #glowOpts[data-mode="color"] .glow-only-bright,
#glowOpts[data-mode="all"] .glow-only-color, #glowOpts[data-mode="all"] .glow-only-bright { display: none; }
.glow-pick { display: flex; align-items: center; gap: 10px; }
.glow-pick input[type=color] { width: 64px; flex: none; }
.glow-pick .hint { margin: 0; }
.glow-preview { border-radius: 12px; overflow: hidden; border: 2px solid var(--edge); background: #07090d; cursor: crosshair; margin-bottom: 10px; }
.glow-preview canvas { display: block; width: 100%; height: auto; }
.glow-cov { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.glow-cov b { color: var(--bright); }
.glow-bar { height: 8px; margin: 6px 0 8px; border-radius: 99px; background: var(--ink3); overflow: hidden; }
.glow-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--mint); transition: width .2s, background .2s; }
.glow-bar i.warn { background: var(--amber); } .glow-bar i.bad { background: var(--red); }
.glow-warn { margin: 0 0 12px; font-size: 12px; line-height: 1.45; color: var(--mint); }
.glow-warn.warn { color: var(--amber); } .glow-warn.bad { color: var(--red); }
.glow-warn:empty { display: none; }
.glow-res { margin: -2px 0 8px; font-size: 11.5px; }
.glow-res:empty { display: none; }
.anim-pill button { padding: 0 7px; }
.anim-pill svg { width: 17px; height: 17px; }
.vp-pill[hidden] { display: none; }
.mat-card { padding: 14px 14px 2px; border-radius: 16px; background: var(--ink2); border: 2px solid var(--edge); }
.mat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mat-head b { display: block; color: var(--bright); font: 800 14px var(--f-body); }
.mat-head small { color: var(--dim); font-size: 12px; }
.mat-ball { width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff 0, #ffb36b 22%, #ff7a1a 55%, #8a3a06 100%);
  box-shadow: 0 3px 0 var(--drop), inset 0 -3px 6px rgba(0,0,0,.35); }

/* ---------- Riwayat pesanan (panel samping) ---------- */
.orders-btn { position: relative; }
.orders-btn .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: inline-grid; place-items: center;
  font: 800 10.5px var(--f-body); color: #1a0e04; background: var(--orange); }

.drawer { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: flex-end; background: rgba(5,7,10,0.6); backdrop-filter: blur(4px);
  animation: drawerFade .18s ease-out; }
.drawer[hidden] { display: none; }
.drawer-panel { width: min(480px, 100%); height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 20px 20px 14px;
  background: var(--card); border-left: 2px solid var(--edge); box-shadow: -12px 0 40px rgba(0,0,0,0.45); animation: drawerIn .22s cubic-bezier(.2,.8,.2,1); }
@keyframes drawerFade { from { opacity: 0; } }
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } }

.ord-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ord-title { display: flex; align-items: center; gap: 12px; }
.ord-title h2 { margin: 0; font-size: 19px; }
.ord-title .sub { margin: 1px 0 0; font-size: 12.5px; }
.ord-title-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  color: #1a0e04; background: var(--orange); box-shadow: 0 3px 0 var(--orange-deep); }
.ord-title-ico svg { width: 21px; height: 21px; }

.ord-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--edge); border-radius: 12px; background: var(--ink2); }
.ord-stats > div { padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ord-stats > div + div { border-left: 2px solid var(--edge); }
.ord-stats span { font: 800 9.5px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.ord-stats b { font: 800 15px var(--f-head); color: var(--bright); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ord-stats[hidden], .ord-filter[hidden] { display: none; }

.ord-filter { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: var(--ink2); border: 2px solid var(--edge); }
.ord-filter button { flex: 1; justify-content: center; border: 0; background: transparent; color: var(--muted); padding: 6px 8px; border-radius: 8px; font: 700 12px var(--f-body); display: flex; align-items: center; gap: 6px; }
.ord-filter button i { font-style: normal; font-size: 10.5px; min-width: 18px; padding: 0 5px; border-radius: 99px; background: rgba(255,255,255,0.07); color: var(--text); }
.ord-filter button:hover { color: var(--bright); }
.ord-filter button.on { color: #1a0e04; background: var(--orange); }
.ord-filter button.on i { background: rgba(0,0,0,0.18); color: #1a0e04; }

.orders-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior: contain;
  margin: 0 -20px; padding: 0 20px 8px;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent); }
.orders-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
.orders-scroll.at-end { -webkit-mask-image: none; mask-image: none; }

.ord-list { display: flex; flex-direction: column; gap: 8px; }
.ord-day { position: sticky; top: 0; z-index: 1; padding: 6px 2px; margin-bottom: -2px; background: var(--card);
  font: 800 10.5px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.ord-day:not(:first-child) { margin-top: 6px; }

.ord { border-radius: 14px; background: var(--ink2); border: 2px solid var(--edge); padding: 10px 12px; transition: border-color .15s; }
.ord:hover { border-color: #2c3546; }
.ord-main { display: flex; align-items: center; gap: 12px; }
.ord-thumb { width: 42px; height: 42px; flex: none; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
  color: var(--orange-hi); background: #0b0e14; border: 1.5px solid var(--edge); }
.ord-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ord-thumb svg { width: 20px; height: 20px; }
.ord-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ord-line1 { display: flex; align-items: baseline; gap: 8px; }
.ord-line1 b { color: var(--bright); font: 700 13.5px var(--f-body); white-space: nowrap; }
.ord-price { color: var(--orange-hi); font: 800 12px var(--f-body); font-variant-numeric: tabular-nums; }
.ord-line2 { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 11.5px; min-width: 0; }
.ord-line2 .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); flex: none; }
.ord-id { display: inline-flex; align-items: center; gap: 5px; min-width: 0; padding: 1px 5px; margin-left: -5px; border: 0; border-radius: 6px; background: transparent; color: var(--dim); }
.ord-id code { font: 500 11px ui-monospace, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-id svg { width: 12px; height: 12px; flex: none; opacity: .6; }
.ord-id:hover { color: var(--bright); background: rgba(255,255,255,0.05); }
.ord-id.copied { color: var(--mint); }
.ord-id.copied::after { content: 'Tersalin'; font: 700 10.5px var(--f-body); }

.ord-st { flex: none; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font: 700 10.5px var(--f-body);
  color: var(--amber); background: rgba(255,194,61,0.1); }
.ord-st i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ord-st.paid { color: var(--mint); background: rgba(52,227,164,0.1); }
.ord-st.failed { color: var(--red); background: rgba(255,93,108,0.1); }
.ord-st.pending i { animation: ordPulse 1.4s ease-in-out infinite; }
@keyframes ordPulse { 50% { opacity: .3; } }

.ord-body { margin: 10px 0 0 54px; }
.ord-files { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ord-file { display: flex; align-items: center; justify-content: center; gap: 5px; height: 30px; padding: 0 6px; border-radius: 8px; text-decoration: none; min-width: 0;
  background: var(--card); border: 1.5px solid var(--edge); color: var(--muted); transition: .15s; }
.ord-file svg { width: 13px; height: 13px; flex: none; }
.ord-file b { font: 800 11.5px var(--f-body); letter-spacing: .03em; }
.ord-file b.glb { color: #ff9a4a; } .ord-file b.obj { color: #6fb6ff; } .ord-file b.fbx { color: #ff7ac0; } .ord-file b.stl { color: #3fe3a8; }
.ord-file small { font-size: 10.5px; color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ord-file:hover { border-color: var(--orange); color: var(--orange-hi); background: rgba(255,138,43,0.08); }
.ord-file:active { transform: translateY(1px); }

.ord-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ord-actions .btn-sm2 { padding: 6px 10px; font-size: 12px; box-shadow: 0 2px 0 var(--drop); }
.ord-note { flex: 1 1 100%; color: var(--muted); font-size: 12px; }
.ord.failed .ord-note { flex: 1; }
.ord-more { display: block; width: 100%; margin-top: 10px; }
.ord-more[hidden] { display: none; }

.orders-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px 16px; text-align: center; color: var(--dim); }
.orders-empty svg { width: 44px; height: 44px; margin-bottom: 4px; }
.orders-empty b { color: var(--text); font-size: 15px; }
.orders-empty p { margin: 0; max-width: 300px; font-size: 13px; }
.orders-empty[hidden] { display: none; }
.ord-foot { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 2px solid var(--edge); color: var(--dim); font-size: 11.5px; }
.ord-foot svg { width: 14px; height: 14px; flex: none; }

@media (max-width: 520px) {
  .ws-brand .sub { display: none; }
  .orders-btn span { display: none; }
  .drawer-panel { padding: 16px 12px 12px; border-left: 0; width: 100%; }
  .orders-scroll { margin: 0 -12px; padding: 0 12px 8px; }
  .ord-body { margin-left: 0; }
  .ord-file small { display: none; }
  .bge-stage { height: min(240px, 35vh); }
  .xyz-row { grid-template-columns: 46px repeat(3, 1fr); gap: 3px; }
  .ax input { padding: 6px 3px 6px 15px; font-size: 11.5px; }
}
.ord-file.off { opacity: .35; cursor: not-allowed; }
.ord-file.off:hover { border-color: var(--edge); background: var(--card); color: var(--muted); }

/* Hapus semua riwayat */
.ord-foot span { flex: 1; }
.ord-clear { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 1.5px solid rgba(255,93,108,0.3);
  background: rgba(255,93,108,0.08); color: var(--red); font: 700 11.5px var(--f-body); }
.ord-clear svg { width: 14px; height: 14px; }
.ord-clear:hover { background: rgba(255,93,108,0.16); border-color: var(--red); }
.ord-clear[hidden] { display: none; }

/* Seret file ke mana saja */
.drag-overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px;
  background: rgba(8,10,14,0.72); backdrop-filter: blur(6px); pointer-events: none; animation: drawerFade .15s ease-out; }
.drag-overlay[hidden] { display: none; }
.drag-box { width: min(560px, 100%); padding: 48px 24px; border-radius: 24px; border: 3px dashed var(--orange);
  background: rgba(255,138,43,0.06); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.drag-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #1a0e04; background: var(--orange);
  box-shadow: 0 5px 0 var(--orange-deep); animation: dragBob 1s ease-in-out infinite; }
.drag-ico svg { width: 32px; height: 32px; }
.drag-box b { font: 800 22px var(--f-head); color: var(--bright); }
.drag-box small { color: var(--muted); font-size: 13px; }
@keyframes dragBob { 50% { transform: translateY(-6px); } }

/* ================================================================
   TUTORIAL ACTION BUTTONS & VIDEO POPUP MODAL
   ================================================================ */
.landing-tut-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.btn-tut-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 8px 18px;
  border-radius: 99px;
  font: 700 13px var(--f-body, 'Plus Jakarta Sans', sans-serif);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}
.btn-tut-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 138, 43, 0.5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 138, 43, 0.18);
}
.tut-icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.btn-tut-pill:hover .tut-icon-circle {
  transform: scale(1.1);
}
.tut-icon-circle.play {
  background: rgba(255, 138, 43, 0.15);
  border: 1px solid rgba(255, 138, 43, 0.4);
  color: #ff8a2b;
}
.tut-icon-circle.upload {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
}

/* Modal Popup */
.tut-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.tut-modal-overlay.active {
  display: flex;
  opacity: 1;
}
.tut-modal-card {
  width: 100%;
  max-width: 760px;
  background: #0d111a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.tut-modal-overlay.active .tut-modal-card {
  transform: translateY(0) scale(1);
}
.tut-modal-header {
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.tut-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tut-header-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 138, 43, 0.2), rgba(255, 138, 43, 0.05));
  border: 1px solid rgba(255, 138, 43, 0.3);
  color: #ff8a2b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tut-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.18s;
}
.tut-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  transform: rotate(90deg);
}

/* Tabs */
.tut-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  gap: 8px;
}
.tut-tab-item {
  padding: 11px 16px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font: 700 13px var(--f-body, sans-serif);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tut-tab-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.tut-tab-item.active {
  background: rgba(255, 138, 43, 0.14);
  border-color: rgba(255, 138, 43, 0.35);
  color: #ff9d47;
  box-shadow: 0 2px 8px rgba(255, 138, 43, 0.15);
}

/* Video Stage */
.tut-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tut-stage iframe, .tut-stage video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Empty Video State */
.tut-empty-state {
  padding: 40px 24px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.tut-empty-icon {
  font-size: 42px;
  margin-bottom: 12px;
  opacity: 0.85;
}
.tut-empty-title {
  font: 800 18px var(--f-head, sans-serif);
  color: #fff;
  margin-bottom: 6px;
}
.tut-empty-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

/* Summary Footer */
.tut-summary {
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.55;
}
.tut-summary-steps {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.tut-step-item {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
}
.tut-step-item b {
  color: #ff9d47;
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

@media (max-width: 600px) {
  .landing-tut-actions { flex-direction: column; width: 100%; }
  .btn-tut-pill { width: 100%; justify-content: center; }
  .tut-tabs { grid-template-columns: 1fr; }
  .tut-summary-steps { flex-direction: column; gap: 8px; }
  .tut-modal-card { border-radius: 18px; }
}

/* ================================================================
   STUDIO TATTOO ROBLOX (CLASSIC SHIRT & CLASSIC PANTS 585x559)
   ================================================================ */
body[data-studio="tattoo"] #sec-settings-3d,
body[data-studio="tattoo"] #right-3d-wrap {
  display: none !important;
}
body:not([data-studio="tattoo"]) #tattooSidebar,
body:not([data-studio="tattoo"]) #right-tattoo-wrap {
  display: none !important;
}

.btn-tattoo {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #f8fafc;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 4px 0 #020617, 0 12px 26px rgba(14, 165, 233, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.btn-tattoo:hover {
  border-color: rgba(56, 189, 248, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #020617, 0 16px 32px rgba(14, 165, 233, 0.28);
}
.btn-tattoo .new-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: 99px;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #06131f;
}

.tut-icon-circle.tattoo {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

/* Switcher pill di header workspace */
.studio-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(8, 11, 17, 0.78);
  border: 1px solid var(--edge);
  margin-left: 4px;
}
.studio-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 700 12px var(--f-body);
  padding: 6px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: 0.16s ease;
  white-space: nowrap;
}
.studio-switch button:hover:not(:disabled) {
  color: var(--bright);
  background: rgba(255, 255, 255, 0.05);
}
.studio-switch button.on,
.studio-switch button.active {
  background: var(--orange);
  color: #1c0f03;
  box-shadow: 0 2px 8px rgba(255, 138, 43, 0.32);
}
.studio-switch button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Skin tone swatches */
.tat-skin-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tat-skin-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
.tat-skin-btn,
.tat-skin-dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 99px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.tat-skin-btn:hover,
.tat-skin-dot:hover { transform: scale(1.1); }
.tat-skin-btn.on,
.tat-skin-dot.active {
  border-color: var(--orange-hi);
  box-shadow: 0 0 0 2px rgba(255, 138, 43, 0.35);
}
.tat-skin-row input[type="color"] {
  width: 30px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.tat-dz {
  min-height: 76px;
  padding: 12px;
}

.tat-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 10px;
  margin: 10px 0;
}
.tat-text-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin-top: 6px;
}
.tat-text-row input {
  grid-column: 1 / -1;
}
.tat-text-row select {
  width: 100%;
}

/* Layer list (Panel Kanan Studio Tattoo) */
.tat-layers-panel {
  padding: 15px 16px;
}
.tat-layers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
}
.tat-layers-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}
.tat-clear-btn {
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 11px;
  color: var(--red);
  background: rgba(255, 93, 108, 0.08);
  border: 1px solid rgba(255, 93, 108, 0.25);
}
.tat-clear-btn:hover {
  color: #fff;
  background: rgba(255, 93, 108, 0.22);
}
.tat-layer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 210px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--edge2) transparent;
}
.tat-layer-empty {
  padding: 14px;
  border: 1px dashed var(--edge);
  border-radius: 10px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
}
.tat-layer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid var(--edge);
  background: rgba(15, 20, 29, 0.72);
  cursor: pointer;
  transition: 0.15s ease;
}
.tat-layer-item:hover {
  border-color: rgba(255, 255, 255, 0.22);
}
.tat-layer-item.active {
  border-color: var(--orange);
  background: rgba(255, 138, 43, 0.09);
}
.tat-layer-item.is-hidden {
  opacity: 0.48;
}
.tat-layer-item canvas {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: repeating-conic-gradient(#1f2937 0% 25%, #111827 0% 50%) 50% / 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.tat-layer-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tat-layer-meta b {
  font-size: 12px;
  color: var(--bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tat-layer-meta small {
  font-size: 10.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.tat-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 5px;
  letter-spacing: 0.4px;
}
.tat-tag.shirt {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
}
.tat-tag.pants {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
}
.tat-layer-acts {
  display: flex;
  gap: 3px;
}
.tat-layer-acts button {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.tat-layer-acts button:hover:not(:disabled) {
  color: var(--bright);
  border-color: rgba(255, 255, 255, 0.18);
}
.tat-layer-acts button:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}
.tat-layer-acts button.del:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
}

/* Edit & UV Tab */
.tat-empty-edit {
  padding: 22px 14px;
  border-radius: 12px;
  border: 1px dashed var(--edge);
  text-align: center;
}
.tat-empty-edit b {
  display: block;
  color: var(--bright);
  margin-bottom: 6px;
}
.tat-quick-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
#tatMirrorLimbBtn {
  grid-column: 1 / -1;
}
.tat-quick-btns .btn.on {
  border-color: var(--orange);
  background: rgba(255, 138, 43, 0.14);
  color: var(--orange-hi);
}
.tat-empty-layers {
  padding: 16px 12px;
  border: 1.5px dashed var(--edge2);
  border-radius: 12px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
}
.tat-ink-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tat-ink-row input[type="color"] {
  width: 34px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.ws-left, .ws-right {
  overflow-x: hidden;
}
.tat-uv-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 10px;
}
.tat-uv-bar .chips button {
  padding: 7px 10px;
  font-size: 12px;
}
.tat-uv-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tat-uv-dim {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.tat-uv-checks {
  display: flex;
  gap: 10px;
}
.tat-uv-stage {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--edge);
  background: #141923;
}
#tatUvCanvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: grab;
  touch-action: none;
}
#tatUvCanvas:active { cursor: grabbing; }

/* Right Sidebar Layout Harmony (Logo 3D & Studio Tattoo) */
#right-3d-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-width: 0;
}
#right-tattoo-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding-bottom: 6px;
}
#right-tattoo-wrap .tat-layers-panel {
  flex: 1;
  min-height: 130px;
  display: flex;
  flex-direction: column;
}
.tat-opacity-bar {
  padding: 9px 11px 7px;
  margin-bottom: 10px;
  border-radius: 11px;
  background: var(--ink2);
  border: 1.5px solid var(--edge);
}
.tat-opacity-bar[hidden] { display: none; }
.tat-opacity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.tat-opacity-head output {
  font: 800 11.5px var(--f-body);
  color: var(--orange-hi);
  font-variant-numeric: tabular-nums;
}
.tat-opacity-bar input[type="range"] {
  margin: 0;
  height: 20px;
}
.tat-part-lbl {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tat-op-pill {
  flex: none;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 138, 43, 0.14);
  color: var(--orange-hi);
  font-variant-numeric: tabular-nums;
}
#right-tattoo-wrap .tat-layer-list {
  flex: 1;
  min-height: 0;
  max-height: none;
}
.tat-export-bar {
  padding: 12px 14px 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.tat-export-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tat-export-pills {
  display: flex;
  gap: 5px;
}
.tat-mini-pill {
  font: 800 10px var(--f-body);
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--edge2);
  background: var(--ink2);
  color: var(--dim);
  opacity: 0.55;
  transition: 0.15s;
}
.tat-mini-pill.ready {
  opacity: 1;
}
.tat-mini-pill.ready[data-fmt-mini="shirt_png"] { color: #7dd3fc; border-color: rgba(56, 189, 248, 0.45); background: rgba(56, 189, 248, 0.1); }
.tat-mini-pill.ready[data-fmt-mini="pants_png"] { color: #d8b4fe; border-color: rgba(192, 132, 252, 0.45); background: rgba(192, 132, 252, 0.1); }
.tat-mini-pill.ready[data-fmt-mini="tattoo_zip"] { color: #6ee7b7; border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.1); }

/* Modal Export & Checkout Studio Tattoo */
.tat-dl-modal[hidden] { display: none; }
.tat-dl-card {
  width: min(440px, 100%);
  height: auto !important;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 20px !important;
  gap: 16px !important;
}
.tat-dl-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tat-dl-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ink2);
  border: 1px solid var(--edge);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.tat-dl-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tat-dl-body .rings { margin-bottom: 0; }
.tat-dl-body .pay-note { margin-top: 2px; }
.tat-dl-body .tat-fee-note { margin-top: 0; }
.ws-right .stats > .stat {
  min-width: 0;
  overflow: hidden;
}
#right-tattoo-wrap .stat {
  padding: 15px 14px;
}
#right-tattoo-wrap .stat-h {
  font-size: 12px;
  white-space: nowrap;
}
#right-tattoo-wrap .stat-h span {
  overflow: hidden;
  text-overflow: ellipsis;
}
#right-tattoo-wrap .stat-v {
  font-size: 21px;
  margin: 7px 0 5px;
  line-height: 1.15;
}
#right-tattoo-wrap .stat-d {
  font-size: 11.5px;
}
#sec-buy-tattoo .sub.small {
  margin: 0 0 14px;
  line-height: 1.5;
}
.tat-fee-note {
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--ink2);
  border: 1px solid var(--edge);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.tat-fee-note svg {
  color: var(--amber);
  flex: none;
  margin-top: 1px;
}

/* Rings & Order History untuk Tattoo */
.rings.rings-3 {
  grid-template-columns: repeat(3, 1fr);
}
.rings.rings-3 .ring {
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  opacity: 0.45;
  transition: opacity 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}
.rings.rings-3 .ring span {
  font: 800 13px var(--f-head);
  letter-spacing: 0.05em;
  line-height: 1;
}
.rings.rings-3 .ring small {
  font: 700 9.5px var(--f-body);
  color: var(--muted);
  letter-spacing: 0.03em;
  line-height: 1;
}
.rings.rings-3 .ring.ready {
  opacity: 1;
  color: var(--bright);
}
.rings.rings-3 .ring.ready[data-fmt="shirt_png"] {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.09);
  color: #7dd3fc;
}
.rings.rings-3 .ring.ready[data-fmt="pants_png"] {
  border-color: rgba(192, 132, 252, 0.55);
  background: rgba(192, 132, 252, 0.09);
  color: #d8b4fe;
}
.rings.rings-3 .ring.ready[data-fmt="tattoo_zip"] {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(52, 211, 153, 0.09);
  color: #6ee7b7;
}
.rings.rings-3 .ring.ready small {
  color: rgba(255, 255, 255, 0.72);
}
.ring.paid[data-fmt="shirt_png"] { border-color: #38bdf8; color: #38bdf8; background: rgba(56, 189, 248, 0.14); opacity: 1; }
.ring.paid[data-fmt="pants_png"] { border-color: #c084fc; color: #c084fc; background: rgba(192, 132, 252, 0.14); opacity: 1; }
.ring.paid[data-fmt="tattoo_zip"] { border-color: #34d399; color: #34d399; background: rgba(52, 211, 153, 0.14); opacity: 1; }

.ord-files.ord-files-3 {
  grid-template-columns: repeat(3, 1fr);
}
.ord-file b.shirt_png { color: #38bdf8; }
.ord-file b.pants_png { color: #c084fc; }
.ord-file b.tattoo_zip { color: #34d399; }

.tag-dev {
  font: 800 10.5px var(--f-body);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #34d399;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
}
.price.free,
.ord-price.free {
  color: #34d399;
}
.tut-empty-icon {
  display: inline-grid;
  place-items: center;
  color: var(--orange-hi);
  margin-bottom: 12px;
  opacity: 0.9;
}

/* Custom Dark Dropdown (Pengganti popup select OS putih) */
.fl-select-wrap {
  position: relative;
  width: 100%;
}
.uv-tools .fl-select-wrap {
  flex: 1;
  min-width: 0;
}
.fl-select-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.fl-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 2px solid var(--edge);
  background: var(--ink2);
  color: var(--bright);
  font: 600 13px var(--f-body);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.uv-tools .fl-select-btn {
  height: 30px;
  padding: 0 9px;
  border-radius: 9px;
  border-color: var(--edge2);
  font-size: 12px;
}
.fl-select-btn:hover {
  border-color: var(--edge2);
  background: #191f2a;
}
.fl-select-btn.open,
.fl-select-btn:focus-visible {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 138, 43, 0.16);
}
.fl-select-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fl-select-arrow {
  flex: none;
  color: var(--muted);
  transition: transform 0.18s ease, color 0.15s;
}
.fl-select-btn.open .fl-select-arrow {
  transform: rotate(180deg);
  color: var(--orange-hi);
}
.fl-select-menu {
  position: fixed;
  z-index: 980;
  padding: 6px;
  border-radius: 13px;
  border: 2px solid var(--edge2);
  background: #121721;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--edge2) transparent;
  animation: flDropIn 0.14s cubic-bezier(0.16, 1, 0.3, 1);
}
.fl-select-menu::-webkit-scrollbar { width: 6px; }
.fl-select-menu::-webkit-scrollbar-thumb { background: var(--edge2); border-radius: 6px; }
@keyframes flDropIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.fl-select-group {
  padding: 7px 9px 4px;
  font: 800 10px var(--f-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-hi);
  opacity: 0.9;
}
.fl-select-group:not(:first-child) {
  margin-top: 5px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.fl-select-opt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: 600 12.5px var(--f-body);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.fl-select-opt:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--bright);
}
.fl-select-opt.selected {
  background: rgba(255, 138, 43, 0.16);
  color: #ffb878;
  font-weight: 700;
}
.fl-select-opt svg {
  flex: none;
  color: var(--orange);
  opacity: 0;
}
.fl-select-opt.selected svg {
  opacity: 1;
}

.viewport,
.viewport canvas,
#tatUvCanvas,
#uvEditor canvas,
#glowCanvas,
.watermark {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

input.inp-invalid {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(255, 93, 108, 0.2) !important;
}
.tat-dl-err {
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 93, 108, 0.12);
  border: 1px solid rgba(255, 93, 108, 0.45);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 600;
}
.tat-dl-err[hidden] { display: none; }

.att-badge {
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255, 138, 43, 0.09);
  border: 1px solid rgba(255, 138, 43, 0.25);
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}
.att-badge b { color: var(--orange-hi); font-family: var(--f-mono, monospace); font-size: 10.8px; }
.mat-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mat-color-row .chips { flex: 1; }
.mat-color-row input[type="color"] {
  width: 32px;
  height: 28px;
  flex: none;
  padding: 2px;
  border-radius: 7px;
}

.pay-terms-modal {
  z-index: 650;
}
.pay-terms-card {
  max-width: 460px;
  width: calc(100% - 28px);
}
.pay-terms-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.pay-terms-list {
  margin: 14px 0 0;
  padding: 12px 14px 12px 30px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--edge);
  color: var(--text);
  font-size: 12.8px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pay-terms-list li b {
  color: var(--bright);
}
.tat-rbx-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}
.tat-rbx-row input { flex: 1; min-width: 0; font-size: 11.5px; }
.tat-rbx-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.28);
  font-size: 11px;
  color: #86efac;
  font-weight: 600;
}
.tat-rbx-badge[hidden] { display: none; }
.tat-rbx-badge img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(0,0,0,0.35);
}
.tat-outfit-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tat-outfit-row .chips { flex: 1; }
.tat-outfit-row input[type="color"] {
  width: 30px;
  height: 28px;
  flex: none;
  padding: 2px;
  border-radius: 7px;
}
.tat-outline-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tat-outline-row input[type="range"] { flex: 1; }
.tat-outline-row input[type="color"] {
  width: 30px;
  height: 26px;
  flex: none;
  padding: 2px;
  border-radius: 7px;
}

@media (max-width: 900px) {
  .studio-switch {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    margin: 2px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 3px;
  }
  .studio-switch button {
    width: 100%;
    padding: 7px 8px;
    font-size: 12px;
    text-align: center;
  }
  #right-tattoo-wrap {
    height: auto;
  }
  #right-tattoo-wrap .tat-layers-panel {
    flex: none;
  }
  #right-tattoo-wrap .tat-layer-list {
    max-height: 220px;
  }
  .tat-layer-acts {
    gap: 2px;
  }
  .tat-layer-acts button {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 520px) {
  .studio-switch button { padding: 6px 6px; font-size: 11.5px; }
  .tat-dl-card { padding: 15px !important; }
  .tat-layer-item { flex-wrap: wrap; gap: 6px; }
  .tat-layer-acts { margin-left: auto; }
  .hint-float { bottom: 48px; padding: 7px 12px; font-size: 11.5px; }
}
