/* Admin Members: country/mobile, DOB calendar, password eye */
.member-form-grid-pro {
  align-items: start;
}

.phone-label-pro,
.member-form-grid-pro label {
  min-width: 0;
}

.phone-field-pro,
.date-field-pro,
.password-field-member-pro {
  display: grid;
  grid-template-columns: minmax(150px, .55fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.phone-field-pro input,
.date-field-pro input,
.password-field-member-pro input {
  width: 100%;
  min-width: 0;
}

.country-code-input {
  font-weight: 800;
  color: #0f172a;
  background:
    linear-gradient(135deg, rgba(28,124,84,.06), transparent),
    #fff;
}

.phone-number-input {
  letter-spacing: .01em;
}

.date-field-pro,
.password-field-member-pro {
  grid-template-columns: minmax(0, 1fr) 48px;
  position: relative;
}

.native-date-pro {
  position: absolute;
  right: 0;
  top: 100%;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

.field-icon-btn {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 15px;
  background: #fff;
  color: #334155;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.field-icon-btn:hover {
  background: #f8fafc;
  border-color: rgba(28,124,84,.35);
  color: #1c7c54;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(16,24,40,.08);
}

.field-icon-btn svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.password-eye-member .eye-closed {
  display: none;
}

.password-eye-member.is-visible .eye-open {
  display: none;
}

.password-eye-member.is-visible .eye-closed {
  display: block;
}

.phone-label-pro small {
  display: block;
  margin-top: 6px;
  font-size: .78rem;
}

@media (max-width: 860px) {
  .phone-field-pro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .date-field-pro,
  .password-field-member-pro {
    grid-template-columns: minmax(0, 1fr) 46px;
  }
  .field-icon-btn {
    width: 46px;
    height: 46px;
  }
}


/* Profile edit fix + professional country selector */
.country-select-pro {
  position: relative;
  min-width: 0;
}

.country-select-btn {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(28,124,84,.06), transparent),
    #fff;
  color: #0f172a;
  font-weight: 900;
  padding: 0 12px;
  cursor: pointer;
  text-align: left;
}

.country-select-btn span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.country-select-btn:hover,
.country-select-btn[aria-expanded="true"] {
  border-color: rgba(28,124,84,.35);
  box-shadow: 0 10px 28px rgba(28,124,84,.10);
}

.country-dropdown-pro {
  position: absolute;
  z-index: 5000;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, 88vw);
  padding: 10px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15,23,42,.20);
}

.country-search-pro {
  width: 100%;
  margin-bottom: 8px;
  height: 42px;
  border-radius: 13px;
}

.country-options-pro {
  display: grid;
  gap: 4px;
  max-height: 240px;
  overflow: auto;
}

.country-option-pro {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 13px;
  background: #fff;
  padding: 10px 11px;
  cursor: pointer;
  text-align: left;
  color: #0f172a;
}

.country-option-pro:hover,
.country-option-pro.is-selected {
  background: #ecfdf3;
}

.country-option-pro span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-option-pro strong {
  color: #0f7f55;
}

.country-empty {
  margin: 8px;
}

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

.profile-info-card-pro {
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(28,124,84,.07), transparent 34%),
    #fff;
  border: 1px solid rgba(15,23,42,.08);
}

.profile-info-card-pro h4 {
  margin: 0 0 14px;
  font-size: 1.02rem;
  letter-spacing: -.02em;
}

.profile-field-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(15,23,42,.07);
}

.profile-field-row:first-of-type {
  border-top: 0;
}

.profile-field-row span {
  color: #64748b;
  font-size: .82rem;
  font-weight: 900;
}

.profile-field-row strong {
  color: #0f172a;
  font-size: .92rem;
  overflow-wrap: anywhere;
}

.profile-field-row-block {
  grid-template-columns: 1fr;
  gap: 5px;
}

.member-profile-hero-pro {
  align-items: center;
}

#memberFormModal {
  z-index: 2100;
}

#memberProfileModal {
  z-index: 2000;
}

@media (max-width: 980px) {
  .profile-full-info-grid {
    grid-template-columns: 1fr;
  }
  .profile-field-row {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .profile-field-row {
    grid-template-columns: 1fr;
  }
}


/* Member profile/edit: multi-group assignment */
.member-groups-editor-card {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(28,124,84,.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(28,124,84,.08), transparent 32%),
    #fff;
  box-shadow: 0 14px 38px rgba(16,24,40,.05);
}

.member-groups-editor-card .mini-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.member-groups-editor-card .mini-section-head strong,
.member-groups-editor-card .mini-section-head span {
  display: block;
}

.member-groups-editor-card .mini-section-head strong {
  color: #0f172a;
  font-size: 1.05rem;
}

.member-groups-editor-card .mini-section-head span {
  color: #64748b;
  margin-top: 4px;
  font-size: .88rem;
  line-height: 1.45;
}

.member-groups-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.member-group-search {
  width: 100%;
  margin-bottom: 12px;
  border-radius: 16px;
}

.member-group-selected-zone {
  min-height: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px dashed rgba(28,124,84,.25);
  border-radius: 18px;
  background: linear-gradient(135deg, #f0fdf4, #fff);
  margin-bottom: 12px;
}

.member-group-chip {
  border: 1px solid rgba(28,124,84,.20);
  background: #dcfae6;
  color: #0f7f55;
  border-radius: 999px;
  padding: 7px 9px 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  cursor: pointer;
  max-width: 100%;
}

.member-group-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-group-chip b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(15,127,85,.12);
}

.member-groups-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.member-group-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  background: #fbfdff;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.member-group-option:hover {
  background: #f5fff9;
  border-color: rgba(28,124,84,.28);
  transform: translateY(-1px);
}

.member-group-option.is-selected {
  background: #ecfdf3;
  border-color: rgba(28,124,84,.34);
}

.member-group-option input {
  width: 18px;
  height: 18px;
  accent-color: #1c7c54;
}

.member-group-option strong,
.member-group-option small {
  display: block;
}

.member-group-option strong {
  color: #0f172a;
}

.member-group-option small {
  margin-top: 3px;
  color: #64748b;
  font-size: .8rem;
  line-height: 1.35;
}

.member-group-option em {
  font-style: normal;
  color: #0f7f55;
  font-weight: 900;
  font-size: .78rem;
}

.member-groups-empty {
  grid-column: 1/-1;
  padding: 22px;
  border-radius: 18px;
  background: #f8fafc;
  text-align: center;
}

.member-groups-empty strong,
.member-groups-empty small {
  display: block;
}

.member-groups-empty small {
  color: #64748b;
  margin-top: 4px;
}

.profile-groups-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-group-pill {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #0f7f55;
  border: 1px solid rgba(28,124,84,.20);
  font-weight: 900;
  font-size: .84rem;
}

@media (max-width: 720px) {
  .member-groups-editor-card .mini-section-head {
    flex-direction: column;
  }
  .member-groups-actions {
    width: 100%;
  }
  .member-groups-actions .btn {
    flex: 1;
  }
  .member-groups-checklist {
    grid-template-columns: 1fr;
  }
}
