/* ── Reset & root ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --c1: #0cb5d2;
  --c2: #531159;
  --grad:     linear-gradient(135deg, var(--c1), var(--c2));
  --grad-rev: linear-gradient(135deg, var(--c2), var(--c1));
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius-xl:  1rem;
  --radius-2xl: 1.5rem;
  --shadow-lg:  0 10px 40px -10px rgba(0,0,0,.15);
  --shadow-2xl: 0 25px 60px -15px rgba(0,0,0,.2);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* ── Powłoka podstron treściowych ──────────────────
     Wspólne wymiary dla contact / support / blog / wpis. Trzymane tutaj,
     bo cztery kopie tych samych liczb w czterech plikach już raz się
     rozjechały: breadcrumb zaczynał się w trzech różnych miejscach,
     a blog był o 340 px szerszy od starszych podstron. */
  /* Nagłówek (breadcrumb + hero) trzyma się siatki navbara, żeby ścieżka
     zaczynała się dokładnie pod logo. .container niżej czyta te same
     tokeny, więc navbar i podstrony nie mogą się rozjechać.

     UWAGA: pliki z css/ nie mają wersji w nazwie, a Apache trzyma je
     godzinę (patrz .htaccess). Arkusz strony potrafi więc dojechać nowy,
     gdy ten jest jeszcze ze starego cache'u — a nieznane var() to
     wartość nieprawidłowa, czyli max-width wraca do "none" i układ
     rozjeżdża się na całą szerokość. Dlatego każde var() na wymiar ma
     wartość zapasową. */
  --shell-max:     1400px;
  --shell-gutter:  clamp(1rem, 4vw, 3rem);

  /* Treść ma własną miarę: 760px to ok. 75 znaków w wierszu, czyli tyle,
     ile się wygodnie czyta. Nagłówek jest szerszy i tak ma być. */
  --page-max:      760px;
  --page-gutter:   1.5rem;
  --page-top:      6rem;    /* wysokość przyklejonego navbara */
  --page-bottom:   5rem;
  --page-scrim:    rgba(0,0,0,.45);  /* przyciemnienie tła wideo */
}

/* ══════════════════════════════════════════════════════
   POWŁOKA PODSTRON TREŚCIOWYCH

   Jedna definicja dla contact.php, support.php i blog.php (lista + wpis).
   Selektory są wyliczone, bo każda z tych stron miała własny prefiks klas,
   zanim powstała ta sekcja — nazwy zostają, wspólne staje się zachowanie.

   Dodając kolejną podstronę treściową, dopisz jej klasy TUTAJ zamiast
   kopiować wartości do nowego pliku w css/.
══════════════════════════════════════════════════════ */

.contact-page,
.support-page,
.blog-page,
.faq-page,
.legal-page,
.nf-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  /* Bez przyciemnienia tekst siada na jasnych klatkach tła wideo. */
  background: var(--page-scrim, rgba(0,0,0,.45));
  color: #fff;
  /* flow-root domyka marginesy dzieci WEWNĄTRZ tego pudełka.

     Ten wrapper maluje przyciemnienie, a bez własnego kontekstu formatowania
     margines dolny ostatniego dziecka wypływa na zewnątrz (margin collapsing):
     tło kończy się równo z ostatnim blokiem i między nim a stopką zostaje pas
     gołego wideo. Dokładnie to wyszło na /faq, gdy .faq-cta miało
     `margin: 0 auto 4rem`.

     Kontenery treści i tak używają padding-bottom, więc to pas bezpieczeństwa
     dla kolejnej podstrony dopisanej do tych list — nie zastępstwo. */
  display: flow-root;
}

/* ── Breadcrumb ─────────────────────────────────────
   Szerokość i margines navbara, więc ścieżka zaczyna się w tej samej
   pionowej osi co logo — i identycznie na wszystkich czterech podstronach.
   Celowo szerzej niż treść pod spodem: to ramka strony, nie kolumna tekstu. */
.contact-breadcrumb,
.support-breadcrumb,
.blog-breadcrumb,
.payment-breadcrumb,
.faq-breadcrumb,
.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  max-width: var(--shell-max, 1400px);
  margin: 0 auto;
  padding: var(--page-top, 6rem) var(--shell-gutter, clamp(1rem, 4vw, 3rem)) 0;
  font-size: .78rem;
  color: #fff;
}
.contact-breadcrumb a,
.support-breadcrumb a,
.blog-breadcrumb a,
.payment-breadcrumb a,
.faq-breadcrumb a,
.legal-breadcrumb a {
  color: #fff;
  text-decoration: none;
  transition: color .2s;
}
.contact-breadcrumb a:hover,
.support-breadcrumb a:hover,
.blog-breadcrumb a:hover,
.payment-breadcrumb a:hover,
.faq-breadcrumb a:hover,
.legal-breadcrumb a:hover { color: var(--c1); }
.contact-breadcrumb svg,
.support-breadcrumb svg,
.blog-breadcrumb svg,
.payment-breadcrumb svg,
.faq-breadcrumb svg,
.legal-breadcrumb svg {
  width: 12px; height: 12px;
  flex-shrink: 0;
  opacity: .4;
}

/* ── Hero ──────────────────────────────────────────── */
.contact-hero,
.support-hero,
.blog-hero,
.faq-hero,
.legal-hero,
.nf-hero {
  position: relative;
  text-align: center;
  padding: 3.5rem 0 3rem;
  overflow: hidden;
}
/* Poblask hero.

   Gasi się WEWNĄTRZ swojego pudełka i to jest tu cała rzecz. Wcześniej było to
   koło 700×700 zaczepione na top:-200px, a hero ma ~300px i overflow:hidden —
   więc gradient był ucinany w miejscu, w którym jeszcze świecił. Na ciemnym tle
   dawało to ostrą poziomą krawędź dokładnie na dolnej granicy hero, czyli na
   górnej krawędzi pierwszego kafelka listy: nad linią tło rozjaśnione poblaskiem,
   pod linią gołe przyciemnienie. Wyglądało jak czarny overlay na siatce wpisów,
   choć żadna reguła niczego tam nie malowała — widać było brak poblasku, nie jego
   obecność.

   Stąd inset:0 zamiast stałego rozmiaru i promienie w PIKSELACH: zasięg gradientu
   nie zależy od wysokości hero, więc przy każdym tytule i na każdym ekranie
   przezroczystość wypada przed dolną krawędzią i nie ma czego ucinać. */
.contact-hero-glow,
.support-hero-glow,
.blog-hero-glow,
.faq-hero-glow,
.legal-hero-glow,
.nf-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(340px 190px at 50% 22%,
                rgba(12,181,210,.09) 0%,
                rgba(83,17,89,.05) 40%,
                transparent 72%);
  pointer-events: none;
}
/* Cały nagłówek — badge, tytuł, podtytuł — siedzi w tej samej ramce co
   breadcrumb i navbar. Wcześniej hero było węższe (680px) i blok nagłówka
   kończył się w innym miejscu niż ścieżka nad nim. */
.contact-hero-inner,
.support-hero-inner,
.blog-hero-inner,
.faq-hero-inner,
.legal-hero-inner,
.nf-hero-inner {
  position: relative;
  max-width: var(--shell-max, 1400px);
  margin: 0 auto;
  padding: 0 var(--shell-gutter, clamp(1rem, 4vw, 3rem));
}

.contact-hero-badge,
.support-hero-badge,
.blog-hero-badge,
.faq-hero-badge,
.legal-hero-badge,
.nf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .9rem;
  border-radius: 50px;
  background: rgba(12,181,210,.1);
  border: 1px solid rgba(12,181,210,.2);
  color: var(--c1);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.contact-hero-badge svg,
.support-hero-badge svg,
.blog-hero-badge svg,
.faq-hero-badge svg,
.legal-hero-badge svg,
.nf-hero-badge svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
}

/* Nagłówki nie mają globalnej reguły w tym pliku — Syne nakłada się
   punktowo, więc nagłówek bez tej klasy po cichu wraca do system-ui. */
.contact-hero h1,
.support-hero-title,
.blog-hero-title,
.faq-hero h1,
.legal-hero h1,
.nf-hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 900;
  font-size: clamp(1.9rem, 4.7vw, 2.85rem);
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: .9rem;
}
/* Wyróżniony wyraz — gradient marki, nie płaski akcent. */
.contact-hero h1 span,
.support-hero-title span,
.blog-hero-title span,
.faq-hero h1 span,
.legal-hero h1 span,
.nf-hero h1 span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-hero p,
.support-hero-sub,
.blog-hero-sub,
.faq-hero p,
.legal-hero p,
.nf-hero p {
  font-size: .95rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin: 0 auto;
}

/* ── Kontener treści ────────────────────────────────
   Miara czytania, węższa od nagłówka. Lista wpisów bloga jej NIE używa —
   siatka kafelków nie jest kolumną tekstu i dostaje pełną szerokość
   ramki (patrz .blog-grid w css/blog.css). */
.contact-content,
.support-container,
.blog-post {
  max-width: var(--page-max, 760px);
  margin: 0 auto;
  padding: 0 var(--page-gutter, 1.5rem) var(--page-bottom, 5rem);
}

@media (max-width: 640px) {
  .contact-breadcrumb,
  .support-breadcrumb,
  .blog-breadcrumb,
  .faq-breadcrumb,
  .legal-breadcrumb { padding-top: 5rem; }

  .contact-hero,
  .support-hero,
  .blog-hero,
  .faq-hero,
  .legal-hero,
  .nf-hero { padding: 2.5rem 0 2rem; }

  .contact-hero h1,
  .support-hero-title,
  .blog-hero-title,
  .faq-hero h1,
  .legal-hero h1,
  .nf-hero h1 { font-size: 1.6rem; }
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: #0a0a0f;
  overflow-x: hidden;
}

/* ── Background canvas ─────────────────────────────── */
#bg-canvas,
.yt-bg {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.video-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8)
}

/* ── Layout ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--shell-max, 1400px);
  margin: 0 auto;
  padding: 0 var(--shell-gutter, clamp(1rem, 4vw, 3rem));
}

/* ── Accessibility ─────────────────────────────────── */
.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;
}

/* ════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: .8rem 0;
  transition: padding .4s cubic-bezier(.4,0,.2,1);
}
.navbar.scrolled { padding: .4rem 0; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Warm-white frosted glass — premium light */
  background: rgba(252, 251, 255, 0.88);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-radius: 1.2rem;
  padding: .5rem .9rem .5rem 1.25rem;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 6px 32px rgba(0,0,0,.10),
    0 1px 4px rgba(0,0,0,.06);
  border: 1px solid rgba(255,255,255,.72);
  transition: background .35s ease, box-shadow .35s ease, padding .4s cubic-bezier(.4,0,.2,1);
}

.navbar.scrolled .nav-inner {
  background: rgba(252, 251, 255, 0.95);
  box-shadow:
    0 1px 0 rgba(255,255,255,.95) inset,
    0 10px 48px rgba(0,0,0,.13),
    0 1px 6px rgba(0,0,0,.08),
    0 0 0 1px rgba(12,181,210,.07);
}

