/* frontend/me/me.css */

/* Page base */
.mePage{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Top bar like the screenshot */
.meTopBar{
  height: 50px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.meTopBar__back{
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  cursor: pointer;
}
.meTopBar__title{
  margin: 0;
  font-size: x-large;
  font-weight: 900;
  letter-spacing: -0.2px;
  color: var(--text);
}
.meTopBar__logout{
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  cursor: pointer;
  visibility: hidden; /* 👈 key */
}
.meTopBar__logout.is-visible{
  visibility: visible;
}

.meTopBar__logout:active{ transform: scale(0.98); }

/* Header section */
.meHeader{
  background: #fff;
  padding: 18px 14px 16px;
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Circle avatar placeholder */
.meAvatar{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(15,23,42,0.08);
  display:flex;
  align-items:center;
  justify-content:center;
}
.meAvatar i{
  font-size: xx-large;
  color: rgba(15,23,42,0.55);
}

/* Guest CTA button */
.meAuthBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  font-size: x-large;
}

/* Logged-in name */
.meUserName{
  font-weight: 900;
  color: var(--text);
  font-size: large;
}

/* Groups like screenshot (flat white with separators) */
.meGroup{
  margin-top: 10px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Row */
.meRow{
  height: 52px;
  padding: 0 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(15,23,42,0.06);
}
.meRow:first-child{ border-top: 0; }

.meRow__left{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}
.meRow__icon{
  width: 26px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
}
.meRow__label{
  font-size: large;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meRow__chev{
  color: rgba(15,23,42,0.35);
}

/* Nigeria flag icon (green-white-green) */
.meRow__icon--flag{
  width: 22px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid rgba(15,23,42,0.12);
  background:
    linear-gradient(90deg,
      #128807 0%,
      #128807 33%,
      #ffffff 33%,
      #ffffff 66%,
      #128807 66%,
      #128807 100%
    );
}

/* Group spacer like screenshot */
.meSpacer{
  height: 14px;
}
