/* Account navigation and profile hierarchy. */
.account-view { max-width: 1280px; margin-inline: auto; gap: 22px; }
.account-view > .page-head { margin: 0; }
.account-shell { display: grid; grid-template-columns: 218px minmax(0,1fr); gap: 26px; align-items: start; }
.account-navigation { position: sticky; top: 104px; display: grid; gap: 5px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.account-nav-item { display: flex; align-items: center; gap: 10px; min-height: 49px; padding: 12px; border-radius: 12px; font-size: 13px; font-weight: 600; color: #6b7f95; }
.account-nav-item > span { flex: 1; }
.account-nav-item > svg:last-child { width: 13px; color: #a5b2c1; }
.account-nav-item.is-current { color: var(--brand); background: var(--brand-soft); }
.account-nav-item.is-current > svg:last-child { color: var(--brand); }
.account-body,.account-body > [data-account-content] { min-width: 0; gap: 18px; }
.account-mobile-back { display: none; }
.profile-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.profile-identity { display: flex; align-items: center; min-width: 0; gap: 18px; }
.profile-identity > div { min-width: 0; }
.profile-avatar { width: 78px; height: 78px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; overflow: hidden; color: #2777d9; background: #eaf2ff; border: 5px solid #f6f9ff; }
.profile-avatar > img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar > .badge { width: 100%; height: 100%; display: grid; place-items: center; color: #347ac9; font-size: 29px; font-weight: 600; background: transparent; }
.profile-hero .eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .08em; color: #7d8fa5; }
.profile-hero h2 { margin: 4px 0 5px; font-size: clamp(21px,2vw,27px); line-height: 1.3; }
.profile-hero p { font-size: 13px; }
.profile-hero .button { flex: 0 0 auto; }
.account-profile .profile-wallet-preview { padding: 18px 24px; margin: 0; }
.account-profile .profile-wallet-preview strong { font-size: 26px; }
.profile-settings-group { overflow: hidden; border: 1px solid var(--line); border-radius: 21px; background: #fff; }
.profile-group-title { padding: 22px 24px 12px; font-size: 17px; letter-spacing: -.02em; }
.profile-disclosure { min-width: 0; }
.profile-disclosure > summary,.profile-help-link { display: flex; align-items: center; gap: 13px; min-height: 78px; padding: 16px 24px; list-style: none; cursor: pointer; }
.profile-disclosure > summary::-webkit-details-marker { display: none; }
.profile-disclosure + .profile-disclosure > summary,.profile-help-link { border-top: 1px solid #f0f2f6; }
.profile-row-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 14px; color: #3485ee; background: #eef5ff; }
.profile-row-copy { display: grid; gap: 4px; flex: 1; min-width: 0; }
.profile-row-copy > strong { font-size: 15px; font-weight: 650; line-height: 1.3; }
.profile-row-copy > small { font-size: 12px; color: #7a8da3; line-height: 1.4; }
.profile-disclosure > summary > svg:last-child,.profile-help-link > svg:last-child { flex: 0 0 auto; color: #879bb1; }
.profile-disclosure[open] > summary > svg:last-child { transform: rotate(90deg); color: var(--brand); }
.profile-disclosure[open] > summary { background: #fcfdff; }
.profile-disclosure-body { padding: 6px 24px 24px; gap: 16px; }
.profile-disclosure-body > form { gap: 17px; }
.profile-disclosure .form-grid { gap: 17px; }
.profile-disclosure .field { gap: 7px; font-size: 12px; font-weight: 600; }
.profile-disclosure .field small { font-size: 11px; font-weight: 400; }
.profile-disclosure input[type=file] { font-size: 12px; padding: 8px; background: #f7f9fc; line-height: 1.7; }
.profile-disclosure input[type=file]::file-selector-button { border: 0; border-radius: 9px; padding: 7px 10px; background: #e8f1ff; color: #286abc; margin-right: 8px; font: inherit; cursor: pointer; }
.profile-disclosure-body > [data-resume-current] > .empty { min-height: auto; padding: 16px; border-radius: 13px; background: #f7f9fc; font-size: 13px; }
.profile-session { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.profile-session h2 { font-size: 16px; margin-bottom: 4px; }
.profile-session .button { color: #b6484a; background: #fff5f5; border-color: #f7dfdf; font-size: 12px; }
.profile-delete { border: 1px solid #efdfe1; border-radius: 19px; background: #fff; }
.profile-delete > summary { min-height: 64px; color: #a84a50; font-size: 13px; }
.profile-delete .profile-row-icon { color: #b4565d; background: #fff3f4; }
.form-feedback { display: flex; align-items: center; gap: 7px; border-radius: 11px; background: #eff9f4; padding: 10px 13px; color: #277051; font-size: 13px; }
.form-feedback::before { content: '✓'; font-weight: 750; }
.is-loading::before { content: ''; display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@media (prefers-reduced-motion: no-preference) {
 .account-nav-item,.profile-disclosure > summary,.profile-help-link { transition: background 160ms ease,color 160ms ease; }
 .profile-disclosure > summary > svg:last-child { transition: transform 180ms ease; }
 .profile-disclosure[open] > .profile-disclosure-body { animation: profile-reveal 190ms ease-out; }
 .account-body { animation: profile-arrive 200ms ease-out; }
 .profile-wallet-preview,.profile-hero .button,.account-view .button { transition: transform 150ms ease,background 150ms ease,box-shadow 150ms ease; }
 .profile-wallet-preview:active,.account-view .button:active:not(:disabled) { transform: scale(.985); }
 .form-feedback { animation: profile-arrive 180ms ease-out; }
 @media (hover:hover) {
  .account-nav-item:hover,.profile-disclosure > summary:hover,.profile-help-link:hover { background: #f5f8fc; color: var(--brand); }
  .profile-wallet-preview:hover { transform: translateY(-2px); box-shadow: 0 7px 18px #1462c51a; }
 }
}
@keyframes profile-reveal { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes profile-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width:1100px) {
 .account-shell { grid-template-columns: 190px minmax(0,1fr); gap: 18px; }
 .account-nav-item { padding: 11px 8px; font-size: 12px; }
 .account-body .wallet-layout { grid-template-columns: minmax(0,1fr); }
 .account-body .wallet-overview { max-width: none; }
}
@media (max-width:820px) {
 .account-shell { grid-template-columns: minmax(0,1fr); gap: 18px; }
 .account-navigation { display: none; position: static; }
 .account-profile .account-navigation { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; padding: 0; border: 0; background: transparent; }
 .account-profile .account-nav-item { flex-direction: column; justify-content: center; text-align: center; gap: 8px; min-height: 82px; background: #fff; border: 1px solid var(--line); border-radius: 16px; font-size: 11px; padding: 12px 5px; color: #476784; }
 .account-profile .account-nav-item > span { flex: none; }
 .account-profile .account-nav-item > svg:first-child { color: #4b8cde; width: 22px; height: 22px; }
 .account-profile .account-nav-item > svg:last-child,.account-profile .account-nav-item[data-route=profile] { display: none; }
 .account-mobile-back { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-strong); font-size: 13px; font-weight: 600; min-height: 34px; }
 .account-profile .account-mobile-back { display: none; }
 .account-profile .account-shell { display: flex; flex-direction: column; }
 .account-profile .account-navigation,.account-profile .account-body { width: 100%; }
 .account-profile .account-navigation { order: 1; }
 .account-profile .account-body { order: 0; }
 .account-profile .account-body > [data-account-content] { display: contents; }
 .account-profile .account-body { display: contents; }
 .account-profile .profile-hero { order: 0; width: 100%; }
 .account-profile .profile-wallet-preview { order: 2; width: 100%; }
 .account-profile .profile-settings-group { order: 3; width: 100%; }
 .account-profile .profile-session { order: 4; width: 100%; }
 .account-profile .profile-delete { order: 5; width: 100%; }
}
@media (max-width:535px) {
 .account-view { gap: 17px; }
 .account-profile > .page-head .eyebrow { display: none; }
 .profile-hero { padding: 20px 18px; gap: 12px; flex-wrap: wrap; }
 .profile-identity { gap: 13px; flex: 1; }
 .profile-avatar { width: 62px; height: 62px; border-width: 3px; }
 .profile-avatar > .badge { font-size: 24px; }
 .profile-hero h2 { font-size: 20px; }
 .profile-hero p { font-size: 12px; }
 .profile-hero .eyebrow { font-size: 9px; }
 .profile-hero .button { width: 100%; min-height: 38px; font-size: 12px; }
 .account-profile .profile-wallet-preview { padding: 17px; gap: 12px; border-radius: 19px; }
 .account-profile .profile-wallet-preview strong { font-size: 23px; }
 .account-profile .profile-wallet-icon { width: 44px; height: 44px; border-radius: 13px; }
 .profile-group-title { padding: 19px 18px 8px; font-size: 16px; }
 .profile-disclosure > summary,.profile-help-link { padding: 15px 18px; gap: 11px; min-height: 75px; }
 .profile-row-icon { width: 37px; height: 37px; border-radius: 12px; }
 .profile-row-copy > strong { font-size: 14px; }
 .profile-row-copy > small { font-size: 11px; }
 .profile-disclosure-body { padding: 4px 18px 20px; }
 .profile-disclosure .form-grid { grid-template-columns: 1fr; gap: 15px; }
 .profile-disclosure form > .actions .button { width: 100%; }
 .profile-session { align-items: flex-start; flex-direction: column; padding: 18px; gap: 14px; }
 .profile-session > form,.profile-session .button { width: 100%; }
 .profile-disclosure-body .field input { scroll-margin-top: 90px; }
}
@media (prefers-reduced-motion:reduce) {
 .account-view *, .account-view *::before,.account-view *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
