/* Zmienne kolorystyczne dopasowane do Twoich screenów */
:root {
  --primary-color: #5A51FF; /* Fiolet z przycisków */
  --primary-hover: #483ee0;
  --bg-color: #F8F9FB; /* Lekko szare tło sekcji, by karty się odcinały */
  --card-bg: #FFFFFF;
  --text-dark: #1A1A2E;
  --text-muted: #6B7280;
  --border-color: #EAEBF0;
  --success-color: #10B981; /* Zielony dla checkmarków */
}

body {
  font-family: 'Inter', sans-serif; /* Zakładam Inter bazując na designie */
}

.pricing-section {
  margin-top: 3vw;
  background-color: var(--bg-color);
  padding: 80px 20px;
}

.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-header {
  text-align: center;
  margin-bottom: 60px;
}

.pricing-header .badge {
  background: #EBEAFA;
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-header h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin: 20px 0 10px;
  font-weight: 800;
  letter-spacing: -1px;
}

.pricing-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Przełącznik Płatności */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.billing-label {
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.billing-label.active {
  color: var(--text-dark);
  font-weight: 700;
}

.discount {
  background: var(--success-color);
  color: white;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 5px;
}

/* Switch (Slider) */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 4px; bottom: 4px;
  background-color: white;
  transition: .4s;
}
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(22px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* Karty Cennika */
.pricing-cards {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.pricing-card {
  background: var(--card-bg);
  border-radius: 24px; /* Duże zaokrąglenia jak na designie */
  padding: 40px 30px;
  flex: 1;
  min-width: 300px;
  max-width: 380px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
  border: 1px solid var(--border-color);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}

.pricing-card.popular {
  border: 2px solid var(--primary-color);
  transform: scale(1.03); /* Lekko powiększony */
}
.pricing-card.popular:hover {
  transform: scale(1.03) translateY(-5px);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(90, 81, 255, 0.3);
}

.card-header {
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 25px;
  margin-bottom: 25px;
}

.card-header h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin: 0 0 10px 0;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 40px;
  margin-bottom: 20px;
}

.price {
  margin-bottom: 5px;
}

.price .amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -2px;
}

.price .currency {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 5px;
}

.fee-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

/* Przyciski */
.btn {
  display: block;
  width: 100%;
  padding: 14px 0;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 15px rgba(90, 81, 255, 0.3);
}

.btn-outline {
  background: white;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}
.btn-outline:hover {
  border-color: var(--text-dark);
  background: var(--bg-color);
}

/* Lista Funkcji */
.features-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.card-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-features li {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  line-height: 1.4;
}

.card-features li b {
  font-weight: 600;
  margin-right: 4px;
}

/* Zastępcze ikony w CSS (zielone checkmarki) */
.icon-check {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #E8F5E9;
  border-radius: 50%;
  position: relative;
  margin-right: 12px;
  flex-shrink: 0;
}
.icon-check::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 4px;
  height: 9px;
  border: solid var(--success-color);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.icon-star {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #FEF3C7;
  border-radius: 50%;
  position: relative;
  margin-right: 12px;
  flex-shrink: 0;
}
.icon-star::after {
  content: '★';
  position: absolute;
  color: #D97706;
  font-size: 12px;
  left: 5px;
  top: 1px;
}

/* --- Poprawione definicje IKON (zamiast pseudoelementów, używamy ikon "solid") --- */
.card-features li i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 12px;
  font-size: 11px; /* Rozmiar samej ikonki */
  font-style: normal; /* Wyłącz pochylenie */
  flex-shrink: 0;
  line-height: 1;
}

/* Zielony Checkmark */
.icon-solid-check {
  background-color: #E8F5E9; /* Jasnozielone tło */
  color: #10B981; /* Ciemnozielony kolor checkmarka */
}
.icon-solid-check::before {
  content: '\2713'; /* Symbol "checkmark" Unicode */
  font-weight: 900;
}

