/* =====================================================================
   Wulpio - społeczność (prefiks .soc-): obserwowanie sklepów, wpisy sklepów,
   Aktualności, profil sklepu, polecanie okazji, zaproszenia.
   Działa w układzie aplikacji (layout.php + ui.css) i publicznym (public.php).
   ===================================================================== */
:root {
    --soc-fox: #f26b1d;
    --soc-fox-ink: #b84a0c;
    --soc-fox-mist: #fff1e7;
    --soc-ink: #1d1534;
    --soc-line: #ebe7f4;
    --soc-hair: rgba(29, 21, 52, .07);
    --soc-mint: #13805f;
    --soc-mint-mist: #e5f7f0;
    --soc-r: 16px;
}
.soc-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.soc-fine { margin: 6px 0 0; font-size: .78rem; color: var(--muted); }

/* --- Przyciski: Obserwuj / Poleć --- */
.soc-follow { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.soc-follow-btn {
    display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 14px 6px 10px;
    border-radius: 999px; border: 0; cursor: pointer; font: 500 .82rem/1 var(--font); white-space: nowrap;
    background: var(--primary); color: #fff; box-shadow: 0 3px 10px -3px rgba(115, 82, 199, .55);
    transition: background .15s, color .15s, box-shadow .15s;
}
a.soc-follow-btn { text-decoration: none !important; }
.soc-follow-btn:hover { background: var(--primary-600); color: #fff; }
.soc-follow-btn .ic { width: 16px; height: 16px; }
.soc-follow-ico { display: inline-grid; place-items: center; }
.soc-follow-btn.is-on { background: var(--primary-50); color: var(--primary-600); box-shadow: inset 0 0 0 1px var(--primary-100); }
.soc-follow-btn.is-on:hover { background: #fff; color: var(--danger-ink); box-shadow: inset 0 0 0 1px #f3c6d4; }
.soc-follow-btn:disabled { opacity: .6; cursor: progress; }
.soc-follow-btn.is-big { min-height: 46px; padding: 10px 22px 10px 16px; font-size: .95rem; }
.soc-follow-btn.is-big .ic { width: 18px; height: 18px; }
.soc-follow-count { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.soc-share { display: inline-flex; margin: 0; }
.soc-share-btn {
    display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 12px; border-radius: 999px;
    border: 0; cursor: pointer; font: 500 .82rem/1 var(--font); background: var(--soc-fox-mist); color: var(--soc-fox-ink);
    transition: background .15s, color .15s;
}
.soc-share-btn:hover { background: #ffe2cc; color: #8f3907; }
.soc-share-btn .ic { width: 16px; height: 16px; }
.soc-share-btn:disabled { opacity: .6; cursor: progress; }
.soc-follow-btn:focus-visible, .soc-share-btn:focus-visible, .soc-tab:focus-visible, .soc-report-btn:focus-visible, .soc-sheet-link:focus-visible, .soc-type-opt input:focus-visible + span {
    outline: 3px solid var(--soc-fox); outline-offset: 2px;
}
/* przy karcie oferty (pcard-buy wyrównuje do prawej) */
.soc-offer-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-top: 4px; }
.soc-offer-actions .soc-follow-btn, .soc-offer-actions .soc-share-btn { min-height: 30px; padding: 5px 10px; font-size: .76rem; }

/* --- Układ: Aktualności i profil --- */
.soc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.soc-main { min-width: 0; }
.soc-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; position: sticky; top: 84px; }
.soc-side .card { margin: 0; }
.soc-side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
body .soc-side-head h2 { margin: 0; font-size: 1.02rem; }
body .soc-section-h { margin: 0 0 12px; font-size: 1.1rem; }
.soc-head h1 { margin-bottom: 4px; }

.soc-tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 16px; background: #fff; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--soc-line); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.soc-tabs::-webkit-scrollbar { display: none; }
.soc-tab { flex: none; padding: 8px 16px; border-radius: 999px; color: var(--text); font-weight: 500; font-size: .88rem; white-space: nowrap; text-decoration: none !important; }
.soc-tab:hover { background: var(--primary-50); color: var(--primary-600); }
.soc-tab.is-active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px -4px rgba(115, 82, 199, .6); }

.soc-stream { display: grid; gap: 14px; }
.soc-empty { margin-bottom: 16px; }

/* --- Karta wpisu sklepu --- */
.soc-post { background: #fff; border-radius: var(--soc-r); border: 1px solid var(--soc-hair); box-shadow: 0 1px 2px rgba(29, 21, 52, .04), 0 10px 26px -14px rgba(54, 30, 120, .22); padding: 16px 18px; scroll-margin-top: 90px; position: relative; overflow: visible; }
.soc-post::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary-100); }
.soc-post.type-promo::before { background: var(--soc-fox); }
.soc-post.type-shipping::before { background: #3bd2a2; }
.soc-post.type-new::before { background: var(--primary); }
.soc-post:target { box-shadow: 0 0 0 3px rgba(242, 107, 29, .35), 0 10px 26px -14px rgba(54, 30, 120, .22); }
.soc-post.is-expired { opacity: .72; }
.soc-post-head { display: flex; align-items: center; gap: 12px; }
.soc-shop-logo { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--soc-line); display: grid; place-items: center; overflow: hidden; color: var(--primary); }
.soc-shop-logo img { width: 100%; height: 100%; object-fit: contain; }
.soc-shop-logo.is-sm { width: 40px; height: 40px; border-radius: 11px; }
.soc-shop-logo .ic { width: 20px; height: 20px; }
.soc-post-who { display: grid; min-width: 0; flex: 1; gap: 1px; }
.soc-shop-name { color: var(--heading); font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-post-meta { font-size: .78rem; color: var(--muted); }
.soc-label-shop { color: var(--soc-fox-ink); font-weight: 600; }
.soc-type { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--primary-50); color: var(--primary-600); }
.soc-type .ic { width: 14px; height: 14px; }
.soc-type-promo { background: var(--soc-fox-mist); color: var(--soc-fox-ink); }
.soc-type-shipping { background: var(--soc-mint-mist); color: var(--soc-mint); }
.soc-type-info { background: #eef2f6; color: #4a5a6a; }
.soc-post-main { margin-top: 12px; display: grid; gap: 14px; }
.soc-post-main.has-img { grid-template-columns: minmax(0, 1fr) 168px; align-items: start; }
.soc-post-title { margin: 0 0 4px; font-size: 1.05rem; line-height: 1.35; color: var(--heading); overflow-wrap: anywhere; }
.soc-post-body { margin: 0; font-size: .92rem; color: var(--text); overflow-wrap: anywhere; }
.soc-post-body a { font-weight: 500; }
.soc-post-img { display: block; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--soc-line, #eee); aspect-ratio: 4 / 3; }
.soc-post-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; display: block; transition: transform .3s; }
.soc-post-img:hover img { transform: scale(1.03); }
.soc-post-deal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 10px; }
.soc-price { font-size: 1.25rem; color: var(--heading); font-weight: 700; letter-spacing: -.01em; }
.soc-old { color: var(--muted); font-size: .88rem; }
.soc-disc { display: inline-block; font-size: .74rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--soc-fox); color: #fff; }
.soc-until { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--warning-ink); }
.soc-until .ic { width: 15px; height: 15px; }
.soc-until.is-over { color: var(--muted); }
.soc-post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--soc-line); }
.soc-go { display: inline-flex; align-items: center; gap: 6px; }
.soc-go .ic { width: 15px; height: 15px; }

