/* ======================================================
   subscribe.css — VARify Pricing Page
   Styl spójny z login.css: animowane tło, glow orby,
   siatka boiska, latające piłki.
   ====================================================== */

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #0a0a0f;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: #f1f5f9;
}

/* ── IDENTYCZNE TŁO JAK STRONA LOGOWANIA ─────────────── */

.pitch-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse at 50% 30%, #0d1728 0%, #0a0a0f 70%);
}

.pitch-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 25s linear infinite;
}

@keyframes gridMove {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* ── GLOW ORBY ────────────────────────────────────────── */

.ball {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.12;
    animation: floatBall var(--dur) ease-in-out infinite alternate;
}

@keyframes floatBall {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(var(--tx), var(--ty)) scale(1.15); }
}

.ball-1 { width: 500px; height: 500px; background: radial-gradient(circle, #3b82f6, transparent 70%); top: -150px; left: -150px; --dur: 10s; --tx: 60px; --ty: 80px; }
.ball-2 { width: 300px; height: 300px; background: radial-gradient(circle, #8b5cf6, transparent 70%); bottom: -80px; right: -80px; --dur: 14s; --tx: -40px; --ty: -60px; }
.ball-3 { width: 200px; height: 200px; background: radial-gradient(circle, #06b6d4, transparent 70%); top: 35%; right: 8%; --dur: 9s; --tx: -25px; --ty: 40px; }
.ball-4 { width: 160px; height: 160px; background: radial-gradient(circle, #f59e0b, transparent 70%); bottom: 20%; left: 5%; --dur: 11s; --tx: 30px; --ty: -30px; opacity: 0.08; }

/* ── LATAJĄCE PIŁKI DEKORACYJNE ──────────────────────── */

.float-football {
    position: fixed;
    font-size: var(--size, 2rem);
    z-index: 1;
    pointer-events: none;
    left: var(--x, 50%);
    bottom: -60px;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
    animation: footballFloat var(--dur, 18s) linear var(--delay, 0s) infinite;
    opacity: 0.5;
}

@keyframes footballFloat {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    5%   { opacity: 0.5; }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-110vh) rotate(720deg); opacity: 0; }
}

/* ── NAWIGACJA ─────────────────────────────────────────── */

.sub-nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(12px);
}

.sub-nav-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: #f1f5f9;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.5px;
}

.sub-nav-brand span { color: #3b82f6; }

.sub-nav-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.sub-nav-back {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.sub-nav-back:hover { color: #94a3b8; }

/* ── GŁÓWNY KONTENER ──────────────────────────────────── */

.sub-main {
    position: relative;
    z-index: 5;
    max-width: 1140px;
    margin: 0 auto;
    padding: 4rem 1.5rem 5rem;
}

/* ── NAGŁÓWEK ─────────────────────────────────────────── */

.sub-header {
    text-align: center;
    margin-bottom: 4rem;
}

.sub-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #60a5fa;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.sub-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.sub-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Alert po przekierowaniu z paywall */
.sub-messages { margin-top: 1.5rem; }

.sub-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fbbf24;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

/* ── KARTY PLANÓW ─────────────────────────────────────── */

.sub-cards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
}

.sub-card {
    flex: 1;
    max-width: 340px;
    position: relative;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s;
    animation: cardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    overflow: visible;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.sub-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.sub-card-inner {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ── FREE ── */
.sub-card-free { border-color: rgba(255, 255, 255, 0.07); }
.sub-card-free:hover { box-shadow: 0 24px 60px rgba(100, 116, 139, 0.15); }

/* ── PLUS (wyróżniony) ── */
.sub-card-plus {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.06);
    transform: scale(1.04);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
    z-index: 2;
}
.sub-card-plus:hover {
    transform: scale(1.04) translateY(-10px);
    box-shadow: 0 30px 70px rgba(59, 130, 246, 0.3);
}

/* ── PREMIUM ── */
.sub-card-premium {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.04);
}
.sub-card-premium:hover { box-shadow: 0 24px 60px rgba(245, 158, 11, 0.2); }

/* Odznaka PREMIUM korona */
.premium-crown {
    position: absolute;
    top: -16px;
    right: 24px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5);
    animation: crownPop 3s ease-in-out infinite;
}

@keyframes crownPop {
    0%, 100% { box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5); }
    50%       { box-shadow: 0 4px 28px rgba(245, 158, 11, 0.8); }
}

/* Odznaka "Najczęściej wybierany" */
.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
}

/* ── TYPOGRAFIA KART ─────────────────────────────────── */

.plan-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 1rem;
}

.plan-label-plus  { color: #60a5fa; }
.plan-label-premium { color: #fbbf24; }

.plan-price {
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.plan-amount {
    font-size: 2.8rem;
    font-weight: 900;
    color: #f1f5f9;
    letter-spacing: -1px;
}

.plan-period {
    font-size: 1rem;
    color: #475569;
}

/* ── LISTA FUNKCJI ────────────────────────────────────── */

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
    font-size: 0.9rem;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li.ok i   { color: #10b981; font-size: 0.85rem; }
.feature-list li.locked { color: #334155; }
.feature-list li.locked i { color: #334155; font-size: 0.85rem; }

/* ── PRZYCISKI ────────────────────────────────────────── */

.plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    font-family: 'Inter', sans-serif;
}

.plan-btn-current {
    background: rgba(255, 255, 255, 0.05);
    color: #475569;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: not-allowed;
}

.plan-btn-free {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.plan-btn-free:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

.plan-btn-plus {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}
.plan-btn-plus:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(59, 130, 246, 0.6); }

.plan-btn-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}
.plan-btn-premium:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(245, 158, 11, 0.55); }

/* form wrapper inside card */
.sub-card form { margin-top: auto; }

/* ── STOPKA ──────────────────────────────────────────── */

.sub-footer-note {
    text-align: center;
    color: #334155;
    font-size: 0.82rem;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sub-footer-note i { color: #10b981; }

/* ── RESPONSIVE ───────────────────────────────────────── */

@media (max-width: 900px) {
    /* Karuzela na mobile */
    .carousel-container {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
    }

    .carousel-nav {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(59, 130, 246, 0.15);
        color: #fff;
        border: 1px solid rgba(59, 130, 246, 0.3);
        width: 44px;
        height: 44px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        z-index: 10;
        cursor: pointer;
        transition: background 0.3s, border-color 0.3s;
        backdrop-filter: blur(4px);
    }
    
    .carousel-nav:hover {
        background: rgba(59, 130, 246, 0.4);
        border-color: rgba(59, 130, 246, 0.6);
    }
    
    /* Wypuść nieco poza kontener żeby nie nachodziły na zawartość */
    .carousel-prev { left: -8px; }
    .carousel-next { right: -8px; }

    .sub-cards {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 1.5rem;
        padding-bottom: 1.5rem;
        padding-top: 1.5rem;
        padding-left: 5vw;
        padding-right: 5vw;
        -ms-overflow-style: none; /* IE i Edge */
        scrollbar-width: none;    /* Firefox */
        align-items: stretch;
        width: 100%;
        justify-content: flex-start;
    }
    
    .sub-cards::-webkit-scrollbar {
        display: none;
    }

    .sub-card {
        min-width: 85vw;
        max-width: 400px;
        scroll-snap-align: center;
        transform: none !important;
        margin: 0;
        flex: 0 0 auto;
    }
    
    .sub-card-plus {
        transform: none !important;
        order: 0; /* Wyłączony reorder (PLUS), karty idą 1 (Free) -> 2 (Plus) -> 3 (Premium) */
    }
    
    .sub-card:hover { transform: none !important; }
}

@media (min-width: 901px) {
    .carousel-nav {
        display: none !important;
    }
    .carousel-container {
        display: block;
    }
}