:root {
  --bg: #090a0f;
  --bg-card: #12141f;
  --bg-card-hover: #171a28;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(217, 56, 90, 0.4);
  --text: #f5f5f8;
  --muted: #9fa3b5;
  --muted-light: #c5c8dc;
  --accent: #d9385a;
  --accent-hover: #e6476b;
  --accent-light: #f2879d;
  --online: #22c55e;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: 
    radial-gradient(ellipse 70% 50% at 20% 12%, rgba(217, 56, 90, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 35%, rgba(140, 35, 65, 0.1), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 90%, rgba(217, 56, 90, 0.08), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

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

button {
  font: inherit;
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .wrap {
    padding: 0 24px;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* TYPOGRAPHY */
.section-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  color: var(--accent);
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
  line-height: 1.18;
}

.section-title em,
.hero-title em,
.bottom-cta__title em,
.logo__text em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--accent-light);
  font-size: 1.06em;
  text-shadow: 0 0 24px rgba(242, 135, 157, 0.28);
}

/* ANIMACJE ROZWIJANE / SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* TOP BAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 10, 15, 0.84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(217, 56, 90, 0.4);
}

.logo__text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.badge18 {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.badge18-inline {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: 1px;
}

/* PILL WITH PULSING GREEN DOT */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #86efac;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.08);
}

.dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--online);
  flex-shrink: 0;
}

.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--online);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* STATUS PILL (ONLINE) */
.tile__status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(9, 10, 15, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f2f2f5;
}

.tile__status-pill .dot {
  width: 6px;
  height: 6px;
}

/* HERO SECTION */
.hero-wrap {
  padding-top: 24px;
  padding-bottom: 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.hero-title {
  margin: 14px 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 7.5vw, 50px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero-desc {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 520px;
}

/* CTA CARD (MAIN BOX) */
.cta-card {
  padding: 20px 16px;
  background: #12141f;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
}

@media (min-width: 480px) {
  .cta-card {
    padding: 24px 20px;
  }
}

.cta-card__step {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 6px;
}

.cta-card__title {
  margin: 0;
  font-size: 18.5px;
  font-weight: 700;
  color: var(--text);
}

.cta-card__sub {
  margin: 4px 0 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ADAPTIVE AGE BUTTONS */
.age-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 420px) {
  .age-buttons {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* BUTTONS */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

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

.btn--cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #d9385a 0%, #b32646 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 20px rgba(217, 56, 90, 0.35);
  text-align: left;
}

.btn--cta:hover {
  background: linear-gradient(135deg, #e44467 0%, #c42b4e 100%);
  box-shadow: 0 8px 24px rgba(217, 56, 90, 0.5);
  transform: translateY(-1px);
}

.btn__text {
  display: flex;
  flex-direction: column;
}

.btn__age {
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.1;
}

.btn__age small {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
}

.btn__hint {
  font-size: 11.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}

.btn__arrow {
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.2s ease;
  margin-left: 6px;
}

.btn--cta:hover .btn__arrow {
  transform: translateX(3px);
}

.cta-card__badges {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--muted);
}

.cta-card__badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta-card__badges svg {
  color: var(--accent);
}

/* FLOATING STACKED CARDS (HERO RIGHT - DESKTOP ONLY) */
.hero-right {
  display: none;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.cards-stack {
  position: relative;
  width: 320px;
  height: 400px;
  animation: floatStack 6s ease-in-out infinite;
}

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

.stack-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7);
  padding: 14px;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.stack-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.92;
  border-radius: var(--radius-lg);
}

.stack-card .tile__status-pill {
  position: relative;
  z-index: 2;
}

.stack-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 14px 14px;
  background: linear-gradient(to top, rgba(9, 10, 15, 0.95) 25%, transparent 100%);
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.stack-card__name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.stack-card__sub {
  font-size: 11.5px;
  color: var(--muted-light);
  margin-top: 2px;
}

.stack-card--1 {
  background: radial-gradient(circle at 65% 35%, rgba(130, 45, 65, 0.5), #161824 85%);
  transform: rotate(-7deg) translate(-25px, 20px);
  z-index: 1;
}

.stack-card--2 {
  background: radial-gradient(circle at 75% 30%, rgba(120, 60, 45, 0.45), #181720 85%);
  transform: rotate(6deg) translate(25px, -15px);
  z-index: 2;
}

.stack-card--3 {
  background: radial-gradient(circle at 50% 30%, rgba(145, 45, 75, 0.6), #141622 85%);
  transform: rotate(-1deg) translate(0, 8px);
  z-index: 3;
}

/* SECTION COMMONS */
.section {
  padding-top: 48px;
}

@media (min-width: 768px) {
  .section {
    padding-top: 64px;
  }
}

.section__head {
  margin-bottom: 18px;
}

.section__head--between {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.online-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted-light);
  font-weight: 500;
}

/* GRID: 8 PROFILI SPOŁECZNOŚCI */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 600px) {
  .grid {
    gap: 14px;
  }
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 480px) {
  .tile {
    padding: 12px;
  }
}

.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.7);
}

.tile__bg-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.tile:hover .tile__bg-glow {
  opacity: 1.15;
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.92;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.tile:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.tile__header {
  position: relative;
  z-index: 2;
}

.tile__footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(to top, rgba(9, 10, 15, 0.98) 15%, rgba(9, 10, 15, 0.75) 65%, transparent 100%);
  margin: -10px;
  padding: 38px 10px 10px;
}

@media (min-width: 480px) {
  .tile__footer {
    margin: -12px;
    padding: 42px 12px 12px;
    gap: 5px;
  }
}

.tile__title {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15.5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

@media (min-width: 480px) {
  .tile__title {
    font-size: 17px;
  }
}

.tile__sub {
  font-size: 11px;
  color: var(--muted-light);
  line-height: 1.2;
}

@media (min-width: 480px) {
  .tile__sub {
    font-size: 12px;
  }
}

.tile__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e4ed;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
  width: 100%;
  margin-top: 4px;
}

@media (min-width: 480px) {
  .tile__btn {
    font-size: 12px;
    padding: 7px 12px;
  }
}

.tile:hover .tile__btn,
.tile:active .tile__btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* TRZY KROKI (JAK TO DZIAŁA) */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.step-card {
  display: flex;
  flex-direction: column;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 6px;
}

.step-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.step-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* FAQ ACCORDION (PŁYNNE ROZWIJANIE) */
.faq {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease;
}

@media (min-width: 480px) {
  .faq-question {
    font-size: 16px;
    padding: 18px 0;
  }
}

.faq-question:hover {
  color: #fff;
}

.faq-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

/* PŁYNNE PRZEJŚCIE CSS GRID DLA ROZWIJANEJ ODPOWIEDZI */
.faq-answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-answer-wrapper {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-inner p {
  padding-bottom: 16px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* DOLNY BOKS CTA */
.section--bottom-cta {
  padding-top: 40px;
  padding-bottom: 16px;
}

.bottom-cta {
  padding: 36px 16px;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(217, 56, 90, 0.2), #11131e 80%);
  border: 1px solid rgba(217, 56, 90, 0.25);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7);
}

@media (min-width: 600px) {
  .bottom-cta {
    padding: 48px 24px;
  }
}

.bottom-cta__title {
  margin: 6px 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 5.5vw, 42px);
  font-weight: 600;
  line-height: 1.15;
}

.bottom-cta__sub {
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 440px;
}

.age-buttons--bottom {
  max-width: 440px;
  margin: 0 auto;
}

/* FOOTER */
.footer {
  margin-top: 40px;
  padding: 32px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer__age {
  margin: 0 0 16px;
  font-size: 13px;
}

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 12px;
}

.link {
  background: none;
  border: 0;
  padding: 4px;
  color: var(--muted-light);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  transition: color 0.15s ease;
}

.link:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.footer__copy {
  margin: 0;
  font-size: 12px;
  color: #64687d;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade 0.2s ease;
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 18px calc(20px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  text-align: center;
  animation: up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: #131522;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal__panel--text {
  max-width: 620px;
  text-align: left;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-light);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.modal__img {
  width: 88px;
  height: 88px;
  margin: 0 auto 10px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 6px 18px rgba(217, 56, 90, 0.35);
}

.modal__icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #86efac;
  margin-bottom: 8px;
}

.modal h2 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 22px;
}