/* Logo */
.nav-logo img {
  height: 2.4rem; width: auto; display: block;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), filter .25s;
}
.nav-logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 2px 8px rgba(12,181,210,.3));
}

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: 0; list-style: none;
}
.nav-links a {
  display: block;
  padding: .5rem 1rem;
  font-weight: 500; font-size: .875rem;
  color: var(--gray-600);
  text-decoration: none;
  border-radius: .85rem;
  position: relative;
  letter-spacing: .01em;
  transition: color .22s ease, background .22s ease;
}
.nav-links a::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: .85rem;
  background: rgba(12,181,210,.07);
  opacity: 0;
  transform: scale(.86);
  transition: opacity .22s, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.nav-links a:hover { color: var(--c1); }
.nav-links a.nav-active { color: var(--c1); }
.nav-links a:hover::before { opacity: 1; transform: scale(1); }

/* Gradient underline on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: .22rem; left: 50%; right: 50%;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: left .28s cubic-bezier(.34,1.56,.64,1), right .28s cubic-bezier(.34,1.56,.64,1);
}
.nav-links a:hover::after { left: 1rem; right: 1rem; }

.nav-cta { display: flex; align-items: center; gap: .45rem; }

/* Ghost (Log In) */
.btn-ghost {
  font-weight: 600; font-size: .83rem;
  padding: .48rem 1.1rem;
  border: 1.5px solid rgba(12,181,210,.3);
  background: transparent;
  color: var(--c1); cursor: pointer;
  border-radius: .85rem;
  letter-spacing: .01em;
  transition: background .22s, border-color .22s, color .22s, transform .2s, box-shadow .22s;
}
.btn-ghost:hover {
  background: rgba(12,181,210,.07);
  border-color: rgba(12,181,210,.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(12,181,210,.15);
}

/* Primary (Sign Up) */
.btn-primary {
  font-weight: 700; font-size: .83rem;
  padding: .52rem 1.2rem;
  border: none;
  background: var(--grad);
  color: #fff; cursor: pointer;
  border-radius: .85rem;
  box-shadow: 0 4px 16px rgba(12,181,210,.35);
  letter-spacing: .01em;
  position: relative; overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}
/* Shine sweep on hover */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-18deg);
  transition: left .45s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(12,181,210,.5);
}
.btn-primary:hover::before { left: 160%; }

/* Legacy lang-toggle (kept for compatibility) */
.lang-toggle {
  display: flex !important;
  align-items: center !important;
  background: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  gap: .2rem !important;
}
.lang-toggle button {
  font-weight: 700; font-size: .78rem;
  padding: .35rem .65rem;
  border: none; background: none;
  color: var(--gray-500); border-radius: .6rem;
  cursor: pointer; transition: all .2s;
}
.lang-toggle button.active {
  background: var(--grad); color: #fff;
  box-shadow: 0 2px 8px rgba(12,181,210,.3);
}
.lang-toggle a.lang-btn {
  font-family: inherit;
  font-weight: 700; font-size: .82rem;
  padding: .5rem .85rem;
  background: none; border-radius: .75rem;
  cursor: pointer; transition: all .2s;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; color: var(--gray-700);
}
.lang-toggle a.lang-btn:hover { background: rgba(12,181,210,.12); color: var(--c1); }
.lang-toggle a.lang-btn.active {
  background: linear-gradient(135deg, #0cb5d2, #531159);
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(12,181,210,.35);
}

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: .5rem .6rem;
  border: none; background: var(--grad); border-radius: .85rem;
  box-shadow: 0 3px 12px rgba(12,181,210,.3);
  transition: transform .2s, box-shadow .2s;
}
.nav-hamburger:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(12,181,210,.45);
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s, width .3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 5rem 1rem 1rem;
  background: rgba(252, 251, 255, 0.97);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border-radius: 1.25rem;
  box-shadow:
    0 24px 80px rgba(0,0,0,.18),
    0 1px 0 rgba(255,255,255,.9) inset;
  border: 1px solid rgba(255,255,255,.7);
  z-index: 999;
  flex-direction: column;
  padding: 1.5rem; gap: .5rem;
  overflow-y: auto; max-height: 82vh;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: .85rem 1.2rem;
  font-weight: 500; font-size: 1rem;
  color: var(--gray-700); text-decoration: none;
  border-radius: .9rem; transition: background .2s, color .2s;
}
.mobile-menu a:hover { background: rgba(12,181,210,.07); color: var(--c1); }
.mobile-menu-divider { height: 1px; background: var(--gray-150, #f0f0f4); margin: .3rem 0; }
.mobile-menu-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .25rem; }
.mobile-menu-btns .btn-ghost {
  border: 1.5px solid rgba(12,181,210,.35); border-radius: .9rem;
  text-align: center; padding: .78rem; font-size: .9rem;
}
.mobile-menu-btns .btn-primary {
  text-align: center; padding: .78rem;
  font-size: .9rem; border-radius: .9rem;
}

/* ════════════════════════════════════════════════════
   HERO
   Cel: lewa kolumna od .hero-badge (góra) do
        .stat-label "More time on site" (dół).
        Obraz: ta sama wysokość, wyrównany do obu granic.
════════════════════════════════════════════════════ */

.hero-section {
  display: flex;

  position: relative;
  min-height: 100dvh;
  max-height: 100dvh;
  height: 100%;
  width: 100%;

  padding-top:    clamp(5rem, 10vh, 7rem);
  padding-bottom: clamp(3rem, 6vh, 5rem);
}

.hero-section-container {
  display: flex;
  gap: 5rem;
  
  position: relative;
  max-width: 1400px;
  width: 100%;

  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.hero-section-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;

  position: relative;
  width: 55%;
  height: 100%;
}

.hero-section-image {
  position: relative;
  width: 45%;
  height: 100%;
}

.hero-section-image img {
  position: relative;
  z-index: 1;

  width: 100% !important; /* Override Swiper's inline styles */
  height: 100%;
  object-fit: cover;

  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: var(--shadow-2xl);
}

@media (max-width: 1023px) {
  .hero-section-container {
    flex-direction: column;
    align-items: center;
  }

  .hero-section-content,
  .hero-section-image {
    width: 100%;
  }

  .hero-section-content {
    order: 2;
  }

  .hero-section-image {
    order: 1;
    display: flex;
    justify-content: center;

    height: 20dvh;
  }
}

/* ------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top:    clamp(5rem, 10vh, 7rem);
  padding-bottom: clamp(3rem, 6vh, 5rem);
  display: flex;
  align-items: center;
}

.hero > .container {
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  width: 100%;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
  }
}

/* ── Lewa kolumna (content) ── */
.hero-content {
  order: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .hero-content { order: 1; }
}

/* Uwaga: to jest <h1> strony glownej (patrz index.php). Rozmiar i grubosc
   gasimy jawnie, zeby domyslne 2em/bold z arkusza przegladarki nie przeciekly
   na nic, co tu wyladuje w przyszlosci — sam .badge-text ustawia swoje. */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1rem;
  font-weight: 400;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: .55rem 1.3rem;
  margin-bottom: 0;
  align-self: flex-start;
}
@media (max-width: 1023px) {
  .hero-badge { align-self: center; }
}

.badge-dot {
  position: relative; width: 10px; height: 10px; flex-shrink: 0;
}
.badge-dot::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; background: #4ade80;
  animation: ping 1.5s cubic-bezier(0,0,.2,1) infinite;
}
.badge-dot::after {
  content: ''; position: absolute; inset: 1px;
  border-radius: 50%; background: #4ade80;
}
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }

.badge-text {
  font-weight: 700;
  font-size: clamp(.7rem, 1vw, .95rem);
  letter-spacing: .1em; text-transform: uppercase; color: #fff;
}

/* Hero title */
.hero-title {
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 6.5rem);
  line-height: 1.06;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.hero-title-static { display: block; }

/* Gradient + rotating text row */
.hero-title-gradient {
  display: flex;
  align-items: center;
  margin-top: .15em;
  /* Clamp height to the tallest word so no layout shift */
  min-height: 1.1em;
  color: #0cb5d2;
  background-clip: text;
}

.rotating-text-wrap {
  display: inline-flex;
  overflow: hidden;
  /* Vertical padding so animating letters enter/exit cleanly */
  padding-top: .15em;
  padding-bottom: .15em;
  margin-top: -.15em;
  margin-bottom: -.15em;
}

#rotating-text {
  display: inline-flex; gap: 0;
  /* Gradient applied here so mobile Safari/Chrome can render it correctly.
     On mobile the element contains a text node directly (no overflow:hidden children),
     so background-clip:text works. On desktop per-letter spans inherit the transparency. */
  /* background: var(--grad); */
  color: #0cb5d2;
  padding-bottom: .06em;
  /* No will-change here — it creates a GPU compositing layer that breaks
     background-clip:text on iOS Safari. Animations handle promotion themselves. */
}

/* RotatingText letters */
.rt-letter {
  display: inline-block;
  transition: transform .28s cubic-bezier(.4,0,.2,1),
              opacity   .28s cubic-bezier(.4,0,.2,1);
}
.rt-letter.rt-exit   { transform: translateY(-115%); opacity: 0; }
.rt-letter.rt-enter  { transform: translateY( 115%); opacity: 0; }

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.45rem);
  text-shadow: 1px 1px 1px #000;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  max-width: 38rem;
  margin-bottom: 0;
}
@media (max-width: 1023px) { .hero-desc { margin-left: auto; margin-right: auto; } }

.hero-buttons {
  display: flex; gap: .75rem; flex-wrap: wrap;
  margin-bottom: 0;
}
@media (max-width: 1023px) { .hero-buttons { justify-content: center; } }

.btn-hero-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700;
  font-size: clamp(.9rem, 1.1vw, 1.15rem);
  padding: clamp(.75rem, 1.1vw, 1.1rem) clamp(1.2rem, 1.8vw, 2rem);
  background: var(--grad); color: #fff;
  border: none; border-radius: .9rem; cursor: pointer;
  box-shadow: 0 8px 25px rgba(12,181,210,.4);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(12,181,210,.5); }
.btn-hero-primary svg { transition: transform .2s; }
.btn-hero-primary:hover svg { transform: translateX(3px); }

.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700;
  font-size: clamp(.9rem, 1.1vw, 1.15rem);
  padding: clamp(.75rem, 1.1vw, 1.1rem) clamp(1.2rem, 1.8vw, 2rem);
  background: rgba(0,0,0,.35); backdrop-filter: blur(8px);
  color: #fff; border: 1px solid rgba(255,255,255,.15);
  border-radius: .9rem; cursor: pointer;
  transition: background .2s; text-decoration: none;
}
.btn-hero-secondary:hover { background: rgba(0,0,0,.5); }

/*
  Stats — spychane na dół kolumny przez margin-top: auto.
  To sprawi że lewa kolumna jest "rozciągnięta" od badge do stats,
  a obraz po prawej dopasuje się do tej samej wysokości.
*/
.hero-stats {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12);
}

.stat-value {
  font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 3rem);
  color: #fff; line-height: 1.1;
}
.hero-stat-small {
  font-size: clamp(1rem, 1.8vw, 2rem) !important;
  line-height: 1.2;
}

