:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #f59e0b;
    --accent: #10b981;
    --text: #0f172a;
    --text-light: #475569;
    --text-dark: #0b1220;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --card-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    --success: #16a34a;
    --info: #0ea5e9;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --risk-1: #16a34a;
    --risk-2: #22c55e;
    --risk-3: #f59e0b;
    --risk-4: #f97316;
    --risk-5: #ef4444;
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
}

.search-bar {
    background: var(--glass-bg);
    border-radius: 100px;
    padding: 6px 6px 6px 25px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    max-width: 650px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    padding: 15px 5px 15px 0;
    font-size: 1.05rem;
    width: 100%;
    outline: none;
    font-weight: 500;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.search-bar button {
    background: white;
    color: var(--primary-dark);
    border: none;
    border-radius: 100px;
    padding: 15px 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-bar button:hover {
    background: var(--accent);
    transform: translateY(-2px);
}
.content {
    margin-top: 0;
    padding-bottom: 80px;
    position: relative;
    background: #f6f9fc;
}

.filter-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.categories-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-label {
    font-weight: 600;
    color: #596780;
    font-size: 0.95rem;
}

/* Nowy styl dla wyboru kategorii w formie rozwijanej listy */
.categories-select-container {
    position: relative;
    max-width: 300px;
    width: 100%;
    display: none; /* Domyślnie ukryte na dużych ekranach */
}

.categories-select {
    appearance: none;
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    width: 100%;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #3793ff;
    pointer-events: none;
}

/* Nowy styl dla pigułek kategorii */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.category-pill {
    background: #f2f4f8;
    border: none;
    border-radius: 50px;
    padding: 10px 18px;
    color: #596780;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-pill:hover {
    background: rgba(55, 147, 255, 0.1);
    color: #3793ff;
}

.category-pill.active {
    background: #3793ff;
    color: white;
    box-shadow: 0 4px 10px rgba(55, 147, 255, 0.25);
}

.category-pill i {
    font-size: 0.9rem;
}

/* Styl dla filtrowania po ryzyku przy użyciu suwaka */
.risk-filter-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.risk-slider-container {
    width: 100%;
    padding: 10px 0;
}

.risk-value-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.risk-label-all, .risk-label-number {
    font-weight: 600;
    font-size: 1rem;
    color: #596780;
    opacity: 0.7;
    transition: all 0.3s;
}

.risk-label-all.active, .risk-label-number.active {
    opacity: 1;
    color: #3793ff;
    font-weight: 700;
    transform: scale(1.05);
}

.risk-slider-wrapper {
    width: 100%;
    padding: 0;
    margin-top: 10px;
}

.risk-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #f2f4f8 0%, var(--risk-1) 33%, var(--risk-3) 66%, var(--risk-5) 100%);
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.risk-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(33, 107, 220, 0.3);
    border: 2px solid #3793ff;
    transition: all 0.3s;
}

.risk-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(33, 107, 220, 0.4);
}

.risk-slider-markers {
    display: flex;
    justify-content: space-between;
    color: #7c8db0;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0;
    margin-top: 5px;
}

#risk-level-display {
    font-weight: 700;
    color: #3793ff;
}

.theme-toggle {
    display: none;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(221, 233, 243, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 25px 25px 15px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    border-bottom: 1px solid rgba(221, 233, 243, 0.7);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.3px;
    line-height: 1.3;
    color: #334d6e;
}

.card-subtitle {
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 5px;
    display: inline-block;
    position: relative;
}

.card-subtitle:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
}

.card-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
    margin-left: 15px;
    flex-shrink: 0;
}

.card-content {
    padding: 20px 25px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-info {
    display: flex;
    align-items: stretch;
    gap: 15px;
    margin-bottom: 22px;
    background: #f6f9fc;
    border-radius: 14px;
    padding: 16px;
}

.info-item {
    flex: 1;
    border-right: 1px solid rgba(221, 233, 243, 0.7);
    padding-right: 15px;
}

.info-item:last-child {
    border-right: none;
    padding-right: 0;
}

.info-label {
    font-size: 0.8rem;
    color: #7c8db0;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-value {
    font-size: 1.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
    color: #334d6e;
}

.info-value.positive {
    color: #38cb89;
}

.info-value.negative {
    color: #ff5252;
}

.card-description {
    color: #7c8db0;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 22px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(221, 233, 243, 0.7);
    gap: 15px;
}

.tag {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(33, 150, 243, 0.25) 100%);
    color: var(--primary-dark);
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(33, 150, 243, 0.1);
    display: inline-block;
    margin-bottom: 10px;
}

