/* ===== Global ===== */
html, body {
  font-family: 'Roboto', sans-serif;
  color: #4a5568;
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  background: #fff;
  height: 100%;
}

/* ---- Animacja typewriter ---- */
@keyframes slideLeftPulse {
  0%   { transform: translateX(-100px) scale(1); opacity: 0; }
  50%  { transform: translateX(0)      scale(1); opacity: 1; }
  60%  { transform: translateX(0)      scale(0.9); }
  70%  { transform: translateX(0)      scale(1); }
  80%  { transform: translateX(0)      scale(0.9); }
  100% { transform: translateX(0)      scale(1); }
}

/* podmieniamy animację na ten jeden keyframe */
section.typewriter-container {
  animation: slideLeftPulse 1.6s ease-out forwards;
}

/* ---- Animacja auth-wrapper ---- */
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

div.auth-wrapper {
  animation: slideUp 0.8s ease-out forwards;
}

/* ---- Animacja mobile-menu ---- */
@keyframes slideRight {
  0% {
    opacity: 1;
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

div.mobile-menu.open {
  animation: slideRight 0.6s ease-out forwards;
}

/* ===== Wrapper for main content ===== */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  flex: 1; /* <-- to jest kluczowe */
  width: 100%;
}

/* Gradient section */
.gradient-section {
  background: linear-gradient(to bottom right, #6a11cb, #2575fc);
  padding: 20px 10px;
}

/* Biała sekcja */
/* ===== White Section Base ===== */
.white-section {
  background: #F4F6FB;
  padding: 40px 20px;
  position: relative;
}
.white-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 5px;
  background: #2CE877;
}

/* --- Biały blok ze statystykami --- */
.stats-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 60px; /* odstęp do kolejnego bloku */
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.stat {
  text-align: center;
  background: #eaedf4;
  padding: 40px;
  border-radius: 8px;
}
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #30a566;
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #4a5568;
}

/* --- Biały blok z mediami (obraz + tekst) --- */
.media-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.media-left .media-image {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto;
  border: 10px solid #d9dfee;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}
.media-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 16px;
}
.media-desc {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ===== Responsywność ===== */
@media (max-width: 768px) {
  .stats-section,
  .media-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .media-left {
    margin-bottom: 20px;
  }
  .stats-grid { grid-template-columns: auto; }
}

/* ===== Scroll-in animation ===== */
.animate-section {
  opacity: 0;                /* cały block początkowo niewidoczny */
}
.animate-section > * {
  opacity: 0;
  transition: transform 1.2s ease-out, opacity 0.6s ease-out;
}
/* pierwsza kolumna każdego blocka – zjeżdża z lewej */
.animate-section > :first-child {
  transform: translateX(-50px);
}
/* druga kolumna – zjeżdża z prawej */
.animate-section > :nth-child(2) {
  transform: translateX(50px);
}

/* gdy block dostanie klasę in-view – pokazujemy go */
.animate-section.in-view {
  opacity: 1;
}
.animate-section.in-view > * {
  opacity: 1;
  transform: translateX(0);
}

/* ==== Mobile: wyłącz scroll-in animacje ==== */
@media (max-width: 768px) {
  /* cały block od razu pokazany */
  .animate-section {
    opacity: 1 !important;
  }

  /* dzieci bez transformacji i bez przejść */
  .animate-section > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* Przykładowe style dla wewnętrznych kontenerów */
.gradient-inner {
  max-width: 1200px;
  margin: 60px auto;
}

.white-inner {
  max-width: 1200px;
  margin: 100px auto;
}

@media screen and (max-width: 768px) {
  .white-inner {
    margin: 20px auto;
  }
}

/* ===== Earn Content ===== */
.earn-content {
  position: relative;
  background: linear-gradient(to bottom right, #6a11cb, #2575fc);
  width: 100%;
}

.earn-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: #2CE877;
}

.earn-content-end {
  max-width: 500px;
  padding: 50px 20px;
  margin: auto; /* centrowanie */
}

.earn-content-end h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 40px;
  margin-top: 0;
  text-align: center;
}

/* =========================================
   Header: ukrywanie/pokazywanie przy scrollu
   ========================================= */
.home-header {
  position: absolute;
  top: 0;       /* Twój oryginalny offset */
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  padding: 15px 0;
  transition: transform 0.8s ease, top 0.8s ease;
  z-index: 10;
}

/* kontener z treścią - ograniczony do 1345px */
.header-inner {
  max-width: 1345px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* lub jak trzeba */
}

/* ===== STYL FIXED ===== */
.home-header.is-fixed {
  position: fixed;
  top: 0;
  transform: translateY(-100%);
  padding: 15px 0;
  background: rgba(90, 40, 214, 0.9);
  backdrop-filter: blur(15px);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.09);
}


