/* Settings v2: profile card + grouped iOS-style lists */
#tab-settings {
  --h-card: #ffffff; --h-ink: #111317; --h-ink-2: #5d6470; --h-ink-3: #9aa1ab; --h-line: #e7e9ee; --h-red: #e10600; --h-seg: #eceef2;
}
[data-theme="dark"] #tab-settings {
  --h-card: #17191d; --h-ink: #f2f3f5; --h-ink-2: #a6acb6; --h-ink-3: #6f7680; --h-line: #262a31; --h-seg: #202329;
}
#tab-settings .st2 { font-family: Manrope, Inter, system-ui, sans-serif; color: var(--h-ink); padding-bottom: 12px; }

/* Profile */
#tab-settings .st2-profile { display: flex; align-items: center; gap: 14px; border-radius: 24px; padding: 16px; color: #fff;
  background: linear-gradient(135deg, #e10600 0%, #8a0400 100%); position: relative; overflow: hidden; }
#tab-settings .st2-profile::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  border: 18px solid rgba(255,255,255,.08); }
#tab-settings .st2-ava { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; }
#tab-settings .st2-ava img { width: 100%; height: 100%; object-fit: cover; }
#tab-settings .st2-name { font-size: 19px; font-weight: 800; }
#tab-settings .st2-sub { font-size: 13px; opacity: .8; font-weight: 600; margin-top: 2px; }

/* Groups */
#tab-settings .st2-title { font-size: 13px; font-weight: 800; color: var(--h-ink-2); margin: 22px 4px 8px; }
#tab-settings .st2-group { background: var(--h-card); border: 1px solid var(--h-line); border-radius: 20px; overflow: hidden; }
#tab-settings .st2-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; min-height: 56px; }
#tab-settings .st2-row + .st2-row { border-top: 1px solid var(--h-line); }
#tab-settings .st2-ic { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--h-red) 12%, transparent); color: var(--h-red); }
#tab-settings .st2-ic svg { width: 18px; height: 18px; }
#tab-settings .st2-row .mid { flex: 1; min-width: 0; }
#tab-settings .st2-row .mid b { display: block; font-size: 15px; font-weight: 700; }
#tab-settings .st2-row .mid span { display: block; font-size: 12px; color: var(--h-ink-3); font-weight: 600; margin-top: 1px; }
#tab-settings .st2-row .mid span.on { color: var(--h-red); }

/* Theme segmented control (theme-switcher.js toggles .on) */
#tab-settings .theme-seg { display: flex; background: var(--h-seg); border-radius: 12px; padding: 3px; gap: 3px; border: 0; }
#tab-settings .theme-seg button { flex: 1; border: 0; background: transparent; color: var(--h-ink-2); border-radius: 9px; padding: 8px 10px;
  font: 700 13px Manrope, Inter, sans-serif; cursor: pointer; }
#tab-settings .theme-seg button.on { background: var(--h-card); color: var(--h-ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* Selects as chips */
#tab-settings .st2-select { appearance: none; -webkit-appearance: none; border: 0; background: var(--h-seg); color: var(--h-ink);
  border-radius: 999px; padding: 8px 30px 8px 12px; font: 700 13px Manrope, Inter, sans-serif; cursor: pointer; max-width: 170px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e10600' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; }
#tab-settings .st2-select.off { color: var(--h-ink-3); }

/* Switch */
#tab-settings .st2-switch { position: relative; width: 50px; height: 30px; flex: 0 0 auto; }
#tab-settings .st2-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
#tab-settings .st2-switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--h-seg); transition: background .2s; cursor: pointer; }
#tab-settings .st2-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
#tab-settings .st2-switch input:checked + i { background: var(--h-red); }
#tab-settings .st2-switch input:checked + i::after { transform: translateX(20px); }

#tab-settings .st2-note { font-size: 12px; color: var(--h-ink-3); font-weight: 600; margin: 8px 6px 0; line-height: 1.4; }
#tab-settings .st2-foot { text-align: center; font-size: 11px; color: var(--h-ink-3); font-weight: 600; margin-top: 22px; }

/* Custom-minutes modal */
#custom-notif-modal .modal-card { border-radius: 22px; font-family: Manrope, Inter, sans-serif; }
#custom-notif-modal .modal-btn.primary { background: #e10600; border-color: #e10600; color: #fff; }
/* redesign.css styles .notif-select with !important; keep the chip look */
#tab-settings select.st2-select.notif-select {
  background-color: var(--h-seg) !important; border: 0 !important; color: var(--h-ink) !important; border-radius: 999px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e10600' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 10px center !important; background-size: 12px !important;
  padding: 8px 30px 8px 12px !important;
}
#tab-settings select.st2-select.notif-select.off { color: var(--h-ink-3) !important; }