.risk-level-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 50px;
    position: relative;
}

.risk-label {
    font-size: 0.8rem;
    font-weight: 600;
}

.risk-text {
    font-size: 0.9rem;
    font-weight: 700;
}

/* Styles for different risk levels */
.risk-low {
    background: rgba(56, 203, 137, 0.1);
}

.risk-low .risk-label,
.risk-low .risk-text {
    color: var(--risk-1);
}

.risk-medium {
    background: rgba(255, 182, 72, 0.1);
}

.risk-medium .risk-label,
.risk-medium .risk-text {
    color: var(--risk-3);
}

.risk-high {
    background: rgba(255, 82, 82, 0.1);
}

.risk-high .risk-label,
.risk-high .risk-text {
    color: var(--risk-5);
}

.info-block {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 22px;
    border-left: 3px solid;
}

.info-block-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.info-block-header i {
    font-size: 0.85rem;
}

.info-block p {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.risk-warning {
    border-left-color: #e67e22;
}

.risk-warning .info-block-header {
    color: #e67e22;
}

.benefits-list {
    border-left-color: #38cb89;
}

.benefits-list .info-block-header {
    color: #38cb89;
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-icon {
    padding: 12px;
    border-radius: 50%;
}

.btn-icon i {
    font-size: 1.2rem;
}

.learn-more-container {
    position: relative;
}

.learn-more-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #3793ff 0%, #216bdc 100%);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(33, 107, 220, 0.25);
    position: relative;
    gap: 8px;
    white-space: nowrap;
}

.learn-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 107, 220, 0.35);
}

.coming-soon-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ffb648;
    color: white;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 700;
    z-index: 2;
    white-space: nowrap;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Style dla stron podrzędnych */
.privacy-policy-section, 
.terms-section {
    padding: 50px 0;
    background: var(--background);
}

.policy-container,
.terms-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    margin-bottom: 50px;
}

.policy-section,
.terms-section {
    margin-bottom: 30px;
}

.policy-section h2,
.terms-section h2 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.policy-section p,
.terms-section p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--text);
}

.policy-section ul,
.terms-section ul {
    margin: 15px 0 15px 20px;
    line-height: 1.7;
    color: var(--text);
}

.policy-section li,
.terms-section li {
    margin-bottom: 10px;
}

.community-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e1efff 100%);
    padding: 60px 0;
    margin: 50px 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(33, 150, 243, 0.1);
}

.community-section::before {
    content: "";
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0) 70%);
    border-radius: 50%;
}

.community-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.community-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.community-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.2;
}

.community-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 30px;
}

.community-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(33, 150, 243, 0.2);
}

