/* VICESTUDIO 6 · styles.css */
:root {
  --bg: #0b0716;
  --bg2: #140b29;
  --panel: rgba(28, 16, 56, 0.55);
  --panel-solid: #1a0f35;
  --line: rgba(255, 255, 255, 0.09);
  --line2: rgba(255, 255, 255, 0.16);
  --text: #f4ecff;
  --muted: #a99bc9;
  --pink: #ff2a85;
  --cyan: #00f0ff;
  --gold: #ffb800;
  --violet: #a46bff;
  --green: #3ddc84;
  --red: #ff4d6d;
  --radius: 18px;
  --display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --ui: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Share Tech Mono', ui-monospace, 'Consolas', monospace;
  --glow-pink: 0 0 18px rgba(255, 42, 133, 0.55);
  --glow-cyan: 0 0 18px rgba(0, 240, 255, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--cyan); }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; }
.gap { gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- Background ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(255, 42, 133, 0.18), transparent 60%),
              radial-gradient(900px 500px at 0% 10%, rgba(0, 240, 255, 0.10), transparent 60%),
              linear-gradient(180deg, #0b0716 0%, #120827 55%, #0b0716 100%); }
.bg-sun { position: absolute; left: 50%; bottom: 18vh; width: 70vmin; height: 70vmin; transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 184, 0, 0.22), rgba(255, 42, 133, 0.12) 60%, transparent);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px);
          mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px);
  filter: blur(1px); opacity: .7; }