/* .is-visible/.is-hidden już masz */
.home-header.is-visible { transform: translateY(0); }
.home-header.is-hidden  { transform: translateY(-100%); }


/* ---- Animacja headera ---- */
@keyframes slideDown {
  0%   { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0);      opacity: 1; }
}

/* animacja tylko podczas startu, gdy jest ta klasa */
.home-header.init-slide {
  animation: slideDown 0.8s ease-out forwards;
}

/* ===== Logo ===== */
.home-logo {
  display: flex;
  align-items: center;
}
.home-logo a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.logo-icon {
  width: 17px;
  transform-origin: center center;
  transition: transform 0.3s ease-in-out;
}
.home-logo a:hover .logo-icon {
  transform: rotate(180deg);
}
.logo-text {
  width: 120px;
}

@media screen and (max-width: 768px) {
  .logo-text {
    width: 110px;
  }
  
}

/* ===== NAV ===== */
.home-nav {
  margin-left: 50px;
}
.home-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(5px, 3vw, 50px);
  padding: 0;
  margin: 0;
}
.home-nav a {
  position: relative;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.home-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}
.home-nav a:hover::after {
  width: 100%;
}

button {
  font-family: 'Roboto', sans-serif;
}

button[type="submit"] {
  padding: 10px 20px; /* Wewnętrzny padding */
  font-size: 16px; /* Rozmiar czcionki */
  color: #fff; /* Biały tekst */
  background-color: #4f39de; /* Niebieskie tło */
  border: none; /* Brak obramowania */
  border-radius: 5px; /* Zaokrąglone rogi */
  cursor: pointer; /* Kursor wskazujący */
  transition: background-color 0.3s ease; /* Animacja zmiany koloru tła */
  font-family: 'Roboto', sans-serif;
}

button[type="submit"]:hover {
  background-color: #0a05ae; /* Ciemniejszy niebieski po najechaniu */
}

/* ===== CTA ===== */
.home-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-login {
  display: inline-block;
  padding: 13px 40px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid #fff;
  border-radius: 30px;
  color: #fff;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.btn-login:hover {
  background: #fff;
  color: #281e91;
}
.btn-login:hover::after {
  width: 100%;
}
.btn-get-started {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  background: #10b981;
  border-radius: 30px;
  color: white;
  transition: background 0.2s, color 0.2s;
}
.btn-get-started:hover {
  background: #4ee68b;
  color: #225f0c;
}

/* ===== Hamburger toggle ===== */
.menu-toggle {
  display: none;
}

/* ===== Redesigned mobile menu ===== */
.mobile-menu {
  display: none;
  position: absolute;
  margin-top: 10px; /* odstęp od headera */
  top: 100%;             /* pod headerem */
  left: 10px;            /* wyrównanie z paddingiem headera */
  right: 10px;
  background: #ffffff;   /* jasne tło zamiast ciemnego */
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  overflow: hidden;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 9;
}

.mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
}
.mobile-menu li {
  border-bottom: 1px solid #f0f0f5;
}
.mobile-menu li:last-child {
  border-bottom: none;
}
.mobile-menu a {
  display: block;
  padding: 14px 20px;
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.2s ease;
}
.mobile-menu a:hover {
  background: #f5f5ff;
}

/* Specjalne style dla CTA w mobile menu */
.mobile-menu .btn-login,
.mobile-menu .btn-get-started {
  margin: 12px 20px;
  text-align: center;
}
.mobile-menu .btn-login {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  display: block;
}

