.vps-catalogue-section {
    position: relative;
}

.vps-hosting-hero img {
    width: 100%;
    max-width: 330px;
    height: auto;
}

.vps-term-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 34px;
}

.vps-term-option {
    appearance: none;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    color: inherit;
    padding: 10px 18px;
    font: inherit;
    cursor: pointer;
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.vps-term-option:hover {
    transform: translateY(-1px);
}

.vps-term-option.is-active {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.32);
}

.vps-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.vps-plan-card {
    min-width: 0;
    height: 100%;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.045);
    box-shadow: 0 18px 40px rgba(0,0,0,.14);
    overflow: hidden;
}

.vps-plan-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
}

.vps-plan-status {
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
}

.vps-plan-status.is-available {
    background: rgba(74, 222, 128, .12);
    border: 1px solid rgba(74, 222, 128, .28);
}

.vps-plan-status.is-unavailable {
    background: rgba(248, 113, 113, .10);
    border: 1px solid rgba(248, 113, 113, .24);
}

.vps-plan-card h2 {
    margin: 0 0 8px;
}

.vps-plan-description {
    min-height: 3.6em;
    margin: 0 0 20px;
    opacity: .82;
}

.vps-plan-specs,
.vps-plan-extra-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.vps-plan-specs > div,
.vps-plan-extra-specs > div {
    min-width: 0;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.045);
}

.vps-plan-specs dt,
.vps-plan-extra-specs dt {
    margin-bottom: 4px;
    font-size: .78rem;
    opacity: .65;
}

.vps-plan-specs dd,
.vps-plan-extra-specs dd {
    margin: 0;
    font-weight: 700;
    word-break: break-word;
}

.vps-plan-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: auto;
    padding-top: 22px;
    min-height: 50px;
}

.vps-price-currency {
    font-size: 1.1rem;
    font-weight: 700;
}

.vps-plan-price strong {
    font-size: 2.35rem;
    line-height: 1;
}

.vps-price-cycle {
    font-size: .86rem;
    opacity: .7;
}

.vps-price-unavailable {
    font-size: 1rem !important;
    opacity: .65;
}

.vps-details-toggle {
    width: 100%;
    margin-top: 16px;
}

.vps-plan-extra {
    margin-top: 14px;
}

.vps-plan-actions {
    margin-top: 16px;
    padding-top: 0;
}

.vps-plan-actions .btn {
    width: 100%;
}

.vps-plan-card-unavailable {
    opacity: .68;
}

.vps-availability-note {
    max-width: 900px;
    margin: 12px auto 0;
    text-align: center;
    opacity: .72;
}

@media (max-width: 1100px) {
    .vps-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .vps-plan-grid {
        grid-template-columns: 1fr;
    }

    .vps-plan-description {
        min-height: 0;
    }

    .vps-plan-main {
        padding: 20px;
    }
}

@media (max-width: 980px) {
    .vps-hosting-hero img {
        max-width: 280px;
    }
}

@media (max-width: 640px) {
    .vps-hosting-hero img {
        max-width: 220px;
    }
}


/* =========================================================
   VPS card row alignment
   Each content group starts on the same horizontal line
   within a desktop/tablet card row.
   ========================================================= */

.vps-plan-card {
    height: 100%;
}

.vps-plan-main {
    display: grid;
    grid-template-rows:
        auto
        minmax(132px, auto)
        minmax(148px, auto)
        minmax(60px, auto)
        minmax(54px, auto)
        auto
        minmax(48px, auto);
    height: 100%;
}

.vps-plan-status {
    margin-bottom: 14px;
}

.vps-plan-copy {
    min-height: 132px;
}

.vps-plan-copy h2 {
    margin-bottom: 8px;
}

.vps-plan-description {
    min-height: 72px;
    margin-bottom: 0;
}

.vps-plan-core-specs {
    min-height: 148px;
}

.vps-plan-specs {
    height: 100%;
}

