.profile-center { min-height: 100dvh; color: #fff5fb; background: #141116; --edge: #3b303b; --muted: #c6b6c3; --accent: #ff9bd5; }
.profile-center [hidden], .profile-center #accountBar { display: none !important; }
.profile-header { position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--edge); background: #201920; }
.profile-header > div { max-width: 1120px; margin-inline: auto; padding: env(safe-area-inset-top) max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left)); display: flex; min-height: 54px; align-items: center; justify-content: space-between; }
.profile-header a { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; font-size: 14px; }
.profile-brand-group { display: flex; align-items: center; min-width: 0; }
#profileBack { justify-content: center; width: 36px; margin-inline-start: -8px; }
.profile-header .site-wordmark { font-size: 21px; }
.profile-content { width: min(100%, 752px); padding: 34px max(16px,env(safe-area-inset-right)) max(36px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); margin: auto; }
.profile-content h1 { font-size: clamp(25px, 4vw, 32px); letter-spacing: -.035em; line-height: 1.2; margin: 0 0 20px; }
.identity-card { display: flex; align-items: center; gap: 13px; margin: 0 0 22px; }
#profileAvatar { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border: 1px solid #81526c; border-radius: 50%; color: #ffe1ef; background: linear-gradient(135deg,#6c3b57,#332530); font-size: 21px; font-weight: 700; }
.profile-identity { display: grid; gap: 3px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.profile-identity strong { font-size: 17px; }.profile-identity > span { color: var(--muted); font-size: 13px; }
.profile-center .profile-pill { min-height: 40px; padding: 7px 15px; border: 1px solid #62425a; border-radius: 999px; font-size: 13px; font-weight: 650; color: #ffe7f5; background: #402c3a; }
.profile-group, .profile-share { margin: 0 0 16px; border: 1px solid var(--edge); background: #211b22; border-radius: 15px; }
.profile-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 55px; padding: 13px 17px; font-size: 14px; font-weight: 600; min-width: 0; }
.profile-group > :not([hidden]) + :not([hidden]), .profile-subrows, .profile-form { border-top: 1px solid var(--edge); }
.profile-group a.profile-row:hover, .profile-group summary:hover, .profile-subrows a:hover { background: #ffffff0a; border-radius: 12px; }
.profile-group :is(a,summary,select) { cursor: pointer; }
.profile-group summary { list-style: none; }.profile-group summary::-webkit-details-marker { display: none; }
.profile-group summary::after,.row-arrow { content: '›'; color: var(--muted); font-size: 21px; font-weight: 400; line-height: 1; }
.profile-group details[open] summary::after { transform: rotate(90deg); }
.wallet-group .profile-row > span:first-child { display: grid; gap: 4px; }
.wallet-group .profile-row > span:first-child > span { color: var(--muted); font-size: 13px; font-weight: 500; }
#profileBalance { font-size: 24px; }#profilePlan { font-size: 16px; }#profileExpiry { color: var(--muted); font-size: 12px; font-weight: 400; }
.profile-action,.profile-inline { font-size: 13px; color: var(--accent); }.profile-inline { min-height: 44px; padding-inline: 17px; }
.profile-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; background: linear-gradient(115deg,#3d2839,#251d25 65%); }
.profile-share strong { font-size: 15px; }.profile-share input { width: 100%; }
.profile-subrows { display: grid; padding: 3px 17px; }.profile-subrows a { font-size: 14px; min-height: 44px; display: flex; align-items: center; }
.profile-row select,.profile-form input,.profile-share input { max-width: 100%; min-width: 0; min-height: 40px; border: 1px solid #564751; border-radius: 9px; background: #241e26; color: inherit; padding-inline: 9px; }
#profileLanguage [data-language-host] { min-width: 0; }
#profileLanguage #languageBar { position: static; display: block; width: auto; height: auto; max-width: 100%; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
#profileLanguage #languageBar label { display: none; }#profileLanguage select { width: auto; }
.profile-form { display: grid; gap: 12px; padding: 17px; }.profile-form h2,.profile-form p { margin: 0; }.profile-form h2 { font-size: 16px; }
.profile-form p,.profile-form label,#profilePasswordStatus { font-size: 13px; color: var(--muted); }.profile-form label { display: grid; gap: 6px; }.profile-form button { justify-self: start; }
.profile-center .profile-logout { min-height: 44px; display: block; margin: auto; padding-inline: 15px; color: var(--muted); font-size: 14px; }
#profileStatus { font-size: 13px; color: var(--accent); margin: 8px 0 0; text-align: center; }
#profileDetailsDialog { inset: 0; margin: auto; width: min(356px,calc(100vw - 28px)); max-height: 85dvh; padding: 19px; overflow: auto; border: 1px solid #624c5b; border-radius: 16px; background: #231d24; color: #fff5fb; }
#profileDetailsDialog::backdrop { background: #08060ac4; }
#profileDetailsDialog header,#profileDetailsDialog dl div { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
#profileDetailsDialog h2 { font-size: 21px; margin: 0; }#profileDetailsDialog dl { margin: 7px 0 0; }
#profileDetailsDialog dl div { padding-block: 12px; border-top: 1px solid var(--edge); font-size: 14px; }
#profileDetailsDialog dt { color: var(--muted); }#profileDetailsDialog dd { text-align: end; margin: 0; overflow-wrap: anywhere; min-width: 0; }
.profile-close { width: 44px; height: 44px; background: #352a33; border-radius: 50%; font-size: 21px; }
.profile-center :is(a,button,summary,select,input):focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media(max-width:520px) {
  .profile-content { padding-top: 21px; }.profile-content h1 { margin-bottom: 17px; }
  .profile-header > div { min-height: 48px; }.profile-header .site-wordmark { font-size: 20px; }
  .identity-card { gap: 9px; }.identity-card .profile-pill { max-width: 37%; padding-inline: 11px; min-height: 44px; }
  #profileAvatar { width: 44px; height: 44px; }.profile-row { padding-inline: 13px; }
}