.mobile-menu .btn-login:hover {
  background: linear-gradient(135deg, #0e48ac, #0e48ac);
}

.mobile-menu .btn-get-started {
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  display: block;
}
.mobile-menu .btn-get-started:hover {
  background: #0b8f63;
}

/* Wyświetl przycisk na mobilkach */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;              /* zamiast none */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
  }
}

/* Każda kreska */
.menu-toggle .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Gdy menu jest otwarte – dodajemy klasę .open na button */
.menu-toggle.open .bar1 {
  transform: translateY(10px) rotate(45deg);
}
.menu-toggle.open .bar2 {
  opacity: 0;
}
.menu-toggle.open .bar3 {
  transform: translateY(-10px) rotate(-45deg);
}



/* ===== Media queries dla mobile ===== */
@media (max-width: 768px) {
  /* ukrywamy duże menu + CTA */
  .home-nav,
  .home-cta {
    display: none;
  }

  /* Center logo */
  .home-logo {
    margin: 0 auto;
  }
}

/* ===== SITE FOOTER ===== */
.site-footer {
  position: relative;
  background: #061835;
  color: #7188b1;
  padding: 100px 20px 150px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

/* Kolumny */
.footer-col {
  flex: 1 1 150px;
  min-width: 150px;
}
.footer-col--brand {
  flex: 2 1 250px;
}

/* Logo */
.footer-logo {
  width: 140px;
  height: auto;
  margin-bottom: 16px;
}

/* Nagłówki kolumn */
.footer-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Listy linków */
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li {
  margin-bottom: 8px;
}
.footer-list a {
  color: #7188b1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-list a:hover {
  color: #fff;
}

/* Copyright */
.footer-copy {
  font-size: 0.85rem;
  color: #7188b1;
  margin-top: 8px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;            /* wysokość paska */
  background: #2CE877;     /* zielony kolor */
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
  .footer-inner {
    gap: 20px;
  }
  .footer-col,
  .footer-col--brand {
    flex: 1 1 100%;
    text-align: center;
  }
  .footer-logo {
    margin: 0 auto 12px;
  }
}

/* ===== TYPEWRITER SECTION ===== */
.typewriter-container {
  margin-top: 140px;
  text-align: center;
  margin-bottom: 90px;
  padding: 20px;
}

.typewriter-static {
  font-size: 2.6rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
}

.typewriter-dynamic {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 10px 0 0;
  font-family: 'Roboto', sans-serif;
}

.white-text {
  color: #fff;
}

.caret {
  display: inline-block;
  background-color: #fff;
  width: 2px;
  margin-left: 4px;
  animation: blink-caret 1s steps(1) infinite;
  height: 1.2em;
  vertical-align: bottom;
}

@keyframes blink-caret {
  50% { opacity: 0; }
}

/* ===== AUTH PAGES ===== */
.auth-wrapper {
  display: flex;
  flex-direction: column;
}

.auth-left,
.auth-right {
  width: 100%;
}

/* Desktop layout (≥768px) */
@media (min-width: 768px) {
  .auth-wrapper {
    flex-direction: row;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 0;
    margin-bottom: 150px;
  }

  .auth-left,
  .auth-right {
    padding: 40px 30px;
    width: 50%;
  }

  .auth-left {
    background: rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px 0 0 16px;
  }

  .auth-right {
    background: #fff;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0 16px 16px 0;
  }
}

/* Styl jak dawny .auth-container — tylko dla mobile */
@media (max-width: 767px) {
  .auth-wrapper {
    max-width: 450px;
    margin: 20px auto;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  .auth-left {
    background: rgba(255,255,255,0.1);
    width: auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px 16px 0 0;
    padding: 20px;
  }
  .auth-right {
    width: auto;
    background: #fff;
    border-radius: 0 0 16px 16px;
    padding: 20px;
  }

  .typewriter-container {
    margin-top: 100px;
    margin-bottom: 50px;
  }

  .typewriter-static {
    font-size: 1.9rem;
  }
  .typewriter-dynamic {
    font-size: 1.8rem;
  }
  
}


.main-action-button {
  background: #2ce877 !important;
  font-weight: 500!important;
  padding: 14px 32px!important;
  font-size: 20px!important;
  color: #0a5327 !important;
  width: 100%;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease;
}

.main-action-button:hover {
  background: #00b762 !important;
  color: white !important;
}

.with-floating-badge {
  position: relative;
  display: inline-block;
  padding-right: 40px; /* trochę więcej miejsca na badge */
}

.job-badge-floating {
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 15px;
  font-weight: bold;
  color: #26f1ac;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1a21ae;
  padding: 8px 10px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  animation: bounce 1.2s ease-in-out infinite;
  z-index: 2;
}

@media (max-width: 767px) {
  .job-badge-floating {
    top: -20px;
    right: 0px;
  }
}

.job-badge-floating::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #1a21ae;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  20% { transform: translateY(-5px); }
  40% { transform: translateY(0); }
  60% { transform: translateY(-3px); }
  80% { transform: translateY(0); }
}

.green-info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white; /* ciemna zieleń */
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.95rem;
  margin: 20px 0 10px 0;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}

