.products-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0;
    background: #f8f9fa;
}

/* Dotted texture at the lower part */
.products-container::after { display: none; }

/* Plans grid to match landing */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 300px));
    gap: 0.4rem;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* Pricing section to mirror landing */
.pricing {
    padding: 5rem 5%;
    background: #f8f9fa;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 8rem;
}

.pricing h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #6D597A;
    font-size: 2rem;
    font-family: 'Poppins', sans-serif;
}

.pricing::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 420px;
    pointer-events: none;
    background-image:
        linear-gradient(to top, rgba(248, 249, 250, 0) 0%, #f8f9fa 85%),
        radial-gradient(#dbe6f2 2.4px, transparent 2.4px);
    background-size: 100% 100%, 24px 24px;
    background-repeat: no-repeat, repeat;
    z-index: 0;
}

/* Subscription Section */
.subscription-section {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 1rem;
}

.subscription-section .plan-card {
    max-width: 500px;
    width: 100%;
    padding: 1rem 1.5rem;
    min-height: auto;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

.subscription-section .plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.subscription-section .plan-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #6D597A;
}

.subscription-section .plan-price {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #B56576;
}

.subscription-section .plan-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem 1rem;
    margin-bottom: 1.5rem;
}

.subscription-section .plan-features li {
    padding: 0.3rem 0;
    font-size: 1rem;
    padding-left: 1.5rem;
    color: #6D597A;
}

.subscription-section .plan-features li:before {
    content: "✓";
    color: #355070;
    position: absolute;
    left: 0;
}

/* All other styles are now in shared.css */

.student-code-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #355070;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 100;
}

.student-code-btn:hover {
    background-color: #2a3f58;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.modal-btn.cancel {
    background-color: white;
    color: #355070;
    border: 2px solid #355070;
    transition: all 0.3s ease;
}

.modal-btn.cancel:hover {
    background-color: #2a3f58;
    color: white;
}

.modal-btn.confirm {
    background-color: #355070;
    color: white;
}

.modal-btn.confirm:hover {
    background-color: #2a3f58;
}

#studentCodeInput {
    width: 100%;
    padding: 8px;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#studentCodeMessage {
    margin-top: 10px;
    font-size: 14px;
}

.error {
    color: #f44336;
}

.success {
    color: #4CAF50;
}

/* Update plan card styles to match landing page */
.plan-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-title {
    color: #6D597A;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.6rem;
}

.plan-price {
    font-size: 3.2rem;
    color: #B56576;
    margin-bottom: 1rem;
    line-height: 1;
    text-align: center;
}

.price-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1;
}

/* Inline old + new price container (match landing.css) */
.price-line {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.6rem;
}

.plan-price .price-main {
    font-size: 1em;
    font-weight: 700;
    line-height: 1;
    color: #B56576;
}

.plan-price .price-cents {
    font-size: 0.45em;
    margin-left: 0.12em;
    transform: translateY(-0.35em);
    display: inline-block;
    color: #B56576;
    font-weight: 700;
}

/* Old price style for subscription plan (match landing.css) */
.subscription-plan .price-old {
    display: inline-flex;
    align-items: flex-start;
    color: #7f8c8d;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #7f8c8d;
    font-size: 0.75em;
}

.subscription-plan .price-old .price-main,
.subscription-plan .price-old .price-cents {
    color: #7f8c8d;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    text-align: left;
}

.plan-features li {
    padding: 0.35rem 0;
    color: #6D597A;
    position: relative;
    padding-left: 1.5rem;
}

.plan-features li:before {
    content: "✓";
    color: #355070;
    position: absolute;
    left: 0;
}

.plan-actions {
    margin-top: auto;
    border-top: 1px solid #e1e1e1;
    padding-top: 0.6rem;
}

.plan-actions .buy-btn {
    margin-top: 1rem;
}

/* From Uiverse.io by Mike11jr */
.buy-btn {
    padding: 1.1em 2em;
    background: none;
    border: 2px solid #fff;
    font-size: 15px;
    color: #ffffff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    border-radius: 12px;
    background-color: #355070;
    font-weight: bolder;
    box-shadow: 0 2px 0 2px #000;
    margin-top: auto;
    width: 100%;
}

.buy-btn:before {
    content: "";
    position: absolute;
    width: 100px;
    height: 120%;
    background-color: #6d597a;
    top: 50%;
    transform: skewX(30deg) translate(-150%, -50%);
    transition: all 0.5s;
}

.buy-btn:hover {
    background-color: #b56576;
    color: #fff;
    box-shadow: 0 2px 0 2px #355070;
}

.buy-btn:hover::before {
    transform: skewX(30deg) translate(150%, -50%);
    transition-delay: 0.1s;
}

.buy-btn:active {
    transform: scale(0.9);
}

/* Old price (grey and strikethrough) for pricing section */
.price-old {
    display: inline-flex;
    align-items: flex-start;
    color: #7f8c8d;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #7f8c8d;
    font-size: 0.75em;
}

.price-old .price-main,
.price-old .price-cents {
    color: #7f8c8d !important;
}

.plan-price .price-old .price-main,
.plan-price .price-old .price-cents {
    color: #7f8c8d !important;
}


.most-popular {
    border: 2px solid #355070;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #355070;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
    .products-container {
        padding: 15px;
    }
    
    .subscription-section {
        margin-top: 1.5rem;
        padding: 0 0.5rem;
    }

    .subscription-section .plan-card {
        max-width: 100%;
        padding: 1rem;
    }

    .subscription-section .plan-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: #6D597A;
    }

    .subscription-section .plan-price {
        font-size: 2rem;
        margin-bottom: 1rem;
        color: #B56576;
    }

    .subscription-section .plan-features {
        grid-template-columns: 1fr;
        gap: 0.3rem;
        margin-bottom: 1.5rem;
    }

    .subscription-section .plan-features li {
        font-size: 0.9rem;
        padding: 0.3rem 0;
        color: #6D597A;
        padding-left: 1.5rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        padding: 0 1rem;
    }
    
    .product-card {
        width: 100%;
        margin: 10px 0;
    }
    
    .product-image {
        max-width: 100%;
        height: auto;
    }
}