/* Privacy Masker by SWC */
:root{
  --bg1: #0a0b12;
  --bg2: #0d0f1f;
  --surface: rgba(255,255,255,0.04);
  --text: #e6e7ee;
  --muted: #a4a6b3;
  --accent1: #7c5cff;
  --accent2: #00e1ff;
  --accent3: #ff7ac3;
  --ring: rgba(124,92,255,0.8);
  --glow: 0 0 24px 2px rgba(124,92,255,0.45), 0 0 64px rgba(0,225,255,0.15);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 15% 0%, rgba(124,92,255,0.18), transparent 60%),
    radial-gradient(1000px 500px at 85% 0%, rgba(0,225,255,0.2), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial;
  letter-spacing: .2px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  border-bottom:1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  background:linear-gradient(180deg, rgba(10,11,18,0.85), rgba(13,15,31,0.65));
  position:sticky;
  top:0;
  z-index:10;
}

h1{font-size:20px; margin:0; letter-spacing:.5px}
h2{font-size:15px; margin:0 0 8px 0; color:#fff}

.actions{display:flex; gap:10px; align-items:center}

.btn{
  display:inline-flex; gap:8px; align-items:center; justify-content:center;
  padding:8px 12px; border:1px solid rgba(255,255,255,0.08);
  border-radius:12px; color:#fff; cursor:pointer; background:rgba(124,92,255,0.16);
  box-shadow: var(--glow);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover{ transform: translateY(-1px); background:rgba(124,92,255,0.22)}
.btn.subtle{ background:rgba(255,255,255,0.06); box-shadow:none}
.btn.subtle:hover{ background:rgba(255,255,255,0.1)}

.app{ display:grid; grid-template-columns: 320px 1fr; min-height:calc(100vh - 58px)}
.panel{ padding:14px; border-right:1px solid rgba(255,255,255,0.06)}

.card{
  background:var(--surface);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:16px;
  padding:14px;
  box-shadow: var(--glow);
}

.tool-row{
  display:flex; align-items:center; justify-content:space-between; gap:10px; margin:10px 0;
}

.radio{ display:flex; gap:8px; align-items:center; cursor:pointer}
.radio input{ accent-color: var(--accent1)}

select, input[type="range"]{
  width: 170px;
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  color: var(--text);
  border-radius: 10px;
  padding: 6px 8px;
  outline: none;
}
input[type="range"]{ padding:0; height:26px}

.hint{ font-size:12px; color:var(--muted)}

.note{
  margin-top:12px; font-size:13px; color:var(--muted);
}
.note ul{margin:6px 0 0 16px; padding:0}
.note li{margin:4px 0}

.stage{ padding:14px }
.canvas-wrap{
  position:relative;
  border:1px dashed rgba(255,255,255,0.18);
  border-radius:16px;
  background: rgba(255,255,255,0.02);
  overflow:hidden;
  min-height:70vh;
  display:flex;
  align-items:center;
  justify-content:center;
}

.placeholder{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color:var(--muted); pointer-events:none;
  font-size:18px;
}

#canvas{
  max-width:100%;
  border-radius:12px;
  background: #0b0d17;
  image-rendering: auto;
  box-shadow: var(--glow);
}

.footer{
  text-align:center; padding:12px; color:var(--muted);
  border-top:1px solid rgba(255,255,255,0.06);
  background:linear-gradient(180deg, rgba(13,15,31,0.65), rgba(10,11,18,0.85));
}

.selection{
  position:absolute; border:2px solid var(--accent2); border-radius:10px;
  box-shadow: 0 0 0 4px rgba(0,225,255,0.15);
}

.badge{
  position:absolute; transform:translateY(-100%);
  background:rgba(0,0,0,0.65);
  border:1px solid rgba(255,255,255,0.15);
  border-radius:8px; padding:2px 6px; font-size:12px; color:#fff
}