.green-icon {
  font-size: 1.4rem;
  margin-top: 5px;
  color: white;
}


.green-info-title {
  margin: 0;
  font-weight: 600;
  color: white;
  text-align: left;
}

.green-info-desc {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: white;
  text-align: left;
}

.secondary-button {
  display: inline-block;
  padding: 14px 32px !important;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
  width: 100%;
}

/* ===== FORM STYLES ===== */
.login-form,
.register-form {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.login-form label,
.register-form label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #4a5568;
  text-align: left;
}

.login-form input,
.register-form input {
  width: auto;
  padding: 15px;
  font-size: 14px;
  border: 1px solid #bbc5da;
  color: #435b8f;
  border-radius: 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  resize: none;

}

.custom-select {
  width: auto;
  padding: 15px;
  font-size: 14px;
  border: 1px solid #bbc5da;
  color: #545e75;
  border-radius: 4px;
  margin-bottom: 10px;
  background: #f4f6fb;
}
.custom-select:focus {
  border-color: #4C6EF5;
  box-shadow: 0 0 5px rgba(76, 110, 245, 0.3);
  outline: none;
}

.login-form input:focus,
.register-form input:focus {
  border-color: #4C6EF5;
  box-shadow: 0 0 5px rgba(76, 110, 245, 0.3);
  outline: none;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  cursor: pointer;
  color: #a0aec0;
  font-size: 1.4rem;
  top: 8px;
}

.form-title {
  font-size: 1.3rem;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 20px;
  margin-top: 0px;
}

.form-subtitle {
  font-size: 0.9rem;
  font-weight: 400;
  color: #61718d;
  text-align: center;
  margin: 15px 0 0 0;
}
.form-subtitle a {
  color: #3e59ee;
  text-decoration: none;
  font-weight: 600;
}

.auth-title {
  font-size: 1.3rem;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 20px;
  margin-top: 0px;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  margin-bottom: 14px;
  margin-top: 0px;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: white;
  margin-bottom: 20px;
  margin-top: 20px;
}

.section-desc {
  font-size: 0.9rem;
  font-weight: 400;
  color: #4a5568;
  margin-bottom: 20px;
}

@media (max-width: 767px) {
  .section-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
  .section-subtitle {
    font-size: 0.9rem;
  }
  .form-title {
    font-size: 1.1rem;
  }
}

.try-now-image {
  display: block;
  max-width: 500px;
  width: 100%;
  height: auto;
  margin: 0 auto 0 auto; /* wyśrodkowanie + dolny margines */
}

