.profile-content { min-width: 0; display: grid; gap: 22px; }
.profile-hero-account { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; padding: 18px 23px; border: 1px solid rgb(210 172 103 / 30%); border-radius: 14px; background: rgb(255 255 255 / 4%); }
.profile-avatar { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgb(210 172 103 / 55%); border-radius: 50%; color: #e0bf80; background: rgb(210 172 103 / 7%); font-size: 1.6rem; }
.profile-hero-account > div { display: grid; gap: 4px; }
.profile-hero-account small { color: #a7bdce; font-size: .65rem; }
.profile-hero-account strong { font-size: .92rem; font-weight: 500; }
.profile-hero-account div > span { color: #d7c191; font-size: .78rem; letter-spacing: .06em; }
.profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.profile-stat { position: relative; display: grid; gap: 8px; min-width: 0; padding: 20px; border: 1px solid #e1e5e8; border-radius: 14px; background: #fff; transition: border-color .2s, transform .2s, box-shadow .2s; }
.profile-stat:hover { border-color: #c7af7f; transform: translateY(-3px); box-shadow: 0 10px 25px rgb(6 50 99 / 5%); }
.profile-stat:focus-visible, .profile-quicklinks a:focus-visible, .profile-account-actions a:focus-visible, .profile-account-actions button:focus-visible { outline: 2px solid var(--color-gold-dark); outline-offset: 3px; }
.profile-stat__icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 5px; border-radius: 10px; color: var(--color-gold-dark); background: #f8f4eb; }
.profile-stat__icon .roz-icon { width: 20px; height: 20px; }
.profile-stat strong { color: var(--color-ink); font-size: 1.9rem; font-weight: 500; line-height: 1.3; }
.profile-stat > span:last-of-type { color: var(--color-muted); font-size: .73rem; }
.profile-stat .profile-stat__arrow { position: absolute; inset: 25px auto auto 18px; width: 17px; height: 17px; color: #94a3af; }
.profile-quicklinks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.profile-quicklinks a { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 18px 14px; border: 1px solid #e1e5e8; border-radius: 12px; background: #fff; transition: border-color .2s; }
.profile-quicklinks a:hover { border-color: var(--color-gold); }
.profile-quicklinks > a > .roz-icon { width: 22px; height: 22px; color: #60798d; }
.profile-quicklinks a > div { min-width: 0; display: grid; gap: 5px; flex: 1; }
.profile-quicklinks strong { color: var(--color-ink); font-size: .76rem; font-weight: 600; }
.profile-quicklinks small { color: var(--color-muted); font-size: .62rem; }
.profile-quicklinks a > span { color: var(--color-gold-dark); font-size: .8rem; }
.profile-editor { padding: 30px; border: 1px solid #e1e5e8; border-radius: 16px; background: #fff; scroll-margin-top: 140px; }
.profile-section-heading { display: flex; align-items: center; gap: 14px; padding-bottom: 24px; margin-bottom: 26px; border-bottom: 1px solid #edf0f2; }
.profile-section-heading__icon { width: 44px; height: 44px; display: grid; flex: 0 0 auto; place-items: center; color: var(--color-gold-dark); background: #f8f4eb; border-radius: 12px; }
.profile-section-heading h2 { margin: 0 0 5px; font-size: 1.05rem; font-weight: 600; }
.profile-section-heading p { margin: 0; color: var(--color-muted); font-size: .75rem; }
.profile-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 22px; }
.profile-form .ui-field label { color: #4d6475; font-size: .76rem; font-weight: 500; }
.profile-form .ui-field input { min-height: 49px; border: 1px solid #dce2e6; border-radius: 9px; font-size: .9rem; }
.profile-form input[type='email'], .profile-form input[type='tel'] { direction: ltr; text-align: left; }
.profile-form .ui-field input:focus { border-color: var(--color-gold-dark); box-shadow: 0 0 0 3px rgb(210 172 103 / 13%); }
.profile-form .ui-field--error input { border-color: var(--color-danger); }
.profile-form .ui-field--error small { color: var(--color-danger); }
.profile-gender { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border: 1px solid #dce2e6; border-radius: 9px; }
.profile-gender legend { padding-inline: 5px; color: #4d6475; font-size: .75rem; }
.profile-gender label { display: flex; align-items: center; gap: 6px; font-size: .78rem; }
.profile-gender input { accent-color: var(--color-ink); }
.profile-gender button { margin-inline-start: auto; padding: 0; border: 0; color: var(--color-gold-dark); background: transparent; font: inherit; font-size: .64rem; cursor: pointer; }
.profile-gender small { width: 100%; color: var(--color-danger); }
.profile-form__submit { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 18px; padding-top: 24px; margin-top: 3px; border-top: 1px solid #edf0f2; }
.profile-form__submit > span { display: flex; align-items: center; gap: 8px; max-width: 40ch; color: var(--color-muted); font-size: .65rem; line-height: 1.9; }
.profile-form__submit .roz-icon { width: 17px; height: 17px; color: #7a8f9f; }
.profile-form__submit .ui-button { min-height: 48px; flex-shrink: 0; border-radius: 9px; background: var(--color-ink); box-shadow: none; font-size: .8rem; }
.profile-account-actions { display: flex; align-items: center; gap: 14px; padding: 22px 25px; border: 1px solid #e1e5e8; border-radius: 14px; background: #fff; }
.profile-account-actions > .roz-icon { color: #8195a5; }
.profile-account-actions > div { flex: 1; }
.profile-account-actions strong { color: var(--color-ink); font-size: .82rem; font-weight: 600; }
.profile-account-actions p { margin: 4px 0 0; color: var(--color-muted); font-size: .69rem; }
.profile-account-actions a { min-height: 40px; display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid #d9dfe3; border-radius: 8px; color: var(--color-ink); font-size: .72rem; }
.profile-account-actions button { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 7px 10px; border: 0; border-radius: 8px; color: #9d4c46; background: #fcf3f1; font: inherit; font-size: .7rem; cursor: pointer; }
.profile-account-actions button .roz-icon { width: 16px; height: 16px; }
.profile-account-actions button:disabled { opacity: .5; cursor: wait; }
@media (max-width: 1180px) and (min-width: 981px) {
    .profile-stats { gap: 10px; }
    .profile-stat { padding: 16px; }
    .profile-quicklinks { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .profile-hero-account { width: 100%; padding: 13px 16px; }
    .profile-avatar { width: 45px; height: 45px; font-size: 1.3rem; }
    .profile-content { gap: 18px; }
    .profile-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .profile-stat { gap: 6px; padding: 17px; }
    .profile-stat strong { font-size: 1.7rem; }
    .profile-quicklinks { grid-template-columns: 1fr; gap: 9px; }
    .profile-quicklinks a { padding: 15px 18px; }
    .profile-editor { padding: 22px 18px; scroll-margin-top: 105px; }
    .profile-form { grid-template-columns: 1fr; gap: 20px; }
    .profile-form__submit { grid-column: auto; flex-direction: column; align-items: stretch; padding-top: 20px; }
    .profile-form__submit .ui-button { width: 100%; }
    .profile-section-heading { align-items: flex-start; gap: 12px; }
    .profile-section-heading h2 { font-size: .96rem; }
    .profile-section-heading p { font-size: .69rem; }
    .profile-account-actions { flex-wrap: wrap; padding: 20px 18px; }
    .profile-account-actions > div { flex-basis: calc(100% - 45px); }
    .profile-account-actions a { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .profile-stat, .profile-quicklinks a { transition: none; }
    .profile-stat:hover { transform: none; }
}
