@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

/* =========================================================
   SHOTS Amazon — Dark Studio Design System
   ========================================================= */

:root {
  /* Brand */
  --red:        #D90000;
  --red-glow:   rgba(217, 0, 0, 0.18);
  --red-dim:    rgba(217, 0, 0, 0.08);

  /* Surface */
  --bg:         #0a0a0b;
  --surface:    #111113;
  --surface2:   #1a1a1e;
  --surface3:   #222228;

  /* Borders */
  --border:     rgba(255,255,255,0.07);
  --border-md:  rgba(255,255,255,0.12);
  --border-hi:  rgba(255,255,255,0.2);

  /* Text */
  --text:       #f0eff4;
  --text-2:     rgba(240,239,244,0.6);
  --text-3:     rgba(240,239,244,0.35);

  /* Status */
  --ok:         #22c55e;
  --ok-bg:      rgba(34,197,94,0.1);
  --warn:       #f59e0b;
  --warn-bg:    rgba(245,158,11,0.1);
  --err:        #ef4444;
  --err-bg:     rgba(239,68,68,0.1);

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 150ms var(--ease);
  --mid:  280ms var(--ease);
  --slow: 500ms var(--ease);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

/* ---- Typography ---- */
h1, h2, h3 { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.04em; line-height: 1.1; }

/* =========================================================
   HEADER
   ========================================================= */
.hdr {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  height: 56px;
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--red);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--red-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}

.brand-mark svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--text);
  line-height: 1;
}

.brand-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  line-height: 1;
  margin-top: 2px;
}

.spacer { flex: 1; }

.who {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
  font-family: 'JetBrains Mono', monospace;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  appearance: none;
  border: 1px solid var(--border-md);
  background: var(--surface2);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--fast);
}

.btn:hover::after { background: rgba(255,255,255,0.04); }
.btn:hover { border-color: var(--border-hi); }
.btn:active { transform: scale(0.98); }

.btn.primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 0 24px var(--red-glow);
  font-size: 14px;
  padding: 10px 20px;
}
.btn.primary:hover {
  background: #c00000;
  box-shadow: 0 0 32px rgba(217,0,0,0.35);
  border-color: #c00000;
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}
.btn.ghost:hover { color: var(--text); border-color: var(--border); background: var(--surface2); }

.btn.sm { padding: 5px 12px; font-size: 11px; border-radius: var(--r-sm); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* =========================================================
   PILLS
   ========================================================= */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface3);
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}
.pill.admin {
  background: var(--red-dim);
  border-color: rgba(217,0,0,0.25);
  color: var(--red);
}
.pill.admin::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}

/* =========================================================
   LAYOUT
   ========================================================= */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s var(--ease) both;
}

.grid2 {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 960px) { .grid2 { grid-template-columns: 1fr; } }

/* =========================================================
   CARDS
   ========================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--mid);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.025) 0%, transparent 60%);
  pointer-events: none;
}

.card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 0;
}

/* Section label */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =========================================================
   FORM ELEMENTS
   ========================================================= */
label.fld {
  display: block;
  margin: 16px 0 6px;
  font-weight: 700;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input, textarea, select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface2);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input::placeholder, textarea::placeholder { color: var(--text-3); }

input:focus, textarea:focus, select:focus {
  border-color: rgba(217,0,0,0.5);
  background: var(--surface3);
  box-shadow: 0 0 0 3px var(--red-dim);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(240,239,244,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

.row { display: flex; gap: 12px; }
.row > * { flex: 1; }

/* =========================================================
   DROPZONE
   ========================================================= */
.dz {
  border: 1.5px dashed var(--border-md);
  border-radius: var(--r-md);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  background: var(--surface2);
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--fast);
  position: relative;
}

.dz::before {
  content: '↑';
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
  opacity: 0.4;
  transition: opacity var(--fast), transform var(--fast);
}

.dz:hover {
  border-color: rgba(217,0,0,0.4);
  background: var(--red-dim);
  color: var(--text-2);
}
.dz:hover::before { opacity: 0.9; transform: translateY(-2px); color: var(--red); }

.dz b { color: var(--red); font-weight: 700; }
.dz.small { padding: 12px; }
.dz.small::before { display: none; }

/* Thumbs */
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.thumb {
  position: relative;
  width: 60px; height: 60px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--fast);
}
.thumb:hover { border-color: var(--border-hi); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.thumb .x {
  position: absolute;
  top: 3px; right: 3px;
  width: 18px; height: 18px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
  padding: 0;
  backdrop-filter: blur(4px);
  transition: background var(--fast);
  display: grid;
  place-items: center;
}
.thumb .x:hover { background: var(--red); }

/* =========================================================
   ADVANCED DETAILS
   ========================================================= */
details.adv {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

details.adv summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--fast);
  user-select: none;
}
details.adv summary:hover { color: var(--text-2); }
details.adv summary::before { content: '▸'; font-size: 10px; transition: transform var(--fast); }
details[open].adv summary::before { transform: rotate(90deg); }