.community-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .floating-lead-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .floating-lead-btn span {
        display: none;
    }

    .floating-lead-btn i {
        margin: 0;
    }
    
    .nav-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .header {
        padding: 60px 0 100px;
    }
    
    .nav-link {
        padding: 15px;
        font-size: 0.9rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        border-radius: 16px;
    }
    
    .card-header {
        padding: 20px 20px 12px;
    }
    
    .card-content {
        padding: 15px 20px 20px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        border-radius: 12px;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-info {
        flex-direction: column;
        gap: 15px;
        padding: 12px;
        align-items: flex-start;
    }
    
    .info-item {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-right: 0;
        padding-bottom: 15px;
    }
    
    .info-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .info-value {
        font-size: 1.5rem;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    /* Ukryj pills i pokaż select na mobilnych */
    .category-pills {
        display: none;
    }
    
    .categories-select-container {
        display: block;
        max-width: 100%;
    }

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

    .about-content {
        flex-direction: column;
    }

    .methods-table {
        font-size: 0.85rem;
    }
    
    .card-footer {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: space-between;
    }
    
    .learn-more-container {
        order: 1;
    }
    
    .risk-level-container {
        order: 2;
        width: auto;
        flex: 0 0 auto;
    }
    
    .benefits-list {
        padding: 15px;
    }

    .risk-slider-container {
        width: 100%;
    }
    
    .risk-slider-markers {
        font-size: 0.7rem;
    }
    
    .policy-container,
    .terms-container {
        padding: 25px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .blog-post, .faq-item {
    animation: fadeIn 0.5s ease forwards;
}

.card:nth-child(2), .blog-post:nth-child(2), .faq-item:nth-child(2) {
    animation-delay: 0.1s;
}

.card:nth-child(3), .blog-post:nth-child(3), .faq-item:nth-child(3) {
    animation-delay: 0.2s;
}

.card:nth-child(4), .blog-post:nth-child(4), .faq-item:nth-child(4) {
    animation-delay: 0.3s;
}

.card:nth-child(5), .blog-post:nth-child(5), .faq-item:nth-child(5) {
    animation-delay: 0.4s;
}

.card:nth-child(6), .blog-post:nth-child(6), .faq-item:nth-child(6) {
    animation-delay: 0.5s;
}

/* Kreator Planu Finansowej Wolności */
.kreator-section {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e1efff 100%);
    margin: 50px 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(33, 150, 243, 0.1);
}

.kreator-section::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.kreator-section::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.08) 0%, rgba(33, 150, 243, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.kreator-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.kreator-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.kreator-subtitle {
    font-size: 1.2rem;
    color: var(--text);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

.kreator-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

/* Progress bar styles */
.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    height: 6px;
    background-color: #f2f4f8;
    border-radius: 3px;
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(to right, var(--primary-light), var(--primary));
    width: 0;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    position: relative;
    transition: all 0.3s ease;
}

.step-number {
    width: 36px;
    height: 36px;
    background-color: #f2f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #7c8db0;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.step-label {
    font-size: 0.9rem;
    color: #7c8db0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    box-shadow: 0 5px 10px rgba(33, 150, 243, 0.2);
}

.progress-step.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

.progress-step.completed .step-number {
    background: var(--success);
    color: white;
}

/* Form styles */
.kreator-step {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.kreator-step.active {
    display: block;
}

.kreator-step h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.step-description {
    font-size: 1.05rem;
    color: #7c8db0;
    margin-bottom: 30px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: #334d6e;
    font-size: 1.05rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon input {
    width: 100%;
    padding: 15px;
    border: 1px solid #dfe7ef;
    border-radius: 10px;
    font-size: 1.1rem;
    color: #334d6e;
    font-weight: 600;
    background: #f6f9fc;
    transition: all 0.3s;
}

.input-with-icon input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
    outline: none;
    background: white;
}

.input-suffix {
    position: absolute;
    right: 15px;
    color: #7c8db0;
    font-weight: 600;
    font-size: 1rem;
}

/* Styl dla ostrzeżenia o zbyt wysokim dochodzie */
.warning-message {
    background: rgba(255, 82, 82, 0.1);
    color: #ff5252;
    border-left: 3px solid #ff5252;
    padding: 15px;
    margin-top: 10px;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.warning-message.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.warning-message i {
    margin-right: 8px;
}

.range-slider {
    margin-top: 15px;
    padding: 0 10px;
}

.range-value {
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    margin: 10px 0;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--primary-light), var(--primary));
    border-radius: 4px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--primary);
    box-shadow: 0 3px 8px rgba(33, 150, 243, 0.3);
    transition: all 0.3s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.range-slider-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #7c8db0;
    font-weight: 500;
}

/* Risk options styles */
.risk-option-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.risk-option {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.risk-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.risk-option label {
    display: block;
    padding: 20px;
    background: #f6f9fc;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.risk-option[data-risk="1"] label:hover,
.risk-option[data-risk="1"] input:checked + label {
    background: rgba(56, 203, 137, 0.1);
    border-color: var(--risk-1);
}

.risk-option[data-risk="3"] label:hover,
.risk-option[data-risk="3"] input:checked + label {
    background: rgba(255, 182, 72, 0.1);
    border-color: var(--risk-3);
}

.risk-option[data-risk="5"] label:hover,
.risk-option[data-risk="5"] input:checked + label {
    background: rgba(255, 82, 82, 0.1);
    border-color: var(--risk-5);
}

.risk-option .option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.risk-option .option-header i {
    font-size: 1.1rem;
}

.risk-option .option-header span {
    font-weight: 700;
    font-size: 1.1rem;
}

.risk-option[data-risk="1"] .option-header {
    color: var(--risk-1);
}

.risk-option[data-risk="3"] .option-header {
    color: var(--risk-3);
}

.risk-option[data-risk="5"] .option-header {
    color: var(--risk-5);
}

.risk-option .option-description {
    font-size: 0.9rem;
    color: #7c8db0;
    line-height: 1.4;
    font-weight: normal;
}

/* Dodatkowe style dla info o ryzyku */
.risk-explanation {
    margin-bottom: 30px;
}

.risk-info-box {
    background: rgba(33, 150, 243, 0.05);
    border-left: 3px solid var(--primary);
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.risk-info-box i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 2px;
}

.risk-info-box p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #596780;
}

/* Button styles */
.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.kreator-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.2);
}

