/* ============================================
   SETTINGS MODULE — ACTGRAM brand design
   ============================================ */

.set-page {
  min-height: 100vh;
  background: linear-gradient(165deg, #F0FAFF 0%, #E8F7FD 45%, #F8FCFF 100%);
  font-family: 'DM Sans', sans-serif;
  padding-bottom: 120px;
}

.set-appbar {
  background: #fff;
  padding: 54px 20px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #E8F7FD;
  box-shadow: 0 1px 4px rgba(0, 35, 71, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

.set-back {
  background: #E8F7FD;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #002347;
  flex-shrink: 0;
}

.set-appbar-title {
  font-size: 18px;
  font-weight: 800;
  color: #002347;
  margin: 0;
  flex: 1;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.set-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
}

.set-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(0, 174, 239, 0.1);
  box-shadow: 0 8px 24px rgba(0, 35, 71, 0.05);
}

.set-card-list { padding: 8px; }

.set-card-click {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.set-section-label {
  font-size: 11px;
  font-weight: 800;
  color: #0095CC;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.set-info-box {
  background: #E8F7FD;
  border: 1px solid rgba(0, 174, 239, 0.25);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.set-info-box i { color: #00AEEF; font-size: 20px; flex-shrink: 0; }
.set-info-box p { font-size: 13px; color: #002347; margin: 0; line-height: 1.5; }

.set-btn-primary {
  width: 100%;
  padding: 16px;
  background: #00AEEF;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 6px 16px rgba(0, 174, 239, 0.28);
}

.set-btn-secondary {
  width: 100%;
  padding: 14px;
  background: #F0FAFF;
  color: #002347;
  border: 1.5px solid #E8F7FD;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

.set-btn-half { flex: 1; width: auto; }
.set-btn-row { display: flex; gap: 10px; }

.set-btn-danger {
  width: 100%;
  padding: 14px;
  background: #DC2626;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

.set-field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #002347;
  margin: 0 0 6px;
}

.set-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #E8F7FD;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 14px;
}

.set-input:focus { border-color: #00AEEF; }
.set-textarea { resize: none; min-height: 90px; }

.set-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.set-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F0FAFF;
}

.set-toggle-row:last-child { border-bottom: none; }

.set-toggle-title { font-size: 14px; font-weight: 700; color: #002347; margin: 0 0 2px; }
.set-toggle-desc { font-size: 11px; color: #64748B; margin: 0; line-height: 1.4; }

.set-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.set-switch-sm { width: 36px; height: 20px; }
.set-switch input { opacity: 0; width: 0; height: 0; }
.set-switch-track {
  position: absolute;
  inset: 0;
  background: #CBD5E1;
  border-radius: 99px;
  cursor: pointer;
  transition: 0.2s;
}
.set-switch-track.on { background: #00AEEF; }
.set-switch-track::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.set-switch-sm .set-switch-track::after { width: 14px; height: 14px; }
.set-switch-track.on::after { transform: translateX(20px); }
.set-switch-sm .set-switch-track.on::after { transform: translateX(16px); }

.set-radio {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #F0FAFF;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  margin-bottom: 8px;
}

.set-radio.active { border-color: #00AEEF; background: #E8F7FD; }
.set-radio input { display: none; }
.set-radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.set-radio.active .set-radio-dot { border-color: #00AEEF; }
.set-radio.active .set-radio-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00AEEF;
}
.set-radio-text strong { display: block; font-size: 13px; color: #002347; }
.set-radio-text small { font-size: 11px; color: #64748B; }

/* Settings hub */
.set-hub {
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.set-profile-card {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(0, 174, 239, 0.12);
  box-shadow: 0 10px 30px rgba(0, 35, 71, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .set-profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 174, 239, 0.12);
  }
}

.set-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 174, 239, 0.25);
}

/* Initials fallback avatar — shown when the user has no profile photo or the
   photo URL fails to load (brand cyan→navy, matches app-wide avatar fallbacks). */
.set-profile-avatar-fb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00AEEF, #002347);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  box-sizing: border-box;
}

.set-profile-meta h3 {
  font-size: 17px;
  font-weight: 800;
  color: #002347;
  margin: 0 0 4px;
}

.set-profile-meta p {
  font-size: 12px;
  color: #64748B;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.set-plan { color: #00AEEF; font-weight: 700; }
.set-dot { width: 4px; height: 4px; border-radius: 50%; background: #CBD5E1; }

.set-profile-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.set-role-badge {
  background: rgba(0, 174, 239, 0.1);
  color: #0095CC;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.set-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 99px;
  text-transform: uppercase;
}
.set-pill-green { background: #DCFCE7; color: #15803D; }
.set-pill-cyan { background: #E8F7FD; color: #0095CC; }

.set-profile-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  display: none;
}

.set-hub-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.set-hub-col { display: flex; flex-direction: column; gap: 8px; }

.set-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .set-item:hover {
    background: rgba(0, 174, 239, 0.06);
    transform: translateX(3px);
  }
}

.set-item:active {
  background: rgba(0, 174, 239, 0.08);
}

.set-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.ic-cyan { background: rgba(0, 174, 239, 0.12); color: #00AEEF; }
.ic-navy { background: rgba(0, 35, 71, 0.08); color: #002347; }
.ic-green { background: rgba(16, 185, 129, 0.12); color: #059669; }
.ic-yellow { background: rgba(255, 193, 7, 0.15); color: #B8860B; }
.ic-gold { background: rgba(255, 193, 7, 0.2); color: #996800; }
.ic-muted { background: #F0FAFF; color: #64748B; }
.ic-red { background: rgba(239, 68, 68, 0.1); color: #DC2626; }

.set-item-label { flex: 1; font-size: 14px; font-weight: 600; color: #002347; }
.set-item-chevron { color: #94A3B8; font-size: 16px; flex-shrink: 0; }
.set-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.set-item-text .set-item-label { flex: initial; }
.set-item-sub { font-size: 11.5px; color: #94A3B8; font-weight: 500; line-height: 1.4; }
.set-item-danger .set-item-label { color: #DC2626; font-weight: 700; }
.set-danger-card { background: #FFF5F5; border-color: rgba(239, 68, 68, 0.15); }
.set-build { text-align: center; font-size: 11px; font-weight: 700; color: #94A3B8; letter-spacing: 1px; text-transform: uppercase; margin: 4px 0 0; }
.set-btn-full { width: 100%; justify-content: center; }
.set-btn-danger-outline {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  background: #fff;
  border: 1.5px solid #FCA5A5;
  border-radius: 12px;
  color: #DC2626;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

@media (min-width: 768px) {
  .set-hub {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    padding: 28px 20px;
    align-items: start;
  }
  .set-hub-sidebar { position: sticky; top: 100px; }
  .set-hub-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: start;
  }
  .set-profile-arrow { display: block; }
  .set-profile-card { padding: 32px 24px; }
}

/* Edit profile media */
.set-media-row { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.set-media-block { text-align: center; }
.set-media-wrap { position: relative; display: inline-block; }
.set-media-wrap img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #00AEEF;
}
.set-media-cover img { width: 120px; height: 80px; border-radius: 12px; border-color: #E8F7FD; }
.set-media-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #00AEEF;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.set-media-btn-muted { background: #002347; }
.set-media-label { font-size: 11px; font-weight: 700; color: #00AEEF; margin-top: 6px; display: block; }

.set-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.set-skill-chip {
  background: #F0FAFF;
  color: #475569;
  border: 1px solid #E8F7FD;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
}
.set-skill-chip.active {
  background: #00AEEF;
  color: #fff;
  border-color: #00AEEF;
}

/* Schedule */
.set-schedule-row {
  display: grid;
  grid-template-columns: 36px 1fr auto 1fr 36px;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid #F0FAFF;
}
.set-schedule-day { font-size: 12px; font-weight: 800; color: #002347; }
.set-schedule-to { font-size: 11px; color: #94A3B8; }
.set-schedule-controls {
  display: contents;
}
.set-select {
  padding: 6px 4px;
  border-radius: 8px;
  border: 1px solid #E8F7FD;
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  color: #002347;
  max-width: 100%;
}

@media (max-width: 767px) {
  .set-schedule-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 12px 0;
  }

  .set-schedule-controls {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 6px;
    align-items: center;
  }

  .set-schedule-day {
    font-size: 13px;
  }

  .set-schedule-row .set-select {
    width: 100%;
    font-size: 12px;
    padding: 8px 6px;
  }
}

/* Subscription page */
#subscription > .set-sub-page {
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}

.set-sub-page {
  min-height: 100%;
  padding-bottom: 32px;
}

.set-sub-page .set-appbar {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.set-sub-scroll {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0 16px 24px;
}

.set-sub-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.set-plan-hero {
  background: linear-gradient(135deg, #002347 0%, #003566 55%, #004080 100%);
  border-radius: 20px;
  padding: 22px 20px;
  color: #ffffff !important;
  box-shadow: 0 10px 32px rgba(0, 35, 71, 0.28);
  border: 1px solid rgba(0, 174, 239, 0.2);
  position: relative;
  overflow: hidden;
}

.set-plan-hero::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.set-plan-hero-premium {
  background: linear-gradient(135deg, #002347 0%, #0095CC 45%, #00AEEF 100%);
}

.set-plan-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.set-plan-hero-label {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85) !important;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.set-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFC107;
  color: #002347 !important;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.set-plan-title {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff !important;
  margin: 0 0 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.set-plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.set-plan-price {
  font-size: 32px;
  font-weight: 900;
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.set-plan-period {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88) !important;
}

.set-plan-meta {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75) !important;
  position: relative;
  z-index: 1;
}

.set-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.set-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.set-benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 174, 239, 0.1);
  color: #00AEEF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.set-benefit-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
}

.set-benefit-text strong {
  font-size: 13px;
  font-weight: 700;
  color: #002347 !important;
}

.set-benefit-text small {
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
}

/* Premium membership banner on Subscription (₹29 community plan) */
.set-premium-banner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.set-premium-why {
  margin: 4px 0 0;
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #002347;
  letter-spacing: -0.02em;
}

.set-premium-lead {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.45;
}

.set-premium-helps {
  margin: 2px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748B;
}

.set-premium-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.set-premium-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #002347;
  line-height: 1.35;
}

.set-premium-checks i {
  color: #059669;
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

.set-premium-closing {
  margin: 2px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  line-height: 1.45;
  font-style: italic;
}

.set-premium-banner .set-btn-upgrade {
  margin-top: 4px;
}

.set-bill-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.set-bill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #F0FAFF;
  border-radius: 12px;
  border: 1px solid rgba(0, 174, 239, 0.08);
}

.set-bill-info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #002347 !important;
}

.set-bill-info span {
  display: block;
  font-size: 11px;
  color: #94A3B8;
  margin-top: 2px;
}

.set-bill-amt {
  font-size: 15px;
  font-weight: 800;
  color: #00AEEF !important;
}

.set-bill-empty {
  text-align: center;
  padding: 24px 16px;
  color: #94A3B8;
}

.set-bill-empty i {
  font-size: 32px;
  color: #CBD5E1;
  display: block;
  margin-bottom: 8px;
}

.set-bill-empty p {
  font-size: 13px;
  margin: 0;
  font-weight: 600;
}

.set-sub-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.set-btn-cancel-sub {
  width: 100%;
  padding: 14px;
  background: #fff;
  color: #DC2626 !important;
  border: 1.5px solid #FECACA;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s, border-color 0.2s;
}

.set-btn-cancel-sub:hover {
  background: #FEF2F2;
  border-color: #FCA5A5;
}

.set-btn-cancel-sub:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.set-btn-upgrade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.set-btn-upgrade i {
  color: #FFC107;
}

/* Legacy subscription styles (keep for compatibility) */
.set-plan-hero h2 { font-size: 24px; font-weight: 900; margin: 6px 0 8px; color: #fff !important; }
.set-plan-hero p { font-size: 13px; margin: 0; color: rgba(255,255,255,0.9) !important; }
.set-benefits { list-style: none; padding: 0; margin: 0; }
.set-benefits li { display: flex; gap: 8px; font-size: 13px; color: #002347; padding: 6px 0; }
.set-benefits i { color: #059669; }
.set-empty { text-align: center; color: #94A3B8; font-size: 13px; padding: 12px; margin: 0; }

/* Verification */
.set-badge { font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 99px; }
.set-badge-muted { background: #F0FAFF; color: #64748B; }
.set-badge-warn { background: #FEF3C7; color: #B45309; }
.set-badge-ok { background: #DCFCE7; color: #15803D; }
.set-badge-danger { background: #FEE2E2; color: #DC2626; }
.set-verify-hero { text-align: center; }
.set-verify-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #E8F7FD; color: #00AEEF;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 14px;
}
.set-verify-hero h2 { font-size: 20px; font-weight: 800; color: #002347; margin: 0 0 8px; }
.set-verify-hero p { font-size: 14px; color: #64748B; margin: 0; line-height: 1.5; }
.set-reject-note { margin-top: 12px; background: #FEE2E2; color: #B91C1C; padding: 10px; border-radius: 10px; font-size: 12px; }
.set-verified-banner {
  display: flex; gap: 12px; align-items: center;
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border: 1px solid #A7F3D0; border-radius: 16px; padding: 16px;
}
.set-verified-banner i { font-size: 28px; color: #059669; }
.set-verified-banner strong { display: block; color: #065F46; }
.set-verified-banner span { font-size: 12px; color: #059669; }

/* Help / FAQ */
.set-search-wrap { position: relative; }
.set-search-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94A3B8; }
.set-search-wrap .set-input { padding-left: 38px; margin-bottom: 0; }
.set-faq { border-bottom: 1px solid #F0FAFF; }
.set-faq-q {
  width: 100%; background: none; border: none; padding: 12px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 700; color: #002347; cursor: pointer; text-align: left;
}
.set-faq-a { display: none; font-size: 12px; color: #64748B; line-height: 1.5; margin: 0 0 12px; }
.set-faq.open .set-faq-a { display: block; }
.set-faq.open .set-faq-q i { transform: rotate(180deg); }

/* Terms tabs */
.set-tabs {
  display: flex; gap: 6px; padding: 4px;
  background: #E8F7FD; border-radius: 10px; margin-bottom: 4px;
}
.set-tabs button {
  flex: 1; padding: 8px; border: none; border-radius: 8px;
  font-size: 11px; font-weight: 700; cursor: pointer;
  background: transparent; color: #64748B; font-family: 'DM Sans', sans-serif;
}
.set-tabs button.active { background: #fff; color: #002347; box-shadow: 0 1px 4px rgba(0,35,71,0.08); }
.set-doc h3 { font-size: 15px; font-weight: 800; color: #002347; margin: 0 0 4px; }
.set-doc-date { font-size: 11px; color: #94A3B8; margin: 0 0 12px; }
.set-doc-body { font-size: 13px; color: #475569; line-height: 1.6; max-height: 280px; overflow-y: auto; }

/* Logout modal */
.set-logout-overlay {
  min-height: 100vh;
  background: rgba(0, 35, 71, 0.55);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 54px 20px;
}
.set-logout-modal {
  background: #fff; border-radius: 24px; padding: 28px 24px;
  max-width: 340px; width: 100%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  display: flex; flex-direction: column; gap: 10px;
}
.set-logout-avatar { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 2.5px solid #DC2626; margin: 0 auto 8px; display: block; box-sizing: border-box; }
/* Initials fallback when logout avatar is missing or fails to load. */
.set-logout-avatar-fb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00AEEF, #002347);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
}
.set-logout-modal h2 { font-size: 20px; font-weight: 800; color: #002347; margin: 0; }
.set-logout-modal p { font-size: 13px; color: #64748B; margin: 0 0 8px; line-height: 1.5; }

/* Safety center */
.set-appbar-badge {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #00AEEF;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0,174,239,0.3);
}
.set-appbar-badge i { font-size: 20px; color: #fff; }

.set-safety-score { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.set-score-val { font-size: 22px; font-weight: 800; color: #0F172A; margin: 4px 0; }
.set-score-val span { font-size: 14px; font-weight: 700; margin-left: 4px; }
.set-score-ring { position: relative; width: 68px; height: 68px; flex-shrink: 0; }
.set-score-ring svg { width: 68px; height: 68px; transform: rotate(-90deg); }
.set-score-ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }

.set-panic-card {
  background: linear-gradient(135deg, #FEF2F2, #FFF5F5);
  border: 1.5px solid #FEE2E2;
  border-radius: 20px; padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
}
.set-panic-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(220,38,38,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.set-panic-icon i { font-size: 26px; color: #DC2626; }
.set-panic-text { flex: 1; min-width: 0; }
.set-panic-card h3 { font-size: 15px; font-weight: 800; color: #0F172A; margin: 0 0 3px; }
.set-panic-card p { font-size: 12px; color: #64748B; margin: 0; line-height: 1.4; }
.set-panic-card .set-btn-danger {
  width: auto;
  flex-shrink: 0;
  padding: 12px 18px;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .set-panic-card { flex-wrap: wrap; }
  .set-panic-card .set-btn-danger { width: 100%; }
}

.set-safety-banner {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, var(--brand-cyan-light, #E8F7FD), #F0FAFF);
  border: 1px solid rgba(0,174,239,0.16);
  border-radius: 20px;
  padding: 18px 20px;
}
.set-safety-banner-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,174,239,0.18);
}
.set-safety-banner-icon i { font-size: 22px; color: var(--brand-cyan, #00AEEF); }
.set-safety-banner-text { flex: 1; min-width: 0; }
.set-safety-banner-text h4 { font-size: 14px; font-weight: 800; color: var(--brand-navy, #002347); margin: 0 0 2px; }
.set-safety-banner-text p { font-size: 12px; color: #64748B; margin: 0; line-height: 1.4; }

.set-text-ok { color: #059669; }
.set-text-warn { color: #D97706; }
.set-text-danger { color: #DC2626; }
.set-dl-icon { font-size: 20px; color: #00AEEF; }

/* Security screens override */
.sec-page, .pwd-page {
  min-height: 100vh;
  background: linear-gradient(165deg, #F0FAFF 0%, #E8F7FD 45%, #F8FCFF 100%) !important;
  font-family: 'DM Sans', sans-serif;
  padding-bottom: 120px;
}
.sec-card, .pwd-card {
  background: #fff !important;
  border-radius: 20px !important;
  border: 1px solid rgba(0, 174, 239, 0.12) !important;
  box-shadow: 0 8px 24px rgba(0, 35, 71, 0.05) !important;
}
.sec-btn-primary, .pwd-btn {
  background: #00AEEF !important;
  box-shadow: 0 6px 16px rgba(0, 174, 239, 0.28) !important;
}

/* ===== Edit Profile — scroll-safe layout (no fixed footer inside .screen) ===== */
#edit-profile > .set-edit-page {
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}

.set-edit-page {
  min-height: 100%;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.set-edit-page .set-appbar {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.set-edit-scroll {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 16px;
}

/* Hero card — cover + centered profile */
.set-edit-hero-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 174, 239, 0.12);
  box-shadow: 0 8px 28px rgba(0, 35, 71, 0.06);
  margin-bottom: 12px;
}

.set-edit-hero {
  position: relative;
  margin-bottom: 8px;
}

.set-edit-cover-wrap {
  position: relative;
  width: 100%;
  height: 168px;
  overflow: hidden;
  /* Match profile cover brand gradient (cyan → navy). */
  background: linear-gradient(135deg, #00AEEF 0%, #0095CC 55%, #002347 100%);
}

.set-edit-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.set-edit-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 35, 71, 0.35) 100%);
  pointer-events: none;
}

.set-edit-cover-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #002347;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 35, 71, 0.15);
  z-index: 10;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}

.set-edit-profile-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px 20px;
  margin-top: -52px;
  position: relative;
  z-index: 3;
}

.set-edit-avatar-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  flex-shrink: 0;
  margin-bottom: 12px;
}

.set-edit-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid #fff;
  box-shadow: 0 6px 20px rgba(0, 35, 71, 0.15);
  display: block;
  background: #E8F7FD;
  cursor: pointer;
}

.set-edit-avatar-btn {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #00AEEF;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 174, 239, 0.4);
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}

.set-edit-hero-name {
  font-size: 20px;
  font-weight: 800;
  color: #002347 !important;
  margin: 0 0 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 100%;
  word-break: break-word;
}

.set-edit-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 6px;
}

.set-edit-role-pill {
  background: rgba(0, 174, 239, 0.1);
  color: #0095CC;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.set-edit-avail-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.set-edit-avail-available { background: #DCFCE7; color: #15803D; }
.set-edit-avail-busy { background: #FEF3C7; color: #B45309; }
.set-edit-avail-unavailable { background: #FEE2E2; color: #DC2626; }
.set-edit-avail-frozen { background: #FEE2E2; color: #991B1B; }

.set-edit-hero-handle {
  font-size: 14px;
  font-weight: 600;
  color: #00AEEF !important;
  margin-bottom: 12px;
}

.set-handle-missing {
  color: #64748B !important;
  font-weight: 500;
  font-size: 13px;
}

.set-edit-change-photo-btn {
  background: #F0FAFF;
  border: 1px solid rgba(0, 174, 239, 0.2);
  color: #002347;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 99px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}

.set-edit-change-photo-btn:hover {
  background: #E8F7FD;
}

.set-edit-change-photo-btn i {
  color: #00AEEF;
  font-size: 14px;
}

/* Legacy side-by-side row — hide if present */
.set-edit-avatar-row,
.set-edit-hero-text {
  display: none;
}

.set-edit-photo-hint {
  display: none;
}

.set-edit-body {
  padding: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.set-edit-progress {
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 174, 239, 0.1);
}

.set-edit-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 6px;
}

.set-edit-progress-top strong {
  color: #00AEEF;
  font-size: 13px;
}

.set-edit-progress-bar {
  height: 5px;
  background: #E8F7FD;
  border-radius: 99px;
  overflow: hidden;
}

.set-edit-progress-bar div {
  height: 100%;
  background: #00AEEF;
  border-radius: 99px;
}

/* Field groups — consistent spacing, no overlap */
.set-edit-page .set-field-group {
  margin-bottom: 14px;
}

.set-edit-page .set-field-group-last {
  margin-bottom: 0;
}

.set-edit-page .set-input {
  margin-bottom: 0;
}

.set-edit-page .set-input-prefix-wrap {
  margin-bottom: 0;
}

.set-edit-page .set-card {
  padding: 16px;
}

.set-edit-page .set-section-label {
  margin-bottom: 14px;
}

.set-edit-page .set-grid-2 {
  gap: 12px;
}

.set-edit-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  margin-top: 4px;
}

.set-edit-actions .set-btn-primary {
  margin: 0;
}

.set-btn-ghost {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: none;
  color: #64748B;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

.set-btn-ghost:hover {
  color: #002347;
}

.set-portfolio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.set-edit-page .set-toggle-desc {
  margin: 0 0 4px;
}

@media (max-width: 480px) {
  .set-edit-page .set-grid-2,
  .set-edit-page .set-grid-gender {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .set-edit-cover-wrap {
    height: 200px;
  }

  .set-edit-profile-block {
    margin-top: -56px;
  }
}

/* Remove old fixed footer */
.set-edit-footer {
  display: none !important;
}

/* Shared form helpers (all settings screens) */
.set-input-prefix-wrap {
  position: relative;
}

.set-input-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
  color: #00AEEF;
  z-index: 1;
}

.set-input-prefixed {
  padding-left: 32px !important;
}

.set-input-readonly {
  background: #F0FAFF !important;
  color: #64748B !important;
  cursor: not-allowed;
}

.set-select-full {
  appearance: auto;
}

.set-field-hint {
  font-weight: 500;
  color: #94A3B8;
  font-size: 11px;
}

.set-lang-chip {
  background: #F0FAFF;
  color: #475569;
  border: 1px solid #E8F7FD;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
}

.set-lang-chip.active {
  background: linear-gradient(135deg, #002347, #003566);
  color: #fff;
  border-color: #002347;
}

.set-frozen-banner {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  color: #991B1B;
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.set-frozen-banner i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.set-toggle-required {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #059669;
  background: #D1FAE5;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
}

.set-logout-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 35, 71, 0.55);
  backdrop-filter: blur(8px);
}

.set-logout-screen .set-logout-overlay {
  min-height: auto;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  padding: 20px;
}