.bg-grid { position: absolute; left: -50%; right: -50%; bottom: -10vh; height: 45vh;
  background-image: linear-gradient(rgba(255, 42, 133, 0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 240, 255, 0.22) 1px, transparent 1px);
  background-size: 60px 40px; transform: perspective(500px) rotateX(62deg); transform-origin: bottom;
  -webkit-mask: linear-gradient(transparent, #000 70%); mask: linear-gradient(transparent, #000 70%);
  animation: grid 3s linear infinite; opacity: .35; }
@keyframes grid { to { background-position: 0 40px, 0 0; } }
@media (prefers-reduced-motion: reduce) { .bg-grid { animation: none; } }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px; padding: 12px clamp(14px, 3vw, 32px);
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(11, 7, 22, 0.78); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; filter: drop-shadow(0 0 10px rgba(255, 42, 133, .5)); }
.brand-text { font-family: var(--display); font-size: 24px; letter-spacing: 1px; line-height: 1; }
.brand-text i { font-style: normal; margin-left: 4px; color: var(--pink); text-shadow: var(--glow-pink); }
.vip-badge { display: none; font: 700 11px var(--ui); letter-spacing: 1.5px; padding: 3px 7px; border-radius: 6px; color: #1a0b00;
  background: linear-gradient(90deg, var(--gold), #ffe27a); box-shadow: 0 0 14px rgba(255, 184, 0, .6); }
.is-vip .vip-badge { display: inline-block; }

.tabs { display: flex; gap: 4px; flex: 1; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: flex; align-items: center; gap: 7px; white-space: nowrap; padding: 9px 14px; border-radius: 12px; border: 1px solid transparent;
  background: none; color: var(--muted); font-weight: 600; cursor: pointer; transition: .2s; }
.tab:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.tab[aria-selected="true"] { color: var(--text); background: rgba(255, 42, 133, .12); border-color: rgba(255, 42, 133, .45); box-shadow: inset 0 0 18px rgba(255, 42, 133, .15); }
.tab-ico { color: var(--cyan); font-size: 13px; }
.tab em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 2px 6px; border-radius: 6px; background: var(--green); color: #032312; }

.pro-cta { flex-shrink: 0; cursor: pointer; border: 0; border-radius: 12px; padding: 10px 16px; font-weight: 800; letter-spacing: .4px; font-size: 13px; color: #fff;
  background: linear-gradient(100deg, var(--pink), #ff5ab0 50%, var(--gold)); background-size: 200% 100%; box-shadow: var(--glow-pink);
  animation: shimmer 4s ease-in-out infinite; transition: transform .15s; }
.pro-cta:hover { transform: translateY(-1px) scale(1.02); }
@keyframes shimmer { 50% { background-position: 100% 0; } }
.pro-cta .short, .pro-cta-vip { display: none; }
.is-vip .pro-cta { background: rgba(255, 184, 0, .12); color: var(--gold); border: 1px solid rgba(255, 184, 0, .5); box-shadow: 0 0 16px rgba(255, 184, 0, .25); animation: none; cursor: default; }
.is-vip .pro-cta-free { display: none; }
.is-vip .pro-cta-vip { display: inline; }

/* ---------- Layout ---------- */
main { padding: 26px clamp(14px, 3vw, 32px) 40px; max-width: 1640px; margin: 0 auto; }
.panel { animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.panel-head { margin-bottom: 22px; max-width: 860px; }
.panel-head h1, .term-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.4vw, 52px); letter-spacing: .5px; text-transform: uppercase;
  background: linear-gradient(90deg, #fff 0%, #ffd1ea 40%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 6px 0 8px; }
.panel-head p { color: var(--muted); font-size: 16px; }
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); }
.section-title { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: .5px; text-transform: uppercase; margin: 40px 0 16px; }
.glass { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05); }
.grad { background: linear-gradient(90deg, var(--pink), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons & form ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .05); color: var(--text); font-weight: 700; cursor: pointer; text-decoration: none; transition: .15s; white-space: nowrap; }
.btn:hover:not(:disabled) { border-color: rgba(255, 255, 255, .35); transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-hot { border: 0; background: linear-gradient(100deg, var(--pink), #ff5ab0); box-shadow: var(--glow-pink); }
.btn-cyan { border: 0; color: #00262a; background: linear-gradient(100deg, var(--cyan), #7af8ff); box-shadow: var(--glow-cyan); }
.btn-gold { border: 0; color: #251700; background: linear-gradient(100deg, var(--gold), #ffd866); box-shadow: 0 0 16px rgba(255, 184, 0, .4); }
.btn-ghost { background: rgba(255, 255, 255, .03); }
.btn-big { padding: 14px 22px; font-size: 16px; letter-spacing: .5px; }
.btn-mini { padding: 6px 10px; font-size: 12px; border-radius: 9px; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 15px; }
.block-btn { width: 100%; }
.file-btn { cursor: pointer; }
.linkish { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 4px 8px; font-size: 13px; }
.linkish:hover { color: var(--text); }

input[type="text"], input[type="search"], input[type="number"], select {
  background: rgba(8, 4, 20, .7); border: 1px solid var(--line2); border-radius: 10px; padding: 9px 12px; color: var(--text); min-width: 0; }
input[type="text"]:focus, input[type="search"]:focus, input[type="number"]:focus, select:focus { border-color: var(--cyan); outline: none; box-shadow: var(--glow-cyan); }
select option { background: var(--panel-solid); }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); flex: 1; min-width: 60px; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); box-shadow: var(--glow-cyan); border: 2px solid #fff; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--cyan); border: 2px solid #fff; }
input[type="color"] { -webkit-appearance: none; appearance: none; width: 34px; height: 28px; border: 1px solid var(--line2); border-radius: 8px; background: none; padding: 2px; cursor: pointer; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 5px; }
input:disabled, select:disabled { opacity: .45; cursor: not-allowed; }

.slider { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-weight: 600; margin: 8px 0; }
.slider b { color: var(--text); min-width: 34px; text-align: right; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 600; }
.color { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.hint { font-size: 12px; color: var(--muted); margin: 8px 2px 4px; }
.status { font-size: 13px; color: var(--muted); }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { position: relative; width: 40px; height: 22px; border-radius: 22px; background: rgba(255, 255, 255, .14); transition: .2s; flex-shrink: 0; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--pink); box-shadow: var(--glow-pink); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.switch.small { font-size: 13px; font-weight: 600; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: .15s; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .35); }
.chip.on { color: var(--text); background: rgba(0, 240, 255, .12); border-color: var(--cyan); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); margin: 12px 0; }
.seg-btn { border: 0; background: none; color: var(--muted); border-radius: 10px; padding: 9px 8px; font-weight: 700; font-size: 13px; cursor: pointer; line-height: 1.25; }
.seg-btn small { font-weight: 500; opacity: .8; }
.seg-btn.on { background: linear-gradient(100deg, rgba(255, 42, 133, .35), rgba(0, 240, 255, .2)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }

.pro-pill { font-size: 10px; font-weight: 900; letter-spacing: 1px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .3); }
.is-vip .pro-pill { display: none; }
.lock-tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .5px; color: var(--gold); cursor: pointer; padding: 3px 8px; border-radius: 8px; border: 1px dashed rgba(255, 184, 0, .5); }
.is-vip .lock-tag { display: none; }
.pro-only { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.dot-cyan { background: var(--cyan); box-shadow: var(--glow-cyan); }
.dot-pink { background: var(--pink); box-shadow: var(--glow-pink); }
.dot-gold { background: var(--gold); }

/* ---------- Clipper ---------- */
.clipper-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr) minmax(260px, .75fr); gap: 18px; align-items: start; }
.col-source, .col-overlays { padding: 18px; }
.dropzone { position: relative; margin-top: 14px; border-radius: 14px; overflow: hidden; border: 1px dashed rgba(0, 240, 255, .35); background: #06030d; aspect-ratio: 16 / 9; }
.dropzone.drag { border-color: var(--pink); box-shadow: var(--glow-pink); }
#srcCanvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#srcCanvas.grabbing { cursor: grabbing; }
.dropzone-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px; pointer-events: none; }
.dropzone-empty b { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: .5px; text-transform: uppercase; }
.dropzone-empty span { color: var(--muted); font-size: 14px; }
.transport { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.transport .mono { font-size: 13px; color: var(--muted); min-width: 96px; text-align: center; }
.trim { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.trim input { width: 82px; margin: 0 4px; padding: 6px 8px; }
.crop-sets { display: grid; gap: 12px; }
.crop-set { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 6px; margin: 0; background: rgba(0, 0, 0, .18); }
.crop-set legend { font-weight: 800; font-size: 13px; padding: 0 6px; display: flex; align-items: center; }
.crop-set .chips { margin: 4px 0 6px; }

.col-output { display: flex; flex-direction: column; gap: 14px; align-items: center; position: sticky; top: 86px; }
.phone { position: relative; width: 100%; max-width: 360px; aspect-ratio: 9 / 16; border-radius: 30px; padding: 10px; background: linear-gradient(160deg, #2a1a52, #0e0820);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px rgba(0, 0, 0, .55), 0 0 60px rgba(255, 42, 133, .18); }
#outCanvas { display: block; width: 100%; height: 100%; border-radius: 22px; background: #000; }
.export-box { width: 100%; max-width: 360px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.progress { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--gold)); box-shadow: var(--glow-pink); transition: width .2s linear; }
.export-done { display: flex; flex-direction: column; gap: 8px; }
.export-done video { width: 100%; border-radius: 12px; background: #000; max-height: 320px; }

.col-overlays h3 { font-family: var(--display); font-weight: 400; font-size: 24px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.col-overlays h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--cyan); margin-bottom: 8px; }
.ov { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.ov:last-of-type { border-bottom: 0; }
.ov input[type="text"] { width: 100%; }
.wm-note { margin-top: 10px; padding: 12px; border-radius: 12px; font-size: 13px; color: var(--muted); background: rgba(255, 42, 133, .08); border: 1px solid rgba(255, 42, 133, .3); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.is-vip .wm-note { display: none; }

/* ---------- Vault ---------- */
.vault-top { display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; }
.spinner, .generator { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.spinner h3, .generator h3 { font-family: var(--display); font-weight: 400; font-size: 24px; text-transform: uppercase; letter-spacing: .5px; }
.spin-window { position: relative; min-height: 150px; border-radius: 14px; padding: 18px; background: linear-gradient(160deg, rgba(255, 42, 133, .14), rgba(0, 240, 255, .08)); border: 1px solid rgba(255, 255, 255, .12); overflow: hidden; }
.spin-window.spinning .spin-hook { filter: blur(1.5px); opacity: .8; }
.spin-window.locked .spin-hook, .spin-window.locked .spin-title { filter: blur(7px); user-select: none; }
.spin-cat { font: 800 11px var(--ui); letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); }
.spin-hook { font-family: var(--display); font-size: clamp(20px, 2.3vw, 28px); line-height: 1.15; margin-top: 8px; text-transform: uppercase; }
.spin-title { color: var(--muted); margin-top: 8px; font-size: 14px; }
.spin-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.gen-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gen-slots label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--gold); }
.gen-slots .slot-row { display: flex; gap: 4px; }
.gen-slots input { flex: 1; width: 100%; }
.gen-slots button { border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); border-radius: 9px; cursor: pointer; padding: 0 8px; }
.gen-out { padding: 14px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); }
.gen-out .label { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: var(--cyan); text-transform: uppercase; }
.gen-out p { font-weight: 700; font-size: 17px; margin: 2px 0 10px; }
.gen-out p:last-child { margin-bottom: 0; font-weight: 500; color: #e3d6ff; font-size: 15px; }
.gen-script { border-radius: 12px; border: 1px solid rgba(255, 184, 0, .35); background: rgba(255, 184, 0, .06); padding: 14px; }

.vault-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 28px 0 16px; }
.vault-filters input { flex: 1 1 280px; }
.vault-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.hook-card { position: relative; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: .15s; }
.hook-card:hover { border-color: rgba(255, 255, 255, .22); }
.hook-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.hook-num { font-family: var(--mono); color: var(--muted); }
.hook-text { font-weight: 800; font-size: 17px; line-height: 1.3; }
.hook-title { color: var(--muted); font-size: 14px; }
.hook-title b { color: #d8c8ff; font-weight: 600; }
.hook-actions { display: flex; gap: 6px; margin-top: auto; }
.locked-zone { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.locked-zone .hook-card { filter: blur(6px); user-select: none; pointer-events: none; opacity: .75; }
.lock-overlay { position: absolute; inset: 0; z-index: 2; display: flex; justify-content: center; align-items: flex-start; padding-top: 60px; background: linear-gradient(180deg, rgba(11, 7, 22, .15), rgba(11, 7, 22, .55)); border-radius: 16px; }
.lock-card { position: sticky; top: 110px; text-align: center; max-width: 440px; padding: 26px; border-radius: 20px; background: rgba(20, 11, 41, .92); border: 1px solid rgba(255, 184, 0, .45); box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 40px rgba(255, 42, 133, .25); }
.lock-card .lock-ico { font-size: 34px; }
.lock-card h3 { font-family: var(--display); font-weight: 400; font-size: 26px; text-transform: uppercase; margin: 6px 0 8px; }
.lock-card p { color: var(--muted); margin-bottom: 16px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 30px; }

.script-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.script-card { position: relative; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.script-card h4 { font-size: 17px; margin: 6px 0 10px; }
.script-card.locked .beats, .script-card.locked h4 { filter: blur(6px); user-select: none; }
.script-card .script-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.beats { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.beats li { display: grid; grid-template-columns: 62px 1fr; gap: 10px; font-size: 14px; }
.beats .t { font-family: var(--mono); color: var(--cyan); font-size: 12px; padding-top: 2px; }
.beats .lbl { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; color: var(--gold); }

/* ---------- Studio ---------- */
/* Two columns sized to the viewport (--fit-h is set by studio.js): the sidebar scrolls inside itself, the page does not. */
.studio-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: stretch; height: var(--fit-h, auto); }
.studio-left { padding: 16px; display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.studio-left::-webkit-scrollbar { width: 8px; }
.studio-left::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 8px; }
.studio-left h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--cyan); margin: 10px 0 8px; }
.block { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.block .chips { margin-top: 8px; }
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.add-btn { border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); border-radius: 10px; padding: 10px 8px; font-weight: 700; font-size: 13px; cursor: pointer; transition: .15s; }
.add-btn:hover { border-color: var(--pink); box-shadow: var(--glow-pink); }
.add-btn.wide { grid-column: 1 / -1; }
.studio-stage { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.stage-wrap { width: fit-content; max-width: 100%; margin: 0 auto; border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); background: #06030d; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.stage-wrap.checker { background-color: #1a1430; background-image: linear-gradient(45deg, #241c3e 25%, transparent 25%), linear-gradient(-45deg, #241c3e 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #241c3e 75%), linear-gradient(-45deg, transparent 75%, #241c3e 75%);
  background-size: 24px 24px; background-position: 0 0, 0 12px, 12px -12px, -12px 0; }
#studioCanvas { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(var(--fit-h, 100vh) - 150px); touch-action: none; cursor: default; }
#tab-studio .panel-head { margin-bottom: 14px; }
#tab-studio .panel-head h1 { margin: 2px 0 4px; }
.stage-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.layers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow: auto; }
.layers li { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 10px; border: 1px solid transparent; background: rgba(255, 255, 255, .03); font-size: 13px; cursor: pointer; }
.layers li.on { border-color: var(--pink); background: rgba(255, 42, 133, .12); }
.layers li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layers li button { border: 0; background: rgba(255, 255, 255, .06); border-radius: 6px; width: 24px; height: 24px; cursor: pointer; font-size: 12px; }
.layers .empty-layer { color: var(--muted); background: none; cursor: default; }
.props { display: flex; flex-direction: column; gap: 10px; }
.props .field input, .props .field select { width: 100%; }
.props .row-btns { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Terminal ---------- */
.terminal { max-width: 1100px; margin: 0 auto; }
.callout { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; margin-bottom: 22px;
  background: linear-gradient(100deg, rgba(255, 42, 133, .22), rgba(0, 240, 255, .12)); border: 1px solid rgba(255, 42, 133, .5); box-shadow: 0 0 30px rgba(255, 42, 133, .15); }
.callout-ico { font-size: 26px; }
.callout p { flex: 1; font-size: 15px; }
.term-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.term-head .kicker { color: var(--green); }
.term-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.platform { display: flex; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.plat-btn { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 76px; border: 0; background: none; color: var(--muted); border-radius: 10px; padding: 6px 10px; font-weight: 800; font-size: 12px; letter-spacing: 1px; cursor: pointer; }
.plat-glyphs { font-size: 13px; letter-spacing: 3px; }
.plat-btn.on[data-platform="ps"] { background: rgba(70, 120, 255, .25); color: #fff; box-shadow: inset 0 0 0 1px rgba(122, 168, 255, .6); }
.plat-btn.on[data-platform="xbox"] { background: rgba(61, 220, 132, .2); color: #fff; box-shadow: inset 0 0 0 1px rgba(61, 220, 132, .6); }
.term-nav { position: sticky; top: 66px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; margin: 14px 0 6px; background: linear-gradient(180deg, var(--bg) 70%, transparent); scrollbar-width: none; }
.term-nav a { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--text); text-decoration: none; font-weight: 700; font-size: 13px; background: rgba(255, 255, 255, .04); }
.term-nav a:hover { border-color: var(--green); }
.disclaimer { font-size: 12px; color: var(--muted); padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line2); margin-bottom: 16px; }
.tcard { padding: 20px; margin-bottom: 18px; scroll-margin-top: 130px; }
.tcard > header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tcard h2 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 3vw, 30px); text-transform: uppercase; letter-spacing: .4px; }
.tnum { color: var(--green); font-size: 14px; padding: 4px 8px; border: 1px solid rgba(61, 220, 132, .5); border-radius: 8px; }

.chop-calc { display: grid; grid-template-columns: 1.2fr 1.4fr .6fr; gap: 12px 16px; align-items: end; margin-bottom: 16px; }
.chop-result { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.stat span { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.stat b { display: block; font-family: var(--mono); font-size: 22px; margin-top: 2px; }
.stat small { color: var(--muted); font-size: 12px; }
.stat.hot b { color: var(--gold); text-shadow: 0 0 12px rgba(255, 184, 0, .5); }
.stat.bad b { color: var(--red); }
#chopSearch { flex: 1 1 240px; }
.table-wrap { overflow-x: auto; margin-top: 12px; border-radius: 14px; border: 1px solid var(--line); }
.chop-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.chop-table th { text-align: left; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); padding: 10px 12px; background: rgba(0, 0, 0, .3); position: sticky; top: 0; }
.chop-table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.chop-table tbody tr { cursor: pointer; transition: background .15s; }
.chop-table tbody tr:hover { background: rgba(255, 255, 255, .04); }
.chop-table tbody tr.on { background: rgba(61, 220, 132, .1); }
.chop-table td small { display: block; color: var(--muted); font-size: 12px; }
.tier { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 8px; letter-spacing: .5px; white-space: nowrap; }
.money { font-family: var(--mono); }
.money.crashed { color: var(--red); }

.safe-inputs { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 12px 16px; align-items: end; }
.safe-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.method { padding: 16px; border-radius: 16px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.method.win { border-color: var(--green); box-shadow: 0 0 22px rgba(61, 220, 132, .2); }
.method h3 { font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.method .win-tag { font-size: 10px; letter-spacing: 1.5px; padding: 3px 8px; border-radius: 6px; background: var(--green); color: #032312; }
.method dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 12px 0; font-size: 14px; }
.method dt { color: var(--muted); }
.method dd { margin: 0; font-family: var(--mono); text-align: right; }
.timeline { position: relative; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.timeline .work { position: absolute; top: 0; bottom: 0; left: 0; background: linear-gradient(90deg, rgba(0, 240, 255, .5), rgba(0, 240, 255, .25)); }
.timeline .cops { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--red); box-shadow: 0 0 10px var(--red); }
.timeline .cops::after { content: '🚨'; position: absolute; top: 3px; left: 6px; font-size: 13px; }
.timeline-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; font-family: var(--mono); }
.verdict { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(100deg, rgba(61, 220, 132, .14), rgba(0, 240, 255, .06)); border: 1px solid rgba(61, 220, 132, .4); font-size: 15px; }

.total-progress { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.ring { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: rgba(255, 255, 255, .08); }
.ring-fg { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .4s; filter: drop-shadow(0 0 6px rgba(61, 220, 132, .7)); }
.ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 20px; }
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.region { border-radius: 16px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); overflow: hidden; }
.region summary { list-style: none; cursor: pointer; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.region summary::-webkit-details-marker { display: none; }
.region-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.region-top b { font-size: 16px; }
.region-top span { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.region-blurb { font-size: 12px; color: var(--muted); }
.bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 8px; transition: width .3s; }
.items { list-style: none; margin: 0; padding: 0 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 12px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); cursor: pointer; font-size: 14px; color: var(--text); transition: .15s; }
.item:hover { border-color: rgba(255, 255, 255, .25); }
.item .glyph { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; border: 2px solid rgba(255, 255, 255, .25); color: transparent; transition: .15s; }
.item.done { background: rgba(61, 220, 132, .08); border-color: rgba(61, 220, 132, .35); }
.item.done span:last-child { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(61, 220, 132, .6); }
.item.done .glyph { color: #fff; border-color: transparent; }
.clip-steps { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.clip-steps li::marker { color: var(--green); font-family: var(--mono); }

/* ---------- Footer, modals, toast ---------- */
.footer { text-align: center; padding: 30px 20px calc(30px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); max-width: 900px; margin: 0 auto; }
.footer-links { margin-top: 10px; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(5, 2, 12, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; padding: 28px; background: rgba(22, 12, 46, .96); border-color: rgba(255, 255, 255, .14); animation: pop .25s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal-card h2 { font-family: var(--display); font-weight: 400; font-size: 34px; text-transform: uppercase; letter-spacing: .5px; margin: 6px 0 14px; }
.modal-x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255, 255, 255, .05); font-size: 20px; cursor: pointer; }
.perks { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 9px; }
.perks li { padding-left: 28px; position: relative; }
.perks li::before { content: '★'; position: absolute; left: 0; color: var(--gold); text-shadow: 0 0 10px rgba(255, 184, 0, .7); }
#proBuy.disabled { opacity: .5; pointer-events: none; }
#proBuyNote { margin-top: 8px; }
.key-row { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.key-row input { flex: 1; text-transform: uppercase; letter-spacing: 2px; font-family: var(--mono); }
.key-msg { font-size: 13px; min-height: 18px; }
.key-msg.err { color: var(--red); }
.key-msg.ok { color: var(--green); }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.vip-stars { font-size: 34px; letter-spacing: 6px; color: var(--gold); text-shadow: 0 0 20px rgba(255, 184, 0, .8); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .55; } }
#vipModal p { color: var(--muted); margin-bottom: 20px; }
.install-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.install-cols h4 { color: var(--cyan); font-size: 14px; margin-bottom: 6px; }
.install-cols ol { padding-left: 18px; margin: 0; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
#installNow { margin-top: 12px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 120; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 12px;
  background: rgba(20, 11, 41, .95); border: 1px solid rgba(0, 240, 255, .5); box-shadow: var(--glow-cyan); font-weight: 700; transition: .25s; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: var(--red); box-shadow: 0 0 18px rgba(255, 77, 109, .4); }
.confetti { position: fixed; inset: 0; z-index: 110; pointer-events: none; width: 100vw; height: 100vh; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .clipper-grid { grid-template-columns: minmax(0, 1.4fr) minmax(280px, .9fr); }
  .col-overlays { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 24px; }
  .col-overlays h3 { grid-column: 1 / -1; }
  .ov { border-bottom: 0; }
  .studio-grid { grid-template-columns: 280px minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .pro-cta .long { display: none; }
  .pro-cta .short { display: inline; }
}
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; gap: 10px; }
  .tabs { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .brand { flex: 1; }
  .clipper-grid, .vault-top, .studio-grid { grid-template-columns: 1fr; }
  .col-output { position: static; }
  /* Phones: canvas first, everything in the normal page flow. */
  .studio-grid { height: auto; }
  .studio-stage { order: -1; }
  .studio-left { overflow: visible; }
  #studioCanvas { max-height: none; }
  .chop-calc, .safe-inputs { grid-template-columns: 1fr 1fr; }
  .chop-result { grid-template-columns: 1fr 1fr; }
  .term-nav { top: 108px; }
  .tcard { scroll-margin-top: 170px; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  main { padding-top: 18px; }
  .brand-text { font-size: 21px; }
  .pro-cta { padding: 9px 12px; font-size: 12px; }
  .safe-compare, .install-cols { grid-template-columns: 1fr; }
  .chop-calc, .safe-inputs { grid-template-columns: 1fr; }
  .callout { flex-direction: column; align-items: flex-start; }
  .tcard { padding: 16px; }
  .chop-table thead { display: none; }
  .chop-table, .chop-table tbody, .chop-table tr, .chop-table td { display: block; width: 100%; }
  .chop-table tr { padding: 10px 12px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .chop-table td { padding: 0; border: 0; }
  .chop-table td::before { content: attr(data-label); display: block; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
  .chop-table td:first-child { grid-column: 1 / -1; }
  .vault-list, .locked-zone, .script-list { grid-template-columns: 1fr; }
  .plat-btn { min-width: 64px; }
}

/* ---------- Script mutator ---------- */
.mutator { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mutator select { padding: 6px 10px; font-size: 12px; border-radius: 9px; }
.mut-badge { margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .4px; color: var(--gold); padding: 6px 10px; border-radius: 9px; background: rgba(255, 184, 0, .08); border: 1px dashed rgba(255, 184, 0, .4); }
.btn-wrap { white-space: normal; line-height: 1.3; text-align: center; }

/* ---------- Studio themes + selection bar ---------- */
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.theme-chip { display: flex; align-items: center; gap: 7px; padding: 6px 7px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.2; text-align: left; cursor: pointer; }
.theme-chip i { flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.theme-chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .35); }
.theme-chip.on { color: var(--text); border-color: var(--gold); background: rgba(255, 184, 0, .1); }
.sel-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px 14px; }
.sel-bar .slider { flex: 1 1 170px; }
.sel-bar .row { flex-wrap: wrap; margin-left: auto; }
.sel-bar b { font-size: 13px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-bar .slider { margin: 0; }
@media (max-width: 900px) {
  .sel-bar { position: sticky; bottom: 8px; z-index: 6; }
  .sel-bar b { flex-basis: 100%; max-width: none; }
  .sel-bar .slider input[type="range"] { height: 10px; }
  .sel-bar .slider input[type="range"]::-webkit-slider-thumb { width: 26px; height: 26px; }
}

/* ---------- Multi-device license modal ---------- */
.vip-lead { color: var(--muted); margin: 6px 0 4px; }
.key-box { display: flex; flex-direction: column; gap: 8px; padding: 14px; margin: 4px 0 12px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(0, 240, 255, .4); }
.key-box .label { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cyan); }
.key-box code { font-family: var(--mono); font-size: 24px; letter-spacing: 3px; color: #fff; user-select: all; word-break: break-all; }
.key-help { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
#vipModal h2 { font-size: 28px; }

/* ---------- Custom graphic upload ---------- */
.upload-graphic { display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; border-style: dashed; border-color: rgba(0, 240, 255, .55); color: var(--cyan); }
.upload-graphic:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.upload-graphic:focus-within { outline: 2px solid var(--cyan); outline-offset: 2px; }