.stat-label {
  font-size: clamp(.65rem, .85vw, 1rem);
  color: rgba(255,255,255,.55);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .2rem;
}

/* ── Prawa kolumna (image) ── */
.hero-image {
  order: 1;
  display: flex;
  align-items: center;
  align-self: center;
  border-radius: 1.20rem;
  min-width: 0;
  overflow: hidden;
}
@media (min-width: 1024px) { .hero-image { order: 2; } }
@media (max-width: 1023px) {
  .hero-image {
    justify-content: center;
  }
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* Particle canvas overlay */
#hero-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  border-radius: inherit;
  mix-blend-mode: screen;
}

/* Vignette depth layer on image */
.hero-img-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 50% 0%,   rgba(12,181,210,.1) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(83,17,89,.15) 0%, transparent 55%);
  pointer-events: none;
  z-index: 2;
}
@media (max-width: 1023px) {
  .hero-img-wrap {
    max-width: min(380px, 100%);
    margin: 0 auto;
  }
}

.hero-swiper {
  height: 100%;
  border-radius: 1.75rem;
}

.hero-img-glow {
  position: absolute;
  inset: -12px;
  border-radius: 1.75rem;
  background: var(--grad);
  filter: blur(20px);
  opacity: .7;
  animation: glowPulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes glowPulse { 0%, 100% { opacity: .6; } 50% { opacity: .9; } }

.hero-img-inner {
  position: relative;
  z-index: 1;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: var(--shadow-2xl);
  flex: none;
  width: 100%;
  aspect-ratio: 9 / 13;
}

.hero-img-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* On mobile keep a natural aspect ratio */
@media (max-width: 1023px) {
  .hero-img-inner {
    aspect-ratio: 9 / 11;
  }
  .hero-img-inner img {
    height: 100%;
  }
}

/* ════════════════════════════════════════════════════
   SECTIONS — shared
════════════════════════════════════════════════════ */
.section {
  position: relative; z-index: 1;
  padding: clamp(4rem, 8vw, 8rem) 0;
}
.section-bg-white { background: rgba(255,255,255,.97); }

.section-label {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, rgba(12,181,210,.1), rgba(83,17,89,.1));
  border-radius: 100px; padding: .4rem 1rem; margin-bottom: 1.25rem;
}
.section-label span {
  font-weight: 700; font-size: .8rem;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.section-title {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.75rem);
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1.1;
  /* padding-bottom daje miejsce na descenders (g, y, p) przycięte przez background-clip */
  padding-bottom: 0.2em;
  margin-bottom: calc(.75rem - 0.2em);
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: clamp(.9rem, 1.2vw, 1.15rem);
  color: var(--gray-600); max-width: 44rem;
  margin: 0 auto; line-height: 1.7;
}

@media (max-width: 1550px) {
  .section-title { font-size: clamp(2rem, 3.25vw, 3.75rem); }
  .section-subtitle { font-size: clamp(.9rem, 1.1vw, 1.15rem); }
}

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

/* ════════════════════════════════════════════════════
   PRICING
════════════════════════════════════════════════════ */
#pricing { background: rgba(255,255,255,.97); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1300px;
  margin: 0 auto 4rem;
  align-items: stretch;
}

.pricing-card {
  position: relative; background: #fff;
  border-radius: var(--radius-2xl);
  border: 1.5px solid var(--gray-200);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  overflow: visible;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  border-color: var(--c1);
}
.pricing-card.featured {
  border: 2.5px solid rgba(83,17,89,.35);
  transform: scale(1.04);
  box-shadow: 0 12px 50px rgba(83,17,89,.15);
}
.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 20px 60px rgba(83,17,89,.2);
}

.pricing-card-glow {
  position: absolute; inset: -4px;
  border-radius: calc(var(--radius-2xl) + 4px);
  background: var(--grad); filter: blur(16px);
  opacity: 0; transition: opacity .4s;
  z-index: -1; pointer-events: none;
}
.pricing-card.featured .pricing-card-glow { opacity: .15; }
.pricing-card.featured:hover .pricing-card-glow { opacity: .25; }

.pricing-badge {
  position: absolute; top: -1px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #f97316, #ec4899);
  color: #fff; font-weight: 700; font-size: .7rem;
  padding: .35rem .85rem;
  border-radius: 0 0 .75rem .75rem;
  white-space: nowrap;
  display: flex; align-items: center; gap: .3rem;
  box-shadow: 0 4px 12px rgba(249,115,22,.3);
}

.pricing-head { padding: 1.5rem 1.5rem 0; }
.pricing-card.featured .pricing-head { padding-top: 2.5rem; }

.pricing-name {
  font-weight: 700; font-size: 1rem;
  color: var(--gray-900); margin-bottom: .6rem;
  letter-spacing: -0.01em;
}
.pricing-price { display: flex; align-items: baseline; gap: .3rem; margin-bottom: 1rem; }
.price-amount {
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  padding-bottom: 0.15em;
}
.price-period { font-size: .85rem; color: var(--gray-500); font-weight: 500; }

.pricing-features {
  padding: 0 1.5rem 1rem; flex-grow: 1;
  display: flex; flex-direction: column; gap: .55rem;
}
.pricing-feature { display: flex; align-items: flex-start; gap: .6rem; }
.feature-check {
  flex-shrink: 0; width: 18px; height: 18px;
  border-radius: 50%; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px; transition: transform .2s;
}
.pricing-feature:hover .feature-check { transform: scale(1.15); }
.feature-check svg { width: 10px; height: 10px; }
.pricing-feature span {
  font-size: .85rem; color: var(--gray-700);
  font-weight: 500; line-height: 1.4;
}
.pricing-divider { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; }
.pricing-divider-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(12,181,210,.25), rgba(83,17,89,.25));
}
.pricing-divider-label {
  font-size: .65rem; font-weight: 600;
  color: var(--gray-400); white-space: nowrap; padding: 0 .25rem;
}

/* ── Pricing card — user slider ─────────────────────────────── */
.pricing-users-selector {
  padding: .9rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  background: linear-gradient(135deg, rgba(12,181,210,.03), rgba(83,17,89,.025));
  position: relative;
}
.pricing-users-selector::before {
  content: '';
  position: absolute;
  top: 0; left: 1.5rem; right: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(12,181,210,.3), rgba(83,17,89,.3));
}
.pricing-users-selector label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .6rem;
}
.pricing-users-selector label span:last-child {
  font-size: .85rem;
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  min-width: 2rem;
  text-align: right;
}
.pricing-users-selector > div {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* The range slider track */
.users-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 5px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  background:
    linear-gradient(
      to right,
      var(--c1) 0%,
      var(--c2) var(--fill, 0%),
      var(--gray-200) var(--fill, 0%),
      var(--gray-200) 100%
    );
  transition: background .1s;
}
.users-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 2.5px var(--c1),
    0 2px 8px rgba(12,181,210,.45),
    0 1px 3px rgba(0,0,0,.12);
  cursor: grab;
  transition: transform .15s, box-shadow .15s;
}
.users-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.2);
  box-shadow:
    0 0 0 3px var(--c2),
    0 4px 14px rgba(83,17,89,.4),
    0 1px 3px rgba(0,0,0,.15);
}
.users-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--c1);
  box-shadow: 0 2px 8px rgba(12,181,210,.45);
  cursor: grab;
  transition: transform .15s;
}
.users-slider::-moz-range-thumb:active {
  cursor: grabbing;
  transform: scale(1.2);
}
.users-slider:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 0 0 3px rgba(12,181,210,.35),
    0 0 0 5px rgba(12,181,210,.12);
}

/* The number input */
.pricing-users-input {
  width: 3.25rem;
  flex-shrink: 0;
  padding: .28rem .4rem;
  text-align: center;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 800;
  color: var(--c1);
  background: rgba(12,181,210,.06);
  border: 1.5px solid rgba(12,181,210,.25);
  border-radius: .55rem;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  -moz-appearance: textfield;
}
.pricing-users-input::-webkit-inner-spin-button,
.pricing-users-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.pricing-users-input:focus {
  border-color: var(--c1);
  background: rgba(12,181,210,.1);
  box-shadow: 0 0 0 3px rgba(12,181,210,.15);
  color: var(--c2);
}

/* Featured card variant — slightly different tint */
.pricing-card.featured .pricing-users-selector {
  background: linear-gradient(135deg, rgba(83,17,89,.06), rgba(12,181,210,.04));
}
.pricing-card.featured .users-slider::-webkit-slider-thumb {
  box-shadow:
    0 0 0 2.5px var(--c2),
    0 2px 10px rgba(83,17,89,.45),
    0 1px 3px rgba(0,0,0,.12);
}
.pricing-card.featured .pricing-users-input {
  color: var(--c2);
  background: rgba(83,17,89,.06);
  border-color: rgba(83,17,89,.3);
}
.pricing-card.featured .pricing-users-input:focus {
  border-color: var(--c2);
  background: rgba(83,17,89,.1);
  box-shadow: 0 0 0 3px rgba(83,17,89,.15);
}

.pricing-footer { padding: 0 1.5rem 1.5rem; margin-top: auto; }
.btn-pricing {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  width: 100%; font-weight: 700; font-size: .85rem;
  padding: .75rem 1rem; border-radius: .9rem;
  border: none; cursor: pointer; text-decoration: none;
  transition: all .3s; box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.btn-pricing-default { background: var(--gray-100); color: var(--gray-900); }
.btn-pricing-default:hover {
  background: var(--grad); color: #fff;
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(12,181,210,.3);
}
.btn-pricing-featured {
  background: var(--grad); color: #fff;
  box-shadow: 0 4px 20px rgba(12,181,210,.3);
}
.btn-pricing-featured:hover {
  background: var(--grad-rev);
  transform: translateY(-2px); box-shadow: 0 8px 30px rgba(83,17,89,.35);
}

/* Custom plan */
.custom-plan {
  max-width: 900px; margin: 0 auto;
  background: var(--grad); border-radius: var(--radius-2xl);
  padding: clamp(2rem,4vw,3.5rem); text-align: center;
  box-shadow: 0 20px 60px rgba(12,181,210,.25);
}
.custom-plan h2 {
  font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: #fff; margin-bottom: .75rem; letter-spacing: -0.02em;
}
.custom-plan p { color: rgba(255,255,255,.85); font-size: clamp(.9rem, 1.2vw, 1.1rem); margin-bottom: 2rem; }
.btn-custom {
  display: inline-block; font-weight: 700; font-size: 1rem;
  padding: 1rem 2.5rem; background: #fff; color: var(--c1);
  border-radius: .9rem; text-decoration: none;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  transition: transform .2s, box-shadow .2s;
}
.btn-custom:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,.2); }

/* ════════════════════════════════════════════════════
   FEATURES carousel
════════════════════════════════════════════════════ */
#features { background: rgba(242,242,242,.98); }
.features-section { padding-bottom: clamp(4rem, 8vw, 8rem); }

