/* client/membership-card.css */
.cc-member-card {
  position: relative;
  isolation: isolate;
  width: min(100%, 455px);
  aspect-ratio: 1.62;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ffffffa8;
  border-radius: 18px;
  background: var(--cc-theme, #e2f3e9);
  box-shadow: 0 21px 33px #16392e22, 0 4px 9px #16392e12;
  transform: rotate(-4deg);
  color: #102e4c;
  font-family:
    "DM Sans",
    "Noto Sans Arabic",
    sans-serif;
  container-type: inline-size;
}
.cc-member-card[lang=ar] {
  font-family:
    "Noto Sans Arabic",
    "DM Sans",
    sans-serif;
}
.cc-member-card *,
.cc-member-card *::before,
.cc-member-card *::after {
  box-sizing: border-box;
}
.cc-member-card::before {
  position: absolute;
  z-index: -1;
  top: 0;
  inset-inline: 0;
  height: 43%;
  background: #102e4c;
  content: "";
}
.cc-card-brand {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 2cqw;
  top: 7%;
  inset-inline: 5%;
  height: 15%;
}
.cc-card-brand img {
  display: block;
  flex: 0 0 auto;
  width: clamp(48px, 25cqw, 113px);
  max-height: 6cqw;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}
.cc-card-brand span {
  min-width: 0;
  overflow: hidden;
  color: #c4dad8;
  font-size: clamp(5px, 1.7cqw, 8px);
  font-weight: 700;
  letter-spacing: .35cqw;
  line-height: 1.4;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-card-avatar {
  position: absolute;
  z-index: 1;
  display: grid;
  top: 26%;
  inset-inline-start: 5%;
  width: clamp(27px, 13cqw, 59px);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: clamp(1.5px, .7cqw, 3px) solid #fff;
  border-radius: 50%;
  background: #fff4cf;
  color: #102e4c;
  font-size: clamp(15px, 6.2cqw, 28px);
  font-weight: 800;
  box-shadow: 0 2px 7px #153e5c15;
}
.cc-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cc-card-avatar img.cc-avatar-icon {
  width: 70%;
  height: 70%;
  object-fit: contain;
}
.cc-card-name {
  position: absolute;
  z-index: 1;
  top: 51%;
  inset-inline-start: 5%;
  width: 65%;
  overflow: hidden;
  color: #102e4c;
  font:
    900 clamp(11px, 5.3cqw, 24px)/1.12 "Nunito",
    "Noto Sans Arabic",
    sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-card-friend {
  position: absolute;
  z-index: 1;
  top: 65%;
  inset-inline-start: 5%;
  width: 59%;
  overflow: hidden;
  color: #344d5d;
  font-size: clamp(6px, 1.8cqw, 9px);
  font-weight: 800;
  letter-spacing: .18cqw;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-card-character {
  position: absolute;
  z-index: 0;
  inset-inline-end: 2%;
  bottom: -9%;
  width: 45%;
  height: 96%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 6px 5px #173f3c12);
}
.cc-card-membership {
  position: absolute;
  z-index: 2;
  inset-inline-start: 5%;
  bottom: 6%;
  display: grid;
  width: 61%;
  gap: .7cqw;
  color: #102e4c;
  font-size: clamp(7px, 2cqw, 10px);
  font-weight: 700;
  line-height: 1.15;
}
.cc-card-membership b {
  overflow-wrap: anywhere;
  color: var(--cc-accent, #16765d);
  font:
    900 clamp(8px, 2.65cqw, 12px)/1.12 "DM Sans",
    "Noto Sans Arabic",
    sans-serif;
  letter-spacing: .06cqw;
  unicode-bidi: isolate;
}
.cc-card-membership.is-pending {
  width: 59%;
  color: #465b67;
  font-size: clamp(6px, 1.8cqw, 9px);
}
.cc-member-card[lang=ar] .cc-card-brand img {
  object-position: right center;
}
.cc-member-card[dir=rtl] .cc-card-membership b {
  text-align: right;
}
.cc-member-card[lang=ar] .cc-card-brand span,
.cc-member-card[lang=ar] .cc-card-friend {
  letter-spacing: 0;
}
