.profile-content { max-width: 1160px; }
.profile-page .content section[id] { scroll-margin-top: 10px; }
.profile-page fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.profile-hero { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 28px 0 46px; }
.profile-hero h1 { margin: 18px 0 24px; font-size: clamp(42px, 5vw, 66px); font-weight: 600; }
.profile-hero h1 span { color: #86868b; }
.profile-hero p { font-size: 16px; line-height: 1.7; margin-bottom: 0; }
.identity-card { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; min-width: 180px; }
.identity-card strong { font-size: 16px; font-weight: 600; }
.profile-avatar { display: grid; place-items: center; flex-shrink: 0; overflow: hidden; position: relative; border-radius: 50%; background: #e6ebf3; color: #536a8e; font-weight: 500; }
.profile-avatar img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.identity-avatar { width: 128px; height: 128px; font-size: 38px; }
.editable-avatar { width: 144px; height: 144px; font-size: 44px; margin-bottom: 24px; }
.profile-page .profile-summary { margin-bottom: 30px; }
.profile-page #accountForm { max-width: 640px; }
.profile-picker { max-width: 400px; margin-bottom: 30px; }
.profile-edit-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 48px; }
.photo-editor { padding-right: 32px; border-right: 1px solid var(--line); min-width: 0; }
.photo-editor h3 { font-size: 24px; margin-bottom: 12px; }
.photo-editor p { max-width: 260px; font-size: 12px; line-height: 1.6; }
.photo-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 16px; }
.photo-upload { position: relative; overflow: hidden; cursor: pointer; }
.photo-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; }
.photo-upload:focus-within { outline: 3px solid var(--blue); outline-offset: 4px; }
.profile-save { display: flex; justify-content: flex-end; margin-top: 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.profile-page .profile-meta { line-height: 1.6; }
.profile-page .account-banner .text-link { font-size: 12px; }
.profile-page .sidebar .nav-item { flex-shrink: 0; }
.subscription-summary { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 32px; align-items: stretch; }
.membership-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 220px; padding: 28px; border-radius: 20px; background: linear-gradient(135deg, #26334e, #101722); color: #f5f5f7; }
.membership-brand { color: #bac7df; font-size: 12px; font-weight: 600; letter-spacing: .15em; }
.membership-card strong { font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1.15; margin: 24px 0 8px; overflow-wrap: anywhere; }
.membership-card #subscriptionPeriod { font-size: 12px; color: #bac7df; margin-bottom: 24px; }
.plan-status { margin-top: auto; padding: 6px 12px; font-size: 11px; border-radius: 999px; background: #ffffff15; color: #d5dbe7; }
.plan-status[data-tone="active"] { background: #285943; color: #c7f0d5; }
.plan-status[data-tone="warning"] { background: #624d29; color: #ffe2ab; }
.plan-status[data-tone="inactive"] { background: #5b333c; color: #ffd5dc; }
.subscription-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; align-content: center; min-width: 0; }
.subscription-facts dt { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.subscription-facts dd { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
#subscriptionNotice { margin: 20px 0 0; }
.subscription-details { margin-top: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.subscription-details summary { cursor: pointer; font-size: 12px; min-height: 32px; }
.subscription-details .subscription-facts { margin-top: 18px; }
.subscription-details dd { font-size: 12px; }
.subscription-esim { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.subscription-esim h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.subscription-esim .panel-header { margin-bottom: 18px; }
.subscription-esim .section-note { margin-bottom: 0; }
.subscription-esim .subscription-facts { margin-bottom: 24px; }
.subscription-esim dd { font-size: 13px; }
.subscription-qr { margin-top: 22px; }
.subscription-qr img { display: block; width: 220px; height: 220px; object-fit: contain; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: white; margin-bottom: 12px; }
@media (max-width: 900px) { .subscription-summary { grid-template-columns: minmax(0, 1fr); gap: 24px; } .membership-card { min-height: 200px; } }
@media (max-width: 1000px) {
    .profile-edit-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .photo-editor { border-right: 0; padding-right: 0; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
    .photo-editor p { max-width: none; }
    .editable-avatar { width: 112px; height: 112px; font-size: 36px; }
}
@media (max-width: 600px) {
    .profile-hero { flex-direction: column-reverse; align-items: flex-start; gap: 28px; padding: 16px 8px 28px; }
    .identity-card { flex-direction: row; text-align: left; flex-wrap: wrap; gap: 12px; min-width: 0; }
    .identity-avatar { width: 64px; height: 64px; font-size: 24px; }
    .identity-card .chip { display: none; }
    .profile-hero h1 { font-size: 44px; }
    .profile-hero p { font-size: 14px; }
    .profile-save { justify-content: stretch; }
    .profile-save .action-button { width: 100%; }
}