.features-carousel {
  padding: 0 clamp(1rem, 4vw, 3rem);
}
.features-carousel::before,
.features-carousel::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  width: clamp(40px, 10%, 120px); z-index: 10; pointer-events: none;
}
.features-carousel::before {
  left: 0;
  background: linear-gradient(to right, rgba(242,242,242,1) 0%, transparent 100%);
}
.features-carousel::after {
  right: 0;
  background: linear-gradient(to left, rgba(242,242,242,1) 0%, transparent 100%);
}

.features-track {
  transition-timing-function: linear !important;
}

/* 
.features-track:hover { animation-play-state: paused; }
@keyframes featureScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
} */

.feature-card {
  height: unset !important;
  position: relative; background: #fff;
  border-radius: var(--radius-xl); padding: 2rem;
  width: 300px; min-height: 300px; flex-shrink: 0;
  border: 1px solid var(--gray-100);
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  display: flex; flex-direction: column;
  transition: transform .4s, box-shadow .4s;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,.1); }
.feature-card::after {
  content: ''; position: absolute; inset-x: 1rem; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c1), var(--c2), transparent);
  opacity: 0; transition: opacity .4s;
}
.feature-card:hover::after { opacity: 1; }

.feature-icon-wrap { position: relative; margin-bottom: 1.5rem; flex-shrink: 0; }
.feature-icon-bg {
  position: absolute; inset: 0;
  background: var(--grad); border-radius: .9rem;
  filter: blur(10px); opacity: .2; transition: opacity .3s;
}
.feature-card:hover .feature-icon-bg { opacity: .4; }
.feature-icon {
  position: relative; width: 60px; height: 60px;
  background: var(--grad); border-radius: .9rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff;
  box-shadow: 0 8px 20px rgba(83,17,89,.2);
  transition: transform .3s;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(6deg); }
.feature-title {
  font-weight: 700; font-size: 1.25rem; color: var(--gray-900);
  margin-bottom: .75rem; flex-shrink: 0; transition: color .2s;
  letter-spacing: -0.015em;
}
.feature-card:hover .feature-title { color: var(--c1); }
.feature-desc { font-size: .9rem; color: var(--gray-600); line-height: 1.65; flex-grow: 1; }

/* ════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════
   FOOTER — Enhanced
════════════════════════════════════════════════════ */
#footer {
  position: relative;
  background: linear-gradient(160deg, #080812 0%, #160820 50%, #071420 100%);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 7rem) 0 0;
  overflow: hidden;
}

/* Top glow line */
.footer-glow-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--c1) 30%, var(--c2) 70%, transparent 100%);
  opacity: .7;
}

/* Floating orbs */
.footer-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.footer-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); animation: orbFloat 10s ease-in-out infinite;
}
.footer-orb-1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(12,181,210,.12), transparent 70%);
  top: -120px; left: -100px;
  animation-delay: 0s;
}
.footer-orb-2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(83,17,89,.18), transparent 70%);
  top: 40%; right: -80px;
  animation-delay: -4s;
}
.footer-orb-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(12,181,210,.08), transparent 70%);
  bottom: 80px; left: 40%;
  animation-delay: -7s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* ── Grid ── */
.footer-grid {
  position: relative;
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem; margin-bottom: 3.5rem;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ── Brand ── */
.footer-logo-wrap { display: inline-flex; align-items: center; text-decoration: none; margin-bottom: 1rem; }
.footer-logo { height: 2.2rem; width: auto; filter: brightness(0) invert(1); }
.footer-logo-fallback {
  display: none; font-weight: 800; font-size: 1.6rem;
  background: linear-gradient(135deg, #0cb5d2, #531159);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.footer-brand p {
  font-size: .9rem; color: rgba(255,255,255,.55);
  line-height: 1.8; margin-top: .25rem; max-width: 30rem;
}

/* ── Column titles ── */
.footer-col-title {
  font-weight: 700; font-size: 1rem;
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: .6rem;
  letter-spacing: .01em;
}
.footer-col-bar {
  display: block; width: 3px; height: 1.15rem;
  background: var(--grad); border-radius: 2px; flex-shrink: 0;
}

/* ── Links ── */
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.footer-links a {
  font-size: .9rem; color: rgba(255,255,255,.55);
  text-decoration: none; display: flex; align-items: center; gap: .5rem;
  transition: color .2s, gap .2s;
}
.footer-link-arrow {
  opacity: 0; transition: opacity .2s, transform .2s;
  width: 14px; height: 14px; flex-shrink: 0;
}
.footer-links a:hover { color: #fff; gap: .75rem; }
.footer-links a:hover .footer-link-arrow { opacity: 1; transform: translateX(2px); }

/* ── Phone ── */
.footer-phone {
  display: flex; align-items: center; gap: .85rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 1.1rem;
  padding: .9rem 1.1rem; text-decoration: none; color: #fff;
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
  margin-top: 1.1rem;
}
.footer-phone:hover {
  background: rgba(255,255,255,.11);
  border-color: rgba(12,181,210,.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(12,181,210,.12);
}
.footer-phone-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, rgba(12,181,210,.25), rgba(83,17,89,.25));
  border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform .25s;
  color: var(--c1); font-size: .95rem;
}
.footer-phone:hover .footer-phone-icon { transform: scale(1.1) rotate(-5deg); }
.footer-phone-label { font-size: .7rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .06em; }
.footer-phone-num { font-weight: 700; font-size: .97rem; margin-top: .1rem; }

/* ── Newsletter ── */
.footer-newsletter {
  position: relative;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-2xl);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  margin-bottom: 3rem;
  overflow: hidden;
}

/* Corner decorative glow inside newsletter */
.footer-newsletter-deco {
  position: absolute; top: -80px; right: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(12,181,210,.12), transparent 70%);
  pointer-events: none;
}

.footer-newsletter-inner { position: relative; max-width: 640px; margin: 0 auto; text-align: center; }

/* Badge */
.footer-nl-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(12,181,210,.12);
  border: 1px solid rgba(12,181,210,.25);
  color: var(--c1);
  border-radius: 2rem;
  font-size: .78rem; font-weight: 700;
  padding: .3rem .85rem;
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 1rem;
}

