:root {
    --vps-accent: var(--primary-color, #012467);
    --vps-accent-hover: var(--primary-hover, #011a4d);
    --vps-accent-rgb: var(--primary-rgb, 1, 36, 103);
    --vps-ink: #0f172a;
    --vps-muted: #64748b;
    --vps-border: #dce4ef;
    --vps-border-strong: #c5d0de;
    --vps-surface: #f1f5f9;
    --vps-radius: 4px;
}

.page-heading-bar .title {
    font-size: 22px;
    font-weight: 800;
    color: var(--vps-ink);
}

.nav-hosting-swiper {
    position: relative;
}

.nav-hosting-swiper .swiper {
    overflow: hidden;
}

.nav-hosting-swiper .swiper-slide {
    width: auto;
}

.nav-hosting-swiper .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--vps-border);
    border-radius: 4px;
    background: #fff;
    color: var(--vps-muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0.45;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
}

.nav-hosting-swiper .swiper-slide-active .nav-link,
.nav-hosting-swiper .nav-link.active {
    background: rgba(var(--vps-accent-rgb), 0.1);
    border-color: rgba(var(--vps-accent-rgb), 0.24);
    color: var(--vps-accent);
    opacity: 1;
}

.home-hosting-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
}

.home-hosting-grid--list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.home-hosting-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 16px;
    border: 1px solid var(--vps-border);
    border-radius: var(--vps-radius);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-hosting-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.home-hosting-card_title {
    margin: 0 0 10px;
    color: var(--vps-ink);
    font-size: 15px;
    font-weight: 800;
}

.home-hosting-card_price {
    margin-bottom: 12px;
}

.home-hosting-card_price strong {
    font-size: 20px;
    font-weight: 900;
    color: var(--vps-accent);
}

.home-hosting-card_price span {
    color: var(--vps-muted);
    font-size: 12px;
    font-weight: 700;
}

.home-hosting-card_features {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    flex: 1 1 auto;
}

.home-hosting-card_features li {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #334155;
    font-weight: 700;
    margin-bottom: 6px;
}

.home-hosting-card_features i {
    color: var(--vps-accent);
}

.home-hosting-card_actions {
    margin-top: auto;
}

.home-hosting-card_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    border-radius: 3px;
    background: var(--vps-accent);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
}

.home-hosting-card_btn:hover {
    background: var(--vps-accent-hover);
    color: #fff;
}

.card-cart {
    align-self: start;
}

aside.card-cart {
    position: sticky;
    top: 88px;
}

.card-cart .card-header {
    border-radius: 0;
    background-color: #fff;
}

.card-cart .card-header .card-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--vps-accent);
    line-height: 1.6;
    position: relative;
}

.card-cart .card-header .card-title span {
    height: 28px;
    width: 28px;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
    border: 1px solid var(--vps-accent);
    color: var(--vps-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
}

.card-cart .card-body .item:not(:last-of-type) {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.card-cart .card-body .cart-name,
.card-cart .card-body .cart-name .cart-price {
    font-size: 14px;
    font-weight: 600;
}

.card-cart .card-body .cart-percent {
    font-size: 90%;
}

.card-cart .card-body .cart-price {
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

.card-cart .card-body .total {
    padding: 10px 0;
}

.card-cart .card-body .total .cart-total {
    font-size: 18px;
    color: #1f2937;
    font-weight: 700;
}

.card-cart .card-body .total .card-total-value,
.card-cart .card-body .item .cart-price {
    text-align: right;
    font-weight: 700;
    color: #dc3545;
    font-size: 18px;
}

.card-cart .card-body .item .cart-name .cart-price {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.card-cart .card-body .info .info-item + .info-item {
    margin-top: 7px;
}

.card-cart .btn.btn-large {
    height: 44px;
    min-height: 44px;
    font-size: 16px;
    font-weight: 700;
}

.home-hosting-grid--home {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hosting-buy-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 18px;
}

.hosting-buy-layout > aside {
    position: sticky;
    top: 88px;
    align-self: start;
}

.hosting-buy-field {
    margin-bottom: 14px;
}

.hosting-buy-field > label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--vps-ink);
}

.hosting-buy-cycles {
    display: grid;
    gap: 8px 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hosting-buy-option {
    display: flex;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--vps-border);
    border-radius: 6px;
    margin-bottom: 0;
    cursor: pointer;
}

.hosting-buy-option:has(input:checked) {
    border-color: rgba(var(--vps-accent-rgb), 0.34);
    background: rgba(var(--vps-accent-rgb), 0.06);
}

.hosting-buy-option input {
    flex: 0 0 auto;
    margin-top: 2px;
    accent-color: var(--vps-accent);
}

.hosting-buy-option_text {
    display: flex;
    flex: 1;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.hosting-buy-option_text em {
    font-style: normal;
    font-weight: 800;
    color: var(--vps-accent);
    white-space: nowrap;
}

.vps-os-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.vps-os-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--vps-border-strong);
    border-radius: 6px;
    background: #fff;
}

.vps-os-card.is-active {
    border-color: var(--vps-accent);
    box-shadow: 0 0 0 1px var(--vps-accent);
}

.vps-os-card_mark {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 26px solid var(--vps-accent);
    border-left: 26px solid transparent;
    display: none;
}

.vps-os-card.is-active .vps-os-card_mark {
    display: block;
}

.vps-os-card_mark i {
    position: absolute;
    top: -24px;
    right: 2px;
    color: #fff;
    font-size: 9px;
}

.vps-os-card_top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 92px;
    padding: 12px 8px 10px;
}

