#pg-profile {
  background: #f5f5f7;
  --profile-mobile-gutter: 12px;
  --profile-card-radius: 20px;
}

.profile-share-lead {
  margin: 16px 16px 0;
  color: #596579;
  font-size: 14px;
  line-height: 1.65;
}

.profile-share-form {
  display: grid;
  gap: 14px;
  margin: 16px;
  padding: 18px;
  border: 1px solid #e0e5eb;
  border-radius: 12px;
  background: #fff;
}

.profile-share-field {
  display: grid;
  gap: 6px;
  color: #263247;
  font-size: 14px;
  font-weight: 750;
}

.profile-share-field input,
.profile-share-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #bcc6d3;
  border-radius: 8px;
  color: #172033;
  background: #fff;
  font: inherit;
  font-weight: 500;
}

.profile-share-field textarea {
  min-height: 96px;
  resize: vertical;
}

.profile-share-note {
  color: #68758a;
  font-size: 13px;
  line-height: 1.55;
}

.profile-share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-share-image-current {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-share-image-current img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid #d8dee8;
  border-radius: 6px;
}

.profile-share-image-current.is-wechat-qr img {
  object-fit: contain;
  background: #fff;
}

.profile-share-actions a,
.profile-share-actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 12px;
  border-radius: 8px;
  text-align: center;
}

.profile-record.profile-member-record {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.profile-member-avatar {
  width: 46px;
  height: 46px;
  border: 1px solid #dce3ea;
  border-radius: 50%;
  object-fit: cover;
  background: #f3f6f9;
}

.profile-member-copy { min-width: 0; display: grid; gap: 3px; }

.profile-member-chevron {
  color: #8793a5;
  font-size: 26px;
  line-height: 1;
}

.profile-member-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e6eaf0;
}

@media (max-width: 520px) {
  .profile-share-actions { grid-template-columns: 1fr; }
}

#pg-profile .profile-console-head,
#pg-profile .ph,
#pg-profile .profile-todo,
#pg-profile .profile-station-benefit,
#pg-profile .profile-layout {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

#pg-profile.profile-guest .profile-station-benefit,
#pg-profile.profile-guest .profile-section-title.vip-title,
#pg-profile.profile-guest .profile-menu-group.vip-section,
#pg-profile .profile-summary-tags[hidden] {
  display: none !important;
}

#pg-profile.profile-guest .profile-menu .mi {
  color: var(--gray-5);
}

.profile-console-head {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 12px;
}

.profile-console-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffe8a8;
  background: linear-gradient(145deg, #59401f, #2a2119);
  font-size: 22px;
  font-weight: 950;
}

.profile-console-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.profile-console-copy h1 {
  margin: 0;
  color: #1d2129;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.18;
  white-space: nowrap;
}

.profile-console-copy p {
  margin: 5px 0 0;
  color: #8a7a66;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
}

.profile-console-notice {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border: 1px solid #eadfce;
  border-radius: 18px;
  color: #6b4b1d;
  background: rgba(255, 255, 255, 0.72);
  font-size: 22px;
}

.profile-console-notice b {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: #c24135;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.profile-console-notice b[hidden] {
  display: none;
}