.vps-plan-price {
    margin-top: 0;
    padding-top: 18px;
    min-height: 60px;
    align-self: end;
}

.vps-plan-details-action {
    display: flex;
    align-items: end;
    min-height: 54px;
}

.vps-details-toggle {
    width: 100%;
    margin-top: 0;
}

.vps-plan-extra {
    margin-top: 14px;
}

.vps-plan-actions {
    display: flex;
    align-items: end;
    min-height: 48px;
    margin-top: 16px;
    padding-top: 0;
}

.vps-plan-actions .btn {
    width: 100%;
}

/*
 * At mobile widths each card becomes a natural document flow again.
 */
@media (max-width: 680px) {
    .vps-plan-main {
        display: flex;
        flex-direction: column;
    }

    .vps-plan-copy,
    .vps-plan-description,
    .vps-plan-core-specs,
    .vps-plan-price,
    .vps-plan-details-action,
    .vps-plan-actions {
        min-height: 0;
    }

    .vps-plan-price {
        margin-top: 20px;
        padding-top: 0;
    }

    .vps-details-toggle {
        margin-top: 16px;
    }
}

/* =========================================================
   VPS bottom-aligned pricing and actions

   Keep title/description/spec groups aligned while reserving
   comfortable breathing room before the price. Pricing and
   both action buttons remain anchored toward the bottom of
   every card in the same grid row.
   ========================================================= */

.vps-plan-main {
    display: grid;
    grid-template-rows:
        auto
        minmax(132px, auto)
        minmax(148px, auto)
        minmax(34px, 1fr)
        auto
        auto
        auto
        auto;
    height: 100%;
}

.vps-plan-price {
    align-self: end;
    margin-top: 0;
    padding-top: 0;
    min-height: 60px;
}

.vps-plan-details-action {
    align-self: end;
    min-height: 54px;
    margin-top: 10px;
}

.vps-details-toggle {
    margin-top: 0;
}

.vps-plan-actions {
    align-self: end;
    min-height: 48px;
    margin-top: 16px;
    padding-top: 0;
}

/*
 * Expanded technical details remain between the two actions.
 * They do not disturb the compact collapsed alignment.
 */
.vps-plan-extra[hidden] {
    display: none;
}

@media (max-width: 680px) {
    .vps-plan-main {
        display: flex;
        flex-direction: column;
    }

    .vps-plan-price {
        margin-top: 30px;
        min-height: 0;
    }

    .vps-plan-details-action {
        min-height: 0;
        margin-top: 16px;
    }

    .vps-plan-actions {
        min-height: 0;
        margin-top: 16px;
    }
}

/* =========================================================
   VPS final card stack alignment
   Match Dedicated-style availability and anchor the complete
   price/action stack at the bottom of each card.
   ========================================================= */

.vps-plan-main {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/*
 * Preserve aligned upper content groups.
 */
.vps-plan-copy {
    min-height: 132px;
}

.vps-plan-description {
    min-height: 72px;
}

.vps-plan-core-specs {
    min-height: 148px;
}

/*
 * The price begins the bottom stack.
 * margin-top:auto consumes all remaining vertical space above it,
 * so price + Characteristics + Order stay together at the bottom.
 */
.vps-plan-price {
    margin-top: auto;
    padding-top: 34px;
    min-height: 60px;
    align-self: stretch;
}

.vps-plan-details-action {
    display: block;
    min-height: 0;
    margin-top: 14px;
}

.vps-details-toggle {
    width: 100%;
    margin-top: 0;
}

.vps-plan-actions {
    display: block;
    min-height: 0;
    margin-top: 16px;
    padding-top: 0;
}

/*
 * Dedicated-server-style availability indicator:
 * small green/red dot + text, not a full-width pill.
 */
.vps-plan-status {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    width: auto;
    max-width: max-content;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
}

.vps-plan-status::before {
    content: "";
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.vps-plan-status.is-available {
    color: #10b981;
    background: transparent;
    border: 0;
}

.vps-plan-status.is-available::before {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, .35);
}

.vps-plan-status.is-unavailable {
    color: #ef4444;
    background: transparent;
    border: 0;
}

.vps-plan-status.is-unavailable::before {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, .28);
}

