/* =============================================================================
   FurrFinder – strona dla schronisk
   Styl jak w projekcie aplikacji (Figma): zdjęcia na całą kartę, szklane
   (rozmyte) przyciski, pływające menu w kształcie pigułki, niebieski akcent.
   ============================================================================= */

:root {
  --ink: #0e0e10;
  --text: #2b2b30;
  --muted: #6b6b73;
  --bg: #f5f5f7;
  --blue: #6c4dff;      /* fiolet jak ikona Swipe w aplikacji */
  --pink: #ff3d7f;
  --green: #2fbf8f;     /* zieleń jak przycisk Filtruj w aplikacji */
  --amber: #f5a524;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.75);
  --shadow: 0 20px 50px -20px rgba(20, 20, 40, 0.25);
  --radius: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { width: min(1140px, 92%); margin: 0 auto; }

h1, h2, h3 { color: var(--ink); letter-spacing: -0.03em; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; margin: 1.2rem 0 1.2rem; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 2.2rem; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
p { color: var(--muted); }

/* ---------- Szkło (efekt rozmycia jak w Figmie) ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow);
}

/* ---------- Rozmyte kolorowe plamy w tle ---------- */
.blob { position: fixed; width: 520px; height: 520px; border-radius: 50%; filter: blur(110px); opacity: .35; z-index: -1; }
.blob-pink { background: var(--pink); top: -160px; right: -120px; }
.blob-blue { background: var(--blue); bottom: -200px; left: -160px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 0;
  font: 600 1rem "Inter", sans-serif; color: var(--ink);
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
.btn-small { padding: .6rem 1.2rem; font-size: .92rem; }
.btn-full { width: 100%; padding: 1.1rem; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------- Menu ---------- */
.nav-wrap { position: sticky; top: 16px; z-index: 50; display: flex; justify-content: center; padding: 0 4%; }
.nav {
  width: min(1140px, 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem .6rem .55rem 1.4rem; border-radius: 999px;
}
.logo { font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -0.03em; }
.logo span { color: var(--blue); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Sekcja główna ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
  padding: 5rem 0 4rem;
}
.pill { display: inline-block; padding: .45rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--text); box-shadow: none; }
.lead { font-size: 1.18rem; max-width: 34ch; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-stats { list-style: none; display: flex; gap: 2.4rem; margin-top: 2.8rem; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.6rem; color: var(--ink); letter-spacing: -0.03em; }
.hero-stats span { font-size: .9rem; color: var(--muted); }

/* ---------- Telefon ---------- */
.phone-area { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 320px; height: 650px;
  background: #fff; border-radius: 52px; padding: 14px;
  border: 10px solid var(--ink);
  box-shadow: 0 50px 90px -30px rgba(20, 20, 60, .45);
  overflow: hidden;
}
.phone-top { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 12px; font-size: .85rem; }
.phone-top strong { color: var(--ink); }
.dot-avatar { width: 26px; height: 26px; border-radius: 50%; background: url("https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?auto=format&fit=crop&w=80&q=60") center/cover; }

.card-stack { position: relative; height: 470px; }
.pet-card {
  position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden;
  background: #ddd; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s ease;
}
.pet-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pet-card:nth-last-child(2) { transform: scale(.94) translateY(14px); opacity: .7; }
.pet-card:nth-last-child(n+3) { transform: scale(.88) translateY(28px); opacity: 0; }
.pet-card.out-right { transform: translateX(130%) rotate(16deg); opacity: 0; }
.pet-card.out-left  { transform: translateX(-130%) rotate(-16deg); opacity: 0; }
.pet-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.2rem 7.2rem;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
}
.pet-info h3 { color: #fff; font-size: 1.9rem; margin: 0; }
.pet-info p { color: rgba(255,255,255,.9); font-size: .95rem; }

.swipe-actions {
  position: absolute; left: 0; right: 0; top: 420px;
  display: flex; justify-content: space-between; padding: 0 30px;
}
.round {
  width: 68px; height: 68px; border-radius: 50%;
  font-size: 1.6rem; color: var(--ink); cursor: pointer;
  background: rgba(255,255,255,.55);
  transition: transform .2s ease;
}
.round:hover { transform: scale(1.08); }
.round.yes { color: var(--pink); }

.tabbar {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; justify-content: space-around; padding: 8px; border-radius: 999px; box-shadow: none;
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .68rem; font-weight: 600; padding: 6px 16px; border-radius: 999px; color: var(--text); }
.tab.active { background: rgba(108,77,255,.1); color: var(--blue); }
.ic { width: 20px; height: 20px; }
.ic-home  { fill: var(--blue); }
.ic-heart { fill: var(--pink); }
.ic-gear  { fill: var(--green); }

.float-chip {
  position: absolute; z-index: 5; padding: .7rem 1.1rem; border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--ink);
  animation: float 5s ease-in-out infinite;
}
.chip-like  { top: 70px; left: -10px; }
.chip-snack { top: 300px; right: -40px; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- Sekcje ---------- */
.section { padding: 5.5rem 0; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: .8rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step { border-radius: var(--radius); padding: 2rem; }
.step-no { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; color: var(--blue); opacity: .9; margin-bottom: 1rem; }

/* ---------- Kafelki (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tile { border-radius: var(--radius); padding: 2rem; min-height: 220px; display: flex; flex-direction: column; }
.tile-wide { grid-column: span 2; }
.tile-dark { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.tile-dark h3 { color: #fff; }
.tile-dark p { color: rgba(255,255,255,.65); }

.status-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: auto; padding-top: 1.4rem; }
.status { padding: .45rem .95rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.s-pending  { background: rgba(245,165,36,.15); color: #a86a00; }
.s-progress { background: rgba(108,77,255,.12); color: #4b2fd6; }
.s-done     { background: rgba(31,174,102,.15); color: #137a46; }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 90px; margin-top: auto; padding-top: 1rem; }
.bars span { flex: 1; height: var(--h); border-radius: 8px; background: linear-gradient(var(--blue), var(--pink)); }

.big-number { margin-top: auto; font-size: 3rem; font-weight: 800; color: var(--ink); letter-spacing: -0.04em; }

.split { display: flex; margin-top: auto; height: 46px; border-radius: 999px; overflow: hidden; font-weight: 700; font-size: .9rem; }
.split-shelter { flex: 95; display: flex; align-items: center; padding-left: 1.2rem; background: var(--ink); color: #fff; }
.split-app { flex: 8; display: grid; place-items: center; background: var(--pink); color: #fff; }

/* ---------- Formularz ---------- */
.form-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; padding: 3rem; border-radius: 36px; }
.form-intro h2 { margin-bottom: 1rem; }
form { display: grid; gap: 1.1rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label { display: grid; gap: .4rem; font-weight: 600; font-size: .92rem; color: var(--ink); }
input {
  font: 400 1rem "Inter", sans-serif; color: var(--ink);
  padding: .9rem 1.1rem; border-radius: 16px;
  border: 1.5px solid #d4d4da; background: rgba(255,255,255,.85);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input::placeholder { color: #a3a3ab; }
input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(108,77,255,.15); background: #fff; }
small { color: var(--muted); font-weight: 400; font-size: .82rem; }
.form-message { min-height: 1.5em; font-weight: 600; text-align: center; }
.form-message.ok { color: var(--green); }
.form-message.error { color: #d32f2f; }

/* ---------- Stopka ---------- */
.footer { padding: 3rem 0 4rem; text-align: center; display: grid; gap: .4rem; }
.footer .team { font-size: .85rem; }

/* ---------- Animacja pojawiania się sekcji ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

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

/* ---------- Telefony i wąskie ekrany ---------- */
@media (max-width: 900px) {
  .hero, .form-card { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
  .steps, .bento, .row { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .nav-links { display: none; }
  .form-card { padding: 1.8rem; }
  .chip-like { left: 0; }
  .chip-snack { right: 0; }
}

/* =============================================================================
   PODSTRONY: galeria zwierząt, profil zwierzaka, baza schronisk
   ============================================================================= */

.nav-links a.active { color: var(--blue); font-weight: 600; }

.page { padding: 3.5rem 0 2rem; }
.page-head { max-width: 720px; margin-bottom: 2rem; }
.page-title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin: .3rem 0 1rem; }

/* ---------- Pasek wyszukiwarki i filtrów ---------- */
.filters { border-radius: 28px; padding: 1.2rem; display: grid; gap: 1rem; margin-bottom: 1.4rem; }
.search { position: relative; }
.search svg { position: absolute; left: 1.1rem; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: var(--muted); }
.search input { width: 100%; padding-left: 3rem; border-radius: 999px; }
.filter-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

select {
  font: 500 .95rem "Inter", sans-serif; color: var(--ink);
  padding: .7rem 2.2rem .7rem 1rem; border-radius: 999px;
  border: 1.5px solid #d4d4da; background: rgba(255,255,255,.85);
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236b6b73' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 18px;
}
select:focus { outline: none; border-color: var(--blue); }

.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(14,14,16,.06); }
.segmented button {
  border: 0; background: transparent; cursor: pointer;
  font: 600 .9rem "Inter", sans-serif; color: var(--muted);
  padding: .55rem 1rem; border-radius: 999px; transition: background .2s, color .2s;
}
.segmented button.on { background: #fff; color: var(--ink); box-shadow: 0 4px 12px -4px rgba(0,0,0,.2); }

.check { display: inline-flex; flex-direction: row; align-items: center; gap: .5rem; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); padding: 0; }

.shelter-chip {
  display: inline-flex; align-items: center; gap: .6rem; justify-self: start;
  padding: .45rem .5rem .45rem 1rem; border-radius: 999px;
  background: rgba(108,77,255,.1); color: var(--ink); font-size: .92rem;
}
.shelter-chip button { border: 0; background: #fff; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; }

.result-count { font-weight: 600; color: var(--text); margin: 0 0 1.2rem .4rem; }

/* ---------- Siatka kart zwierząt ---------- */
.pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.pet-tile {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 30px -18px rgba(20,20,40,.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pet-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pet-photo { position: relative; aspect-ratio: 4 / 4.2; overflow: hidden; background: #e8e8ec; }
.pet-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pet-tile:hover .pet-photo img { transform: scale(1.05); }
.pet-photo .status { position: absolute; top: .8rem; left: .8rem; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); background: rgba(255,255,255,.85); }
.likes {
  position: absolute; top: .8rem; right: .8rem; padding: .35rem .75rem; border-radius: 999px;
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--pink); font-weight: 700; font-size: .85rem;
}
.pet-body { padding: 1.1rem 1.2rem 1.3rem; }
.pet-body h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.pet-meta, .pet-place { font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.chip { padding: .3rem .7rem; border-radius: 999px; background: rgba(14,14,16,.06); font-size: .8rem; font-weight: 600; color: var(--text); }

.empty { border-radius: var(--radius); padding: 2.5rem; text-align: center; }

/* ---------- Profil zwierzaka ---------- */
.back-link { display: inline-block; margin-bottom: 1.5rem; color: var(--text); font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--blue); }
.profile { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.profile-photo { position: sticky; top: 100px; border-radius: 36px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; background: #e8e8ec; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-info h3 { margin-top: 1.6rem; }
.profile-info .page-title { margin-top: .8rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; margin-top: 1.4rem; }
.fact { border-radius: 20px; padding: 1rem 1.1rem; box-shadow: none; }
.fact span { display: block; font-size: .8rem; color: var(--muted); }
.fact strong { font-size: 1.1rem; color: var(--ink); }
.shelter-card { border-radius: var(--radius); padding: 1.6rem; margin-top: 2rem; }
.shelter-card a { color: var(--blue); }
.card-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.card-actions a.btn-dark { color: #fff; }
.cta-box { margin-top: 1.4rem; padding: 1.6rem; border-radius: var(--radius); background: var(--ink); }
.cta-box h3 { color: #fff; margin-top: 0; }
.cta-box p { color: rgba(255,255,255,.7); }

/* ---------- Baza schronisk ---------- */
.shelters-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.4rem; align-items: start; }
.shelter-list { display: grid; gap: 1rem; }
.shelter-item { border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: none; }
.shelter-item a { color: var(--blue); }
.shelter-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.shelter-top h3 { margin: 0; }
.count-badge { white-space: nowrap; padding: .35rem .8rem; border-radius: 999px; background: rgba(108,77,255,.1); color: var(--blue); font-weight: 700; font-size: .85rem; }
.map-wrap { position: sticky; top: 100px; border-radius: var(--radius); padding: 8px; }
.map { height: 560px; border-radius: 22px; overflow: hidden; background: #e8e8ec; }
.map-error { padding: 2rem; text-align: center; }

/* Pinezka na mapie: fioletowe kółko z liczbą zwierząt */
.pin span {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: #fff; font: 700 .85rem "Inter", sans-serif;
  box-shadow: 0 8px 18px -6px rgba(108,77,255,.7); border: 2px solid #fff;
}
.pin b { transform: rotate(45deg); line-height: 1; }
.leaflet-popup-content-wrapper { border-radius: 16px; font-family: "Inter", sans-serif; }
.leaflet-popup-content a { color: var(--blue); font-weight: 600; }

@media (max-width: 900px) {
  .profile, .shelters-layout { grid-template-columns: 1fr; }
  .profile-photo, .map-wrap { position: static; }
  .map { height: 380px; }
  .map-wrap { order: -1; }
}
.shelter-chip[hidden] { display: none; }

/* =============================================================================
   LOGOWANIE, MOJE KONTO, PANEL SCHRONISKA
   ============================================================================= */

.nav-actions { display: flex; gap: .5rem; align-items: center; }
.btn-light { background: #fff; color: var(--ink); }

/* ---------- Logowanie ---------- */
.auth-page { display: grid; place-items: center; min-height: 70vh; }
.auth-card { width: min(460px, 100%); border-radius: 36px; padding: 2.4rem; display: grid; gap: 1.2rem; }
.auth-logo { font-size: 1.8rem; text-align: center; }
.auth-sub { text-align: center; margin-top: -.6rem; }
.auth-form { display: grid; gap: 1rem; }
.auth-form[hidden] { display: none; }
.segmented.full { display: flex; }
.segmented.full button { flex: 1; }
.segmented.small button { font-size: .85rem; padding: .5rem .6rem; }
.hint { font-size: .88rem; text-align: center; }
.hint a { color: var(--blue); }

/* ---------- Nagłówek konta ---------- */
.account-head { display: flex; gap: 1.4rem; align-items: center; border-radius: 32px; padding: 1.8rem 2rem; margin-bottom: 1.6rem; }
.avatar {
  flex: none; width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--pink));
}
.avatar.shelter { font-size: 2rem; }
.page-title.small { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: .1rem 0 .3rem; }

.tabs { margin-bottom: 1.4rem; flex-wrap: wrap; }
[data-panel][hidden] { display: none; }

.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem; margin-bottom: 1.6rem; }

.section-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1rem 0; }
.section-bar h2 { margin: 0; font-size: 1.8rem; }

/* ---------- Tabele ---------- */
.table-wrap { border-radius: var(--radius); padding: .6rem; overflow-x: auto; box-shadow: none; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .8rem 1rem; }
.data-table td { padding: .8rem 1rem; border-top: 1px solid rgba(14,14,16,.07); vertical-align: middle; }
.data-table a { color: var(--ink); text-decoration: none; }
.data-table a:hover { color: var(--blue); }
.data-table select { padding: .45rem 2rem .45rem .8rem; font-size: .88rem; }

/* ---------- Formularze w koncie ---------- */
.settings-form { border-radius: var(--radius); padding: 1.8rem; display: grid; gap: 1rem; margin-bottom: 1.6rem; }
.settings-form[hidden] { display: none; }
.settings-form .btn { justify-self: start; }
textarea {
  font: 400 1rem "Inter", sans-serif; color: var(--ink); resize: vertical;
  padding: .9rem 1.1rem; border-radius: 16px; border: 1.5px solid #d4d4da; background: rgba(255,255,255,.85);
}
textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(108,77,255,.15); }
input[type="file"] { padding: .6rem; background: #fff; }
label select { width: 100%; }

/* ---------- Okno Smaczka ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; background: rgba(14,14,16,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(420px, 100%); border-radius: 32px; padding: 2rem; display: grid; gap: 1rem; background: rgba(255,255,255,.92); }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(14,14,16,.06); cursor: pointer; }
.demo-banner { padding: .7rem 1rem; border-radius: 14px; background: rgba(245,165,36,.15); color: #8a5800; font-size: .88rem; font-weight: 600; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.amounts button {
  padding: 1rem 0; border-radius: 18px; border: 1.5px solid #d4d4da; background: #fff;
  font: 700 1.15rem "Inter", sans-serif; color: var(--ink); cursor: pointer;
}
.amounts button.on { border-color: var(--blue); background: rgba(108,77,255,.08); color: var(--blue); }
.split-info { font-size: .88rem; text-align: center; }

/* ---------- Komunikat w rogu ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  padding: .9rem 1.4rem; border-radius: 999px; font-weight: 600;
  background: var(--ink); color: #fff; box-shadow: var(--shadow);
  transition: opacity .3s ease, transform .3s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #d32f2f; }

.shelter-card.highlight { box-shadow: 0 0 0 3px var(--blue), var(--shadow); }

@media (max-width: 900px) {
  .account-head { flex-direction: column; text-align: center; }
  .nav-actions .btn-small { padding: .5rem .9rem; }
}
a.pet-photo { display: block; }

/* =============================================================================
   ROZBUDOWA: tryb ciemny, statystyki, FAQ, przełączniki, edycja
   ============================================================================= */

/* ---------- Przycisk trybu ciemnego w menu ---------- */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(14,14,16,.06); font-size: 1.05rem;
  transition: transform .2s ease;
}
.theme-toggle:hover { transform: rotate(-15deg); }

/* ---------- Liczby na żywo ---------- */
.live-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 32px; padding: 2rem; text-align: center; }
.live-stats div { display: grid; gap: .2rem; }
.live-stats div + div { border-left: 1px solid rgba(14,14,16,.08); }
.live-stats strong { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.04em; background: linear-gradient(90deg, var(--blue), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live-stats span { color: var(--muted); font-size: .95rem; }
.live-note { margin-top: .8rem; text-align: center; font-size: .85rem; color: var(--green); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; max-width: 860px; }
.faq details { border-radius: 22px; padding: 1.2rem 1.5rem; box-shadow: none; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .8rem; }
.faq a { color: var(--blue); }

/* ---------- Galeria: odległość na karcie ---------- */
.distance {
  position: absolute; bottom: .8rem; left: .8rem; padding: .35rem .75rem; border-radius: 999px;
  background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink); font-weight: 700; font-size: .82rem;
}
select:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Profil: góra i podobne ---------- */
.profile-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.similar { margin-top: 4rem; }
.similar h2 { font-size: 2rem; margin-bottom: 1.4rem; }

/* ---------- Przełącznik (switch) jak w aplikacji ---------- */
.switch { display: inline-flex; flex-direction: row; align-items: center; gap: .8rem; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.slider { position: relative; width: 50px; height: 28px; border-radius: 999px; background: #cfcfd6; transition: background .2s ease; flex: none; }
.slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .2s ease; }
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider::after { transform: translateX(22px); }
.switch input:focus-visible + .slider { outline: 3px solid rgba(108,77,255,.4); outline-offset: 2px; }

/* ---------- Strefa niebezpieczna ---------- */
.settings-form.danger { border: 1.5px solid rgba(211,47,47,.25); }
.settings-form.danger h3 { color: #d32f2f; }
.btn-danger { background: #d32f2f; color: #fff; justify-self: start; }
.row-actions { white-space: nowrap; }
.row-actions .btn + .btn { margin-left: .3rem; }

@media (max-width: 900px) {
  .live-stats { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .live-stats div + div { border-left: 0; }
}

/* =============================================================================
   TRYB CIEMNY
   Zmieniamy zmienne kolorów, a elementy z białym tłem nadpisujemy osobno.
   ============================================================================= */
[data-theme="dark"] {
  --ink: #f4f4f6;
  --text: #d6d6dc;
  --muted: #9a9aa6;
  --bg: #0d0d12;
  --glass: rgba(28, 28, 36, 0.62);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
[data-theme="dark"] .blob { opacity: .22; }
[data-theme="dark"] .btn-dark { background: #f4f4f6; color: #0d0d12; }
[data-theme="dark"] .card-actions a.btn-dark { color: #0d0d12; }
[data-theme="dark"] .btn-light,
[data-theme="dark"] .pet-tile,
[data-theme="dark"] .amounts button,
[data-theme="dark"] .modal-box { background: #1a1a22; color: var(--ink); }
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea { background-color: #15151c; border-color: #33333f; color: var(--ink); }
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus { background: #1a1a22; }
[data-theme="dark"] .segmented { background: rgba(255,255,255,.06); }
[data-theme="dark"] .segmented button.on { background: #2a2a35; color: var(--ink); }
[data-theme="dark"] .chip,
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .modal-close { background: rgba(255,255,255,.08); color: var(--ink); }
[data-theme="dark"] .pet-photo .status,
[data-theme="dark"] .likes,
[data-theme="dark"] .distance { background: rgba(20,20,26,.8); }
[data-theme="dark"] .phone { background: #121218; border-color: #2a2a35; }
[data-theme="dark"] .round { background: rgba(30,30,40,.6); }
[data-theme="dark"] .tile-dark { background: #1a1a22; }
[data-theme="dark"] .split-shelter { background: #2a2a35; }
[data-theme="dark"] .data-table td { border-top-color: rgba(255,255,255,.07); }
[data-theme="dark"] .live-stats div + div { border-left-color: rgba(255,255,255,.08); }
[data-theme="dark"] .cta-box { background: #1a1a22; }
[data-theme="dark"] .nav-wrap .btn-dark { color: #0d0d12; }
[data-theme="dark"] .slider { background: #3a3a46; }
[data-theme="dark"] .leaflet-popup-content-wrapper,
[data-theme="dark"] .leaflet-popup-tip { background: #1a1a22; color: var(--ink); }
[data-theme="dark"] .toast:not(.error) { background: #f4f4f6; color: #0d0d12; }

/* =============================================================================
   SWIPE (jak w Tinderze)
   ============================================================================= */
.swipe-page { max-width: 560px; padding-top: 2rem; }
.swipe-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.sw-counter { font-size: .9rem; font-weight: 600; color: var(--muted); }

.deck { position: relative; height: min(56vh, 560px); min-height: 420px; }
.swipe-card {
  position: absolute; inset: 0; border-radius: 32px; overflow: hidden;
  background: #ddd; box-shadow: 0 30px 60px -25px rgba(20,20,50,.45);
  touch-action: none; user-select: none; cursor: grab;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
  --like: 0; --nope: 0; --super: 0;
}
.swipe-card.dragging { transition: none; cursor: grabbing; }
.swipe-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* karty pod spodem: mniejsze i przesunięte (efekt stosu) */
.swipe-card:nth-last-child(2) { transform: scale(.95) translateY(16px); }
.swipe-card:nth-last-child(3) { transform: scale(.9) translateY(32px); opacity: .6; }
.swipe-card.fly-right { transform: translateX(150%) rotate(25deg) !important; opacity: 0; }
.swipe-card.fly-left  { transform: translateX(-150%) rotate(-25deg) !important; opacity: 0; }
.swipe-card.fly-up    { transform: translateY(-150%) scale(.9) !important; opacity: 0; }

.swipe-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 5rem 1.5rem 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff;
}
.swipe-info h2 { color: #fff; font-size: 2.2rem; margin: 0 0 .3rem; }
.swipe-info p { color: rgba(255,255,255,.88); margin: 0; }
.chip.light { background: rgba(255,255,255,.2); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.info-btn {
  position: absolute; right: 1.3rem; bottom: 1.5rem; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font-weight: 800; font-style: italic; text-decoration: none;
}

/* Pieczątki pojawiające się przy przeciąganiu */
.stamp {
  position: absolute; top: 2.2rem; padding: .3rem .9rem; border: 4px solid; border-radius: 12px;
  font-size: 2rem; font-weight: 800; letter-spacing: .06em; pointer-events: none;
}
.stamp-like  { left: 1.6rem; color: var(--green); transform: rotate(-14deg); opacity: var(--like); }
.stamp-nope  { right: 1.6rem; color: #ff4d5e; transform: rotate(14deg); opacity: var(--nope); }
.stamp-super { left: 50%; top: auto; bottom: 11rem; color: var(--blue); transform: translateX(-50%) rotate(-6deg); opacity: var(--super); }

/* Okrągłe przyciski pod kartą */
.deck-actions { display: flex; justify-content: center; align-items: center; gap: 1.1rem; margin-top: 1.8rem; }
.deck-actions.disabled { opacity: .3; pointer-events: none; }
.act {
  display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; box-shadow: 0 12px 28px -12px rgba(20,20,50,.4);
  transition: transform .15s ease;
}
.act:hover { transform: scale(1.1); }
.act:active { transform: scale(.95); }
.act-undo  { width: 50px; height: 50px; font-size: 1.3rem; color: var(--amber); }
.act-no    { width: 66px; height: 66px; font-size: 1.7rem; color: #ff4d5e; }
.act-super { width: 54px; height: 54px; font-size: 1.4rem; color: var(--blue); }
.act-yes   { width: 66px; height: 66px; font-size: 1.8rem; color: var(--green); }
.deck-hint { text-align: center; font-size: .85rem; margin-top: 1rem; }

.deck-empty { position: absolute; inset: 0; border-radius: 32px; display: grid; place-content: center; text-align: center; gap: .8rem; padding: 2rem; }
.card-actions.center { justify-content: center; }

/* Okno po Super Like */
.match-box { text-align: center; }
.match-photo {
  width: 120px; height: 120px; margin: 0 auto; border-radius: 50%;
  background: #ddd center / cover; box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--blue);
}
.match-box a { color: var(--blue); }

[data-theme="dark"] .act { background: #1a1a22; }
[data-theme="dark"] .match-photo { box-shadow: 0 0 0 5px #1a1a22, 0 0 0 8px var(--blue); }

/* Swipe: opis i pasek logowania */
.swipe-intro { margin-bottom: 1.2rem; }
.swipe-intro .page-title.small { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.sw-banner { border-radius: 18px; padding: .8rem 1.1rem; margin-bottom: 1.2rem; font-size: .92rem; box-shadow: none; }
.sw-banner a { color: var(--blue); font-weight: 700; }
.sw-banner.ok { border-color: rgba(47,191,143,.35); }
.sw-banner.warn { border-color: rgba(245,165,36,.45); background: rgba(245,165,36,.12); }

/* Zdrowie i charakter (profil) */
.health { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.hb { padding: .45rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.hb.yes { background: rgba(47,191,143,.14); color: #17815d; }
.hb.no  { background: rgba(14,14,16,.06); color: var(--muted); }
[data-theme="dark"] .hb.yes { color: #5fe0b0; }
[data-theme="dark"] .hb.no { background: rgba(255,255,255,.07); }
.checks { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }

/* =============================================================================
   CZCIONKI: nagłówki Plus Jakarta Sans, tekst Inter
   ============================================================================= */
h1, h2, h3, .logo, .page-title, .step-no, .big-number, .live-stats strong,
.hero-stats strong, .pet-info h3, .swipe-info h2, .fact strong {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}
h1, .page-title { letter-spacing: -0.035em; }
h2 { letter-spacing: -0.03em; }
h3 { letter-spacing: -0.015em; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
p, li { line-height: 1.65; }

.footer-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--blue); }

/* Wyraźniejsze przyciski swipe i przełączniki na jasnym tle */
.act { border: 1px solid rgba(14,14,16,.08); }
.segmented { background: rgba(14,14,16,.07); }

/* =============================================================================
   WNIOSKI ADOPCYJNE
   ============================================================================= */
.s-rejected { background: rgba(211,47,47,.12); color: #b3261e; }
.s-muted    { background: rgba(14,14,16,.06); color: var(--muted); }
.tab-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--pink); color: #fff; font-size: .72rem; }

.modal-box.wide { width: min(720px, 100%); max-height: 92vh; overflow-y: auto; text-align: left; }
.hint-left { font-size: .9rem; }
.checks.column { flex-direction: column; gap: .7rem; }
.checks.column .check { align-items: flex-start; }
.checks.column .check input { margin-top: .2rem; flex: none; }

.request-list { display: grid; gap: 1rem; }
.request { display: grid; grid-template-columns: 110px 1fr; gap: 1.2rem; border-radius: var(--radius); padding: 1.1rem; box-shadow: none; }
.request img { width: 110px; height: 110px; object-fit: cover; border-radius: 18px; background: #e8e8ec; }
.request-top { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.request-top h3 { margin: 0; }
.request-top a { color: var(--ink); text-decoration: none; }
.request-body p { margin: .2rem 0; font-size: .92rem; }
.request-body a { color: var(--blue); }
.request .muted { color: var(--muted); font-size: .85rem; }
.request .note { background: rgba(108,77,255,.08); padding: .6rem .8rem; border-radius: 12px; color: var(--text); }
.request details { margin: .6rem 0; }
.request summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.answers { margin: .6rem 0 0 1.1rem; display: grid; gap: .25rem; font-size: .9rem; }
.request-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; align-items: center; }
.request-actions input { flex: 1; min-width: 200px; padding: .55rem .9rem; border-radius: 999px; font-size: .9rem; }
.request-actions select { padding: .5rem 2rem .5rem .9rem; font-size: .9rem; }
.request .btn { margin-top: .5rem; }

/* =============================================================================
   PORADNIK "JAK ADOPTOWAĆ"
   ============================================================================= */
.guide { max-width: 900px; }
.section-tight { margin-top: 3.2rem; }
.section-tight h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.2rem; }
.legal-note { margin-top: 1rem; font-size: .88rem; padding: .8rem 1rem; border-radius: 14px; background: rgba(245,165,36,.12); color: var(--text); }
.guide a:not(.btn) { color: var(--blue); }

.timeline { list-style: none; display: grid; gap: 1rem; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: none; }
.timeline .step-no { font-size: 2rem; margin: 0; }
.timeline h3 { margin-top: .2rem; }

.bento.two { grid-template-columns: 1fr 1fr; }
.bento.two .tile { min-height: 0; }

.law-list { display: grid; gap: 1rem; }
.law { border-radius: var(--radius); padding: 1.5rem 1.6rem; box-shadow: none; }
.law-tag { display: inline-block; margin-bottom: .6rem; padding: .3rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.law-tag.now  { background: rgba(47,191,143,.15); color: #17815d; }
.law-tag.soon { background: rgba(245,165,36,.16); color: #8a5800; }

.checklist { list-style: none; display: grid; gap: .45rem; margin-top: .6rem; }
.checklist li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: .5rem; }

.sources ul { display: grid; gap: .4rem; margin-left: 1.1rem; }

[data-theme="dark"] .law-tag.now { color: #5fe0b0; }
[data-theme="dark"] .law-tag.soon { color: #f5c46b; }
[data-theme="dark"] .s-rejected { color: #ff8a80; }

@media (max-width: 900px) {
  .bento.two { grid-template-columns: 1fr; }
  .request { grid-template-columns: 1fr; }
  .request img { width: 100%; height: 180px; }
  .timeline li { grid-template-columns: 1fr; }
}

/* Atrybut hidden zawsze ukrywa element (nawet gdy klasa ustawia display) */
[hidden] { display: none !important; }

/* Ankieta: sekcje, podpowiedzi, wyraźne pola w oknie */
.modal-box fieldset { border: 0; display: grid; gap: .9rem; padding: 1rem 0 .4rem; border-top: 1px solid rgba(14,14,16,.08); }
.modal-box legend { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-weight: 700; font-size: 1rem; color: var(--ink); padding: 0 0 .2rem; }
.modal-box input, .modal-box select, .modal-box textarea { background-color: #f6f6f9; border-color: #cfcfd8; }
.modal-box input:focus, .modal-box select:focus, .modal-box textarea:focus { background-color: #fff; }
.field-hint { display: block; font-weight: 400; font-size: .84rem; color: var(--muted); }
.char-count { font-size: .82rem; text-align: right; margin-top: -.5rem; }
.char-count.ok { color: var(--green); font-weight: 600; }
.check.align-end { align-self: end; padding-bottom: .8rem; }
[data-theme="dark"] .modal-box input, [data-theme="dark"] .modal-box select, [data-theme="dark"] .modal-box textarea { background-color: #15151c; border-color: #33333f; }
[data-theme="dark"] .modal-box fieldset { border-top-color: rgba(255,255,255,.08); }
.law-ref { margin-top: .6rem; font-size: .82rem; color: var(--muted); border-left: 3px solid rgba(108,77,255,.35); padding-left: .7rem; }
.section-note { margin: -.6rem 0 1.2rem; font-size: .92rem; }
.sources h3 { margin: 1rem 0 .4rem; font-size: 1rem; }

/* Pasek "projekt studencki" */
.demo-bar {
  display: flex; justify-content: center; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .5rem 2.8rem .5rem 1rem; position: relative; text-align: center;
  background: var(--ink); color: #fff; font-size: .84rem;
}
.demo-bar a { color: #c9b8ff; font-weight: 600; }
.demo-bar button { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 1rem; }
[data-theme="dark"] .demo-bar { background: #1a1a22; color: var(--ink); }

/* Polityka prywatności */
.legal .data-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.legal p { margin-bottom: .7rem; }
.legal .checklist li { line-height: 1.6; }
@media (max-width: 1000px) { .legal .data-table td:first-child { white-space: normal; } }

/* =============================================================================
   ZDJĘCIA PROFILOWE I PROFIL SCHRONISKA (plik SQL 12)
   ============================================================================= */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.mini { width: 40px; height: 40px; font-size: 1rem; }
.avatar.big { width: 120px; height: 120px; font-size: 2.8rem; border: 5px solid var(--bg, #f4f4f7); }
.avatar-edit { position: relative; flex: none; }
.avatar-btn {
  position: absolute; right: -4px; bottom: -4px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; font-size: .95rem;
  background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.avatar-btn:focus-within { outline: 2px solid var(--blue); }
.photo-row { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin: .4rem 0 1rem; }
.cover-preview {
  height: 140px; border-radius: 20px; margin-bottom: 1rem; display: flex; align-items: flex-end; padding: .8rem;
  background: linear-gradient(135deg, var(--blue), var(--pink)) center / cover;
}
.nav-auth.has-avatar { display: inline-flex; align-items: center; gap: .45rem; padding-left: .35rem; }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.shelter-name { display: flex; align-items: center; gap: .7rem; }
.shelter-name h3 a, .shelter-card h3 a { color: inherit; text-decoration: none; }
.shelter-name h3 a:hover, .shelter-card h3 a:hover { color: var(--blue); }

.shelter-hero { margin-bottom: 1.6rem; }
.shelter-cover {
  height: clamp(160px, 26vw, 300px); border-radius: 32px;
  background: linear-gradient(135deg, var(--blue), var(--pink)) center / cover;
}
.shelter-id { display: flex; align-items: flex-end; gap: 1.2rem; flex-wrap: wrap; margin: -44px 0 0 2rem; }
.shelter-id > div:nth-child(2) { flex: 1; min-width: 220px; }
.shelter-id .page-title { margin-bottom: .2rem; }
.verified { color: #12a46b; font-weight: 600; }
.shelter-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.2rem; align-items: start; margin-bottom: 1.6rem; }
.shelter-layout .settings-form { margin-bottom: 1.2rem; }
.contact-card h4 { margin: 1rem 0 .4rem; }
.contact-card p { margin: .25rem 0; }
.mini-map { height: 200px; border-radius: 18px; margin: 1rem 0 .8rem; z-index: 0; }
[data-theme="dark"] .avatar-btn { background: #2a2a33; }
@media (max-width: 860px) {
  .shelter-layout { grid-template-columns: 1fr; }
  .shelter-id { margin-left: 0; justify-content: center; text-align: center; }
  .shelter-id > div:nth-child(2) { flex-basis: 100%; }
}
@media (max-width: 600px) { .section-bar { flex-wrap: wrap; } #pet-filter { max-width: 100%; overflow-x: auto; } }
/* Zdjęcie zwierzaka + podpis autora pod nim */
.photo-col { position: sticky; top: 100px; min-width: 0; }
.photo-col .profile-photo { position: static; }
.photo-credit { margin: .6rem .4rem 0; font-size: .75rem; line-height: 1.4; color: var(--muted, #777); overflow-wrap: anywhere; }
@media (max-width: 900px) { .photo-col { position: static; } }

/* Przycisk "Dołącz" z wyborem rodzaju konta */
.join { position: relative; }
.join-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 260px;
  border-radius: 18px; padding: .4rem; display: grid; gap: .2rem;
  background: var(--bg); box-shadow: 0 18px 40px rgba(0,0,0,.16);
}
.join-menu[hidden] { display: none; }
.join-menu a { display: grid; gap: .1rem; padding: .7rem .8rem; border-radius: 12px; text-decoration: none; color: var(--text); }
.join-menu a:hover, .join-menu a:focus { background: rgba(123, 92, 255, .1); }
.join-menu span { font-size: .82rem; color: var(--muted, #777); }

/* Dołącz: przełącznik rodzaju konta */
#join-switch { margin: .4rem 0 1rem; flex-wrap: wrap; }
.join-user { display: grid; gap: 1rem; align-content: start; }
.join-user[hidden], #shelter-form[hidden] { display: none; }

/* Elementy siatki nie mogą być szersze niż karta (inaczej formularz "wychodzi" poza tło) */
.auth-card { grid-template-columns: minmax(0, 1fr); }
.auth-card > *, .form-card > *, .settings-form > *, .shelter-layout > * { min-width: 0; }
.row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row > *, label { min-width: 0; }
input, select, textarea { min-width: 0; max-width: 100%; }
@media (max-width: 900px) { .row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Poprawki wyglądu (przegląd całej strony) ---------- */
/* Link na ciemnym tle (np. "Jak wygląda adopcja?") musi być czytelny */
.cta-box a:not(.btn) { color: #c9b8ff; }
/* Godziny otwarcia jednym blokiem */
.contact-card .hours { line-height: 1.7; }
/* Pasek "Projekt studencki": krótka wersja na telefonie */
.demo-short { display: none; }
@media (max-width: 700px) {
  .demo-long { display: none; }
  .demo-short { display: inline; }
  .demo-bar { font-size: .8rem; padding: .45rem 2.6rem .45rem .8rem; }
}
/* Menu: przyciski nie łamią się na dwie linie */
.nav-actions .btn { white-space: nowrap; }
@media (max-width: 600px) {
  .nav-logout { display: none; }            /* "Wyloguj" jest też w Moje konto */
  .nav-actions { gap: .35rem; }
}
/* Zakładki konta w jednej linii, przewijane w bok na telefonie */
.tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { white-space: nowrap; flex: none; }
/* Filtry w galerii na telefonie: schowane pod przyciskiem, po otwarciu jedna kolumna */
.filters-toggle { display: none; }
@media (max-width: 900px) {
  .filters-toggle { display: inline-flex; justify-content: center; width: 100%; }
  .filters:not(.open) .filter-row { display: none; }
  .filter-row { display: grid; grid-template-columns: minmax(0, 1fr); }
  .filter-row select, .filter-row .btn { width: 100%; }
  .filter-row .segmented { display: flex; }
  .filter-row .segmented button { flex: 1; }
}
/* Trzy liczby w profilu schroniska zawsze w jednym rzędzie */
.summary-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.summary-3 .fact { min-width: 0; }
@media (max-width: 600px) { .summary-3 .fact { padding: .8rem; } .summary-3 .fact span { font-size: .72rem; overflow-wrap: anywhere; } }

/* Numery stron w galerii */
.pager { display: flex; justify-content: center; align-items: center; gap: .4rem; flex-wrap: wrap; margin: 2rem 0 1rem; }
.pager[hidden] { display: none; }
.pager button {
  min-width: 42px; height: 42px; padding: 0 .9rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line, rgba(0,0,0,.1)); background: var(--card, #fff); color: var(--ink); font: inherit; font-weight: 600;
}
.pager button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager button:disabled { opacity: .4; cursor: default; }
.pager button:not(:disabled):not(.on):hover { border-color: var(--blue); color: var(--blue); }
.pager-gap { padding: 0 .2rem; color: var(--muted, #888); }
@media (max-width: 600px) { .pager button[aria-label] { padding: 0 .7rem; } }

/* Ekran "Sprawdź skrzynkę" i powitanie nowej osoby */
.check-email { text-align: center; display: grid; gap: .9rem; }
.check-email[hidden] { display: none; }
.check-email h2 { margin: 0; font-size: 1.6rem; }
.check-email .checklist { text-align: left; margin: 0; }
.check-icon { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 2rem;
  background: linear-gradient(135deg, var(--blue), var(--pink)); }
.welcome { position: relative; border-radius: 32px; padding: 1.8rem 2rem; margin-bottom: 1.6rem; }
.welcome h2 { margin: .2rem 0 .4rem; }
.welcome-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.welcome-step { display: grid; gap: .25rem; padding: 1rem 1.1rem; border-radius: 18px; text-decoration: none; color: var(--text);
  background: rgba(123, 92, 255, .08); }
.welcome-step:hover { background: rgba(123, 92, 255, .16); }
.welcome-step strong { color: var(--ink); }
.welcome-step span { font-size: .88rem; }
@media (max-width: 700px) { .welcome-steps { grid-template-columns: minmax(0, 1fr); } .welcome { padding: 1.4rem; } }
@media (max-width: 600px) { .pg-label { display: none; } .pager { flex-wrap: nowrap; } }

/* =============================================================================
   APLIKACJA MOBILNA (aplikacja.html) I POMOC (pomoc.html)
   ============================================================================= */
.app-hero { padding-top: 1rem; }
.store-buttons { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0 1rem; }
.store-btn { display: inline-flex; align-items: center; gap: .7rem; padding: .7rem 1.3rem; border-radius: 16px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700; font-size: 1.05rem; min-width: 190px; }
.pill { text-decoration: none; color: inherit; }
.store-btn small { display: block; font-size: .72rem; font-weight: 500; opacity: .75; }
.store-ic { font-size: 1.5rem; width: 1.6rem; text-align: center; }
.store-btn.soon { background: transparent; color: var(--ink); border: 2px solid var(--ink); cursor: default; pointer-events: none; }
.app-status, .app-apk { color: var(--muted); max-width: 520px; }
.app-visual { display: flex; justify-content: center; }
.app-screen { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 14px; padding: 10px; }
.app-card { border-radius: 26px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; color: #fff;
  background: linear-gradient(160deg, var(--blue), var(--pink)); min-height: 320px; }
.app-card span { font-size: 4rem; margin: auto; }
.app-card small { opacity: .85; }
.app-row { display: flex; justify-content: center; gap: 14px; padding-bottom: 10px; }
.app-row .round { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--card, #fff);
  box-shadow: 0 6px 18px rgba(0,0,0,.12); font-weight: 700; color: #e5484d; }
.app-row .star { color: var(--blue); }
.app-row .yes { color: #12a46b; }
.app-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.app-features article { border-radius: 24px; padding: 1.4rem; }
.app-features h3 { margin: .6rem 0 .3rem; font-size: 1.05rem; }
.app-features p { margin: 0; font-size: .92rem; }
.feat-ic { font-size: 1.8rem; }
@media (max-width: 900px) { .app-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .app-features { grid-template-columns: minmax(0, 1fr); } .store-btn { flex: 1; } }

.help-hero { text-align: center; padding: 1rem 0 1.6rem; }
.help-search { max-width: 560px; margin: 1.2rem auto 0; }
.help-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.help-card { border-radius: 24px; padding: 1.6rem 1rem; display: grid; justify-items: center; gap: .7rem; text-align: center;
  text-decoration: none; color: var(--ink); font-weight: 700; transition: transform .15s ease; }
.help-card span { font-size: 2.6rem; }
.help-card:hover { transform: translateY(-3px); }
.help-group { margin-bottom: 2rem; scroll-margin-top: 110px; }
.help-group[hidden], .help-group details[hidden] { display: none; }
.help-group h2 { font-size: 1.5rem; margin-bottom: .8rem; }
.help-group .faq { max-width: none; }
.help-group details p { margin: .8rem 0 0; }
@media (max-width: 800px) { .help-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.app-card small { color: #fff; opacity: .9; }
@media (max-width: 900px) { .app-phone { transform: scale(.8); transform-origin: top center; margin-bottom: -110px; } }

/* Formularz "Napisz do nas" */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn-copy { border: 0; background: none; padding: 0; font: inherit; color: var(--blue); font-weight: 600; cursor: pointer; text-decoration: underline; }
#support-form { display: grid; gap: 1rem; }
#support-form select, #support-form textarea { width: 100%; }

/* =============================================================================
   DOSTĘPNOŚĆ: KONTRAST I WIELKOŚĆ ELEMENTÓW (audyt WCAG 2.1 AA)
   Tekst musi mieć kontrast min. 4.5:1 z tłem (duży tekst 3:1),
   a przyciski na telefonie min. ok. 32-44 px (wytyczne Apple / Google).
   ============================================================================= */
:root { --muted: #5f5f68; --accent-text: #5a3be0; }
[data-theme="dark"] { --accent-text: #b4a4ff; }

/* Kolorowe etykiety w trybie jasnym: ciemniejsze odcienie */
.s-pending { color: #8a5300; }
.s-done { color: #0f6b3c; }
.likes { color: #c8124f; }
.live-note { color: #0f7a52; }
.verified { color: #0f7a50; }
.hb.yes, .law-tag.now { color: #0f6b4a; }
.law-tag.soon { color: #7a4c00; }
.split-app { background: #e0245e; }
.count-badge, .tab.active { color: var(--accent-text); }

/* Akcent (fiolet) w trybie ciemnym: jaśniejszy, żeby był czytelny na ciemnym tle */
[data-theme="dark"] .kicker,
[data-theme="dark"] .nav-links a.active,
[data-theme="dark"] .count-badge,
[data-theme="dark"] .tab.active,
[data-theme="dark"] .faq summary,
[data-theme="dark"] .settings-form details summary,
[data-theme="dark"] .btn-copy,
[data-theme="dark"] :is(p, li, td, small, .hint, .hint-left, .contact-card, .shelter-card) a:not(.btn) { color: var(--accent-text); }
[data-theme="dark"] .faq summary { color: var(--ink); }
[data-theme="dark"] .s-pending { color: #ffc366; }
[data-theme="dark"] .s-progress { color: #c2b5ff; }
[data-theme="dark"] .s-done { color: #6fe3ab; }
[data-theme="dark"] .likes { color: #ff7aa6; }
[data-theme="dark"] .verified, [data-theme="dark"] .live-note { color: #5fe0b0; }
[data-theme="dark"] .btn.glass { color: var(--ink); }
[data-theme="dark"] .map-error { color: var(--text); }
[data-theme="dark"] .pager button { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: var(--ink); }
[data-theme="dark"] .pager button.on { background: var(--ink); color: var(--bg); }
.pager button { background: #fff; }

/* Minimalne rozmiary czcionek i pól dotyku */
.tab { font-size: .75rem; }
.store-btn small { font-size: .75rem; }
.summary-3 .fact span { font-size: .78rem !important; }
.demo-bar button { width: 36px; height: 36px; display: grid; place-items: center; right: .3rem; }
.check { min-height: 32px; }
.back-link { padding: .4rem 0; }
/* Tryb ciemny: szary tekst pomocniczy musi zostać jasny (reguła wyżej nadpisywała go) */
[data-theme="dark"] { --muted: #a6a6b2; }
[data-theme="dark"] .likes { color: #ff8fb4; }
[data-theme="dark"] .segmented button { color: #b8b8c4; }
[data-theme="dark"] .segmented button.on { color: var(--ink); }
.request summary { color: var(--accent-text); }
.guest-banner a, .sw-banner a, [class*="banner"] a { color: #4b2fd6; }
[data-theme="dark"] [class*="banner"] a { color: var(--accent-text); }
[data-theme="dark"] .map-wrap .map:has(.map-error) { background: #1a1a22; }
.checks input, .check input { min-width: 20px; min-height: 20px; }
/* Białe przyciski w czarnej ramce (np. "Zadzwoń" na profilu zwierzaka) w trybie ciemnym */
[data-theme="dark"] .cta-box .btn-light { background: #f4f4f6; color: #0e0e10; }
.summary-3 .fact span { overflow-wrap: normal !important; }
.pets-more { margin-top: .8rem; }

/* =============================================================================
   TELEFON NA STRONIE "APLIKACJA"
   ============================================================================= */
.app-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 660px; }
.app-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(70px); opacity: .55;
  background: radial-gradient(circle at 30% 30%, var(--blue), transparent 60%), radial-gradient(circle at 70% 70%, var(--pink), transparent 60%); }
.app-device {
  position: relative; width: 300px; height: 620px; border-radius: 48px; padding: 12px;
  background: #0e0e10; box-shadow: 0 0 0 2px #2a2a33, 0 60px 100px -30px rgba(40, 20, 90, .55);
  transform: rotate(-5deg); display: flex; flex-direction: column; overflow: hidden;
  animation: app-float 6s ease-in-out infinite;
}
@keyframes app-float { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .app-device, .app-chip { animation: none !important; } }
.app-device > * { position: relative; }
.app-device::before { content: ""; position: absolute; inset: 12px; border-radius: 38px; background: #f7f6fb; }
.app-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #0e0e10; z-index: 3; }
.app-status-bar { display: flex; justify-content: space-between; padding: 12px 22px 0; font-size: .72rem; font-weight: 700; color: #0e0e10; height: 30px; }
.app-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px 8px; color: #0e0e10; }
.app-header strong { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; }
.app-header strong span { color: #6c4dff; }
.app-stack { position: relative; flex: 1; margin: 0 12px; }
.app-pet { position: absolute; inset: 0; border-radius: 26px; background: linear-gradient(160deg, #8b6dff, #ff4f8f) center / cover; }
.app-pet.back2 { transform: scale(.88) translateY(26px); opacity: .45; }
.app-pet.back1 { transform: scale(.94) translateY(13px) rotate(3deg); opacity: .75; }
.app-pet.front { overflow: hidden; box-shadow: 0 18px 30px -14px rgba(0,0,0,.45); }
.app-pet-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 16px 16px; display: grid; gap: 2px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.app-pet-info strong { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.45rem; }
.app-pet-info span { font-size: .82rem; opacity: .95; }
.app-pet-info em { font-style: normal; font-size: .75rem; opacity: .85; }
.app-stamp { position: absolute; top: 22px; left: 16px; transform: rotate(-14deg); border: 3px solid #2fd59a; color: #2fd59a;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .08em; padding: 2px 10px; border-radius: 8px; background: rgba(0,0,0,.15); }
.app-actions { display: flex; justify-content: center; gap: 16px; padding: 14px 0 10px; }
.app-actions span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 1.25rem;
  box-shadow: 0 8px 18px -8px rgba(0,0,0,.25); color: #e5484d; font-weight: 700; }
.app-actions .star { color: #6c4dff; width: 42px; height: 42px; align-self: center; }
.app-actions .like { color: #12a46b; }
.app-tabs { display: flex; justify-content: space-around; padding: 6px 8px 10px; margin: 0 8px 4px; border-top: 1px solid rgba(0,0,0,.06); }
.app-tabs span { display: grid; justify-items: center; font-size: 1rem; opacity: .55; color: #0e0e10; }
.app-tabs span.on { opacity: 1; }
.app-tabs small { font-size: .62rem; font-weight: 700; }
.app-chip { position: absolute; z-index: 2; white-space: nowrap; }
.chip-a { top: 70px; left: 0; }
.chip-b { top: 300px; right: -10px; animation-delay: -2s; }
.chip-c { bottom: 80px; left: 10px; animation-delay: -4s; }
@media (max-width: 900px) {
  .app-visual { min-height: 600px; margin-top: 1rem; }
  .app-device { width: 270px; height: 560px; }
  .chip-a { left: 4%; } .chip-b { right: 4%; } .chip-c { left: 6%; }
}
/* Powiadomienia wokół telefonu: poza ekranem, żeby nie zasłaniały logo w aplikacji */
.app-visual { overflow-x: clip; }
.chip-a { top: 150px; left: calc(50% - 300px); }
.chip-b { top: 330px; right: calc(50% - 300px); }
.chip-c { bottom: 70px; left: calc(50% - 290px); }
@media (max-width: 900px) {
  .app-chip { font-size: .78rem; padding: .5rem .8rem; }
  .chip-a { top: 120px; left: 2%; }
  .chip-b { top: 340px; right: 2%; }
  .chip-c { display: none; }
}
.app-visual { overflow-x: visible; }
.chip-a { top: 230px; left: -10px; }
.chip-b { top: 380px; right: -20px; left: auto; }
.chip-c { bottom: 90px; left: 0; }
@media (max-width: 900px) {
  .app-visual { overflow-x: clip; }
  .chip-a { top: 230px; left: 2%; }
  .chip-b { top: 420px; right: 2%; }
}

/* Wirtualny Smaczek na stronie głównej */
.snack-lead { max-width: 640px; margin-top: .4rem; }
.snack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.snack-card { border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; }
.snack-photo { display: block; aspect-ratio: 4 / 3; background: #e8e8ec; }
.snack-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.snack-body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: .5rem; }
.snack-body h3 { margin: 0; font-size: 1.15rem; }
.snack-body p { margin: 0; font-size: .9rem; }
#smaczek[hidden] { display: none; }
@media (max-width: 1000px) { .snack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .snack-grid { grid-template-columns: minmax(0, 1fr); } }

/* Po akceptacji wniosku: kroki, termin wizyty, czat */
.next-steps { margin: .8rem 0; padding: 1rem 1.1rem; border-radius: 18px; background: rgba(47,191,143,.1); }
.next-steps ol { margin: .5rem 0 .4rem; padding-left: 1.2rem; display: grid; gap: .35rem; }
.next-steps p { margin: 0; }
[data-theme="dark"] .next-steps { background: rgba(47,191,143,.12); }
.visit-field { display: grid; gap: .2rem; font-size: .8rem; font-weight: 600; }
.chat { margin-top: .8rem; border-radius: 18px; padding: .8rem; background: rgba(14,14,16,.04); display: grid; gap: .6rem; }
.chat[hidden] { display: none; }
[data-theme="dark"] .chat { background: rgba(255,255,255,.05); }
.chat-log { max-height: 280px; overflow-y: auto; display: grid; gap: .5rem; padding: .2rem; }
.chat-msg { max-width: 80%; justify-self: start; display: grid; gap: .15rem; }
.chat-msg span { padding: .55rem .85rem; border-radius: 16px 16px 16px 4px; background: var(--card, #fff); color: var(--ink); overflow-wrap: anywhere; }
.chat-msg.mine { justify-self: end; text-align: right; }
.chat-msg.mine span { border-radius: 16px 16px 4px 16px; background: #6c4dff; color: #fff; }
.chat-msg small { font-size: .72rem; color: var(--muted); }
[data-theme="dark"] .chat-msg span { background: #24242e; }
[data-theme="dark"] .chat-msg.mine span { background: #6c4dff; }
.chat-form { display: flex; gap: .5rem; }
.chat-form input { flex: 1; }

/* Wzór umowy adopcyjnej */
.contract-doc { border-radius: 28px; padding: 2.4rem 2.6rem; line-height: 1.7; max-width: 860px; }
.contract-title { text-align: center; font-size: 1.35rem; margin-bottom: 1.2rem; }
.contract-doc h3 { margin: 1.4rem 0 .4rem; font-size: 1.05rem; }
.contract-doc ol { padding-left: 1.3rem; display: grid; gap: .4rem; }
.signatures { display: flex; justify-content: space-between; gap: 2rem; margin-top: 3rem; text-align: center; }
@media (max-width: 600px) { .contract-doc { padding: 1.4rem; } .signatures { flex-direction: column; } }
@media print {
  .nav-wrap, .footer, .demo-bar, .no-print, .blob { display: none !important; }
  body { background: #fff; }
  .contract-doc { box-shadow: none; border: 0; padding: 0; max-width: none; background: #fff; color: #000; }
}

/* =============================================================================
   PŁYWAJĄCY CZAT
   ============================================================================= */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.15rem; border: 0; border-radius: 999px; cursor: pointer; font: 700 .95rem "Inter", sans-serif; color: #fff;
  background: linear-gradient(135deg, #6c4dff, #e0245e); box-shadow: 0 14px 30px -10px rgba(108,77,255,.6);
  transition: transform .2s ease;
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab span:first-child { font-size: 1.2rem; }
.chat-panel {
  position: fixed; right: 20px; bottom: 84px; z-index: 81; width: min(380px, calc(100vw - 24px)); max-height: min(600px, calc(100vh - 120px));
  border-radius: 24px; display: flex; flex-direction: column; overflow: hidden; background: var(--bg);
  box-shadow: 0 30px 60px -20px rgba(20,20,40,.45);
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem; border-bottom: 1px solid rgba(0,0,0,.07); }
.chat-tabs { display: flex; gap: .3rem; flex: 1; min-width: 0; overflow-x: auto; }
.chat-tabs button { border: 0; background: transparent; font: 600 .85rem "Inter", sans-serif; color: var(--muted); padding: .45rem .75rem;
  border-radius: 999px; cursor: pointer; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.chat-tabs button.on { background: rgba(108,77,255,.12); color: var(--accent-text); }
.chat-tabs button[hidden] { display: none; }
.chat-x { border: 0; background: transparent; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--ink); }
.chat-body { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.chat-panel .chat-log { flex: 1; min-height: 160px; max-height: none; overflow-y: auto; padding: .9rem; }
.chat-panel .chat-msg { max-width: 88%; }
.chat-panel .chat-msg span a { color: inherit; text-decoration: underline; }
.chat-compose { display: grid; gap: .45rem; padding: .7rem .8rem .8rem; border-top: 1px solid rgba(0,0,0,.07); }
.chat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.chat-compose input, .chat-compose select, .chat-compose textarea { font-size: .9rem; padding: .55rem .75rem; }
.chat-send { display: flex; gap: .45rem; align-items: flex-end; }
.chat-send textarea { flex: 1; resize: none; }
.chat-send .btn { min-width: 44px; height: 44px; padding: 0; justify-content: center; }
.chat-note { margin: 0; font-size: .75rem; color: var(--muted); }
.chat-note a { color: var(--accent-text); }
.chat-actions { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 .9rem .9rem; }
[data-theme="dark"] .chat-head, [data-theme="dark"] .chat-compose { border-color: rgba(255,255,255,.08); }
@media (max-width: 600px) {
  .chat-fab { right: 14px; bottom: 14px; padding: .8rem; }
  .chat-fab-label { display: none; }
  .chat-panel { right: 12px; bottom: 76px; }
}
@media print { .chat-fab, .chat-panel { display: none !important; } }
/* Wiadomości w Moje konto */
.thread-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1rem; align-items: start; }
.thread-list { list-style: none; margin: 0; padding: .5rem; border-radius: 22px; display: grid; gap: .25rem; }
.thread-list button { width: 100%; text-align: left; border: 0; background: transparent; padding: .75rem .9rem; border-radius: 14px; cursor: pointer;
  display: grid; gap: .15rem; font: inherit; color: var(--text); }
.thread-list button strong { color: var(--ink); }
.thread-list button span { font-size: .8rem; color: var(--muted); }
.thread-list button.on, .thread-list button:hover { background: rgba(108,77,255,.1); }
.thread-view { border-radius: 22px; padding: 1.1rem; display: grid; gap: .7rem; }
.thread-view h3 { margin: 0; }
.thread-view .chat-log { min-height: 220px; max-height: 420px; background: rgba(14,14,16,.03); border-radius: 16px; padding: .7rem; }
[data-theme="dark"] .thread-view .chat-log { background: rgba(255,255,255,.04); }
@media (max-width: 760px) { .thread-layout { grid-template-columns: minmax(0, 1fr); } }
/* Karuzela smaczków: przewijanie w bok + strzałki */
#smaczek .section-bar { align-items: flex-end; }
.carousel-nav { display: flex; gap: .5rem; flex: none; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(14,14,16,.12); background: var(--card, #fff); color: var(--ink);
  font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: transform .15s ease, opacity .15s ease; }
.round-btn:hover:not(:disabled) { transform: scale(1.06); border-color: var(--blue); }
.round-btn:disabled { opacity: .35; cursor: default; }
[data-theme="dark"] .round-btn { background: #1f1f28; border-color: rgba(255,255,255,.12); }
.snack-carousel { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 3 * 1.1rem) / 4);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .4rem .2rem 1.2rem; scrollbar-width: thin; }
.snack-carousel > * { scroll-snap-align: start; }
.snack-carousel:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 26px; }
.snack-more { text-align: right; margin: 0; }
.snack-more a { color: var(--accent-text); font-weight: 600; }
@media (max-width: 1000px) { .snack-carousel { grid-template-columns: none; grid-auto-columns: calc((100% - 1.1rem) / 2); } }
@media (max-width: 560px) {
  .snack-carousel { grid-template-columns: none; grid-auto-columns: 82%; }
  #smaczek .section-bar { flex-wrap: wrap; }
}
.carousel-nav[hidden] { display: none; }
.thread-layout > *, .thread-view > * { min-width: 0; }
.thread-view { grid-template-columns: minmax(0, 1fr); }
.thread-view h3 { overflow-wrap: anywhere; }
.thread-view .chat-form input { min-width: 0; }

/* =============================================================================
   POPRAWKI 21.11 (popołudnie)
   ============================================================================= */
/* Czat nad plakietką "Powered by Netlify" (Netlify wstawia ją w prawy dolny róg) */
.chat-fab { bottom: 76px; }
.chat-panel { bottom: 140px; max-height: min(600px, calc(100vh - 170px)); }
@media (max-width: 600px) {
  .chat-fab { bottom: 72px; }
  .chat-panel { bottom: 132px; }
}

/* Karuzela smaczków: równe zdjęcia, karty bez pustego miejsca, bez paska przewijania */
.snack-carousel { align-items: start; scrollbar-width: none; padding-bottom: 1.4rem; }
.snack-carousel::-webkit-scrollbar { display: none; }
.snack-carousel .snack-card { height: auto; }
.snack-carousel .snack-photo { flex: none; aspect-ratio: 4 / 3; overflow: hidden; min-height: 0; }
.snack-carousel .snack-photo img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.snack-carousel .snack-body p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Okno płatności Smaczka */
.pay-step { display: grid; gap: .9rem; }
.pay-step[hidden] { display: none; }
.pay-label { margin: .2rem 0 -.3rem; font-weight: 700; font-size: .9rem; }
.pay-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.pay-methods button {
  display: flex; align-items: center; gap: .5rem; padding: .75rem .85rem; border-radius: 16px;
  border: 1.5px solid #d4d4da; background: #fff; font: 600 .9rem "Inter", sans-serif; color: var(--ink); cursor: pointer; text-align: left;
}
.pay-methods button span { font-size: 1.15rem; }
.pay-methods button.on { border-color: var(--blue); background: rgba(108,77,255,.08); color: var(--accent-text); }
.gateway { border: 1.5px solid #d4d4da; border-radius: 20px; padding: 1rem; display: grid; gap: .8rem; background: #fff; }
.gateway-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.gateway-tag { font: 700 .7rem "Inter", sans-serif; letter-spacing: .08em; padding: .25rem .55rem; border-radius: 999px; background: rgba(245,165,36,.18); color: #8a5800; }
.gateway-sum, .transfer-data { margin: 0; display: grid; gap: .45rem; }
.gateway-sum div, .transfer-data div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: .6rem; align-items: baseline; }
.gateway-sum dt, .transfer-data dt { color: var(--muted); font-size: .85rem; }
.gateway-sum dd, .transfer-data dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.transfer-data code { font: 600 .95rem ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .02em; }
.blik-field { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
.blik-field[hidden] { display: none; }
.blik-field input { font: 700 1.5rem ui-monospace, Consolas, monospace; letter-spacing: .25em; text-align: center; padding: .6rem; }
.gateway-note { margin: 0; font-size: .82rem; color: var(--muted); }
.link-btn { border: 0; background: none; color: var(--accent-text); font: 600 .9rem "Inter", sans-serif; cursor: pointer; padding: .2rem; justify-self: center; }
.link-btn:hover { text-decoration: underline; }
#ff-snack .modal-box { max-height: 94vh; overflow-y: auto; }
[data-theme="dark"] .pay-methods button, [data-theme="dark"] .gateway { background: #23232c; border-color: rgba(255,255,255,.14); color: var(--ink); }
[data-theme="dark"] .gateway-tag { color: #f5c46b; }

/* =============================================================================
   ODŚWIEŻENIE WYGLĄDU 2027
   Większa typografia, ruchome tło, kroki z ikonami, FAQ w dwóch kolumnach,
   rozbudowana stopka jak w dużych serwisach.
   ============================================================================= */
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.04em; }
.kicker { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px;
  background: rgba(108,77,255,.09); color: var(--accent-text); letter-spacing: .12em; font-size: .72rem; }
[data-theme="dark"] .kicker { background: rgba(180,164,255,.12); }

/* Ruchome tło (wyłączone przy „ogranicz ruch”) */
.blob { animation: blob-float 18s ease-in-out infinite alternate; }
.blob-blue { animation-duration: 22s; animation-direction: alternate-reverse; }
@keyframes blob-float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-60px, 50px) scale(1.12); }
  100% { transform: translate(40px, -30px) scale(.95); }
}
h1 em { background-size: 200% 100%; animation: shine 8s ease-in-out infinite alternate; }
@keyframes shine { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .blob, h1 em { animation: none; } }

/* Karty unoszą się po najechaniu */
.step, .snack-card, .pet-card, .shelter-card { transition: transform .25s ease, box-shadow .25s ease; }
.step:hover, .snack-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(60,40,160,.35); }

/* Jak to działa: ikona + linia postępu */
.steps { position: relative; }
.step { position: relative; overflow: hidden; }
.step::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--pink)); opacity: .85; transform-origin: left; }
.step:nth-child(1)::before { transform: scaleX(.34); }
.step:nth-child(2)::before { transform: scaleX(.67); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.step-top .step-no { margin: 0; }
.step-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(108,77,255,.14), rgba(224,36,94,.12)); }

/* FAQ: nagłówek po lewej, pytania po prawej */
.faq-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: start; }
.faq-intro { position: sticky; top: 110px; display: grid; gap: .9rem; justify-items: start; }
.faq-intro h2 { margin: 0; }
.faq-intro p { margin: 0; max-width: 34ch; }
.faq-layout .faq { max-width: none; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; } .faq-intro { position: static; } }

/* Stopka */
.site-footer { margin-top: 5rem; padding: 4rem 0 2rem; background: #0e0e12; color: #c9c9d3; border-radius: 40px 40px 0 0; }
.site-footer .logo { color: #fff; font-size: 1.5rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-brand { display: grid; gap: 1rem; align-content: start; justify-items: start; }
.footer-brand p { margin: 0; max-width: 36ch; color: #a9a9b6; line-height: 1.6; }
.footer-app { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16); color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; }
.footer-app:hover { border-color: #b4a4ff; }
.footer-col { display: grid; gap: .65rem; align-content: start; }
.footer-col h4 { margin: 0 0 .3rem; color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-col a { color: #c9c9d3; text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; font-size: .82rem; color: #9a9aa8; }
.footer-bottom p { margin: 0; }
.site-footer :focus-visible { outline: 2px solid #b4a4ff; outline-offset: 3px; border-radius: 4px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer { border-radius: 28px 28px 0 0; padding-top: 3rem; } .footer-bottom { flex-direction: column; } }
@media print { .site-footer { display: none !important; } }
/* Czat nie zasłania stopki na samym dole */
body { padding-bottom: 0; }
.site-footer .logo span { color: #a996ff; }
.site-footer { padding-bottom: 6.5rem; }
.site-footer .footer-bottom p, .site-footer .footer-bottom .team { color: #a3a3b1; }
.site-footer .footer-brand p { color: #b3b3c0; }

/* Galeria: karta = link + przycisk smaczka obok */
article.pet-tile { position: relative; }
.pet-link { display: block; color: inherit; text-decoration: none; }
.pet-link:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: var(--radius); }
article.pet-tile:hover .pet-photo img { transform: scale(1.05); }
article.pet-tile .chips { padding-right: 56px; }
.tile-snack {
  position: absolute; right: 1rem; bottom: 1rem; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 1.25rem; color: #fff;
  background: linear-gradient(135deg, #6c4dff, #e0245e); box-shadow: 0 10px 22px -10px rgba(108,77,255,.7);
  transition: transform .2s ease;
}
.tile-snack:hover { transform: scale(1.08) rotate(-8deg); }
.tile-snack:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* =============================================================================
   PALETA 2027: delikatnie podrasowane kolory
   Jasny: lekko liliowe tło, widoczne cienkie ramki kart (wcześniej biała
   ramka na białym tle znikała), cienie z fioletowym odcieniem.
   Ciemny: głęboki granat zamiast szarej czerni, ramki z poświatą akcentu.
   ============================================================================= */
:root {
  --bg: #f6f5fb;
  --glass: rgba(255, 255, 255, 0.74);
  --glass-border: rgba(46, 30, 120, 0.09);
  --shadow: 0 22px 50px -26px rgba(64, 40, 170, 0.30);
  --line: rgba(46, 30, 120, 0.14);
  --brand-grad: linear-gradient(135deg, #7b5cff 0%, #b04dff 45%, #ff4f8b 100%);
}
[data-theme="dark"] {
  --bg: #0b0a12;
  --glass: rgba(28, 25, 42, 0.68);
  --glass-border: rgba(190, 175, 255, 0.10);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  --line: rgba(190, 175, 255, 0.16);
}
[data-theme="dark"] .blob { opacity: .28; }
[data-theme="dark"] body { background:
  radial-gradient(1200px 600px at 85% -10%, rgba(123,92,255,.10), transparent 60%), var(--bg); }

/* Karty galerii i smaczków też z cienką ramką */
.pet-tile, .snack-card { border: 1px solid var(--glass-border); }
[data-theme="dark"] .pet-tile { background: #16141f; }

/* Wybór kwoty i metody: wyraźne ramki (kontrast elementów min. 3:1 z jasnym tłem) */
.amounts button, .pay-methods button { border: 1.5px solid #b8b3cc; background: #fbfaff; }
.amounts button:hover, .pay-methods button:hover { border-color: var(--blue); }
.amounts button.on, .pay-methods button.on { border-color: var(--blue); background: rgba(108,77,255,.10); box-shadow: 0 0 0 3px rgba(108,77,255,.12); }
[data-theme="dark"] .amounts button, [data-theme="dark"] .pay-methods button { background: #211e2e; border-color: rgba(190,175,255,.28); }
.gateway { border-color: #c9c4da; }

/* Okno: przycisk zamknięcia nigdy nie nachodzi na tytuł */
.modal-box > .kicker, .modal-box > h3 { margin-right: 2.6rem; }
.modal-close { width: 38px; height: 38px; background: rgba(46,30,120,.08); color: var(--ink); font-size: 1rem; display: grid; place-items: center; }
.modal-close:hover { background: rgba(46,30,120,.14); }
[data-theme="dark"] .modal-close { background: rgba(255,255,255,.10); }

/* Gradient marki w przyciskach akcji */
.chat-fab, .tile-snack { background: var(--brand-grad); }
.btn-dark { transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn-dark:hover { box-shadow: 0 14px 30px -12px rgba(108,77,255,.55); }

/* Domyślny baner schroniska: gradient marki + delikatny wzór łapek */
.shelter-cover {
  background-color: #8b5cff;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff' fill-opacity='.13'%3E%3Cellipse cx='30' cy='38' rx='9' ry='7'/%3E%3Ccircle cx='19' cy='27' r='4'/%3E%3Ccircle cx='27' cy='22' r='4'/%3E%3Ccircle cx='35' cy='22' r='4'/%3E%3Ccircle cx='42' cy='28' r='4'/%3E%3Cellipse cx='88' cy='92' rx='9' ry='7'/%3E%3Ccircle cx='77' cy='81' r='4'/%3E%3Ccircle cx='85' cy='76' r='4'/%3E%3Ccircle cx='93' cy='76' r='4'/%3E%3Ccircle cx='100' cy='82' r='4'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(600px 300px at 15% 10%, rgba(255,255,255,.25), transparent 60%),
    var(--brand-grad);
  background-size: 120px 120px, auto, auto;
}
.shelter-cover[style*="background-image"] { background-size: cover; background-position: center; }

.owner-hint { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin: 1.2rem 0 0; padding: .9rem 1.2rem; border-radius: 20px; }
.owner-hint span { font-weight: 600; color: var(--ink); }
.modal-box > .kicker, .faq-intro .kicker, .form-card .kicker { justify-self: start; }
.owner-hint { margin-bottom: 1.2rem; }
[data-theme="dark"] .amounts button.on, [data-theme="dark"] .pay-methods button.on { border-color: #a996ff; background: rgba(169,150,255,.16); color: #d9d0ff; box-shadow: 0 0 0 3px rgba(169,150,255,.16); }

/* =============================================================================
   MOTYW „VICE SUNSET” (inspiracja klimatem zachodu słońca w Miami)
   Strona główna: pełnoekranowy baner z niebem, retro słońcem, palmami
   i neonową siatką. Pozostałe strony: kolorowa poświata u góry.
   Paleta: fiolet nocy, neonowy róż, pomarańcz zachodu, turkus.
   ============================================================================= */
:root {
  --vice-1: #2a0b5e;  /* fiolet nieba */
  --vice-2: #7a1fa2;
  --vice-3: #e52e8a;  /* neonowy róż */
  --vice-4: #ff7a45;  /* pomarańcz */
  --vice-5: #ffc75f;  /* złoto słońca */
  --vice-teal: #19d3c5;
  --bg: #fff7f2;
  --glass-border: rgba(120, 30, 90, 0.10);
  --shadow: 0 22px 50px -26px rgba(150, 30, 100, 0.30);
  --sunset-grad: linear-gradient(90deg, #7b3cff, #e52e8a 55%, #ff7a45);
}
[data-theme="dark"] { --bg: #0c0716; }

/* Nagłówki w stylu plakatu */
.display, h2 { font-weight: 400; letter-spacing: -0.005em; line-height: 1.02; }
h2 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); text-transform: uppercase; }
.kicker { background: var(--sunset-grad); color: #fff; }
[data-theme="dark"] .kicker { background: var(--sunset-grad); color: #fff; }
.step-no, .live-stats strong { background: var(--sunset-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Kolorowa poświata u góry na podstronach */
body:not(.home)::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 520px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(123,60,255,.22), transparent 70%),
    radial-gradient(700px 340px at 55% -5%, rgba(229,46,138,.20), transparent 70%),
    radial-gradient(600px 320px at 95% 5%, rgba(255,122,69,.22), transparent 70%);
}
[data-theme="dark"] body:not(.home)::before { opacity: .9; }

/* ---------- Baner strony głównej ---------- */
.home .blob { display: none; }
.vice-hero { position: relative; overflow: hidden; margin-top: -100px; padding-top: 100px; isolation: isolate;
  background: linear-gradient(180deg, var(--vice-1) 0%, var(--vice-2) 30%, var(--vice-3) 58%, var(--vice-4) 80%, var(--vice-5) 100%); }
[data-theme="dark"] .vice-hero {
  background: linear-gradient(180deg, #07031a 0%, #1c0a45 35%, #561a7a 62%, #b2246f 85%, #ff6a5a 100%); }
.vice-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* Teksty na niebie: białe, z mocnym kontrastem */
.vice-hero .hero { padding: 6rem 0 8rem; }
.vice-hero h1 { font-weight: 400; text-transform: uppercase; color: #fff;
  font-size: clamp(3.4rem, 8.4vw, 7.4rem); line-height: .94; letter-spacing: .005em; text-shadow: 0 6px 30px rgba(40, 0, 60, .45); margin: 1.2rem 0 1.4rem; }
.vice-hero h1 em { display: inline-block; background: linear-gradient(90deg, #ffe27a, #ff9a5c 45%, #ff5fa8); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(255, 120, 150, .55)); text-shadow: none; animation: none; }
.vice-hero .lead { color: rgba(255, 255, 255, .92); font-size: 1.22rem; text-shadow: 0 2px 12px rgba(40, 0, 60, .4); }
.vice-hero .pill { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.vice-hero .btn-dark { background: #fff; color: #1a0630; box-shadow: 0 16px 40px -14px rgba(30, 0, 50, .6); }
.vice-hero .btn-dark:hover { background: #fff3fb; }
.vice-hero .btn.glass { background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.vice-hero .hero-stats strong { color: #fff; font-weight: 400; font-size: 2.2rem; letter-spacing: .01em; }
.vice-hero .hero-stats span { color: rgba(255, 255, 255, .85); }
.vice-hero .phone { box-shadow: 0 50px 90px -30px rgba(30, 0, 50, .8), 0 0 0 1px rgba(255,255,255,.15); }
[data-theme="dark"] .vice-hero .btn-dark { background: #fff; color: #1a0630; }
.home .nav { background: rgba(255,255,255,.80); }
[data-theme="dark"] .home .nav { background: rgba(20, 12, 36, .78); }

/* Pasek z hasłami */

@media (max-width: 900px) {
  .vice-hero .hero { padding: 3rem 0 6rem; }
  
   
  
}

/* Akcenty sekcji w kolorach zachodu */
.site-footer { background: #12061e; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 40px 40px 0 0;
  background: linear-gradient(90deg, #7b3cff, #e52e8a, #ff7a45, #ffc75f, #19d3c5); }
.live-stats { border-top: 4px solid transparent; border-image: var(--sunset-grad) 1; }
.chat-fab, .tile-snack { background: linear-gradient(135deg, #7b3cff, #e52e8a 60%, #ff7a45); }
.demo-bar { position: relative; z-index: 60; }
.vice-hero h1 { font-size: clamp(3.2rem, 6.6vw, 5.9rem); }
.vice-hero .hero-text { max-width: 640px; }

.vice-hero .hero-stats strong { color: #1a0630; }
.vice-hero .hero-stats span { color: #2e0b40; font-weight: 600; }
.live-stats { border-top: 0; border-image: none; position: relative; overflow: hidden; }
.live-stats::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--sunset-grad); }
h2 { line-height: 1.12; }
.vice-hero h1 { line-height: 1.0; }
.site-footer { overflow: hidden; }
.vice-hero .hero-stats { gap: .8rem; }
.vice-hero .hero-stats li { background: rgba(26, 6, 48, .42); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); padding: .7rem 1.1rem; border-radius: 18px; }
.vice-hero .hero-stats strong { color: #fff; }
.vice-hero .hero-stats span { color: rgba(255,255,255,.9); font-weight: 500; }
.section-bar h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.kicker, [data-theme="dark"] .kicker { background: linear-gradient(90deg, #6a2cf0, #c81d77); color: #fff; }
.vice-hero .btn.glass { background: rgba(40, 6, 60, .30); }
/* Zgody w formularzach: tekst zawija się obok pola, link zostaje w zdaniu */
.checks.column .check { display: flex; width: 100%; align-items: flex-start; }
.check > span { flex: 1; min-width: 0; line-height: 1.45; }
.check > input { flex: none; margin-top: .15rem; }

/* =============================================================================
   KOREKTA: czytelniej, bardziej „zwierzakowo”
   Nagłówki wracają do Plus Jakarta Sans (bez wielkich liter), zamiast palm
   i siatki jest wzgórze z psem i kotem, nowe logo z łapką-serduszkiem.
   ============================================================================= */
h2 { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-weight: 800; text-transform: none; letter-spacing: -0.035em;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.1; }
.section-bar h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.vice-hero h1 { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-weight: 800; text-transform: none;
  font-size: clamp(2.8rem, 5.6vw, 4.9rem); line-height: 1.04; letter-spacing: -0.04em; }
.vice-hero .hero-stats strong { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .55rem; }
.logo-mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 6px 12px rgba(229,46,138,.28)); }
.logo-word span { background: linear-gradient(90deg, #7b3cff, #e52e8a); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .logo-word span, .site-footer .logo-word span { background: linear-gradient(90deg, #b9a6ff, #ff7ab8); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 480px) { .logo-mark { width: 30px; height: 30px; } }

/* Duży znak FurrFinder w banerze */
.hero-brand { display: inline-flex; align-items: center; gap: .9rem; padding: .55rem 1.3rem .55rem .6rem; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -18px rgba(30,0,50,.6); animation: brand-in .9s cubic-bezier(.2,.8,.2,1) both; }
.hero-mark { width: 58px; height: 58px; filter: drop-shadow(0 8px 18px rgba(40,0,60,.45)); }
.hero-word { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.04em; color: #fff; }
.hero-word span { background: linear-gradient(90deg, #ffe27a, #ffb07a 50%, #ffc2e2); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes brand-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

/* Wzgórze ze zwierzakami */

@keyframes heart-beat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } }

.vice-hero .hero { position: relative; z-index: 1; }

/* Spokojniejszy pasek z hasłami */

@media (prefers-reduced-motion: reduce) { .hero-brand { animation: none; } }

/* Ikonki sklepów jako SVG (działają na każdym systemie) */
.store-ic svg { width: 22px; height: 22px; display: block; fill: currentColor; }
.vice-pets { position: absolute; left: 47.5%; bottom: 8%; width: 190px; height: auto; overflow: visible; }
.vice-pets ellipse, .vice-pets circle, .vice-pets path { fill: #2b0a3d; }
.vice-pets .tail { fill: none; stroke: #2b0a3d; }
.vice-pets .pet-heart { fill: #ff6fae; animation: heart-beat 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.vice-pets .pets > .tail { animation: wag 1.2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 100% 0%; }
@keyframes wag { from { transform: rotate(-6deg); } to { transform: rotate(8deg); } }
[data-theme="dark"] .vice-pets ellipse, [data-theme="dark"] .vice-pets circle, [data-theme="dark"] .vice-pets path:not(.pet-heart) { fill: #0d0418; }
[data-theme="dark"] .vice-pets .tail { stroke: #0d0418; fill: none; }

@media (max-width: 900px) { .vice-pets { left: auto; right: 6%; bottom: 5%; width: 130px; } }
@media (prefers-reduced-motion: reduce) { .vice-pets .pet-heart, .vice-pets .tail { animation: none; } }
@media (max-width: 430px) { .nav .logo-word { display: none; } }

/* =============================================================================
   WERSJA KOŃCOWA: STONOWANA I PROFESJONALNA
   Paleta jak w aplikacji (fiolet + róż na jasnym liliowym tle), bez pomarańczu,
   słońca i paska z hasłami. Zostają: logo, pies i kot na wzgórzu, nowe sekcje.
   ============================================================================= */
:root {
  --bg: #f6f5fb;
  --glass-border: rgba(46, 30, 120, 0.09);
  --shadow: 0 22px 50px -26px rgba(64, 40, 170, 0.28);
  --sunset-grad: linear-gradient(90deg, #6c4dff, #c13dd6 55%, #ff3d7f);
}
[data-theme="dark"] { --bg: #0d0c14; }

/* Typografia: więcej powietrza między literami i słowami (zwłaszcza iPhone/iPad) */
h1, h2, h3, .page-title, .vice-hero h1 { letter-spacing: -0.022em; word-spacing: .06em; }
h3 { letter-spacing: -0.01em; }
@media (max-width: 1024px) {
  h1, h2, .page-title, .vice-hero h1 { letter-spacing: -0.012em; word-spacing: .08em; }
  h3 { letter-spacing: 0; word-spacing: .05em; }
}

/* Etykiety nad nagłówkami: delikatna pigułka zamiast kolorowego paska */
.kicker, [data-theme="dark"] .kicker { background: rgba(108,77,255,.10); color: var(--accent-text); }
[data-theme="dark"] .kicker { background: rgba(180,164,255,.12); }

/* Podstrony: delikatna poświata jak wcześniej */
body:not(.home)::before {
  background:
    radial-gradient(700px 320px at 10% 0%, rgba(108,77,255,.14), transparent 70%),
    radial-gradient(700px 340px at 90% 0%, rgba(255,61,127,.12), transparent 70%);
}

/* ---------- Baner strony głównej: jasny, spokojny ---------- */
.home .blob { display: block; }
.vice-hero { background: linear-gradient(180deg, #efeaff 0%, #f7eefa 55%, var(--bg) 100%); margin-top: -100px; padding-top: 100px; }
[data-theme="dark"] .vice-hero { background: linear-gradient(180deg, #15112a 0%, #1a1226 60%, var(--bg) 100%); }
.vice-hero h1 { color: var(--ink); text-shadow: none; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.06; }
.vice-hero h1 em { background: linear-gradient(90deg, #6c4dff, #d63fa8 60%, #ff3d7f); -webkit-background-clip: text; background-clip: text; color: transparent; filter: none; }
[data-theme="dark"] .vice-hero h1 em { background: linear-gradient(90deg, #a996ff, #ff7ab8); -webkit-background-clip: text; background-clip: text; }
.vice-hero .lead { color: var(--muted); text-shadow: none; font-size: 1.18rem; }
.vice-hero .btn-dark, [data-theme="dark"] .vice-hero .btn-dark { background: var(--ink); color: var(--bg); box-shadow: 0 14px 30px -14px rgba(40,20,120,.5); }
.vice-hero .btn.glass { background: var(--glass); border: 1px solid var(--glass-border); color: var(--ink); }
.vice-hero .hero-stats { gap: 2.2rem; }
.vice-hero .hero-stats li { background: none; border: 0; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; }
.vice-hero .hero-stats strong { color: var(--ink); }
.vice-hero .hero-stats span { color: var(--muted); font-weight: 400; }
.vice-hero .phone { box-shadow: var(--shadow), 0 0 0 1px rgba(46,30,120,.06); }
.home .nav { background: var(--glass); }

/* Logo w banerze: biała pigułka, ciemny napis */
.hero-brand { background: rgba(255,255,255,.75); border: 1px solid var(--glass-border); box-shadow: 0 14px 30px -18px rgba(64,40,170,.35); }
.hero-mark { width: 50px; height: 50px; filter: drop-shadow(0 6px 14px rgba(108,77,255,.35)); }
.hero-word { color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.hero-word span { background: linear-gradient(90deg, #6c4dff, #e0245e); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .hero-brand { background: rgba(30,26,46,.7); }
[data-theme="dark"] .hero-word span { background: linear-gradient(90deg, #b9a6ff, #ff7ab8); -webkit-background-clip: text; background-clip: text; }

/* Wzgórze i zwierzaki w kolorach marki, delikatnie */

.vice-pets ellipse, .vice-pets circle, .vice-pets path { fill: #5b3fe0; }
.vice-pets .tail { stroke: #5b3fe0; fill: none; }
.vice-pets .pet-heart { fill: #ff3d7f; }
.vice-pets { width: 160px; bottom: 6%; opacity: .9; }

[data-theme="dark"] .vice-pets ellipse, [data-theme="dark"] .vice-pets circle, [data-theme="dark"] .vice-pets path:not(.pet-heart) { fill: #a996ff; }
[data-theme="dark"] .vice-pets .tail { stroke: #a996ff; }

/* Akcenty: tylko fiolet i róż */
.chat-fab, .tile-snack { background: linear-gradient(135deg, #6c4dff, #e0245e); }
.site-footer { background: #0f0d18; }
.site-footer::before { background: linear-gradient(90deg, #6c4dff, #e0245e); opacity: .9; }
.step-no, .live-stats strong { background: linear-gradient(90deg, #6c4dff, #e0245e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live-stats::before { background: linear-gradient(90deg, #6c4dff, #e0245e); }
.shelter-cover { background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff' fill-opacity='.12'%3E%3Cellipse cx='30' cy='38' rx='9' ry='7'/%3E%3Ccircle cx='19' cy='27' r='4'/%3E%3Ccircle cx='27' cy='22' r='4'/%3E%3Ccircle cx='35' cy='22' r='4'/%3E%3Ccircle cx='42' cy='28' r='4'/%3E%3Cellipse cx='88' cy='92' rx='9' ry='7'/%3E%3Ccircle cx='77' cy='81' r='4'/%3E%3Ccircle cx='85' cy='76' r='4'/%3E%3Ccircle cx='93' cy='76' r='4'/%3E%3Ccircle cx='100' cy='82' r='4'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, #6c4dff, #c13dd6 55%, #ff3d7f); }

/* Nieco więcej oddechu na telefonach i tabletach */
@media (max-width: 1024px) {
  .section { padding-top: 4.2rem; padding-bottom: 4.2rem; }
  .step, .settings-form, .form-card { padding: 1.6rem; }
  p, li { line-height: 1.65; }
}
@media (max-width: 600px) {
  .container { width: min(1140px, 90%); }
  .vice-hero .hero { padding: 2.4rem 0 7rem; }
  .vice-hero .hero-stats { gap: 1.4rem; }
}

.vice-pets .ground { fill: rgba(91,63,224,.16) !important; }
[data-theme="dark"] .vice-pets .ground { fill: rgba(169,150,255,.14) !important; }
.vice-pets { bottom: 9%; }
@media (max-width: 900px) { .vice-pets { bottom: 2.5%; width: 120px; } }
.vice-hero { background: linear-gradient(180deg, #efeaff 0%, rgba(247,238,250,.7) 55%, rgba(246,245,251,0) 100%); }
[data-theme="dark"] .vice-hero { background: linear-gradient(180deg, #15112a 0%, rgba(26,18,38,.6) 60%, rgba(13,12,20,0) 100%); }

/* Menu na telefonie i tablecie */
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass);
  cursor: pointer; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-sheet { position: absolute; top: calc(100% + 8px); left: 4%; right: 4%; z-index: 49; border-radius: 24px; padding: .6rem;
  display: grid; gap: .15rem; background: var(--bg); }
.nav-sheet[hidden] { display: none; }
.nav-sheet a { padding: .85rem 1rem; border-radius: 14px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.02rem; }
.nav-sheet a:hover, .nav-sheet a:focus-visible { background: rgba(108,77,255,.08); }
.nav-sheet a[aria-current] { color: var(--accent-text); background: rgba(108,77,255,.08); }
.nav-wrap { position: sticky; }
@media (max-width: 900px) { .nav-burger { display: inline-flex; } }
@media (max-width: 430px) { .nav-actions { gap: .35rem; } .nav-actions .btn-small { padding-left: .8rem; padding-right: .8rem; } }

/* =============================================================================
   JASNY TRYB: bez kolorowych plam
   Plamy (.blob) zostają tylko w ciemnym trybie. W jasnym: czyste tło,
   delikatna siatka kropek w kolorze marki i miękka poświata tylko u góry.
   ============================================================================= */
:root:not([data-theme="dark"]) .blob { display: none !important; }
:root:not([data-theme="dark"]) body {
  background-color: #f8f7fc;
  background-image: radial-gradient(rgba(91, 63, 224, .10) 1px, transparent 1.3px);
  background-size: 24px 24px;
}
/* Siatka widoczna u góry i łagodnie zanika: nakładka z kolorem tła */
:root:not([data-theme="dark"]) body::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1400px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(248,247,252,0) 0%, rgba(248,247,252,.6) 45%, #f8f7fc 100%);
}
:root:not([data-theme="dark"]) main { background: linear-gradient(180deg, transparent 1400px, #f8f7fc 1400px); }
/* Miękka poświata tylko u góry (strona główna i podstrony) */
:root:not([data-theme="dark"]) .vice-hero {
  background: radial-gradient(900px 420px at 78% 8%, rgba(108,77,255,.10), transparent 70%),
              radial-gradient(700px 380px at 8% 0%, rgba(255,61,127,.07), transparent 70%);
}
:root:not([data-theme="dark"]) body:not(.home)::before {
  height: 420px;
  background: radial-gradient(900px 380px at 80% 0%, rgba(108,77,255,.10), transparent 70%),
              radial-gradient(700px 340px at 5% 0%, rgba(255,61,127,.06), transparent 70%);
}
/* Karty na jasnym tle: biel + cienka ramka, żeby nie zlewały się z tłem */
:root:not([data-theme="dark"]) .glass { background: rgba(255,255,255,.88); border-color: rgba(46,30,120,.10); }
:root:not([data-theme="dark"]) .nav { background: rgba(255,255,255,.86); border: 1px solid rgba(46,30,120,.08); }
/* Pas przez całą szerokość pod sekcją dla schronisk (przełamuje biel) */
#dla-schronisk { position: relative; }
#dla-schronisk::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: linear-gradient(180deg, #f1edff 0%, #f7f0fb 100%); border-block: 1px solid rgba(46,30,120,.06); }
[data-theme="dark"] #dla-schronisk::before { background: linear-gradient(180deg, rgba(108,77,255,.07), rgba(255,61,127,.04)); border-color: rgba(255,255,255,.05); }
#dla-schronisk { isolation: isolate; }
.bank-pending { display: block; margin-top: .3rem; color: #8a5800; font-weight: 600; }
[data-theme="dark"] .bank-pending { color: #f5c46b; }
.report-link { margin-top: 1rem; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .3rem .6rem; }
.report-link a { color: var(--muted); font-weight: 600; }
.report-link a:hover { color: #c8124f; }
.forgot-link { justify-self: end; margin-top: -.4rem; font-size: .88rem; }
.auth-title { margin: 0; font-size: 1.4rem; }
.extra-photos { display: flex; flex-wrap: wrap; gap: .5rem; }
.extra-photos figure { position: relative; margin: 0; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; }
.extra-photos img { width: 100%; height: 100%; object-fit: cover; }
.extra-photos button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: .75rem; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.result-bar .result-count { margin: 0; }
.stale-note { display: block; font-size: .78rem; color: #8a5800; font-weight: 600; margin-top: .2rem; }
[data-theme="dark"] .stale-note { color: #f5c46b; }
.stale-btn { margin-top: .3rem; }
.stale-banner { padding: .9rem 1.1rem; border-radius: 16px; background: rgba(245,165,36,.14); color: #6b4500; margin-bottom: 1rem; font-size: .92rem; line-height: 1.5; }
.stale-banner[hidden] { display: none; }
[data-theme="dark"] .stale-banner { color: #f5d9a3; background: rgba(245,165,36,.12); }
.alerts-box { margin-top: 1.4rem; }
.alerts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.alerts-list li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .55rem .8rem; border-radius: 12px; background: rgba(108,77,255,.06); }
.alerts-list li.muted { background: none; padding: 0; }
.chat-attach { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; cursor: pointer; font-size: 1.1rem; background: rgba(108,77,255,.08); }
.chat-attach:hover { background: rgba(108,77,255,.16); }
.chat-img-link { display: block; margin-bottom: .3rem; }
.chat-img { display: block; max-width: 220px; max-height: 260px; width: auto; height: auto; border-radius: 12px; }
.chat-form { align-items: center; }
.admin-cards { display: grid; gap: .8rem; margin-top: 1rem; }
.admin-msg.done { opacity: .6; }
.admin-text { white-space: pre-wrap; color: var(--ink); }
#sup-filter { margin-top: .4rem; }
.ic-svg { width: 1.15em; height: 1.15em; display: block; }
.theme-toggle { color: #6c4dff; display: inline-grid; place-items: center; }
[data-theme="dark"] .theme-toggle { color: #ffcf5a; }
.chat-fab .ic-svg { width: 1.25rem; height: 1.25rem; }

/* =============================================================================
   GALERIA: czytelniejsze filtry, kolekcje bez ucinania, wyraźny przycisk alertu
   ============================================================================= */
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem 1rem; align-items: end; }
.fgroup { display: grid; gap: .35rem; min-width: 0; margin: 0; }
.fg-wide { grid-column: span 2; }
.flabel { font: 700 .72rem "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-left: .3rem; }
.fgroup select { width: 100%; }
.fg-inline { display: flex; gap: .5rem; align-items: center; }
.fg-inline select { flex: 1; min-width: 0; }
.fg-inline .btn { flex: none; white-space: nowrap; }
.filter-grid .segmented { width: 100%; }
.filter-grid .segmented button { flex: 1; }
.filters select { border-color: #c9c3dd; background-color: #fff; }
[data-theme="dark"] .filters select { border-color: rgba(190,175,255,.25); background-color: #1d1a29; }
.filter-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; padding-top: .9rem; border-top: 1px solid var(--glass-border); }
.filter-foot .flabel { margin-right: .3rem; }
.toggle-chip { position: relative; display: inline-flex; cursor: pointer; }
.toggle-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-chip span { padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid #c9c3dd; background: #fff; font: 600 .9rem "Inter", sans-serif; color: var(--ink); transition: all .15s ease; }
.toggle-chip input:checked + span { background: rgba(108,77,255,.12); border-color: var(--blue); color: var(--accent-text); }
.toggle-chip input:checked + span::before { content: "✓ "; }
.toggle-chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
[data-theme="dark"] .toggle-chip span { background: #1d1a29; border-color: rgba(190,175,255,.25); }
.reset-link { margin-left: auto; }
@media (max-width: 900px) {
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters:not(.open) .filter-grid, .filters:not(.open) .filter-foot { display: none; }
  .filter-row.filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-row.filter-foot { display: flex; }
  .reset-link { margin-left: 0; }
}
@media (max-width: 520px) {
  .filter-row.filter-grid { grid-template-columns: minmax(0, 1fr); }
  .fg-wide { grid-column: auto; }
}

/* Kolekcje: na komputerze zawijają się do nowej linii (nic nie jest ucięte),
   na telefonie przewijają się palcem, z cieniem po prawej jako podpowiedź */
@media (min-width: 901px) { .cat-strip { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 900px) {
  .cat-strip { -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); padding-right: 2rem; }
}

/* Alert: wyraźny przycisk z dzwonkiem */
.alert-btn { display: inline-flex; align-items: center; gap: .7rem; padding: .6rem 1.1rem .6rem .7rem; border-radius: 18px; cursor: pointer;
  border: 1.5px solid rgba(108,77,255,.35); background: linear-gradient(135deg, rgba(108,77,255,.10), rgba(224,36,94,.08)); color: var(--ink); text-align: left;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.alert-btn:hover { transform: translateY(-1px); border-color: var(--blue); box-shadow: 0 12px 26px -14px rgba(108,77,255,.6); }
.alert-btn svg { width: 36px; height: 36px; padding: 8px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #6c4dff, #e0245e); flex: none; }
.alert-btn span { display: grid; line-height: 1.25; }
.alert-btn strong { font: 700 .95rem "Inter", sans-serif; }
.alert-btn small { font-size: .78rem; color: var(--muted); }
.alert-btn:disabled { opacity: .6; cursor: default; }
@media (max-width: 600px) { .alert-btn { width: 100%; } }
@media (max-width: 520px) { .fg-inline { flex-direction: column; align-items: stretch; } .fg-inline select, .fg-inline .btn { width: 100%; } }

/* Profil zwierzaka: plakietka statusu i przyciski w jednym równym rzędzie */
.profile-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1rem; margin-bottom: .4rem; }
#live-status .status { white-space: nowrap; display: inline-flex; align-items: center; }
.profile-tools { display: flex; flex-wrap: wrap; gap: .45rem; }
.profile-tools .btn { white-space: nowrap; padding: .5rem .9rem; font-size: .88rem; }
@media (max-width: 1200px) and (min-width: 901px) {
  .profile-top { flex-direction: column; align-items: flex-start; }
}

/* Telefon: gdy widać pasek porównywarki, czat przesuwa się nad niego */
@media (max-width: 900px) {
  body:has(.compare-bar:not([hidden])) .chat-fab { bottom: calc(142px + env(safe-area-inset-bottom, 0px)); }
  body:has(.compare-bar:not([hidden])) .chat-panel { bottom: calc(202px + env(safe-area-inset-bottom, 0px)); }
}
.forgot-link[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.terms-check { display: flex; align-items: flex-start; gap: .55rem; font-size: .88rem; line-height: 1.45; }
.terms-check input { flex: none; margin-top: .2rem; }

/* =============================================================================
   PROFIL: przeglądarka zdjęć, pasek akcji na telefonie, plakietki pilne/DT,
   ostatnio oglądane
   ============================================================================= */
.zoomable { cursor: zoom-in; }
.lightbox { background: rgba(8,6,14,.92); padding: 0; place-items: center; }
.lb-figure { margin: 0; display: grid; gap: .6rem; justify-items: center; max-width: min(92vw, 1100px); }
.lb-figure img { max-width: 100%; max-height: 82dvh; border-radius: 16px; object-fit: contain; box-shadow: 0 30px 80px -30px #000; }
.lb-figure figcaption { color: #e9e6f5; font-size: .9rem; }
.lb-close, .lb-nav { position: fixed; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lb-close { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 1.1rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; line-height: 1; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-nav[hidden] { display: none; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.26); }
@media (max-width: 600px) { .lb-nav { width: 42px; height: 42px; font-size: 1.6rem; } .lb-prev { left: 6px; } .lb-next { right: 6px; } }

.status-group { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.badge-urgent, .badge-foster, .tile-flag { display: inline-flex; align-items: center; gap: .25rem; padding: .35rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.badge-urgent { background: #ffe4e8; color: #b0123f; }
.badge-foster { background: #e3f6ee; color: #146c47; }
[data-theme="dark"] .badge-urgent { background: rgba(255,90,120,.18); color: #ff9db1; }
[data-theme="dark"] .badge-foster { background: rgba(60,200,140,.16); color: #8fe3bd; }

.sticky-cta { display: none; }
@media (max-width: 900px) {
  .sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); z-index: 72;
    display: flex; align-items: center; gap: .7rem; padding: .5rem .55rem .5rem .5rem; border-radius: 20px;
    transition: transform .25s ease, opacity .25s ease; }
  body:not(.has-mobile-tabbar) .sticky-cta { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .sticky-cta.away { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .sticky-cta img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex: none; }
  .sticky-cta div { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
  .sticky-cta strong { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-cta span { font-size: .78rem; color: var(--muted); }
  body:has(.sticky-cta:not(.away)) .chat-fab { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
}

.recent-strip { margin: 2rem 0 0; }
.recent-strip h3 { font-size: 1.05rem; margin-bottom: .7rem; }
.recent-row { display: flex; gap: .7rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
.recent-item { flex: none; width: 96px; display: grid; gap: .35rem; text-decoration: none; color: var(--ink); font-size: .82rem; font-weight: 600; text-align: center; }
.recent-item img { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; border: 1px solid var(--glass-border); }
.recent-item:hover img { outline: 2px solid var(--blue); outline-offset: 2px; }
.active-chips { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: -.4rem 0 .9rem; }
.active-chips[hidden] { display: none; }
.active-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .55rem .4rem .85rem; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(108,77,255,.12); color: var(--accent-text); font: 600 .85rem "Inter", sans-serif; }
.active-chip span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(108,77,255,.18); font-size: .7rem; }
.active-chip:hover { background: rgba(108,77,255,.2); }
.mini-tag.urgent { background: #ffe4e8; color: #b0123f; }
.mini-tag.foster { background: #e3f6ee; color: #146c47; }
.zwierzaki-recent, main .recent-strip { margin: 0 0 1.2rem; }
/* Swipe: paski zdjęć na karcie */
.story-bars { position: absolute; top: 10px; left: 12px; right: 12px; z-index: 3; display: flex; gap: 4px; pointer-events: none; }
.story-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.4); }
.story-bars span.on { background: #fff; }
/* Znalazły już dom */
.adopted-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.adopted-card { position: relative; display: grid; gap: .5rem; text-decoration: none; color: var(--ink); }
.adopted-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; border: 1px solid var(--glass-border); }
.adopted-heart { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #e0245e; font-size: .9rem; box-shadow: 0 6px 14px -6px rgba(0,0,0,.3); }
.adopted-card div { display: grid; line-height: 1.25; }
.adopted-card small { color: var(--muted); font-size: .8rem; }
@media (max-width: 900px) { .adopted-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .adopted-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* QR na stronie aplikacji */
.app-qr { display: flex; align-items: center; gap: 1rem; margin-top: 1.2rem; padding: .8rem 1rem; border-radius: 20px; border: 1px solid var(--glass-border); background: var(--glass); max-width: 460px; }
.app-qr[hidden] { display: none; }
#app-qr-code { width: 96px; height: 96px; flex: none; background: #fff; border-radius: 12px; padding: 4px; }
#app-qr-code svg { width: 100%; height: 100%; }
.app-qr p { margin: 0; font-size: .88rem; }
.app-qr strong { display: block; color: var(--ink); }
/* Liczniki nieprzeczytanych */
.nav-auth, .mtab, [data-tab] { position: relative; }
.unread-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: .35rem; border-radius: 999px;
  background: #e0245e; color: #fff; font: 700 .7rem "Inter", sans-serif; line-height: 1; vertical-align: middle; }
.mtab .unread-badge { position: absolute; top: 2px; right: 50%; transform: translateX(18px); margin: 0; }
.app-pet > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.app-pet { overflow: hidden; }

/* ===== Porównywarka: przycisk „Zobacz” był czarny na czarnym ===== */
.data-table a.btn-dark, .data-table a.btn-dark:hover { color: #fff; }
[data-theme="dark"] .data-table a.btn-dark, [data-theme="dark"] .data-table a.btn-dark:hover { color: #0d0d12; }

/* ===== Ostatnio oglądane: obwódka po najechaniu nie jest już ucinana ===== */
.recent-row { padding: 4px 4px .5rem; margin: -4px -4px 0; }
.recent-item:hover img, .recent-item:focus-visible img { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ===== Filtry: najważniejsze na wierzchu, reszta pod „Więcej filtrów” ===== */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding-top: .2rem; }
.more-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid #c9c3dd; background: #fff; color: var(--ink); font: 600 .9rem "Inter", sans-serif; transition: border-color .15s ease, background .15s ease; }
.more-btn svg { width: 18px; height: 18px; }
.more-btn:hover, .more-btn.on { border-color: var(--blue); }
.more-btn.on { background: rgba(108,77,255,.08); }
.more-btn b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .72rem; }
.more-btn b[hidden] { display: none; }
[data-theme="dark"] .more-btn { background: #1d1a29; border-color: rgba(190,175,255,.25); }
.filter-more { display: grid; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--glass-border); }
.filter-more[hidden] { display: none !important; }
.filter-more .filter-foot { border-top: 0; padding-top: 0; }
.filter-bar .reset-link { margin-left: auto; }

/* ===== Pasek wyników: licznik po lewej, sortowanie i dzwonek po prawej, w jednej linii ===== */
.result-bar { margin: 0 0 1.1rem; align-items: center; }
.result-tools { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.sort-inline { display: inline-flex; align-items: center; gap: .45rem; margin: 0; font-size: .9rem; color: var(--muted); font-weight: 600; }
.sort-inline select { width: auto; min-height: 0; padding: .5rem 2.2rem .5rem .85rem; border-radius: 999px; font-size: .9rem; border: 1.5px solid #c9c3dd; background-color: #fff; }
[data-theme="dark"] .sort-inline select { border-color: rgba(190,175,255,.25); background-color: #1d1a29; }
.alert-btn { padding: .45rem 1rem .45rem .45rem; border-radius: 999px; gap: .5rem; font: 600 .9rem "Inter", sans-serif; }
.alert-btn svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; }
.alert-btn span { display: inline; }
@media (max-width: 600px) {
  .result-bar { flex-direction: column; align-items: stretch; }
  .result-tools { justify-content: space-between; }
  .alert-btn { width: auto; }
  .sort-inline span { display: none; }
}
@media (max-width: 900px) {
  .filters.open .filter-row.filter-bar { display: flex; }
  .filter-more .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .filter-more .filter-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .result-tools { flex-wrap: nowrap; }
  .ab-long { display: none; }
  .sort-inline select { max-width: 200px; }
}

/* ===== Audyt 4: dopasowanie, potrzeby, kadr, podpowiedzi ===== */
.demo-note { margin: .6rem 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.match-badge { display: inline-flex; align-items: center; gap: .2rem; padding: .25rem .55rem; border-radius: 999px; font: 700 .75rem "Inter", sans-serif;
  background: rgba(255,255,255,.92); color: #5a3be0; box-shadow: 0 4px 12px -6px rgba(0,0,0,.35); }
.match-badge.hi { background: linear-gradient(135deg, #6c4dff, #e0245e); color: #fff; }
.hb.unknown { background: rgba(130,125,150,.12); color: var(--muted); }
.needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.need { display: flex; gap: .65rem; align-items: flex-start; padding: .7rem .85rem; border-radius: 18px; border: 1px solid var(--glass-border); background: var(--glass); }
.need > span { font-size: 1.15rem; line-height: 1.2; }
.need small { display: block; color: var(--muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.need strong { font-size: .92rem; font-weight: 600; }
.need.unknown strong { color: var(--muted); font-weight: 500; }
@media (max-width: 520px) { .needs { grid-template-columns: minmax(0, 1fr); } }
.match-box { border-radius: 22px; padding: 1rem 1.1rem; margin: 0 0 1.2rem; }
.match-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .5rem; }
.match-head strong { font-size: 1.05rem; }
.match-box ul { list-style: none; margin: 0 0 .4rem; padding: 0; display: grid; gap: .3rem; font-size: .9rem; }
.match-box li b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: .72rem; margin-right: .3rem; }
.match-box li.ok b { background: #e3f6ee; color: #146c47; }
.match-box li.bad b { background: #fde7ef; color: #a3134d; }
.match-box li.mid b { background: #fff1d9; color: #845300; }
.match-box li span { color: var(--muted); }
.match-hint { font-size: .9rem; color: var(--muted); margin: 0 0 1.2rem; }
.confirmed { margin: -.3rem 0 .9rem; font-size: .85rem; color: #146c47; }
.confirmed.old { color: #845300; }
[data-theme="dark"] .confirmed { color: #7fe0b2; }
[data-theme="dark"] .confirmed.old { color: #ffc966; }
.profile-photo { position: relative; }
.photo-counter { position: absolute; right: 14px; top: 14px; padding: .3rem .65rem; border-radius: 999px; background: rgba(15,12,25,.6); color: #fff;
  font: 600 .8rem "Inter", sans-serif; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.photo-counter[hidden] { display: none; }
/* Formularz zwierzęcia: trzy pola w rzędzie, kadr zdjęcia */
.settings-form .row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .settings-form .row.three { grid-template-columns: minmax(0, 1fr); } }
.form-sub { margin: .6rem 0 .2rem; font-size: 1rem; }
.form-sub small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.focus-picker { border: 1px dashed rgba(108,77,255,.4); border-radius: 18px; padding: .9rem; display: grid; gap: .6rem; }
.focus-picker[hidden] { display: none; }
.focus-picker p { margin: 0; font-size: .88rem; }
.fp-wrap { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.fp-frame { position: relative; width: min(100%, 320px); cursor: crosshair; border-radius: 14px; overflow: hidden; line-height: 0; }
.fp-frame img { width: 100%; height: auto; display: block; }
.fp-dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 0 0 2px #6c4dff, 0 4px 10px rgba(0,0,0,.4); pointer-events: none; left: 50%; top: 50%; }
.fp-previews { display: flex; gap: .8rem; }
.fp-previews figure { margin: 0; text-align: center; font-size: .75rem; color: var(--muted); }
.fp-prev { overflow: hidden; border-radius: 14px; border: 1px solid var(--glass-border); }
.fp-prev.card { width: 100px; aspect-ratio: 4 / 4.2; }
.fp-prev.swipe { width: 78px; aspect-ratio: 3 / 4.6; }
.fp-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.extra-photos figure { position: relative; }
.extra-photos .make-main { position: absolute; left: 4px; bottom: 4px; padding: .15rem .45rem; border: 0; border-radius: 999px;
  background: rgba(15,12,25,.7); color: #fff; font: 600 .68rem "Inter", sans-serif; cursor: pointer; }
.extra-photos .make-main:hover { background: #6c4dff; }
/* Swipe: podpowiedź przy pierwszym wejściu */
.swipe-help { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 1rem;
  background: rgba(15,12,25,.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.swipe-help-card { max-width: 340px; width: 100%; border-radius: 24px; padding: 1.2rem 1.3rem; }
.swipe-help-card h3 { margin: 0 0 .7rem; }
.swipe-help-card ul { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .5rem; font-size: .92rem; }
.swipe-help-card li span { color: var(--muted); }
.sh-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; margin-right: .35rem; background: rgba(108,77,255,.12); color: #5a3be0; font-size: .85rem; }
.sh-ic.no { background: #fde7ef; color: #a3134d; }
.sh-ic.yes { background: #e3f6ee; color: #146c47; }
.sh-ic.super { background: #e8e4ff; color: #4a32b8; }
.match-box, .match-box ul, .match-box p { text-align: left; }
.extra-photos .make-main { top: auto; right: auto; left: 4px; bottom: 4px; width: auto; height: auto; display: inline-flex; align-items: center; }
.fp-frame { display: inline-block; width: auto; max-width: min(100%, 320px); }
.fp-frame img { width: auto; max-width: 100%; max-height: 340px; }
/* Najmniejsze telefony (320–360 px): nic nie wychodzi poza ekran */
@media (max-width: 360px) {
  .nav-wrap { padding: 0 2.5%; }
  .nav { padding-left: .7rem; padding-right: .45rem; }
  .nav-actions { gap: .25rem; }
  .nav-actions .btn-small { padding-left: .6rem; padding-right: .6rem; font-size: .82rem; }
  .theme-toggle, .nav-burger { width: 38px; height: 38px; }
}
@media (max-width: 400px) {
  .result-tools { gap: .4rem; }
  .sort-inline select { max-width: 150px; padding-right: 1.8rem; }
  .alert-btn { padding-right: .7rem; }
}
@media (max-width: 760px) { .request { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .request input, .request select, .request textarea { min-width: 0; max-width: 100%; } }
/* Ekrany dotykowe: małe przyciski-linki mają co najmniej 40 px wysokości (łatwiej trafić palcem) */
@media (pointer: coarse) {
  #forgot-open, #f-reset, #chips-clear, [data-cmp-rm], #ff-quiz-clear { min-height: 40px; display: inline-flex; align-items: center; }
}
/* Telefon na stronie głównej mieści się na najmniejszych ekranach (iPhone SE 1. gen., 320 px) */
.phone { width: min(320px, calc(100vw - 2rem)); }
@media (max-width: 380px) {
  .chip-like { left: 0; } .chip-snack { right: 0; }
  .phone-area .float-chip { font-size: .78rem; padding: .45rem .75rem; }
}
@media (max-width: 600px) { .alert-btn .ab-long { display: none; } }
/* Ramka „Chcesz dać mu dom?”: gradient marki zamiast czarnego (ten sam fiolet i róż co logo) */
.cta-box, [data-theme="dark"] .cta-box {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,122,69,.35), transparent 55%),
              linear-gradient(135deg, #4b2bd6 0%, #7b3cff 45%, #d6267f 100%);
  box-shadow: 0 24px 50px -24px rgba(108,77,255,.7);
}
.cta-box p { color: rgba(255,255,255,.88); }
.cta-box a:not(.btn) { color: #fff; }
.cta-box .btn-light, [data-theme="dark"] .cta-box .btn-light { background: #fff; color: #1a1033; }
.cta-box .btn-light:hover { background: #f3eeff; }
/* Kość smaczka (🦴) jest biała: na białym przycisku dostaje fioletowe tło */
.snack-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: .15rem; border-radius: 50%; background: #efe9ff; font-size: .8rem; }
/* Panel admina: przegląd zwierząt demo */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-top: 1rem; }
.demo-card { display: grid; grid-template-columns: 1fr 86px; gap: .7rem; padding: .8rem; border-radius: 22px; }
.demo-photo { position: relative; cursor: crosshair; line-height: 0; border-radius: 14px; overflow: hidden; }
.demo-photo img { width: 100%; height: auto; max-height: 220px; object-fit: contain; background: #0001; }
.demo-prev { width: 86px; aspect-ratio: 3 / 4.6; border-radius: 14px; overflow: hidden; border: 1px solid var(--glass-border); }
.demo-prev img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.demo-body { grid-column: 1 / -1; display: grid; gap: .45rem; }
.demo-body small { color: var(--muted); }
.demo-ages { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip-btn { padding: .35rem .7rem; border-radius: 999px; border: 1.5px solid #c9c3dd; background: #fff; font: 600 .78rem "Inter", sans-serif; cursor: pointer; color: var(--ink); }
.chip-btn.on { background: rgba(108,77,255,.12); border-color: var(--blue); color: var(--accent-text); }
[data-theme="dark"] .chip-btn { background: #1d1a29; border-color: rgba(190,175,255,.25); }
.demo-desc { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.45; }
/* Zdjęcia na kartach wypełniają całą ramkę; bez ustawionego kadru pokazujemy górną część (zwykle głowę) */
.pet-card > img, .swipe-card > img, .app-pet > img, .pet-photo img { object-fit: cover; object-position: 50% 35%; }
.demo-photo { display: inline-block; justify-self: start; align-self: start; }
.demo-photo img { width: auto; max-width: 100%; max-height: 220px; height: auto; object-fit: initial; background: none; display: block; }
.demo-media { display: flex; gap: .35rem; flex-wrap: wrap; }
.demo-media:empty { display: none; }
.demo-media figure { position: relative; margin: 0; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; }
.demo-media img { width: 100%; height: 100%; object-fit: cover; }
.demo-media button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: .65rem; cursor: pointer; }

/* ===== Telefon na stronie głównej (nowy wygląd: wyspa, pasek stanu, karta na całą szerokość) ===== */
.phone {
  height: 660px; padding: 0; border: 0; border-radius: 54px; overflow: hidden;
  background: #f7f6fb; display: flex; flex-direction: column;
  box-shadow: 0 0 0 10px #15121f, 0 0 0 11px rgba(255,255,255,.12), 0 50px 90px -30px rgba(30,0,50,.55);
  margin: 11px;
}
[data-theme="dark"] .phone { background: #121019; box-shadow: 0 0 0 10px #050408, 0 0 0 11px rgba(255,255,255,.1), 0 50px 90px -30px rgba(0,0,0,.8); }
.phone-island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 999px; background: #0b0a10; z-index: 6; }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 0; height: 40px; font: 700 .78rem "Inter", sans-serif; color: var(--ink); }
.ps-icons { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; }
.ps-icons svg { height: 11px; width: auto; fill: currentColor; }
.phone-top { padding: 6px 18px 10px; }
.phone-top strong { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.phone-top strong span { background: linear-gradient(90deg, #7b3cff, #e52e8a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phone .card-stack { flex: 1; height: auto; min-height: 0; margin: 0 12px; }
.phone .pet-card { border-radius: 30px; box-shadow: 0 18px 30px -18px rgba(20,10,50,.55); background: #ddd; }
.phone .pet-info { padding: 4rem 1.1rem 1.1rem; background: linear-gradient(transparent, rgba(12,8,24,.82)); }
.phone .pet-info h3 { font-size: 1.6rem; line-height: 1.1; }
.phone .pet-info p { margin: .25rem 0 0; font-size: .85rem; }
.pet-tags { display: flex; gap: .35rem; margin-top: .55rem; flex-wrap: wrap; }
.pet-tags span { padding: .22rem .6rem; border-radius: 999px; background: rgba(255,255,255,.2); color: #fff; font: 600 .7rem "Inter", sans-serif;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.phone .swipe-actions { position: static; display: flex; justify-content: center; align-items: center; gap: 18px; padding: 12px 0 8px; }
.phone .round { width: 56px; height: 56px; border: 0; display: grid; place-items: center; font-size: 1.35rem; font-weight: 700; background: #fff;
  box-shadow: 0 10px 22px -10px rgba(20,10,50,.45); }
.phone .round.no { color: #e0245e; }
.phone .round.yes { color: #12a46b; }
.phone .round.star { width: 44px; height: 44px; font-size: 1.05rem; color: #6c4dff; cursor: default; }
[data-theme="dark"] .phone .round { background: #221e30; }
.phone .tabbar { position: static; margin: 0 14px 14px; padding: 6px; background: #fff; border: 1px solid rgba(46,30,120,.06); }
[data-theme="dark"] .phone .tabbar { background: #1b1826; border-color: rgba(255,255,255,.06); }
.phone .tab { padding: 5px 14px; }
@media (max-width: 380px) { .phone { height: 600px; } .phone .round { width: 50px; height: 50px; } }
.vice-hero .phone { box-shadow: 0 0 0 10px #15121f, 0 0 0 11px rgba(255,255,255,.12), 0 50px 90px -30px rgba(30,0,50,.55); }
[data-theme="dark"] .vice-hero .phone { box-shadow: 0 0 0 10px #050408, 0 0 0 11px rgba(255,255,255,.1), 0 50px 90px -30px rgba(0,0,0,.8); }
/* Dymki obok telefonu nie zasłaniają nagłówka aplikacji */
.phone-area .chip-like { top: 150px; }
.phone-area .chip-snack { top: 380px; }
.cta-box p a:not(.btn), [data-theme="dark"] .cta-box p a:not(.btn) { color: #fff; }
.chip-btn { background: #f3f0ff; border-color: #d9d2f5; }
.chip-btn:hover { border-color: var(--blue); }
