/* ============================================
   LAKSHERA ADMIN — SETTINGS PAGE
   ============================================ */

.settings-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
}

.form-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px 26px 26px;
}

.fp-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.fp-head-icon {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: rgba(43,0,59,0.08); color: var(--aubergine);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.fp-head-icon.success { background: var(--success-bg); color: var(--success); }
.fp-head h3 {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--aubergine);
  font-weight: 600;
}
.fp-head p {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 3px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.password-hint {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: -8px;
  margin-bottom: 4px;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.pw-toggle {
  background: none;
  border: none;
}

/* ---------- Notification rows ---------- */
.notif-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.notif-row:first-of-type { border-top: none; padding-top: 4px; }
.notif-row b {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 3px;
}
.notif-row span {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- Toggle switch ---------- */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 25px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: 30px;
  transition: background 0.2s ease;
}
.switch-track::before {
  content: "";
  position: absolute;
  height: 19px; width: 19px;
  left: 3px; top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.switch input:checked + .switch-track { background: var(--success); }
.switch input:checked + .switch-track::before { transform: translateX(19px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .notif-row { align-items: flex-start; }
}

/* ---------- Help & Support ---------- */
.fp-head-icon.help { background: var(--pending-bg); color: var(--pending); }

.help-divider {
  height: 1px;
  background: var(--border);
  margin: 22px 0;
}

.help-subhead {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--aubergine);
  margin-bottom: 14px;
}

/* Contact cards */
.help-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.help-contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.help-contact-card:hover {
  border-color: var(--gold);
  background: var(--aubergine-pale);
  transform: translateY(-1px);
}
.help-contact-card b {
  display: block;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}
.help-contact-card span {
  font-size: 11.5px;
  color: var(--ink-soft);
}
.hc-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(43,0,59,0.08); color: var(--aubergine);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.hc-icon.whatsapp { background: var(--success-bg); color: var(--success); }

/* FAQ accordion */
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:first-of-type { border-top: none; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
}
.faq-q:hover { color: var(--aubergine); }
.faq-q i {
  color: var(--ink-soft);
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q { color: var(--aubergine); font-weight: 600; }
.faq-item.open .faq-q i { transform: rotate(180deg); color: var(--gold-dark); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
}
.faq-a p {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  padding: 0 2px 16px;
}
.faq-item.open .faq-a { max-height: 200px; }

/* Report an issue */
.help-report textarea.plain { resize: vertical; }

.help-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 11px;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .help-contact-grid { grid-template-columns: 1fr; }
}