:root {
  --bg: #faf8f7;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #78716c;
  --accent: #be123c;
  --accent-soft: #ffe4e6;
  --accent-hover: #9f1239;
  --border: #e7e5e4;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(28, 25, 23, 0.08);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --max: 1100px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  padding-bottom: 0;
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible,
a:active {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.container {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

.is-hidden {
  display: none !important;
}

.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;
}

/* Wiadomości */
.messages-layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  align-content: start;
  min-height: 0;
}

/* Panel: lista rozmów po lewej (stała szer.), wątek po prawej — kolejność jak w DOM (aside → section) */
.panel-messages.messages-layout {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
}

/* Dwie karty obok siebie — bez .card + .card (inaczej prawa ma margin-top: 1rem) */
.messages-layout > .card + .card {
  margin-top: 0;
}

.messages-sidebar {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.messages-sidebar__head {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.messages-sidebar__title {
  margin: 0;
  font-size: 1.05rem;
}

.messages-thread-list {
  overflow-y: auto;
  max-height: min(60dvh, 560px);
}

.messages-empty-hint {
  margin: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.messages-thread-item {
  display: flex;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.messages-thread-item:hover,
.messages-thread-item:focus-visible {
  background: var(--accent-soft);
}

.messages-thread-item.is-active {
  background: rgba(190, 18, 60, 0.08);
}

.messages-avatar {
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.messages-avatar--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 1.1rem;
}

.messages-thread-item__body {
  flex: 1;
  min-width: 0;
}

.messages-thread-item__top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.messages-thread-item__name {
  font-size: 0.95rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-thread-item__preview {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 0.15rem;
}

.messages-unread {
  flex-shrink: 0;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
}

.messages-thread {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.messages-thread__empty {
  padding: 2rem 1.25rem;
  color: var(--muted);
}

.messages-thread__active {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.messages-thread__toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
}

.messages-back {
  display: none;
}

.messages-thread__peer {
  font-weight: 650;
  color: var(--text);
}

.messages-bubbles {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.messages-bubble-wrap {
  display: flex;
}

.messages-bubble-wrap.is-mine {
  justify-content: flex-end;
}

.messages-bubble {
  max-width: min(100%, 420px);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.messages-bubble-wrap.is-mine .messages-bubble {
  background: var(--accent-soft);
  border-color: rgba(190, 18, 60, 0.2);
}

.messages-bubble__text {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.95rem;
}

.messages-bubble__meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.25rem;
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.messages-bubble__tick {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(190, 18, 60, 0.65);
}

body:has(.app-shell).theme-dark .messages-bubble__tick {
  color: rgba(253, 164, 175, 0.78);
}

.messages-compose {
  display: flex;
  gap: 0.65rem;
  align-items: flex-end;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(250, 248, 247, 0.92);
}

.emoji-picker {
  position: relative;
  flex-shrink: 0;
}

.emoji-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 12px rgba(28, 25, 23, 0.06);
}

.attach-picker {
  position: relative;
  flex-shrink: 0;
}

.attach-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 12px rgba(28, 25, 23, 0.06);
  color: rgba(28, 25, 23, 0.78);
}

.attach-btn:hover {
  background: var(--accent-soft);
  border-color: rgba(190, 18, 60, 0.2);
}

.attach-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

/* Wyrównanie przycisków narzędzi do pola wpisywania */
.messages-compose .emoji-btn,
.messages-compose .attach-btn,
.msg-modal__toolbar .emoji-btn,
.msg-modal__toolbar .attach-btn {
  height: 2.75rem; /* jak textarea */
  width: 2.75rem;
}

.msg-img {
  display: block;
  max-width: min(320px, 70vw);
  max-height: 320px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  object-fit: cover;
}

.msg-img-btn {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.emoji-btn:hover {
  background: var(--accent-soft);
  border-color: rgba(190, 18, 60, 0.2);
}

.emoji-pop {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  width: 220px;
  max-width: min(80vw, 260px);
  padding: 0.5rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 70px rgba(28, 25, 23, 0.18);
  display: none;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.35rem;
  z-index: 50;
}

.emoji-pop.is-open {
  display: grid;
}

.emoji-item {
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.15rem;
  padding: 0.25rem 0;
}

.emoji-item:hover {
  background: rgba(190, 18, 60, 0.08);
}

.messages-compose textarea {
  flex: 1;
  resize: vertical;
  min-height: 2.75rem;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.65rem;
}

@media (max-width: 820px) {
  .messages-layout {
    grid-template-columns: 1fr;
  }

  .panel-messages.messages-layout {
    grid-template-columns: 1fr;
  }

  .panel-messages > .messages-sidebar,
  .panel-messages > .messages-thread {
    grid-column: auto;
  }

  body.is-messages .messages-layout.panel-messages {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, auto) minmax(0, 1fr);
    height: 100%;
    max-height: 100%;
  }
}

@media (max-width: 520px) {
  .messages-layout--thread .messages-sidebar {
    display: none;
  }

  .messages-layout--thread .messages-back {
    display: inline-flex;
  }
}

/* Panel (ciemny motyw): wiadomości w app-main */
body:has(.app-shell).theme-dark .panel-messages .messages-sidebar__head {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body:has(.app-shell).theme-dark .panel-messages .messages-sidebar__title {
  color: rgba(255, 255, 255, 0.94);
}

body:has(.app-shell).theme-dark .panel-messages .messages-thread-item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

body:has(.app-shell).theme-dark .panel-messages .messages-thread-item:hover,
body:has(.app-shell).theme-dark .panel-messages .messages-thread-item.is-active {
  background: rgba(255, 255, 255, 0.07);
}

body:has(.app-shell).theme-dark .panel-messages .messages-thread-item__name {
  color: rgba(255, 255, 255, 0.94);
}

body:has(.app-shell).theme-dark .panel-messages .messages-thread-item__preview {
  color: rgba(255, 255, 255, 0.55);
}

body:has(.app-shell).theme-dark .panel-messages .messages-empty-hint {
  color: rgba(255, 255, 255, 0.58);
}

body:has(.app-shell).theme-dark .panel-messages .messages-thread__empty {
  color: rgba(255, 255, 255, 0.62);
}

body:has(.app-shell).theme-dark .panel-messages .messages-thread__toolbar {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body:has(.app-shell).theme-dark .panel-messages .messages-thread__peer {
  color: #fda4af;
}

body:has(.app-shell).theme-dark .panel-messages .messages-thread__peer:hover {
  color: #fecdd3;
}

body:has(.app-shell).theme-dark .panel-messages .messages-bubble {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.92);
}

body:has(.app-shell).theme-dark .panel-messages .messages-bubble-wrap.is-mine .messages-bubble {
  background: rgba(251, 113, 133, 0.22);
  border-color: rgba(251, 113, 133, 0.4);
}

body:has(.app-shell).theme-dark .panel-messages .messages-bubble__meta {
  color: rgba(255, 255, 255, 0.52);
}

body:has(.app-shell).theme-dark .panel-messages .messages-compose {
  background: rgba(10, 8, 7, 0.92);
  border-top-color: rgba(255, 255, 255, 0.1);
}

body:has(.app-shell).theme-dark .panel-messages .messages-compose textarea {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

body:has(.app-shell).theme-dark .panel-messages .messages-compose textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

body:has(.app-shell).theme-dark .emoji-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

/* City autocomplete (panel -> Twój profil) */
.city-field {
  position: relative;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.city-field input {
  flex: 1 1 auto;
}
.city-field__geo {
  flex: 0 0 auto;
  min-width: 42px;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}
.city-field__geo svg {
  width: 18px;
  height: 18px;
  display: block;
}
.city-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 40;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}
.city-suggest__item {
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.75rem;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.city-suggest__item + .city-suggest__item {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.city-suggest__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111827;
}
.city-suggest__sub {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: #6b7280;
}
.city-suggest__item:hover {
  background: rgba(236, 72, 153, 0.08);
}
.city-suggest__err {
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  color: #991b1b;
  background: #fef2f2;
}

body:has(.app-shell).theme-dark .city-suggest {
  background: rgba(22, 19, 31, 0.98);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5);
}
body:has(.app-shell).theme-dark .city-suggest__title {
  color: rgba(255, 255, 255, 0.92);
}
body:has(.app-shell).theme-dark .city-suggest__sub {
  color: rgba(255, 255, 255, 0.62);
}
body:has(.app-shell).theme-dark .city-suggest__item + .city-suggest__item {
  border-top-color: rgba(255, 255, 255, 0.10);
}
body:has(.app-shell).theme-dark .city-suggest__item:hover {
  background: rgba(236, 72, 153, 0.16);
}

body:has(.app-shell).theme-dark .emoji-btn:hover {
  background: rgba(251, 113, 133, 0.14);
  border-color: rgba(251, 113, 133, 0.25);
}

body:has(.app-shell).theme-dark .emoji-pop {
  background: rgba(12, 10, 9, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
}

body:has(.app-shell).theme-dark .emoji-item:hover {
  background: rgba(251, 113, 133, 0.14);
}

body:has(.app-shell).theme-dark .attach-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

body:has(.app-shell).theme-dark .attach-btn:hover {
  background: rgba(251, 113, 133, 0.14);
  border-color: rgba(251, 113, 133, 0.25);
}

body:has(.app-shell).theme-dark .panel-messages .messages-avatar--ph {
  background: rgba(255, 255, 255, 0.1);
  color: #fda4af;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 750;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.03em;
}

.logo__mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  object-fit: contain;
}

.logo__name {
  color: var(--text);
}

.logo__pl {
  color: var(--accent);
}

.logo:hover {
  text-decoration: none;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-main a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 550;
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-main a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-main a.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn--ghost:hover {
  background: var(--accent-soft);
}

.btn--danger {
  background: #fef2f2;
  color: #b91c1c;
}

.btn--small {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  margin: 0 0 1rem;
}

.hero p {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 1.35rem;
}

.card + .card {
  margin-top: 1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.alert--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert--ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert--warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.page-title {
  padding: 1.5rem 0 1rem;
}

.page-title h1 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
}

.page-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-page {
  padding: clamp(2.25rem, 6vw, 3.75rem) 0 0;
  background-color: #faf8f7;
  background-image:
    linear-gradient(180deg, rgba(12, 10, 9, 0.58) 0%, rgba(12, 10, 9, 0.46) 55%, rgba(12, 10, 9, 0.62) 100%),
    radial-gradient(ellipse 120% 70% at 15% 20%, rgba(251, 113, 133, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 90% 65% at 100% 80%, rgba(244, 63, 94, 0.12) 0%, transparent 50%),
    url("../img/auth-bg.png");
  background-repeat: no-repeat;
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center;
  background-attachment: fixed, fixed, fixed, fixed;
}

.auth-layout {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  padding-bottom: clamp(2.25rem, 6vw, 3.25rem);
}

@media (min-width: 900px) {
  .auth-layout {
    grid-template-columns: 1.15fr minmax(360px, 0.85fr);
    gap: 2.25rem;
  }
}

.auth-intro {
  max-width: 40rem;
}

.auth-page .landing-kicker {
  color: #fda4af;
}

.auth-page .auth-title {
  color: #fff;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.auth-page .auth-lead {
  color: rgba(255, 255, 255, 0.82);
}

.check-email {
  min-height: calc(100dvh - 72px);
  background-color: #0c0a09;
  background-image:
    linear-gradient(90deg, rgba(12, 10, 9, 0.25) 0%, rgba(12, 10, 9, 0.65) 55%, rgba(12, 10, 9, 0.86) 100%),
    url("../img/auth-bg.png");
  background-repeat: no-repeat;
  background-size: cover, cover;
  background-position: center, center;
}

.check-email__wrap {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  min-height: calc(100dvh - 72px);
  display: grid;
  align-items: center;
}

.check-email__panel {
  margin-left: auto;
  width: min(520px, 100%);
  background: rgba(12, 10, 9, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  padding: 1.6rem 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.check-email__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
}

.check-email__brand img {
  width: 34px;
  height: 34px;
}

.check-email__title {
  margin: 0 0 0.65rem;
  font-family: Outfit, var(--font);
  font-size: 1.35rem;
  font-weight: 850;
}

.check-email__text {
  margin: 0 0 0.7rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.check-email__muted {
  margin: 0 0 1.15rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.5;
}

.check-email__actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.check-email__dev {
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 0.85rem;
}

.check-email__dev summary {
  cursor: pointer;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.9);
}

.check-email__dev p {
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
  font-size: 0.92rem;
}

.check-email__link {
  word-break: break-all;
}

.check-email__link a {
  color: #fda4af;
  font-weight: 700;
}

.check-email .btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(253, 164, 175, 0.55);
}

.check-email .btn--outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #fda4af;
}

.check-email .alert {
  margin-top: 0.9rem;
}

.check-email .alert--ok {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: #d1fae5;
}

.check-email .alert--error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fee2e2;
}

@media (max-width: 700px) {
  .check-email {
    background-image:
      linear-gradient(180deg, rgba(12, 10, 9, 0.22) 0%, rgba(12, 10, 9, 0.75) 55%, rgba(12, 10, 9, 0.88) 100%),
      url("../img/auth-bg.png");
  }

  .check-email__panel {
    margin-left: 0;
  }
}

.onboarding {
  min-height: calc(100dvh - 72px);
  background: radial-gradient(ellipse 120% 80% at 20% 20%, rgba(251, 113, 133, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 100% 75% at 95% 75%, rgba(190, 18, 60, 0.14) 0%, transparent 50%),
    linear-gradient(180deg, #0c0a09 0%, #12060c 55%, #0c0a09 100%);
  padding: 2.25rem 0 3.25rem;
}

.onboarding__wrap {
  width: min(100% - 1.5rem, 720px);
  margin-inline: auto;
}

.onboarding__card {
  background: rgba(12, 10, 9, 0.78);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  padding: 1.55rem 1.4rem;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.onboarding__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.onboarding__title {
  margin: 0;
  font-family: Outfit, var(--font);
  font-weight: 850;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.onboarding__step {
  margin: 0;
  color: rgba(255, 255, 255, 0.70);
  font-size: 0.9rem;
  white-space: nowrap;
}

.onboarding__lead {
  margin: 0 0 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  font-size: 0.95rem;
}

.onboarding__photo {
  display: grid;
  gap: 0.9rem;
  justify-items: center;
}

.onboarding__preview {
  width: 220px;
  height: 220px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.onboarding__preview::before {
  content: "?";
  font-family: Outfit, var(--font);
  font-weight: 850;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.14);
}

.onboarding__preview.is-filled::before {
  content: "";
}

.onboarding__preview.is-filled {
  background-size: cover;
  background-position: center;
}

.onboarding__file {
  display: none;
}

.onboarding__photoActions {
  width: min(320px, 100%);
}

.onboarding__form {
  display: grid;
  gap: 0.9rem;
}

.onboarding__row {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 560px) {
  .onboarding__row {
    grid-template-columns: 1fr 1fr;
  }
}

.onboarding__field label {
  display: block;
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.86);
}

.onboarding__label {
  display: block;
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.86);
}

.onboarding__field input,
.onboarding__field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.onboarding__field input:focus,
.onboarding__field select:focus {
  outline: 2px solid rgba(253, 164, 175, 0.28);
  border-color: rgba(253, 164, 175, 0.55);
}

.onboarding__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  justify-content: center;
}

.onboarding__back {
  flex: 0 0 auto;
}

.onboarding__next {
  flex: 0 1 22rem;
}

.onboarding__actions .btn {
  min-width: 10rem;
}

.onboarding-radio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.onboarding-radio__item {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  padding: 0.75rem 0.85rem;
  font-weight: 750;
  cursor: pointer;
  user-select: none;
}

.onboarding-radio__item input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.onboarding-radio__item:has(input:checked) {
  border-color: rgba(253, 164, 175, 0.75);
  box-shadow: 0 0 0 3px rgba(253, 164, 175, 0.18);
  background: rgba(253, 164, 175, 0.10);
}

.onboarding-loc {
  position: relative;
  display: grid;
  gap: 0.6rem;
}

.onboarding-loc__btn {
  padding: 0.65rem 0.95rem;
  border-width: 2px;
}

.onboarding-suggest {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  z-index: 10;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 10, 9, 0.92);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.onboarding-suggest__item {
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.85rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font: inherit;
}

.onboarding-suggest__item:hover {
  background: rgba(253, 164, 175, 0.10);
}

.onboarding-suggest__item:last-child {
  border-bottom: none;
}

.onboarding .btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(253, 164, 175, 0.45);
}

.onboarding .btn--outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(253, 164, 175, 0.75);
}

.onboarding .alert--error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fee2e2;
}

.auth-title {
  font-family: Outfit, var(--font);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.auth-lead {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 34rem;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.auth-card {
  padding: 1.6rem 1.4rem;
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(28, 25, 23, 0.08);
}

.auth-card__head {
  margin-bottom: 1rem;
}

.auth-card__title {
  margin: 0 0 0.35rem;
  font-family: Outfit, var(--font);
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.auth-card__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-card__foot {
  margin: 1.1rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.auth-card #msg:empty {
  display: none;
}

.consents {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(231, 229, 228, 0.9);
  background: rgba(255, 255, 255, 0.75);
}

.consent {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #44403c;
  font-weight: 600;
  cursor: pointer;
}

.consent input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--accent);
}

.consents__hint {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 550;
}

.auth-legal {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

.auth-legal a {
  color: var(--accent);
  font-weight: 650;
}

.auth-join {
  padding: clamp(2.75rem, 6vw, 4rem) 0;
  background-color: #12060c;
  background-image:
    linear-gradient(180deg, rgba(12, 10, 9, 0.44) 0%, rgba(12, 10, 9, 0.34) 45%, rgba(12, 10, 9, 0.50) 100%),
    url("../img/auth-join-bg.svg");
  background-repeat: no-repeat;
  background-size: cover, cover;
  background-position: center, center;
  border: none;
}

.auth-join__inner {
  max-width: 760px;
  text-align: center;
  padding: 0;
}

.auth-join__title {
  margin: 0 0 1rem;
  font-family: Outfit, var(--font);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  font-size: clamp(1.35rem, 3.6vw, 2.15rem);
}

.auth-join__title span {
  color: #fda4af;
}

.auth-join__list {
  list-style: none;
  margin: 0 auto 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-width: 32rem;
  text-align: left;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.auth-join__list li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.5;
}

.auth-join__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  font-weight: 900;
}

.auth-join__btn {
  min-width: 14rem;
}

.auth-about {
  padding: clamp(3rem, 6vw, 4.25rem) 0;
  background-color: #12060c;
  background-image:
    linear-gradient(180deg, rgba(12, 10, 9, 0.55) 0%, rgba(12, 10, 9, 0.42) 45%, rgba(12, 10, 9, 0.62) 100%),
    url("../img/auth-about-bg.svg");
  background-repeat: no-repeat;
  background-size: cover, cover;
  background-position: center, center;
}

.auth-about__inner {
  max-width: 960px;
  text-align: center;
}

.auth-about__title {
  margin: 0 0 1.35rem;
  font-family: Outfit, var(--font);
  font-weight: 850;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  font-size: clamp(1.35rem, 3.6vw, 2.15rem);
}

.auth-about__grid {
  display: grid;
  gap: 1rem;
  margin: 0 auto 1.6rem;
  max-width: 54rem;
  text-align: left;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.7;
}

.auth-about__grid p {
  margin: 0;
}

.auth-about__grid strong {
  color: #fecdd3;
}

@media (min-width: 900px) {
  .auth-about__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.auth-about__btn {
  min-width: 16rem;
}

/* Na auth stronach stopka ma przylegać bez szczeliny */
body:has(.auth-page) footer.site-footer.site-footer--dark {
  margin-top: 0;
}

.user-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Panel: wąski „rail” z lewej (ikony + podpowiedzi) — maksymalna szerokość na treść */
.app-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-rows: 1fr;
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
  background: #0c0a09;
  color: rgba(255, 255, 255, 0.9);
}

.app-sidebar--rail {
  position: sticky;
  top: 0;
  z-index: 40;
  align-self: start;
  height: 100dvh;
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.55rem 0.32rem 0.5rem;
  gap: 0.4rem;
  background: rgba(10, 8, 12, 0.96);
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  box-sizing: border-box;
}

.app-sidebar__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.app-sidebar__mark:hover {
  background: rgba(255, 255, 255, 0.07);
}

.app-sidebar__mark img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.app-menu--rail {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.app-menu--rail__sep {
  width: 30px;
  height: 1px;
  margin: 0.12rem 0;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.app-sidebar--rail .app-menu__item {
  width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 14px;
  justify-content: center;
  gap: 0;
  flex-shrink: 0;
}

.app-sidebar--rail .app-menu__btn {
  width: 48px;
  min-height: 48px;
  justify-content: center;
}

.app-sidebar--rail .app-menu__ico {
  width: auto;
  font-size: 1.15rem;
  line-height: 1;
}

.app-sidebar--rail .app-menu__ico-msg {
  font-size: 1.12rem;
}

.app-sidebar--rail .app-menu__ico svg {
  width: 1.2rem;
  height: 1.2rem;
}

.app-sidebar--rail .app-menu__ico-wrap {
  width: auto;
}

.app-sidebar--rail .app-menu__item:hover,
.app-sidebar--rail .app-menu__btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
}

.app-sidebar--rail .app-menu__item.is-active {
  background: rgba(251, 113, 133, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(251, 113, 133, 0.42);
}

.app-sidebar__railFoot {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hello-card--rail {
  margin-top: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.38rem 0.22rem 0.42rem;
  gap: 0.32rem;
}

.hello-card--rail .hello-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.hello-card--rail .hello-card__meta {
  width: 100%;
  min-width: 0;
}

.hello-card--rail .hello-card__name {
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15;
  word-break: break-word;
  max-height: 2.45em;
  overflow: hidden;
}

.hello-card--rail .hello-card__sub {
  font-size: 0.58rem;
  line-height: 1.1;
  margin-top: 0.08rem;
  max-height: 2.1em;
  overflow: hidden;
}

.app-menu__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.7rem;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 750;
  transition: background 0.15s ease, color 0.15s ease;
}

.app-menu__ico {
  width: 1.25rem;
  text-align: center;
  opacity: 0.9;
}
.app-menu__ico svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.app-menu__ico-wrap {
  position: relative;
  width: 1.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-menu__ico-msg {
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.92;
}

.app-msg-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.app-msg-badge--tiny {
  top: -5px;
  right: -7px;
  min-width: 0.95rem;
  height: 0.95rem;
  font-size: 0.58rem;
  line-height: 0.95rem;
}

.app-msg-badge--mobile {
  top: -4px;
  right: -2px;
  min-width: 0.9rem;
  height: 0.9rem;
  font-size: 0.55rem;
  line-height: 0.9rem;
}

.nav-msgs-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-msgs-link__icowrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
}

.nav-msgs-link__ico {
  font-size: 0.95rem;
  line-height: 1;
}

.mobile-nav__ico-wrap {
  position: relative;
  display: inline-block;
}

.mobile-nav__ico-msg {
  display: block;
}

.app-menu__item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

.app-menu__btn {
  width: auto;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.app-menu__btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

.app-menu__btn .app-menu__ico {
  opacity: 0.9;
}

.hello-card {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0.7rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(20, 16, 28, 0.55);
}

.hello-card--compact {
  margin-top: 0;
  padding: 0.32rem 0.55rem 0.32rem 0.42rem;
  gap: 0.45rem;
  border-radius: 14px;
}

.hello-card--compact .hello-card__avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.hello-card--compact .hello-card__name {
  font-size: 0.88rem;
  line-height: 1.15;
}

.hello-card--compact .hello-card__sub {
  font-size: 0.75rem;
  margin-top: 0.04rem;
}
.hello-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  display: inline-block;
}
.hello-card__meta {
  min-width: 0;
}
.hello-card__name {
  font-family: Outfit, var(--font);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.03rem;
  line-height: 1.15;
}
.hello-card__sub {
  margin-top: 0.1rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.2;
}

.app-main {
  padding: 1.35rem 1.35rem 2.25rem;
  background:
    radial-gradient(ellipse 120% 80% at 15% 20%, rgba(251, 113, 133, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 100% 75% at 95% 75%, rgba(190, 18, 60, 0.14) 0%, transparent 50%),
    linear-gradient(180deg, #0c0a09 0%, #12060c 55%, #0c0a09 100%);
}

.app-main__inner {
  width: min(100%, 1260px);
  margin-inline: auto;
}

.panel-view[hidden] {
  display: none;
}

.panel-filters {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .panel-filters {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    align-items: end;
  }
}

.panel-filters > button {
  justify-self: center;
  width: min(420px, 100%);
}

@media (min-width: 760px) {
  .panel-filters > button {
    grid-column: 1 / -1;
  }
}

.panel-filters__head {
  grid-column: 1 / -1;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  margin-bottom: 0.15rem;
  color: rgba(255, 255, 255, 0.92);
}

/* actions moved outside the filters card */
.search-filters__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.search-filters__actions .btn {
  width: 100%;
}

/* Szukaj: rząd wyników + dok filtrów po prawej */
.search-layout__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.search-filters__drawer {
  min-width: 0;
}

.search-filters__rail {
  display: none;
}

.search-filters__rail-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
}

.search-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.35rem;
}

.search-layout__head {
  padding-bottom: 0.15rem;
}

.search-layout__title {
  margin: 0;
  line-height: 1.12;
}

.search-layout__sub {
  margin: 0.4rem 0 0;
  max-width: 52ch;
}

.search-filters {
  position: relative;
  top: auto;
}

.search-filters__card {
  max-height: calc(100vh - 1rem - 3.1rem - 0.7rem);
  overflow: auto;
  overscroll-behavior: contain;
}

.search-layout #searchGrid {
  margin-top: 0;
}

/* Search view: scroll tylko obszar wyników + karta kryteriów (nagłówek panelu sticky nad gridem) */
body.is-search .app-shell {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

body.is-search .app-main {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

body.is-search .app-main__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.is-search .panel-view[data-view="search"] {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.is-search .search-layout {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.5rem 0;
  align-content: stretch;
  /* miejsce na „rail” filtrów (jak szerokość paska + odstęp) — dok jest position:absolute na shellu */
  padding-right: calc(46px + 0.65rem);
}

body.is-search .search-layout__head {
  flex-shrink: 0;
}

body.is-search .search-layout__body {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  min-width: 0;
}

body.is-search .search-results {
  flex: 1 1 auto;
  min-width: 0;
}

body.is-search .search-filters {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  align-self: stretch;
  width: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  box-sizing: border-box;
  background: rgba(10, 8, 12, 0.92);
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.18);
}

body.is-search .search-filters__drawer {
  display: flex;
  flex-direction: column;
  flex: 0 0 0;
  align-self: stretch;
  width: 0;
  min-width: 0;
  min-height: 100%;
  max-width: min(296px, calc(100vw - 4.5rem));
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  padding-right: 0;
  transition:
    flex-basis 0.22s ease,
    min-width 0.22s ease,
    width 0.22s ease,
    opacity 0.16s ease,
    box-shadow 0.2s ease;
  border-radius: 14px 0 0 14px;
  box-shadow: none;
}

body.is-search .search-filters:hover .search-filters__drawer,
body.is-search .search-filters:focus-within .search-filters__drawer,
body.is-search .search-filters.is-open .search-filters__drawer {
  flex: 0 0 min(296px, calc(100vw - 4.5rem));
  width: min(296px, calc(100vw - 4.5rem));
  min-width: min(296px, calc(100vw - 4.5rem));
  min-height: 100%;
  overflow: visible;
  opacity: 1;
  pointer-events: auto;
  box-shadow: -10px 0 28px rgba(0, 0, 0, 0.22);
}

body.is-search .search-filters.is-open .search-filters__rail {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

body.is-search .search-filters__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 0 0 46px;
  align-self: stretch;
  width: 46px;
  min-width: 46px;
  margin: 0;
  padding: 0.35rem 0.2rem;
  border: none;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(165deg, rgba(251, 113, 133, 0.32), rgba(190, 24, 93, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  transition: background 0.15s ease, transform 0.12s ease;
}

body:has(.app-shell).theme-light.is-search .search-filters {
  background: rgba(255, 255, 255, 0.96);
  border-left-color: var(--border);
  box-shadow: -4px 0 18px rgba(15, 23, 42, 0.06);
}

body:has(.app-shell).theme-light.is-search .search-filters__rail {
  color: rgba(72, 22, 44, 0.94);
  background: linear-gradient(165deg, rgba(251, 113, 133, 0.42), rgba(251, 113, 133, 0.18));
  border-color: rgba(0, 0, 0, 0.1);
  border-right-color: rgba(0, 0, 0, 0.08);
}

body:has(.app-shell).theme-light.is-search .search-filters__rail:hover {
  background: linear-gradient(165deg, rgba(251, 113, 133, 0.52), rgba(244, 63, 94, 0.26));
}

body.is-search .search-filters__rail:hover {
  background: linear-gradient(165deg, rgba(251, 113, 133, 0.44), rgba(190, 24, 93, 0.3));
}

body.is-search .search-filters__rail:active {
  transform: scale(0.98);
}

body.is-search .search-filters__rail-icon {
  display: flex;
  color: rgba(255, 255, 255, 0.95);
}

body.is-search .search-filters__rail-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  max-height: 5.2rem;
  text-align: center;
}

body.is-search .search-filters__actions {
  flex: 0 0 auto;
  padding: 0.55rem 0.55rem 0;
}

body.is-search .search-filters__card {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.72rem 0.28rem 0.72rem 0.78rem;
  margin: 0 0.45rem 0.55rem 0.45rem;
  border-radius: 12px;
}

/* Szukaj: zwarte kryteria (mniejsza typografia i odstępy) */
body.is-search .search-layout__head .app-main__title {
  font-size: 1.14rem;
}

body.is-search .search-layout__sub {
  font-size: 0.82rem;
  margin-top: 0.28rem;
}

body.is-search .search-filters__actions {
  gap: 0.42rem;
  margin-bottom: 0;
}

body.is-search .search-filters__actions .btn {
  padding: 0.4rem 0.6rem;
  font-size: 0.82rem;
}

body.is-search .search-filters .panel-filters {
  gap: 0.48rem;
}

body.is-search .search-filters__drawer .panel-filters {
  grid-template-columns: 1fr;
}

body.is-search .search-filters .panel-filters__head {
  font-size: 0.86rem;
  padding-bottom: 0.12rem;
  margin-bottom: 0.04rem;
}

body.is-search .search-filters label {
  font-size: 0.74rem;
  font-weight: 650;
  margin-bottom: 0.12rem;
}

body.is-search .search-filters input[type="text"],
body.is-search .search-filters input[type="number"],
body.is-search .search-filters select {
  padding: 0.3rem 0.42rem;
  font-size: 0.8rem;
  border-radius: 10px;
}

body.is-search .search-filters .range-dual {
  --range-dual-band: 15px;
  padding-top: 14px;
}

body.is-search .search-filters .range-dual__track {
  top: calc((var(--range-dual-band) - 5px) / 2);
  height: 5px;
}

body.is-search .search-filters .range-dual input[type="range"]::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  margin-top: -2px;
}

body.is-search .search-filters .range-dual input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
}

body.is-search .search-filters .range-dual__meta {
  margin-top: 0.18rem;
}

body.is-search .search-filters .range-dual__meta output,
body.is-search .search-filters .range-row output {
  font-size: 0.74rem;
}

body.is-search .search-filters .range-row {
  gap: 0.42rem;
}

body.is-search .search-filters .multi-select__summary {
  padding: 0.42rem 0.52rem;
  font-size: 0.8rem;
  border-radius: 11px;
}

body.is-search .search-filters .multi-select__panel {
  padding: 0.42rem;
  gap: 0.32rem;
  max-height: 210px;
  border-radius: 12px;
  top: calc(100% + 0.26rem);
}

body.is-search .search-filters .multi-select__panel .choice {
  font-size: 0.8rem;
  padding: 0.38rem 0.48rem;
  border-radius: 11px;
  gap: 0.42rem;
}

body.is-search .search-filters .toggleline {
  font-size: 0.78rem;
  gap: 0.38rem;
}

body.is-search .search-filters .toggleline--big input {
  width: 15px;
  height: 15px;
  transform: scale(1.05);
}

body.is-search .search-filters .city-field__geo {
  padding: 0.25rem;
}

body.is-search .search-results {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 0.25rem;
}

/* Dark scrollbar styling (WebKit/Blink) */
body.is-search .search-filters__card::-webkit-scrollbar,
body.is-search .search-results::-webkit-scrollbar {
  width: 10px;
}

body.is-search .search-filters__card::-webkit-scrollbar-track,
body.is-search .search-results::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

body.is-search .search-filters__card::-webkit-scrollbar-thumb,
body.is-search .search-results::-webkit-scrollbar-thumb {
  background: rgba(251, 113, 133, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
}

body.is-search .search-filters__card::-webkit-scrollbar-thumb:hover,
body.is-search .search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 113, 133, 0.40);
}

/* Firefox */
body.is-search .search-filters__card,
body.is-search .search-results {
  scrollbar-width: thin;
  scrollbar-color: rgba(251, 113, 133, 0.38) rgba(255, 255, 255, 0.06);
}

/* Wiadomości: wysokość jak w Szukaj — shell = viewport, treść w drugim rzędzie siatki */
body.is-messages .app-shell {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

body.is-messages .app-main {
  min-height: 0;
  overflow: hidden;
}

body.is-messages .app-main__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.is-messages .app-main__inner > #msg {
  flex-shrink: 0;
}

body.is-messages .panel-view[data-view="messages"] {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  min-width: 0;
}

body.is-messages .panel-view[data-view="messages"] > .app-main__head {
  flex-shrink: 0;
  margin-bottom: 0.45rem;
}

body.is-messages #messages-view-msg {
  flex-shrink: 0;
}

body.is-messages #messages-view-msg:empty {
  display: none;
}

body.is-messages .messages-layout.panel-messages {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  align-content: start;
  justify-items: stretch;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

body.is-messages .panel-messages {
  min-height: 0 !important;
}

body.is-messages .messages-layout {
  min-height: 0 !important;
}

body.is-messages .messages-layout > .card {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

body.is-messages .messages-sidebar {
  min-height: 0;
  min-width: 240px;
  flex-shrink: 0;
}

body.is-messages .messages-sidebar__head {
  flex-shrink: 0;
}

body.is-messages .messages-thread-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 0.25rem;
}

body.is-messages .messages-thread {
  min-height: 0 !important;
}

body.is-messages .messages-thread__empty {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

body.is-messages .messages-thread__active {
  flex: 1 1 auto;
  min-height: 0;
}

body.is-messages .messages-thread__toolbar {
  flex-shrink: 0;
}

body.is-messages .messages-thread__actions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

body.is-messages .messages-bubbles {
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior: contain;
}

body.is-messages .messages-compose {
  flex-shrink: 0;
}

body.is-messages .messages-compose textarea {
  resize: vertical;
  max-height: min(12rem, 28dvh);
}

/* Wiadomości: scrollbar w kolorystyce panelu (jak w Szukaj) */
body.is-messages .messages-thread-list::-webkit-scrollbar,
body.is-messages .messages-bubbles::-webkit-scrollbar,
body.is-messages .messages-thread__empty::-webkit-scrollbar {
  width: 10px;
}

body.is-messages .messages-thread-list::-webkit-scrollbar-track,
body.is-messages .messages-bubbles::-webkit-scrollbar-track,
body.is-messages .messages-thread__empty::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

body.is-messages .messages-thread-list::-webkit-scrollbar-thumb,
body.is-messages .messages-bubbles::-webkit-scrollbar-thumb,
body.is-messages .messages-thread__empty::-webkit-scrollbar-thumb {
  background: rgba(251, 113, 133, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
}

body.is-messages .messages-thread-list::-webkit-scrollbar-thumb:hover,
body.is-messages .messages-bubbles::-webkit-scrollbar-thumb:hover,
body.is-messages .messages-thread__empty::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 113, 133, 0.40);
}

body.is-messages .messages-thread-list,
body.is-messages .messages-bubbles,
body.is-messages .messages-thread__empty {
  scrollbar-width: thin;
  scrollbar-color: rgba(251, 113, 133, 0.38) rgba(255, 255, 255, 0.06);
}

/* Lightbox */
body.has-lightbox {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.lightbox.is-open {
  display: block;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.lightbox__dialog {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.lightbox__img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 28px 120px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 180ms ease, transform 220ms ease;
}

.lightbox__img.is-out {
  opacity: 0;
  transform: translateY(6px) scale(0.995);
}

.lightbox__img.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.12);
}

.toggleline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.82);
  user-select: none;
}

.toggleline input {
  accent-color: #fb7185;
}

.toggleline--big input {
  width: 18px;
  height: 18px;
  transform: scale(1.25);
  transform-origin: center;
}

.multi-select {
  position: relative;
}

.multi-select__summary {
  list-style: none;
  cursor: pointer;
  padding: 0.62rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 750;
}

.multi-select__summary::-webkit-details-marker {
  display: none;
}

.multi-select[open] .multi-select__summary {
  border-color: rgba(253, 164, 175, 0.35);
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.14);
}

.multi-select__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 10;
  padding: 0.6rem;
  border-radius: 16px;
  background: rgba(12, 10, 9, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 0.45rem;
  max-height: 260px;
  overflow: auto;
}

/* Panel (light): filtry + multi-select */
body:has(.app-shell).theme-light .panel-filters label {
  color: rgba(28, 25, 23, 0.86);
}

body:has(.app-shell).theme-light .panel-filters .toggleline {
  color: rgba(28, 25, 23, 0.86);
}

body:has(.app-shell).theme-light .panel-filters .toggleline input {
  accent-color: var(--accent);
}

body:has(.app-shell).theme-light .panel-filters__head {
  border-bottom-color: rgba(28, 25, 23, 0.10);
  color: rgba(28, 25, 23, 0.92);
}

body:has(.app-shell).theme-light .multi-select__summary {
  background: #fff;
  border: 1px solid var(--border);
  color: rgba(28, 25, 23, 0.92);
}

body:has(.app-shell).theme-light .multi-select[open] .multi-select__summary {
  border-color: rgba(190, 18, 60, 0.25);
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.14);
}

body:has(.app-shell).theme-light .multi-select__panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  box-shadow: 0 22px 70px rgba(28, 25, 23, 0.14);
}

body:has(.app-shell).theme-light .multi-select__panel .choice {
  background: rgba(190, 18, 60, 0.04);
  border-color: rgba(190, 18, 60, 0.10);
  color: rgba(28, 25, 23, 0.92);
}

body:has(.app-shell).theme-light .multi-select__panel .choice:hover {
  background: rgba(253, 164, 175, 0.25);
  border-color: rgba(190, 18, 60, 0.18);
}

body:has(.app-shell).theme-light .multi-select__panel::-webkit-scrollbar {
  width: 10px;
}

body:has(.app-shell).theme-light .multi-select__panel::-webkit-scrollbar-track {
  background: rgba(28, 25, 23, 0.06);
  border-radius: 999px;
}

body:has(.app-shell).theme-light .multi-select__panel::-webkit-scrollbar-thumb {
  background: rgba(190, 18, 60, 0.25);
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: 999px;
}

body:has(.app-shell).theme-light .multi-select__panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(190, 18, 60, 0.25) rgba(28, 25, 23, 0.06);
}

body:has(.app-shell).theme-dark .panel-filters label {
  color: rgba(255, 255, 255, 0.86);
}

body:has(.app-shell).theme-dark .panel-filters input:not([type="range"]),
body:has(.app-shell).theme-dark .panel-filters select {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.65rem;
}

.range-row output {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
  min-width: 4.5rem;
  text-align: right;
}

body:has(.app-shell).theme-light .range-row output {
  color: rgba(28, 25, 23, 0.72);
}

body:has(.app-shell).theme-dark input[type="range"] {
  accent-color: #fb7185;
}

.app-main input[type="range"]:focus,
.app-main input[type="range"]:focus-visible {
  outline: none;
  box-shadow: none;
}

.app-main input[type="range"] {
  -webkit-tap-highlight-color: transparent;
}

.range-dual {
  position: relative;
  isolation: isolate;
  /* Tor jako .range-dual__track (z-index 0), oba suwaki nad nim. */
  --range-dual-band: 20px;
  padding-top: var(--range-dual-band);
  --a: 0%;
  --b: 100%;
}

.range-dual__track {
  position: absolute;
  left: 0;
  right: 0;
  top: calc((var(--range-dual-band) - 6px) / 2);
  height: 6px;
  border-radius: 999px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.18) var(--a),
    rgba(251, 113, 133, 0.95) var(--a),
    rgba(251, 113, 133, 0.95) var(--b),
    rgba(255, 255, 255, 0.18) var(--b),
    rgba(255, 255, 255, 0.18) 100%
  );
}