/* Żółta Gwiazdka wsparcia */
.icon-solid-star {
  background-color: #FEF3C7; /* Jasnożółte tło */
  color: #D97706; /* Ciemnożółty kolor gwiazdki */
}
.icon-solid-star::before {
  content: '\2605'; /* Symbol "star" Unicode */
  font-weight: 900;
}

/* --- Animacja wczytywania strony --- */
.animate-on-load {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.pricing-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--delay); /* Każda karta wchodzi po kolei */
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Mocne podkreślenie 0% prowizji --- */
.fee-highlight {
  display: flex;
  align-items: center; /* Teraz w jednej linii dla oszczędności miejsca */
  gap: 8px;
  background: #f4f5fa;
  padding: 6px 14px;
  border-radius: 10px;
  margin: 15px 0 25px 0;
  border-left: 3px solid var(--primary-color);
  width: fit-content; /* Box dopasowuje się do szerokości tekstu */
}

.zero-fee {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 1.15rem; /* Zmniejszone z 1.6rem */
  line-height: 1;
}

.fee-highlight span:not(.zero-fee) {
  font-size: 0.75rem; /* Zmniejszone z 0.8rem */
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Badge rabatu przy rocznym --- */
.discount-pill {
  background: #10B981;
  color: white;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-left: 5px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
  display: inline-block;
  vertical-align: middle;
}

/* Styl dla aktywnej etykiety rocznej */
.billing-label.active {
  color: var(--primary-color);
  font-weight: 800;
  transform: scale(1.05);
}

.billing-label {
    transition: all 0.3s ease;
}

/* Responsywność */
@media (max-width: 992px) {
  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }
  .pricing-card, .pricing-card.popular {
    width: 100%;
    max-width: 500px;
    transform: none;
  }
  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }
}

/* --- Twój obecny kod CSS pozostaje bez zmian, DODAJ poniższe: --- */

/* Mały tag PRO do tekstu */
.pro-tag-inline {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 5px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}

/* Ulepszone boxy z prowizją - wyraźne odcięcie wzrokowe */
.fee-highlight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #f4f5fa;
  padding: 12px 20px;
  border-radius: 12px;
  margin: 20px 0 30px 0;
  border-left: 4px solid var(--primary-color);
}
.pricing-card.popular .fee-highlight {
  background: #f0f0ff;
}
.zero-fee {
  color: var(--primary-color);
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 4px;
}
.fee-highlight span:not(.zero-fee) {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- TABELA PORÓWNAWCZA (STAN STORE STYLE) --- */
.pricing-compare-section {
  margin-top: 100px;
  padding-top: 60px;
  border-top: 1px solid var(--border-color);
}

.compare-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 40px;
}

.compare-table-wrapper {
  overflow-x: auto; /* Responsywność na mobilkach */
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  text-align: center;
}

.compare-table th {
  padding: 25px 20px;
  background: #ffffff;
  position: sticky;
  top: 0;
  border-bottom: 2px solid var(--border-color);
}

.compare-table th span {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
}

.compare-table th small {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 5px;
}

.compare-table th.feature-col {
  text-align: left;
  width: 35%;
}

.compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 0.95rem;
}

.compare-table td.feature-name {
  text-align: left;
  font-weight: 600;
  color: var(--text-dark);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:hover td {
  background-color: #fcfcfc;
}

/* Podświetlenie kolumny "Najpopularniejszej" (Creator) */
.highlight-col {
  background-color: #f9f9ff !important;
}

.compare-table th.highlight-col {
  border-top: 4px solid var(--primary-color);
}

/* Wiersze kategorii (nagłówki sekcji w tabeli) */
.category-row td {
  background-color: var(--bg-color);
  text-align: left;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  padding: 12px 20px;
}

/* Ikony w tabeli */
.check-yes {
  color: var(--success-color);
  font-size: 1.1rem;
}
.check-no {
  color: #D1D5DB; /* Szary minus */
  font-size: 1.1rem;
}

.bold-text {
  font-weight: 800;
  font-size: 1.1rem;
}
.green-text {
  color: var(--success-color);
}