/* =========================================================
   ACTIONS ROW
   ========================================================= */
.actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* =========================================================
   PROGRESS BAR
   ========================================================= */
.progress {
  height: 3px;
  border-radius: 999px;
  background: var(--surface3);
  overflow: hidden;
  margin: 12px 0 4px;
}
.progress > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), #ff4040);
  width: 0;
  transition: width 0.4s var(--ease);
  box-shadow: 0 0 8px var(--red);
  border-radius: 999px;
}

/* =========================================================
   STATUS BADGES
   ========================================================= */
.status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.s-idle { background: var(--surface3); color: var(--text-3); }
.s-run  {
  background: var(--warn-bg);
  color: var(--warn);
  animation: pulse-warn 2s ease-in-out infinite;
}
.s-done { background: var(--ok-bg); color: var(--ok); }
.s-err  { background: var(--err-bg); color: var(--err); }

@keyframes pulse-warn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
  50% { box-shadow: 0 0 0 4px rgba(245,158,11,0.15); }
}

/* =========================================================
   GALLERY
   ========================================================= */
.gal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.tile {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: border-color var(--mid), transform var(--mid), box-shadow var(--mid);
  animation: tileIn 0.5s var(--ease) both;
}

.tile:hover {
  border-color: var(--border-md);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

@keyframes tileIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.tile .frame {
  aspect-ratio: 1/1;
  background: var(--surface2);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.tile .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.tile:hover .frame img { transform: scale(1.04); }

/* Download overlay on tile hover */
.tile .frame-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--mid);
  display: grid;
  place-items: end center;
  padding-bottom: 10px;
}
.tile:hover .frame-overlay { opacity: 1; }

.tile .cap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}
.tile .cap .lab {
  font-weight: 700;
  font-size: 11px;
  color: var(--text-2);
  flex: 1;
  letter-spacing: 0.02em;
}

/* =========================================================
   SPINNER
   ========================================================= */
.spin {
  width: 28px; height: 28px;
  border: 2px solid var(--surface3);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: sp 0.8s linear infinite;
}
@keyframes sp { to { transform: rotate(360deg); } }

/* =========================================================
   GATE (LOGIN)
   ========================================================= */
.center {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

/* Ambient red glow behind gate */
.center::before {
  content: '';
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,0,0,0.06) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%,-50%) scale(1.15); opacity: 0.7; }
}

.gatebox {
  max-width: 420px;
  width: 100%;
  animation: fadeUp 0.5s var(--ease) both;
}

.gatebox .card {
  border-color: var(--border-md);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
}