.range-dual input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  height: var(--range-dual-band);
  padding: 0;
  margin: 0;
  border: 0;
  z-index: 1;
}

.range-dual input[type="range"]:focus,
.range-dual input[type="range"]:focus-visible {
  outline: none;
  box-shadow: none;
}

.range-dual input[type="range"]::-moz-focus-outer {
  border: 0;
}

.range-dual input[type="range"] + input[type="range"] {
  z-index: 2;
  pointer-events: none; /* enable via thumb only */
}

.range-dual input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fb7185;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  /* Wyrównanie w pionie względem 6px toru (było −5px przy wys. 16px i torze top: 5px). */
  margin-top: -3px;
}

.range-dual input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.range-dual input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fb7185;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.range-dual input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.range-dual__meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.35rem;
}

.range-dual__meta output {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
}

body:has(.app-shell).theme-light .range-dual__meta output {
  color: rgba(28, 25, 23, 0.72);
}

/* (checkline removed - radius "bez limitu" is end of slider) */

.app-main__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.app-main__title {
  margin: 0;
  font-family: Outfit, var(--font);
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.96);
}

.app-main__sub {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.85rem;
}

.profile-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #1c1917;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 42%, #f0f0ef 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-tile__top {
  --tile-media-pad: 0.78rem;
  position: relative;
  flex-shrink: 0;
  padding: var(--tile-media-pad);
  background: transparent;
}