.vps-os-card_top strong {
    font-size: 13px;
    font-weight: 800;
    color: var(--vps-ink);
    text-align: center;
}

.vps-os-card_select {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--vps-border);
    border-radius: 0;
    background-color: transparent;
    padding: 8px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--vps-muted);
    text-align: center;
}

.vps-os-card.is-active .vps-os-card_select {
    color: var(--vps-accent);
}

.vps-extra-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
}

.vps-extra-item > label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--vps-ink);
}

.vps-extra-item input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 4px;
    margin: 0;
    background: var(--gray-200, #e5e7eb);
    border-radius: 99px;
}

.vps-extra-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: var(--vps-accent);
    cursor: pointer;
}

.vps-extra-item input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: var(--vps-accent);
    cursor: pointer;
}

.vps-extra-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--vps-muted);
}

.hosting-order-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.hosting-order-head_meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    color: var(--vps-muted);
    font-size: 13px;
    font-weight: 600;
}

.hosting-order-head_actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.hosting-order-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0;
    padding: 0 1rem;
    border-bottom: 1px solid var(--vps-border);
    overflow-x: auto;
}

.hosting-order-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--vps-muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.hosting-order-tabs .nav-link:hover,
.hosting-order-tabs .nav-link.active {
    background: transparent;
    color: var(--vps-accent);
    border-bottom-color: var(--vps-accent);
}

.hosting-order-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.hosting-order-metric {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 88px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--vps-border);
    border-radius: 3px;
}

.hosting-order-metric_icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--vps-surface);
    color: var(--vps-accent);
}

.hosting-order-metric_label {
    font-size: 12px;
    font-weight: 700;
    color: var(--vps-muted);
    margin-bottom: 2px;
}

.hosting-order-metric_value {
    font-size: 20px;
    font-weight: 800;
    color: var(--vps-accent);
    line-height: 1.2;
}

.hosting-order-metric_value small {
    font-size: 13px;
    font-weight: 700;
    color: var(--vps-muted);
}

.hosting-order-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    margin-bottom: 16px;
}

.hosting-order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
}

.hosting-order-info-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.hosting-order-info-item span {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--vps-muted);
}

.hosting-order-info-item strong {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--vps-ink);
    word-break: break-word;
}

.hosting-order-copy {
    border: 0;
    background: transparent;
    color: var(--vps-muted);
    padding: 0;
    line-height: 1;
}

.hosting-order-copy:hover {
    color: var(--vps-accent);
}

.hosting-order-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hosting-order-action {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--vps-border-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--vps-ink);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.hosting-order-action i {
    width: 16px;
    color: var(--vps-muted);
    text-align: center;
}

.hosting-order-action:hover {
    border-color: rgba(var(--vps-accent-rgb), 0.34);
    background: var(--vps-surface);
}

.hosting-order-action:disabled {
    opacity: 0.45;
    pointer-events: none;
}

.hosting-order-modal .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

@media (max-width: 1199.98px) {
    .home-hosting-grid,
    .home-hosting-grid--home,
    .home-hosting-grid--list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .hosting-buy-layout,
    .hosting-order-body,
    .hosting-order-info-grid {
        grid-template-columns: 1fr;
    }

    .hosting-buy-layout > aside,
    aside.card-cart {
        position: static;
    }

    .vps-os-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hosting-order-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .home-hosting-grid,
    .home-hosting-grid--home,
    .home-hosting-grid--list,
    .hosting-buy-cycles,
    .vps-os-grid,
    .vps-extra-grid {
        grid-template-columns: 1fr 1fr;
    }
}