.kreator-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

.kreator-button.disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

.kreator-button.disabled:hover {
    transform: none;
    box-shadow: none;
}

.kreator-button.prev-step {
    background: transparent;
    color: #7c8db0;
    box-shadow: none;
}

.kreator-button.prev-step:hover {
    color: var(--primary);
    background: rgba(33, 150, 243, 0.1);
    transform: translateY(0);
    box-shadow: none;
}

.kreator-button.restart-btn {
    background: #f6f9fc;
    color: #7c8db0;
    box-shadow: none;
}

.kreator-button.restart-btn:hover {
    color: var(--primary);
    background: rgba(33, 150, 243, 0.1);
    transform: translateY(0);
    box-shadow: none;
}

/* Plan results styles */
.plan-summary {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.summary-item {
    flex: 1;
    min-width: 200px;
    background: #f6f9fc;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.summary-label {
    font-size: 0.9rem;
    color: #7c8db0;
    margin-bottom: 8px;
    font-weight: 600;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #334d6e;
}

.recommended-methods, 
.income-breakdown-section, 
.next-steps {
    margin-bottom: 40px;
}

.recommended-methods h4, 
.income-breakdown-section h4, 
.next-steps h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #334d6e;
    margin-bottom: 20px;
}

#recommended-methods-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.recommended-method-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f7ff;
    transition: all 0.3s;
    position: relative;
}

.recommended-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Redesigned income breakdown section */
.income-breakdown-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.income-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-radius: 10px;
    background: #f6f9fc;
    transition: all 0.3s;
}

.income-breakdown-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.income-method-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.income-method-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.2);
}

.income-method-details {
    display: flex;
    flex-direction: column;
}

.income-method-title {
    font-weight: 700;
    color: #334d6e;
    font-size: 1.1rem;
}

.income-method-category {
    font-size: 0.85rem;
    color: #7c8db0;
}

.income-method-amount {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--success);
}

.income-breakdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-top: 10px;
    border-top: 2px dashed #e1efff;
}

.income-total-label {
    font-weight: 700;
    color: #334d6e;
    font-size: 1.1rem;
}

.income-total-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

#next-steps-list {
    background: #f6f9fc;
    border-radius: 15px;
    padding: 25px 25px 25px 50px;
}

#next-steps-list li {
    margin-bottom: 15px;
    color: #334d6e;
    font-size: 1.05rem;
    line-height: 1.5;
}

#next-steps-list li:last-child {
    margin-bottom: 0;
}

/* Styl dla sekcji dołączenia do społeczności */
.join-community {
    background: linear-gradient(135deg, #3793ff 0%, #216bdc 100%);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    color: white;
    text-align: center;
    box-shadow: 0 10px 25px rgba(33, 107, 220, 0.3);
}

.join-community h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: white;
}

.join-community p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.join-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #216bdc;
    font-weight: 700;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.join-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Income method */
