/* ===========================================================
   CatNet — wspólny arkusz stylów
   Nowoczesny, elegancki motyw dla wszystkich podstron
   =========================================================== */

:root {
    --bg-1: #000000;
    --bg-2: #060606;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-solid: #1c1c1e;
    --border: rgba(255, 255, 255, 0.14);
    --text: #f5f5f7;
    --text-muted: #a1a1a6;
    --accent: #2997ff;
    --accent-2: #2997ff;
    --accent-grad: linear-gradient(120deg, #2997ff, #5ac8fa);
    --radius: 20px;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text);
    background-color: #000;
    background-image: radial-gradient(900px 520px at 50% -160px, rgba(10, 132, 255, 0.12), transparent 60%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    line-height: 1.47;
    letter-spacing: -0.01em;
}
body.light {
    background-color: var(--bg-2);
    background-image: none;
}

/* ---------- Nawigacja ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px clamp(20px, 5vw, 60px);
    background: rgba(15, 18, 38, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.brand {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.brand .brand-accent {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand .paw {
    font-size: 22px;
    margin-right: 6px;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--surface);
}

.nav-links a.active {
    color: #fff;
    background: var(--accent-grad);
}

/* ---------- Układ strony ---------- */
.page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 60px) clamp(20px, 5vw, 40px) 80px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -1px;
}

.section-sub {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 640px;
    margin: 0 0 36px;
}

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    padding: clamp(40px, 8vw, 90px) 0 50px;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 78px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.02;
    margin: 0 0 18px;
}

.hero h1 .grad,
.grad {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: clamp(16px, 2.4vw, 20px);
    max-width: 620px;
    margin: 0 auto 34px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.fact-card {
    margin: 46px auto 0;
    max-width: 560px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
    backdrop-filter: blur(8px);
}

.fact-card .fact-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-2);
    font-weight: 700;
    margin-bottom: 8px;
}

.fact-card .fact-text {
    font-size: 18px;
    font-weight: 500;
}

/* ---------- Przyciski ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
    transform: translateY(1px) scale(0.99);
}

.btn-primary {
    color: #fff;
    background: var(--accent-grad);
    background-size: 180% 180%;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    animation: gradShift 7s ease infinite;
}

.btn-primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

@keyframes gradShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-ghost {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn:disabled {
    filter: grayscale(85%);
    opacity: 0.55;
    cursor: not-allowed;
    animation: none;
}

/* ---------- Siatka kotów ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

.cat-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.cat-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    animation: fadeUp 0.5s ease both;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cat-card:hover img {
    transform: scale(1.06);
}

.fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    color: #fff;
    transition: transform 0.15s ease, background 0.2s ease;
}

.fav-btn:hover {
    transform: scale(1.12);
    background: rgba(0, 0, 0, 0.7);
}

.fav-btn.is-fav {
    background: var(--accent-2);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.grid-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.fav-counter {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 600;
}

.fav-counter b {
    color: var(--accent-2);
}

.empty-hint {
    color: var(--text-muted);
    font-size: 16px;
    text-align: center;
    padding: 30px 0;
}

/* ---------- Sekcje treści (O nas) ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 18px;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    backdrop-filter: blur(8px);
}

.feature .icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.feature p {
    margin: 0;
    color: var(--text-muted);
}

.prose {
    max-width: 720px;
}

.prose p {
    color: var(--text-muted);
    font-size: 17px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px;
    margin: 40px 0;
}

.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.stat .num {
    font-size: 36px;
    font-weight: 800;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat .label {
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ---------- Stopka ---------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer a:hover {
    color: var(--text);
}

.footer .dot {
    cursor: default;
}

/* ---------- Panel admina (ukryty, nowy styl) ---------- */
#adm-panel {
    display: none;
    max-width: 760px;
    margin: 36px auto 0;
    border-radius: 20px;
    overflow: hidden;
    text-align: left;
    background: linear-gradient(180deg, rgba(22, 26, 51, 0.97), rgba(15, 18, 38, 0.97));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--text);
    font-family: var(--font);
}

