:root {
  --member-primary: #1d8f4e;
  --member-primary-dark: #156f3c;
  --member-accent: #d7f3e3;
  --member-surface: #f8fcf9;
  --member-border: #dce6df;
  --member-text-muted: #5f6f66;
}

.member-page {
  background:
    radial-gradient(900px 280px at 20% 0%, #eaf9f0 0%, transparent 60%),
    radial-gradient(700px 260px at 85% 12%, #eefaf3 0%, transparent 65%),
    #f5f8f6;
  min-height: calc(100vh - 180px);
}

.member-hero {
  padding: 136px 0 70px;
}

.member-card {
  border: 1px solid var(--member-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(19, 42, 28, 0.08);
  overflow: hidden;
}

.member-card-header {
  background: linear-gradient(135deg, #ffffff 0%, var(--member-surface) 100%);
  border-bottom: 1px solid var(--member-border);
  padding: 22px 26px;
}

.member-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.member-title-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--member-accent);
  color: var(--member-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.member-card-header h2 {
  margin: 0;
  font-size: 1.75rem;
  color: #1f2b24;
}

.member-subtitle {
  margin: 2px 0 0;
  color: var(--member-text-muted);
}

.member-secure {
  color: var(--member-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.member-card-body {
  padding: 28px 26px 30px;
}

.nin-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
}

.nin-row .form-control {
  flex: 1 1 auto;
  min-width: 0;
}

.verify-btn {
  flex: 0 0 auto;
  min-width: 138px;
  position: relative;
}

.verify-btn.is-loading {
  pointer-events: none;
  opacity: 0.9;
}

.verify-btn.is-loading::after {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  margin-left: 0.55rem;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  vertical-align: -0.15em;
  animation: member-spin 0.75s linear infinite;
}

.status-badge.is-loading {
  background: #fff3cd;
  color: #8a6d1f;
}

@keyframes member-spin {
  to {
    transform: rotate(360deg);
  }
}

.muted-help {
  color: #73857b;
  font-size: 0.93rem;
}

.photo-wrap {
  margin: 26px 0 10px;
  text-align: center;
}

.provider-photo-wrap {
  margin-top: 22px;
}

.provider-photo-wrap .photo-note {
  font-weight: 500;
}

.photo-preview {
  width: 188px;
  height: 188px;
  border-radius: 50%;
  border: 2px dashed #9bd4b4;
  background: linear-gradient(160deg, #f3faf6 0%, #eff8f2 100%);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #8fbea5;
  font-size: 2.1rem;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-btn {
  border: 2px solid var(--member-primary);
  color: var(--member-primary);
  font-weight: 600;
}

.photo-note {
  color: #7f8e86;
  margin-top: 10px;
}

.member-divider {
  border-top: 1px solid var(--member-border);
  margin: 26px 0;
}

.form-label {
  font-weight: 600;
  color: #203127;
}

.form-control,
.form-select {
  border-radius: 12px;
  border: 1px solid #d6e3d9;
  padding: 0.7rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #86ca9f;
  box-shadow: 0 0 0 0.2rem rgba(29, 143, 78, 0.15);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 50px;
  padding: 6px 12px;
  font-size: 0.86rem;
  font-weight: 600;
}

.status-badge.is-success {
  background: #e9f8f0;
  color: #177445;
}

.status-badge.is-info {
  background: #eef4f6;
  color: #496b78;
}

.status-badge.is-error {
  background: #fdecee;
  color: #9a1b2f;
}

.nin-inline-alert {
  border: 1px solid #f4c9d0;
  background: #fff2f4;
  color: #8f1e2f;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .member-hero {
    padding: 124px 0 56px;
  }

  .member-card-header,
  .member-card-body {
    padding: 20px;
  }

  .member-card-header h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 575.98px) {
  .nin-row {
    flex-wrap: wrap;
  }

  .verify-btn {
    width: 100%;
  }

  .photo-preview {
    width: 152px;
    height: 152px;
  }
}
