/* =========================================================
   Iskra24 — wieczorna paleta: bakłażan nocy, malina, bursztynowa iskra
   ========================================================= */
:root {
    --night: #241029;      /* nagłówek, hero, stopka */
    --night-2: #3b1b44;    /* jaśniejszy wieczór, gradienty */
    --paper: #f7f2f6;      /* tło treści — chłodny, liliowy róż */
    --surface: #ffffff;
    --ink: #1f1324;
    --muted: #776a7c;
    --line: #e8dde8;
    --rose: #d92b63;       /* główny akcent, przyciski */
    --rose-dark: #ad1a4b;
    --spark: #ffb23f;      /* iskra — używana oszczędnie */
    --online: #2fbf78;
    --ok: #17714a;
    --ok-bg: #e4f5ec;
    --err: #a61b34;
    --err-bg: #fde8ec;

    --r-photo: 18px;
    --r-panel: 16px;
    --r-input: 10px;

    --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
    --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

    --tabbar-h: 64px;
}

/* ---------- podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    background: var(--paper);
    color: var(--ink);
    font: 400 16px/1.6 var(--body);
    min-height: 100vh;
    overflow-x: clip;
    display: flex;
    flex-direction: column;
}
img { display: block; max-width: 100%; }
a { color: var(--rose-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rose); }
h1, h2, h3 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 .5em;
}
h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--spark); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.main { flex: 1; padding-top: 32px; padding-bottom: 72px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.inline { display: inline; }
.dot {
    display: inline-block; width: 9px; height: 9px; border-radius: 50%;
    background: var(--online); margin-right: 7px; vertical-align: 1px;
    box-shadow: 0 0 0 3px rgba(47, 191, 120, .22);
}

/* ---------- nagłówek ---------- */
.topbar { background: var(--night); color: #f3e9f4; position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }

.logo {
    font: 800 1.9rem/1 var(--display);
    letter-spacing: -0.04em;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
}
.logo:hover { color: #fff; }
.logo-num { color: var(--spark); margin-left: .04em; }
.logo-i { position: relative; display: inline-block; }
.logo-spark {
    position: absolute;
    width: .5em; height: .5em;
    left: 50%; top: -.12em;
    transform: translateX(-50%);
    fill: var(--spark);
}
.logo:hover .logo-spark { animation: twinkle .6s ease; }
@keyframes twinkle {
    0% { transform: translateX(-50%) rotate(0) scale(1); }
    50% { transform: translateX(-50%) rotate(45deg) scale(1.35); }
    100% { transform: translateX(-50%) rotate(90deg) scale(1); }
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
    color: #e6d8e8; text-decoration: none; font-weight: 500;
    padding: 8px 12px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.badge {
    display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 10px;
    background: var(--rose); color: #fff; font: 700 .72rem/1.5 var(--body); text-align: center;
}

/* ---------- przyciski ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; cursor: pointer; text-decoration: none;
    background: var(--rose); color: #fff;
    font: 600 1rem/1 var(--body);
    padding: 13px 22px; border-radius: 999px;
    transition: background-color .15s, transform .1s;
}
.btn:hover { background: var(--rose-dark); color: #fff; }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--rose-dark); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: #fbe9ef; color: var(--rose-dark); }
.btn-light { background: #fff; color: var(--night); }
.btn-light:hover { background: var(--spark); color: var(--night); }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-liked { background: var(--night); }
.btn-liked:hover { background: var(--night-2); }
.linklike { background: none; border: 0; padding: 0; color: var(--rose-dark); font: inherit; cursor: pointer; }
.nav .linklike { padding: 8px 12px; color: #e6d8e8; }
.danger { color: var(--err); }
.btn-danger { background: var(--err); }
.btn-danger:hover { background: #7f1023; }
.btn-danger-outline { background: transparent; color: var(--err); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-danger-outline:hover { background: var(--err-bg); color: var(--err); }

.danger-zone {
    margin-top: 32px; padding: 22px 28px;
    border: 1.5px solid #f2c6cf; border-radius: var(--r-panel); background: #fff8f9;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.danger-zone h2 { font-size: 1.15rem; margin-bottom: .2em; color: var(--err); }
.danger-zone p { margin: 0; }
.delete-list { margin: 0 0 24px; padding-left: 20px; }
.delete-list li { margin-bottom: 4px; }

/* ---------- panele i komunikaty ---------- */
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-panel);
    padding: 28px;
}
.empty {
    border: 1.5px dashed var(--line); border-radius: var(--r-panel);
    padding: 36px 24px; text-align: center; color: var(--muted);
}
.flash { padding: 13px 18px; border-radius: 12px; margin-bottom: 24px; font-weight: 500; }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.err { background: var(--err-bg); color: var(--err); }
.pill {
    display: inline-block; font: 600 .78rem var(--body);
    padding: 3px 10px; border-radius: 999px; background: #f1e3ee; color: var(--night-2);
}

/* ---------- hero (strona główna, niezalogowani) ---------- */
.hero {
    margin: -32px calc(50% - 50vw) 0;
    background:
        radial-gradient(900px 500px at 85% 30%, rgba(217, 43, 99, .35), transparent 60%),
        radial-gradient(500px 400px at 10% 100%, rgba(255, 178, 63, .12), transparent 70%),
        var(--night);
    color: #f3e9f4;
    overflow: hidden;
}
.hero-inner {
    max-width: 1180px; margin: 0 auto; padding: 72px 20px 88px;
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}
.hero-title {
    font: 800 clamp(2.6rem, 6.2vw, 4.75rem)/0.98 var(--display);
    letter-spacing: -0.045em;
    color: #fff;
    margin-bottom: 24px;
    max-width: 11ch;
}
.hero-lead { font-size: 1.15rem; color: #d9c8dc; max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 28px; }
.hero-free { color: var(--spark); font-weight: 600; margin: -14px 0 16px; }
.hero-live { color: #d9c8dc; margin: 0; }
.auth h1 + .auth-lead { margin: -12px 0 22px; color: var(--muted); }
.hero-live strong { color: #fff; }

.hero-stack { position: relative; height: 440px; }
.hero-stack .card {
    position: absolute; width: 230px;
    box-shadow: 0 24px 60px rgba(10, 0, 15, .55);
    pointer-events: none;
}
.hero-stack .card:nth-child(1) { left: 0; top: 60px; transform: rotate(-9deg); }
.hero-stack .card:nth-child(2) { left: 26%; top: 0; transform: rotate(2deg); z-index: 2; }
.hero-stack .card:nth-child(3) { right: 0; top: 90px; transform: rotate(10deg); }

.how {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
    padding: 56px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 16px;
}
.how-step h3 { font-size: 1.25rem; }
.how-step p { color: var(--muted); margin: 0; max-width: 30ch; }

.welcome {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
    padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.welcome h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .2em; }
.welcome p { margin: 0; }

.block { margin-top: 40px; }
.section-title { font-size: 1.5rem; margin-bottom: 18px; }

/* ---------- karty profili ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.card {
    position: relative; display: block;
    aspect-ratio: 4 / 5;
    border-radius: var(--r-photo);
    overflow: hidden;
    background: var(--night-2);
    color: #fff; text-decoration: none;
    isolation: isolate;
}
.card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-img { transform: scale(1.04); }
.card:hover { color: #fff; }
.card::after {
    content: ""; position: absolute; inset: 45% 0 0; z-index: 1;
    background: linear-gradient(to top, rgba(20, 6, 24, .85), rgba(20, 6, 24, 0));
}
.card-caption { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; }
.card-name {
    font: 700 1.15rem/1.15 var(--display); letter-spacing: -0.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-name span { font-weight: 500; opacity: .85; }
.card-city { font-size: .85rem; color: #e6d6e8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-online {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: rgba(20, 6, 24, .55); backdrop-filter: blur(6px);
    color: #fff; font-size: .75rem; font-weight: 600;
    padding: 3px 10px 3px 8px; border-radius: 999px;
}
.card-online .dot { width: 7px; height: 7px; margin-right: 5px; box-shadow: none; vertical-align: 0; }

.avatar-fallback {
    display: flex; align-items: center; justify-content: center;
    font: 800 4rem var(--display); color: rgba(255, 255, 255, .92);
}
.avatar-fallback.g-0 { background: linear-gradient(160deg, #f0768f, #9c1747); }
.avatar-fallback.g-1 { background: linear-gradient(160deg, #6f86c9, #2b2f6b); }
.avatar-fallback.g-2 { background: linear-gradient(160deg, #b98ad6, #4c1d63); }
.avatar-fallback.big { aspect-ratio: 4 / 5; font-size: 7rem; border-radius: var(--r-photo); }

/* ---------- formularze ---------- */
.auth { max-width: 640px; margin: 8px auto 0; }
.auth.narrow { max-width: 440px; }
.auth h1 { margin-bottom: 20px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .95rem; }
.form label.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--rose); flex-shrink: 0; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number],
input:not([type]), select, textarea {
    font: 400 1rem var(--body); color: var(--ink);
    padding: 11px 13px; width: 100%;
    background: #fbf8fb; border: 1.5px solid var(--line); border-radius: var(--r-input);
    transition: border-color .15s, background-color .15s;
}
input:hover, select:hover, textarea:hover { border-color: #d6c6d7; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose); background: #fff; }
textarea { resize: vertical; line-height: 1.5; }
input[type=file] { font: inherit; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-error, .form-errors { color: var(--err); font-size: .85rem; font-weight: 500; }
.form-errors ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }
.input-validation-error { border-color: var(--err) !important; }

/* ---------- bramka 18+ ---------- */
.page-gate { background: var(--night); }
.page-gate .topbar { background: transparent; }
.page-gate .footer { background: transparent; border-top-color: rgba(255, 255, 255, .08); }
.gate { min-height: 62vh; display: flex; align-items: center; justify-content: center; }
.gate-box {
    max-width: 480px; text-align: center; color: #e6d8e8;
    display: flex; flex-direction: column; gap: 18px; align-items: center;
}
.gate-box h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.5rem); margin: 0; }
.gate-box a { color: var(--spark); }
.gate-box form { width: 100%; max-width: 340px; }
.gate-18 {
    font: 800 4.5rem/1 var(--display); letter-spacing: -0.05em;
    color: var(--spark);
}
.gate-leave { font-size: .9rem; color: #bfaec2 !important; }

/* ---------- profil ---------- */
.profile { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 36px; align-items: start; }
.profile-main-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-photo); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.thumb { width: 68px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: none; }
.thumb:hover, .thumb:focus-visible { border-color: var(--rose); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { padding: 32px; }
.profile-name { font: 800 clamp(2.2rem, 4.5vw, 3.2rem)/1 var(--display); letter-spacing: -0.04em; margin-bottom: 10px; }
.profile-name .age { font-weight: 500; color: var(--muted); }
.profile-where { font-size: 1.1rem; margin-bottom: 4px; }
.profile-status { margin-bottom: 20px; font-size: .95rem; }
.status-online { color: var(--ok); font-weight: 600; }
.facts {
    display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px;
    margin: 0 0 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.profile-info h2 { font-size: 1.15rem; }
.about { white-space: pre-line; max-width: 62ch; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.actions form { margin: 0; }
.actions .linklike { margin-left: auto; }

.edit-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.photo-tile { border-radius: 14px; overflow: hidden; background: #f3eaf2; outline: 2px solid transparent; }
.photo-tile.is-main { outline-color: var(--rose); }
.photo-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-actions { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; gap: 6px; flex-wrap: wrap; }
.upload { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 16px; border: 1.5px dashed var(--line); border-radius: 14px; }
.upload p { flex-basis: 100%; margin: 0; }

/* ---------- wyszukiwarka ---------- */
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 92px; padding: 24px; }
.filters h2 { font-size: 1.25rem; }
.pager { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 32px; }
.pager a { font-weight: 600; text-decoration: none; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }

/* ---------- wiadomości ---------- */
.conv-list { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.conv-list li + li { border-top: 1px solid var(--line); }
.conv { display: flex; align-items: center; gap: 14px; padding: 16px 20px; color: var(--ink); text-decoration: none; }
.conv:hover { background: #fbf6fa; color: var(--ink); }
.conv.unread { background: #fff4f7; }
.conv.unread strong { color: var(--rose-dark); }
.conv-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conv-text .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mini-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: inline-block; }
.mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mini-avatar .avatar-fallback { width: 100%; height: 100%; font-size: 1.25rem; }

.chat {
    max-width: 780px; margin: 0 auto; padding: 0;
    display: flex; flex-direction: column;
    height: calc(100vh - 190px); min-height: 440px; overflow: hidden;
}
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.chat-head > a:first-child { text-decoration: none; }
.chat-who { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.chat-who .mini-avatar { width: 40px; height: 40px; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 8px; background: #fbf8fb; }
.bubble { max-width: 74%; padding: 10px 14px; border-radius: 18px; }
.bubble.mine { align-self: flex-end; background: var(--rose); color: #fff; border-bottom-right-radius: 6px; }
.bubble.theirs { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble-meta { font-size: .72rem; opacity: .72; margin-top: 3px; }
.chat-form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: #fff; align-items: flex-end; }
.chat-form textarea { flex: 1; resize: none; border-radius: 22px; padding: 11px 16px; }

/* ---------- zakładki ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; }
.tab { padding: 9px 18px; border-radius: 999px; color: var(--ink); background: #efe3ee; font-weight: 600; text-decoration: none; }
.tab:hover { background: #e7d6e6; color: var(--ink); }
.tab.active { background: var(--night); color: #fff; }

.prose { max-width: 740px; margin: 0 auto; }
.prose h2 { margin-top: 1.5em; }
.prose li { margin-bottom: .4em; }

/* ---------- stopka ---------- */
.footer { background: var(--night); color: #bfaec2; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding-top: 26px; padding-bottom: 26px; }
.footer a { color: #e6d8e8; }
.footer-logo { font: 800 1.2rem var(--display); color: #fff; letter-spacing: -0.03em; }
.footer-copy { margin-left: auto; }

/* ---------- dolny pasek (telefon) ---------- */
.tabbar { display: none; }

@media (max-width: 900px) {
    .hero-inner, .profile, .edit-layout, .search-layout { grid-template-columns: 1fr; }
    .hero-inner { padding: 48px 20px 40px; gap: 24px; }
    .hero-stack { height: 300px; max-width: 440px; }
    .hero-stack .card { width: 160px; }
    .how { grid-template-columns: 1fr; gap: 20px; padding-top: 40px; }
    .filters { position: static; }
    .profile-main-photo img, .avatar-fallback.big { max-height: 70vh; }
}

@media (max-width: 720px) {
    .wrap { padding-inline: 16px; }
    .topbar-inner { height: 58px; }
    .logo { font-size: 1.65rem; }

    /* zalogowani: menu przenosi się na dół ekranu */
    .signed-in .nav > :not(form) { display: none; }
    .signed-in .main { padding-bottom: calc(var(--tabbar-h) + 40px); }
    .signed-in .footer { padding-bottom: var(--tabbar-h); }
    .tabbar {
        display: grid; grid-template-columns: repeat(5, 1fr);
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
        height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--night);
    }
    .tabbar-item {
        position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        color: #bfaec2; text-decoration: none; font-size: .7rem; font-weight: 600;
    }
    .tabbar-item svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .tabbar-item.active { color: #fff; }
    .tabbar-item.active svg { stroke: var(--spark); }
    .tabbar-item .badge { position: absolute; top: 8px; left: calc(50% + 6px); }

    .row2 { grid-template-columns: 1fr; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card { border-radius: 14px; }
    .card-name { font-size: 1rem; }
    .panel, .profile-info { padding: 20px; }
    .chat { height: calc(100vh - 58px - var(--tabbar-h) - 64px); border-radius: 0; margin: -16px -16px 0; border-left: 0; border-right: 0; }
    .bubble { max-width: 86%; }
    .footer-copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   Zgłoszenia błędów i propozycji
   ========================================================= */
.segmented { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmented legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.form .segmented label { flex-direction: row; gap: 0; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
    flex: 1; display: flex; flex-direction: column; gap: 2px;
    padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fbf8fb;
    transition: border-color .15s, background-color .15s;
}
.segmented small { color: var(--muted); font-weight: 400; font-size: .82rem; }
.segmented input:checked + span { border-color: var(--rose); background: #fff4f7; box-shadow: inset 0 0 0 1px var(--rose); }
.segmented input:focus-visible + span { outline: 3px solid var(--spark); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin: 0; }
.fb-list { display: flex; flex-direction: column; gap: 14px; }
.fb-item h2 { font-size: 1.15rem; margin: 10px 0 6px; }
.fb-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-date { margin-left: auto; }
.fb-text { white-space: pre-line; max-width: 70ch; }
.fb-reply { margin-top: 14px; padding: 14px 16px; border-left: 3px solid var(--rose); background: #fbf6fa; border-radius: 0 10px 10px 0; }
.fb-reply p { margin: 4px 0 0; white-space: pre-line; }

.status { display: inline-block; font: 600 .78rem var(--body); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.st-new { background: #fde7c4; color: #7a4a00; }
.st-progress { background: #e4e3fb; color: #3b3593; }
.st-done { background: var(--ok-bg); color: var(--ok); }
.st-rejected { background: #eee9ee; color: #6a5d6d; }
.pill-bug { background: var(--err-bg); color: var(--err); }
.pill-idea { background: #e6f0fb; color: #23527f; }

/* =========================================================
   Panel administracyjny — spokojniejszy, gęstszy niż reszta
   ========================================================= */
.nav-admin { color: var(--spark) !important; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.admin-head h1 { margin: 0; font-size: 1.8rem; }
.admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-tab { padding: 8px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.admin-tab:hover { background: #efe3ee; color: var(--ink); }
.admin-tab.active { background: var(--night); color: #fff; }

.stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 28px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden;
}
.stats-row > div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-row > div:nth-child(4n) { border-right: 0; }
.stats-row > div:nth-last-child(-n+4) { border-bottom: 0; }
.stats-row dt { color: var(--muted); font-size: .85rem; }
.stats-row dd { margin: 2px 0 0; font: 700 1.7rem/1.1 var(--display); letter-spacing: -0.02em; }
.stats-row .attention dd { color: var(--rose); }

.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.panel-head h2 { font-size: 1.15rem; margin: 0; }
.panel-head a { font-size: .9rem; }
.admin-list { list-style: none; margin: 0; padding: 0; }
.admin-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-list.panel li { padding: 12px 20px; }
.admin-list li:last-child { border-bottom: 0; }
.admin-list a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.admin-list a:hover strong { color: var(--rose-dark); }
.admin-list .muted { white-space: nowrap; }

.user-cell { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.user-cell:hover strong { color: var(--rose-dark); }
.mini-avatar.sm { width: 34px; height: 34px; }
.mini-avatar.sm .avatar-fallback { font-size: .95rem; }

.admin-toolbar { display: flex; gap: 10px; margin-bottom: 16px; max-width: 560px; }
.admin-toolbar input { flex: 1; }
input[type=search] {
    font: 400 1rem var(--body); color: var(--ink); padding: 10px 13px; width: 100%;
    background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-input);
}
input[type=search]:focus { outline: none; border-color: var(--rose); }
.tabs-sm .tab { padding: 6px 14px; font-size: .88rem; }
.tab-count { opacity: .65; font-weight: 500; margin-left: 2px; }

.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .82rem; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fcf8fb; }
.table a { color: var(--ink); text-decoration: none; }
.table a:hover strong { color: var(--rose-dark); }
.row-new td:first-child { box-shadow: inset 3px 0 0 var(--spark); }

.admin-user { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.admin-user-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.admin-user-head .mini-avatar { width: 72px; height: 72px; }
.admin-user-head .avatar-fallback { font-size: 2rem; }
.admin-user-head h2 { margin: 0; }
.admin-user-head p { margin: 0; }
.admin-actions { display: flex; flex-direction: column; gap: 16px; }
.admin-actions .panel { padding: 20px; }
.admin-actions h3 { margin-bottom: 12px; }
.admin-actions p { margin: 10px 0 0; }
.danger-panel { border-color: #f2c6cf; background: #fff8f9; }
.danger-panel h3 { color: var(--err); }
.mod-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

@media (max-width: 900px) {
    .admin-cols, .admin-user { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stats-row > div:nth-child(4n) { border-right: 1px solid var(--line); }
    .stats-row > div:nth-child(2n) { border-right: 0; }
    .stats-row > div:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
    .stats-row > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 720px) {
    .signed-in .nav > .nav-admin { display: inline-flex; }
    .segmented { grid-template-columns: 1fr; }
    .table { font-size: .88rem; }
}

/* ---------- ustawienia konta ---------- */
.settings { max-width: 860px; margin: 0 auto; }
.settings-section { display: grid; grid-template-columns: 240px 1fr; gap: 28px; margin-bottom: 16px; }
.settings-intro h2 { font-size: 1.15rem; margin-bottom: .3em; }
.settings-intro p { margin: 0; font-size: .92rem; }
.settings-value { margin: 0; font-weight: 600; align-self: center; }
.settings .danger-zone { margin-top: 24px; }
.nick-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: #fbf8fb; border: 1.5px solid var(--line); border-radius: var(--r-input); }
.nick-row strong { font-size: 1.05rem; }
.nick-row a { margin-left: auto; font-weight: 600; font-size: .92rem; }
.settings-link { margin-top: 28px; text-align: center; }
@media (max-width: 720px) {
    .settings-section { grid-template-columns: 1fr; gap: 14px; }
}

/* =========================================================
   Galerie i komentarze
   ========================================================= */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.gallery-card { display: block; color: var(--ink); text-decoration: none; }
.gallery-card:hover { color: var(--ink); }
.gallery-cover {
    position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-photo); overflow: hidden; background: #efe4ee;
    /* stos zdjęć — dwie karty „pod spodem” podpowiadają, że to album, nie pojedyncze zdjęcie */
    box-shadow: 6px -6px 0 -1px #e3d2e2, 12px -12px 0 -2px #ecdfeb;
    margin: 12px 12px 0 0;
}
.gallery-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-card:hover .gallery-cover img { transform: scale(1.04); }
.gallery-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.gallery-empty svg { width: 46px; height: 46px; fill: none; stroke: #b9a3b8; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gallery-new {
    position: absolute; left: 10px; bottom: 10px;
    background: var(--rose); color: #fff; font-size: .78rem; font-weight: 700;
    padding: 4px 10px; border-radius: 999px;
}
.gallery-meta { display: flex; flex-direction: column; padding: 10px 2px 0; }
.gallery-meta strong { font: 700 1.05rem/1.25 var(--display); }

.gallery-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.gallery-head h1 { margin-bottom: .25em; }
.gallery-desc { max-width: 62ch; white-space: pre-line; margin-bottom: .4em; }
.gallery-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-actions form { margin: 0; }
.crumbs { margin: 0 0 6px; font-size: .92rem; display: flex; gap: 8px; }
.crumbs a { text-decoration: none; }
.upload-wide { margin-bottom: 24px; background: var(--surface); }

.photo-wall { columns: 4 220px; column-gap: 12px; }
.wall-item {
    position: relative; display: block; margin: 0 0 12px; break-inside: avoid;
    border-radius: 12px; overflow: hidden; background: #efe4ee;
}
.wall-item img { width: 100%; height: auto; transition: transform .35s ease; }
.wall-item:hover img { transform: scale(1.03); }
.wall-tag, .wall-comments {
    position: absolute; font-size: .75rem; font-weight: 700; color: #fff;
    background: rgba(20, 6, 24, .62); backdrop-filter: blur(6px);
    padding: 3px 9px; border-radius: 999px;
}
.wall-tag { top: 8px; left: 8px; }
.wall-comments { right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; }
.wall-comments svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.wall-comments.has-new { background: var(--rose); }

/* strona pojedynczego zdjęcia */
.photo-page { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.photo-stage {
    position: relative; background: var(--night); border-radius: var(--r-photo); overflow: hidden;
    display: flex; align-items: center; justify-content: center; min-height: 420px; max-height: calc(100vh - 140px);
}
.photo-stage img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.stage-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; color: #fff;
}
.stage-nav:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.stage-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.stage-nav.prev { left: 14px; }
.stage-nav.next { right: 14px; }
.stage-count { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); color: #e6d8e8; font-size: .82rem; background: rgba(20, 6, 24, .5); padding: 3px 10px; border-radius: 999px; }

.photo-side { padding: 22px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; }
.photo-owner { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.photo-owner .mini-avatar { width: 42px; height: 42px; }
.photo-owner > span { display: flex; flex-direction: column; line-height: 1.3; }
.gallery-name { color: var(--ink); font-weight: 600; }
.photo-caption { font-size: 1.05rem; margin: 6px 0 0; white-space: pre-line; }
.photo-side > .muted { margin: 0; }
.owner-tools { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.owner-tools summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.owner-tools .form { margin-top: 12px; gap: 10px; }
.owner-tools .form .btn { align-self: flex-start; }
.owner-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: .9rem; }
.owner-row form { margin: 0; }

.comments { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.comments h2 { font-size: 1.1rem; }
.comment-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.comment { display: flex; gap: 10px; }
.comment .mini-avatar { width: 34px; height: 34px; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.comment-head a { color: var(--ink); text-decoration: none; }
.comment-body p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-body form { margin: 2px 0 0; }
.comment-form { display: flex; flex-direction: column; gap: 8px; }
.comment-form .btn { align-self: flex-end; }

/* moderacja komentarzy w panelu */
.mod-comments { list-style: none; margin: 0; padding: 0; }
.mod-comments li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.mod-comments li:last-child { border-bottom: 0; }
.mod-thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.mod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mod-body { flex: 1; min-width: 0; }
.mod-body p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.mod-owner { display: flex; flex-direction: column; min-width: 0; }
.mod-owner .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.segmented-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
    .photo-page { grid-template-columns: 1fr; }
    .photo-side { position: static; max-height: none; }
    .photo-stage { min-height: 260px; }
    .segmented-3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .gallery-cover { box-shadow: 4px -4px 0 -1px #e3d2e2, 8px -8px 0 -2px #ecdfeb; margin: 8px 8px 0 0; }
    .photo-wall { columns: 2; column-gap: 8px; }
    .wall-item { margin-bottom: 8px; }
    .photo-stage { margin: 0 -16px; border-radius: 0; }
}
.comment-body .linklike { color: var(--muted); }
.comment-body .linklike:hover { color: var(--err); }

/* =========================================================
   Znajomi i ulubione
   ========================================================= */
.btn-icon { gap: 6px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-icon:hover { background: #fbf3e4; color: var(--ink); }
.btn-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.btn-icon.is-on { box-shadow: inset 0 0 0 1.5px var(--spark); background: #fff6e6; }
.btn-icon.is-on svg { fill: var(--spark); stroke: #d18a10; }

.friend-box {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: #fbf6fa; border: 1px solid var(--line);
}
.friend-box form { margin: 0; }
.friend-state { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; margin-right: auto; }
.friend-state.muted { font-weight: 400; }
.friend-state svg { width: 18px; height: 18px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.person { display: flex; flex-direction: column; gap: 8px; }
.person-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-height: 36px; }
.person-actions form { margin: 0; }
.person-actions form:first-child:has(.btn-block) { flex: 1; }
.person-tag { font-size: .78rem; font-weight: 600; color: var(--ok); background: var(--ok-bg); padding: 2px 9px; border-radius: 999px; }
.tab .badge { margin-left: 4px; }
.tab-note { margin: -8px 0 20px; }
.segmented-4 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 720px) {
    .tabbar-item { font-size: .64rem; }
    .tabbar-item span { white-space: nowrap; }
    .segmented-4 { grid-template-columns: 1fr; }
}
.linklike.muted { color: var(--muted); }
.linklike.muted:hover { color: var(--rose-dark); }

/* ---------- potwierdzanie e-maila ---------- */
.inbox { text-align: center; }
.inbox h1 { margin-bottom: .4em; }
.inbox-icon { width: 64px; height: 64px; margin: 4px auto 14px; border-radius: 50%; background: #fbe9ef; display: flex; align-items: center; justify-content: center; }
.inbox-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--rose); stroke-width: 2.4; stroke-linejoin: round; }
.inbox-email { font-weight: 700; font-size: 1.05rem; margin-bottom: .6em; word-break: break-all; }
.inbox-help { margin: 22px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.label-row a { font-weight: 500; }
.admin-mailtest { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin: -12px 0 24px; }

/* =========================================================
   Premium
   ========================================================= */
.nav-premium { color: var(--spark) !important; font-weight: 600; }
.btn-premium { background: linear-gradient(135deg, #ffb23f, #d92b63); color: #fff; }
.btn-premium:hover { background: linear-gradient(135deg, #f29a1a, #ad1a4b); color: #fff; }
.btn-premium:disabled { opacity: .5; cursor: not-allowed; }
.premium-badge {
    display: inline-block; vertical-align: middle; margin-left: 12px;
    font: 700 .78rem/1 var(--body); letter-spacing: .02em;
    padding: 6px 11px; border-radius: 999px; color: #5a3500;
    background: linear-gradient(135deg, #ffd27a, #ffb23f);
}
.card-premium { font-style: normal; color: var(--spark); margin-left: 6px; font-size: .9em; }

.premium-hero {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
    background: var(--night); color: #e6d8e8; border-radius: var(--r-panel); padding: 36px 40px; margin-bottom: 28px;
    background-image: radial-gradient(500px 300px at 90% 0%, rgba(255, 178, 63, .22), transparent 70%);
}
.premium-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.premium-state { margin: 0; font-size: 1.05rem; }
.premium-state strong { color: #fff; }
.premium-state.on strong { color: var(--spark); }
.premium-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.premium-perks li { padding-left: 28px; position: relative; }
.premium-perks li::before { content: "★"; position: absolute; left: 0; color: var(--spark); }
.premium-perks strong { color: #fff; }

.premium-buy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.plans { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; width: 100%; }
.plan { cursor: pointer; display: block; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-body {
    position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%;
    padding: 22px 20px; border-radius: var(--r-panel); background: var(--surface); border: 2px solid var(--line);
    transition: border-color .15s, box-shadow .15s;
}
.plan:hover .plan-body { border-color: #d9c4d8; }
.plan input:checked + .plan-body { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(217, 43, 99, .12); }
.plan input:focus-visible + .plan-body { outline: 3px solid var(--spark); outline-offset: 2px; }
.plan-badge {
    position: absolute; top: -11px; left: 18px; padding: 3px 10px; border-radius: 999px;
    background: var(--spark); color: #4a2c00; font-size: .75rem; font-weight: 700;
}
.plan-name { font-weight: 600; }
.plan-price { font: 800 1.9rem/1.1 var(--display); letter-spacing: -0.02em; }
.plan-per { color: var(--muted); font-size: .88rem; }
.consent { max-width: 70ch; font-size: .9rem; }
.form .consent, .premium-buy .consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--rose); flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.chat-quota { margin: 0; padding: 0 14px 10px; font-size: .82rem; color: var(--muted); background: #fff; }
.chat-quota.low { color: var(--rose-dark); }
.chat-limit { padding: 16px; border-top: 1px solid var(--line); background: #fff8f0; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.chat-limit p { margin: 0; flex: 1; min-width: 220px; }

.inbox-icon.ok { background: var(--ok-bg); }
.inbox-icon.ok svg { stroke: var(--ok); stroke-width: 3; stroke-linecap: round; }
.spinner { width: 46px; height: 46px; margin: 4px auto 16px; border-radius: 50%; border: 4px solid #f1e3ee; border-top-color: var(--rose); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stats-3 > div:nth-child(3n) { border-right: 0; }
.stats-3 > div { border-bottom: 0 !important; }
.mono-id { font-family: ui-monospace, Consolas, monospace; color: var(--muted); word-break: break-all; }
.inline-form { flex-direction: row; align-items: flex-end; gap: 10px; }
.inline-form label { flex: 1; }

@media (max-width: 900px) {
    .premium-hero { grid-template-columns: 1fr; padding: 28px 24px; }
    .stats-3 { grid-template-columns: 1fr; }
    .stats-3 > div { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
}

/* ---------- Premium: wyróżnione profile ---------- */
.card-featured { box-shadow: 0 0 0 3px var(--spark), 0 10px 26px rgba(255, 178, 63, .28); }
.featured-star { color: var(--spark); }
.featured-note { margin-top: 12px; }

/* ---------- Premium: zasłonięte polubienia i odwiedziny ---------- */
.visits-summary { margin: -8px 0 20px; color: var(--muted); }
.visits-summary strong { color: var(--ink); }
.locked-teaser { position: relative; }
.locked-grid { pointer-events: none; user-select: none; }
.card-locked { cursor: default; }
.card-locked .card-img { filter: blur(14px) saturate(1.2); transform: scale(1.15); }
.card-locked.v-0 .card-img { background: radial-gradient(circle at 50% 35%, #f3c6d6 0 22%, transparent 23%), linear-gradient(160deg, #d92b63, #3b1b44); }
.card-locked.v-1 .card-img { background: radial-gradient(circle at 45% 32%, #ffe0b8 0 20%, transparent 21%), linear-gradient(200deg, #ffb23f, #ad1a4b); }
.card-locked.v-2 .card-img { background: radial-gradient(circle at 55% 36%, #e7d2f0 0 22%, transparent 23%), linear-gradient(140deg, #7c3a8f, #241029); }
.card-locked.v-3 .card-img { background: radial-gradient(circle at 50% 30%, #f9d3c4 0 21%, transparent 22%), linear-gradient(180deg, #e06a8d, #3b1b44); }
.card-locked .card-name, .card-locked .card-city { filter: blur(4px); }
.locked-cta {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: min(440px, calc(100% - 32px)); text-align: center; padding: 28px 24px;
    box-shadow: 0 18px 50px rgba(36, 16, 41, .25); z-index: 3;
}
.locked-cta h2 { margin: 4px 0 8px; font-size: 1.35rem; }
.locked-cta .btn { margin-top: 10px; }
.locked-icon { font-size: 2rem; margin: 0; }
.locked-grid { min-height: 320px; }

/* data wizyty pod kartą */
.card-wrap { display: flex; flex-direction: column; gap: 6px; }
.card-when { font-size: .8rem; color: var(--muted); text-align: center; }

/* ---------- Premium: potwierdzenie przeczytania ---------- */
.read-state.read { font-weight: 600; }
.read-lock { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.read-lock:hover { color: inherit; opacity: 1; }

/* ---------- lista miejscowości ---------- */
.field-hint { color: var(--muted); font-size: .8rem; }
select:disabled { opacity: .6; cursor: not-allowed; }

.nick-fixed { font-size: 1.15rem; margin: 0; }

/* ---------- polubienia i komentarze zdjęć ---------- */
.photo-likes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 2px; }
.photo-likes form { margin: 0; }
.like-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px;
    border: 1.5px solid var(--rose); background: #fff; color: var(--rose); font: inherit; font-weight: 600; cursor: pointer;
}
.like-btn:hover { background: #fdeef3; }
.like-btn.on { background: var(--rose); color: #fff; }
.like-count { color: var(--muted); font-size: .9rem; }
.likers summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
.likers ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow: auto; }
.likers a { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }

.profile-main-photo a { position: relative; display: block; }
.photo-stats {
    position: absolute; right: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px;
    background: rgba(20, 6, 24, .62); color: #fff; font-size: .85rem; backdrop-filter: blur(4px);
}
.photo-stats b { font-weight: 600; }
.activity-flash { display: block; text-decoration: none; }

.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-list li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.activity-list li:last-child { border-bottom: 0; }
.activity-list li.is-new { background: #fff7fa; }
.activity-body { flex: 1; min-width: 0; }
.activity-body a { color: var(--ink); }
.activity-comment { margin: 4px 0; overflow-wrap: anywhere; }
.activity-thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }

/* ---------- regulamin i polityka prywatności ---------- */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { scroll-margin-top: 90px; margin-top: 1.8em; }
.legal ol, .legal ul { padding-left: 1.4em; }
.legal li { margin: .35em 0; }
.legal-toc { background: var(--paper); border-radius: 12px; padding: 12px 18px; margin: 16px 0 8px; }
.legal-toc ol { margin: 0; columns: 2; column-gap: 28px; }
.legal-toc a { text-decoration: none; }
.legal .table td, .legal .table th { vertical-align: top; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