.ph {
  display: grid;
  gap: 14px;
  overflow: hidden;
  position: relative;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(99, 64, 28, 0.08);
  border-radius: 20px;
  color: #fff8e8;
  text-align: left;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 232, 168, 0.14), transparent 24%),
    linear-gradient(145deg, #3a2b20, #6b4b24);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.profile-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ph .profile-console-logo {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  border-radius: 16px;
  color: #3a2b20;
  background: linear-gradient(135deg, #ffe4a8, #d79a38);
  font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.ph .profile-console-copy h1 {
  color: #fff8e8;
  font-size: 22px;
}

.ph .profile-console-copy p {
  color: rgba(255, 248, 232, 0.72);
}

.ph .profile-console-notice {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffe4a8;
  background: rgba(255, 255, 255, 0.1);
}

.ph .profile-console-notice b {
  top: -6px;
  right: -6px;
}

.ph::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.profile-summary-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #2a2119;
  background: linear-gradient(135deg, #ffe4a8, #d79a38);
  font-size: 26px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.profile-summary-main {
  min-width: 0;
  flex: 1 1 auto;
}

.profile-summary-id {
  flex: 0 0 auto;
  min-width: 92px;
  display: grid;
  gap: 4px;
  align-self: center;
  color: rgba(255, 248, 232, 0.72);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.profile-summary-id[hidden] {
  display: none;
}

.profile-summary-id b {
  margin-left: 3px;
  color: #ffe4a8;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.profile-summary-title {
  color: #fff8e8;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-summary-sub {
  margin-top: 4px;
  color: rgba(255, 248, 232, 0.72);
  font-size: 13px;
  font-weight: 650;
}

.profile-summary-sub:empty {
  display: none;
}

.profile-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.profile-status-tag {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  color: #fff3cf;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.profile-status-tag.is-current {
  color: #6b3e00;
  background: #ffe4a8;
}

.profile-summary-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.profile-summary-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.profile-summary-meta-item {
  min-height: 50px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 13px;
  color: rgba(255, 248, 232, 0.76);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  line-height: 1.2;
}

.profile-summary-meta-item span {
  color: rgba(255, 248, 232, 0.7);
  font-weight: 650;
  white-space: nowrap;
}

.profile-summary-meta-item b {
  min-width: 0;
  color: #ffe4a8;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.profile-summary-row {
  min-height: 50px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  line-height: 1.25;
}

.profile-summary-row span {
  color: rgba(255, 248, 232, 0.72);
  font-weight: 650;
}

.profile-summary-row b {
  min-width: 0;
  color: #ffe4a8;
  text-align: left;
  font-size: 15px;
  font-weight: 850;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.profile-summary-row .profile-summary-node {
  font-size: 14px;
}

.profile-identity-pair {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
}

.profile-identity-pair i {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  color: rgba(255, 248, 232, 0.74);
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.profile-identity-pair i.is-current {
  color: #6b3e00;
  background: #ffe4a8;
}

.profile-todo {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.profile-todo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-todo-head h2 {
  margin: 0;
  color: #1d2129;
  font-size: 18px;
  font-weight: 900;
}

.profile-todo-head button {
  min-height: 32px;
  color: #7a5a22;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.profile-todo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-todo-grid button {
  min-width: 0;
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 9px 8px;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 14px;
  background: #fafafa;
  text-align: center;
}

.profile-todo-grid b {
  color: #1d2129;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.profile-todo-grid span {
  color: #86909c;
  font-size: 11px;
  line-height: 1.3;
}

.profile-station-benefit {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 198, 85, 0.72);
  border-radius: 20px;
  color: #332313;
  background: linear-gradient(180deg, #fff8df, #ffe8a8);
  box-shadow: 0 8px 22px rgba(168, 116, 24, 0.12);
}

.profile-station-benefit.is-active {
  border-color: rgba(22, 119, 255, 0.18);
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.station-benefit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.station-benefit-head h2 {
  margin: 0;
  color: #2b2114;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.station-benefit-head p {
  margin: 6px 0 0;
  color: #7a5a22;
  font-size: 12px;
  line-height: 1.45;
}

.station-benefit-head > button {
  flex: 0 0 auto;
  min-width: 112px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 19px;
  color: #ffe7a9;
  background: #2a2119;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.station-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.station-benefit-grid div {
  min-height: 72px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 10px 6px;
  border: 1px solid rgba(196, 135, 42, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  text-align: center;
}

.station-benefit-grid b {
  color: #2a2119;
  font-size: 15px;
  font-weight: 900;
}

.station-benefit-grid span {
  color: #7a5a22;
  font-size: 11px;
  line-height: 1.35;
}

.station-benefit-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  color: #7a5a22;
  background: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  line-height: 1.55;
}

.station-benefit-detail {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.station-benefit-detail section {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 14px;
  background: #fff;
}

.station-benefit-detail h3 {
  margin: 0;
  color: #1d2129;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
}

.station-benefit-detail p {
  margin: 0;
  color: #4e5969;
  font-size: 12px;
  line-height: 1.55;
}

.station-benefit-detail-note {
  padding: 10px 12px;
  border-radius: 12px;
  color: #7a5a22 !important;
  background: #fff8df;
}

.station-benefit-confirm {
  width: 100%;
  height: 42px;
  border-radius: 21px;
  color: #fff;
  background: #1677ff;
  font-size: 14px;
  font-weight: 900;
}

.account-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "name"
    "balance"
    "state";
  align-items: center;
  justify-content: start;
  gap: 4px;
}

.station-badge {
  grid-area: badge;
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  color: #fff;
  background: #1677ff;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
}

.station-badge[hidden] {
  display: none;
}

.ph .pn {
  grid-area: name;
  color: #1d2129;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.profile-head-balance {
  grid-area: balance;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 11px;
  border: 1px solid rgba(22, 119, 255, 0.22);
  border-radius: 999px;
  color: #0f62d9;
  background: rgba(22, 119, 255, 0.08);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.profile-head-balance[hidden] {
  display: none;
}

.ph .pr {
  grid-area: state;
  color: #86909c;
  font-size: 12px;
  line-height: 1.45;
}

.ph .pr[hidden] {
  display: none;
}

.role-switch {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  align-self: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.role-switch[hidden] {
  display: none;
}

.role-pill {
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  color: #4e5969;
  background: #f2f3f5;
  font-size: 12px;
  font-weight: 650;
}

.role-pill.act {
  color: #fff;
  background: #1677ff;
}

.role-pill.is-muted {
  color: #7b8794;
  background: #f2f3f5;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(176px, 188px) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 4px 14px;
}

.profile-detail {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.045);
}

.profile-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 18px 18px 68px;
  background: rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(4px);
}

.profile-auth-modal[data-v3-auth-modal] {
  place-items: start center;
  padding-top: max(72px, env(safe-area-inset-top, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.profile-auth-modal-lock {
  overflow: hidden;
}

.profile-auth-card {
  width: min(360px, calc(100vw - 36px));
  max-height: min(620px, calc(100dvh - 92px));
  overflow: auto;
  border: 1px solid rgba(229, 231, 235, 0.94);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fbfcff);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.profile-auth-card-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-2);
  background: rgba(255, 255, 255, 0.96);
}

.profile-auth-card-head h2 {
  margin: 0;
  color: #1d2129;
  font-size: 18px;
  line-height: 1.25;
}

.profile-auth-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #4e5969;
  background: #f2f3f5;
  font-size: 22px;
  line-height: 1;
}

.profile-menu {
  display: grid;
  gap: 7px;
  align-self: start;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.profile-section-title {
  padding: 0 10px 1px;
  color: #4e5969;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.profile-section-title.vip-title {
  color: #1677ff;
}

.profile-menu-group {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.035);
}

.profile-menu-group.vip-section {
  background: #f9faff;
}

.profile-menu-group.vip-section .mi.is-locked {
  color: #a8b0bd;
  background: #fff;
}

.profile-menu-group.vip-section .mi.is-locked .mi-title,
.profile-menu-group.vip-section .mi.is-locked .mi-desc,
.profile-menu-group.vip-section .mi.is-locked .ma {
  color: #a8b0bd;
}

.profile-menu-badge {
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: #d81925;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.profile-menu-badge[hidden] {
  display: none;
}

.profile-detail {
  min-height: 240px;
}

.profile-detail .hbar {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid var(--gray-2);
  background: #fff;
}

.profile-detail-back {
  display: none;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #1677ff;
  background: rgba(22, 119, 255, 0.08);
  font-size: 13px;
  font-weight: 760;
}

.profile-member-detail-back {
  display: inline-flex;
}

.profile-detail .ptitle {
  color: var(--gray-6);
  font-size: 14px;
  font-weight: 800;
}

.profile-detail .empty {
  padding: 24px 12px;
  color: var(--gray-5);
  font-size: 13px;
  line-height: 1.6;
}

.profile-data-card,
.profile-data-list,
.profile-data-table {
  margin: 12px;
}

.profile-data-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--gray-2);
  border-radius: 12px;
  background: #fff;
}

.profile-data-title,
.profile-record-title {
  color: var(--gray-6);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.profile-primary-action {
  width: 100%;
  min-height: 42px;
  border-radius: 21px;
  color: #fff;
  background: #1677ff;
  font-size: 14px;
  font-weight: 900;
}

.profile-data-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--gray-5);
  font-size: 12px;
  line-height: 1.45;
}

.profile-data-value {
  color: var(--gray-6);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.profile-data-list {
  display: grid;
  gap: 8px;
}

.profile-record-section {
  display: grid;
  gap: 8px;
  margin: 12px;
}

.profile-record-section-title {
  color: var(--gray-6);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.profile-record-empty {
  padding: 12px;
  border: 1px solid var(--gray-2);
  border-radius: 10px;
  color: var(--gray-5);
  background: #fff;
  font-size: 12px;
  line-height: 1.5;
}

.profile-data-list-compact {
  margin: 0;
}

.profile-record {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid var(--gray-2);
  border-radius: 10px;
  background: #fff;
}

.profile-record-meta,
.profile-record-sub {
  color: var(--gray-5);
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.profile-record-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.profile-record-edit,
.profile-record-delete {
  min-width: 54px;
  min-height: 32px;
  padding: 5px 12px;
  color: #b42318;
  font-size: 12px;
  font-weight: 750;
  background: #fff;
  border: 1px solid #f2b8b5;
  border-radius: 6px;
}

.profile-record-edit {
  color: #175cd3;
  border-color: #b2ccff;
}

.profile-record-edit:disabled,
.profile-record-delete:disabled {
  color: var(--gray-4);
  border-color: var(--gray-2);
}

.profile-data-table {
  overflow-x: auto;
}

.profile-recharge-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin: 12px;
  padding: 10px;
  border: 1px solid var(--gray-2);
  border-radius: 12px;
  background: #fff;
}

.profile-recharge-field {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: var(--gray-6);
  font-size: 12px;
  font-weight: 720;
}

.profile-recharge-field input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--gray-2);
  border-radius: 9px;
  color: var(--gray-6);
  background: #fff;
  font-size: 13px;
}

.profile-recharge-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.profile-recharge-form button {
  height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  color: #fff;
  background: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.profile-recharge-form .profile-recharge-option {
  color: var(--gray-6);
  background: #fff;
  border: 1px solid var(--gray-2);
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}

.profile-recharge-form .profile-recharge-option.is-selected {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.profile-recharge-form button:disabled {
  opacity: 0.55;
}

.profile-recharge-note {
  grid-column: 1 / -1;
  color: var(--gray-5);
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.profile-recharge-result {
  margin-bottom: 8px;
}

.profile-recharge-paid {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 15px;
  color: #15803d;
  background: #ecfdf3;
  font-weight: 850;
}

.profile-pay-amount {
  margin-bottom: 8px;
  color: var(--gray-6);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.profile-pay-code-link {
  display: inline-block;
}

.profile-pay-code {
  display: block;
  width: min(100%, 280px);
  max-height: 380px;
  object-fit: contain;
  border: 1px solid var(--gray-2);
  border-radius: 10px;
  background: #fff;
}

.profile-pay-code-hint {
  margin-top: 8px;
  color: var(--gray-5);
  font-size: 12px;
  line-height: 1.5;
}

.profile-pay-watch {
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 12px;
  line-height: 1.45;
}

.profile-pay-code-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.profile-recharge-form .profile-pay-code-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--gray-2);
  border-radius: 10px;
  color: var(--gray-6);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.profile-payment-modal .profile-auth-card {
  width: min(92vw, 390px);
}

.profile-payment-modal {
  z-index: 10030;
}

.profile-payment-body {
  padding: 0 18px 18px;
}

.profile-payment-card .profile-recharge-form {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.profile-payment-card .profile-recharge-form.is-order-created {
  gap: 10px;
}

.profile-payment-card .profile-recharge-form.is-order-created .profile-recharge-field,
.profile-payment-card .profile-recharge-form.is-order-created .profile-station-plan,
.profile-payment-card .profile-recharge-form.is-order-created > button:not(.profile-recharge-option) {
  display: none !important;
}

.profile-payment-card .profile-recharge-field {
  gap: 10px;
  color: #1d2129;
  font-size: 16px;
  font-weight: 900;
}

.profile-payment-card .profile-recharge-options {
  gap: 12px;
}

.profile-payment-card .profile-recharge-form .profile-recharge-option {
  position: relative;
  height: 52px;
  border-radius: 14px;
  color: #1d2129;
  background: #fff;
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.profile-payment-card .profile-recharge-form .profile-recharge-option strong {
  display: block;
  font-size: inherit;
  line-height: 1;
}

.profile-payment-card .profile-recharge-form .profile-station-amount {
  overflow: hidden;
  border-color: rgba(122, 90, 34, 0.24);
  background: linear-gradient(180deg, #fff8df, #fff);
}

.profile-payment-card .profile-recharge-form .profile-station-amount-tag {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 42px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 14px 0 12px;
  color: #ffe8a8;
  background: #2a2119;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.profile-payment-card .profile-recharge-form .profile-recharge-option.is-selected {
  color: #fff;
  border-color: #1677ff;
  background: #1677ff;
}

.profile-payment-card .profile-recharge-form .profile-station-amount.is-selected {
  border-color: #2a2119;
  color: #ffe8a8;
  background: #2a2119;
}

.profile-payment-card .profile-recharge-form .profile-station-amount.is-selected .profile-station-amount-tag {
  color: #2a2119;
  background: #ffe8a8;
}

.profile-station-plan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-station-plan section {
  min-height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 8px 6px;
  border: 1px solid rgba(196, 135, 42, 0.24);
  border-radius: 12px;
  background: #fff8df;
  text-align: center;
}

.profile-station-plan b {
  color: #2a2119;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.1;
}

.profile-station-plan span {
  color: #7a5a22;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.25;
}

.profile-payment-card .profile-recharge-form > button:not(.profile-recharge-option) {
  width: 100%;
  height: 54px;
  border-radius: 27px;
  background: #1677ff;
  font-size: 18px;
  font-weight: 950;
}

.profile-payment-card .profile-recharge-note {
  min-height: 0;
  color: #1d2129;
  font-size: 13px;
}

.profile-payment-card .profile-pay-amount {
  margin: 0 0 10px;
  text-align: center;
  color: #1d2129;
  font-size: 20px;
  font-weight: 950;
}

.profile-payment-card .profile-pay-code-link {
  display: grid;
  justify-items: center;
}

.profile-payment-card .profile-pay-code {
  width: min(100%, 260px);
  max-height: 300px;
  border-radius: 14px;
}

.profile-payment-card .profile-pay-code-missing {
  min-height: 88px;
  display: grid;
  place-items: center;
  border: 1px dashed #d1d5db;
  border-radius: 14px;
  color: #86909c;
  background: #f7f8fa;
  font-size: 14px;
  font-weight: 850;
}

.profile-data-tr {
  min-width: 560px;
  display: grid;
  grid-template-columns: 90px 70px 80px minmax(150px, 1fr) 92px;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--gray-2);
  color: var(--gray-6);
  font-size: 12px;
  line-height: 1.35;
}

.profile-data-head {
  border-radius: 10px 10px 0 0;
  background: #f7f8fa;
  color: var(--gray-5);
  font-weight: 800;
}

.profile-auth-form {
  display: grid;
  gap: 7px;
  padding: 12px 14px 14px;
}

.profile-auth-form label {
  min-height: 44px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  color: var(--gray-6);
  font-size: 12px;
  font-weight: 700;
}

.profile-auth-form label span {
  padding-left: 12px;
  color: #4e5969;
  white-space: nowrap;
}

.profile-auth-form input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--gray-2);
  border-radius: 12px;
  background: #fff;
  color: var(--gray-6);
  font-size: 16px;
}

.profile-auth-form input::placeholder {
  color: #a8b0bd;
}

.profile-auth-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.profile-auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 6px;
}

.profile-auth-form button {
  min-height: 44px;
  border-radius: 19px;
  color: #fff;
  background: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.profile-auth-modal:focus-within {
  align-items: start;
  padding-top: max(18px, env(safe-area-inset-top));
}

.profile-auth-form .profile-auth-secondary {
  color: #1d2129;
  background: #f2f3f5;
}

.profile-auth-form button:disabled {
  color: rgba(255, 255, 255, 0.72);
  background: #8ab4f8;
}

.profile-auth-error,
.profile-auth-success {
  min-height: 20px;
  font-size: 12px;
  line-height: 1.45;
}

.profile-auth-error {
  color: var(--danger);
}

.profile-auth-success {
  color: var(--success);
}

@media (max-width: 360px) {
  .profile-auth-form label {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .profile-auth-code-row {
    grid-template-columns: minmax(0, 1fr) 82px;
  }
}

.station-brand-form {
  display: grid;
  gap: 12px;
  padding: 14px 12px 18px;
}

.station-brand-upsell {
  display: grid;
  gap: 12px;
  margin: 12px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  color: #1d2129;
}

.station-brand-upsell h3 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
}

.station-brand-benefit-table {
  display: grid;
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #fff;
}

.station-brand-benefit-table div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 38px;
  border-bottom: 1px solid #eef4ff;
}

.station-brand-benefit-table div:last-child {
  border-bottom: 0;
}

.station-brand-benefit-table b,
.station-brand-benefit-table span {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.3;
}

.station-brand-benefit-table b {
  color: #0f3b78;
  background: #eff6ff;
  font-weight: 900;
}

.station-brand-benefit-table span {
  color: #1f2937;
  font-weight: 760;
}

.station-brand-upsell-note {
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  line-height: 1.5;
  padding: 10px;
}

.station-brand-upsell button {
  width: 100%;
  height: 42px;
  border-radius: 21px;
  background: #1677ff;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.brand-form-note {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
  color: #4e5969;
  font-size: 12px;
  line-height: 1.55;
  padding: 10px;
}

.brand-field {
  display: grid;
  gap: 6px;
  color: #1d2129;
  font-size: 13px;
  font-weight: 720;
}

.brand-field input {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 1px solid var(--gray-2);
  border-radius: 10px;
  background: #fff;
  color: var(--gray-6);
  font-size: 13px;
  padding: 0 11px;
}

.brand-field input[type="file"] {
  height: auto;
  padding: 9px;
  color: #4e5969;
  background: #f7f8fa;
}

.brand-upload-preview {
  display: grid;
  gap: 8px;
}

.brand-preview {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.brand-preview img {
  display: block;
  width: 100%;
  max-height: 118px;
  object-fit: contain;
  background: #f7f8fa;
}

.station-brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.station-brand-actions button {
  height: 36px;
  border-radius: 18px;
  padding: 0 14px;
  color: #fff;
  background: #1677ff;
  font-size: 13px;
  font-weight: 800;
}

.station-brand-actions button[type="button"] {
  color: #1d2129;
  background: #f2f3f5;
}

.station-brand-actions button:disabled {
  opacity: 0.55;
}

.mi {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 11px 10px;
  border: 0;
  border-bottom: 1px solid #eef0f3;
  border-radius: 0;
  color: #1d2129;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font-size: 14px;
}

.mi:last-child {
  border-bottom: none;
}

.mi:active {
  opacity: 0.7;
}

.mi.act {
  color: #1677ff;
  background: #f0f7ff;
}

.mi .ml2 {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.mi .ml2 .mi2 {
  width: 24px;
  flex: 0 0 24px;
  text-align: center;
  font-size: 18px;
  line-height: 1;
}

.mi-text {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: left;
}

.mi-title {
  color: #1d2129;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.25;
}

.mi-desc {
  overflow: hidden;
  color: #86909c;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mi.act .mi-title {
  color: #1677ff;
}

.mi .ma {
  display: block;
  margin-left: auto;
  color: #c9cdd4;
  font-size: 18px;
}

@media (min-width: 700px) {
  .profile-layout {
    grid-template-columns: minmax(176px, 188px) minmax(0, 1fr);
    gap: 14px;
    padding: 14px 4px;
  }

  .profile-detail {
    min-height: 280px;
  }

  .mi {
    min-height: 44px;
  }
}

@media (max-width: 699px) {
  #pg-profile .profile-console-head,
  #pg-profile .ph,
  #pg-profile .profile-todo,
  #pg-profile .profile-station-benefit,
  #pg-profile .profile-layout {
    width: calc(100% - (var(--profile-mobile-gutter) * 2));
    max-width: none;
    margin-left: var(--profile-mobile-gutter);
    margin-right: var(--profile-mobile-gutter);
  }

  .profile-console-head {
    padding: 14px 4px 4px;
  }

  .profile-console-copy h1 {
    font-size: 22px;
  }

  .ph {
    margin-top: 12px;
    padding: 16px;
    border-radius: var(--profile-card-radius);
  }

  .profile-todo {
    margin-top: 12px;
    border-radius: var(--profile-card-radius);
  }

  .profile-station-benefit {
    margin-top: 12px;
    border-radius: var(--profile-card-radius);
  }

  .profile-summary-title {
    font-size: 18px;
  }

  .profile-summary-id {
    min-width: 86px;
    font-size: 10px;
  }

  .profile-summary-id b {
    font-size: 11px;
  }

  .role-switch {
    justify-content: flex-end;
  }

  .profile-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 12px;
    padding: 0 0 calc(var(--tab-h) + var(--safe-b) + 18px);
  }

  .profile-layout:not(.profile-detail-open) .profile-detail {
    display: none;
  }

  .profile-layout.profile-detail-open .profile-menu {
    display: none;
  }

  .profile-layout.profile-detail-open .profile-detail {
    display: block;
  }

  #pg-profile.profile-detail-active .profile-console-head,
  #pg-profile.profile-detail-active .ph,
  #pg-profile.profile-detail-active .profile-station-benefit {
    display: none;
  }

  #pg-profile.profile-detail-active .profile-layout {
    margin-top: 0;
    padding-top: 10px;
  }

  .profile-detail-back {
    display: inline-flex;
  }

  .profile-detail .hbar {
    height: 50px;
    padding: 0 14px;
  }

  .profile-detail .ptitle {
    font-size: 16px;
  }

  .mi {
    min-height: 54px;
    padding: 10px 12px;
  }

  .mi .ml2 {
    gap: 8px;
  }

  .mi .ml2 .mi2 {
    width: 24px;
    flex-basis: 24px;
    font-size: 18px;
  }

  .profile-recharge-form {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  .profile-recharge-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .profile-payment-card .profile-recharge-options {
    gap: 10px;
  }

  .profile-recharge-form .profile-recharge-option,
  .profile-recharge-form button {
    min-width: 0;
    padding-left: 6px;
    padding-right: 6px;
    text-align: center;
  }

  .profile-data-row {
    grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
    gap: 12px;
  }

  .profile-data-row .profile-data-value,
  .profile-data-row b {
    text-align: right;
  }

  .profile-menu,
  .profile-detail {
    min-width: 0;
  }

  .station-brand-upsell {
    margin-bottom: 96px;
  }
}

@media (max-width: 360px) {
  .ph {
    padding: 13px 14px;
  }

  .role-pill {
    padding: 0 10px;
  }
}