.profile-tile__badge {
  position: absolute;
  top: calc(var(--tile-media-pad) + 0.15rem);
  left: calc(var(--tile-media-pad) + 0.15rem);
  z-index: 6;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.profile-tile__badge--new .profile-tile__badge-leaf {
  display: block;
  filter: drop-shadow(0 2px 6px rgba(20, 83, 45, 0.42));
}

.profile-tile__photo-count {
  position: absolute;
  top: calc(var(--tile-media-pad) + 0.15rem);
  right: calc(var(--tile-media-pad) + 0.15rem);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.22rem 0.42rem 0.22rem 0.34rem;
  border-radius: 8px;
  background: rgba(12, 10, 9, 0.88);
  color: #fafaf9;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.profile-tile__camera-ico {
  display: flex;
  color: inherit;
  opacity: 0.95;
}

.profile-tile__camera-ico svg {
  display: block;
}

.profile-tile__img {
  width: 100%;
  aspect-ratio: 1;
  max-height: 200px;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

.profile-tile__img--ph {
  display: grid;
  place-items: center;
  font-size: 2.8rem;
  color: rgba(253, 164, 175, 0.9);
  background: linear-gradient(145deg, rgba(253, 164, 175, 0.12), rgba(190, 18, 60, 0.08));
}

.profile-tile__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 0.48rem 0.65rem 0.52rem;
  background: transparent;
}

.profile-tile__meta {
  position: static;
  padding: 0;
  background: transparent;
}

.profile-tile__headline {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #1c1917;
}

.profile-tile__name {
  font-weight: inherit;
  color: inherit;
}

.profile-tile__comma {
  font-weight: 800;
  color: #44403c;
}

.profile-tile__age {
  font-weight: 800;
  color: #44403c;
}

.profile-tile__city {
  margin-top: 0.1rem;
  font-size: 0.68rem;
  font-weight: 500;
  color: #78716c;
  line-height: 1.25;
}

/* Blocked list tiles (panel) */
.blocked-tile {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.blocked-tile__actions {
  display: flex;
  gap: 0.5rem;
  padding-left: 0.25rem;
  padding-top: 0.15rem;
}

@media (hover: hover) and (pointer: fine) {
  .profile-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  }
}

body:has(.app-shell).theme-dark .profile-tile {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 42%, #f0f0ef 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

body:has(.app-shell).theme-dark .profile-tile:hover {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

body:has(.app-shell).theme-dark .profile-tile__body {
  background: transparent;
}

body:has(.app-shell).theme-dark .profile-tile__headline,
body:has(.app-shell).theme-dark .profile-tile {
  color: #1c1917;
}

@media (max-width: 900px) {
  .app-shell {
    width: 100%;
    margin-inline: 0;
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .app-sidebar--rail {
    width: 70px;
    padding-inline: 0.28rem;
  }

  .app-main {
    padding: 1rem 0.65rem 1.75rem;
  }
}

/* Panel: stopka niepotrzebna */
body:has(.app-shell).theme-dark footer.site-footer {
  display: none;
}

/* Panel: nie pokazuj jasnego tła body na dole */
body:has(.app-shell).theme-dark {
  background: #0c0a09;
}

/* Panel: usuń górny pasek nawigacji */
body:has(.app-shell).theme-dark header.site-header {
  display: none;
}

/* Panel: ciemna skórka prawej strony (karty + formularze) */
body:has(.app-shell).theme-dark .app-main .card {
  background: rgba(12, 10, 9, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.90);
}

body:has(.app-shell).theme-dark .app-main .empty-state {
  color: rgba(255, 255, 255, 0.72);
}

body:has(.app-shell).theme-dark .app-main h1,
body:has(.app-shell).theme-dark .app-main h2,
body:has(.app-shell).theme-dark .app-main h3 {
  color: rgba(255, 255, 255, 0.94);
}

body:has(.app-shell).theme-dark .app-main .field-hint {
  color: rgba(255, 255, 255, 0.62);
}

body:has(.app-shell).theme-dark .app-main label {
  color: rgba(255, 255, 255, 0.84);
}

body:has(.app-shell).theme-dark .app-main input[type="text"],
body:has(.app-shell).theme-dark .app-main input[type="email"],
body:has(.app-shell).theme-dark .app-main input[type="password"],
body:has(.app-shell).theme-dark .app-main input[type="date"],
body:has(.app-shell).theme-dark .app-main input[type="number"],
body:has(.app-shell).theme-dark .app-main select,
body:has(.app-shell).theme-dark .app-main textarea {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Dropdown lista opcji (systemowa) */
body:has(.app-shell).theme-dark .app-main select {
  color-scheme: dark;
}

body:has(.app-shell).theme-dark .app-main select option,
body:has(.app-shell).theme-dark .app-main select optgroup {
  background: #0c0a09;
  color: rgba(255, 255, 255, 0.92);
}

body:has(.app-shell).theme-dark .app-main input::placeholder,
body:has(.app-shell).theme-dark .app-main textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

body:has(.app-shell).theme-dark .app-main input:not([type="range"]):focus,
body:has(.app-shell).theme-dark .app-main select:focus,
body:has(.app-shell).theme-dark .app-main textarea:focus {
  outline: 2px solid rgba(253, 164, 175, 0.22);
  border-color: rgba(253, 164, 175, 0.55);
}

body:has(.app-shell).theme-dark .app-main .choice,
body:has(.app-shell).theme-dark .app-main .pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.90);
}

body:has(.app-shell).theme-dark .app-main .choice input,
body:has(.app-shell).theme-dark .app-main .pill input {
  accent-color: #fb7185;
}

body:has(.app-shell).theme-dark .app-main .photo-tile {
  background: rgba(255, 255, 255, 0.06);
}

body:has(.app-shell).theme-dark .app-main .photo-tile button.btn--danger {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
}

body:has(.app-shell).theme-dark .app-main .alert--ok {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #d1fae5;
}

body:has(.app-shell).theme-dark .app-main .alert--error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fee2e2;
}

/* Panel: jasny motyw (oparty o bazową kolorystykę strony) */
body:has(.app-shell).theme-light {
  background: var(--bg);
}

body:has(.app-shell).theme-light header.site-header,
body:has(.app-shell).theme-light footer.site-footer {
  display: none;
}

body:has(.app-shell).theme-light .app-shell {
  background: var(--bg);
  color: var(--text);
}

body:has(.app-shell).theme-light .app-sidebar--rail {
  background: rgba(255, 255, 255, 0.96);
  border-right-color: var(--border);
}

body:has(.app-shell).theme-light .app-sidebar__mark:hover {
  background: rgba(190, 18, 60, 0.06);
}

body:has(.app-shell).theme-light .app-menu--rail__sep {
  background: rgba(231, 229, 228, 0.95);
}

body:has(.app-shell).theme-light .hello-card {
  background: #ffffff;
  border-color: var(--border);
}
body:has(.app-shell).theme-light .hello-card__name {
  color: var(--text);
}
body:has(.app-shell).theme-light .hello-card__sub {
  color: rgba(87, 83, 78, 0.92);
}
body:has(.app-shell).theme-light .hello-card__avatar {
  background: rgba(236, 72, 153, 0.10);
}

body:has(.app-shell).theme-light .app-menu__item {
  color: rgba(28, 25, 23, 0.82);
}

body:has(.app-shell).theme-light .app-sidebar--rail .app-menu__item:hover,
body:has(.app-shell).theme-light .app-sidebar--rail .app-menu__btn:hover {
  background: rgba(190, 18, 60, 0.07);
  color: var(--accent);
}

body:has(.app-shell).theme-light .app-sidebar--rail .app-menu__item.is-active {
  background: rgba(253, 164, 175, 0.38);
  color: #9f1239;
  box-shadow: inset 0 0 0 1px rgba(225, 29, 72, 0.25);
}

body:has(.app-shell).theme-light .app-sidebar__railFoot {
  border-top-color: var(--border);
}

body:has(.app-shell).theme-light .app-main {
  background:
    radial-gradient(ellipse 120% 80% at 15% 20%, rgba(28, 25, 23, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 100% 75% at 95% 75%, rgba(28, 25, 23, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #f6f6f6 0%, #ffffff 45%, #f6f6f6 100%);
  color: var(--text);
}

body:has(.app-shell).theme-light .app-main .card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: 0 18px 60px rgba(28, 25, 23, 0.08);
  color: var(--text);
}

body:has(.app-shell).theme-light .app-main h1,
body:has(.app-shell).theme-light .app-main h2,
body:has(.app-shell).theme-light .app-main h3 {
  color: var(--text);
}

body:has(.app-shell).theme-light .app-main__sub {
  color: rgba(28, 25, 23, 0.62);
}

body:has(.app-shell).theme-light .app-main label {
  color: rgba(28, 25, 23, 0.86);
}

body:has(.app-shell).theme-light .app-main .field-hint {
  color: rgba(120, 113, 108, 0.95);
}

body:has(.app-shell).theme-light .app-main input[type="text"],
body:has(.app-shell).theme-light .app-main input[type="email"],
body:has(.app-shell).theme-light .app-main input[type="password"],
body:has(.app-shell).theme-light .app-main input[type="date"],
body:has(.app-shell).theme-light .app-main input[type="number"],
body:has(.app-shell).theme-light .app-main select,
body:has(.app-shell).theme-light .app-main textarea {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

body:has(.app-shell).theme-light .app-main input:not([type="range"]):focus,
body:has(.app-shell).theme-light .app-main select:focus,
body:has(.app-shell).theme-light .app-main textarea:focus {
  outline: 2px solid rgba(251, 113, 133, 0.22);
  border-color: rgba(190, 18, 60, 0.35);
}

body:has(.app-shell).theme-light input[type="range"] {
  accent-color: var(--accent);
}

/* Panel (light): czytelne zaznaczanie tekstu */
body:has(.app-shell).theme-light ::selection {
  background: rgba(253, 164, 175, 0.70);
  color: #1c1917;
}

body:has(.app-shell).theme-light input::selection,
body:has(.app-shell).theme-light textarea::selection {
  background: rgba(253, 164, 175, 0.70);
  color: #1c1917;
}

/* Panel (light): profil użytkownika – zachowaj czytelność wierszy */
body:has(.app-shell).theme-light .profile-row {
  background: rgba(190, 18, 60, 0.04);
  border: 1px solid rgba(190, 18, 60, 0.10);
}

body:has(.app-shell).theme-light .profile-row span {
  color: rgba(120, 113, 108, 0.95);
}

body:has(.app-shell).theme-light .profile-row strong {
  color: var(--text);
}

body:has(.app-shell).theme-light .profile-tag {
  background: rgba(190, 18, 60, 0.06);
  border: 1px solid rgba(190, 18, 60, 0.12);
  color: var(--accent);
}

body:has(.app-shell).theme-light .profile-msg-actions .btn--outline {
  background: #fff;
  color: var(--accent);
  border: 2px solid rgba(251, 113, 133, 0.55);
  box-shadow: 0 2px 12px rgba(190, 18, 60, 0.08);
}

body:has(.app-shell).theme-light .profile-msg-actions .btn--outline:hover {
  background: rgba(255, 228, 230, 0.85);
  border-color: rgba(190, 18, 60, 0.35);
}

body:has(.app-shell).theme-light .profile-msg-actions .btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid rgba(190, 18, 60, 0.25);
}

body:has(.app-shell).theme-light .profile-msg-actions .btn--ghost:hover {
  background: rgba(190, 18, 60, 0.06);
  border-color: rgba(190, 18, 60, 0.35);
}

/* Ustawienia */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
}

body:has(.app-shell).theme-light .toggleline {
  color: rgba(28, 25, 23, 0.86);
}

body:has(.app-shell).theme-light .toggleline input {
  accent-color: var(--accent);
}

/* Ustawienia: większy checkbox motywu */
body:has(.app-shell).theme-light #themeToggle {
  width: 18px;
  height: 18px;
  transform: scale(1.25);
  transform-origin: center;
}

.user-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.user-card__img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--accent-soft), #fce7f3);
  object-fit: cover;
  width: 100%;
  display: block;
}

