body {
    background-color: #f5f5f7;
}
.plans-page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 30px 100px;
    font-family: 'Josefin Sans', sans-serif;
}
.plans-header-text {
    text-align: center;
    margin-bottom: 35px;
}
.plans-header-text h1 {
    font-size: 38px;
    font-weight: 800;
    color: #1d1d1f;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.plans-header-text p {
    font-size: 16px;
    color: #86868b;
    font-weight: 600;
}
.plans-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 45px;
    background: #ffffff;
    padding: 20px 35px;
    border-radius: 28px;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.03);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 999;
}
.toggles-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.toggle-switch {
    display: inline-flex;
    background: #f5f5f7;
    border-radius: 40px;
    padding: 6px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
}
.toggle-switch button {
    background: transparent;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #86868b;
}
.toggle-switch button.active {
    background: #ffffff;
    color: #1d1d1f;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: scale(1.02);
}
.period-dropdown-wrap {
    position: relative;
    min-width: 220px;
}
.custom-dropdown {
    position: relative;
    font-family: 'Josefin Sans', sans-serif;
}
.dropdown-selected {
    background-color: #ffffff;
    color: #1d1d1f;
    padding: 14px 22px;
    border-radius: 18px;
    border: 2px solid #f1f5f9;
    cursor: pointer;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}
.dropdown-selected:hover {
    border-color: rgba(155, 34, 38, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.dropdown-selected.open {
    border-color: #9b2226;
    box-shadow: 0 8px 25px rgba(155, 34, 38, 0.1);
}
.dropdown-selected i {
    transition: transform 0.3s ease;
    font-size: 13px;
    color: #9b2226;
}
.dropdown-selected.open i {
    transform: rotate(180deg);
}
.dropdown-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}
.dropdown-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-option {
    padding: 14px 22px;
    cursor: pointer;
    font-weight: 600;
    color: #86868b;
    transition: all 0.2s ease;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f7;
}
.dropdown-option:last-child {
    border-bottom: none;
}
.dropdown-option:hover {
    background-color: #fcfcfd;
    color: #1d1d1f;
}
.dropdown-option.active {
    background-color: #fdf2f2;
    color: #9b2226;
    font-weight: 800;
}
.custom-dropdown.disabled .dropdown-selected {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: #e2e8f0;
}
.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}
.plan-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.02);
    border-radius: 28px;
    padding: 35px 25px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}
