/* ============================================================
   Profile (내정보) + Notifications · night theme
   ============================================================ */
.profile-screen, .notif-screen {
  align-items: stretch;
  text-align: left;
  padding: 14px 18px 24px;
  overflow-y: auto;
}
.profile-screen::-webkit-scrollbar, .notif-screen::-webkit-scrollbar { display: none; }

/* Header */
.pf-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0 18px;
}
.pf-avatar { flex: 0 0 auto; }
.pf-meta { flex: 1; min-width: 0; }
.pf-name {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.6px;
}
.pf-email {
  font-size: 12.5px;
  color: #B6C2E2;
  margin-top: 2px;
  letter-spacing: -0.2px;
}
.pf-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: #FFE08A;
  background: rgba(240,207,106,0.12);
  border: 1px solid rgba(240,207,106,0.35);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: -0.2px;
}

/* Level bar */
.pf-level {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  backdrop-filter: blur(6px);
}
.pf-level-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.pf-level-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}
.pf-level-xp { font-size: 12px; color: #B6C2E2; }
.pf-level-xp strong { color: #FFE08A; font-size: 14px; font-weight: 900; }
.pf-bar {
  height: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  overflow: hidden;
}
.pf-fill {
  height: 100%;
  background: linear-gradient(90deg, #F0CF6A 0%, #FFE08A 100%);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255,220,120,0.5);
}
.pf-next {
  font-size: 11.5px;
  color: #B6C2E2;
  margin-top: 8px;
  letter-spacing: -0.2px;
}
.pf-next strong { color: #FFE08A; font-weight: 800; }

/* Stats */
.pf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.pf-stat {
  text-align: center;
  padding: 12px 4px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
}
.pfs-icon { font-size: 20px; line-height: 1; }
.pfs-num {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.4px;
  margin-top: 4px;
}
.pfs-label {
  font-size: 10.5px;
  color: #B6C2E2;
  margin-top: 2px;
  letter-spacing: -0.2px;
}

/* Menu */
.pf-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.pf-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background .12s;
}
.pf-menu-item:hover { background: rgba(255,255,255,0.1); }
.pfm-icon { font-size: 20px; flex: 0 0 auto; }
.pfm-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pfm-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.pfm-desc {
  font-size: 11.5px;
  color: #B6C2E2;
  letter-spacing: -0.2px;
}
.pfm-chev { color: rgba(255,255,255,0.4); flex: 0 0 auto; }

.pf-logout {
  width: 100%;
  padding: 13px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  color: #B6C2E2;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  cursor: pointer;
  margin-bottom: 8px;
}
.pf-logout:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* ============================================================
   Notifications
   ============================================================ */
.notif-readall {
  background: transparent;
  border: none;
  color: #FFE08A;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
  cursor: pointer;
  padding: 8px;
  white-space: nowrap;
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}
.notif-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background .12s;
}
.notif-item.unread {
  background: rgba(240,207,106,0.08);
  border-color: rgba(240,207,106,0.25);
}
.notif-item:hover { background: rgba(255,255,255,0.09); }
.notif-icon {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 19px;
}
.notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.notif-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #FF6F8E;
  flex: 0 0 auto;
}
.notif-text {
  font-size: 12.5px;
  color: #B6C2E2;
  letter-spacing: -0.2px;
  line-height: 1.5;
}
.notif-time {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

/* =================== Settings detail =================== */
/* welcome-shell defaults to centered (for the welcome screen); the settings
   detail needs full-width, left-aligned layout like the home/donation screens. */
.welcome-shell.settings-screen {
  align-items: stretch;
  text-align: left;
  padding: 14px 0 40px;
}
.settings-screen .home-night-topbar { padding: 0 18px; margin-bottom: 6px; }
.settings-screen .set-body { padding: 6px 20px 40px; display: flex; flex-direction: column; gap: 16px; }
.set-group {
  background: rgba(22,33,68,0.6); border: 1px solid rgba(180,196,240,0.14);
  border-radius: 16px; overflow: hidden;
}
.set-row, .set-subrow {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border-top: 1px solid rgba(180,196,240,0.08);
}
.set-row:first-child, .set-subrow:first-child { border-top: none; }
.set-subrow { flex-direction: column; align-items: stretch; gap: 10px; background: rgba(255,255,255,0.02); }
.set-rl { flex: 1; }
.set-rt { font-size: 15.5px; font-weight: 700; color: #EAEFFB; letter-spacing: -0.3px; }
.set-rd { font-size: 12.5px; color: #9AA5C2; margin-top: 3px; letter-spacing: -0.2px; }
/* toggle */
.set-switch {
  flex: 0 0 auto; width: 46px; height: 28px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255,255,255,0.16); position: relative; transition: background .2s;
}
.set-switch.on { background: #FFC529; }
.set-knob {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.set-switch.on .set-knob { transform: translateX(18px); }
/* time chips */
.set-times { display: flex; gap: 8px; }
.set-chip {
  flex: 1; padding: 9px 0; border-radius: 10px; border: 1px solid rgba(180,196,240,0.18);
  background: rgba(255,255,255,0.03); color: #C3CCE2; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: all .15s;
}
.set-chip.on { border-color: #FFC529; background: rgba(255,197,41,0.14); color: #FFE6A8; }
/* theme radio */
.set-radio {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; cursor: pointer;
  background: none; border: none; border-top: 1px solid rgba(180,196,240,0.08); text-align: left;
}
.set-radio:first-child { border-top: none; }
.set-remoji { font-size: 22px; flex: 0 0 auto; }
.set-radio .set-rl { display: flex; flex-direction: column; }
.set-radio-dot {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(180,196,240,0.35); position: relative;
}
.set-radio-dot.on { border-color: #FFC529; }
.set-radio-dot.on::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #FFC529; }
/* backup */
.set-backup-card {
  background: rgba(22,33,68,0.6); border: 1px solid rgba(180,196,240,0.14); border-radius: 16px;
  padding: 26px 20px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.sbc-icon { font-size: 40px; }
.sbc-stat { font-size: 12.5px; color: #9AA5C2; margin-top: 12px; }
.sbc-time { font-size: 17px; font-weight: 800; color: #EAEFFB; margin-top: 2px; }
.sbc-btn {
  margin-top: 18px; border: none; cursor: pointer; border-radius: 12px; padding: 13px 28px; font-weight: 800; font-size: 14.5px;
  background: linear-gradient(135deg,#FFD874,#FBC02D); color: #3A2A05; transition: transform .1s;
}
.sbc-btn.done { background: rgba(84,208,138,0.18); color: #54D08A; }
.sbc-btn:active { transform: scale(0.97); }
.set-note { text-align: center; font-size: 12px; color: #6E7AA0; letter-spacing: -0.2px; }
/* help / faq */
.set-faq { padding: 16px 18px; border-top: 1px solid rgba(180,196,240,0.08); text-align: left; }
.set-faq:first-child { border-top: none; }
.set-faq-q { font-size: 14.5px; font-weight: 700; color: #EAEFFB; letter-spacing: -0.3px; }
.set-faq-a { font-size: 13px; color: #9AA5C2; margin-top: 6px; line-height: 1.55; letter-spacing: -0.2px; }
.set-contact {
  width: 100%; border: 1px solid rgba(255,197,41,0.3); background: rgba(255,197,41,0.1); color: #FFE6A8;
  border-radius: 14px; padding: 15px; font-weight: 800; font-size: 14.5px; cursor: pointer; letter-spacing: -0.2px;
}
.set-contact:active { transform: scale(0.99); }
