.member-page {
  min-height: 55vh;
  padding: clamp(42px, 6vw, 76px) 0 88px;
  color: #17263b;
  background: linear-gradient(180deg, #f5f9fd 0%, #fff 48%, #f8fbfe 100%);
}

.member-section {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.member-section--narrow { width: min(580px, calc(100% - 40px)); }
.member-section--wide { width: min(980px, calc(100% - 40px)); }

.member-heading {
  margin: 0 auto 30px;
  text-align: center;
}

.member-eyebrow {
  margin: 0 0 10px;
  color: #176dc0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.member-heading h1 {
  margin: 0;
  color: #14253c;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 750;
  letter-spacing: -.06em;
  line-height: 1.2;
}

.member-heading > p:last-child {
  margin: 11px 0 0;
  color: #68788c;
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
}

.member-panel {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid #e1eaf3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(25, 64, 104, .08);
}

.member-panel--form { padding: clamp(20px, 3.4vw, 34px); }

.member-form { display: grid; gap: 19px; }

.member-field {
  display: grid;
  min-width: 0;
  gap: 8px;
  color: #26374d;
  font-size: 14px;
  font-weight: 700;
}

.member-field > span,
.member-field > label > span:not(.member-visually-hidden) { display: block; }

.member-field em,
.member-policy h3 em {
  margin-left: 5px;
  color: #d6424c;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.member-field input,
.member-field select,
.member-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d5e0eb;
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: #192a40;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.member-field input:focus,
.member-field select:focus,
.member-field textarea:focus {
  border-color: #3b8ed1;
  box-shadow: 0 0 0 3px rgba(36, 125, 196, .13);
}

.member-field input::placeholder { color: #9aa8b7; }

.member-field small {
  color: #7a8999;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

.member-field--id { gap: 8px; }
.member-field--id > label { color: #26374d; font-weight: 700; }
.member-input-with-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.member-input-with-action .member-button { min-width: 98px; }
.member-input-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.member-static-value { min-height: 48px; display: flex; align-items: center; padding: 0 14px; border: 1px solid #e2eaf2; border-radius: 9px; background: #f5f8fb; color: #53657a; font-size: 15px; font-weight: 500; }

.member-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.member-button:hover { transform: translateY(-1px); }
.member-button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.member-button--primary { color: #fff; background: #176dc0; }
.member-button--primary:hover { background: #0e5ca8; }
.member-button--outline { border-color: #cbd9e7; color: #27415e; background: #fff; }
.member-button--outline:hover { border-color: #7eabd4; background: #f5faff; }
.member-button--danger { color: #fff; background: #c74450; }
.member-button--danger:hover { background: #a8323d; }
.member-button--wide { width: 100%; min-height: 52px; margin-top: 5px; font-size: 16px; }

.member-alert,
.member-success,
.member-result,
.member-withdraw-note {
  margin: 0 0 22px;
  padding: 17px 19px;
  border: 1px solid #f1c9cc;
  border-radius: 11px;
  background: #fff6f6;
  color: #953640;
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
}

.member-setup-note { margin: 0 0 20px; padding: 16px 19px; border: 1px solid #ead7ab; border-radius: 11px; background: #fffbf1; color: #705927; font-size: 14px; line-height: 1.65; word-break: keep-all; }
.member-setup-note strong { display: block; margin-bottom: 4px; color: #584314; }
.member-setup-note p { margin: 0; }
.member-setup-note code { padding: 1px 4px; border-radius: 4px; background: rgba(255,255,255,.75); font-size: 12px; }

.member-alert p { margin: 4px 0 0; }
.member-success { border-color: #c4e3d2; background: #f2fbf6; color: #286447; }
.member-result { border-color: #d8e8f6; background: #f5faff; color: #294665; }
.member-result strong { display: block; color: #183b5e; font-size: 16px; }
.member-result p { margin: 7px 0 0; }
.member-result ul { margin: 12px 0 0; padding-left: 20px; font-size: 19px; font-weight: 800; letter-spacing: .08em; }
.member-withdraw-note { border-color: #f2dfc7; background: #fffaf2; color: #765b38; }
.member-withdraw-note strong { display: block; color: #62451f; }
.member-withdraw-note p { margin: 7px 0 0; }

.member-help-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-top: 23px;
  color: #65768a;
  font-size: 13px;
}

.member-help-links a { padding: 0 14px; }
.member-help-links a + a { border-left: 1px solid #d5dfe8; }
.member-help-links a:hover { color: #176dc0; text-decoration: underline; }

.member-consents { display: grid; gap: 15px; margin-top: 18px; }
.member-consent-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 2px; }
.member-consent-heading h2 { margin: 0; color: #1a2e46; font-size: 19px; letter-spacing: -.04em; }
.member-text-button { border: 0; padding: 7px 0; background: transparent; color: #176dc0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }
.member-policy { overflow: hidden; border: 1px solid #dce5ed; border-radius: 12px; background: #fff; }
.member-policy h3 { margin: 0; padding: 14px 16px; border-bottom: 1px solid #e4eaf0; background: #f7f9fb; color: #293b50; font-size: 14px; }
.member-policy h3 > span { margin-left: 5px; color: #78889a; font-size: 11px; font-weight: 600; }
.member-policy-copy { max-height: 190px; overflow: auto; padding: 16px 18px; color: #596a7d; font-size: 13px; line-height: 1.75; }
.member-policy-copy h4 { margin: 0 0 4px; color: #344b63; font-size: 13px; }
.member-policy-copy p { margin: 0 0 14px; }
.member-policy-copy p:last-child { margin-bottom: 0; }
.member-check { display: flex; min-height: 48px; align-items: center; gap: 9px; padding: 10px 16px; border-top: 1px solid #e6ebf0; color: #405368; cursor: pointer; font-size: 13px; line-height: 1.5; }
.member-check input { width: 17px; height: 17px; flex: 0 0 17px; accent-color: #176dc0; }
.member-form-footnote { margin: 0; color: #6e7e91; font-size: 13px; text-align: center; }
.member-form-footnote a { color: #176dc0; font-weight: 700; text-decoration: underline; }

.member-profile-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 27px 30px; border-radius: 18px; background: linear-gradient(115deg, #123d70, #1977bf); color: #fff; box-shadow: 0 15px 32px rgba(24, 83, 138, .16); }
.member-profile-label { color: #cce7ff; font-size: 13px; }
.member-profile-card h2 { margin: 4px 0 8px; font-size: 27px; letter-spacing: -.05em; }
.member-profile-card h2 span { font-size: 17px; font-weight: 500; }
.member-profile-card p { margin: 0; color: #e0f0fc; font-size: 13px; }
.member-profile-card p strong { color: #fff; }
.member-point { min-width: 135px; padding-left: 25px; border-left: 1px solid rgba(255,255,255,.25); text-align: right; }
.member-point span { display: block; color: #cce7ff; font-size: 12px; }
.member-point strong { display: block; margin-top: 5px; color: #fff; font-size: 24px; }
.member-point small { font-size: 13px; }
.member-dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 20px; }
.member-dashboard-card { position: relative; display: flex; min-height: 190px; flex-direction: column; align-items: flex-start; padding: 22px 21px; border: 1px solid #e0e9f2; border-radius: 15px; background: #fff; color: #1e3149; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.member-dashboard-card:hover { transform: translateY(-3px); border-color: #b5d1e8; box-shadow: 0 12px 26px rgba(25, 64, 104, .09); }
.member-dashboard-number { color: #3781bf; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.member-dashboard-card strong { margin-top: 18px; font-size: 18px; }
.member-dashboard-card > span:nth-of-type(2) { margin-top: 6px; color: #718195; font-size: 13px; line-height: 1.6; word-break: keep-all; }
.member-dashboard-card b { position: absolute; right: 19px; bottom: 18px; color: #3684c5; font-size: 19px; }
.member-dashboard-card--muted strong { color: #7a5360; }
.member-dashboard-card--muted .member-dashboard-number,
.member-dashboard-card--muted b { color: #a47580; }
.member-bottom-actions { display: flex; justify-content: flex-end; margin-top: 17px; }

.member-form--profile { gap: 16px; }
.member-preference { min-width: 0; margin: 5px 0 0; padding: 0; border: 0; }
.member-preference legend { margin-bottom: 7px; color: #26374d; font-size: 14px; font-weight: 700; }
.member-preference .member-check { padding: 10px 0; border-top: 0; }
.member-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 9px; }
.member-policy-page { padding: clamp(24px, 4vw, 42px); }
.member-policy-page section + section { margin-top: 25px; padding-top: 22px; border-top: 1px solid #e6edf4; }
.member-policy-page h2 { margin: 0 0 8px; color: #203a56; font-size: 18px; }
.member-policy-page p { margin: 0; color: #596b80; font-size: 15px; line-height: 1.85; word-break: keep-all; }
.member-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .member-page { padding: 40px 0 64px; }
  .member-section, .member-section--wide, .member-section--narrow { width: calc(100% - 32px); }
  .member-heading { margin-bottom: 23px; }
  .member-heading > p:last-child { font-size: 14px; }
  .member-profile-card { padding: 22px; }
  .member-dashboard-grid { grid-template-columns: 1fr; gap: 10px; }
  .member-dashboard-card { min-height: 150px; }
}

@media (max-width: 520px) {
  .member-panel { padding: 20px 16px; border-radius: 15px; }
  .member-input-with-action { grid-template-columns: 1fr; }
  .member-input-with-action .member-button { width: 100%; }
  .member-profile-card { align-items: flex-start; flex-direction: column; }
  .member-point { width: 100%; border-top: 1px solid rgba(255,255,255,.25); border-left: 0; padding: 14px 0 0; text-align: left; }
  .member-form-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .member-form-actions .member-button { padding: 0 12px; }
  .member-help-links a { padding: 0 10px; font-size: 12px; }
}
