/* ═══════════════════════════════════════════════════════════════════════════
   user.css — the /user/ pages (log in, sign up, profile)
   Builds on theme.css + main.css + site.css. Every colour is a theme variable,
   so the pages follow the site's colour scheme (Fuzzzcolor) and the visitor's
   own pick.
   ═══════════════════════════════════════════════════════════════════════════ */

.u-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.u-body ::selection { background: rgba(var(--accent-rgb), .35); }
.u-body [hidden] { display: none !important; }

.u-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.05;
    margin: 0 0 .6rem;
    overflow-wrap: anywhere;
}
.u-lead { color: var(--muted); line-height: 1.6; margin-bottom: 1.4rem; font-size: .92rem; }
.u-lead strong { color: var(--text); }
.u-hint { color: var(--muted); font-size: .8rem; line-height: 1.55; margin: 0 0 1rem; }
.u-hint strong { color: var(--text); }
.u-small { font-size: .8rem; }
.u-center { text-align: center; }
.u-muted { color: var(--muted); font-size: .78rem; }
.u-opt { color: var(--muted); font-weight: 400; font-size: .72rem; text-transform: none; letter-spacing: 0; }
.u-empty { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }

.u-link, .u-linkbtn {
    color: var(--accent-ink);
    font-size: .82rem;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}
.u-link:hover, .u-linkbtn:hover { text-decoration: underline; }
.u-linkbtn:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.u-danger-text { color: #f87171; }

/* ── AUTH CARD ── */
.u-auth {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: calc(var(--nav-h) + 3rem) 1rem 4rem;
    position: relative;
}
.u-auth::before {                     /* soft accent glow behind the card */
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(50rem 26rem at 50% 0%, rgba(var(--accent-rgb), .13), transparent 70%);
    pointer-events: none;
}
.u-auth-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: clamp(1.4rem, 4vw, 2.2rem);
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    animation: uRise .45s ease both;
}
.u-auth-wide { max-width: 640px; }
.u-auth-head .section-label { margin-bottom: .5rem; }
@keyframes uRise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .u-auth-card { animation: none; } }

.u-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .25rem;
    padding: .25rem;
    margin: 0 0 1.4rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
}
.u-tabs a {
    text-align: center;
    padding: .6rem .5rem;
    border-radius: 9px;
    text-decoration: none;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 500;
    transition: background .2s, color .2s;
}
.u-tabs a:hover { color: var(--text); }
.u-tabs a.on { background: var(--accent); color: var(--on-accent); font-weight: 700; }

/* sign-up progress */
.u-steps {
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: .25rem;
    margin: 0 0 1.4rem;
    padding: 0;
    counter-reset: none;
}
.u-steps li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    font-size: .62rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    position: relative;
}
.u-steps li:not(:last-child)::after {      /* the line to the next step */
    content: "";
    position: absolute;
    top: 13px;
    left: calc(50% + 16px);
    right: calc(-50% + 16px);
    height: 2px;
    background: var(--border);
}
.u-steps li.done:not(:last-child)::after { background: var(--accent); }
.u-steps span {
    width: 28px; height: 28px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 2px solid var(--border);
    font-size: .75rem;
    font-weight: 700;
    background: var(--bg);
}
.u-steps li.done span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.u-steps li.now { color: var(--text); }
.u-steps li.now span { border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18); }

/* ── FORMS ── */
.u-form { display: grid; gap: 1rem; }
.u-field { display: grid; gap: .35rem; min-width: 0; }
.u-field > span:first-child {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--muted);
}
.u-field em { color: var(--accent-ink); font-style: normal; }
.u-field small { color: var(--muted); font-size: .72rem; line-height: 1.5; }

.u-body input[type=text], .u-body input[type=email], .u-body input[type=password],
.u-body input[type=date], .u-body select, .u-body textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .7rem .85rem;
    color: var(--text);
    font: inherit;
    font-size: .9rem;
    transition: border-color .15s, box-shadow .15s;
    color-scheme: dark;
}
.u-body textarea { resize: vertical; min-height: 4.5rem; line-height: 1.5; }
.u-body input:focus, .u-body select:focus, .u-body textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2);
}
.u-body input:disabled { opacity: .6; }
.u-body input::placeholder, .u-body textarea::placeholder { color: var(--muted); opacity: .7; }

.u-code {
    font-size: 1.7rem !important;
    letter-spacing: .5em;
    text-align: center;
    font-weight: 800;
    padding: .8rem .5rem !important;
}