/*
 * Expanded details naturally add height to that card.
 * The compact/collapsed state remains perfectly row-aligned.
 */
.vps-plan-extra {
    margin-top: 14px;
}

@media (max-width: 680px) {
    .vps-plan-copy,
    .vps-plan-description,
    .vps-plan-core-specs {
        min-height: 0;
    }

    .vps-plan-price {
        margin-top: 30px;
        padding-top: 0;
        min-height: 0;
    }

    .vps-plan-status {
        margin-bottom: 14px;
    }
}

/* =========================================================
   VPS full-width action buttons
   Restore original full-card-width button dimensions only.
   ========================================================= */

.vps-plan-details-action,
.vps-plan-actions {
    width: 100%;
    align-self: stretch;
}

.vps-details-toggle,
.vps-plan-actions .btn {
    display: flex;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   VPS smooth details expansion
   ========================================================= */

.vps-plan-extra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition:
        max-height .38s ease,
        opacity .26s ease,
        transform .38s ease;
}

.vps-plan-extra.is-expanded {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   VPS SLA comparison section
   ========================================================= */

.vps-sla-section {
    padding: 82px 0;
}

.vps-sla-heading {
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}

.vps-sla-heading h2 {
    margin: 8px 0 14px;
}

.vps-sla-heading p {
    margin: 0;
    line-height: 1.75;
}

.vps-sla-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: rgba(20, 58, 126, .48);
    box-shadow: 0 18px 45px rgba(0, 20, 70, .16);
}

.vps-sla-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.vps-sla-table th,
.vps-sla-table td {
    padding: 18px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    border-right: 1px solid rgba(255, 255, 255, .07);
}

.vps-sla-table tr:last-child th,
.vps-sla-table tr:last-child td {
    border-bottom: 0;
}

.vps-sla-table th:last-child,
.vps-sla-table td:last-child {
    border-right: 0;
}

.vps-sla-table thead th {
    font-weight: 800;
    font-size: 1rem;
    background: rgba(28, 78, 166, .42);
}

.vps-sla-table thead th:first-child {
    background: transparent;
}

.vps-sla-table tbody th {
    width: 25%;
    text-align: left;
    font-weight: 700;
}

.vps-sla-table .is-basic {
    position: relative;
}

.vps-sla-table .is-basic span {
    display: block;
    width: max-content;
    margin: 5px auto 0;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: .68rem;
    line-height: 1.2;
    color: #34d399;
    background: rgba(16, 185, 129, .12);
}

.vps-sla-note {
    margin: 16px 0 0;
    text-align: center;
    font-size: .82rem;
    opacity: .78;
}

@media (max-width: 680px) {
    .vps-sla-section {
        padding: 58px 0;
    }

    .vps-sla-heading {
        text-align: left;
    }

    .vps-sla-table-wrap {
        border-radius: 14px;
    }
}

/* =========================================================
   VPS term selector matched to Dedicated
   ========================================================= */

.vps-term-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 34px;
}

.vps-term-option {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
    color: inherit;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.vps-term-option:hover {
    transform: translateY(-1px);
    border-color: rgba(74, 144, 245, .38);
}

.vps-term-option.is-active {
    background: #1f6df2;
    border-color: #1f6df2;
    color: #fff;
}

.vps-term-label {
    white-space: nowrap;
}

.vps-term-discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 2px 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .72);
    font-size: .64rem;
    font-weight: 800;
    line-height: 1;
}

.vps-term-option.is-active .vps-term-discount {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

@media (max-width: 680px) {
    .vps-term-selector {
        gap: 7px;
    }

    .vps-term-option {
        padding: 8px 11px;
    }
}