/* zgłoś */
.soc-report { position: relative; margin-left: auto; }
.soc-report-btn { list-style: none; cursor: pointer; font-size: .8rem; color: var(--muted); padding: 6px 8px; border-radius: 8px; }
.soc-report-btn::-webkit-details-marker { display: none; }
.soc-report-btn:hover, .soc-report[open] .soc-report-btn { color: var(--danger-ink); background: var(--danger-50); }
.soc-report-form { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 30; width: min(320px, 86vw); background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 18px 40px -12px rgba(29, 21, 52, .35), 0 0 0 1px var(--soc-line); display: grid; gap: 10px; }
.soc-report-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; }
.soc-report-form legend { font-weight: 600; color: var(--heading); font-size: .9rem; margin-bottom: 4px; }
.soc-radio { display: flex; gap: 8px; align-items: center; font-size: .86rem; min-height: 32px; cursor: pointer; }
.soc-note { display: grid; gap: 4px; font-size: .82rem; }
.soc-note textarea { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 8px; resize: vertical; }

/* --- Promocja w osi czasu --- */
.soc-promo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; background: linear-gradient(100deg, #fffaf6, #fff 60%); border-radius: var(--soc-r); border: 1px solid #fde3cf; padding: 14px 16px; scroll-margin-top: 90px; }
.soc-promo:target { box-shadow: 0 0 0 3px rgba(242, 107, 29, .35); }
.soc-promo-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--soc-fox-mist); color: var(--soc-fox-ink); overflow: hidden; }
.soc-promo-ico img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.soc-promo-body { display: grid; gap: 2px; min-width: 0; }
.soc-promo-meta { font-size: .78rem; color: var(--muted); }
.soc-label-promo { color: var(--soc-fox-ink); font-weight: 700; }
.soc-promo-title { color: var(--heading); font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.soc-promo-match { font-size: .8rem; color: var(--soc-mint); }
.soc-promo-match .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }
.soc-promo-price { display: grid; justify-items: end; gap: 2px; text-align: right; }
.soc-promo-price strong { font-size: 1.1rem; color: var(--heading); }
.soc-promo-price s { font-size: .8rem; color: var(--muted); }
.soc-promo-link { font-size: .8rem; display: inline-flex; align-items: center; gap: 4px; }
.soc-promo-link .ic { width: 13px; height: 13px; }
.soc-promos-compact { display: grid; gap: 10px; }
.soc-promos-compact .soc-promo { grid-template-columns: auto minmax(0, 1fr); padding: 12px; }
.soc-promos-compact .soc-promo-price { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; text-align: left; }
.soc-promo-price strong, .soc-promo-price s, .soc-promo-link { white-space: nowrap; }

