/* Member card page (members card) */
.membersCardPage {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.membersCard {
  max-width: 400px;
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.membersCardHeader {
  background: var(--membersCardHeaderBg, #007aff);
  color: #ffffff;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ランク色は CSP 対応のためクラスで渡す（memberConfig の color と一致） */
.membersCardHeader--platinum {
  --membersCardHeaderBg: #000000;
}

.membersCardHeader--gold {
  --membersCardHeaderBg: #ffd700;
}

.membersCardHeader--silver {
  --membersCardHeaderBg: #c0c0c0;
}

.membersCardHeader--normal {
  --membersCardHeaderBg: #bee2ff;
}

.membersCardHeaderCol {
  flex: 0 0 auto;
}

.membersCardHeaderCol--right {
  text-align: right;
}

.membersCardLogo {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

.membersCardMedal {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  display: block;
}

.membersCardRank {
  font-size: 1.2rem;
  font-weight: 700;
}

.membersCardWalletRow {
  margin-top: 1rem;
}

.membersCardWalletBtn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #ffffff;
  color: #1d1d1f;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.2s;
}

.membersCardWalletIcon {
  width: 24px;
  height: 24px;
}

.membersCardBody {
  padding: 1.5rem;
  position: relative;
}

.membersCardRow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e5e7;
}

.membersCardRow--mbLg {
  margin-bottom: 1rem;
}

.membersCardLabel {
  font-size: 0.85rem;
  color: #6e6e73;
}

.membersCardValue {
  font-size: 1rem;
  font-weight: 500;
}

.membersCardQrWrap {
  text-align: center;
  padding-top: 1rem;
}

.membersCardQr {
  width: 200px;
  height: 200px;
}

/* Profile page */
.formInput--readonly {
  background: #f5f5f7;
  color: #6e6e73;
  cursor: not-allowed;
}

.profileNameRow {
  display: flex;
  gap: 0.5rem;
}

.profileUpdateActions {
  text-align: center;
  margin-top: 2rem;
}

.profile-update-btn {
  padding: 12px 40px;
  background: #34c759;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.25);
}


/* Member card page */
.members-card-body {
    background: #f5f5f7;
}

.member-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 24px;
}

.member-card {
    background: #ffffff;
    width: 100%;
    max-width: 540px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e7;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.card-logo-left {
    text-align: left;
}

.card-logo-left img {
    max-width: 120px;
    height: auto;
}

.card-rank {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
}

.card-rank i {
    font-size: 56px;
}

.card-logo {
    text-align: right;
    margin-bottom: 32px;
}

.card-logo img {
    max-width: 160px;
    height: auto;
}

.card-info {
    margin-bottom: 40px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #6e6e73;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.info-value {
    color: #1d1d1f;
    font-weight: 500;
    font-size: 15px;
}

/* QR Code section */
.qr-code-section {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 24px;
}

.qr-code-image {
    width: 220px;
    height: 220px;
    border: 2px solid #e5e5e7;
    border-radius: 12px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Wallet section */
.wallet-section {
    text-align: center;
    padding: 24px 0;
}

.wallet-icon {
    width: 44px;
    height: 44px;
    margin-right: 12px;
    vertical-align: middle;
}

.wallet-button {
    background: #ffffff;
    border: 2px solid #1d1d1f;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.2px;
}

.wallet-button:hover {
    background: #1d1d1f;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
  .member-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .card-logo img {
    max-width: 120px;
  }

  .qr-code-image {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .wallet-button {
    padding: 12px 24px;
    font-size: 14px;
  }

  .wallet-icon {
    width: 36px;
    height: 36px;
    margin-right: 8px;
  }
}
