.gz-settings-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(2, 1, 5, 0.72);
  backdrop-filter: blur(3px);
}

.gz-settings-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 5001;
  width: min(390px, 92vw);
  height: 100dvh;
  border-left: 1px solid rgba(203, 140, 255, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 57, 212, 0.18), transparent 28%),
    rgba(13, 8, 22, 0.99);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.5);
}

.gz-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(198, 152, 255, 0.15);
}

.gz-settings-header small {
  color: #ff39bd;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gz-settings-header h2 {
  margin: 5px 0 0;
  font-size: 18px;
}

.gz-settings-header button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(198, 152, 255, 0.15);
  border-radius: 9px;
  color: #aaa2ba;
  background: rgba(255, 255, 255, 0.03);
  font-size: 22px;
  cursor: pointer;
}

.gz-settings-scroll {
  height: calc(100dvh - 74px);
  overflow-y: auto;
  padding: 16px;
}

.gz-settings-section {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(198, 152, 255, 0.15);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.022);
}

.gz-settings-section h3 {
  margin: 0 0 12px;
  color: #f067d7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gz-settings-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid rgba(198, 152, 255, 0.08);
  cursor: pointer;
}

.gz-settings-row:last-child {
  border-bottom: 0;
}

.gz-settings-row > span:first-child {
  color: #e8e0f0;
  font-size: 10px;
}

.gz-settings-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gz-settings-switch {
  position: relative;
  display: block;
  width: 38px;
  height: 21px;
  border-radius: 12px;
  background: #302a3d;
  transition: 150ms ease;
}

.gz-settings-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #9991a6;
  transition: 150ms ease;
}

.gz-settings-row input:checked + .gz-settings-switch {
  background: linear-gradient(135deg, #7f3fff, #e839c2);
}

.gz-settings-row input:checked + .gz-settings-switch::after {
  left: 20px;
  background: #fff;
}

.gz-settings-volume {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.gz-settings-volume span {
  font-size: 10px;
}

.gz-settings-volume input {
  width: 100%;
}

.gz-settings-reset {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 76, 114, 0.28);
  border-radius: 8px;
  color: #ff6c89;
  background: rgba(255, 76, 114, 0.05);
  font-size: 9px;
  cursor: pointer;
}

body.gz-settings-open {
  overflow: hidden;
}