@media (max-width: 540px) {
    .nav-links a {
        padding: 8px 12px;
        font-size: 14px;
    }
    .brand {
        font-size: 22px;
    }
}

/* ===========================================================
   ROZSZERZENIA: motywy, ustawienia, lightbox, narzędzia
   =========================================================== */

/* ---------- Tryb jasny (Apple) ---------- */
body.light {
    --bg-1: #ffffff;
    --bg-2: #f5f5f7;
    --surface: #ffffff;
    --surface-solid: #ffffff;
    --border: rgba(0, 0, 0, 0.1);
    --text: #1d1d1f;
    --text-muted: #6e6e73;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.10);
}

body.light .navbar {
    background: rgba(255, 255, 255, 0.72);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* ---------- Gęstość siatki ---------- */
body.dense .cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

/* ---------- Przyciski-ikony w navbarze ---------- */
.nav-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.2s ease;
}

.icon-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
}

/* ---------- Szuflada ustawień ---------- */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 150;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 360px;
    max-width: 90vw;
    background: var(--surface-solid);
    border-left: 1px solid var(--border);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 160;
    padding: 24px 22px 60px;
    overflow-y: auto;
}

.drawer.open {
    transform: translateX(0);
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.drawer-head h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.setting-group {
    margin-bottom: 24px;
}

.setting-group > label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 10px;
}

.swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.swatch {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.swatch:hover {
    transform: scale(1.1);
}

.swatch.active {
    border-color: var(--text);
    box-shadow: 0 0 0 3px var(--surface-solid), 0 0 0 5px var(--text);
}

.seg {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}

.seg button {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.seg button.active {
    color: #fff;
    background: var(--accent-grad);
}

.range-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-row input[type="range"] {
    flex: 1;
    accent-color: var(--accent);
}

.range-row .val {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
    color: var(--accent-2);
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

.switch-row span {
    font-size: 15px;
}

.switch {
    position: relative;
    width: 48px;
    height: 27px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    inset: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: 0.2s;
}

.switch .slider::before {
    content: "";
    position: absolute;
    width: 19px;
    height: 19px;
    left: 3px;
    top: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: 0.2s;
}

.switch input:checked + .slider {
    background: var(--accent-grad);
    border-color: transparent;
}

.switch input:checked + .slider::before {
    transform: translateX(21px);
    background: #fff;
}

select.cn-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

/* ---------- Lightbox (podgląd zdjęcia) ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 200;
    padding: 24px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 92vw;
    max-height: 76vh;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.lightbox-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 26px;
    line-height: 1;
}

/* ---------- Pasek narzędzi galerii ---------- */
.toolbar-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.toolbar-controls .cn-select {
    width: auto;
    min-width: 150px;
}

/* ---------- Toast (powiadomienia) ---------- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--surface-solid);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 22px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    font-weight: 600;
    font-size: 15px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 220;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------- Rozbudowany panel admina (v2) ---------- */
.adm-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--accent-grad);
    color: #fff;
}

.adm-bar-title {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.3px;
}

.adm-x {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: none;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.adm-sec {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.adm-sec h5 {
    margin: 0 0 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.adm-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.adm-btn {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
}

.adm-btn:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.adm-btn.danger {
    border-color: #ff3b5c;
    color: #ff8a9c;
}

.adm-btn.danger:hover {
    background: rgba(255, 59, 92, 0.15);
}

.adm-limit {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.adm-limit span {
    font-size: 14px;
    color: var(--text-muted);
}

.adm-limit input {
    width: 72px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    text-align: center;
}

#adm-stats {
    font-size: 12.5px;
    line-height: 1.7;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    white-space: pre-wrap;
    font-family: ui-monospace, monospace;
    color: var(--text-muted);
}

/* ---------- Baner AdBlock ---------- */
.adblock-banner {
    position: relative;
    z-index: 120;
    background: linear-gradient(90deg, #ff3b5c, #ff8a3c);
    color: #fff;
    text-align: center;
    padding: 12px 48px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

.adblock-banner button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

/* ---------- Komunikat o blokadzie kotów ---------- */
.blocked-notice {
    grid-column: 1 / -1;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 24px;
    backdrop-filter: blur(8px);
}

.blocked-notice .blocked-emoji {
    font-size: 56px;
    line-height: 1;
}

.blocked-notice h3 {
    margin: 12px 0 8px;
    font-size: 24px;
    font-weight: 800;
}

.blocked-notice p {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 20px;
    font-size: 16px;
}

/* ===========================================================
   NAWIGACJA RESPONSYWNA + HUD GRYWALIZACJI
   =========================================================== */
.nav-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* HUD: passa + poziom w pasku nawigacji */
.hud {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--text);
    font-family: inherit;
    transition: transform 0.15s ease, background 0.2s ease;
}

.hud:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
}

.hud-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.hud-chip b {
    font-weight: 800;
}

.hamburger {
    display: none;
}

/* Animowana ikona hamburgera (kreski → X) */
.hamburger .bars,
.hamburger .bars::before,
.hamburger .bars::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger .bars {
    position: relative;
}

.hamburger .bars::before {
    position: absolute;
    top: -6px;
}

.hamburger .bars::after {
    position: absolute;
    top: 6px;
}

.hamburger.open .bars {
    background: transparent;
}

.hamburger.open .bars::before {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.open .bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 760px) {
    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;
        flex-direction: column;
        gap: 6px;
        background: var(--surface-solid);
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: var(--shadow);
        padding: 10px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(-6px);
        transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease;
    }
    .nav-links.open {
        max-height: 70vh;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }
    .nav-links a {
        text-align: left;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 10px;
    }
    .hamburger {
        display: inline-flex;
    }
}

/* ===========================================================
   SZUFLADA POSTĘPÓW (lewa)
   =========================================================== */
.drawer.left {
    left: 0;
    right: auto;
    border-left: none;
    border-right: 1px solid var(--border);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.4);
    transform: translateX(-100%);
}

.drawer.left.open {
    transform: translateX(0);
}

.level-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 18px;
}

.level-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.level-top .lv {
    font-size: 22px;
    font-weight: 900;
}

.level-top .xp {
    font-size: 13px;
    color: var(--text-muted);
}

.xp-bar {
    height: 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
}

.xp-bar > i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent-grad);
    transition: width 0.5s ease;
}