.footer-newsletter h3 {
  font-weight: 800; font-size: clamp(1.3rem, 2.8vw, 2.1rem);
  margin-bottom: .5rem; letter-spacing: -0.025em;
  background: linear-gradient(135deg, #fff 40%, rgba(12,181,210,.8));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-newsletter p { font-size: .9rem; color: rgba(255,255,255,.55); margin-bottom: 1.75rem; }

.newsletter-form { display: flex; flex-direction: column; gap: 1rem; }
.newsletter-input {
  width: 100%; padding: .95rem 1.3rem;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: .9rem; color: #fff;
  font-family: var(--font); font-size: .95rem;
  outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.3); }
.newsletter-input:focus {
  border-color: var(--c1);
  background: rgba(12,181,210,.06);
  box-shadow: 0 0 0 3px rgba(12,181,210,.1);
}

.newsletter-link {
  color: var(--c1);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.newsletter-label {
  display: block; font-size: .82rem; font-weight: 600;
  color: rgba(255,255,255,.65); margin-bottom: .5rem; text-align: left;
  text-transform: uppercase; letter-spacing: .05em;
}
.newsletter-select {
  width: 100%; padding: .95rem 3rem .95rem 1.3rem;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: .9rem; color: #fff;
  font-family: var(--font); font-size: .95rem;
  outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.5)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25em; cursor: pointer;
}
.newsletter-select:focus {
  border-color: var(--c1);
  background-color: rgba(12,181,210,.06);
  box-shadow: 0 0 0 3px rgba(12,181,210,.1);
}
.newsletter-select option { background: #150a1e; color: #fff; }

.btn-newsletter {
  width: 100%; font-weight: 700; font-size: .95rem;
  padding: .95rem;
  background: #fff; color: var(--gray-900);
  border: none; border-radius: .9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  transition: all .3s;
  letter-spacing: .01em;
}
.btn-newsletter:hover {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 32px rgba(12,181,210,.35);
  transform: translateY(-1px);
}
.btn-newsletter i { font-size: .85rem; transition: transform .3s; }
.btn-newsletter:hover i { transform: translateX(3px) rotate(-20deg); }

.newsletter-consent {
  font-size: .68rem;
  color: rgba(255,255,255,.3);
  line-height: 1.5;
  margin: -.25rem 0 0;
  text-align: center;
}
.newsletter-consent a {
  color: rgba(12,181,210,.75);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.newsletter-consent a:hover { color: #fff; }

/* ── Bottom bar ── */
.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.6rem 0;
  display: flex; flex-direction: column;
  gap: 1rem; align-items: center; text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-bottom p { font-size: .81rem; color: rgba(255,255,255,.4); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.footer-legal a {
  font-size: .81rem; color: rgba(255,255,255,.4);
  text-decoration: none; transition: color .2s;
  position: relative;
}
.footer-legal a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 100%;
  height: 1px; background: var(--c1);
  transition: right .25s;
}
.footer-legal a:hover { color: #fff; }
.footer-legal a:hover::after { right: 0; }

/* ════════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════════ */
.animate-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.animate-up.visible { opacity: 1; transform: translateY(0); }
.animate-delay-1 { transition-delay: .1s; }
.animate-delay-2 { transition-delay: .2s; }
.animate-delay-3 { transition-delay: .3s; }
.animate-delay-4 { transition-delay: .4s; }

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

/* ════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════ */

/* ── Touch devices: remove overflow:hidden from rotating text wrap ── */
/* overflow:hidden between an ancestor and an element with background-clip:text
   can cause iOS Safari to fail to render the gradient. On mobile we use opacity-only
   animation so the clip is not needed anyway. */
@media (hover: none) and (pointer: coarse) {
  .rotating-text-wrap { overflow: visible; }
}

@media (max-width: 1550px) {
  .hero-title { font-size: clamp(2.5rem, 4.8vw, 6.5rem); }
  .hero-desc { font-size: clamp(1rem, 1.3vw, 1.45rem); }
}

/* ── Tablet / small desktop: hamburger ── */
@media (max-width: 1279px) {
  .nav-links, .nav-cta { display: none !important; }
  .nav-hamburger { display: flex !important; }

  .hero-section { max-height: unset;}
}

/* ── Tablet (≤1023px): hero layout ── */
@media (max-width: 1023px) {
  .hero-content {
    text-align: center;
    align-items: center;
  }
  .hero-title-gradient {
    justify-content: center;
  }
  .hero-title { text-align: center; }
  .hero-desc { text-align: center; }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
}

/* ── Mobile (≤767px): general layout ── */
@media (max-width: 767px) {
  section { padding: 3.5rem 0; }

  .section-tag  { font-size: .7rem; }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .section-desc  { font-size: .95rem; }

  /* Hero */
  .hero-inner { gap: 2rem; }
  .hero-title { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .hero-desc  { font-size: clamp(.9rem, 3.5vw, 1.1rem); max-width: 100%; }

  /* Badge ZOSTAJE widoczny na telefonie — jest teraz <h1> strony glownej,
     a Google indeksuje mobile-first, wiec ukrycie go zostawialoby najwazniejsza
     wersje strony bez zadnego naglowka.

     Wczesniej bylo tu `display: none` plus `calc(20dvh + 3.5rem)` na slajderze,
     ktory przejmowal zwolnione miejsce (3.5rem = wysokosc badge ~2rem + gap
     .hero-section-content 1.5rem). Skoro badge wraca, slajder oddaje ten zapas. */
  .hero-section-image { height: 20dvh; }
  .hero-section-container { gap: 20px; }

  /* Stats: 2 columns on mobile */
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: .75rem; }

  /* Buttons: stack vertically */
  .hero-buttons { flex-direction: column; align-items: center; gap: .6rem; width: 100%; }
  .btn-hero-primary, .btn-hero-secondary { justify-content: center; width: 100%; max-width: 20rem; }

  /* Features / cards */
  .features-grid { grid-template-columns: 1fr; }
  .feature-card  { padding: 1.5rem; }

  /* How-it-works */
  .steps-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* FAQ */
  .faq-grid { grid-template-columns: 1fr; }

  /* CTA section */
  .cta-buttons { flex-direction: column; align-items: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links-row { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ── Small mobile (≤480px): fine-tuning ── */
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }

  .modal-box { padding: 1.5rem; max-height: 95vh; }

  .pricing-toggle { flex-wrap: wrap; justify-content: center; }
}

/* ════════════════════════════════════════════════════
   AUTH MODAL
════════════════════════════════════════════════════ */
.modal-overlay {
  display: flex; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: #fff; border-radius: var(--radius-2xl);
  width: 100%; max-width: 440px; padding: 2.5rem;
  position: relative; box-shadow: var(--shadow-2xl);
  max-height: 90vh; overflow-y: auto;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.18s ease, opacity 0.18s ease;
  opacity: 0;
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-box.demo-modal-box {
  max-width: 85dvw;
  padding: 0;
  overflow-y: hidden;
  overflow-x: hidden;
  background: black;
}

.demo-modal-video {
  width: 100%; 
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 80vh;
}

.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 32px; height: 32px; border: none;
  background: var(--gray-100); border-radius: .5rem;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  color: var(--gray-500); transition: background .2s;
  border: 1.5px solid var(--gray-400);
}

.modal-close:hover { background: var(--gray-200); }
.modal-title {
  font-weight: 800; font-size: 1.75rem;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  padding-bottom: 0.15em;
  margin-bottom: calc(.35rem - 0.15em); text-align: center; letter-spacing: -0.02em;
}
.modal-subtitle { font-size: .9rem; color: var(--gray-500); text-align: center; margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .8rem; font-weight: 600; color: var(--gray-700); margin-bottom: .4rem; }
.form-input {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200); border-radius: .75rem;
  font-family: var(--font); font-size: .95rem;
  outline: none; transition: border-color .2s; color: var(--gray-900);
}
.form-input:focus { border-color: var(--c1); }
.form-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
  padding: .65rem .9rem; border-radius: .65rem;
  font-size: .83rem; margin-bottom: .75rem;
}
.form-success {
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a;
  padding: .65rem .9rem; border-radius: .65rem;
  font-size: .83rem; margin-bottom: .75rem;
}
.btn-submit {
  width: 100%; font-weight: 700; font-size: .95rem;
  padding: .9rem; background: var(--grad); color: #fff;
  border: none; border-radius: .9rem; cursor: pointer;
  box-shadow: 0 4px 20px rgba(12,181,210,.3);
  transition: transform .2s, box-shadow .2s;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(12,181,210,.4); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.modal-switch {
  text-align: center; font-size: .85rem; color: var(--gray-600); margin-top: 1.25rem;
}
.modal-switch button {
  background: none; border: none; cursor: pointer;
  color: var(--c1); font-weight: 700; font-size: .85rem;
  margin-left: .35rem; padding: 0;
}
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0;
}

/* ════════════════════════════════════════════════════
   NAVBAR — stan zalogowany
════════════════════════════════════════════════════ */
.nav-user-badge {
  display: flex; align-items: center; gap: .45rem;
  /* no background, no border — sits cleanly on the navbar */
  padding: .2rem .4rem .2rem .2rem;
  border-radius: 2rem;
  cursor: default;
  transition: opacity .2s;
}

.nav-user-avatar {
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .78rem; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(12,181,210,.35);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
}
.nav-user-badge:hover .nav-user-avatar {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(12,181,210,.5);
}

.nav-user-name {
  font-size: .8rem; font-weight: 600; color: var(--gray-700);
  max-width: 80px; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis;
  letter-spacing: .01em;
}

/* ── Session timer — no border/bg, just a clean number ── */
.session-timer-wrap {
  display: flex; align-items: center; gap: .3rem;
  padding: .28rem .55rem;
  border-radius: .55rem;
  font-size: .73rem; font-weight: 700;
  font-family: 'DM Mono', ui-monospace, monospace;
  letter-spacing: .04em;
  border: none; background: none;
  transition: color .3s, opacity .3s, transform .2s;
  user-select: none; cursor: pointer;
}
.session-timer-wrap:hover { transform: translateY(-1px); opacity: .85; }
.session-timer-wrap.timer-green  { color: #15803d; }
.session-timer-wrap.timer-yellow { color: #b45309; }
.session-timer-wrap.timer-red    { color: #dc2626; }

/* Small pulsing dot for red */
.session-timer-wrap.timer-red::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #dc2626;
  margin-right: .25rem;
  animation: timer-pulse 1s ease infinite;
}
@keyframes timer-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}

/* ── Settings button — no bg/border, icon only ─────── */
.nav-settings-btn {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: .6rem;
  background: none; border: none;
  color: var(--black-400); cursor: pointer;
  transition: color .22s, transform .35s cubic-bezier(.34,1.56,.64,1);
}
.nav-settings-btn:hover {
  color: var(--c1);
  transform: rotate(70deg);
}

/* ── Logout button — text-only, no bg/border ────────── */
.nav-logout-btn {
  padding: .3rem .55rem;
  background: none; border: none;
  color: var(--black-400);
  font-weight: 600; font-size: .76rem;
  border-radius: .6rem;
  cursor: pointer;
  letter-spacing: .01em;
  transition: color .22s, transform .2s;
}
.nav-logout-btn:hover {
  color: #e11d48;
  transform: translateX(2px);
}

/* ── Mobile menu — zalogowany ─────────────────────────── */
.mob-user-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .5rem 0 .85rem;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: .2rem;
}
.mob-action-btn {
  display: flex; align-items: center; gap: .65rem;
  width: 100%; padding: .85rem 1rem;
  font-weight: 600; font-size: .95rem;
  color: var(--gray-700); background: none; border: none;
  cursor: pointer; border-radius: .9rem;
  transition: background .22s, color .22s;
  letter-spacing: .01em;
}
.mob-action-btn:hover  { background: rgba(12,181,210,.07); color: var(--c1); }
.mob-logout-btn        { color: var(--gray-500); }
.mob-logout-btn:hover  { background: rgba(225,29,72,.06); color: #e11d48; }

/* ════════════════════════════════════════════════════
   SETTINGS MODAL
════════════════════════════════════════════════════ */
.settings-modal-header {
  padding: 1.5rem 2rem 0;
  position: sticky; top: 0;
  background: #fff; z-index: 1;
  /* oddziel wizualnie od przewijanej treści */
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.settings-modal-title {
  font-size: 1.5rem; font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; padding-bottom: .1em;
}
.settings-tabs-bar {
  display: flex; gap: .25rem;
  background: var(--gray-100); border-radius: .75rem;
  padding: .25rem; margin-bottom: 0;
}
.settings-tab-btn {
  flex: 1; padding: .5rem .75rem;
  font-size: .82rem; font-weight: 600;
  border: none; border-radius: .6rem; cursor: pointer;
  transition: all .2s; background: none; color: var(--gray-500);
  white-space: nowrap;
}
.settings-tab-btn:hover  { color: var(--gray-700); }
.settings-tab-btn.active {
  background: #fff; color: var(--gray-900);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.settings-content {
  overflow-y: auto;
  max-height: calc(90vh - 170px);
  padding: 1.5rem 2rem;
}
@media (max-width: 540px) {
  .settings-tabs-bar {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .settings-tabs-bar::-webkit-scrollbar { display: none; }
  .settings-tab-btn {
    flex: 0 0 auto;
    padding: .45rem .65rem;
    font-size: .78rem;
  }
  .settings-content {
    padding: 1rem;
  }
}

/* ── Settings form elements ──────────────────────────── */
.settings-input {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200); border-radius: .75rem;
  font-family: var(--font); font-size: .9rem;
  outline: none; transition: border-color .2s; color: var(--gray-900);
}
.settings-input:focus { border-color: var(--c1); }

/* Podpowiedz pod polem w ustawieniach (np. do czego sluzy wybor jezyka). */
.settings-hint {
  margin-top: .35rem;
  font-size: .78rem;
  color: var(--gray-500, #6b7280);
  line-height: 1.4;
}

/* <select> ma domyslna strzalke systemu — bez tego wyglada inaczej niz
   pozostale pola formularza ustawien. */
select.settings-input {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='3'%3E%3Cpath d='M5 8l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.settings-btn {
  width: 100%; font-weight: 700; font-size: .95rem;
  padding: .85rem; color: #fff;
  border: none; border-radius: .85rem; cursor: pointer;
  background: var(--grad);
  box-shadow: 0 4px 20px rgba(12,181,210,.25);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.settings-btn:hover    { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(12,181,210,.35); }
.settings-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.settings-label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--gray-700); margin-bottom: .4rem;
}
.settings-form-group { margin-bottom: 1.1rem; }

.settings-avatar {
  width: 5rem; height: 5rem; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.5rem; flex-shrink: 0;
}
.settings-profile-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.settings-profile-name  { font-size: 1.15rem; font-weight: 700; color: var(--gray-900); }
.settings-profile-email { font-size: .85rem; color: var(--gray-500); }

.settings-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
  padding: .65rem .9rem; border-radius: .65rem;
  font-size: .83rem; margin-bottom: .75rem; display: none;
}
.settings-success {
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a;
  padding: .65rem .9rem; border-radius: .65rem;
  font-size: .83rem; margin-bottom: .75rem; display: none;
}

/* ── Legal documents list ───────────────────────────── */
.legal-doc-btn {
  display: flex; align-items: center; gap: 1rem;
  width: 100%; padding: 1rem;
  background: #fff;
  border: 2px solid var(--gray-100);
  border-radius: 1rem; text-align: left;
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
  margin-bottom: .75rem;
}
.legal-doc-btn:last-child { margin-bottom: 0; }
.legal-doc-btn:hover {
  border-color: rgba(12,181,210,.4);
  box-shadow: 0 4px 12px rgba(0,0,0,.07);
}
.legal-doc-icon {
  width: 2.75rem; height: 2.75rem; border-radius: .75rem; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(12,181,210,.12), rgba(83,17,89,.12));
  color: var(--c1);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.legal-doc-btn:hover .legal-doc-icon {
  background: linear-gradient(135deg, rgba(12,181,210,.22), rgba(83,17,89,.22));
}
.legal-doc-title  { font-weight: 700; font-size: .9rem; color: var(--gray-900); }
.legal-doc-btn:hover .legal-doc-title { color: var(--c1); }
.legal-doc-preview { font-size: .75rem; color: var(--gray-400); margin-top: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.legal-doc-arrow  { margin-left: auto; color: var(--gray-300); flex-shrink: 0; transition: color .2s, transform .2s; }
.legal-doc-btn:hover .legal-doc-arrow { color: var(--c1); transform: translateX(2px); }

.legal-back-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .88rem; font-weight: 600;
  color: var(--c1); background: none; border: none; cursor: pointer;
  padding: 0; margin-bottom: 1.5rem; transition: color .2s;
}
.legal-back-btn:hover { color: var(--c2); }
.legal-back-btn svg   { transition: transform .2s; }
.legal-back-btn:hover svg { transform: translateX(-2px); }

.legal-doc-content {
  background: var(--gray-100); border-radius: 1rem;
  padding: 1.5rem; border: 1px solid var(--gray-200);
}
.legal-doc-content p {
  font-size: .88rem; color: var(--gray-700);
  line-height: 1.75; white-space: pre-line;
}
/* Rich HTML content from fetched .html files */
.legal-doc-content--html {
  font-size: .875rem; color: var(--gray-700); line-height: 1.75;
}
.legal-doc-content--html h1,
.legal-doc-content--html h2,
.legal-doc-content--html h3 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  color: var(--gray-900); margin: 1.25rem 0 .5rem;
}
.legal-doc-content--html h1 { font-size: 1.1rem; }
.legal-doc-content--html h2 { font-size: 1rem; }
.legal-doc-content--html h3 { font-size: .92rem; }
.legal-doc-content--html p  { margin: .5rem 0; }
.legal-doc-content--html ul,
.legal-doc-content--html ol { padding-left: 1.4rem; margin: .5rem 0; }
.legal-doc-content--html li { margin-bottom: .25rem; }
.legal-doc-content--html a  { color: #0cb5d2; text-decoration: underline; }
/* Loading state */
.legal-doc-loading {
  display: flex; align-items: center; justify-content: center;
  gap: .75rem; padding: 3rem 1rem;
  font-size: .9rem; color: var(--gray-400);
}
.legal-doc-spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid rgba(12,181,210,.15);
  border-top-color: #0cb5d2;
  animation: spin .7s linear infinite; flex-shrink: 0;
}
/* ══════════════════════════════════════════
   ORDERS TAB — Settings
══════════════════════════════════════════ */

/* Loading state */
.ord-loading {
  display: flex; align-items: center; justify-content: center;
  gap: .75rem; padding: 3rem 1rem;
  font-size: .9rem; color: var(--gray-400);
}
.ord-spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid rgba(12,181,210,.15);
  border-top-color: #0cb5d2;
  animation: ord-spin .7s linear infinite; flex-shrink: 0;
}
@keyframes ord-spin { to { transform: rotate(360deg); } }

/* Empty / error state */
.ord-empty {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 2.5rem 1rem; gap: .75rem;
}
.ord-empty-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: linear-gradient(135deg, rgba(12,181,210,.1), rgba(83,17,89,.08));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .25rem;
}
.ord-empty-icon svg { width: 1.6rem; height: 1.6rem; color: var(--c1); }
.ord-empty-icon--err { background: rgba(239,68,68,.08); }
.ord-empty-icon--err svg { color: #ef4444; }
.ord-empty-title { font-size: 1rem; font-weight: 700; color: var(--gray-800); }
.ord-empty-sub   { font-size: .82rem; color: var(--gray-400); line-height: 1.6; max-width: 22rem; }
.ord-retry-btn {
  margin-top: .25rem; padding: .55rem 1.4rem;
  border: 1.5px solid var(--c1); border-radius: .75rem;
  color: var(--c1); background: none; font-size: .83rem;
  font-weight: 700; cursor: pointer; transition: background .2s, color .2s;
}
.ord-retry-btn:hover { background: var(--c1); color: #fff; }

/* Status badge */
.ord-status {
  display: inline-flex; align-items: center;
  padding: .2rem .65rem; border-radius: 99px;
  font-size: .73rem; font-weight: 700; letter-spacing: .02em;
  white-space: nowrap; flex-shrink: 0;
}
.ord-status--pending   { background: rgba(251,191,36,.12);  color: #b45309; }
.ord-status--active    { background: rgba(74,222,128,.12);  color: #16a34a; }
.ord-status--cancelled { background: rgba(239,68,68,.1);    color: #dc2626; }

/* Order list */
.ord-list { display: flex; flex-direction: column; gap: .75rem; }

.ord-card {
  width: 100%; text-align: left; background: #fff;
  border: 1.5px solid var(--gray-200); border-radius: 1.1rem;
  padding: 1rem 1.1rem .85rem; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.ord-card:hover {
  border-color: var(--c1);
  box-shadow: 0 4px 20px rgba(12,181,210,.12);
  transform: translateY(-1px);
}

.ord-card-head {
  display: flex; align-items: center;
  justify-content: space-between; gap: .5rem;
  margin-bottom: .75rem;
}
.ord-card-plan {
  font-family: var(--font);
  font-weight: 800; color: var(--gray-900);
}
.ord-card-meta { display: flex; flex-direction: column; gap: .3rem; }
.ord-card-meta-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem;
}
.ord-card-label { color: var(--gray-400); font-weight: 500; }
.ord-card-val   { color: var(--gray-700); font-weight: 600; }
.ord-card-ref   { font-family: var(--font); font-size: .72rem; color: var(--gray-400); }
.ord-card-price { color: var(--c1); font-weight: 800; font-size: .88rem; }

.ord-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .85rem; padding-top: .75rem;
  border-top: 1px solid var(--gray-100);
  font-size: .78rem; font-weight: 700;
  color: var(--c1); transition: color .2s;
}
.ord-card:hover .ord-card-footer { color: var(--c2); }

/* Order detail */
.ord-detail-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: .75rem;
  margin-bottom: 1.25rem; padding-bottom: 1rem;
  border-bottom: 1.5px solid var(--gray-100);
}
.ord-detail-plan {
  font-family: var(--font);
  font-weight: 900; color: var(--gray-900);
}
.ord-detail-ref {
  font-family: var(--font); font-size: .73rem;
  color: var(--gray-400); margin-top: .2rem;
}

.ord-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .75rem 1rem; margin-bottom: 1.25rem;
}
.ord-detail-block {
  background: var(--gray-100); border-radius: .75rem;
  padding: .7rem .85rem;
}
.ord-detail-label { font-size: .72rem; font-weight: 600; color: var(--gray-400); margin-bottom: .2rem; }
.ord-detail-value { font-size: .92rem; font-weight: 700; color: var(--gray-800); }
.ord-detail-price { color: var(--c1); font-size: 1rem; font-weight: 900; }

.ord-detail-breakdown {
  background: var(--gray-100); border-radius: .85rem;
  padding: .85rem 1rem; display: flex; flex-direction: column; gap: .45rem;
}
.ord-breakdown-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; color: var(--gray-700);
}
.ord-breakdown-row span:first-child { font-weight: 500; }
.ord-breakdown-row span:last-child  { font-weight: 700; }
.ord-breakdown-row--sub {
  padding-left: 1rem; font-size: .77rem; color: var(--gray-400);
}
.ord-breakdown-row--sub span:last-child { font-weight: 600; }
.ord-breakdown-row--discount span:last-child { color: #16a34a; }

/* ── Order detail: full cost breakdown (mirrors payment.php modal) ── */
.ord-breakdown-title {
  font-size: .95rem; font-weight: 900; color: #111827;
  margin: 1.25rem 0 .75rem;
}
#settings-content .confirm-detail-section {
  margin: .75rem 0; border-radius: 1rem; overflow: hidden;
  border: 1px solid #e5e7eb;
}
#settings-content .confirm-detail-heading {
  font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; padding: .45rem .9rem;
  background: #f9fafb; color: #6b7280; border-bottom: 1px solid #e5e7eb;
}
#settings-content .confirm-detail-row {
  display: flex; justify-content: space-between; padding: .4rem .9rem;
  font-size: .81rem; border-bottom: 1px solid #f3f4f6; color: #374151;
}
#settings-content .confirm-detail-row:last-child { border-bottom: none; }
#settings-content .confirm-detail-row strong { font-weight: 700; color: #111827; }

/* ── Cancel order button ── */
.ord-cancel-section {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid #f3f4f6;
}
.ord-cancel-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; padding: .8rem 1rem;
  background: #fff; color: #dc2626;
  border: 1.5px solid #fecaca; border-radius: .9rem;
  font-size: .85rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.ord-cancel-btn:hover {
  background: #fef2f2; border-color: #f87171;
  box-shadow: 0 2px 8px rgba(220,38,38,.12);
}
.ord-cancel-btn:disabled {
  opacity: .5; cursor: not-allowed; background: #f9fafb;
  border-color: #e5e7eb; color: #9ca3af;
}

/* ── Cancel order confirmation modal ── */
.ord-cancel-overlay {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(8, 2, 18, 0);
  backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  opacity: 0; pointer-events: none;
  transition: background .28s ease, backdrop-filter .28s ease, opacity .28s ease;
}
.ord-cancel-overlay.open {
  opacity: 1; pointer-events: auto;
  background: rgba(8, 2, 18, 0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ord-cancel-box {
  background: #fff;
  border-radius: 1.5rem;
  width: 100%; max-width: 400px;
  padding: 2.25rem 2rem 2rem;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,.18), 0 1px 0 rgba(255,255,255,.9) inset;
  border: 1px solid rgba(255,255,255,.7);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  opacity: 0;
  transform: scale(.92) translateY(12px);
  transition: opacity .28s cubic-bezier(.4,0,.2,1), transform .32s cubic-bezier(.34,1.56,.64,1);
}
.ord-cancel-overlay.open .ord-cancel-box {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.ord-cancel-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1.5px solid #fcd34d;
  display: flex; align-items: center; justify-content: center;
  color: #d97706;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(217,119,6,.15);
}
.ord-cancel-title {
  font-weight: 800; font-size: 1.35rem;
  color: #111827;
  margin: 0 0 .55rem;
  letter-spacing: -.02em;
}
.ord-cancel-sub {
  font-size: .86rem;
  color: #6b7280;
  margin: 0 0 1.25rem;
  line-height: 1.55;
  max-width: 320px;
}
.ord-cancel-ref {
  display: flex; align-items: center; gap: .6rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  padding: .55rem 1rem;
  margin-bottom: 1.5rem;
  width: 100%; max-width: 280px;
  justify-content: center;
}
.ord-cancel-ref-label {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #9ca3af;
}
.ord-cancel-ref-val {
  font-size: .82rem; font-weight: 800;
  font-family: monospace;
  color: #374151;
}
.ord-cancel-actions {
  display: flex; gap: .65rem; width: 100%;
}
.ord-cancel-dismiss {
  flex: 1;
  padding: .75rem 1rem;
  font-weight: 600; font-size: .88rem;
  background: #f3f4f6; color: #374151;
  border: 1.5px solid #e5e7eb;
  border-radius: .9rem;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.ord-cancel-dismiss:hover {
  background: #e5e7eb; border-color: #d1d5db;
  transform: translateY(-1px);
}
.ord-cancel-dismiss:disabled { opacity: .5; cursor: not-allowed; }
.ord-cancel-confirm {
  flex: 1.3;
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .75rem 1rem;
  font-weight: 700; font-size: .88rem;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff; border: none;
  border-radius: .9rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(220,38,38,.3);
  position: relative; overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}
.ord-cancel-confirm::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-18deg);
  transition: left .45s ease;
}
.ord-cancel-confirm:hover::before { left: 120%; }
.ord-cancel-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(220,38,38,.4);
}
.ord-cancel-confirm:disabled {
  opacity: .6; cursor: not-allowed; transform: none;
  box-shadow: 0 4px 16px rgba(220,38,38,.15);
}
/* Spinner inside confirm button */
.ord-cancel-spinner {
  width: 14px; height: 14px;
  animation: ord-spin .7s linear infinite;
}
@keyframes ord-spin { to { transform: rotate(360deg); } }
/* ════════════════════════════════════════════════════
   NAV CTA SPACING OVERRIDE
════════════════════════════════════════════════════ */
.nav-cta { gap: .4rem; margin-right: .5rem; }