.user-card__visit {
  padding: 0.4rem 1.1rem 0.45rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--accent);
  background: rgba(253, 164, 175, 0.12);
  border-top: 1px solid rgba(190, 24, 93, 0.12);
}

.user-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.user-card__body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.user-card__meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.photo-tile {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--border);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, outline-color 180ms ease;
  will-change: transform;
}

.photo-tile[draggable="true"] {
  cursor: grab;
}

.photo-tile.is-dragging {
  opacity: 0.6;
  transform: scale(1.03) rotate(-1.2deg);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
  animation: photoTileFloat 650ms ease-in-out infinite;
}

.photo-tile.is-dragover {
  outline: 2px solid rgba(251, 113, 133, 0.75);
  outline-offset: 2px;
  transform: translateY(-2px);
}

.photo-tile:active[draggable="true"] {
  cursor: grabbing;
}

@keyframes photoTileFloat {
  0% {
    transform: scale(1.03) rotate(-1.2deg) translateY(0);
  }
  50% {
    transform: scale(1.03) rotate(-1.2deg) translateY(-3px);
  }
  100% {
    transform: scale(1.03) rotate(-1.2deg) translateY(0);
  }
}

.photo-drag-ghost {
  position: fixed;
  top: 0;
  left: 0;
  width: 210px;
  height: 210px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.95;
  filter: blur(1.5px) saturate(1.05) contrast(1.05);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.65);
  transform: translate3d(-9999px, -9999px, 0);
  transition: transform 30ms linear;
}