.streak-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 18px;
}

.streak-card .flame {
    font-size: 38px;
}

.streak-card .big {
    font-size: 26px;
    font-weight: 900;
}

.streak-card .lbl {
    color: var(--text-muted);
    font-size: 13px;
}

.goal-ring {
    --p: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 6px auto 14px;
    background: conic-gradient(var(--accent) calc(var(--p) * 3.6deg), var(--border) 0);
    display: grid;
    place-items: center;
    position: relative;
}

.goal-ring::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: var(--surface-solid);
}

.goal-ring .ring-inner {
    position: relative;
    text-align: center;
}

.goal-ring .ring-inner .rc {
    font-size: 28px;
    font-weight: 900;
}

.goal-ring .ring-inner .rl {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===========================================================
   ONBOARDING (jak w Duolingo)
   =========================================================== */
.onb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 24, 0.92);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 22px;
}

.onb-overlay.open {
    display: flex;
}

.onb-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px 26px 26px;
    text-align: center;
    box-shadow: var(--shadow);
    animation: fadeUp 0.4s ease both;
}

.onb-mascot {
    font-size: 84px;
    line-height: 1;
    margin-bottom: 8px;
    animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.onb-card h2 {
    font-size: 26px;
    font-weight: 900;
    margin: 6px 0 10px;
}

.onb-card p {
    color: var(--text-muted);
    font-size: 16px;
    margin: 0 0 22px;
}

.onb-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 22px;
}

.onb-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.2s ease;
}

.onb-dots i.on {
    background: var(--accent);
    width: 26px;
    border-radius: 999px;
}

.onb-actions {
    display: flex;
    gap: 10px;
}