/* --- Odkryj sklepy --- */
.soc-shops { list-style: none; margin: 0 -6px; padding: 0; }
.soc-shop-row { display: flex; align-items: center; gap: 10px; padding: 10px 6px; }
.soc-shop-row + .soc-shop-row { border-top: 1px solid var(--soc-line); }
.soc-shop-row .grow { display: grid; min-width: 0; }
.soc-shop-row .soc-follow-btn { min-height: 32px; padding: 5px 11px 5px 8px; font-size: .78rem; }

/* --- Zaproś znajomych --- */
.soc-invite { position: relative; overflow: hidden; background: linear-gradient(160deg, #fff, #fff7f1) !important; border: 1px solid #fde3cf !important; }
.soc-invite::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 107, 29, .16), transparent 70%); pointer-events: none; }
.soc-invite-head { display: flex; gap: 12px; align-items: flex-start; }
.soc-invite-head img { flex: none; border-radius: 50%; background: var(--soc-fox-mist); padding: 6px; box-sizing: content-box; width: 36px; height: 36px; }
body .soc-invite-head h2 { margin: 0 0 2px; font-size: 1.02rem; }
.soc-invite-head p { margin: 0; font-size: .85rem; color: var(--text); }
.soc-invite-stat { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 10px; }
.soc-invite-stat strong { font-size: 1.9rem; line-height: 1; color: var(--soc-fox-ink); font-weight: 700; }
.soc-invite-stat span { font-size: .85rem; color: var(--text); }
.soc-invite-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.soc-invite .soc-sheet-link { flex: 1 1 auto; }

