.sub-page,
.license-page {
    width: min(1380px, 100%);
    margin-inline: auto;
}

.sub-page .header-box,
.license-page .header-box {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: clamp(22px, 3vw, 34px);
    border-radius: 24px;
}

.sub-page .header-box h3,
.license-page .header-box h3 {
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    letter-spacing: -.025em;
}

.subscription-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.subscription-kpi {
    position: relative;
    overflow: hidden;
    min-height: 145px;
    padding: 20px;
    color: #eafaf7;
    border: 1px solid rgba(139, 217, 199, .18);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(8, 47, 56, .92), rgba(11, 127, 130, .45));
    box-shadow: var(--shadow-soft);
}

.subscription-kpi::after {
    position: absolute;
    top: -34px;
    right: -34px;
    width: 92px;
    height: 92px;
    content: "";
    border: 16px solid rgba(255, 255, 255, .045);
    border-radius: 50%;
}

.subscription-kpi span,
.subscription-kpi small,
.subscription-kpi strong {
    display: block;
}

.subscription-kpi span {
    color: rgba(234, 250, 247, .7);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.subscription-kpi strong {
    margin-block: 8px 3px;
    color: #fff;
    font-size: 2.25rem;
    line-height: 1;
}

.subscription-kpi small {
    color: rgba(234, 250, 247, .58);
    line-height: 1.35;
}

.subscription-kpi.is-warning {
    background: linear-gradient(145deg, #5e4516, #8b681f);
}

.subscription-kpi.is-danger {
    background: linear-gradient(145deg, #64323a, #944653);
}

.plan-card {
    height: 100%;
    padding: 24px;
    color: #effbf9;
    border: 1px solid rgba(139, 217, 199, .2);
    border-radius: 22px;
    background:
        radial-gradient(circle at 95% 0, rgba(96, 208, 192, .16), transparent 14rem),
        linear-gradient(150deg, rgba(8, 47, 56, .96), rgba(5, 31, 43, .92));
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease, box-shadow .2s ease;
}

.plan-card:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-3px);
}

.plan-price {
    padding: 7px 11px;
    color: #062f35;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 10px;
    background: #8bd9c7;
}

.plan-feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    color: rgba(239, 251, 249, .74);
    border-bottom: 1px solid rgba(139, 217, 199, .11);
}

.plan-feature strong {
    color: #fff;
}

.plan-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 76px;
    padding-top: 16px;
}

.plan-capability {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    align-self: flex-start;
    padding: 6px 9px;
    color: #bcebe3;
    font-size: .73rem;
    font-weight: 700;
    border: 1px solid rgba(139, 217, 199, .18);
    border-radius: 999px;
    background: rgba(96, 208, 192, .08);
}

.plan-capability.is-core {
    color: rgba(255, 255, 255, .68);
}

.sub-page .glass-box,
.license-page .glass-box {
    border-radius: 20px;
}

.sub-page .custom-table thead th,
.license-page .custom-table thead th {
    padding-block: 15px;
    color: #9de4da;
    font-size: .76rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-bottom-color: rgba(139, 217, 199, .2);
}

.sub-page .custom-table td,
.license-page .custom-table td {
    padding-block: 15px;
    border-bottom-color: rgba(139, 217, 199, .1);
}

.sub-page .modal-content {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    color: #082f38 !important;
    border: 1px solid #d4e5e2;
    border-radius: 22px;
    background: #f9fcfb !important;
    box-shadow: 0 24px 80px rgba(1, 17, 25, .4);
}

.sub-page .modal-content h5 {
    color: #062f35;
    font-size: 1.35rem;
}

.sub-page .modal-content .form-control,
.sub-page .modal-content .form-select {
    color: #082f38;
    border-color: #c9dcda;
    background: #fff;
}

.sub-page .modal-content .form-control::placeholder,
.sub-page .modal-content .form-select:invalid {
    color: #647b7f;
    opacity: 1;
}

.plan-input-group {
    display: block;
    margin-bottom: 11px;
}

.plan-input-group > span {
    display: block;
    margin-bottom: 6px;
    color: #173f46;
    font-size: .82rem;
    font-weight: 800;
}

.plan-input-group .form-control {
    margin-bottom: 0 !important;
}

.plan-feature-selector {
    padding: 14px;
    border: 1px solid #d4e5e2;
    border-radius: 16px;
    background: #eef8f6;
}

.plan-feature-selector-title {
    margin-bottom: 10px;
}

.plan-feature-selector-title strong,
.plan-feature-selector-title small,
.plan-feature-option strong,
.plan-feature-option small {
    display: block;
}

.plan-feature-selector-title small,
.plan-feature-option small {
    color: #698084;
    font-size: .75rem;
}

.plan-feature-option {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    cursor: pointer;
    border-top: 1px solid #d8e8e5;
}

.plan-feature-option input {
    width: 19px;
    height: 19px;
    accent-color: var(--brand-teal);
}

@media (max-width: 992px) {
    .subscription-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .sub-page .header-box,
    .license-page .header-box {
        align-items: stretch;
        flex-direction: column;
    }

    .sub-page .header-box .d-flex {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
    }

    .subscription-kpi {
        min-height: 126px;
        padding: 17px;
    }
}

@media (max-width: 520px) {
    .subscription-summary {
        grid-template-columns: 1fr;
    }

    .sub-page .header-box .d-flex {
        grid-template-columns: 1fr;
    }
}