/* ===== Klasyczne tabs z podkreśleniem ===== */
.auth-tabs {
  position: relative;
  display: flex;
  background: #F4F6FB;
  border-radius: 50px;
  overflow: hidden;
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tabs .tab-label {
  flex: 1;
  text-align: center;
  padding: 12px 24px;
  cursor: pointer;
  color: #475f88;
  z-index: 1;
  transition: color 0.3s ease;
  font-size: 14px;
}
.auth-tabs .tab-label:hover,
.auth-tabs .tab-label.active {
  color: #4a5568;
}

.auth-tabs .tab-label i {
  margin-right: 4px;
}
.auth-tabs .tab-slider {
  position: absolute;
  top: 4px;
  left: 0;
  background: #f4f6fb;
  border: 1px solid #a4afc6;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
  cursor: pointer;
  z-index: 2;
  color: #5e6b86;
  font-size: 14px;
}
.auth-tabs .tab-slider i {
  margin-right: 6px;
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #89a1bf;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* tylko linie — nie dotykamy span z tekstem */
.or-divider .divider-line {
  flex: 1;
  height: 1px;
  background: #d1dbe8;
}

/* tekst pomiędzy liniami */
.or-divider .divider-text {
  white-space: nowrap;
}


/* === MOBILE (≤480px) === */
@media (max-width: 480px) {
  .auth-tabs {
    flex-direction: column;
    padding: 0;
    background: none;
    overflow: visible;
    gap: 10px;
    margin-bottom: 14px;
  }
}


/* ukrywanie/wyświetlanie pane’ów */
.tab-content .tab-pane {
  display: none;
}
.tab-content .tab-pane.active {
  display: block;
}

/* == Błędy i opcje logowania == */
.messages {
  margin-bottom: 12px;
}
.error-message {
  color: #d93025;
  font-size: 0.9rem;
  margin: 4px 0;
}

.login-options {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-options a {
  font-size: 0.9rem;
  color: #3e59ee;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 600;
}
.login-options a:hover {
  color: #263fca;
}

.pro-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 20px;
  color: white;
}

.pro-benefits-list li {
  margin-bottom: 14px;
  position: relative;
  font-size: 1em;
  line-height: 1.5em;
  display: flex;
  align-items: flex-start;
}

.benefit-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ---- Shine effect dla .main-action-button, ukryty na co dzień ---- */
.main-action-button {
  overflow: visible;       /* zostawiamy badge widoczny */
}

/* shine efekt cały czas, w pętli co 2s */
.main-action-button::after {
  content: "";
  position: absolute;
  top: 0;
  left:   0%;
  width: 10%;              /* szerokość „światła” */
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  transform: skewX(-25deg);
  pointer-events: none;
  /* animacja trwająca 2s, ale sam połysk to pierwsze 0.8s,
     potem przez 1.2s jest pauza, i znowu: */
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0%, 40% {
    left:  2%;
    opacity: 0;
  }
  50% {
    left: 25%;
    opacity: 1;
  }
  60%, 100% {
    left: 88%;
    opacity: 0;
  }
}


/* ===== Karuzela metod wypłaty ===== */
.methods-carousel {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  /* tło odziedziczone z sekcji (.white-section ma już #F4F6FB) */
}

.methods-carousel h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 20px;
  margin-top: 0;
  text-align: center;
}

/* Track z elastycznym ułożeniem logotypów */
.methods-track {
  display: flex;
  align-items: center;
  animation: scroll-right 15s linear infinite alternate;
}

/* pojedynczy kwadrat z logo (już masz większość styli inline) */
.method-logo {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  margin: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}
.method-logo img {
  max-width: 60%;
  max-height: 60%;
}

/* Fade‐outy po bokach */
.methods-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}
.methods-fade--left {
  left: 0;
  background: linear-gradient(to right, #F4F6FB 0%, transparent 100%);
}
.methods-fade--right {
  right: 0;
  background: linear-gradient(to left,  #F4F6FB 0%, transparent 100%);
}

/* Keyframes przewijania (do prawej) */
@keyframes scroll-right {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-50%)); }
}

/* ==== Mobile: zamiast karuzeli – grid ikon, bez duplikatów ==== */
@media (max-width: 768px) {
  .methods-carousel {
    overflow: visible;
    padding: 20px 10px;
  }

  .methods-track {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    animation: none !important;
  }

  /* ukryj duplikaty (wszystko od 11. elementu wzwyż) */
  .methods-track .method-logo:nth-child(n+11) {
    display: none;
  }

  .method-logo {
    margin: 0 auto;
  }

  .methods-fade {
    display: none !important;
  }
}



/* ---- zoomable + overlay ---- */
.zoomable {
  position: relative;
  display: inline-block;
  cursor: zoom-in;
}

.zoomable .zoom-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(40, 55, 79, 0.8);
  width: 50px;
  height: 50px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.zoomable .zoom-overlay i {
  color: white;
  font-size: 1.6rem;
  transition: color 0.2s ease;
}

