/* ── DESKTOP SETTINGS (solo PC) ───────────────────────────────
   Panel independiente del "you" de móvil: HTML/CSS/JS propios,
   no navega ni cambia la URL, y no se abre en móvil. */

#dsOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: #313338;
  opacity: 0;
  transition: opacity .16s ease;
}
#dsOverlay.open { display: block; opacity: 1; }

#dsOverlay .ds-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #80848e;
  background: none;
  color: #dbdee1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
#dsOverlay .ds-close:hover { background: #35373c; color: #fff; border-color: #dbdee1; }

.ds-layout { display: flex; height: 100%; }

.ds-sidebar {
  width: 240px;
  min-width: 240px;
  background: #2b2d31;
  padding: 60px 6px 24px 0;
  display: flex;
  justify-content: flex-end;
}
.ds-sidebar-inner { width: 218px; overflow-y: auto; max-height: calc(100vh - 84px); }
.ds-sb-section { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #949ba4; padding: 8px 10px 4px; margin-top: 14px; }
.ds-sb-section:first-child { margin-top: 0; }
.ds-sb-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; color: #b5bac1; font-size: .95rem; font-weight: 500; cursor: pointer; border: none; background: none; width: 100%; text-align: left; transition: background .12s, color .12s; }
.ds-sb-item:hover { background: #35373c; color: #dbdee1; }
.ds-sb-item.active { background: #404249; color: #fff; }
.ds-sb-divider { height: 1px; background: #3a3c42; margin: 10px 10px; }

.ds-content { flex: 1; overflow-y: auto; padding: 60px 40px 80px; }
.ds-content-inner { max-width: 740px; margin: 0 auto; }
.ds-title { font-size: 1.5rem; font-weight: 700; color: #f2f3f5; margin-bottom: 24px; }
.ds-sublabel { font-size: .95rem; font-weight: 700; color: #f2f3f5; margin: 20px 0 4px; }
.ds-hint { font-size: .84rem; color: #949ba4; margin-bottom: 8px; }

.ds-select {
  background: #1e1f22; border: none; border-radius: 4px; padding: 12px 14px;
  color: #dbdee1; font-size: .94rem; width: 100%; cursor: pointer; appearance: none;
}

.ds-btn {
  background: #4e5058; border: none; border-radius: 4px; padding: 10px 18px;
  color: #fff; font-size: .9rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: background .15s;
}
.ds-btn:hover { background: #6d6f78; }
.ds-btn.accent { background: var(--accent, #5865f2); }
.ds-btn.accent:hover { background: var(--accent-hover, #4752c4); }

.ds-input {
  background: #1e1f22; border: none; border-radius: 4px; padding: 10px 12px;
  color: #dbdee1; font-size: .94rem; width: 100%; outline: none;
}
.ds-input:focus { outline: 2px solid var(--accent, #5865f2); }
.ds-textarea { resize: none; min-height: 80px; font-family: inherit; }

.ds-profile-grid { display: flex; gap: 40px; margin-top: 24px; align-items: flex-start; }
.ds-form-col { flex: 1; min-width: 0; }
.ds-preview-col { width: 300px; flex-shrink: 0; }
@media (max-width: 900px) { .ds-profile-grid { flex-direction: column; } .ds-preview-col { width: 100%; } }

.ds-preview-label { font-size: .95rem; font-weight: 700; color: #f2f3f5; margin-bottom: 10px; text-align: center; }
.ds-preview-card { background: #111214; border-radius: 8px; overflow: hidden; border: 1px solid #2a2d30; }
.ds-preview-banner { height: 100px; background: #5865f2; background-size: cover; background-position: center; }
.ds-preview-body { padding: 0 16px 16px; position: relative; }
.ds-preview-avatar-wrap { margin-top: -40px; margin-bottom: 8px; }
.ds-preview-avatar {
  width: 80px; height: 80px; border-radius: 50%; border: 6px solid #111214;
  background: #5865f2; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700; color: #fff; overflow: hidden; position: relative;
}
.ds-preview-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ds-preview-status { position: absolute; bottom: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; border: 4px solid #111214; background: #23a55a; box-sizing: content-box; }
.ds-preview-name { font-size: 1.05rem; font-weight: 700; color: #f2f3f5; }
.ds-preview-tag { font-size: .82rem; color: #949ba4; margin-bottom: 10px; }
.ds-preview-since { font-size: .78rem; font-weight: 700; color: #949ba4; text-transform: uppercase; margin-top: 8px; }
.ds-preview-since-val { font-size: .84rem; color: #dbdee1; font-weight: 600; }
.ds-preview-msgbtn { margin-top: 12px; width: 100%; padding: 10px; background: #4752c4; border: none; border-radius: 4px; color: #fff; font-weight: 600; font-size: .88rem; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: default; }

.ds-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #23a55a; color: #fff; padding: 12px 22px; border-radius: 8px;
  font-size: .9rem; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 1300;
}
.ds-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 768px) {
  #dsOverlay { display: none !important; }
}

/* ── Ajustes PC: controles añadidos (avatar/banner/color/cuenta) ── */
#dsOverlay .ds-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#dsOverlay .ds-color { width: 44px; height: 36px; padding: 2px; border-radius: 6px; border: 1px solid #3a3c42; background: #1e1f22; cursor: pointer; }
#dsOverlay .ds-counter { font-size: .72rem; color: #949ba4; text-align: right; margin-top: 4px; }
#dsOverlay .ds-input[type="text"], #dsOverlay input.ds-input { height: 42px; }
#dsOverlay .ds-textarea { min-height: 96px; height: auto; }
#dsOverlay .ds-preview-bio { font-size: .84rem; color: #dbdee1; margin: 4px 0 10px; line-height: 1.35; overflow-wrap: anywhere; }
#dsOverlay .ds-preview-avatar { position: relative; }
#dsOverlay .ds-account-card { background: #1e1f22; border-radius: 10px; overflow: hidden; border: 1px solid #2a2d30; }
#dsOverlay .ds-account-banner { height: 110px; background-size: cover; background-position: center; }
#dsOverlay .ds-account-head { display: flex; align-items: center; gap: 16px; padding: 0 20px 16px; }
#dsOverlay .ds-account-head .ds-preview-avatar { border: 6px solid #1e1f22; flex: none; }
#dsOverlay .ds-account-name { flex: 1; min-width: 0; font-size: 1.25rem; font-weight: 700; color: #f2f3f5; padding-top: 12px; }
#dsOverlay .ds-account-name small { font-size: .9rem; color: #949ba4; font-weight: 500; margin-left: 2px; }
#dsOverlay .ds-account-head .ds-btn { margin-top: 12px; }
#dsOverlay .ds-account-fields { margin: 0 20px 20px; padding: 14px 16px; background: #2b2d31; border-radius: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
#dsOverlay .ds-field span { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; color: #949ba4; margin-bottom: 4px; }
#dsOverlay .ds-field b { font-size: .95rem; color: #f2f3f5; font-weight: 600; }

#dsOverlay .ds-theme-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
#dsOverlay .ds-theme { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 96px; padding: 12px 8px; border-radius: 10px; background: #1e1f22; border: 2px solid transparent; color: #dbdee1; cursor: pointer; transition: border-color .15s, background .15s; }
#dsOverlay .ds-theme:hover { background: #26272b; }
#dsOverlay .ds-theme.on { border-color: var(--accent, #5865f2); }
#dsOverlay .ds-theme-dot { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); background-size: cover; }
#dsOverlay .ds-theme-name { font-size: .76rem; font-weight: 600; text-align: center; line-height: 1.2; }
