/* --- área rolável, sob a status bar e acima da navbar --- */
.settings-wrap {
  position: absolute;
  inset: 48px 0 70px 0;
  padding: 12px;
  overflow-y: auto;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.32) 14%,
    rgba(0, 0, 0, 0.48) 100%
  );
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ====== SEU MARKUP ATUAL ====== */
.settings-section {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}
.settings-section.danger {
  border-color: rgba(255, 125, 125, 0.35);
  background: rgba(120, 0, 0, 0.28);
}
.settings-title {
  font-weight: 900;
  margin-bottom: 8px;
  opacity: 0.95;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.settings-item:first-of-type {
  border-top: 0;
}

.settings-item.readonly {
  cursor: default;
}

.si-meta {
  display: grid;
  gap: 4px;
}
.si-label {
  font-weight: 800;
}
.si-helper {
  font-size: 12px;
  opacity: 0.9;
}
.si-value {
  font-weight: 800;
  white-space: nowrap;
  text-align: right;
  margin-left: auto;
}

.si-slider {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 0;
  min-width: 0;
}

.si-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.si-slider-value {
  margin-left: 0;
  text-align: left;
  white-space: normal;
}

.si-slider-helper {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(229, 231, 235, 0.8);
}

.si-range {
  flex: 1;
  min-width: 0;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  outline: none;
}

.si-range::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #60a5fa;
  cursor: pointer;
  border: none;
}

.si-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #60a5fa;
  cursor: pointer;
  border: none;
}

.si-input {
  min-width: 140px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
}

.settings-cta,
.settings-danger {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.18s ease;
}
.settings-cta:active,
.settings-danger:active {
  transform: scale(0.98);
}
.settings-danger {
  background: #ef4444;
  color: #2a0b0b;
  border-color: #b91c1c;
}

/* header da view (mesmo visual do chat/list) */
#viewSettings .header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  height: 52px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 800;
  width: 100%;
  z-index: 5;
}
