.profile-page {
  padding-top: 18px;
}

/* Header card */
.profile-head {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.head-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-wrap {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  border: 6px solid rgba(47, 125, 50, 0.22);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}

.profile-avatar {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  object-fit: cover;
}

.head-meta h2 {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 900;
  color: #111827;
}

.head-meta p {
  margin: 0 0 10px;
  color: #6b7280;
  font-weight: 700;
}

.member {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-weight: 750;
  font-size: 13px;
}

.btn-outline {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #374151;
}

.btn-outline:hover {
  background: #f9fafb;
}

/* Tabs */
.tabs-row {
  margin: 14px 0 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tab-pill {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  color: #6b7280;
}

.tab-pill.is-active {
  background: #eef8f0;
  border-color: #2f7d32;
  color: #2f7d32;
}

/* Panels */
.panel {
  display: none;
}

.panel.is-active {
  display: block;
}

.section-title {
  margin: 14px 0 10px;
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}

/* Form card */
.form-card {
  padding: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 850;
  color: #6b7280;
  font-size: 13px;
}

.field input,
.field textarea,
.select select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-weight: 750;
  font-size: 14px;
  color: #111827;
}

.field textarea {
  resize: vertical;
  min-height: 92px;
}

.field input:focus,
.field textarea:focus,
.select select:focus {
  outline: none;
  border-color: #2f7d32;
}

.field--full {
  grid-column: 1 / -1;
}

/* Select */
.select {
  position: relative;
}
.select select {
  appearance: none;
}
.select .chev {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-weight: 900;
  pointer-events: none;
}

/* Form actions */
.form-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-ghost {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
  color: #6b7280;
}

.btn-primary {
  border: 0;
  background: #2f7d32;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
  color: #fff;
  min-width: 160px;
}

.btn-primary:hover {
  background: #256628;
}

.save-msg {
  margin: 12px 0 0;
  min-height: 18px;
  font-weight: 800;
  color: #2f7d32;
}

/* Placeholder cards */
.placeholder {
  padding: 16px;
  color: #6b7280;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {
  .profile-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .head-right {
    width: 100%;
  }
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary,
  .btn-ghost {
    width: 100%;
  }
}

/* ===== Notification Settings (match screenshot) ===== */
.notify-card {
  padding: 0;
  overflow: hidden;
  margin-bottom: 14px;
}

.notify-card__head {
  padding: 14px 16px;
  font-weight: 900;
  font-size: 18px;
  color: #111827;
  border-bottom: 1px solid #eef0f5;
  background: #fff;
}

.notify-row {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.notify-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.notify-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #2f7d32;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 auto;
}

.notify-text {
  min-width: 0;
}

.notify-text h4 {
  margin: 0 0 4px;
  font-weight: 900;
  color: #111827;
  font-size: 16px;
}

.notify-text p {
  margin: 0;
  color: #6b7280;
  font-weight: 700;
  font-size: 13px;
}

.notify-divider {
  height: 1px;
  background: #eef0f5;
  margin: 0 16px;
}

/* Toggle switch (keep yours if already same) */
.switch {
  position: relative;
  width: 56px;
  height: 32px;
  flex: 0 0 auto;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: #bdbdbd;
  border-radius: 999px;
  transition: 0.2s ease;
}

.slider::before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 999px;
  transition: 0.2s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.switch input:checked + .slider {
  background: #2f7d32;
}
.switch input:checked + .slider::before {
  transform: translateX(24px);
}

/* Buttons row matches screenshot */
.notify-actions {
  margin-top: 10px;
}

/* Mobile: keep rows clean */
@media (max-width: 640px) {
  .notify-row {
    gap: 12px;
  }
  .notify-text h4 {
    font-size: 15px;
  }
  .notify-ico {
    width: 40px;
    height: 40px;
  }
}

/* ===== Account Actions (match screenshot) ===== */
.account-card {
  padding: 0;
  overflow: hidden;
}

.account-head {
  padding: 18px 18px 10px;
}

.account-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}

.account-line {
  height: 1px;
  background: #eef0f5;
  margin: 0 18px 10px;
}

.action-row {
  width: calc(100% - 36px);
  margin: 12px 18px 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}

.action-left {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.action-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 900;
}

.action-title {
  font-weight: 900;
  color: #111827;
  font-size: 16px;
}

.action-right {
  font-size: 22px;
  color: #9ca3af;
  font-weight: 900;
}

/* Delete row styling */
.action-row--danger {
  border: 1px solid #fca5a5;
  background: #fdecec;
}

.action-icon--danger {
  background: transparent;
  color: #ef4444;
}

.action-title--danger {
  color: #ef4444;
}

.action-right--danger {
  color: #ef4444;
}

/* Logout big button */
.logout-wide {
  width: calc(100% - 36px);
  margin: 16px 18px 18px;
  border: 0;
  border-radius: 12px;
  background: #2f7d32;
  color: #fff;
  padding: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
}

.logout-wide:hover {
  background: #256628;
}

.logout-ico {
  font-weight: 900;
  opacity: 0.95;
}

/* Modal (same as earlier if you already added it) */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  display: grid;
  place-items: center;
  z-index: 60;
  padding: 16px;
}

.modal-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eef0f5;
  padding: 16px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 720px) {
  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
