/*
 * Numerologia24 — wspólny język wizualny nowych stron (profil, kolejne strony; kokpit ma jeszcze własną kopię w widoku).
 * Kolory: granat nocy #14122b, fiolet #6d3fe0, złoto #e6c36a, róż #d6457f. Bodoni Moda (OFL) z public/fonts/bodoni-moda.
 * Użycie: kontener .nu na stronie; tokeny przełączają się z [data-bs-theme] Homera (jasny / ciemny).
 */

@font-face {
    font-family: 'Bodoni Moda';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(../fonts/bodoni-moda/bodoni-moda-normal-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Bodoni Moda';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(../fonts/bodoni-moda/bodoni-moda-normal-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokeny ---------- */
.nu {
    --nu-night: #14122b; --nu-night-2: #241a4a;
    --nu-violet: #6d3fe0; --nu-violet-soft: #f1ecff;
    --nu-gold: #e6c36a; --nu-gold-ink: #8a6a12; --nu-gold-soft: #fbf3dc;
    --nu-rose: #d6457f; --nu-rose-soft: #fdeef4;
    --nu-magenta: #b4329e; --nu-magenta-soft: #faeaf6;
    --nu-green: #1f9d55; --nu-green-soft: #e6f6ec;
    --nu-surface: #ffffff; --nu-line: #e7e4f2;
    --nu-ink: #1c1838; --nu-muted: #6b6889;
    --nu-serif: 'Bodoni Moda', 'Bodoni 72', Didot, Georgia, serif;
    color: var(--nu-ink);
}
[data-bs-theme="dark"] .nu {
    --nu-violet: #b49cff; --nu-violet-soft: rgba(180, 156, 255, .12);
    --nu-gold-ink: #e6c36a; --nu-gold-soft: rgba(230, 195, 106, .1);
    --nu-rose: #f08ab5; --nu-rose-soft: rgba(240, 138, 181, .1);
    --nu-magenta: #e58ad6; --nu-magenta-soft: rgba(229, 138, 214, .1);
    --nu-green: #6fd59b; --nu-green-soft: rgba(111, 213, 155, .12);
    --nu-surface: #1c1b29; --nu-line: #2d2b42;
    --nu-ink: #ecebf5; --nu-muted: #a19fb8;
}
.nu a:focus-visible, .nu button:focus-visible { outline: 2px solid var(--nu-violet); outline-offset: 2px; }

/* ---------- Typografia ---------- */
.nu-serif { font-family: var(--nu-serif); }
.nu-h { font-size: 1.0625rem; font-weight: 600; margin: 0; color: var(--nu-ink); }
.nu-sub { font-size: .875rem; color: var(--nu-muted); }
.nu-text { font-size: .9688rem; line-height: 1.65; max-width: 68ch; }
.nu-link { color: var(--nu-violet); font-weight: 600; font-size: .875rem; text-decoration: none; background: none; border: 0; padding: 0; }
.nu-link:hover { text-decoration: underline; color: var(--nu-violet); }

/* ---------- Powierzchnie ---------- */
.nu-panel { background: var(--nu-surface); border: 1px solid var(--nu-line); border-radius: 20px; padding: 24px; }
.nu-sky {
    position: relative; overflow: hidden; border-radius: 28px; color: #f4f1ff;
    background:
        radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.75), transparent 60%),
        radial-gradient(1px 1px at 28% 68%, rgba(255,255,255,.55), transparent 60%),
        radial-gradient(1.5px 1.5px at 47% 14%, rgba(255,255,255,.6), transparent 60%),
        radial-gradient(1px 1px at 63% 78%, rgba(255,255,255,.45), transparent 60%),
        radial-gradient(1.5px 1.5px at 78% 30%, rgba(255,255,255,.7), transparent 60%),
        radial-gradient(1px 1px at 88% 62%, rgba(255,255,255,.5), transparent 60%),
        radial-gradient(1px 1px at 36% 40%, rgba(255,255,255,.35), transparent 60%),
        radial-gradient(1px 1px at 92% 12%, rgba(255,255,255,.5), transparent 60%),
        radial-gradient(120% 140% at 15% 110%, #3a1f73 0%, transparent 55%),
        radial-gradient(90% 120% at 100% 0%, var(--nu-night-2) 0%, transparent 60%),
        var(--nu-night);
}
.nu-sky .nu-link { color: #d9ccff; }

/* ---------- Znaczniki ---------- */
.nu-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.nu-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 500; padding: 5px 12px; border-radius: 999px;
          background: rgba(255,255,255,.08); color: #e9e4ff; border: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
button.nu-tag { cursor: pointer; }
button.nu-tag:hover { background: rgba(255,255,255,.14); }
.nu-tag-gold { color: #f3dc94; border-color: rgba(230,195,106,.35); }
.nu-tag-strong { background: rgba(230,195,106,.16); color: #f8e6ad; border-color: rgba(230,195,106,.4); font-weight: 600; }

.nu-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.nu-pill-good { background: var(--nu-green-soft); color: var(--nu-green); }
.nu-pill-violet { background: var(--nu-violet-soft); color: var(--nu-violet); }
.nu-pill-gold { background: var(--nu-gold-soft); color: var(--nu-gold-ink); }

/* ---------- Przyciski ---------- */
.nu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: .9375rem; padding: 10px 18px;
          border-radius: 14px; text-decoration: none; border: 0; cursor: pointer; }
.nu-btn-gold { background: var(--nu-gold); color: #241a05; }
.nu-btn-gold:hover { background: #f0d283; color: #241a05; }
.nu-btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.nu-btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.nu-btn-quiet { background: transparent; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.14); }
.nu-btn-quiet:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.nu-btn-violet { background: #6d3fe0; color: #fff; } /* stały fiolet: w trybie ciemnym --nu-violet jest jasny i biały tekst byłby nieczytelny */
.nu-btn-violet:hover { filter: brightness(1.08); color: #fff; }

.nu-tool { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; padding: 7px 14px; border-radius: 12px;
           border: 1px solid var(--nu-line); color: var(--nu-ink); background: transparent; text-decoration: none; }
.nu-tool:hover, .nu-tool.active { border-color: var(--nu-violet); color: var(--nu-violet); }
.nu-tool.active { background: var(--nu-violet-soft); }

/* ---------- Pierścień procentowy (SVG w widoku, tu tylko układ) ---------- */
.nu-ring { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.nu-ring svg { flex-shrink: 0; }

/* ---------- Strona główna sekcji (Szukaj, Moje dopasowania…): odstęp od belki zamiast paska „Wróć” ---------- */
.nu-page { padding-top: 1.25rem; }
.nu-head { padding: 22px 28px; border-radius: 22px; margin-bottom: 1.25rem; }
.nu-head h1 { font-family: var(--nu-serif); font-weight: 700; font-size: 1.875rem; color: #fff; margin: 0 0 6px; line-height: 1.15; }
.nu-head p { color: rgba(233,228,255,.78); margin: 0; font-size: .9688rem; }
.nu-head-side { color: rgba(233,228,255,.7); font-size: .875rem; }

/* ---------- Przycisk-ikona ---------- */
.nu-ic { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
         border: 1px solid var(--nu-line); background: transparent; color: var(--nu-muted); padding: 0; flex-shrink: 0; }
.nu-ic:hover { color: var(--nu-violet); border-color: var(--nu-violet); }
.nu-ic svg { width: 16px; height: 16px; }
.nu-ic.text-danger { color: var(--nu-rose) !important; border-color: var(--nu-rose); }
.nu-ic.text-danger svg { fill: currentColor; }

/* ---------- Karta osoby (partials/search/user-card: Szukaj, Moje dopasowania) ---------- */
.nu-person { display: flex; flex-direction: column; height: 100%; background: var(--nu-surface); border: 1px solid var(--nu-line); border-radius: 20px; overflow: hidden; }
/* overflow:hidden wyłącza „rozpychanie” aspect-ratio przez wysokie zdjęcia — wszystkie karty mają ramkę 4:5 */
.nu-person-photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--nu-violet-soft); }
.nu-person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.nu-person-initial { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--nu-serif); font-size: 3.5rem; font-weight: 600; color: rgba(255,255,255,.92); }
/* Osoba bez zdjęcia: gwiazdozbiór jej znaku delikatnie w tle, inicjał zostaje głównym elementem */
.nu-person-const { position: absolute; right: -4%; bottom: -2%; width: 72%; height: 72%; opacity: .35; pointer-events: none; }
.nu-person-const svg { display: block; width: 100%; height: 100%; }
.nu-person-letter { position: relative; z-index: 1; }
.nu-person-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.nu-glass { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px;
            background: rgba(20,18,43,.62); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.nu-glass-online { color: #c9f7da; }
.nu-glass-online::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.nu-glass-new { color: #f8e6ad; }
.nu-person-pct { position: absolute; top: 10px; right: 10px; font-size: .8125rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
                 background: rgba(20,18,43,.62); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.nu-person-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 12px; flex: 1; min-width: 0; }
.nu-person-name { font-weight: 700; color: var(--nu-ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nu-person-name:hover { color: var(--nu-violet); }
.nu-person-flag { height: 12px; width: 18px; border-radius: 2px; object-fit: cover; margin-left: 6px; vertical-align: 0; }
.nu-person-meta { font-size: .8125rem; color: var(--nu-muted); display: flex; flex-wrap: wrap; gap: 2px 10px; }
.nu-person-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.nu-person-bio { font-size: .8125rem; line-height: 1.5; color: var(--nu-muted); margin: 4px 0 0;
                 display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nu-person-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 10px; }
.nu-person-foot .nu-sub { font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nu-person .dropdown-menu { font-size: .875rem; }
/* Linijka zależna od strony w Aktywności (np. „Wizyta · 2 godziny temu”) */
.nu-person-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: .8125rem; font-weight: 500; color: var(--nu-ink); }
.nu-person-new { font-size: .6875rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; background: var(--nu-rose-soft); color: var(--nu-rose); }
.nu-person-note-act { background: none; border: 0; padding: 0; font-size: .8125rem; font-weight: 600; color: var(--nu-violet); }
.nu-person-note-act:hover { text-decoration: underline; }

/* ---------- Pusty stan ---------- */
.nu-empty { display: flex; gap: 16px; align-items: flex-start; }
.nu-empty-ic { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--nu-violet-soft); color: var(--nu-violet); flex-shrink: 0; }

@media (max-width: 767.98px) {
    .nu-page { padding-top: .875rem; }
    .nu-head { padding: 18px; border-radius: 18px; }
    .nu-head h1 { font-size: 1.5rem; }
    .nu-person-body { padding: 10px 10px 10px; }
    .nu-person-name { font-size: .9375rem; }
    .nu-person-initial { font-size: 2.75rem; }
    .nu-person-foot { padding-top: 8px; }
    .nu-person .nu-ic { width: 34px; height: 34px; border-radius: 10px; }
}

/* ---------- Pasek strony: „← Wróć” / okruszki (partials/page-bar) ---------- */
.nu-pagebar { display: flex; align-items: center; gap: 12px; margin: 1.25rem 0 1rem; min-height: 40px; }
.nu-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .875rem; color: var(--nu-ink); text-decoration: none;
           padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--nu-line); background: var(--nu-surface); flex-shrink: 0; }
.nu-back:hover { color: var(--nu-violet); border-color: var(--nu-violet); }
.nu-back svg { width: 16px; height: 16px; }
.nu-crumbs { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; font-size: .875rem; color: var(--nu-muted); min-width: 0; }
.nu-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.nu-crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--nu-muted); }
.nu-crumbs a { color: var(--nu-muted); text-decoration: none; }
.nu-crumbs a:hover { color: var(--nu-violet); text-decoration: underline; }
.nu-crumbs [aria-current] { color: var(--nu-ink); font-weight: 600; max-width: 56ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.nu-pagebar-title { display: none; }
@media (min-width: 768px) {
    .nu-back-mobile { display: none; } /* na komputerze okruszki wystarczą */
}

@media (max-width: 767.98px) {
    .nu-panel { padding: 18px; border-radius: 18px; }
    .nu-sky { border-radius: 22px; }

    .nu-pagebar { margin: .875rem 0 .75rem; }
    .nu-crumbs { display: none; }
    .nu-back { width: 40px; height: 40px; padding: 0; justify-content: center; }
    .nu-back span { display: none; }
    .nu-back svg { width: 20px; height: 20px; }
    .nu-pagebar-title { display: block; min-width: 0; font-weight: 600; font-size: 1rem; color: var(--nu-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- Strony do czytania (FAQ, regulamin, prywatność, bezpieczeństwo, pomoc…): .nu-doc ----------
   Treść 17px i pełny kolor tekstu — domyślne 13px Homera było za małe do czytania. */
.nu-doc { max-width: 900px; margin: 0 auto; padding-bottom: 2rem; }
.nu-doc--toc { max-width: 1140px; }
.nu-doc-hero { display: flex; align-items: center; gap: 22px; padding: 32px 36px; margin-bottom: 1.25rem; }
.nu-doc-hero h1 { font-family: var(--nu-serif); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.625rem); line-height: 1.1; color: #fff; margin: 0 0 8px; }
.nu-doc-hero p { color: rgba(233,228,255,.88); font-size: 1.125rem; line-height: 1.55; margin: 0; }
.nu-doc-ic { flex: 0 0 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
             background: rgba(230,195,106,.13); border: 1px solid rgba(230,195,106,.3); color: #e6c36a; }
.nu .nu-doc-ic svg { width: 30px; height: 30px; }
.nu-doc-hero--center { flex-direction: column; text-align: center; padding: 44px 36px; }
.nu-doc-hero--center .nu-doc-ic { flex: none; width: 64px; height: 64px; }
.nu-doc-hero--center p { max-width: 560px; }
.nu-doc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.nu-doc-actions .nu-btn { font-size: 1rem; padding: 11px 20px; }

.nu-prose { font-size: 1.0625rem; line-height: 1.75; color: var(--nu-ink); }
.nu-prose p { margin: 0 0 1em; }
.nu-prose > :last-child { margin-bottom: 0; }
.nu-prose h2 { font-family: var(--nu-serif); font-weight: 700; font-size: 1.625rem; line-height: 1.2; color: var(--nu-ink); margin: 1.6em 0 .55em; scroll-margin-top: 90px; }
.nu-prose h2:first-child { margin-top: 0; }
.nu-prose h3 { font-size: 1.1875rem; font-weight: 700; color: var(--nu-ink); margin: 1.4em 0 .4em; }
.nu-prose ul { margin: 0 0 1em; padding-left: 1.3em; }
.nu-prose li { margin-bottom: .35em; }
.nu-prose li::marker { color: var(--nu-gold); }
.nu-prose a { color: var(--nu-violet); font-weight: 600; }
.nu-prose .nu-lead { font-size: 1.125rem; font-style: italic; color: var(--nu-muted); }
/* Numer paragrafu w regulaminie: krój tekstu (cyfry w Bodoni mylą „1” z „I”) */
.nu-par { display: inline-block; font-family: var(--ins-body-font-family, sans-serif); font-size: .8em; font-weight: 700; color: var(--nu-gold-ink);
          background: var(--nu-gold-soft); border-radius: 8px; padding: 2px 9px; margin-right: 10px; vertical-align: .18em; }

.nu-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--nu-violet-soft);
           color: var(--nu-ink); font-size: 1rem; line-height: 1.6; }
.nu .nu-note svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--nu-violet); margin-top: 2px; }
.nu-note a { color: var(--nu-violet); font-weight: 600; }

/* Spis treści dokumentu: na komputerze przyklejony z boku, na telefonie zwinięty nad treścią */
.nu-doc-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.nu-toc { position: sticky; top: 90px; padding: 18px 14px; }
.nu-toc summary { list-style: none; font-weight: 700; color: var(--nu-ink); font-size: 1rem; padding: 0 8px 8px; pointer-events: none; }
.nu-toc summary::-webkit-details-marker { display: none; }
.nu-toc ol { list-style: none; margin: 0; padding: 0; }
.nu-toc a { display: block; padding: 7px 8px; border-radius: 10px; font-size: .9375rem; line-height: 1.35; color: var(--nu-muted); text-decoration: none; }
.nu-toc a:hover { color: var(--nu-violet); background: var(--nu-violet-soft); }
.nu-toc a.is-active { color: var(--nu-ink); font-weight: 600; background: var(--nu-violet-soft); }
@media (max-width: 1199.98px) {
    .nu-doc-grid { grid-template-columns: 1fr; }
    .nu-toc { position: static; padding: 0; }
    .nu-toc summary { pointer-events: auto; cursor: pointer; display: flex; align-items: center; padding: 16px 20px; }
    .nu-toc summary::after { content: '+'; margin-left: auto; font-size: 1.25rem; color: var(--nu-muted); }
    .nu-toc[open] summary::after { content: '–'; }
    .nu-toc ol { padding: 0 12px 14px; }
}

/* Pytania i odpowiedzi (FAQ) — natywne <details> */
.nu-qa { border-top: 1px solid var(--nu-line); }
.nu-qa:first-of-type { border-top: 0; }
.nu-qa summary { display: flex; align-items: center; gap: 12px; padding: 16px 4px; cursor: pointer; list-style: none;
                 font-size: 1.0625rem; font-weight: 600; color: var(--nu-ink); }
.nu-qa summary::-webkit-details-marker { display: none; }
.nu-qa summary::after { content: '+'; margin-left: auto; font-size: 1.375rem; line-height: 1; color: var(--nu-violet); flex-shrink: 0; }
.nu-qa[open] summary::after { content: '–'; }
.nu-qa summary:hover { color: var(--nu-violet); }
.nu-qa summary:focus-visible { outline: 2px solid var(--nu-violet); outline-offset: 2px; border-radius: 10px; }
.nu-qa .nu-prose { padding: 0 4px 18px; }

@media (max-width: 767.98px) {
    .nu-doc-hero { flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px 20px; }
    .nu-doc-hero--center { align-items: center; padding: 32px 20px; }
    .nu-doc-ic { flex-basis: auto; width: 54px; height: 54px; }
    .nu-prose h2 { font-size: 1.4375rem; }
}

/* ---------- 12 znaków zodiaku jako kafle (strona znaku, Wibracja pod Gwiazdami) — na nocnym niebie ---------- */
.nu-signs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.nu-sign { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 8px; border-radius: 16px; text-decoration: none; text-align: center;
           background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); transition: border-color .15s, background .15s; }
.nu-sign:hover { border-color: rgba(180,156,255,.5); background: rgba(180,156,255,.08); }
.nu-sign i { font-style: normal; font-size: 1.875rem; line-height: 1.1; color: #c4b5fd; margin-bottom: 4px; }
.nu-sign b { font-size: 1rem; color: #fff; }
.nu-sign small { font-size: .875rem; color: rgba(233,228,255,.6); }
.nu-sign[aria-current] { border-color: rgba(230,195,106,.6); background: rgba(230,195,106,.1); }
.nu-sign[aria-current] i { color: #e6c36a; }
.nu-signs--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.nu-signs--compact .nu-sign { padding: 10px 4px; }
@media (max-width: 991.98px) { .nu-signs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .nu-signs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Forum (pages/forum/*): lista tematów, temat, formularze ---------- */
.fm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.fm-layout--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fm-list { display: flex; flex-direction: column; gap: 12px; }
.fm-topic { display: block; padding: 20px 22px; }
.fm-topic.is-closed { opacity: .82; }
.fm-cat { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--nu-violet); text-decoration: none;
          background: var(--nu-violet-soft); padding: 3px 11px; border-radius: 999px; }
a.fm-cat:hover { color: var(--nu-violet); text-decoration: underline; }
.fm-topic h2 { font-size: 1.25rem; font-weight: 700; line-height: 1.35; margin: 10px 0 6px; }
.fm-topic h2 a { color: var(--nu-ink); text-decoration: none; }
.fm-topic h2 a:hover { color: var(--nu-violet); }
.nu .fm-topic h2 svg { width: 17px; height: 17px; color: var(--nu-muted); vertical-align: -2px; margin-right: 4px; }
.fm-excerpt { font-size: 1rem; line-height: 1.6; color: var(--nu-muted); margin: 0;
              display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--nu-line);
           font-size: .9375rem; color: var(--nu-muted); }
.fm-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.nu .fm-meta svg { width: 16px; height: 16px; }
.fm-author { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.fm-author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.fm-author a { color: var(--nu-ink); font-weight: 600; text-decoration: none; }
.fm-author a:hover { color: var(--nu-violet); }
.fm-author small { display: block; font-size: .875rem; color: var(--nu-muted); }
.fm-closed { display: inline-flex; align-items: center; gap: 5px; font-size: .875rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
             background: var(--nu-gold-soft); color: var(--nu-gold-ink); }
.nu .fm-closed svg { width: 14px; height: 14px; }

.fm-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.fm-side h3 { font-size: 1.0625rem; font-weight: 700; color: var(--nu-ink); margin: 0 0 12px; }
.fm-side .nu-btn { width: 100%; font-size: 1rem; padding: 12px 18px; }
.fm-search .form-control { min-height: 44px; border-radius: 12px; font-size: 1rem; }
.fm-search .form-check-label { font-size: .9375rem; color: var(--nu-ink); }
.fm-cats { list-style: none; padding: 0; margin: 0; }
.fm-cats a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px;
             font-size: 1rem; color: var(--nu-ink); text-decoration: none; }
.fm-cats a:hover { background: var(--nu-violet-soft); color: var(--nu-violet); }
.fm-cats a.is-active { background: var(--nu-violet-soft); color: var(--nu-violet); font-weight: 600; }
.fm-cats span { font-size: .875rem; font-weight: 600; color: var(--nu-muted); background: var(--nu-line); border-radius: 999px; padding: 1px 9px; }
.fm-recent { list-style: none; padding: 0; margin: 0; }
.fm-recent a { display: block; padding: 8px 10px; border-radius: 10px; font-size: 1rem; line-height: 1.4; color: var(--nu-ink); text-decoration: none; }
.fm-recent a:hover { background: var(--nu-violet-soft); color: var(--nu-violet); }
.fm-empty { text-align: center; padding: 40px 24px; }
.nu .fm-empty > svg { width: 44px; height: 44px; color: var(--nu-violet); opacity: .6; margin-bottom: 10px; }
.fm-empty h2 { font-size: 1.25rem; font-weight: 700; color: var(--nu-ink); margin: 0 0 6px; }
.fm-empty p { font-size: 1rem; color: var(--nu-muted); margin: 0 0 16px; }

/* Temat */
.fm-post h1 { font-size: clamp(1.625rem, 3vw, 2.125rem); font-weight: 800; line-height: 1.25; color: var(--nu-ink); margin: 12px 0 16px; letter-spacing: -.01em; }
.fm-post-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fm-post .fm-meta { border-top: 0; padding-top: 0; margin: 0 0 18px; }
.fm-body { font-size: 1.0625rem; line-height: 1.75; color: var(--nu-ink); overflow-wrap: anywhere; }
.fm-photos { display: grid; gap: 6px; border-radius: 16px; overflow: hidden; max-width: 640px; margin-top: 18px; }
.fm-photos--1 { grid-template-columns: 1fr; }
.fm-photos--2, .fm-photos--4 { grid-template-columns: 1fr 1fr; }
.fm-photos--3 { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; }
.fm-photos--3 a:first-child { grid-row: 1 / 3; }
.fm-photos--many { grid-template-columns: repeat(3, 1fr); }
.fm-photos a { display: block; overflow: hidden; background: var(--nu-violet-soft); height: 180px; }
.fm-photos--1 a { height: 360px; }
.fm-photos--2 a { height: 260px; }
.fm-photos--3 a { height: auto; }
.fm-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.fm-photos a:hover img { transform: scale(1.04); }
.fm-replies h2 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; color: var(--nu-ink); margin: 0 0 14px; }
.fm-replies > h5 { display: none; } /* partial comments-form ma własny mały nagłówek „Odpowiedzi (N)” — tu jest większy */
.fm-replies .fs-sm { font-size: 1rem !important; }
.fm-replies h5 a { color: var(--nu-ink); }
.fm-replies textarea { font-size: 1rem; border-radius: 12px; }

/* Formularz tematu */
.fm-form { max-width: 760px; }
.fm-form .form-label { font-weight: 600; font-size: 1rem; color: var(--nu-ink); }
.fm-form .form-control, .fm-form .form-select { min-height: 46px; border-radius: 12px; font-size: 1rem; }
.fm-form textarea.form-control { line-height: 1.6; }
.fm-count { font-size: .875rem; color: var(--nu-muted); text-align: right; margin-top: 4px; }
.fm-form .invalid-feedback { font-size: .9375rem; }
.fm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.fm-actions .nu-btn, .fm-actions .nu-tool { font-size: 1rem; padding: 11px 20px; }

/* Moje tematy */
.fm-row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.fm-row h2 { font-size: 1.125rem; font-weight: 700; margin: 0 0 4px; }
.fm-row h2 a { color: var(--nu-ink); text-decoration: none; }
.fm-row h2 a:hover { color: var(--nu-violet); }
.fm-row p { margin: 0; font-size: .9375rem; color: var(--nu-muted); }

@media (max-width: 1199.98px) {
    .fm-layout { grid-template-columns: 1fr; }
    .fm-side { position: static; order: -1; }
    .fm-side--after { order: 0; }
}
@media (max-width: 767.98px) {
    .fm-topic { padding: 16px; }
    .fm-topic h2 { font-size: 1.125rem; }
    .fm-photos--1 a { height: 240px; }
    .fm-photos--2 a { height: 180px; }
    .fm-row { flex-wrap: wrap; padding: 14px 16px; }
}

/* ---------- Ustawienia konta (layouts/settings + pages/settings/*) ---------- */
.st-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.st-nav { position: sticky; top: 90px; padding: 14px; }
.st-nav-label { font-size: .875rem; font-weight: 600; color: var(--nu-muted); padding: 10px 10px 6px; margin: 0; }
.st-nav-label:first-child { padding-top: 2px; }
.st-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 1rem; color: var(--nu-ink); text-decoration: none; white-space: nowrap; }
.st-nav a:hover { background: var(--nu-violet-soft); color: var(--nu-violet); }
.st-nav a.is-active { background: var(--nu-violet-soft); color: var(--nu-violet); font-weight: 600; }
.nu .st-nav svg { width: 18px; height: 18px; flex-shrink: 0; }
.st-nav .st-danger { color: #d64545; margin-top: 8px; }
.st-nav .st-danger:hover, .st-nav .st-danger.is-active { background: rgba(214,69,69,.1); color: #d64545; }
[data-bs-theme=dark] .st-nav .st-danger { color: #f47272; }
/* Licznik przy pozycji menu (Aktywność): szary = łącznie, różowy = nowe */
.st-nav .st-count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; font-size: .75rem; font-weight: 700; line-height: 1.5; text-align: center; background: var(--nu-line); color: var(--nu-muted); }
.st-nav .st-count.is-new { background: var(--nu-rose); color: #fff; }

.st-content { padding: 26px 28px; font-size: 1rem; color: var(--nu-ink); }
.st-content > * + .st-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--nu-line); }
.st-content h2 { font-size: 1.25rem; font-weight: 700; color: var(--nu-ink); margin: 0 0 6px; }
.st-lead { font-size: 1rem; line-height: 1.6; color: var(--nu-muted); margin: 0 0 18px; max-width: 62ch; }
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--nu-line); }
.st-row:first-of-type { border-top: 0; }
.st-row b { display: block; font-size: 1rem; color: var(--nu-ink); }
.st-row span { font-size: .9375rem; color: var(--nu-muted); overflow-wrap: anywhere; }
.st-ok { display: inline-flex; align-items: center; gap: 6px; font-size: .9375rem; font-weight: 600; color: var(--nu-green) !important; }
.st-warn { display: inline-flex; align-items: center; gap: 6px; font-size: .9375rem; font-weight: 600; color: var(--nu-gold-ink) !important; }
.nu .st-ok svg, .nu .st-warn svg { width: 16px; height: 16px; }
.st-switch { display: flex; align-items: center; gap: 12px; padding: 10px 0; margin: 0; font-size: 1rem; cursor: pointer; }
.st-switch .form-check-input { width: 2.6em; height: 1.4em; margin: 0; flex-shrink: 0; cursor: pointer; }
.st-form { max-width: 520px; }
.st-form .form-label { font-weight: 600; font-size: 1rem; color: var(--nu-ink); }
.st-form .form-control { min-height: 46px; border-radius: 12px; font-size: 1rem; }
.st-form .form-text { font-size: .9375rem; }
.st-form .invalid-feedback { font-size: .9375rem; }
.st-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.st-actions .nu-btn, .st-actions .nu-tool, .st-content .nu-btn { font-size: 1rem; padding: 11px 20px; }
.st-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 1rem; line-height: 1.55; margin-bottom: 16px; }
.nu .st-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.st-note--gold { background: var(--nu-gold-soft); color: var(--nu-ink); }
.st-note--gold svg { color: var(--nu-gold-ink); }
.st-note--danger { background: rgba(214,69,69,.08); border: 1px solid rgba(214,69,69,.25); color: var(--nu-ink); }
.st-note--danger svg { color: #d64545; }
.st-note ul { margin: 6px 0 0; padding-left: 1.2em; }
.nu-btn-danger { background: #c93a3a; color: #fff; }
.nu-btn-danger:hover { background: #b02f2f; color: #fff; }
.st-person { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--nu-line); }
.st-person:first-of-type { border-top: 0; }
.st-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.st-person a.st-name { font-weight: 600; color: var(--nu-ink); text-decoration: none; }
.st-person a.st-name:hover { color: var(--nu-violet); }
.st-empty { text-align: center; padding: 34px 16px; }
.nu .st-empty > svg { width: 42px; height: 42px; color: var(--nu-violet); opacity: .6; margin-bottom: 10px; }
.st-empty b { display: block; font-size: 1.125rem; margin-bottom: 4px; }
.st-empty p { color: var(--nu-muted); margin: 0; }
.st-table { width: 100%; font-size: .9375rem; }
.st-table th { font-weight: 600; color: var(--nu-muted); padding: 8px 10px; border-bottom: 1px solid var(--nu-line); white-space: nowrap; }
.st-table td { padding: 12px 10px; border-bottom: 1px solid var(--nu-line); vertical-align: middle; }

@media (max-width: 991.98px) {
    .st-layout { grid-template-columns: 1fr; }
    .st-nav { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 8px; scrollbar-width: none; }
    .st-nav::-webkit-scrollbar { display: none; }
    .st-nav-label { display: none; }
    .st-nav a { flex-shrink: 0; padding: 9px 14px; }
    .st-nav .st-danger { margin-top: 0; }
    .st-content { padding: 20px 18px; }
    .st-row { flex-wrap: wrap; }
}

/* ---------- Okna (modale): wspólny wygląd — wzór: kokpit „Jak liczymy Twój dzień?” ----------
   Okno informacyjne:  .modal.nu-modal > .modal-content.nu > .nu-modal-head.nu-sky (eyebrow, hero z .nu-modal-badge, tytuł, opis) + .modal-body + .modal-footer
   Potwierdzenie:      .modal.nu-modal.nu-modal-confirm > .modal-content.nu > .modal-body (.nu-modal-ic, tytuł, tekst) + .modal-footer
   Przyciski: .nu-tool (drugorzędny), .nu-btn .nu-btn-violet / -gold / -danger (główny). */
.nu-modal .modal-content { border: 0; border-radius: 24px; overflow: hidden; background: var(--nu-surface); color: var(--nu-ink);
                           box-shadow: 0 30px 80px -24px rgba(20,18,43,.6); }
.nu-modal-head { position: relative; border-radius: 0; padding: 22px 24px 20px; }
.nu-modal-head .btn-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.nu-modal-eyebrow { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nu-gold); margin-bottom: 8px; padding-right: 28px; }
.nu-modal-hero { display: flex; align-items: center; gap: 16px; padding-right: 28px; }
/* Kafelek z liczbą / symbolem / zdjęciem — cyfry krojem tekstu, nie Bodoni („1” w Bodoni wygląda jak „I”) */
.nu-modal-badge { flex-shrink: 0; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; overflow: hidden; font-weight: 800; font-size: 2.25rem; line-height: 1;
                  color: var(--nu-gold); background: rgba(230,195,106,.1); border: 1px solid rgba(230,195,106,.35); text-shadow: 0 0 20px rgba(230,195,106,.35); }
.nu-modal-badge img { width: 100%; height: 100%; object-fit: cover; }
.nu .nu-modal-badge svg { width: 30px; height: 30px; }
.nu-modal-head .modal-title { font-family: var(--nu-serif); font-weight: 700; font-size: 1.375rem; line-height: 1.2; color: #fff; margin: 0 0 4px; }
.nu-modal-head p { margin: 0; font-size: .9375rem; line-height: 1.55; color: rgba(233,228,255,.8); }
.nu-modal .modal-header { padding: 18px 24px; border-color: var(--nu-line); }
.nu-modal .modal-body { padding: 20px 24px 8px; font-size: .9375rem; line-height: 1.6; }
.nu-modal .modal-footer { border: 0; padding: 8px 24px 22px; gap: 8px; }
.nu-modal .modal-footer > * { margin: 0; }
.nu-modal-label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nu-muted); margin: 0 0 8px; }
.nu-modal-lead { color: var(--nu-muted); margin: 0 0 14px; }
.nu-modal-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; margin-bottom: 10px; font-size: .9375rem; line-height: 1.55;
                 color: var(--nu-ink); background: var(--nu-violet-soft); }
.nu-modal-card strong { display: block; margin-bottom: 2px; color: var(--nu-violet); }
.nu-modal-card--gold { background: var(--nu-gold-soft); }
.nu-modal-card--gold strong { color: var(--nu-gold-ink); }
.nu-modal-card--rose { background: var(--nu-rose-soft); }
.nu-modal-card--rose strong { color: var(--nu-rose); }
.nu-modal-card--plain { background: transparent; border: 1px solid var(--nu-line); }
.nu-modal-card--plain strong { color: var(--nu-ink); }
.nu-modal-card-ic { flex-shrink: 0; font-size: 1.375rem; line-height: 1.2; }
.nu-modal-error { padding: 10px 14px; border-radius: 12px; background: var(--nu-rose-soft); color: var(--nu-rose); font-size: .875rem; margin-bottom: 12px; }
/* Potwierdzenia (Obserwuj, Zablokuj, Usuń zdjęcie…): jasne okno z ikoną na środku */
.nu-modal-confirm .modal-dialog { max-width: 420px; }
.nu-modal-confirm .modal-body { padding: 28px 24px 6px; text-align: center; }
.nu-modal-confirm .modal-title { font-weight: 700; font-size: 1.1875rem; line-height: 1.3; color: var(--nu-ink); margin: 0 0 6px; }
.nu-modal-confirm .modal-body p { color: var(--nu-muted); margin: 0; }
.nu-modal-confirm .modal-footer { justify-content: center; padding-top: 18px; }
.nu-modal-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; margin-bottom: 14px; background: var(--nu-violet-soft); color: var(--nu-violet); }
.nu .nu-modal-ic svg { width: 26px; height: 26px; }
.nu-modal-ic--gold { background: var(--nu-gold-soft); color: var(--nu-gold-ink); }
.nu-modal-ic--rose { background: var(--nu-rose-soft); color: var(--nu-rose); }
.nu-modal-ic--green { background: var(--nu-green-soft); color: var(--nu-green); }
@media (max-width: 575.98px) {
    .nu-modal-head { padding: 20px 18px 18px; }
    .nu-modal .modal-body { padding: 18px 18px 6px; }
    .nu-modal .modal-footer { padding: 8px 18px 18px; }
    .nu-modal-badge { width: 56px; height: 56px; font-size: 1.875rem; border-radius: 16px; }
    .nu-modal-head .modal-title { font-size: 1.25rem; }
}
