/* ---------- Small utility pages (Pass C): username (un-), Leaderboard (lb-), Not found (nf-), Coming soon (cs-). ---------- */

/* Username: #/set-username (form kit page) and the Settings "Username" dialog. */
.un-input { position: relative; display: block; }
.un-at { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--text-muted); pointer-events: none; }
.un-input input { padding-left: 32px !important; }
.un-rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.un-rule { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.un-mark { flex: none; width: 22px; height: 22px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--text-muted); }
.un-ok .un-mark { background: var(--success-bg); color: var(--success-text); }
.un-bad .un-mark { background: var(--danger-bg); color: var(--danger-text); }
.un-bad { color: var(--danger-text); font-weight: 600; }
.un-preview { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--surface-2); }
.un-preview-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.un-preview-row { display: flex; align-items: center; gap: 10px; font-size: 15px; min-width: 0; }
.un-preview-row strong { overflow-wrap: anywhere; }
.un-form .fk-form-error[hidden] { display: none; }

/* Leaderboard (#/leaderboard). */
.lb-page { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; padding-bottom: 32px; }
.lb-head { display: flex; flex-direction: column; gap: 6px; }
.lb-h1 { margin: 0; }
.lb-lead { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text-muted); }
.lb-switch { display: flex; padding: 4px; background: var(--surface-2); border-radius: var(--radius-lg); }
.lb-switch button { flex: 1; min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--text-muted); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.lb-switch button.lb-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.lb-switch button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.lb-scope-line { margin: -4px 0 0; font-size: 13px; color: var(--text-muted); }
.lb-list { margin: 0; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.lb-row, .lb-mine { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.lb-row { border-bottom: 1px solid var(--border); }
.lb-row:last-child { border-bottom: 0; }
.lb-row.lb-me { background: var(--brand-tint); }
.lb-mine { border-radius: var(--radius-lg); background: var(--brand-tint); border: 1px solid var(--brand-text); }
.lb-rank { flex: none; width: 36px; height: 36px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: var(--text-muted); }
.lb-top-1 { background: #F5C518; color: #12121C; }
.lb-top-2 { background: #D3D5E0; color: #12121C; }
.lb-top-3 { background: #E9B484; color: #12121C; }
.lb-mine-rank { width: auto; min-width: 36px; color: var(--brand-text); font-size: 16px; }
.lb-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lb-name strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-name > span { font-size: 13px; color: var(--text-muted); }
.lb-you { font-weight: 500; color: var(--text-muted); }
.lb-points { flex: none; text-align: right; display: flex; flex-direction: column; }
.lb-points strong { font-size: 16px; }
.lb-points span { font-size: 12px; color: var(--text-muted); }
.lb-empty { padding: 24px 16px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.lb-empty p { margin: 0; font-size: 15px; line-height: 1.45; }
.lb-how { align-self: center; min-height: 44px; display: inline-flex; align-items: center; color: var(--brand-text); font-size: 15px; font-weight: 600; text-decoration: none; }
.lb-how:hover { text-decoration: underline; }
@media (max-width: 859px) {
  .lb-list { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
}

/* Not found. */
.nf-page { max-width: 480px; margin: 0 auto; padding: 24px 0 32px; display: flex; flex-direction: column; gap: 16px; }
.nf-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.nf-icon { width: 72px; height: 72px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-text); display: flex; align-items: center; justify-content: center; }
.nf-title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.nf-lead { margin: 0; max-width: 340px; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.nf-search { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; box-sizing: border-box; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text-muted); }
.nf-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
.nf-search:focus-within { border-color: var(--focus-ring); box-shadow: 0 0 0 2px var(--focus-ring); }
.nf-discover { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.nf-more { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.nf-more-title { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.nf-links { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.nf-link { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; }
.nf-link:last-child { border-bottom: 0; }
.nf-link:hover { background: var(--surface-2); }
.nf-link span { color: var(--disabled-text); }

/* Coming soon (a location Equafia doesn't cover yet). */
.cs-page { max-width: 480px; margin: 0 auto; padding: 24px 0 32px; display: flex; flex-direction: column; gap: 16px; }
.cs-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.cs-banner { padding: 28px 20px; background: var(--banner-gradient); color: var(--banner-title); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.cs-banner p { margin: 0; max-width: 300px; font-size: 15px; line-height: 1.5; }
.cs-icon { width: 64px; height: 64px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--brand-text); display: flex; align-items: center; justify-content: center; }
.cs-title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--banner-title); }
.cs-actions { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.cs-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); text-align: center; }

/* ---------- Classifieds coming soon (js/classifieds-soon.js), prefix cl-; the page reuses the cs- card above ---------- */
.cl-done { margin: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; color: var(--success-text); text-align: center; }
.cl-error { margin: 0; padding: 0 16px 16px; font-size: 14px; color: var(--danger-text); text-align: center; }
.cl-error[hidden] { display: none; }
.cl-card { display: flex; align-items: center; gap: 12px; margin: 16px 0 8px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-decoration: none; }
.cl-card:hover { background: var(--surface-2); }
.cl-card-icon { flex: none; width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand-text); }
.cl-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.4; color: var(--text-muted); }
.cl-card-text strong { font-size: 15px; color: var(--text); }
.cl-card-arrow { flex: none; color: var(--text-muted); }
.cl-soon-tag { margin-left: auto; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-muted); }
