/* ==========================================================================
   Profile page — unique page-specific components.
   Design blueprint: maps to Ultimate Member's profile/account fields,
   including its Profile Completeness extension.
   ========================================================================== */
body.app-body { overflow-x: hidden; }
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .app-shell { grid-template-columns: 1fr; } }
.app-sidebar { background: var(--bg-alt); border-right: 1px solid var(--border); padding: 1.75rem 1.25rem; display: flex; flex-direction: column; }
@media (max-width: 900px) { .app-sidebar { border-right: none; border-bottom: 1px solid var(--border); flex-direction: row; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; } }
.app-sidebar__brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 2.5rem; }
.app-sidebar__brand img { height: 28px; width: 28px; }
.app-sidebar__brand span { font-weight: 700; color: var(--white); }
@media (max-width: 900px) { .app-sidebar__brand { margin-bottom: 0; } }
.app-nav { display: flex; flex-direction: column; gap: 0.3rem; flex-grow: 1; }
@media (max-width: 900px) { .app-nav { display: none; } }
.app-nav a { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.8rem; border-radius: var(--radius-sm); color: var(--muted); font-size: 0.92rem; }
.app-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.app-nav a:hover { color: var(--white); text-decoration: none; background: rgba(255,255,255,0.03); }
.app-nav a.is-active { color: var(--white); background: rgba(250,184,44,0.08); }
.app-sidebar__logout { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.8rem; color: var(--muted); font-size: 0.92rem; margin-top: auto; }
.app-sidebar__logout svg { width: 18px; height: 18px; }
.app-sidebar__logout:hover { color: var(--white); text-decoration: none; }

.app-main { padding: clamp(1.75rem, 4vw, 3rem); max-width: 780px; }
.app-main h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 2rem; }

/* ---- Completeness header with circular ring ---- */
.completeness { display: flex; align-items: center; gap: 1.75rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 2.5rem; }
.ring-wrap { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
.ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { stroke: var(--border-strong); }
.ring-fill { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 1.2s cubic-bezier(.16,.84,.44,1); }
.ring-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 1rem; color: var(--white); }
.completeness__text h2 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.completeness__text p { font-size: 0.88rem; color: var(--muted); }

/* ---- Inline editable fields ---- */
.edit-section { margin-bottom: 2.25rem; }
.edit-section h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.edit-field { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.edit-field__label { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 0.3rem; }
.edit-field__value { font-size: 1rem; color: var(--white); }
.edit-field__input { display: none; width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--orange); border-radius: var(--radius-sm); background: var(--bg); color: var(--white); font-size: 1rem; font-family: var(--font-sans); }
.edit-field.is-editing .edit-field__value { display: none; }
.edit-field.is-editing .edit-field__input { display: block; }
.edit-field__btn { all: unset; cursor: pointer; color: var(--muted); font-family: var(--font-mono); font-size: 0.8rem; flex-shrink: 0; display: flex; align-items: center; gap: 0.4rem; }
.edit-field__btn:hover { color: var(--white); }
.edit-field__btn svg { width: 15px; height: 15px; }
.edit-field.is-editing .edit-field__btn--edit { display: none; }
.edit-field__btn--save { display: none; color: var(--success); }
.edit-field.is-editing .edit-field__btn--save { display: flex; }
.edit-field__saved { font-family: var(--font-mono); font-size: 0.78rem; color: var(--success); display: flex; align-items: center; gap: 0.35rem; opacity: 0; transition: opacity 0.3s ease; flex-shrink: 0; }
.edit-field__saved.is-visible { opacity: 1; }
.edit-field__saved svg { width: 14px; height: 14px; }

/* ---- Password section (collapsible) ---- */
.pw-section__toggle { all: unset; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; color: var(--orange); font-family: var(--font-mono); font-size: 0.88rem; }
.pw-section__toggle svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.pw-section.is-open .pw-section__toggle svg { transform: rotate(45deg); }
.pw-section__body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.pw-section.is-open .pw-section__body { max-height: 500px; }
.pw-section__body-inner { padding-top: 1.5rem; }
.field-float { position: relative; margin-bottom: 1.2rem; max-width: 380px; }
.field-float input { width: 100%; padding: 1.1rem 1.1rem 0.45rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-solid); color: var(--white); font-size: 0.98rem; font-family: var(--font-sans); }
.field-float input:focus { outline: none; border-color: var(--orange); }
.field-float label { position: absolute; left: 1.1rem; top: 1.1rem; color: var(--muted); font-size: 0.98rem; pointer-events: none; transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease; }
.field-float input:focus + label, .field-float input:not(:placeholder-shown) + label { top: 0.4rem; font-size: 0.7rem; color: var(--orange); }
.field-float input::placeholder { color: transparent; }
