/* === Tło w stylu nowych stron === */
.auth-one-bg {
    position: relative;
    background-color: #ffffff;
    background-image: radial-gradient(rgba(15, 91, 40, 0.12) 1.8px, transparent 2px);
    background-size: 22px 22px;
    min-height: 100vh;
    width: 100%;
}

/* delikatne półprzezroczyste nakładki */
.bg-overlay {
    background: rgba(15, 91, 40, 0.05);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Sekcja cennika – rozciąga się naturalnie */
.pricing-section {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    padding-bottom: 80px;
}

/* === Karty planów === */
.plan-box {
    border: 1px solid #b7e0af;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(15, 91, 40, 0.1);
    background-color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(15, 91, 40, 0.15);
}

/* === Teksty === */
.text-primary {
    color: #0f5b28 !important;
}

/* === Przyciski === */
.btn-success {
    background-color: #0f5b28 !important;
    border-color: #0f5b28 !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-success:hover {
    background-color: #157a34 !important;
    transform: translateY(-1px);
}

/* === Swiper === */
.myPlans {
    padding: 10px 40px;
}

.swiper-slide {
    height: auto !important;
}

@media (max-width: 768px) {
    .myPlans {
        padding: 0 15px;
    }
}

/* Ukryj sekcje rozwijane na starcie */
.toggle-content {
    display: none;
}

/* === Strzałki Swipera (dopasowane do brandowego stylu) === */

/* Reset stylów i pozycjonowanie */
.swiper-button-prev,
.swiper-button-next {
    background: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    width: auto !important;
    height: auto !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Wyłącz pseudo-elementy Swipera */
.swiper-button-prev::after,
.swiper-button-next::after {
    display: none !important;
    content: none !important;
}

/* Ikonki (RemixIcon) */
.swiper-button-prev i,
.swiper-button-next i {
    font-size: 40px;
    color: #0f5b28; /* Twoja ciemna zieleń */
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Hover efekt */
.swiper-button-prev i:hover,
.swiper-button-next i:hover {
    color: #157a34; /* jaśniejsza zieleń */
    transform: scale(1.1);
}

/* Pozycje */
.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

/* Responsywność */
@media (max-width: 768px) {
    .swiper-button-prev i,
    .swiper-button-next i {
        font-size: 28px;
    }
}

/* === Sekcja ceny === */
.plan-box h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #0f5b28; /* Twoja ciemna zieleń */
    margin-bottom: 0.5rem;
}

.plan-box h2 sup {
    font-size: 1rem;
    top: -1rem;
    color: #4e5d4e; /* lekko przygaszony, żeby nie wybijał */
}

.plan-box h2 small {
    font-size: 1rem;
    color: #6c757d;
}

.plan-box .price-wrapper {
    background: rgba(15, 91, 40, 0.05); /* delikatna zieleń w tle */
    border-radius: 10px;
    display: inline-block;
    padding: 0.6rem 1.2rem;
    margin-bottom: 0.8rem;
}

/* Opis pod ceną */
.plan-box .price-note {
    font-size: 0.85rem;
    color: #4e5d4e;
    font-style: italic;
}

/* === Globalny przełącznik płatności (miesięcznie / rocznie) === */

.billing-toggle-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.billing-toggle-label {
    font-size: 0.85rem;
    color: #4e5d4e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.billing-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border-radius: 999px;
    background: rgba(15, 91, 40, 0.05);
    border: 1px solid #b7e0af;
    box-shadow: 0 6px 18px rgba(15, 91, 40, 0.14);
    overflow: hidden;
}

/* „Pigułka” pod aktywnym przyciskiem */
.billing-toggle::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: 50%;
    border-radius: 999px;
    background: linear-gradient(120deg, #0f5b28, #157a34);
    box-shadow: 0 4px 12px rgba(15, 91, 40, 0.4);
    transform: translateX(0%);
    transition: transform 0.22s ease;
    z-index: 0;
}

/* gdy tryb roczny – przesuwamy pigułkę w prawo */
.billing-toggle[data-mode="year"]::before {
    transform: translateX(100%);
}

.billing-toggle-btn {
    position: relative;
    z-index: 1;
    min-width: 130px;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #4e5d4e;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.18s ease, transform 0.18s ease;
}

.billing-toggle-btn.active {
    color: #ffffff;
}

.billing-toggle-btn:not(.active):hover {
    color: #0f5b28;
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .billing-toggle-btn {
        min-width: 110px;
        font-size: 0.85rem;
    }
}

/* === Roczne oszczędności - wyróżnienie premium === */
.annual-save {
    background: linear-gradient(90deg, rgba(15, 91, 40, 0.12), rgba(15, 91, 40, 0.22));
    border-left: 4px solid #0f5b28;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    color: #0f5b28 !important;
    margin: 10px auto;
    max-width: 280px;
    box-shadow: 0 3px 12px rgba(15, 91, 40, 0.12);
    letter-spacing: 0.5px;
    animation: fadeInPrice 0.25s ease-out;
}

/* Roczna cena – troszkę subtelniejsza */
.annual-total {
    display: inline-block;
    background: rgba(15, 91, 40, 0.10);
    color: #0f5b28 !important;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 6px auto;
    letter-spacing: 0.3px;
}


.plan-price {
    margin-bottom: 0.8rem !important;
}

/* delikatna animacja pojawiania */
.annual-total:not(.d-none),
.annual-save:not(.d-none) {
    animation: fadeInPrice 0.25s ease-out;
}

@keyframes fadeInPrice {
    from { opacity: 0; transform: translateY(3px); }
    to   { opacity: 1; transform: translateY(0); }
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #157a34, #0f5b28);
    color: #fff !important;
    padding: 3px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    margin-left: 6px;
    letter-spacing: 0.5px;
    animation: fadeInBadge 0.3s ease-out;
}

@keyframes fadeInBadge {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

.netto-info {
    font-size: 0.85rem;
    color: #0f5b28;
    background: rgba(15, 91, 40, 0.07);
    padding: 6px 12px;
    border-radius: 6px;
    opacity: 0.95;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 auto 16px auto;
}