.photo-drag-ghost img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-tile__badge {
  position: absolute;
  left: 0.45rem;
  bottom: 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-tile button {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
}

.profile-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 700px) {
  .profile-head {
    flex-direction: row;
    align-items: flex-start;
  }
}

.profile-avatar {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--accent-soft);
  flex-shrink: 0;
}

.profile-avatar--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.profile-avatar-wrap {
  position: relative;
  width: 100%;
  max-width: 220px;
  flex-shrink: 0;
  align-self: flex-start;
  overflow: visible;
}

.profile-avatar-wrap .profile-avatar {
  display: block;
}

.profile-msg-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 5;
  width: 2.85rem;
  height: 2.85rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(28, 25, 23, 0.18);
  transition: background 0.15s ease, transform 0.15s ease;
}

.profile-msg-btn__ico {
  font-size: 1.2rem;
  line-height: 1;
  display: block;
  transform: translateY(0.5px);
}

.profile-seeking-lead {
  margin: 0.2rem 0 1rem;
  padding: 0.65rem 1rem 0.72rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(190, 18, 60, 0.18);
  border-left: 4px solid var(--accent);
  background: linear-gradient(145deg, rgba(255, 228, 230, 0.92), rgba(255, 241, 242, 0.98));
  font-size: 1.02rem;
  line-height: 1.5;
  box-shadow: 0 2px 16px rgba(190, 18, 60, 0.07);
  color: #1c1917;
}