.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}
.plan-card.popular {
    background: linear-gradient(135deg, #9b2226 0%, #5c1416 100%);
    color: #ffffff;
    border: none;
    transform: scale(1.03);
    z-index: 2;
    box-shadow: 0 20px 50px rgba(155, 34, 38, 0.15);
}
.plan-card.popular:hover {
    transform: scale(1.03) translateY(-6px);
}
.discount-badge {
    position: absolute;
    top: -12px;
    right: 15px;
    background: rgba(155, 34, 38, 0.08);
    color: #9b2226;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(155, 34, 38, 0.05);
    z-index: 5;
    border: 1px solid rgba(155, 34, 38, 0.05);
}
.popular .discount-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
.stamp-popular {
    position: absolute;
    top: -16px;
    left: -12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #9b2226;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 10px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: stampDrop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s forwards;
}
@keyframes stampDrop {
    0% { transform: scale(3) rotate(-20deg); opacity: 0; }
    50% { transform: scale(0.9) rotate(-10deg); opacity: 1; }
    100% { transform: scale(1) rotate(-12deg); opacity: 1; }
}
.plan-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #1d1d1f;
    letter-spacing: -0.3px;
}
.popular .plan-title {
    color: #ffffff;
}
.plan-subtitle {
    font-size: 12px;
    color: #86868b;
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 600;
}
.popular .plan-subtitle {
    color: rgba(255,255,255,0.8);
}
.old-price {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 700;
    margin-bottom: 0;
    min-height: 20px;
}
.popular .old-price {
    color: rgba(255,255,255,0.6);
}
.main-price-wrap {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.main-price-wrap .sym {
    font-size: 18px;
    font-weight: 800;
    margin-top: 5px;
    margin-right: 4px;
    color: #1d1d1f;
}
.popular .main-price-wrap .sym {
    color: #ffffff;
}
.main-price-wrap .amount {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    color: #1d1d1f;
}
.popular .main-price-wrap .amount {
    color: #ffffff;
}
.main-price-wrap .period {
    font-size: 13px;
    font-weight: 600;
    margin-top: auto;
    margin-bottom: 5px;
    color: #86868b;
    margin-left: 4px;
}
.popular .main-price-wrap .period {
    color: rgba(255,255,255,0.8);
}
.btn-choose {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}
.plan-card:not(.popular) .btn-choose {
    background: #f5f5f7;
    color: #1d1d1f;
    border: 1px solid rgba(0,0,0,0.02);
}
.plan-card:not(.popular) .btn-choose:hover {
    background: #1d1d1f;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.plan-card.popular .btn-choose {
    background: #ffffff;
    color: #9b2226;
}
.plan-card.popular .btn-choose:hover {
    background: #f5f5f7;
    color: #7a1a1e;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}
.billing-terms {
    font-size: 11px;
    color: #86868b;
    line-height: 1.5;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 15px;
    font-weight: 600;
}
.popular .billing-terms {
    color: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.15);
}
.billing-terms strong {
    color: #1d1d1f;
    font-weight: 800;
}
.popular .billing-terms strong {
    color: #ffffff;
}
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}
.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.4;
}
.popular .features-list li {
    color: #ffffff;
}
.features-list li i {
    color: #34c759;
    font-size: 14px;
    margin-top: 2px;
}
.popular .features-list li i {
    color: #ffffff;
}
@media (max-width: 1200px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto;
    }
    .plan-card.popular {
        transform: none;
        z-index: 1;
    }
    .plan-card.popular:hover {
        transform: translateY(-6px);
    }
}
@media (max-width: 768px) {
    .plans-page-wrapper {
        padding: 110px 20px 50px;
    }
    .plans-header-text h1 {
        font-size: 30px;
    }
    .plans-grid {
        grid-template-columns: 1fr;
    }
    .plans-controls {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        border-radius: 24px;
    }
    .period-dropdown-wrap {
        width: 100%;
    }
    .toggles-group {
        justify-content: center;
        width: 100%;
    }
    .toggle-switch {
        width: 100%;
        display: flex;
    }
    .toggle-switch button {
        flex: 1;
        text-align: center;
    }
    .main-price-wrap .amount {
        font-size: 38px;
    }
}
------------
/* --- Class Type Toggle Styles --- */
.class-type-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}
.type-toggle-switch {
    background: #f5f5f7;
    border-radius: 40px;
    padding: 6px;
    display: inline-flex;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.04);
    position: relative;
}
.type-btn {
    background: transparent;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 800;
    color: #86868b;
    border-radius: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.type-btn:hover {
    color: #1d1d1f;
}
.type-btn.active {
    background: #ffffff;
    color: #9b2226;
    box-shadow: 0 5px 15px rgba(155, 34, 38, 0.1);
}
.new-badge {
    background: #9b2226;
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Coming Soon Styles --- */
.coming-soon-wrapper {
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    max-width: 800px;
    margin: 0 auto 50px;
    border: 1px solid rgba(0,0,0,0.03);
    animation: fadeInSmooth 0.6s ease forwards;
}
@keyframes fadeInSmooth {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.coming-soon-content .icon-container {
    width: 100px;
    height: 100px;
    background: #f5f5f7;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
    font-size: 40px;
    color: #9b2226;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
}
.pulse-animation {
    animation: pulseSoft 2.5s infinite;
}
@keyframes pulseSoft {
    0% { box-shadow: 0 0 0 0 rgba(155, 34, 38, 0.2); }
    70% { box-shadow: 0 0 0 20px rgba(155, 34, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(155, 34, 38, 0); }
}
.coming-soon-content h2 {
    font-size: 32px;
    color: #1d1d1f;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}
.coming-soon-content p {
    font-size: 17px;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}
.back-to-private-btn {
    background: #9b2226;
    color: #ffffff;
    padding: 16px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(155, 34, 38, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.back-to-private-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(155, 34, 38, 0.3);
    background: #7a1a1e;
}

@media (max-width: 768px) {
    .type-toggle-switch {
        flex-direction: row;
        width: 100%;
        max-width: 400px;
        padding: 5px;
    }
    .type-btn {
        flex: 1;
        justify-content: center;
        padding: 12px 10px;
        font-size: 14px;
    }
    .coming-soon-wrapper {
        padding: 60px 20px;
    }
    .coming-soon-content h2 {
        font-size: 26px;
    }
    .coming-soon-content p {
        font-size: 15px;
    }
}