.plan-groups {
    display: grid;
    gap: 2rem;
}

.plan-group {
    padding: 1.5rem;
    background: #111318;
    border: 1px solid #1f2329;
    border-radius: 20px;
}

.plan-group__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.25rem;
}

.plan-group__header h2 {
    margin-bottom: 0.5rem;
}

.plan-group__summary {
    max-width: 820px;
    color: #aab6c8;
    line-height: 1.65;
}

.plan-subscription-status {
    display: grid;
    gap: 0.25rem;
    min-width: 230px;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(49, 215, 169, 0.16), rgba(102, 199, 255, 0.08));
    border: 1px solid rgba(49, 215, 169, 0.42);
    border-radius: 14px;
    color: #f5f7fb;
}

.plan-subscription-status span {
    color: #aab6c8;
    font-size: 0.9rem;
}

.plan-subscription-status.is-paused {
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.16), rgba(255, 255, 255, 0.04));
    border-color: rgba(255, 209, 102, 0.48);
}

.plan-recurrences {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.plan-recurrence {
    display: grid;
    gap: 0.15rem;
    min-width: 130px;
    padding: 0.8rem 1rem;
    background: #151b25;
    border: 1px solid #2a2e35;
    border-radius: 12px;
    color: #e8eaed;
    cursor: pointer;
    text-align: left;
}

.plan-recurrence span {
    color: #aab6c8;
    font-size: 0.85rem;
}

.plan-recurrence em {
    color: #31d7a9;
    font-style: normal;
    font-weight: 900;
}

.plan-recurrence em.is-empty-discount {
    color: #7f8a9b;
    font-weight: 700;
}

.plan-recurrence small {
    color: #ffd166;
    font-weight: 800;
}

.plan-recurrence.is-active {
    border-color: #31d7a9;
    box-shadow: 0 0 0 1px rgba(49, 215, 169, 0.28);
}

.plan-recurrence.has-discount {
    background: linear-gradient(135deg, rgba(49, 215, 169, 0.14), #151b25);
}

.plan-recurrence.is-best-discount {
    border-color: #ffd166;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 16px;
}

.plan-card--active {
    border-color: rgba(49, 215, 169, 0.72);
    box-shadow: 0 0 0 1px rgba(49, 215, 169, 0.24), 0 18px 46px rgba(49, 215, 169, 0.12);
}

.plan-card__current {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: #31d7a9;
    color: #07130f;
    font-size: 0.75rem;
    font-weight: 900;
}

.plan-card__media {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: #151b25;
}

.plan-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plan-card__body {
    flex: 1;
}

.plan-card__summary {
    color: #aab6c8;
    font-size: 0.95rem;
    line-height: 1.65;
}

.plan-card__summary p:last-child {
    margin-bottom: 0;
}

.plan-card__footer {
    display: grid;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #1f2329;
}

.plan-card__price {
    text-align: left;
}

@media (max-width: 767px) {
    .plan-group {
        padding: 1rem;
    }

    .plan-group__header {
        grid-template-columns: 1fr;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }
}