/* "@" prefix in front of a field */
.u-at { display: flex; align-items: stretch; }
.u-at b {
    display: grid; place-items: center;
    padding: 0 .7rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    color: var(--accent-ink);
    font-weight: 700;
}
.u-at input { border-radius: 0 10px 10px 0 !important; min-width: 0; }

.u-pass { position: relative; display: block; }
.u-pass input { padding-right: 2.8rem; }
.u-eye {
    position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
    background: none; border: 0; cursor: pointer; font-size: 1rem; opacity: .55;
    padding: .3rem .45rem; border-radius: 6px;
}
.u-eye:hover, .u-eye.on { opacity: 1; }

.u-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 560px) { .u-grid2 { grid-template-columns: 1fr; } }

.u-fieldset { border: 1px dashed var(--border); border-radius: 12px; padding: .9rem 1rem 1rem; display: grid; gap: .8rem; min-width: 0; }
.u-fieldset legend { padding: 0 .4rem; font-size: .72rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }

.u-note {
    font-size: .74rem;
    line-height: 1.5;
    color: var(--muted);
    background: rgba(var(--accent-rgb), .07);
    border-left: 3px solid var(--accent);
    padding: .55rem .7rem;
    border-radius: 0 8px 8px 0;
}

.u-check { display: flex; gap: .55rem; align-items: flex-start; font-size: .82rem; cursor: pointer; line-height: 1.45; }
.u-check input { accent-color: var(--accent); width: 17px; height: 17px; margin-top: .1rem; flex: none; }
.u-agree a { color: var(--accent-ink); }

.u-row-between { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.u-submit { width: 100%; padding: .85rem 1rem; font-size: .95rem; font-weight: 700; border: 0; cursor: pointer; font-family: inherit; }
.u-body .btn { border: 0; cursor: pointer; font-family: inherit; }
.u-body .btn-secondary { border: 1px solid var(--border); }
.u-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.u-actions .btn { padding: .65rem 1.4rem; }

/* honeypot — visually gone, still in the form for bots */
.u-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.u-pwrules { list-style: none; display: grid; gap: .25rem; font-size: .74rem; color: var(--muted); margin: -.3rem 0 0; padding: 0; }
.u-pwrules li::before { content: "○ "; }
.u-pwrules li.ok { color: #4ade80; }
.u-pwrules li.ok::before { content: "● "; }

/* radio pills + chips */
.u-choice { display: flex; gap: .5rem; flex-wrap: wrap; }
.u-pill, .u-chip {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem .9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    font-size: .84rem;
    background: var(--bg);
    transition: border-color .15s, background .15s;
}
.u-pill input, .u-chip input { accent-color: var(--accent); }
.u-pill:has(input:checked), .u-chip:has(input:checked) { border-color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.u-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.u-chip { font-size: .78rem; padding: .4rem .75rem; }
.u-health { display: grid; gap: .9rem; }

/* ── ALERTS ── */
.u-alert {
    padding: .7rem .9rem;
    border-radius: 10px;
    font-size: .84rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    border: 1px solid;
}
.u-alert-err { background: rgba(232,92,74,.1); border-color: rgba(232,92,74,.45); color: #ffb4a9; }
.u-alert-ok  { background: rgba(74,222,128,.08); border-color: rgba(74,222,128,.4); color: #a7f3c4; }

/* ═══ PROFILE ═══ */
.u-page {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 2.2rem) clamp(1rem, 3vw, 2rem) 4rem;
}
.u-hero {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    flex-wrap: wrap;
    padding: 1.4rem;
    margin-bottom: 1.4rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background:
        radial-gradient(40rem 12rem at 0% 0%, rgba(var(--accent-rgb), .16), transparent 70%),
        var(--surface);
}
.u-hero-pic {
    width: 104px; height: 104px; flex: none;
    border-radius: 22px; overflow: hidden;
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .15);
}
.u-hero-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.u-hero-text { flex: 1; min-width: 200px; }
.u-hero-text .section-label { margin-bottom: .3rem; }
.u-hero-text .u-title { margin-bottom: .4rem; }
.u-hero-sonas { display: flex; gap: .35rem; flex-wrap: wrap; }
.u-sona {
    font-size: .78rem; text-decoration: none; color: var(--text);
    padding: .2rem .6rem; border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .1);
}
.u-sona.pending { border-style: dashed; opacity: .7; }
.u-hero-out { margin-left: auto; }
.u-hero-out .btn { padding: .55rem 1.1rem; }

.u-layout { display: grid; grid-template-columns: 200px 1fr; gap: 1.4rem; align-items: start; }
.u-side {
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
    display: grid;
    gap: .2rem;
}
.u-side a {
    text-decoration: none; color: var(--muted); font-size: .84rem;
    padding: .5rem .7rem; border-radius: 9px; border: 1px solid transparent;
}
.u-side a:hover { color: var(--text); background: var(--surface); border-color: var(--border); }
.u-side a.on { color: var(--text); background: rgba(var(--accent-rgb), .12); border-color: rgba(var(--accent-rgb), .45); }
.u-sections { display: grid; gap: 1.2rem; min-width: 0; }

@media (max-width: 820px) {
    .u-layout { grid-template-columns: 1fr; }
    .u-side {
        top: var(--nav-h);
        z-index: 5;
        display: flex;
        overflow-x: auto;
        gap: .3rem;
        padding: .5rem 0;
        margin: -.5rem 0 0;
        background: var(--bg);
        scrollbar-width: none;
    }
    .u-side::-webkit-scrollbar { display: none; }
    .u-side a { white-space: nowrap; border-color: var(--border); font-size: .78rem; }
    .u-hero-out { margin-left: 0; }
}

.u-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: clamp(1.1rem, 3vw, 1.6rem);
    scroll-margin-top: calc(var(--nav-h) + 4rem);
}
.u-card > h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: .7rem;
}
.u-card:target { border-color: rgba(var(--accent-rgb), .6); }