.onb-actions .btn {
    flex: 1;
    justify-content: center;
}

.goal-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.goal-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 14px;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.goal-opt:hover {
    border-color: var(--accent);
}

.goal-opt.sel {
    border-color: transparent;
    background: var(--accent-grad);
    color: #fff;
}

.goal-opt small {
    font-weight: 500;
    opacity: 0.8;
}

/* ===========================================================
   PASEK ZAUFANIA + OPINIE
   =========================================================== */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    margin: 10px auto 30px;
    max-width: 900px;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.trusted {
    text-align: center;
    margin-top: 60px;
}

.trusted .section-sub {
    margin-left: auto;
    margin-right: auto;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.testi {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: left;
}

.testi blockquote {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.5;
}

.testi figcaption {
    color: var(--accent-2);
    font-weight: 700;
    font-size: 14px;
}

.foss-note {
    max-width: 720px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-top: 24px;
}

.foss-note h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.foss-note p {
    color: var(--text-muted);
    font-size: 16px;
    margin: 0 0 14px;
}

a.trust-item {
    text-decoration: none;
}

/* ===========================================================
   NOWOCZESNE DODATKI: szkielety, konfetti, „do góry”, polecenia
   =========================================================== */
.cat-card.skeleton {
    background: linear-gradient(100deg, var(--surface) 30%, rgba(255, 255, 255, 0.14) 50%, var(--surface) 70%);
    background-size: 200% 100%;
    animation: shimmer 1.2s linear infinite;
    border: 1px solid var(--border);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.confetti-bit {
    position: fixed;
    top: -14px;
    width: 10px;
    height: 14px;
    border-radius: 2px;
    z-index: 400;
    pointer-events: none;
    animation: confettiFall 2.6s linear forwards;
}

@keyframes confettiFall {
    to { transform: translateY(110vh) rotate(720deg); opacity: 0.15; }
}

.to-top {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: none;
    background: var(--accent-grad);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 140;
    box-shadow: var(--shadow);
}

.to-top.show {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.ref-code-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
}

.ref-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.ref-code {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 6px 0 12px;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ref-share {
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0 14px;
}

.ref-redeem {
    text-align: left;
    margin-bottom: 10px;
}

.ref-redeem label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
}

.ref-redeem input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* ===========================================================
   DOSTĘPNOŚĆ I PŁYNNOŚĆ
   =========================================================== */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
}

img {
    content-visibility: auto;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===========================================================
   LANDING WOW: pływające elementy, marquee, roadmapa, reveal
   =========================================================== */
.hero-wow {
    position: relative;
}

.hero-floats {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.hf {
    position: absolute;
    font-size: 34px;
    opacity: 0.18;
    animation: heroFloat 7s ease-in-out infinite;
}

.hf1 { top: 8%;  left: 6%;  font-size: 46px; animation-delay: 0s; }
.hf2 { top: 22%; right: 8%; font-size: 38px; animation-delay: 1.2s; }
.hf3 { bottom: 18%; left: 12%; animation-delay: 2.1s; }
.hf4 { top: 4%;  right: 26%; animation-delay: 0.6s; }
.hf5 { bottom: 6%; right: 14%; font-size: 44px; animation-delay: 1.7s; }
.hf6 { top: 48%; left: 2%;  font-size: 28px; animation-delay: 2.6s; }

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-18px) rotate(5deg); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 22px;
    transition: transform 0.15s ease, border-color 0.2s ease;
}

.hero-badge:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
}

/* Animowany gradient w nagłówku */
.hero h1 .grad {
    background-size: 220% 220%;
    animation: gradShift 5s ease infinite;
}

/* Połysk przesuwający się po głównym przycisku */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    animation: shine 3.4s ease infinite;
}

@keyframes shine {
    0%, 60% { left: -80%; }
    100% { left: 140%; }
}

/* Pasek marquee */
.marquee {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    margin: 6px 0 30px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: inline-block;
    white-space: nowrap;
    padding: 12px 0;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.2px;
    color: var(--text-muted);
    animation: marquee 42s linear infinite;
}