/* ════════════════════════════════════════════════════
   LOGIN SUCCESS MODAL
════════════════════════════════════════════════════ */
.login-success-overlay {
  display: none; position: fixed; inset: 0; z-index: 99998;
  background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 1rem;
}
.login-success-overlay.open { display: flex; }
.login-success-box {
  background: #fff; border-radius: 1.75rem; width: 100%; max-width: 400px;
  padding: 2.5rem 2rem 2rem; text-align: center;
  box-shadow: 0 30px 70px -15px rgba(0,0,0,.3);
  animation: lsScaleIn .3s cubic-bezier(0.16,1,0.3,1);
  position: relative; overflow: hidden;
}
@keyframes lsScaleIn { from{transform:scale(.85);opacity:0} to{transform:scale(1);opacity:1} }
.login-success-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #0cb5d2, #531159);
}
.login-success-icon-wrap {
  width: 5rem; height: 5rem; border-radius: 50%; margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #0cb5d2, #531159);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 35px rgba(12,181,210,.4), 0 0 0 10px rgba(12,181,210,.1);
  animation: lsPop .5s .1s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes lsPop { from{transform:scale(0);opacity:0} to{transform:scale(1);opacity:1} }
.login-success-icon-wrap svg { width: 2.4rem; height: 2.4rem; color: #fff; }
.login-success-title {
  font-family: 'Syne', sans-serif; font-size: 1.45rem; font-weight: 900;
  color: #111827; margin-bottom: .4rem; letter-spacing: -.02em;
}
.login-success-name {
  font-size: .95rem; color: #6b7280; margin-bottom: 1.75rem; line-height: 1.5;
}
.login-success-name strong { color: #111827; font-weight: 700; }
.login-success-btn {
  width: 100%; padding: .95rem; border: none; border-radius: 1rem; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: .95rem; color: #fff;
  background: linear-gradient(135deg, #0cb5d2, #531159);
  box-shadow: 0 8px 25px rgba(12,181,210,.35);
  transition: transform .2s, box-shadow .2s;
}
.login-success-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(12,181,210,.5); }
/* ══════════════════════════════════════════
   LANGUAGE DROPDOWN  —  styled like btn-hero-primary
══════════════════════════════════════════ */
.lang-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

/* ── Trigger button — subtle pill on light navbar ── */
.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 10px;
  background: rgba(12,181,210,.08);
  border: 1.5px solid rgba(12,181,210,.25);
  border-radius: .85rem;
  cursor: pointer;
  color: var(--gray-700);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background .22s, border-color .22s, color .22s, transform .22s, box-shadow .22s;
}

.lang-dropdown-btn:hover {
  background: rgba(12,181,210,.14);
  border-color: rgba(12,181,210,.55);
  color: var(--c1);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(12,181,210,.15);
}

.lang-dropdown.open .lang-dropdown-btn {
  background: rgba(12,181,210,.14);
  border-color: rgba(12,181,210,.5);
  color: var(--c1);
}

.lang-flag {
  font-size: 1.15em;
  line-height: 1;
  display: inline-block;
}

.lang-code {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.lang-chevron {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0.9;
  flex-shrink: 0;
}

.lang-dropdown.open .lang-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* ── Dropdown menu ── */
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 120px;
  background: rgba(10, 4, 18, 0.98);
  border: 1px solid rgba(12,181,210,0.25);
  border-radius: 14px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.65),
    0 0 0 1px rgba(12,181,210,0.1),
    0 0 30px rgba(12,181,210,0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  /* Hidden state */
  opacity: 0;
  transform: translateY(-8px) scale(0.95);
  pointer-events: none;
  transform-origin: top right;
  transition:
    opacity 0.24s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lang-dropdown.open .lang-dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Staggered item entrance */
.lang-dropdown.open .lang-option:nth-child(1) { transition-delay: 0.03s; }
.lang-dropdown.open .lang-option:nth-child(2) { transition-delay: 0.07s; }
.lang-dropdown.open .lang-option:nth-child(3) { transition-delay: 0.11s; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 9px;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  opacity: 0;
  transform: translateX(5px);
  transition: background 0.15s, color 0.15s, opacity 0.2s ease, transform 0.2s ease;
}

.lang-dropdown.open .lang-option {
  opacity: 1;
  transform: translateX(0);
}

.lang-option:hover {
  background: rgba(12,181,210,0.15);
  color: #fff;
}

.lang-option.active {
  background: linear-gradient(135deg, rgba(12,181,210,0.2), rgba(83,17,89,0.2));
  color: #0cb5d2;
}

.lang-option-code {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 700;
}

.lang-check {
  color: #0cb5d2;
  flex-shrink: 0;
}

/* ── Mobile lang list — also gradient style ── */
.mobile-lang-list {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 8px 0 4px;
  flex-wrap: wrap;
}

.mobile-lang-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: .9rem;
  text-decoration: none;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.mobile-lang-option:hover {
  background: rgba(12,181,210,0.15);
  border-color: rgba(12,181,210,0.4);
  color: #fff;
  transform: translateY(-1px);
}

.mobile-lang-option.active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(12,181,210,.4);
}
/* ══════════════════════════════════════════
   Login Success Screen (auth modal overlay)
   ══════════════════════════════════════════ */

#login-success-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 3rem;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.35s ease, transform 0.35s ease;
  min-height: 260px;
}

#login-success-screen.lss-visible {
  opacity: 1;
  transform: scale(1);
}

