.modal {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    transition: all 0.2s ease;
    visibility: hidden;
    opacity: 0;
    padding: 20px;
    overflow: auto;
    z-index: 1000;
    background: #00000080;
    height: 100vh;
    scrollbar-width: thin;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-wrapper {
    padding: 30px;
    border-radius: 20px;
    background: #fff;
    width: 100%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0;
    background: transparent;
}

.price-modal__title {
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 2.25rem;
    line-height: 2.5rem;
    text-align: center;
}

.price-modal__subtitle {
    font-size: 1.25rem;
    line-height: 1.75rem;
    text-align: center;
    max-width: 672px;
    margin: 0 auto 64px;
}

.price-modal {
    padding: 80px 0;
    position: relative;
}

.price-modal > * {
    position: relative;
    z-index: 1;
}

.price-modal::before {
    content: "";
    display: inline-block;
    width: 100vw;
    height: 100%;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    top: 0;
    background: #fff;
}

.price-modal__cards {
    max-width: 896px;
    margin: 0 auto 48px;
    gap: 2rem;
    display: grid;
    grid-template-columns: 1fr;
}

.price-modal__card {
    padding: 24px;
    background: #fff;
    border-radius: 0.5rem;
    border: 2px solid #fed7aa;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-modal__card:hover {
    box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgb(0 0 0 / 0.1),
        0 4px 6px -4px rgb(0 0 0 / 0.1);
    transform: scale(1);
}

.price-modal__card.active {
    border-color: #f97316;
    transform: scale(1);
}

.price-modal__card--current {
    border-color: #4ade80;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    box-shadow: 0 0 0 1px #4ade80, 0 10px 15px -3px rgba(74, 222, 128, 0.2);
}

.price-modal__card-current-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #4ade80;
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.price-modal__card-current-badge svg {
    flex-shrink: 0;
}

.price-modal__card-banner {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    background-image: linear-gradient(to right, #f97316, #ea580c);
    padding: 8px 24px;
    color: #fff;
    border-radius: 9999px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-modal__card-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.price-modal__card-title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    text-align: center;
}

.price-modal__card-price {
    text-align: center;
    font-size: 16px;
    color: #4b5563;
}

.price-modal__card-prices strong {
    color: #f97316;
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
}

.price-modal__card-stock {
    color: #4b5563;
    text-align: center;
}

.price-modal__card-text {
    font-size: 14px;
    color: #4b5563;
    text-align: center;
}

.price-modal__card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.price-modal__card-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4b5563;
    font-size: 14px;
}

.price-modal__card-list-item::before {
    content: "✓";
    flex-shrink: 0;
    background: #f97316;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    line-height: 1rem;
}

.price-modal__card-button {
    background: #f97316;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 16px;
    max-height: 40px;
}

.price-modal__card-button a {
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: #fff;
}

.price-modal__card-button:hover {
    background: #c2410c;
}

.price-modal__banner {
    max-width: 672px;
    margin: 0 auto;
    border-radius: 1rem;
    padding: 24px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
}

.price-modal__banner-title {
    margin-bottom: 8px;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
}

.price-modal__banner-text {
    margin: 0;
    text-align: center;
    font-size: 16px;
}

/* Tablet - 2 products per row between 921px and 1100px */
@media (min-width: 921px) and (max-width: 1100px) {
    .price-modal__cards {
        max-width: 896px;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop - All products in one row above 1100px */
@media (min-width: 1101px) {
    .price-modal__cards {
        max-width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

/* Trial Modal - Single Product Centered */
.modal-price-trial-wrapper {
    max-width: 400px;
    margin: 0 auto 48px;
    grid-template-columns: 1fr;
}

/* Pricing Landing Page */
.site-content:has(.pricing-landing) {
    justify-content: center;
}

.pricing-landing-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.pricing-landing-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}