.profile-seeking-lead strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

body:has(.app-shell).theme-dark .profile-seeking-lead {
  background: linear-gradient(145deg, rgba(251, 113, 133, 0.16), rgba(190, 18, 60, 0.1));
  border-color: rgba(253, 164, 175, 0.32);
  border-left-color: #fb7185;
  color: rgba(255, 250, 251, 0.96);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.28);
}

body:has(.app-shell).theme-dark .profile-seeking-lead strong {
  color: #fecdd3;
}

.profile-msg-actions {
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.profile-msg-actions .profile-action-ico {
  width: 1.12em;
  height: 1.12em;
  flex-shrink: 0;
  display: block;
}

.profile-msg-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.04);
}

.profile-msg-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Modal wiadomości (profil osoby) */
body.msg-modal-open {
  overflow: hidden;
}

.msg-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  padding-bottom: max(0.75rem, var(--safe-bottom));
}

.msg-modal.is-hidden {
  display: none !important;
}

.msg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 12, 0.52);
  backdrop-filter: blur(4px);
}

.msg-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(92dvh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.msg-modal__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.msg-modal__back {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}

.msg-modal__back:hover {
  background: var(--accent-soft);
}

.msg-modal__peer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.msg-modal__peer-avatar-wrap {
  flex-shrink: 0;
}

.msg-modal__peer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  background: var(--accent-soft);
}

.msg-modal__peer-avatar--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-hover);
}

.msg-modal__peer-text {
  min-width: 0;
}

.msg-modal__peer-text strong {
  display: block;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-modal__peer-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.msg-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.msg-modal__hero {
  position: relative;
  background: var(--accent-soft);
}

.msg-modal__hero img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.msg-modal__hero--empty {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--accent-soft), #fff5f5);
}

.msg-modal__hero--empty::before {
  content: "♥";
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(190, 18, 60, 0.32);
}

.msg-modal__prompt {
  margin: 1rem 0.9rem 0.75rem;
  padding: 0.85rem 1rem;
  background: #f5f4f2;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.msg-modal__prompt-lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #57534e;
}

.msg-modal__footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding: 0.65rem 0.75rem 0.85rem;
  background: rgba(250, 248, 247, 0.98);
}

.msg-modal__footer .alert {
  margin-bottom: 0.5rem;
}

.msg-modal__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
}

.msg-modal__tools {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--accent);
  opacity: 0.55;
  user-select: none;
}

.msg-modal__tool-ico {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px;
}

.msg-modal__toolbar textarea {
  flex: 1 1 160px;
  min-width: 0;
  min-height: 2.75rem;
  resize: vertical;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  font: inherit;
}

.msg-modal__send {
  flex-shrink: 0;
}

@media (max-width: 420px) {
  .msg-modal__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .msg-modal__tools {
    order: 1;
  }

  .msg-modal__toolbar textarea {
    order: 0;
    flex: none;
    width: 100%;
  }

  .msg-modal__send {
    order: 2;
    width: 100%;
  }
}

.profile-details h2 {
  margin: 0 0 0.5rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.tag {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-radius: 999px;
  font-weight: 600;
}

/* Profil: wybory + zainteresowania */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.choice {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  font-weight: 650;
  color: #44403c;
  cursor: pointer;
  user-select: none;
  font-size: 0.92rem;
}

.choice input {
  margin-top: 0.1rem;
  accent-color: var(--accent);
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 650;
  color: #44403c;
  cursor: pointer;
  user-select: none;
}

.pill input {
  accent-color: var(--accent);
}

.profile-rows {
  display: grid;
  gap: 0.4rem;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: #f5f5f4;
  font-size: 0.92rem;
}

.profile-row span {
  color: var(--muted);
}

.profile-row strong {
  color: #1c1917;
  font-weight: 750;
}

/* Panel (dark): profil użytkownika */
body:has(.app-shell).theme-dark .profile-row {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

body:has(.app-shell).theme-dark .profile-row span {
  color: rgba(255, 255, 255, 0.66);
}

body:has(.app-shell).theme-dark .profile-row strong {
  color: rgba(255, 255, 255, 0.94);
}

body:has(.app-shell).theme-dark .profile-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.90);
}