.marquee-track .grad {
    margin: 0 6px;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Roadmapa */
.roadmap {
    margin-top: 70px;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.rm-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px 22px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rm-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.rm-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-grad);
}

.rm-soon {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff;
    background: var(--accent-grad);
}

.rm-icon {
    font-size: 34px;
    margin-bottom: 10px;
}

.rm-card h3 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 800;
}

.rm-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.55;
}

/* Scroll reveal — wyłączone: sekcje są od razu widoczne */
.reveal,
.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .hf, .btn-shine::after, .marquee-track { animation: none !important; }
}

/* ---------- Ludzkie dodatki: powitanie + serduszka ---------- */
.hero-greet {
    color: var(--accent-2);
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 12px;
    min-height: 1.4em;
}

.heart-burst {
    position: absolute;
    bottom: 40%;
    font-size: 22px;
    color: var(--accent-2);
    pointer-events: none;
    animation: heartUp 1s ease-out forwards;
    z-index: 5;
}

@keyframes heartUp {
    0% { transform: translateY(0) scale(0.6); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(-70px) scale(1.4) rotate(12deg); opacity: 0; }
}

/* ===========================================================
   QUIZ + CTA
   =========================================================== */
.quiz-cta {
    margin-top: 64px;
}

.quiz-cta-inner {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px 28px;
    position: relative;
    overflow: hidden;
}

.quiz-cta-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent-grad);
    opacity: 0.08;
    pointer-events: none;
}

.quiz-cta-emoji {
    font-size: 48px;
    margin-bottom: 6px;
}

.quiz-cta .section-sub {
    margin-left: auto;
    margin-right: auto;
}

.quiz-app {
    max-width: 640px;
    margin: 0 auto;
}

.quiz-progress {
    height: 8px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 10px;
}

.quiz-progress > i {
    display: block;
    height: 100%;
    background: var(--accent-grad);
    transition: width 0.35s ease;
}

.quiz-step {
    text-align: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.quiz-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 32px 26px;
    text-align: center;
    box-shadow: var(--shadow);
    animation: fadeUp 0.4s ease both;
}

.quiz-emoji {
    font-size: 64px;
    animation: bob 2.4s ease-in-out infinite;
}

.quiz-intro h1,
.quiz-result h1 {
    font-size: clamp(28px, 6vw, 44px);
    font-weight: 900;
    margin: 10px 0 12px;
    letter-spacing: -1px;
}

.quiz-intro p {
    color: var(--text-muted);
    font-size: 18px;
    margin: 0 0 26px;
}

.quiz-q {
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 800;
    margin: 0 0 22px;
}

.quiz-options {
    display: grid;
    gap: 12px;
}

.quiz-opt {
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.2s ease, background 0.2s ease;
    animation: fadeUp 0.35s ease both;
}

.quiz-opt:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.quiz-result-emoji {
    font-size: 80px;
    line-height: 1;
    animation: bob 2.4s ease-in-out infinite;
}

.quiz-result-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 8px;
}

.quiz-result p {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 460px;
    margin: 0 auto 6px;
}

.quiz-result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================================================
   APPLE-STYLE REDESIGN  —  nadrzędne wykończenie
   Systemowy font SF, dużo światła, spokojne kolory, pełna
   pigułka na przyciskach, slim translucentny navbar.
   (Blok celowo na końcu, by wygrywać kaskadę.)
   =========================================================== */

h1, h2, h3 { font-weight: 600; letter-spacing: -0.022em; }