/* --- Udostępnianie: linki, kopiowanie, okno --- */
.soc-copy { display: flex; gap: 8px; align-items: center; }
.soc-copy input { flex: 1; min-width: 0; font: inherit; font-size: .85rem; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: #faf9fd; color: var(--heading); }
.soc-copy .btn { flex: none; }
.soc-sheet-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 118px), 1fr)); gap: 8px; margin: 12px 0; }
.soc-sheet-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--soc-line); color: var(--heading); font-weight: 500; font-size: .86rem; text-decoration: none !important; }
.soc-sheet-link:hover { box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary-600); }
.soc-sheet-ico { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; font-weight: 700; font-size: .8rem; color: #fff; background: var(--primary); flex: none; }
.soc-sheet-ico .ic { width: 15px; height: 15px; }
.is-wa .soc-sheet-ico { background: #1fa855; }
.is-ms .soc-sheet-ico { background: linear-gradient(135deg, #0a7cff, #a033ff); }
.is-sms .soc-sheet-ico { background: var(--soc-mint); }
.is-mail .soc-sheet-ico { background: #5a6475; }
.soc-native-btn { margin: 12px 0 0; }

.soc-dialog { border: 0; padding: 0; border-radius: 22px; width: min(440px, calc(100vw - 24px)); box-shadow: 0 30px 80px -20px rgba(29, 21, 52, .5); color: var(--text); }
.soc-dialog::backdrop { background: rgba(29, 21, 52, .45); backdrop-filter: blur(2px); }
.soc-dialog-inner { padding: 20px; }
.soc-dialog-head { display: flex; justify-content: space-between; align-items: center; }
body .soc-dialog-head h2 { margin: 0; font-size: 1.15rem; }
.soc-dialog-x { border: 0; background: var(--bg); width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--heading); }
.soc-dialog-title { margin: 10px 0 2px; font-weight: 600; color: var(--heading); overflow-wrap: anywhere; }
.soc-dialog-open { display: inline-block; margin-top: 12px; }
@media (max-width: 560px) {
    .soc-dialog { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 22px 22px 0 0; }
    .soc-dialog-inner { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

.soc-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 1000; max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 14px; background: var(--soc-ink); color: #fff; font-size: .88rem; box-shadow: 0 16px 40px -12px rgba(29, 21, 52, .55); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.soc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.soc-toast.is-bad { background: var(--danger-ink); }

/* --- Profil sklepu --- */
body.public .soc-page { max-width: 1120px; margin: 0 auto; padding: 28px 16px 64px; }
.soc-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 24px; margin-bottom: 24px; border-radius: 24px; background: radial-gradient(120% 140% at 0% 0%, #f4f0fe, #fff 55%), #fff; border: 1px solid var(--soc-line); box-shadow: 0 20px 50px -30px rgba(54, 30, 120, .4); }
.soc-hero-logo { width: 96px; height: 96px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--soc-line), 0 10px 24px -12px rgba(54, 30, 120, .35); display: grid; place-items: center; overflow: hidden; color: var(--primary); }
.soc-hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.soc-hero-logo .ic { width: 40px; height: 40px; }
.soc-hero-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .78rem; font-weight: 600; color: var(--soc-mint); letter-spacing: .01em; }
.soc-hero-kicker .ic { width: 15px; height: 15px; }
.soc-hero h1 { margin: 4px 0 6px; font-size: clamp(1.5rem, 3.2vw, 2.1rem); color: var(--soc-ink); }
.soc-hero-desc { margin: 0 0 10px; max-width: 62ch; color: var(--text); }
.soc-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: .86rem; color: var(--muted); }
.soc-hero-meta > * { display: inline-flex; align-items: center; gap: 5px; }
.soc-hero-meta .ic { width: 16px; height: 16px; }
.soc-hero-cta { display: grid; justify-items: end; gap: 8px; text-align: right; max-width: 230px; }
.soc-join { text-align: center; display: grid; justify-items: center; gap: 6px; background: linear-gradient(180deg, #f4f0fe, #fff) !important; }
body .soc-join h2 { margin: 4px 0 0; font-size: 1.05rem; }
.soc-join p { margin: 0 0 8px; font-size: .88rem; }
body.public .soc-page .card { border: 1px solid var(--soc-hair); box-shadow: 0 10px 26px -16px rgba(54, 30, 120, .25); border-radius: var(--soc-r); }

/* ui-empty w układzie publicznym (ui.css ładuje się tylko w aplikacji) */
body.public .soc-page .ui-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 40px 22px; background: #fff; border-radius: var(--soc-r); border: 1px solid var(--soc-hair); }
body.public .soc-page .ui-empty.is-page { max-width: 560px; margin: 6vh auto; }
body.public .soc-page .ui-empty.is-inline { grid-template-columns: auto 1fr; justify-items: start; text-align: left; padding: 18px; border: 1.5px dashed #e3ddef; background: #faf9fd; }
body.public .soc-page .ui-empty p { margin: 0; }
body.public .soc-page .ui-empty img { border-radius: 50%; background: var(--soc-fox-mist); padding: 8px; box-sizing: content-box; }

/* --- Karta poleconej okazji --- */
.soc-deal-page { max-width: 760px; margin-left: auto; margin-right: auto; }
body.app .soc-deal-page { padding-top: 6px; }
.soc-deal-from { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--text); font-size: .92rem; }
.soc-deal-av { background: var(--soc-fox-mist); color: var(--soc-fox-ink); }
.soc-deal-card { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0; background: #fff; border-radius: 24px; overflow: hidden; border: 1px solid var(--soc-line); box-shadow: 0 30px 60px -30px rgba(54, 30, 120, .45); }
.soc-deal-img { position: relative; background: linear-gradient(160deg, #f4f0fe, #fff1e7); display: grid; place-items: center; min-height: 240px; }
.soc-deal-img img { position: relative; z-index: 1; width: 100%; height: 100%; max-height: 320px; object-fit: contain; background: #fff; }
.soc-deal-noimg { position: absolute; color: var(--primary); opacity: .4; }
.soc-deal-noimg .ic { width: 64px; height: 64px; }
.soc-deal-body { padding: 24px; display: grid; align-content: start; gap: 8px; }
.soc-deal-body h1 { margin: 2px 0 0; font-size: clamp(1.2rem, 2.6vw, 1.5rem); line-height: 1.3; color: var(--soc-ink); overflow-wrap: anywhere; }
.soc-deal-body .tag { justify-self: start; }
.tag-shop { background: var(--soc-mint-mist); color: var(--soc-mint); }
.tag-post { background: var(--soc-fox-mist); color: var(--soc-fox-ink); }
.soc-deal-seller { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text); font-weight: 500; }
.soc-deal-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 6px; }
.soc-deal-price strong { font-size: 2rem; line-height: 1.1; color: var(--soc-ink); letter-spacing: -.02em; }
.soc-deal-price s { color: var(--muted); }
.soc-deal-price small { color: var(--muted); font-size: .86rem; }
.soc-deal-go { margin-top: 10px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 52px; font-size: 1rem; }
.soc-deal-go .ic { width: 18px; height: 18px; }
.soc-deal-expired { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--warning-50); color: var(--warning-ink); font-size: .9rem; margin: 8px 0 0; }
.soc-deal.is-expired .soc-deal-price { opacity: .55; }
.soc-deal-cta { margin-top: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 24px; background: linear-gradient(120deg, #2a2047, #5233a8); color: #e9e4ff; }
.soc-deal-cta img { border-radius: 50%; background: #fff; padding: 6px; }
body .soc-deal-cta h2 { margin: 0 0 4px; font-size: 1.15rem; color: #fff; }
.soc-deal-cta p { margin: 0; font-size: .9rem; }
.soc-deal-cta .btn { white-space: nowrap; }
.soc-deal-stats { margin-top: 18px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.soc-deal-stats .ic { width: 16px; height: 16px; }
.soc-sheet-inline { margin-bottom: 20px; border: 1px solid #fde3cf !important; background: linear-gradient(160deg, #fff, #fff7f1) !important; }
body .soc-sheet-inline h2 { margin: 0 0 4px; display: flex; gap: 8px; align-items: center; font-size: 1.05rem; }

/* --- Panel sklepu: wpisy i profil --- */
.soc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin-bottom: 18px; }
.soc-kpis .soc-kpi { display: flex; align-items: center; gap: 14px; margin: 0; }
.soc-kpi > span:last-child { display: grid; }
.soc-kpi strong { font-size: 1.4rem; color: var(--heading); line-height: 1.1; }
.soc-kpi small { color: var(--muted); font-size: .8rem; }
.soc-panel-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 24px; align-items: start; }
.soc-form-card { position: sticky; top: 84px; }
.soc-form { display: grid; gap: 12px; }
.soc-types { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.soc-types legend { margin-bottom: 6px; }
.soc-type-opt { position: relative; cursor: pointer; }
.soc-type-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.soc-type-opt span { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: .88rem; color: var(--heading); transition: box-shadow .15s, background .15s; }
.soc-type-opt span .ic { width: 18px; height: 18px; color: var(--primary); }
.soc-type-opt input:checked + span { background: var(--primary-50); box-shadow: inset 0 0 0 2px var(--primary); color: var(--primary-600); }
.soc-counter { display: block; text-align: right; margin-top: 2px; }
.soc-upload { display: grid; gap: 8px; }
.soc-upload-prev { width: 140px; border-radius: 10px; border: 1px solid var(--line); }
.soc-form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.soc-panel-post { display: grid; gap: 6px; }
.soc-panel-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.soc-panel-status form { margin: 0; }

/* --- Admin: moderacja --- */
.soc-admin-list { display: grid; gap: 16px; }
.soc-admin-row { display: grid; gap: 12px; margin: 0 !important; }
.soc-admin-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.soc-admin-actions .danger { color: var(--danger-ink); }
.soc-admin-reports ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.soc-admin-cmt { margin: 0; padding: 10px 14px; border-radius: 12px; background: #faf9fd; border-left: 3px solid var(--primary-100); }
.soc-admin-cmt p { margin: 0; overflow-wrap: anywhere; }
.soc-admin-cmt p + p { margin-top: 6px; }

/* --- Telefon --- */
@media (max-width: 1080px) {
    .soc-layout { grid-template-columns: minmax(0, 1fr); }
    .soc-side { position: static; }
    .soc-panel-grid { grid-template-columns: minmax(0, 1fr); }
    .soc-form-card { position: static; }
}
@media (max-width: 640px) {
    .soc-post { padding: 14px; }
    .soc-post-main.has-img { grid-template-columns: minmax(0, 1fr); }
    .soc-post-img { order: -1; aspect-ratio: 16 / 9; }
    .soc-type { padding: 4px 8px; }
    .soc-post-actions .soc-go { flex: 1 1 100%; justify-content: center; }
    .soc-promo { grid-template-columns: auto minmax(0, 1fr); }
    .soc-promo-price { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; text-align: left; }
    .soc-hero { grid-template-columns: auto minmax(0, 1fr); padding: 18px; gap: 14px; border-radius: 20px; }
    .soc-hero-logo { width: 64px; height: 64px; border-radius: 16px; align-self: start; }
    .soc-hero-cta { grid-column: 1 / -1; justify-items: stretch; text-align: left; max-width: none; }
    .soc-hero-cta .soc-follow { width: 100%; }
    .soc-hero-cta .soc-follow-btn.is-big { width: 100%; justify-content: center; }
    .soc-deal-card { grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
    .soc-deal-img { min-height: 200px; }
    .soc-deal-img img { max-height: 240px; }
    .soc-deal-body { padding: 18px; }
    .soc-deal-cta { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; padding: 22px 18px; }
    .soc-deal-cta .btn { white-space: normal; width: 100%; }
    .soc-types { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .soc-tabs { width: 100%; }
    .soc-tab { flex: 1 0 auto; text-align: center; padding: 8px 12px; }
    body.public .soc-page { padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .soc-toast, .soc-post-img img, .soc-follow-btn { transition: none; }
}

/* Katalog sklepów /sklepy */
.dir-search { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 14px; }
.dir-search input { flex: 1; border: 0; background: transparent; font: inherit; padding: 8px 4px; min-width: 0; outline: none; }
.dir-search-ico { color: var(--muted); display: inline-flex; } .dir-search-ico svg { width: 20px; height: 20px; }
.dir-grid { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.dir-card { display: grid; gap: 8px; align-content: start; }
.dir-card-head { display: flex; gap: 12px; align-items: center; }
.dir-card-head .grow { display: grid; min-width: 0; }
.dir-name { font-weight: 700; color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-name:hover { color: var(--primary); }
.dir-desc { margin: 0; color: var(--ink-2, #444); }
.dir-meta { margin: 0; }
.dir-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.dir-empty { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.dir-empty p { margin: 0; flex: 1; min-width: 200px; }

/* =====================================================================
   Reakcje pod wpisami: "Lubię to", komentarze, "Udostępnij", sortowanie, strona wpisu /wpis/{id}
   ===================================================================== */
.soc-post-title a { color: inherit; text-decoration: none; }
.soc-post-title a:hover { color: var(--primary-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.soc-post-time { color: inherit; text-decoration: none; }
.soc-post-time:hover { text-decoration: underline; }

.soc-react { margin-top: 10px; }
.soc-react-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px 0; border-top: 1px solid var(--soc-line); border-bottom: 1px solid var(--soc-line); }
.soc-react-form { margin: 0; display: flex; }
.soc-react-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 6px 10px;
    border: 0; border-radius: 10px; background: transparent; cursor: pointer; font: 500 .86rem/1 var(--font); color: var(--text);
    text-decoration: none !important; white-space: nowrap; transition: background .15s, color .15s;
}
.soc-react-btn:hover { background: var(--primary-50); color: var(--primary-600); }
.soc-react-btn:focus-visible { outline: 3px solid var(--soc-fox); outline-offset: 1px; }
.soc-react-btn .ic { width: 19px; height: 19px; flex: none; }
.soc-react-btn.is-static { cursor: default; color: var(--muted); }
.soc-react-btn.is-static:hover { background: transparent; color: var(--muted); }
.soc-react-n { min-width: 1ch; font-weight: 600; color: var(--muted); }
.soc-react-n:empty { display: none; }
.soc-like.is-on { color: #d93a5c; }
.soc-like.is-on .soc-heart { fill: currentColor; }
.soc-like.is-on .soc-react-n { color: #d93a5c; }
.soc-like:hover { background: #fdeef2; color: #d93a5c; }
.soc-like.is-pop .soc-heart { animation: soc-pop .38s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes soc-pop { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }

.soc-react-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--soc-line); font-size: .84rem; color: var(--muted); }
.soc-react-stats > span { display: inline-flex; align-items: center; gap: 5px; }
.soc-react-stats .ic { width: 16px; height: 16px; }
.soc-react-stats a { margin-left: auto; font-weight: 500; }

/* komentarze */
.soc-cmts { display: grid; gap: 8px; padding-top: 10px; }
.soc-cmts-more { justify-self: start; font-size: .84rem; font-weight: 600; color: var(--primary-600); padding: 2px 0; }
.soc-cmts-more[aria-busy="true"] { opacity: .5; pointer-events: none; }
.soc-cmts-empty { margin: 2px 0; }
.soc-cmt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.soc-cmt-list:empty { display: none; }
.soc-cmt { display: flex; gap: 9px; align-items: flex-start; scroll-margin-top: 100px; }
.soc-cmt.is-reply { margin-left: 41px; }
.soc-cmt-av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--primary-50); color: var(--primary-600); font-size: .72rem; font-weight: 700; }
.soc-cmt-av img { width: 100%; height: 100%; object-fit: cover; }
.soc-cmt-av.is-shop { border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px #fde3cf; color: var(--soc-fox-ink); }
.soc-cmt-av.is-shop img { object-fit: contain; }
.soc-cmt-av .ic { width: 16px; height: 16px; }
.soc-cmt-main { min-width: 0; flex: 1; display: grid; gap: 3px; }
.soc-cmt-bubble { justify-self: start; max-width: 100%; padding: 8px 12px 9px; border-radius: 4px 16px 16px 16px; background: #f5f3fa; }
.soc-cmt.is-shop .soc-cmt-bubble { background: var(--soc-fox-mist); }
.soc-cmt-head { margin: 0 0 1px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: .8rem; line-height: 1.3; }
.soc-cmt-name { color: var(--heading); font-weight: 600; }
.soc-cmt-badge { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px; background: var(--soc-fox); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .02em; }
.soc-cmt-to { color: var(--muted); }
.soc-cmt-body { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.soc-cmt-body a { font-weight: 500; }
.soc-cmt-tools { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding-left: 12px; font-size: .76rem; color: var(--muted); }
.soc-cmt-form { margin: 0; display: inline; }
.soc-cmt-act { list-style: none; border: 0; background: none; padding: 2px 0; font: 600 .76rem/1.2 var(--font); color: var(--muted); cursor: pointer; text-decoration: none !important; }
.soc-cmt-act::-webkit-details-marker { display: none; }
.soc-cmt-act:hover { color: var(--primary-600); }
.soc-cmt-report { margin-left: 0; }
.soc-cmt-report[open] > .soc-cmt-act { color: var(--danger-ink); }
.soc-cmt-report .soc-report-form { left: 0; right: auto; }
.soc-cmt-report select { font: inherit; padding: 7px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.soc-cmt.is-new .soc-cmt-bubble { animation: soc-flash 1.6s ease-out; }
@keyframes soc-flash { 0% { box-shadow: 0 0 0 3px rgba(242, 107, 29, .45); } 100% { box-shadow: 0 0 0 3px rgba(242, 107, 29, 0); } }
.soc-cmt:target .soc-cmt-bubble { box-shadow: 0 0 0 2px rgba(242, 107, 29, .5); }

.soc-cmt-new { display: flex; gap: 9px; align-items: flex-start; margin: 2px 0 0; scroll-margin-top: 100px; }
.soc-cmt-field { flex: 1; min-width: 0; display: grid; gap: 6px; }
.soc-cmt-field textarea {
    width: 100%; box-sizing: border-box; min-height: 40px; max-height: 220px; resize: none; font: inherit; font-size: .9rem; line-height: 1.4;
    padding: 9px 14px; border-radius: 20px; border: 1px solid var(--line); background: #faf9fd; color: var(--heading); transition: border-color .15s, background .15s;
}
.soc-cmt-field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-50); }
.soc-cmt-send { display: none; align-items: center; justify-content: flex-end; gap: 10px; }
.soc-cmt-new.is-typing .soc-cmt-send, .soc-cmt-new:focus-within .soc-cmt-send, .soc-cmt-field textarea:not(:placeholder-shown) ~ .soc-cmt-send { display: flex; }
.soc-cmt-replying { margin: 0; display: flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--soc-fox-ink); font-weight: 500; }
.soc-cmt-err { font-size: .8rem; color: var(--danger-ink); }
.soc-cmt-err:empty { display: none; }
.soc-cmt-guest { margin: 2px 0 0; font-size: .86rem; color: var(--muted); }

/* sortowanie: Najnowsze / Popularne w tym tygodniu */
.soc-sort { display: inline-flex; gap: 2px; padding: 3px; margin: -4px 0 14px; border-radius: 12px; background: #f1eef8; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.soc-sort::-webkit-scrollbar { display: none; }
.soc-sort-opt { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; font-size: .82rem; font-weight: 500; color: var(--text); text-decoration: none !important; white-space: nowrap; }
.soc-sort-opt .ic { width: 15px; height: 15px; }
.soc-sort-opt:hover { color: var(--primary-600); }
.soc-sort-opt.is-active { background: #fff; color: var(--heading); font-weight: 600; box-shadow: 0 1px 3px rgba(29, 21, 52, .12); }
.soc-sort-opt:focus-visible { outline: 3px solid var(--soc-fox); outline-offset: 1px; }
.soc-section-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-bottom: 12px; }
.soc-section-row .soc-section-h { margin: 0; }
.soc-section-row .soc-sort { margin: 0; }

/* strona wpisu */
.soc-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-weight: 500; }
.soc-post-page .soc-post-title { font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.25; margin-bottom: 8px; }
.soc-post-page .soc-post-body { font-size: 1rem; line-height: 1.55; }
.soc-post-page .soc-post-main.has-img { grid-template-columns: minmax(0, 1fr); }
.soc-post-page .soc-post-img { order: -1; aspect-ratio: auto; max-height: 460px; }
.soc-post-page .soc-post-img img { object-fit: contain; max-height: 460px; background: #faf9fd; }
.soc-hidden-note { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--warning-50); color: var(--warning-ink); font-size: .9rem; margin: 0 0 14px; }
.soc-hidden-note .ic { width: 18px; height: 18px; flex: none; }
.soc-shop-card .soc-shop-row { padding: 0 0 8px; }
.soc-shop-card-desc { margin: 0 0 10px; color: var(--text); }
.soc-shop-card-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.soc-more { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.soc-more li { display: grid; gap: 1px; }
.soc-more a { font-weight: 500; color: var(--heading); overflow-wrap: anywhere; }
.soc-join .small { margin-top: 2px; }

@media (max-width: 640px) {
    .soc-react-btn { gap: 5px; padding: 6px 4px; font-size: .8rem; }
    .soc-react-btn .ic { width: 18px; height: 18px; }
    .soc-cmt.is-reply { margin-left: 22px; }
    .soc-sort { display: flex; width: 100%; }
    .soc-sort-opt { flex: 1 0 auto; justify-content: center; }
    .soc-section-row .soc-sort { width: 100%; }
}
@media (max-width: 380px) {
    .soc-react-btn > span:not(.soc-react-n) { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
    .soc-like.is-pop .soc-heart, .soc-cmt.is-new .soc-cmt-bubble { animation: none; }
}

/* Sklepy internetowe: plakietka w katalogu i na profilu */
.dir-kind { justify-self: start; margin-top: 4px; }
.dir-actions { flex-wrap: wrap; }
.soc-hero-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.soc-hero-online { margin: 0 0 10px; }
.soc-hero-cta .soc-hero-go { justify-content: center; }
.dir-go { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.dir-go .ic { width: 15px; height: 15px; }