.gatebox .card h2 {
  font-size: 28px;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.gate-sub {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 4px;
  font-weight: 500;
}

/* =========================================================
   BANNERS
   ========================================================= */
.banner {
  padding: 11px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
  border: 1px solid transparent;
}
.banner.info { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.2); color: #93c5fd; }
.banner.warn { background: var(--warn-bg); border-color: rgba(245,158,11,0.2); color: var(--warn); }
.banner.err  { background: var(--err-bg); border-color: rgba(239,68,68,0.2); color: #fca5a5; }
.banner.ok   { background: var(--ok-bg); border-color: rgba(34,197,94,0.2); color: #86efac; }

/* =========================================================
   TABLE (Admin)
   ========================================================= */
table { width: 100%; border-collapse: collapse; font-size: 12px; }

th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-2);
  font-size: 12px;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* =========================================================
   UTILITY
   ========================================================= */
.hide { display: none !important; }
.muted { color: var(--text-3); }
.tiny { font-size: 11px; }
.note { font-size: 12px; color: var(--text-3); margin-top: 8px; font-family: 'JetBrains Mono', monospace; }

/* =========================================================
   FOOTER
   ========================================================= */
.foot {
  padding: 24px;
  color: var(--text-3);
  font-size: 11px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* Staggered tile animation delays */
.tile:nth-child(1)  { animation-delay: 0ms; }
.tile:nth-child(2)  { animation-delay: 60ms; }
.tile:nth-child(3)  { animation-delay: 120ms; }
.tile:nth-child(4)  { animation-delay: 180ms; }
.tile:nth-child(5)  { animation-delay: 240ms; }
.tile:nth-child(6)  { animation-delay: 300ms; }
.tile:nth-child(7)  { animation-delay: 360ms; }
.tile:nth-child(8)  { animation-delay: 420ms; }

/* =========================================================
   TABS (Generator / Listing Optimizer / Toegangsbeheer)
   ========================================================= */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.tabs .tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-3);
  font: inherit;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  transition: color var(--fast), border-color var(--fast);
}
.tabs .tab:hover { color: var(--text-2); }
.tabs .tab.active { color: var(--text); border-bottom-color: var(--red); }

.tabpanel.hide { display: none; }

/* Before/after compare grid */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare .col { min-width: 0; }
.compare .col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 12px;
}
.compare .col.after h4 { color: var(--red); }
.compare .imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.compare .imgs img {
  width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm);
  border: 1px solid var(--border);
}
.compare .fld-row { margin-bottom: 14px; }
.compare .fld-row .lab {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-2); display: flex; justify-content: space-between;
}
.compare .fld-row .count { color: var(--text-3); font-weight: 600; }
.compare .fld-row .count.over { color: var(--err); }
.compare .fld-row .val {
  margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--text);
  white-space: pre-wrap;
}
@media (max-width: 820px) { .compare { grid-template-columns: 1fr; } }

/* Gallery image klikbaar → lightbox */
.gal .frame img { cursor: zoom-in; }

/* Lightbox */
.lb {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 32px;
  background: rgba(6,6,8,0.92); backdrop-filter: blur(6px);
}
.lb.hide { display: none; }
.lb img {
  max-width: min(92vw, 1100px); max-height: 78vh;
  object-fit: contain; border-radius: var(--r-sm);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6); background: #000;
}
.lb-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--border-md); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lb-close:hover { background: var(--surface3); }
.lb-dl { min-width: 180px; }

/* =========================================================
   STUDIO — Symbol library
   ========================================================= */
