:root {
    --primary: rgb(255, 81, 81);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(255, 81, 81, 0.15);
    --text-dark: #2d2d2d;
}

.plan-section {
    width: 95%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
}

.plans-header {
    text-align: center;
    margin-bottom: 40px;
}

.plans-header h2 {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.plans-header h3 {
    font-size: 1.2rem;
    color: rgba(45, 45, 45, 0.6);
    font-weight: 400;
}

/* Toggle Bar Styling */
.timeBar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    color: rgba(45, 45, 45, 0.5);
}

.timeBar .active {
    color: var(--text-dark);
}

.switchBar {
    width: 60px;
    height: 30px;
    background-color: rgba(255, 81, 81, 0.2);
    border: 1px solid var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 2px;
    cursor: pointer;
    transition: 0.3s;
}

#switchCircle {
    width: 24px;
    height: 24px;
    background-color: var(--primary);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.badge {
    background: rgba(46, 204, 113, 0.15);
    color: rgb(30, 130, 70);
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 5px;
}

/* Cards Layout */
.pricing-cards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    width: 100%;
    max-width: 900px;
}

.plan-card {
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    box-shadow: var(--glass-shadow);
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: 0.3s ease;
}

/* Make Premium Pop */
.premium-card {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.85);
}

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

.plan-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.price {
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.duration {
    font-size: 1.2rem;
    color: rgba(45, 45, 45, 0.5);
}

.divider {
    width: 100%;
    height: 1px;
    background: rgba(45, 45, 45, 0.1);
    margin: 25px 0;
}

.plan-features p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.plan-features i {
    color: var(--primary);
    margin-right: 12px;
    font-size: 1.2rem;
}

/* Greyed out features for free tier */
.plan-features .disabled {
    color: rgba(45, 45, 45, 0.4);
    text-decoration: line-through;
}

.plan-features .disabled i {
    color: rgba(45, 45, 45, 0.3);
}

/* Shared Buttons from previous designs */
.btn {
    margin-top: auto;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: 0.3s ease;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid rgba(45, 45, 45, 0.3);
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .pricing-cards {
        flex-direction: column;
    }
    
    .premium-card {
        transform: scale(1);
        margin-top: 20px;
    }
}