﻿@import url('https://fonts.googleapis.com/css2?family=Nacelle:wght@400;600&display=swap');

.subscription-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Space Grotesk', sans-serif;
}

.subscription-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 200px;
}

.subscription-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 500;
    font-style: normal;
    line-height: 32px;
    letter-spacing: 0%;
    color: rgba(0, 0, 0, 1);
    margin: 0;
}

.period-toggle {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 32px;
    padding: 6px;
    border: 1px solid #e9ecef;
    width: 378px;
    height: 45px;
    justify-content: space-between;
}

.period-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: 32px;
    cursor: pointer;
    font-family: 'Nacelle', sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 100%;
    letter-spacing: 0%;
    color: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    width: 150px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.period-btn.active {
    background: rgba(255, 255, 255, 1);
    color: rgba(0, 0, 0, 1);
    border-radius: 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subscription-plans {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.plan-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    width: 373px;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.plan-card.premium {
    border-color: #4CAF50;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.15);
}

.plan-header {
    padding: 30px 34px;
    flex-shrink: 0;
}

.plan-name {
    font-family: 'Nacelle', sans-serif;
    font-size: 20px;
    font-weight: 600;
    font-style: normal;
    line-height: 100%;
    letter-spacing: 0%;
    color: rgba(37, 36, 48, 1);
    margin-bottom: 16px;
}

.plan-card.freemium .plan-name {
    margin-bottom: 17px;
}

.plan-card.freemium .plan-name + .plan-price {
    margin-top: 6px; 
}

.yearly-mode .plan-card.freemium .plan-name {
    margin-bottom: 26px;
}

.yearly-mode .plan-card.freemium .plan-name + .plan-price {
    margin-top: 18px; 
}

.plan-price {
    margin-bottom: 12px;
}

.price-text {
    font-family: 'Nacelle', sans-serif;
    font-size: 35px;
    font-weight: 400;
    font-style: normal;
    line-height: 100%;
    letter-spacing: 0%;
    color: rgba(37, 36, 48, 1);
}

.price-text-free {
    font-family: 'Nacelle', sans-serif;
    font-size: 35px;
    font-weight: 400;
    font-style: normal;
    line-height: 100%;
    letter-spacing: 0%;
    color: rgba(37, 36, 48, 0.54);
}

.price-amount {
    font-family: 'Nacelle', sans-serif;
    font-size: 35px;
    font-weight: 400;
    font-style: normal;
    line-height: 100%;
    letter-spacing: 0%;
    color: rgba(37, 36, 48, 1);
}

.price-period {
    font-family: 'Nacelle', sans-serif;
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
    line-height: 100%;
    letter-spacing: 0%;
    color: rgba(37, 36, 48, 1);
    margin-left: 4px;
}

.price-note {
    font-family: 'Nacelle', sans-serif;
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
    line-height: 100%;
    letter-spacing: 0%;
    color: rgba(37, 36, 48, 0.54);
    margin-bottom: 20px;
}

.price-note i {
    margin-left: 4px;
    cursor: help;
}

.price-note .fa-info-circle {
    color: rgba(37, 36, 48, 0.6);
    transition: color 0.3s ease;
    cursor: help;
}

.price-note .fa-info-circle:hover {
    color: rgba(37, 36, 48, 1);
}

.plan-button {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mt9{
    margin-top: 9px !important;
}
.freemium-btn {
    background: rgba(125, 125, 125, 1);
    color: rgba(230, 233, 245, 1);
    height: 52px;
    border-radius: 8px;
    padding: 16px 24px;
    font-family: 'Nacelle', sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 20px;
    letter-spacing: 0%;
    text-align: center;
    margin-top: 46px;
}

.freemium-btn:hover {
    background: #5a6268;
}

.premium-btn {
    background: rgba(17, 191, 43, 1);
    color: white;
    width: 305px;
    height: 52px;
    border-radius: 8px;
    padding: 16px 24px;
    font-family: 'Nacelle', sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 20px;
    letter-spacing: 0%;
    text-align: center;
    margin: 0 auto;
    display: block;
}

.premium-btn:hover {
    background: rgba(15, 172, 39, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 191, 43, 0.3);
}

.plan-features {
    padding: 20px 34px;
    flex: 1;
    overflow-y: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    position: relative;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 28px; 
    right: 0;
    height: 4px;
    background: transparent;
}

.plan-card.freemium .feature-item:nth-child(1).active::after {
    background: linear-gradient(to right, #4CAF50 0%, #4CAF50 10%, #e9ecef 10%, #e9ecef 100%);
}

.plan-card.freemium .feature-item:nth-child(2).active::after {
    background: linear-gradient(to right, #4CAF50 0%, #4CAF50 10%, #e9ecef 10%, #e9ecef 100%);
}

.plan-card.freemium .feature-item:nth-child(3).active::after {
    background: linear-gradient(to right, #4CAF50 0%, #4CAF50 20%, #e9ecef 20%, #e9ecef 100%);
}

.plan-card.premium .feature-item:nth-child(-n+3).active::after {
    background: #4CAF50;
}

.feature-item:nth-child(-n+3).inactive::after {
    background: #e9ecef;
}

.feature-item i {
    width: 12px;
    height: 12px;
    margin-right: 12px;
    flex-shrink: 0;
    color: rgba(0, 0, 0, 1);
}

.feature-item svg {
    width: 12px;
    height: 12px;
    margin-right: 3px;
    flex-shrink: 0;
}

.feature-item.active {
    color: #333;
}


.feature-item.active i {
    color: rgba(0, 0, 0, 1);
}

.feature-item.pasif {
    color: #8e8e93;
}

.feature-item.pasif i {
    color: rgba(0, 0, 0, 0.3);
}

.feature-item.inactive {
    color: #8e8e93;
}

.feature-item.inactive i {
    color: rgba(0, 0, 0, 0.4);
}


@media (max-width: 768px) {
    .subscription-plans {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    
    .plan-card {
        width: 100%;
        max-width: 373px;
        height: auto;
        min-height: 600px;
    }
    
    .subscription-header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }
    
    .subscription-header h1 {
        font-size: 28px;
    }
    
    .plan-header {
        padding: 20px 15px;
    }
    
    .plan-features {
        padding: 15px;
    }
    
    .period-toggle {
        flex-direction: row;
        width: auto;
    }
    
    .period-btn {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .subscription-container {
        padding: 15px;
    }
    
    .plan-card {
        border-radius: 12px;
        width: 100%;
        max-width: 350px;
    }
    
    .plan-name {
        font-size: 20px;
    }
    
    .price-amount, .price-text {
        font-size: 28px;
    }
}