.login-success-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

/* Animated checkmark circle */
.login-success-icon {
  width: 72px;
  height: 72px;
  color: var(--primary, #0cb5d2);
  filter: drop-shadow(0 0 14px rgba(12,181,210,0.45));
}

.login-success-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Circle draw animation */
.lsi-circle {
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  animation: lsi-draw-circle 0.55s cubic-bezier(.4,0,.2,1) 0.1s forwards;
}

/* Checkmark draw animation */
.lsi-check {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: lsi-draw-check 0.4s cubic-bezier(.4,0,.2,1) 0.6s forwards;
}

@keyframes lsi-draw-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes lsi-draw-check {
  to { stroke-dashoffset: 0; }
}

.login-success-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}

.login-success-sub {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}
/* ══════════════════════════════════════════
   Triple-ring button loader (auth modal)
   ══════════════════════════════════════════ */

.btn-loader {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  border: 3px solid;
  border-color: #FFF #FFF transparent transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  vertical-align: middle;
}

.btn-loader::after,
.btn-loader::before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  margin: auto;
  border: 3px solid;
  border-color: transparent transparent #0099ff #7b0094;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  animation: rotationBack 0.5s linear infinite;
  transform-origin: center center;
}

.btn-loader::before {
  width: 12px;
  height: 12px;
  border-color: #FFF #FFF transparent transparent;
  animation: rotation 1.5s linear infinite;
}

@keyframes rotation {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rotationBack {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

/* Button loading state */
#submit-btn.btn--loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  cursor: not-allowed;
  opacity: 0.85;
}

/* ══════════════════════════════════════════
   Login Success Screen (auth modal overlay)
   ══════════════════════════════════════════ */

#login-success-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 3rem;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.35s ease, transform 0.35s ease;
  min-height: 260px;
}

#login-success-screen.lss-visible {
  opacity: 1;
  transform: scale(1);
}

.login-success-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

/* Animated checkmark circle */
.login-success-icon {
  width: 68px;
  height: 68px;
  color: var(--primary, #0cb5d2);
  filter: drop-shadow(0 0 14px rgba(12,181,210,0.45));
  margin-bottom: 0.4rem;
}

.login-success-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.lsi-circle {
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  animation: lsi-draw-circle 0.55s cubic-bezier(.4,0,.2,1) 0.1s forwards;
}

.lsi-check {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: lsi-draw-check 0.4s cubic-bezier(.4,0,.2,1) 0.6s forwards;
}

@keyframes lsi-draw-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes lsi-draw-check {
  to { stroke-dashoffset: 0; }
}

.login-success-logged {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary, #0cb5d2);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0;
  animation: lss-fade-up 0.4s ease 0.8s forwards;
}

.login-success-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: lss-fade-up 0.4s ease 1s forwards;
}

.login-success-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
  opacity: 0;
  animation: lss-fade-up 0.4s ease 1.15s forwards;
}

@keyframes lss-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ══════════════════════════════════════════
   LOGOUT CONFIRMATION MODAL
   ══════════════════════════════════════════ */