/* hover na całej miniaturce */
.zoomable:hover .zoom-overlay {
  background: rgba(255, 255, 255, 0.9);     /* jaśniejsze tło */
}

.zoomable:hover .zoom-overlay i {
  color: #4a5568;                            /* ciemniejsza ikona */
}


/* ---- Modal (pełnoekranowy overlay) ---- */
.image-modal {
  display: none; /* ukryty domyślnie */
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
}
.image-modal.active {
  display: flex;
}
.image-modal .modal-content {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.image-modal .modal-close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.card {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(31,37,45,0.05);
  overflow: hidden;
  margin-top: 100px;
}

.card-content {
  padding: 20px;
  background-color: #fff;
}

/* Container */
    .terms-content {
      padding: 0 1rem;
      color: #4a5568;
      line-height: 1.6;
    }
  
    /* Main heading */
    .terms-content h2 {
      font-size: 1.5rem;
      margin-bottom: 1rem;
      color: #2c3e50;
      border-bottom: 2px solid #6a11cb;
      padding-bottom: 0.5rem;
    }
  
    /* Section subheadings */
    .terms-content h3 {
      font-size: 1.25rem;
      margin-top: 1.5rem;
      margin-bottom: 0.75rem;
      color: #4a5568;
    }
  
    /* Paragraph text */
    .terms-content p {
      margin-bottom: 1rem;
    }
  
    /* Lists */
    .terms-content ul {
      list-style: disc inside;
      margin-bottom: 1rem;
      padding-left: 1.25rem;
    }
    .terms-content li {
      margin-bottom: 0.5rem;
    }
  
    /* Links */
    .terms-content a {
      color: #6a11cb;
      text-decoration: none;
      border-bottom: 1px dotted #6a11cb;
      transition: color 0.2s;
    }
    .terms-content a:hover {
      color: #2575fc;
    }
  
    /* Divider */
    .terms-content hr {
      border: none;
      border-top: 1px solid #e2e8f0;
      margin: 2rem 0;
    }
  
    /* Footer text */
    .terms-content .text-muted {
      font-size: 0.875rem;
      color: #718096;
      text-align: center;
    }
  
    /* Responsive */
    @media (max-width: 600px) {
      .terms-content {
        padding: 0 0.5rem;
      }
      .terms-content h2 {
        font-size: 1.25rem;
      }
      .terms-content h3 {
        font-size: 1.1rem;
      }
    }

/* ========== Cookie Popup ========== */
.cookie-popup {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  max-width: 720px;
  width: calc(100% - 32px);
  background: #1f304a;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  z-index: 10000;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.cookie-popup.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
}

.cookie-content p {
  margin: 0;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.4;
  flex: 1 1 auto;
}

.cookie-content a {
  color: #34ff85;
  text-decoration: none;
  font-weight: 500;
}
.cookie-content a:hover {
  text-decoration: underline;
}

.cookie-btn {
  flex: 0 0 auto;
  background: #2ce877;
  color: #0a5327;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cookie-btn:hover {
  background: #00b762;
  color: #fff;
  transform: translateY(-1px);
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-btn {
    width: 100%;
    font-size: 0.80rem;
    text-align: center;
  }
  .cookie-content p {
  font-size: 0.80rem;
}
}

.info-green-box {
  display: flex;
  max-width: 640px;
  width: 100%;
  align-items: center;  /* zamiast flex-start */
  background: #d5ffeb;
  border: 1px solid #b2f2d8;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(31,37,45,0.05);
  margin: 0 auto;
  box-sizing: border-box;
  text-align: left;
}

.info-green-icon {
  font-size: 24px;
  color: #42a282;
  margin-right: 15px;
}

.info-green-text p {
  font-size: 0.95em;
  font-weight: bold;
  color: #4a5568;
  margin: 0;
  line-height: 1.5;
}

@keyframes popIn2 {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(40px);
  }
  60% {
    opacity: 0.8;
    transform: scale(1.1) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animation {
  opacity: 0;              /* startuje niewidoczny */
  animation: popIn2 0.4s ease-out forwards;
}