.modal__sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}

.modal__note {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}

.legal h3 {
  font-size: 15px;
  margin: 16px 0 4px;
}

.legal p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

@keyframes fade {
  from { opacity: 0; }
}

@keyframes up {
  from { transform: translateY(20px); opacity: 0; }
}

/* BUTTON LOADING & DIMMED STATES */
.btn.is-loading {
  pointer-events: none;
  opacity: 0.9;
}

.btn.is-loading .btn__arrow {
  display: none;
}

.btn.is-loading::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

.btn.is-dimmed {
  opacity: 0.45;
  pointer-events: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* DESKTOP BREAKPOINTS (768px+) */
@media (min-width: 768px) {
  .hero-wrap {
    padding-top: 50px;
    padding-bottom: 36px;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 44px;
  }

  .hero-right {
    display: flex;
  }

  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .bottom-cta {
    padding: 54px 32px;
  }

  .modal {
    align-items: center;
  }

  .modal__panel {
    border-radius: 22px;
    padding-bottom: 24px;
  }
}

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

/* PASEK MINIATUR NA MOBILE (<768px) */
.mobile-avatars {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-avatars__stack {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.mobile-avatars__stack img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
  background: var(--bg-card);
}

.mobile-avatars__stack img + img {
  margin-left: -10px;
}

.mobile-avatars__dot {
  position: absolute;
  right: -2px;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
}

.mobile-avatars__text {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--muted-light);
}

/* STICKY BOTTOM BAR NA MOBILE (<768px) */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: rgba(15, 17, 26, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.55);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-bar.is-visible {
  transform: translateY(0);
}

.sticky-bar__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
}

.sticky-bar__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-light);
  text-align: center;
}

.sticky-bar__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn--sticky {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #d9385a 0%, #b32646 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(217, 56, 90, 0.35);
}

.btn--sticky:hover {
  background: linear-gradient(135deg, #e44467 0%, #c42b4e 100%);
}

/* STAN SPRAWDZANIA W MODALU PROFILU */
.modal__checking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px auto 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #86efac;
  font-size: 13px;
  font-weight: 600;
}

.modal__checking[hidden],
.modal__ready[hidden] {
  display: none;
}

.modal__ready {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.modal__ready.is-shown {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .mobile-avatars,
  .sticky-bar {
    display: none;
  }
}