#logout-modal {
  /* Uses same .modal-overlay base — redefine for polish */
  z-index: 99999;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  transition: background .28s ease, backdrop-filter .28s ease;
}
#logout-modal.open {
  background: rgba(8, 2, 18, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logout-modal-box {
  background: #fff;
  border-radius: 1.5rem;
  width: 100%;
  max-width: 380px;
  padding: 2.25rem 2rem 2rem;
  position: relative;
  box-shadow:
    0 32px 80px rgba(0,0,0,.18),
    0 1px 0 rgba(255,255,255,.9) inset;
  border: 1px solid rgba(255,255,255,.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Entry animation */
  opacity: 0;
  transform: scale(.92) translateY(12px);
  transition: opacity .28s cubic-bezier(.4,0,.2,1), transform .32s cubic-bezier(.34,1.56,.64,1);
}
#logout-modal.open .logout-modal-box {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Icon circle */
.logout-modal-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  border: 1.5px solid #fecdd3;
  display: flex; align-items: center; justify-content: center;
  color: #e11d48;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(225,29,72,.12);
}

.logout-modal-title {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--gray-900, #111);
  margin: 0 0 .55rem;
  letter-spacing: -.02em;
}

.logout-modal-sub {
  font-size: .88rem;
  color: var(--gray-500, #6b7280);
  margin: 0 0 1.75rem;
  line-height: 1.55;
  max-width: 280px;
}

/* Action buttons row */
.logout-modal-actions {
  display: flex;
  gap: .65rem;
  width: 100%;
}

.logout-modal-cancel {
  flex: 1;
  padding: .7rem 1rem;
  font-weight: 600; font-size: .88rem;
  background: var(--gray-100, #f3f4f6);
  color: var(--gray-700, #374151);
  border: 1.5px solid var(--gray-200, #e5e7eb);
  border-radius: .9rem;
  cursor: pointer;
  letter-spacing: .01em;
  transition: background .2s, border-color .2s, transform .2s;
}
.logout-modal-cancel:hover {
  background: var(--gray-200, #e5e7eb);
  border-color: var(--gray-300, #d1d5db);
  transform: translateY(-1px);
}

.logout-modal-confirm {
  flex: 1.3;
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1rem;
  font-weight: 700; font-size: .88rem;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #fff;
  border: none;
  border-radius: .9rem;
  cursor: pointer;
  letter-spacing: .01em;
  box-shadow: 0 4px 16px rgba(225,29,72,.3);
  position: relative; overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}
/* Shine sweep */
.logout-modal-confirm::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transform: skewX(-18deg);
  transition: left .45s ease;
}
.logout-modal-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(225,29,72,.45);
}
.logout-modal-confirm:hover::before { left: 160%; }
.logout-modal-confirm:focus-visible {
  outline: 2px solid #e11d48;
  outline-offset: 3px;
}

/* ════════════════════════════════════════════════════
   PRIVACY CHECKBOX (signup)
════════════════════════════════════════════════════ */
.privacy-check-wrap {
  margin: .75rem 0 .5rem;
}
.privacy-check-label {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  cursor: pointer;
  line-height: 1.4;
}
.privacy-check-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: var(--primary, #7c3aed);
  cursor: pointer;
}
.privacy-check-text {
  font-size: .82rem;
  color: var(--gray-600, #4b5563);
}
.privacy-info-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
  color: var(--primary, #7c3aed);
  opacity: .7;
  transition: opacity .15s;
  text-decoration: none;
}
.privacy-info-icon:hover { opacity: 1; }

/* Disabled submit state */
.btn-submit--disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ════════════════════════════════════════════════════
   REGISTRATION SUCCESS MODAL
════════════════════════════════════════════════════ */
.reg-success-box {
  text-align: center;
  padding: 2.5rem 2rem;
}
.reg-success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.25rem;
  color: #16a34a;
}
.reg-success-icon svg { width: 100%; height: 100%; }
.reg-success-icon .lsi-circle {
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  animation: lsi-draw-circle .45s .1s ease forwards;
}
.reg-success-icon .lsi-check {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: lsi-draw-check .3s .55s ease forwards;
}
.reg-success-title {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin: 0 0 .5rem;
}
.reg-success-sub {
  font-size: .9rem;
  color: var(--gray-500, #6b7280);
  margin: 0 0 1.5rem;
}

/* ════════════════════════════════════════════════════
   CAPTCHA MODAL — adres jest juz zarejestrowany
════════════════════════════════════════════════════ */
/* Stoi NA modalu rejestracji, ktory zostaje otwarty pod spodem — zamkniecie
   captchy ma oddac uzytkownikowi wypelniony formularz, a nie pusta strone. */
.captcha-overlay { z-index: 10000; }
.captcha-box     { max-width: 400px; }

.captcha-image-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1rem;
}
.captcha-img {
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  display: block;
  border: 1.5px solid var(--gray-200, #e5e7eb);
  border-radius: .75rem;
  background: #f6f8fb;
  user-select: none;
  -webkit-user-select: none;
}
.captcha-reload {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1.5px solid var(--gray-200, #e5e7eb);
  border-radius: .75rem;
  background: #fff;
  color: var(--gray-500, #6b7280);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.captcha-reload:hover {
  color: var(--gray-900, #111827);
  border-color: var(--gray-300, #d1d5db);
}
.captcha-reload svg { width: 18px; height: 18px; transition: transform .25s ease; }
.captcha-reload:active svg { transform: rotate(-90deg); }

.captcha-input {
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .35em;
  /* letter-spacing doklada odstep TAKZE za ostatnim znakiem, wiec bez tego
     wpisany tekst siedzi wizualnie za bardzo w lewo. */
  text-indent: .35em;
  text-transform: uppercase;
}
.verified-progress-wrap {
  width: 100%;
  max-width: 180px;
  height: 3px;
  background: rgba(255,255,255,.15);
  border-radius: 99px;
  margin: 0 auto;
  overflow: hidden;
}
.verified-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #0cb5d2, #7c3aed);
}
.verified-progress-bar.running {
  transition: width 2.5s linear;
  width: 100%;
}
.reg-success-btn {
  max-width: 220px;
  margin: 0 auto;
}
/* ════════════════════════════════════════════════════
   TERMS / PRIVACY POLICY MODAL (shared — index + payment)
════════════════════════════════════════════════════ */
.terms-overlay { display:none;position:fixed;inset:0;z-index:10000;background:rgba(5,1,10,.75);backdrop-filter:blur(8px);align-items:flex-start;justify-content:center;padding:5rem 1rem 1rem; }
.terms-overlay.open { display:flex; }
.terms-box { background:#fff;border-radius:1.75rem;width:100%;max-width:680px;height:calc(100vh - 6rem);display:flex;flex-direction:column;box-shadow:0 30px 80px -15px rgba(0,0,0,.45);overflow:hidden;animation:termsIn .3s cubic-bezier(.16,1,.3,1); }
@keyframes termsIn { from{transform:translateY(24px) scale(.97);opacity:0} to{transform:translateY(0) scale(1);opacity:1} }
.terms-header { padding:1.25rem 1.5rem 1rem;border-bottom:1px solid #f0f2f5;flex-shrink:0;display:flex;align-items:flex-start;gap:.85rem; }
.terms-header-icon { width:2.4rem;height:2.4rem;border-radius:.7rem;background:linear-gradient(135deg,rgba(12,181,210,.12),rgba(83,17,89,.08));display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.terms-header-icon svg { color:#0cb5d2;width:1.1rem;height:1.1rem; }
.terms-header-text { flex:1;min-width:0; }
.terms-header-text h2 { font-family:'Syne',sans-serif;font-size:1.05rem;font-weight:900;color:#111827;letter-spacing:-.02em;margin-bottom:.2rem; }
.terms-header-text p  { font-size:.75rem;color:#6b7280;line-height:1.4; }
.terms-close { width:2rem;height:2rem;border-radius:.5rem;background:#f3f4f6;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .2s;margin-left:auto; }
.terms-close:hover { background:#e5e7eb; }
.terms-close svg { width:.9rem;height:.9rem;color:#6b7280; }
.terms-scroll-wrap { flex:1 1 0;min-height:0;overflow:hidden;position:relative; }
.terms-scroll-wrap::after { content:'';position:absolute;bottom:0;left:0;right:0;height:4rem;background:linear-gradient(to top,rgba(255,255,255,1),rgba(255,255,255,0));pointer-events:none;transition:opacity .4s; }
.terms-scroll-wrap.at-bottom::after { opacity:0; }
.terms-body { width:100%;height:100%;overflow-y:scroll;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:1.5rem;font-size:.84rem;color:#374151;line-height:1.7;box-sizing:border-box;scrollbar-width:thin;scrollbar-color:#d1d5db transparent; }
.terms-body::-webkit-scrollbar { width:5px; }
.terms-body::-webkit-scrollbar-track { background:transparent; }
.terms-body::-webkit-scrollbar-thumb { background:#d1d5db;border-radius:99px; }
.terms-progress-bar { height:3px;background:#f0f2f5;flex-shrink:0; }
.terms-progress-fill { height:100%;background:linear-gradient(90deg,#0cb5d2,#531159);transition:width .1s;border-radius:0 3px 3px 0; }
.terms-footer { padding:1rem 1.5rem;border-top:1px solid #f0f2f5;flex-shrink:0;display:flex;align-items:center;gap:.75rem; }
.terms-scroll-hint { flex:1;font-size:.75rem;color:#9ca3af;display:flex;align-items:center;gap:.4rem;transition:opacity .3s; }
.terms-scroll-hint svg { width:.9rem;height:.9rem;flex-shrink:0; }
.terms-scroll-hint.hidden { opacity:0;pointer-events:none; }
.terms-accept-btn { display:flex;align-items:center;gap:.45rem;padding:.72rem 1.4rem;border-radius:.85rem;font-weight:800;font-size:.85rem;cursor:pointer;border:none;transition:all .25s;white-space:nowrap; }
.terms-accept-btn:disabled { background:#e5e7eb;color:#9ca3af;box-shadow:none;cursor:not-allowed; }
.terms-accept-btn:not(:disabled) { background:linear-gradient(135deg,#0cb5d2,#531159);color:#fff;box-shadow:0 4px 14px rgba(12,181,210,.35); }
.terms-accept-btn:not(:disabled):hover { transform:translateY(-1px);box-shadow:0 6px 20px rgba(12,181,210,.45); }
.terms-accept-btn svg { width:.8rem;height:.8rem; }

/* Privacy info icon — button reset */
.privacy-info-icon {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}

/* Stan ladowania dokumentu prawnego. Dokumenty NIE sa juz wklejane w HTML —
   modal pobiera je przez fetch(legal-doc.php) dopiero przy otwarciu. Trzy
   dokumenty w checkoucie wazyly 90 kB, a polityka prywatnosci doklejala sie
   przez authModal do kazdej z siedmiu stron.

   Wazne: dopoki tu stoi placeholder, przycisk "Akceptuje" MUSI zostac
   zablokowany — patrz _docLoaded w js/auth.js. Placeholder miesci sie
   w oknie, wiec bez tego warunku licznik przewijania uznalby dokument
   za przeczytany do konca. */
.doc-loading { display:flex;align-items:center;justify-content:center;gap:.6rem;padding:3rem 1rem;color:#6b7280;font-size:.85rem; }
.doc-spinner { width:18px;height:18px;border:2px solid #e5e7eb;border-top-color:#0cb5d2;border-radius:50%;animation:doc-spin .7s linear infinite;flex-shrink:0; }
@keyframes doc-spin { to { transform: rotate(360deg); } }
.doc-error { padding:2.5rem 1.5rem;text-align:center;color:#b91c1c;font-size:.85rem;line-height:1.6; }

/* ── Strona 404 (includes/notFound.php) ─────────────
   Ramka przychodzi ze wspolnego bloku POWLOKA PODSTRON TRESCIOWYCH —
   tutaj tylko to, czego tamten nie obejmuje. Hero potrzebuje wlasnego
   odstepu od gory, bo ta strona jako jedyna nie ma nad nim breadcrumbu,
   ktory na pozostalych podstronach wnosi --page-top. */
.nf-hero { padding-top: var(--page-top, 6rem); }
.nf-actions { display:flex;justify-content:center;gap:.7rem;flex-wrap:wrap;margin-top:1.75rem; }
.nf-btn {
  display:inline-flex;align-items:center;gap:.4rem;padding:.7rem 1.4rem;
  border-radius:.75rem;font-size:.86rem;font-weight:700;text-decoration:none;
  color:#fff;background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.14);transition:background .2s,border-color .2s;
}
.nf-btn:hover { background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.22); }
.nf-btn--primary { background:var(--grad);border-color:transparent; }
.nf-btn--primary:hover { filter:brightness(1.1);background:var(--grad); }