.symgrid { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 12px; margin: 12px 0; }
.symcard { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px; text-align: center; background: var(--surface2); }
.symcard .ico { width: 56px; height: 56px; object-fit: contain; background: #2a2a30; border-radius: 8px; padding: 6px; }
.symcard .k { font-weight: 700; font-size: 12px; margin-top: 6px; color: var(--text); }
.symcard .syn { font-size: 10px; color: var(--text-3); }
.symcard .row { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.sep { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
.symdrop { border: 1px dashed var(--border-md); border-radius: var(--r-sm); padding: 16px; text-align: center; cursor: pointer; color: var(--text-2); }
.symdrop.drag { border-color: var(--red); color: var(--text); background: var(--surface2); }

/* ---- B4: Studio sub-nav + template-editor stage ---- */
.substuff { display:flex; gap:8px; margin-bottom:14px; }
.subtab { background:var(--surface2); border:1px solid var(--border); color:var(--text-2); padding:6px 14px; border-radius:var(--r-sm); cursor:pointer; font-weight:700; font-size:12px; }
.subtab.active { color:var(--text); border-color:var(--border-hi); background:var(--surface3); }
.subpanel.hide { display:none; }
.zonebar { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.tplstage { position:relative; width:480px; height:480px; background:#1b1b20 center/cover no-repeat; border:1px solid var(--border-md); border-radius:var(--r-sm); overflow:hidden; user-select:none; touch-action:none; }
.tplstage img.bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; pointer-events:none; }
.tplstage .bgph { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center; padding:0 24px; color:#c9b8b3; font-size:13px; letter-spacing:.02em; line-height:1.4; pointer-events:none; }
.zone { position:absolute; border:2px solid var(--red); background:rgba(217,0,0,0.10); box-sizing:border-box; cursor:move; touch-action:none; }
.zone.sel { border-color:#fff; background:rgba(255,255,255,0.12); }
.zone .zlab { position:absolute; top:-2px; left:-2px; font-size:9px; font-weight:800; background:var(--red); color:#fff; padding:1px 5px; border-radius:0 0 6px 0; white-space:nowrap; }
.zone .zhandle { position:absolute; right:-6px; bottom:-6px; width:12px; height:12px; background:#fff; border:2px solid var(--red); border-radius:50%; cursor:nwse-resize; }
.tplprops { display:flex; flex-wrap:wrap; gap:10px; margin:12px 0; min-height:8px; }
.tplprops label { font-size:11px; color:var(--text-2); display:flex; gap:6px; align-items:center; }

.pthumb { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-sm); border: 2px solid transparent; cursor: pointer; }
.pthumb.sel { border-color: var(--red); }

/* snap-hulplijnen op de template-stage */
.snapguide { position: absolute; pointer-events: none; z-index: 5; }
.snapguide.v { top: 0; bottom: 0; width: 0; border-left: 1px dashed #C0876B; }
.snapguide.h { left: 0; right: 0; height: 0; border-top: 1px dashed #C0876B; }
.snapguide.gap { border-color: #3fb950; }
.snaptoggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }

/* vorm-swatch-picker in het props-paneel */
.shapepick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.swatchbtn { padding: 2px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface2); cursor: pointer; line-height: 0; }
.swatchbtn.sel { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.swatchbtn canvas { display: block; border-radius: 4px; }

/* live vorm-preview in een USP-tekstzone */
.zone.haspreview { background: transparent; border-color: rgba(192,135,107,0.7); }
.zone.haspreview .zlab { opacity: 0.85; }
.zprev { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* SEO-paneel in de Productie-output */
.seo-row { border-top: 1px solid var(--border); padding: 8px 0; }
.seo-lab { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; }
.seo-val { font-size: 13px; color: var(--text); margin-top: 3px; white-space: pre-wrap; }
.seo-copy { margin-left: auto; }

/* vergrootglas-lens op de output */
.zoomlens { position: fixed; border: 2px solid #fff; border-radius: 50%; pointer-events: none;
  box-shadow: 0 6px 24px rgba(0,0,0,.45); background-repeat: no-repeat; background-color: #fff; z-index: 60; display: none; }

/* paneel-zones achter de overige zones in de editor-preview */
.zone { z-index: 2; }

/* paneel-kleurkiezer: grote, klikbare chips (los van de vorm-swatches) */
.colorpick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.colorpick .swatchbtn { width: 34px; height: 34px; padding: 0; border: none; border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18); cursor: pointer; transition: transform .08s ease; }
.colorpick .swatchbtn:hover { transform: translateY(-1px); }
.colorpick .swatchbtn.sel { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18), 0 0 0 2px var(--bg), 0 0 0 4px #D18E8A; }
.zone.zone-panel { z-index: 1; }

/* call-out leader-lijn-eindpunt (versleepbare dot op de stage) */
.ctarget { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #D18E8A; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.25); cursor: grab; z-index: 5; touch-action: none; }
.ctarget:active { cursor: grabbing; }

/* =========================================================
   PRODUCTIE — gebruikersweergave (rol = user): groene %-balk + clean scherm
   ========================================================= */
.prodlabel { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--text-2); margin: 14px 0 6px; }
.prodprog { margin: 18px 0 6px; }
.prodprog .bar { height: 12px; border-radius: 999px; background: var(--surface3); overflow: hidden; }
.prodprog .bar > i { display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  box-shadow: 0 0 10px rgba(34,197,94,0.55);
  transition: width 0.5s var(--ease); }
.prodprog .lab { display: flex; justify-content: space-between; align-items: center;
  margin-top: 9px; font-size: 13px; color: var(--text-2); }
.prodprog .pct { font-weight: 800; color: #22c55e; font-variant-numeric: tabular-nums; }
.prodprog.err .bar > i { background: linear-gradient(90deg, #b45309, #f59e0b); box-shadow: 0 0 10px rgba(245,158,11,0.5); }
.prodprog.err .pct { color: var(--warn); }

/* Rol = gewone gebruiker: alleen een strak Productie-scherm, geen technische chrome */
body.role-user #tabs,
body.role-user #tabStudio .substuff,
body.role-user #prodMsg,
body.role-user #prodLifeBtn,
body.role-user .foot { display: none !important; }
/* SEO-teksten (titel/bullets met kopieer-knoppen) blijven zichtbaar voor de gebruiker — om naar Amazon te plakken */
body.role-user .wrap { max-width: 860px; }
body.role-user #studioProduction .card { padding: 30px 28px; }
body.role-user #studioProduction .section-label { font-size: 18px; }
body.role-user #prodUrl { font-size: 15px; padding: 12px 14px; }
body.role-user #prodGo { font-size: 15px; padding: 12px 20px; }