body:has(.app-shell).theme-dark .profile-msg-actions .btn--outline {
  /* Nadpisanie globalnego .btn--outline (#fff) — ciemny profil w panelu */
  background: rgba(251, 113, 133, 0.16);
  border: 2px solid rgba(251, 113, 133, 0.55);
  color: rgba(255, 245, 247, 0.96);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

body:has(.app-shell).theme-dark .profile-msg-actions .btn--outline:hover {
  background: var(--accent);
  border-color: rgba(253, 164, 175, 0.85);
  color: #fff;
}

body:has(.app-shell).theme-dark .profile-msg-actions .btn--outline:focus-visible {
  outline: 2px solid rgba(253, 164, 175, 0.55);
  outline-offset: 2px;
}

body:has(.app-shell).theme-dark .profile-msg-actions .btn--ghost {
  border-color: rgba(253, 164, 175, 0.45);
  color: rgba(254, 205, 211, 0.95);
}

body:has(.app-shell).theme-dark .profile-msg-actions .btn--ghost:hover {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(253, 164, 175, 0.7);
  color: #fff;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.profile-tag {
  display: inline-flex;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 700;
  font-size: 0.85rem;
}

.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0.25rem calc(0.5rem + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.mobile-nav a {
  flex: 1;
  text-align: center;
  padding: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  max-width: 5.5rem;
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.mobile-nav .icon {
  display: block;
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 0.1rem;
}

@media (min-width: 900px) {
  .mobile-nav {
    display: none;
  }
}

.desktop-only-nav {
  display: none;
}

@media (min-width: 900px) {
  .desktop-only-nav {
    display: flex;
  }
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.filters-bar .field {
  flex: 1 1 140px;
  min-width: 120px;
}

.filters-bar label {
  margin-bottom: 0.25rem;
}

footer.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (min-width: 900px) {
  footer.site-footer {
    margin-bottom: 0;
  }
}

/* —— Landing (styl zbliżony do Datera) —— */
.site-header--landing {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: #fce7f3;
}

.site-header__auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Wyższa specyficzność niż .nav-main a (muted) — tekst „Załóż konto” zawsze biały */
.site-header__auth > a.btn--primary,
.site-header__auth a.btn.btn--primary {
  color: #fff;
}

.site-header__auth > a.btn--primary:hover,
.site-header__auth a.btn.btn--primary:hover {
  color: #fff;
}

.landing .landing-title,
.landing .landing-heading,
.landing .landing-cta-band__title {
  font-family: Outfit, var(--font);
}

.landing-hero {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

/* Hero — zdjęcie + delikatna ciemna poświata po lewej (tekst); tło nieruchome na desktopie */
.landing-hero-section {
  background-color: #1c1412;
  background-image: linear-gradient(
      100deg,
      rgba(12, 10, 9, 0.82) 0%,
      rgba(12, 10, 9, 0.5) 36%,
      rgba(12, 10, 9, 0.18) 58%,
      transparent 82%
    ),
    url("../img/hero-welcome-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

@media (hover: hover) and (pointer: fine) {
  .landing-hero-section {
    background-attachment: fixed;
  }
}

.landing-hero-section .landing-kicker {
  color: #fda4af;
}

.landing-hero-section .landing-title {
  color: #fafaf9;
}

.landing-hero-section .landing-title__accent {
  background: linear-gradient(120deg, #fecdd3, #fb7185, #fda4af);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-hero-section .landing-lead {
  color: #d6d3d1;
}

.landing-hero-section .landing-stat__num {
  color: #fafaf9;
}

.landing-hero-section .landing-stat__label {
  color: #a8a29e;
}

.landing-hero-section .btn--outline {
  background: rgba(255, 255, 255, 0.06);
  color: #fafaf9;
  border-color: rgba(253, 164, 175, 0.55);
  box-shadow: none;
}

.landing-hero-section .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fda4af;
}

.landing-hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 960px) {
  .landing-hero__grid {
    grid-template-columns: minmax(0, min(38rem, 100%)) 1fr;
    gap: 2rem;
  }

  .landing-hero__text {
    grid-column: 1;
  }
}

.landing-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e11d48;
  margin: 0 0 0.75rem;
}

.landing-kicker--center {
  text-align: center;
}

.landing-title {
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.landing-title__accent {
  background: linear-gradient(120deg, #fb7185, #be123c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-lead {
  font-size: 1.08rem;
  color: #57534e;
  max-width: 34rem;
  margin: 0 0 1.75rem;
  line-height: 1.65;
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn--outline {
  background: #fff;
  color: #be123c;
  border: 2px solid #fda4af;
  box-shadow: 0 2px 12px rgba(190, 18, 60, 0.08);
}

.btn--outline:hover {
  background: #fff1f2;
  border-color: #fb7185;
}

.btn--light {
  background: #fff;
  color: #9f1239;
  font-weight: 700;
}

.btn--light:hover {
  background: #fff1f2;
}

.landing-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.landing-hero__stats .landing-stat__num {
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .landing-hero__stats .landing-stat:hover .landing-stat__num {
    transform: translateY(-10px);
  }
}

.landing-stat__num {
  display: block;
  font-family: Outfit, var(--font);
  font-size: 2rem;
  font-weight: 800;
  color: #1c1917;
  line-height: 1;
}

.js-count-up {
  font-variant-numeric: tabular-nums;
}

.landing-stat__label {
  font-size: 0.88rem;
  color: var(--muted);
}

.landing-stat small {
  font-size: 0.75rem;
  opacity: 0.85;
}

.landing-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.landing-section--alt {
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

/* „Dlaczego my” — zdjęcie + nakładka (jasne zdjęcie / contre-jour — czytelny tekst) */
.landing-why-section {
  position: relative;
  z-index: 0;
  background-color: #2a1810;
  background-image: linear-gradient(180deg, rgba(18, 12, 10, 0.55) 0%, rgba(18, 12, 10, 0.42) 40%, rgba(18, 12, 10, 0.72) 100%),
    radial-gradient(ellipse 95% 75% at 50% 35%, rgba(12, 10, 9, 0.45) 0%, transparent 65%),
    url("../img/why-us-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

@media (hover: hover) and (pointer: fine) {
  .landing-why-section {
    background-attachment: fixed;
  }
}

.landing-why-section .landing-kicker {
  color: #fda4af;
}

.landing-why-section .landing-heading {
  color: #fafaf9;
}

.landing-why-section .landing-heading em {
  color: #fecdd3;
}

.landing-why-section .landing-title__accent {
  background: linear-gradient(120deg, #fecdd3, #fb7185, #fda4af);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-why-section .landing-copy {
  color: #e7e5e4;
}

.landing-why-section .landing-bar__top {
  color: #f5f5f4;
}

.landing-why-section .landing-bar__top strong {
  color: #fda4af;
}

.landing-why-section .landing-bar__track {
  background: rgba(255, 255, 255, 0.22);
}

.landing-why-section .landing-narrow {
  position: relative;
  z-index: 1;
}

.landing-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .landing-split {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
  }
}

.landing-split__visual {
  text-align: center;
}

.landing-split__visual img {
  max-width: min(100%, 300px);
  margin-inline: auto;
}

/* O nas — serduszko: lekki obrót + powiększenie po najechaniu */
#o-nas .landing-split__visual {
  display: inline-block;
  max-width: 100%;
  padding: 0.35rem;
  border-radius: 1.25rem;
}

#o-nas .landing-split__visual img {
  transform-origin: 50% 55%;
  transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1), filter 0.45s ease;
}

@media (hover: hover) and (pointer: fine) {
  #o-nas .landing-split__visual:hover img {
    transform: rotate(-14deg) scale(1.07);
    filter: drop-shadow(0 14px 28px rgba(190, 18, 60, 0.22));
  }
}

@media (prefers-reduced-motion: reduce) {
  #o-nas .landing-split__visual img {
    transition: none;
  }

  #o-nas .landing-split__visual:hover img {
    transform: none;
    filter: none;
  }
}

.landing-heading {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.landing-heading em {
  font-style: normal;
  color: #e11d48;
}

.landing-heading--center {
  text-align: center;
}

.landing-copy {
  color: #57534e;
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.landing-copy--center {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

.landing-copy--mb {
  margin-bottom: 2.5rem;
}

.landing-narrow {
  max-width: 720px;
  margin-inline: auto;
}

.landing-bars {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.landing-bar__top {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.landing-bar__top strong {
  color: #e11d48;
  font-family: Outfit, var(--font);
}

.landing-bar__track {
  height: 10px;
  border-radius: 999px;
  background: #fce7f3;
  overflow: hidden;
}

.landing-bar__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fb7185, #be123c);
}

.landing-bars .landing-bar__fill {
  width: 0;
  max-width: 100%;
  transition: width 2.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-bars--visible .landing-bar__fill {
  width: var(--fill, 0%);
}

.landing-bars--visible .landing-bar:nth-child(1) .landing-bar__fill {
  transition-delay: 0.1s;
}

.landing-bars--visible .landing-bar:nth-child(2) .landing-bar__fill {
  transition-delay: 0.36s;
}

.landing-bars--visible .landing-bar:nth-child(3) .landing-bar__fill {
  transition-delay: 0.62s;
}

@media (prefers-reduced-motion: reduce) {
  .landing-bars .landing-bar__fill {
    transition-duration: 0.01ms;
    transition-delay: 0ms !important;
  }
}

/* Funkcje — bento, ciepła paleta jak reszta landingu (hero / dlaczego my) */
.landing-features-section {
  position: relative;
  z-index: 0;
  overflow: hidden;
  --features-fg: #fafaf9;
  --features-muted: #c9b5bc;
  background-color: #14060d;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(253, 164, 175, 0.06) 1px, transparent 0),
    radial-gradient(ellipse 92% 58% at 10% 18%, rgba(251, 113, 133, 0.16) 0%, transparent 46%),
    radial-gradient(ellipse 68% 52% at 96% 32%, rgba(190, 24, 93, 0.22) 0%, transparent 52%),
    radial-gradient(ellipse 88% 48% at 48% 102%, rgba(12, 4, 8, 0.88) 0%, transparent 52%),
    linear-gradient(198deg, #0f0509 0%, #1a0a12 40%, #241018 70%, #12060c 100%);
  background-size: 18px 18px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-position: 0 0, center, center, center, center;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: scroll;
}

@media (hover: hover) and (pointer: fine) {
  .landing-features-section {
    background-attachment: fixed;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-features-section {
    background-attachment: scroll;
  }
}

.landing-features-section .landing-kicker {
  color: #fda4af;
}

.landing-features-section .landing-heading {
  color: var(--features-fg);
}

.landing-features-section .landing-heading em {
  color: #fecdd3;
}

.landing-features-section .landing-title__accent {
  background: linear-gradient(120deg, #fecdd3, #fb7185, #fda4af);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-features-section .landing-copy {
  color: var(--features-muted);
}

.landing-features {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 1fr;
  max-width: 1120px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .landing-features {
    gap: 1.75rem;
  }
}

.landing-feature-bento {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1.15rem);
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .landing-feature-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-feature-tile--profile {
    grid-column: 1 / -1;
    min-height: 200px;
  }

  .landing-feature-tile--spark {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .landing-feature-bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(108px, auto);
    gap: 1.1rem 1rem;
  }

  .landing-feature-tile--profile {
    grid-column: 1 / span 5;
    grid-row: 1 / span 2;
    min-height: 268px;
  }

  .landing-feature-tile--chat {
    grid-column: 6 / span 4;
    grid-row: 1;
  }

  .landing-feature-tile--premium {
    grid-column: 10 / span 3;
    grid-row: 1;
  }

  .landing-feature-tile--nearby {
    grid-column: 6 / span 4;
    grid-row: 2;
  }

  .landing-feature-tile--shield {
    grid-column: 10 / span 3;
    grid-row: 2;
  }

  .landing-feature-tile--spark {
    grid-column: 1 / -1;
    grid-row: 3;
    min-height: 118px;
  }

  .landing-feature-tile--spark .landing-feature-tile__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
  }

  .landing-feature-tile--spark .landing-feature-tile__icon {
    margin-bottom: 0;
  }

  .landing-feature-tile--spark .landing-feature-tile__title {
    margin-bottom: 0;
    flex: 0 0 auto;
  }

  .landing-feature-tile--spark .landing-feature-tile__hint {
    flex: 1 1 12rem;
    margin: 0;
    max-width: none;
  }
}

.landing-feature-tile {
  position: relative;
  margin: 0;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    155deg,
    rgba(255, 252, 251, 0.14) 0%,
    rgba(255, 241, 242, 0.06) 42%,
    rgba(28, 10, 18, 0.42) 100%
  );
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.landing-feature-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.52;
  background: var(--tile-glow, radial-gradient(circle at 20% 15%, rgba(253, 164, 175, 0.32), transparent 58%));
}

.landing-feature-tile--tone-sky {
  --tile-glow: radial-gradient(circle at 22% 12%, rgba(254, 205, 211, 0.45), transparent 55%);
}

.landing-feature-tile--tone-teal {
  --tile-glow: radial-gradient(circle at 82% 16%, rgba(251, 113, 133, 0.38), transparent 52%);
}

.landing-feature-tile--tone-violet {
  --tile-glow: radial-gradient(circle at 48% 8%, rgba(190, 24, 93, 0.35), transparent 50%);
}

.landing-feature-tile--tone-amber {
  --tile-glow: radial-gradient(circle at 14% 88%, rgba(252, 211, 77, 0.22), transparent 55%);
}

.landing-feature-tile--tone-slate {
  --tile-glow: radial-gradient(circle at 88% 78%, rgba(214, 211, 209, 0.2), transparent 55%);
}

.landing-feature-tile--tone-indigo {
  --tile-glow: radial-gradient(circle at 38% 22%, rgba(159, 18, 57, 0.42), transparent 58%);
}

.landing-feature-tile__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: clamp(1.1rem, 2.8vw, 1.45rem) clamp(1.1rem, 2.8vw, 1.5rem);
}

.landing-feature-tile--premium .landing-feature-tile__inner,
.landing-feature-tile--shield .landing-feature-tile__inner {
  justify-content: center;
  min-height: 7.5rem;
}

@media (min-width: 1024px) {
  .landing-feature-tile--premium .landing-feature-tile__inner,
  .landing-feature-tile--shield .landing-feature-tile__inner {
    min-height: 0;
  }
}

.landing-feature-tile__icon {
  width: clamp(3rem, 7vw, 3.75rem);
  height: clamp(3rem, 7vw, 3.75rem);
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  background: linear-gradient(145deg, rgba(255, 241, 242, 0.95) 0%, rgba(254, 205, 211, 0.75) 55%, rgba(255, 228, 230, 0.88) 100%);
  border: 1px solid rgba(253, 164, 175, 0.35);
  box-shadow: 0 8px 24px rgba(190, 18, 60, 0.18);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease;
}

.landing-feature-tile__icon img {
  width: 62%;
  height: 62%;
  max-width: 52px;
  max-height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.landing-feature-tile__title {
  margin: 0 0 0.35rem;
  font-family: Outfit, var(--font);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  line-height: 1.15;
  color: #fafafa;
}

.landing-feature-tile__hint {
  margin: 0;
  font-size: clamp(0.84rem, 1.8vw, 0.92rem);
  line-height: 1.45;
  color: rgba(245, 245, 244, 0.78);
  max-width: 42ch;
}

@media (hover: hover) and (pointer: fine) {
  .landing-feature-tile:hover {
    transform: translateY(-7px) scale(1.015);
    border-color: rgba(253, 164, 175, 0.35);
    box-shadow:
      0 22px 50px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(251, 113, 133, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .landing-feature-tile:hover .landing-feature-tile__icon {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-feature-tile,
  .landing-feature-tile__icon {
    transition: none;
  }

  .landing-feature-tile:hover,
  .landing-feature-tile:hover .landing-feature-tile__icon {
    transform: none;
  }
}

.landing-feature-cta--center {
  justify-content: center;
  text-align: center;
}

.landing-feature-cta--center .landing-feature-cta__copy {
  flex: 0 1 30rem;
}

.landing-feature-cta--center .btn {
  margin-inline: auto;
}

.landing-feature {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  margin: 0;
  padding: 1.35rem 1.4rem;
  border: none;
  border-radius: 20px;
  background: rgba(255, 252, 252, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 44px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .landing-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }
}

.landing-feature--hero {
  position: relative;
  gap: 1.35rem;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.25rem);
  border: none;
  border-radius: 22px;
  background: rgba(255, 254, 254, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.landing-feature--hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  top: 1.15rem;
  bottom: 1.15rem;
  width: 5px;
  border-radius: 0 5px 5px 0;
  background: linear-gradient(180deg, #fda4af, #e11d48 55%, #9f1239);
  box-shadow: 2px 0 14px rgba(225, 29, 72, 0.35);
}

.landing-feature--hero .landing-feature__icon,
.landing-feature--hero .landing-feature__body {
  position: relative;
  z-index: 1;
}

.landing-feature--hero .landing-feature__icon {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 18px;
  border: none;
  background: linear-gradient(145deg, #fff5f6 0%, #fecdd3 100%);
  box-shadow: 0 6px 22px rgba(190, 18, 60, 0.18);
}

.landing-feature--hero .landing-feature__icon img {
  width: 56px;
  height: 56px;
}

.landing-feature--hero .landing-feature__title {
  font-size: clamp(1.2rem, 2.2vw, 1.35rem);
}

.landing-feature__icon {
  flex-shrink: 0;
  width: 3.35rem;
  height: 3.35rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: none;
  background: linear-gradient(155deg, #ffe4e9, #fecdd3);
  box-shadow: 0 4px 16px rgba(190, 18, 60, 0.14);
}

.landing-feature__icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.landing-feature__body {
  min-width: 0;
}

.landing-feature__title {
  font-family: Outfit, var(--font);
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #1c1917;
  line-height: 1.25;
}

.landing-feature__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.landing-feature__text code {
  font-size: 0.85em;
  background: #fff1f2;
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.landing-feature-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.45rem 1.6rem;
  border: none;
  border-radius: 22px;
  background: linear-gradient(115deg, #9f1239 0%, #be123c 38%, #e11d48 72%, #fb7185 100%);
  color: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.landing-feature-cta__copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.landing-feature-cta__title {
  font-family: Outfit, var(--font);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: #fff;
}

.landing-feature-cta__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.landing-feature-cta .btn {
  flex-shrink: 0;
}

.landing-feature-cta--cool {
  background: linear-gradient(118deg, #881337 0%, #9f1239 22%, #be123c 48%, #e11d48 74%, #fb7185 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease;
}

@media (hover: hover) and (pointer: fine) {
  .landing-feature-cta--cool:hover {
    transform: translateY(-4px);
    box-shadow:
      0 26px 56px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-feature-cta--cool {
    transition: none;
  }

  .landing-feature-cta--cool:hover {
    transform: none;
  }

  .landing-feature {
    transition: none;
  }

  .landing-feature:hover {
    transform: none;
  }
}

.landing-faq {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.landing-faq__item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.25rem 1rem;
  background: #fff;
}

.landing-faq__item summary {
  transition: color 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .landing-faq__item {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  }

  .landing-faq__item:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 113, 133, 0.45);
    box-shadow: 0 16px 40px rgba(28, 25, 23, 0.08);
  }

  .landing-faq__item:hover summary {
    color: #9f1239;
  }

  .landing-faq__item:hover summary::after {
    color: #9f1239;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-faq__item,
  .landing-faq__item summary {
    transition: none;
  }
}

.landing-faq__item summary {
  font-weight: 700;
  cursor: pointer;
  padding: 0.85rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.landing-faq__item summary::-webkit-details-marker {
  display: none;
}

.landing-faq__item summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 500;
  color: #e11d48;
  line-height: 1;
}

.landing-faq__item[open] summary::after {
  content: "−";
}

.landing-faq__item p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ: wrapper treści do animacji JS (bez JS dalej działa natywnie) */
.landing-faq__item > .js-faq-content {
  padding-bottom: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .landing-faq__item > .js-faq-content {
    transition: none;
  }
}

/* Tło pod cennik — nieruchome względem okna przy przewijaniu (na mobile często scroll) */
.landing-pricing-section {
  position: relative;
  z-index: 0;
  --pricing-fg: #fafaf9;
  --pricing-muted: #a8a29e;
  background-color: #0c0a09;
  background-image: radial-gradient(ellipse 120% 70% at 20% 30%, rgba(251, 113, 133, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 95% 75%, rgba(244, 63, 94, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(190, 18, 60, 0.15) 0%, transparent 45%),
    linear-gradient(165deg, #0c0a09 0%, #1c1917 42%, #292524 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

@media (hover: hover) and (pointer: fine) {
  .landing-pricing-section {
    background-attachment: fixed;
  }
}

.landing-pricing-section .landing-kicker {
  color: #fda4af;
}

.landing-pricing-section .landing-heading {
  color: var(--pricing-fg);
}

.landing-pricing-section .landing-title__accent {
  background: linear-gradient(120deg, #fecdd3, #fb7185, #fda4af);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-pricing-section .landing-copy {
  color: var(--pricing-muted);
}

.landing-pricing {
  display: grid;
  gap: 1.5rem;
  max-width: 920px;
  margin-inline: auto;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

@media (min-width: 800px) {
  .landing-pricing {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.landing-price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 12px 40px rgba(28, 25, 23, 0.06);
  display: flex;
  flex-direction: column;
}

.landing-price-card--featured {
  border: 2px solid #fb7185;
  background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
  box-shadow: 0 20px 50px rgba(190, 18, 60, 0.14);
}

.landing-price-card__badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  background: #f5f5f4;
  color: #57534e;
}

.landing-price-card__badge--hot {
  background: linear-gradient(90deg, #fecdd3, #fda4af);
  color: #9f1239;
}

.landing-price-card__name {
  font-family: Outfit, var(--font);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.landing-price-card__price {
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.landing-price-card__amount {
  font-family: Outfit, var(--font);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #1c1917;
}

.landing-price-card--featured .landing-price-card__amount {
  background: linear-gradient(120deg, #e11d48, #be123c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-price-card__period {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.landing-price-card__lead {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: #57534e;
  line-height: 1.55;
}

.landing-price-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: #44403c;
}

.landing-price-card__list li {
  position: relative;
  padding-left: 1.5rem;
}

.landing-price-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px #dcfce7;
}

.landing-price-card--featured .landing-price-card__list li::before {
  background: #e11d48;
  box-shadow: 0 0 0 3px #ffe4e6;
}

.landing-price-card__cta {
  margin-top: auto;
  padding-top: 1.5rem;
}

.landing-price-card__note {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  min-height: 3.15rem;
}

.landing-pricing-section .landing-price-card__note {
  color: #a8a29e;
}

.landing-price-card--featured .landing-price-card__note {
  color: #78716c;
}

@media (min-width: 800px) {
  .landing-price-card__btn.btn--block {
    min-height: 3.35rem;
    padding-block: 0.75rem;
    font-size: 0.92rem;
    line-height: 1.25;
    text-align: center;
  }
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.landing-cta-band {
  background: linear-gradient(110deg, #be123c 0%, #fb7185 50%, #f97316 100%);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  margin-bottom: 0;
  color: #fff;
}

.landing-cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.landing-cta-band__title {
  font-family: Outfit, var(--font);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: #fff;
}

.landing-cta-band__text {
  margin: 0;
  opacity: 0.95;
  max-width: 28rem;
  line-height: 1.55;
}

/* Wyższa specyficzność niż footer.site-footer — bez białej szczeliny nad stopką */
footer.site-footer.site-footer--dark {
  margin-top: 0;
  background: #1c1917;
  color: #a8a29e;
  border-top: none;
  padding: 2.5rem 0 2rem;
  text-align: left;
}

footer.site-footer.site-footer--dark a {
  color: #fda4af;
}

footer.site-footer.site-footer--dark a:hover {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

.site-footer__brand {
  font-family: Outfit, var(--font);
  font-size: 1.15rem;
  color: #fff;
  display: block;
  margin-bottom: 0.5rem;
}

.site-footer__muted {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.site-footer__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #78716c;
  margin: 0 0 0.65rem;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.92rem;
}

body:has(.landing-hero) {
  padding-bottom: 0;
}

@media (min-width: 900px) {
  body:has(.landing-hero) {
    padding-bottom: 0;
  }
}

/* Dodatkowe miejsce pod dolną nawigację tylko tam, gdzie ona istnieje */
body:has(.mobile-nav) {
  padding-bottom: calc(4.5rem + var(--safe-bottom));
}

@media (min-width: 900px) {
  body:has(.mobile-nav) {
    padding-bottom: 0;
  }
}

/* Auth pages: stopka zawsze na dole (sticky footer) */
body:has(.auth-page) {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body:has(.auth-page) main.auth-page {
  flex: 1;
}

body:has(.auth-page) footer.site-footer {
  margin-top: auto;
}