/* ---- Navbar ---- */
.navbar {
    height: 48px;
    padding: 0 clamp(18px, 5vw, 40px);
    background: rgba(6, 6, 6, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.brand { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.brand .paw { font-size: 16px; margin-right: 4px; }
.brand .brand-accent {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: inherit;
}
.nav-links { gap: 2px; }
.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    padding: 6px 11px;
    border-radius: 8px;
    transition: color 0.2s ease, opacity 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: transparent; }
.nav-links a.active { color: var(--text); background: transparent; font-weight: 500; }
.icon-btn {
    width: 34px; height: 34px;
    border-radius: 8px;
    font-size: 15px;
    background: transparent;
    border-color: transparent;
}
.icon-btn:hover { background: var(--surface); transform: none; }

/* ---- Sekcje: rytm i wyśrodkowanie ---- */
.page > section { margin-top: clamp(64px, 9vw, 120px); }
.section-title {
    text-align: center;
    font-size: clamp(30px, 4.6vw, 48px);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}
.section-sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(17px, 2vw, 21px);
    color: var(--text-muted);
    margin-bottom: clamp(36px, 5vw, 54px);
}

/* ---- Hero ---- */
.hero { margin-top: 0; padding: clamp(64px, 12vw, 128px) 0 clamp(40px, 7vw, 72px); }
.hero-floats { display: none; }
.hero h1 {
    font-size: clamp(40px, 7.5vw, 76px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin-bottom: 16px;
}
.hero h1 .grad, .grad {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--accent);
}
.hero p {
    font-size: clamp(19px, 2.4vw, 26px);
    line-height: 1.4;
    font-weight: 400;
    color: var(--text);
    max-width: 680px;
}
.hero-greet { color: var(--accent); font-weight: 500; }
.hero-badge {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    border-radius: 980px;
    padding: 6px 16px;
}
.hero-badge:hover { transform: none; box-shadow: none; }

/* ---- Przyciski ---- */
.btn {
    font-weight: 400;
    font-size: 17px;
    padding: 12px 24px;
    border-radius: 980px;
    letter-spacing: -0.01em;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: none;
    background-size: auto;
    animation: none;
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: none; transform: none; }
.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--accent);
    padding: 12px 16px;
}
.btn-ghost:hover { background: transparent; text-decoration: underline; }
.hero-actions .btn-ghost::after { content: "\00A0›"; }

/* ---- Karty (koty, fakty, opinie) ---- */
.cat-card { border-radius: var(--radius); box-shadow: var(--shadow); }
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16); }
body:not(.light) .cat-card:hover { box-shadow: 0 24px 56px rgba(0, 0, 0, 0.6); }

.fact-card { box-shadow: var(--shadow); border-radius: var(--radius); }
.fact-card .fact-label {
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 12px;
    font-weight: 600;
}
.testi figcaption { color: var(--text-muted); }

/* ---- Trust bar: subtelny tekst zamiast pigułek ---- */
.trust-item {
    background: transparent;
    border-color: transparent;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 14px;
    padding: 4px 8px;
}

/* ---- Quiz CTA: czysta karta ---- */
.quiz-cta-inner { border-radius: 28px; }
.quiz-cta-inner::before { display: none; }

/* ---- Marquee: bardzo subtelny ---- */
.marquee { border: none; background: transparent; opacity: 0.8; }

/* ---- Wynik quizu: duży procent kociości ---- */
.quiz-score {
    font-size: clamp(40px, 8vw, 64px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 4px 0 2px;
}
.quiz-score .grad { color: var(--accent); }

/* ---- Footer ---- */
.footer { font-size: 12px; color: var(--text-muted); }

@media (max-width: 720px) {
    .hero h1 { font-size: clamp(34px, 11vw, 52px); }
}

/* Strona polityki prywatności */
.prose.legal { max-width: 820px; }
.prose.legal h2 {
    font-size: 20px;
    margin: 30px 0 10px;
    color: var(--text);
}
.prose.legal ul { margin: 0 0 14px; padding-left: 22px; }
.prose.legal li { margin-bottom: 8px; line-height: 1.6; }
.prose.legal a { color: var(--accent); }
.legal-note {
    margin-top: 28px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* Przełącznik języka PL / EN w navbarze */
.lang-toggle {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--surface);
}
.lang-toggle button {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 7px 12px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}
.lang-toggle button.on { background: var(--accent-grad); color: #fff; }
.lang-toggle button:not(.on):hover { color: var(--text); }