.income-method {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.income-method-info {
    flex-grow: 1;
}

@media (max-width: 768px) {
    .kreator-container {
        padding: 25px;
    }
    
    .kreator-header h2 {
        font-size: 2rem;
    }
    
    .progress-step .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .kreator-step h3 {
        font-size: 1.4rem;
    }
    
    .step-description {
        font-size: 1rem;
    }
    
    .risk-option-container {
        flex-direction: column;
    }
    
    .plan-summary {
        flex-direction: column;
    }
    
    #recommended-methods-container {
        grid-template-columns: 1fr;
    }
    
    .step-buttons {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .kreator-button {
        flex: 1 0 calc(50% - 10px);
        justify-content: center;
    }
    
    .income-breakdown-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .income-method-amount {
        align-self: flex-end;
    }
    
    .income-breakdown-total {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Ulepszony design FAQ - dopasowany do obrazka 1 */
.faq-section {
    padding: 60px 0;
    background-color: white;
}

.faq-title {
    text-align: center;
    margin-bottom: 50px;
}

.faq-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #121212;
}

.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 0;
    border-radius: 8px;
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf1f7;
    transition: all 0.3s;
    position: relative;
}

.accordion-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #3793ff;
    border-radius: 4px 0 0 4px;
}

.accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.accordion-header {
    width: 100%;
    position: relative;
}

.accordion-button {
    width: 100%;
    background: white;
    border: none;
    padding: 20px 25px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #121212;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.accordion-button:hover {
    background: #f5f9ff;
}

.accordion-icon {
    color: #3793ff;
    font-size: 1rem;
    transition: transform 0.3s;
}

.accordion-button[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    background: #f5f9ff;
}

.accordion-content.active {
    padding: 5px 25px 25px;
    max-height: 1000px;
}

.accordion-content p, 
.accordion-content ul, 
.accordion-content ol {
    color: #596780;
    font-size: 1rem;
    line-height: 1.7;
}
/* Style dla banera cookie/RODO */

/* Styles for Modal Method Info */
.method-info-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.method-info-item {
    flex: 1;
    border-right: 1px solid #e2e8f0;
}

.method-info-item:last-child {
    border-right: none;
}

.method-info-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method-info-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.method-info-value.positive {
    color: #16a34a;
}

@media (max-width: 600px) {
    .method-info-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .method-info-item {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 10px;
    }
    
    .method-info-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* Disclaimer Style */
.footer-disclaimer {
    background-color: #f8fafc;
    padding: 30px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-top: 60px;
}

.footer-disclaimer p {
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Modal Styles (Fixed) --- */
.method-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.method-modal-content {
    background-color: #ffffff;
    margin: 20px auto;
    padding: 0;
    border: 1px solid #e2e8f0;
    width: 90%;
    max-width: 700px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-40%); }
    to { opacity: 1; transform: translateY(-50%); }
}

.close-modal {
    color: #94a3b8;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: #0f172a;
    text-decoration: none;
}

.method-modal-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.method-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #0f172a;
    flex-grow: 1;
    padding-right: 30px;
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
}

.method-modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.method-description {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 25px;
}

.method-info-block {
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid transparent;
}

.method-info-block.risk-warning {
    background-color: #fff7ed;
    border-left-color: #f97316;
}

.method-info-block.risk-warning .info-block-header {
    color: #c2410c;
}

.method-info-block.benefits-list {
    background-color: #f0fdf4;
    border-left-color: #16a34a;
}

.method-info-block.benefits-list .info-block-header {
    color: #15803d;
}

.info-block-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1rem;
}

.method-info-block p {
    margin: 0;
    color: #334155;
    font-size: 0.95rem;
}

/* CTA Section in Modal */
.method-modal-cta {
    margin-top: 30px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
}

.method-cta-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #1e40af;
}

.method-cta-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.method-modal-cta p {
    color: #1e3a8a;
    margin-bottom: 15px;
    font-weight: 500;
}

.method-modal-cta ul {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0 auto 25px;
    display: inline-block;
    max-width: 100%;
}

.method-modal-cta ul li {
    margin-bottom: 8px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.method-modal-cta ul li i {
    color: #2563eb;
    flex-shrink: 0;
}

.method-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background-color: #ff6b6b;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(255, 107, 107, 0.3);
    border: none;
}

.method-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(255, 107, 107, 0.4);
    background-color: #fa5252;
    color: white;
}

/* Fix for Card Footer Layout */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* Allow wrapping if space is tight */
}

.learn-more-container {
    flex-shrink: 0;
}

/* Ensure risk indicator doesn't shrink too much or break layout */
.risk-level-container {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Make buttons smaller on very small screens if needed */
@media (max-width: 380px) {
    .learn-more-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .risk-level-container {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}
