/* ASTRA — Tweaks panel (vanilla) */
#tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 1000;
  width: 300px; max-width: calc(100vw - 40px);
  background: rgba(8, 6, 14, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(132,84,255,.08);
  color: var(--branco);
  font-family: "Montserrat", sans-serif;
  transform: translateY(16px); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
#tweaks.show { transform: none; opacity: 1; pointer-events: auto; }
.tw-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); cursor: grab; }
.tw-head.drag { cursor: grabbing; }
.tw-head h4 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-3); }
.tw-close { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-strong); background: none; color: var(--cinza-claro); font-size: 16px; line-height: 1; display: grid; place-items: center; }
.tw-close:hover { color: #fff; border-color: var(--accent-3); }
.tw-body { padding: 16px 18px 20px; display: grid; gap: 20px; }
.tw-field > span { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .04em; color: var(--cinza-claro); margin-bottom: 10px; }
.tw-seg { display: flex; gap: 6px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 11px; padding: 4px; }
.tw-seg button { flex: 1; padding: 9px 6px; border: none; background: none; color: var(--tx-dim); font-size: .8rem; font-weight: 600; border-radius: 8px; transition: .25s; }
.tw-seg button.on { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; box-shadow: 0 4px 14px rgba(84,0,255,.4); }
.tw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tw-range { width: 100%; appearance: none; height: 5px; border-radius: 5px; background: rgba(132,84,255,.22); outline: none; }
.tw-range::-webkit-slider-thumb { appearance: none; width: 17px; height: 17px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 10px var(--accent-3); cursor: pointer; }
.tw-range::-moz-range-thumb { width: 17px; height: 17px; border: none; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 10px var(--accent-3); cursor: pointer; }
.tw-val { font-size: .78rem; color: var(--accent-3); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.tw-switch { position: relative; width: 44px; height: 26px; border-radius: 20px; background: rgba(255,255,255,.1); border: 1px solid var(--line); transition: .3s; flex: 0 0 auto; }
.tw-switch.on { background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-color: transparent; }
.tw-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .3s var(--ease); }
.tw-switch.on::after { transform: translateX(18px); }
.tw-toggle-row { display: flex; align-items: center; justify-content: space-between; }
.tw-toggle-row span { font-size: .84rem; color: var(--branco); font-weight: 500; }