/* avatar */
.u-avatar-row { display: flex; gap: 1.4rem; align-items: flex-start; flex-wrap: wrap; }
.u-avatar-big {
    width: 168px; height: 168px; flex: none;
    border-radius: 24px; overflow: hidden;
    border: 1px solid var(--border); background: var(--bg);
}
.u-avatar-big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.u-avatar-help { flex: 1; min-width: 240px; display: grid; gap: .8rem; }
.u-callout {
    font-size: .84rem; line-height: 1.55;
    padding: .75rem .9rem; border-radius: 12px;
    background: rgba(var(--accent-rgb), .08); border: 1px solid rgba(var(--accent-rgb), .35);
}
.u-file { position: relative; display: block; }
.u-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.u-file span {
    display: block; text-align: center;
    padding: .9rem; border: 2px dashed var(--border); border-radius: 12px;
    color: var(--muted); font-size: .85rem; transition: border-color .15s, color .15s;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.u-file:hover span, .u-file:focus-within span { border-color: var(--accent); color: var(--text); }
.u-inline { display: inline; }

/* fursonas */
.u-sona-list { display: grid; gap: .7rem; margin-bottom: 1rem; }
.u-sona-card { border: 1px solid var(--border); border-radius: 14px; padding: .8rem .9rem; background: var(--bg); display: grid; gap: .6rem; }
.u-sona-card header { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.u-sona-name { font-weight: 800; color: var(--text); text-decoration: none; font-size: 1rem; }
.u-sona-name:hover { color: var(--accent-ink); }
.u-push { margin-left: auto; }
.u-x {
    background: none; border: 1px solid var(--border); color: var(--muted);
    width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: .8rem;
}
.u-x:hover { color: #f87171; border-color: #f87171; }
.u-tags { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.u-tag { font-size: .74rem; padding: .15rem .5rem; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); }
.u-tag.new { border-color: rgba(var(--accent-rgb), .55); color: var(--accent-ink); }
.u-req { font-size: .78rem; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; color: var(--muted); }
.u-req.rejected { color: #f8a29a; }
.u-tagform { display: flex; gap: .5rem; flex-wrap: wrap; }
.u-tagform input { flex: 1 1 200px; padding: .55rem .75rem !important; font-size: .84rem !important; }
.u-tagform .btn { padding: .55rem 1rem; font-size: .82rem; }

.u-addrow { display: flex; gap: .55rem; flex-wrap: wrap; align-items: stretch; }
.u-addrow .u-at { flex: 1 1 220px; }
.u-addrow select { flex: 0 0 auto; width: auto !important; }
.u-addrow > input[type=text] { flex: 1 1 220px; }
.u-addrow .btn { padding: .65rem 1.2rem; }

.u-badge { font-size: .66rem; padding: .15rem .5rem; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.u-badge.warn { color: #fcd34d; border-color: rgba(252,211,77,.45); background: rgba(252,211,77,.08); }
.u-badge.bad  { color: #f8a29a; border-color: rgba(248,113,113,.45); background: rgba(248,113,113,.08); }

/* socials */
.u-links { list-style: none; display: grid; gap: .4rem; margin: 0 0 1rem; padding: 0; }
.u-links li {
    display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
    padding: .5rem .7rem; border: 1px solid var(--border); border-radius: 11px; background: var(--bg);
    font-size: .85rem;
}
.u-links a { color: var(--text); overflow-wrap: anywhere; }
.u-link-plat { font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-ink); min-width: 6.5rem; }

/* colour swatches */
.u-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.u-swatch {
    display: flex; align-items: center; gap: .6rem;
    padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 12px;
    cursor: pointer; background: var(--bg); font-size: .8rem; line-height: 1.2;
    transition: border-color .15s;
}
.u-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.u-swatch small { display: block; color: var(--muted); font-size: .68rem; }
.u-swatch-dot {
    width: 26px; height: 26px; flex: none; border-radius: 50%;
    background: var(--dot); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--border);
}
.u-swatch-dot.rainbow { background: conic-gradient(#e40303, #ff8c00, #ffed00, #008026, #004cff, #732982, #e40303); }
.u-swatch:has(input:checked) { border-color: var(--accent); background: rgba(var(--accent-rgb), .1); }
.u-swatch:has(input:checked) .u-swatch-dot { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }
.u-swatch:has(input:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

/* account */
.u-details { margin-top: 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.u-details summary { cursor: pointer; padding: .75rem .9rem; font-size: .86rem; }
.u-details[open] summary { border-bottom: 1px solid var(--border); }
.u-details .u-form { padding: 1rem; }
.u-danger { border-color: rgba(248,113,113,.35); }
.u-danger summary { color: #f8a29a; }
.u-btn-danger { background: #c53030; color: #fff; padding: .65rem 1.4rem; border-radius: 8px; font-weight: 700; }
.u-btn-danger:hover { background: #e53e3e; }

/* ── fursona badges ── */
.u-sona-card { grid-template-columns: 96px minmax(0, 1fr); align-items: start; gap: .9rem; }
.u-sona-body { display: grid; gap: .6rem; min-width: 0; }
.u-sona-badge { display: grid; gap: .35rem; justify-items: center; }
.u-sona-pic {
    width: 96px; height: 96px; display: grid; place-items: center; font-size: 2rem;
    border-radius: 18px; overflow: hidden; background: var(--surface); border: 2px solid rgba(var(--accent-rgb), .5);
}
.u-sona-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.u-sona-pic img.fallback { opacity: .5; filter: grayscale(.4); }
.u-sona-up { width: 100%; font-size: .72rem; text-align: center; }
.u-sona-up summary { cursor: pointer; color: var(--accent-ink); list-style: none; }
.u-sona-up summary::-webkit-details-marker { display: none; }
.u-sona-up[open] { position: relative; }
.u-sona-up[open] .u-form {
    position: absolute; z-index: 6; left: 0; top: 1.5rem; width: 240px; text-align: left;
    padding: .8rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 14px 40px rgba(0,0,0,.5);
}
.u-sona-up input[type=file] { font-size: .72rem; max-width: 100%; }
@media (max-width: 520px) { .u-sona-card { grid-template-columns: 72px minmax(0, 1fr); } .u-sona-pic { width: 72px; height: 72px; } }

/* ── photos + events ── */
.u-subhead { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin: 1.3rem 0 .7rem; }
.u-subhead:first-of-type { margin-top: .4rem; }
.u-subhead h3 { font-size: .95rem; font-weight: 700; }
.u-subhead h3 small { color: var(--muted); font-weight: 400; font-size: .75rem; }
.u-subhead .btn { padding: .5rem 1rem; font-size: .8rem; }
.u-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.u-photo { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg); }
.u-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.u-photo:hover img { transform: scale(1.06); }
.u-photo-st { position: absolute; left: 4px; bottom: 4px; font-size: .6rem; padding: .1rem .35rem; border-radius: 5px; background: rgba(0,0,0,.75); color: #fcd34d; }
.u-events, .u-acts { list-style: none; display: grid; gap: .45rem; margin: 0; padding: 0; }
.u-events li {
    display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: .75rem; align-items: center;
    padding: .45rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg);
}
.u-events img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; }
.u-ev-main { display: grid; gap: .1rem; min-width: 0; }
.u-ev-main a { color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-ev-main a:hover { color: var(--accent-ink); }
.u-ev-main small { color: var(--muted); font-size: .72rem; }
.u-ev-tags { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.u-ev-tags a { text-decoration: none; }
.u-badge.ok { color: #86efac; border-color: rgba(74,222,128,.45); background: rgba(74,222,128,.08); }
.u-acts li { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; font-size: .84rem; padding: .45rem .6rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
@media (max-width: 520px) { .u-events li { grid-template-columns: 44px minmax(0, 1fr); } .u-events img { width: 44px; height: 44px; } .u-ev-tags { grid-column: 2; justify-content: flex-start; } }
