.tabs-row .tab-btn {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #94a3b8;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    transition: all .2s ease;
}

.tabs-row .tab-btn:hover {
    transform: translateY(-1px);
}

.service-view {
    min-height: 0;
}

.service-chip {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.service-chip--cyan {
    background: rgba(6, 182, 212, .14);
    color: #22d3ee;
}

.service-chip--purple {
    background: rgba(168, 85, 247, .14);
    color: #c084fc;
}

.service-chip--blue {
    background: rgba(59, 130, 246, .14);
    color: #60a5fa;
}

.service-chip--emerald {
    background: rgba(16, 185, 129, .14);
    color: #34d399;
}

.service-chip--amber {
    background: rgba(245, 158, 11, .14);
    color: #fbbf24;
}

.service-tabs {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 28px;
    padding-top: 10px;
    overflow-x: auto;
    /* border-bottom: 1px solid #e2e8f0; */
    padding-bottom: 14px;
    flex-direction: row;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .service-tabs {
        justify-content: center;
    }
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
    max-width: 72rem;
    margin: 0 auto 40px;
}

@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px;
    }
}

.tabs-row.tabs-cyan .tab-btn.active {
    background: #06b6d4;
    color: #fff;
    border-color: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, .35);
}

.tabs-row.tabs-purple .tab-btn.active {
    background: #a855f7;
    color: #fff;
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, .35);
}

.tabs-row.tabs-blue .tab-btn.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, .35);
}

.tabs-row.tabs-emerald .tab-btn.active {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, .35);
}

.plan-card {
    position: relative;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-3px);
    border-color: #e2e8f0;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

#vps-grid,
#hosting-grid,
#email-grid,
#proxy-grid {
    transition: opacity .25s ease, transform .25s ease;
}

.grid-fade {
    opacity: 0;
    transform: translateY(8px);
}

.plan-price {
    color: #fff;
    font-size: 25px;
    font-weight: 800;
}

.plan-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    /* margin-bottom: 12px; */
}

.plan-badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.plan-card--vps .plan-badge {
    background: rgba(6, 182, 212, .15);
    color: #22d3ee;
}

.plan-card--hosting .plan-badge {
    background: rgba(168, 85, 247, .16);
    color: #c084fc;
}

.plan-card--email .plan-badge {
    background: rgba(59, 130, 246, .16);
    color: #60a5fa;
}

.plan-card--proxy .plan-badge {
    background: rgba(16, 185, 129, .16);
    color: #34d399;
}

.plan-specs {
    margin: 0 0 14px 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.plan-specs li {
    color: #475569;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.plan-pricing-mini {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.plan-dc {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 8px;
}

.plan-note-inline {
    color: #fda4af;
    font-size: 12px;
    margin-bottom: 8px;
}

.plan-note-inline--day-support {
    color: #67e8f9;
    font-weight: 600;
}

.plan-wallet-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, .35);
    background: rgba(251, 191, 36, .12);
    color: #fcd34d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.plan-wallet-tag--inline {
    margin-left: auto;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .03em;
    background: rgba(251, 191, 36, .18);
    border-color: rgba(251, 191, 36, .42);
}

.plan-badge-dc {
    font-size: 12px;
    font-weight: 700;
    color: #bfdbfe;
    padding: 5px 12px;
    border: 1px solid #274266;
    background: #0a1a35;
    border-radius: 999px;
    letter-spacing: .02em;
}

.plan-dc-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #bfdbfe;
    line-height: 1;
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid #274266;
    background: #0a1a35;
    border-radius: 999px;
    letter-spacing: .02em;
    transition: all .2s ease;
}

.plan-dc-option.active {
    color: #fff;
    border-color: #0ea5e9;
    background: rgba(14, 165, 233, .25);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, .15) inset;
}

.pricing-chip {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    column-gap: 10px;
    padding: 2px 0;
    /* border: 1px solid #1c2f4d; */
    border-radius: 9px;
    /* background: rgba(8, 20, 40, .55); */
    color: #b9c7dc;
    font-size: 11px;
}

.pricing-chip strong {
    color: #dbe6f7;
    font-size: 13px;
    font-weight: 700;
}

.pricing-discount {
    margin-left: 8px;
    font-style: normal;
    font-weight: 700;
    font-size: 11px;
    color: #6ecc32;
    background: #111939;
    border-radius: 999px;
    padding: 2px 8px;
}

.pricing-chip-label {
    text-align: left;
}

.pricing-chip-price {
    text-align: right;
}

.pricing-chip.no-discount .pricing-chip-price {
    grid-column: 3;
}

.pricing-chip.no-discount .pricing-discount--empty {
    display: none;
}

.pricing-chip.has-discount .pricing-chip-price {
    grid-column: 3;
}

.plan-popular {
    position: absolute;
    top: 12px;
    right: 16px;
    left: auto;
    transform: none;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    z-index: 3;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(6, 182, 212, .28);
}

.plan-divider {
    margin-bottom: 16px;
    padding-bottom: 16px;
}

.plan-price {
    font-size: 25px;
    line-height: 1.05;
}

.plan-specs {
    margin-bottom: 22px;
}

.plan-specs li {
    font-size: 15px;
    line-height: 1.35;
    padding: 2px 0;
    color: #c6d3e6;
}

.plan-btn {
    min-height: 56px;
    font-size: 16px;
}

@media (max-width: 1024px) {
    .plan-price {
        font-size: 25px;
    }

    .plan-specs li {
        font-size: 15px;
    }
}

.plan-stock {
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 8px;
}

.plan-divider {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.plan-card--vps.is-popular {
    border-color: #06b6d4;
    box-shadow: 0 12px 30px rgba(6, 182, 212, .2);
}

.plan-card--hosting.is-popular {
    border-color: #a855f7;
    box-shadow: 0 12px 30px rgba(168, 85, 247, .2);
}

.plan-card--email.is-popular {
    border-color: #3b82f6;
    box-shadow: 0 12px 30px rgba(59, 130, 246, .2);
}

.plan-card--proxy.is-popular {
    border-color: #10b981;
    box-shadow: 0 12px 30px rgba(16, 185, 129, .2);
}

.plan-btn {
    margin-top: auto;
    width: 100%;
    border-radius: 12px;
    padding: 14px 16px;
    font-weight: 700;
    color: #fff;
    border: 1px solid transparent;
    transition: all .2s ease;
}

.plan-btn--vps {
    background: #06b6d4;
}

.plan-btn--vps:hover {
    background: #22d3ee;
}

.plan-btn--hosting {
    background: #a855f7;
}

.plan-btn--hosting:hover {
    background: #c084fc;
}

.plan-btn--email {
    background: #3b82f6;
}

.plan-btn--email:hover {
    background: #60a5fa;
}

.plan-btn--proxy {
    background: #10b981;
}

.plan-btn--proxy:hover {
    background: #34d399;
}

.plan-btn.plan-btn--loading,
.btn-buy.plan-btn--loading,
.plan-btn:disabled:not(.plan-btn--out-of-stock) {
    cursor: wait;
    opacity: 0.92;
    pointer-events: none;
}

/* Proxy (và thẻ khác nếu dùng): kho = 0 — không đặt mua */
.plan-btn.plan-btn--out-of-stock:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    filter: grayscale(0.45);
    pointer-events: none;
    background: #f1f5f9 !important;
    border-color: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
}

.plan-btn.plan-btn--out-of-stock:disabled:hover {
    background: #f1f5f9 !important;
    filter: grayscale(0.45);
}

.spec-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

/* Modern service cards (VPS/Hosting/Email) */
.plan-card {
    background: linear-gradient(160deg, #0b1730 0%, #0a1225 100%);
    border: 1px solid rgba(71, 85, 105, 0.42);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.plan-card .plan-badge-row {
    margin-bottom: 14px;
    gap: 8px;
}

.plan-card .plan-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 6px 12px;
}

.plan-card .plan-badge-dc,
.plan-card .plan-dc-option {
    min-height: 30px;
    padding: 6px 11px;
    font-size: 11px;
    font-weight: 700;
}

.plan-card .js-main-price {
    font-size: 35px;
    font-weight: 900;
    line-height: 0.95;
}

.plan-card.spcard {
    background-color: #151e2e;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(51, 65, 85, 0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.plan-card.spcard.spcard--cyan:hover {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 20px 25px -5px rgba(8, 145, 178, 0.2);
}

.plan-card.spcard.spcard--purple:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 25px -5px rgba(126, 34, 206, 0.2);
}

.plan-card.spcard.spcard--blue:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 25px -5px rgba(30, 58, 138, 0.2);
}

.spcard-top {
    margin-bottom: 1rem;
}

.spcard-tags {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 1.1rem;
    min-height: 1.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.spcard-tag {
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1;
}

.spcard-tag--service {
    text-transform: uppercase;
}

.spcard--cyan .spcard-tag--service {
    background-color: #102a36;
    color: #22d3ee;
}

.spcard--purple .spcard-tag--service {
    background-color: rgba(88, 28, 135, 0.4);
    color: #c084fc;
}

.spcard--blue .spcard-tag--service {
    background-color: rgba(30, 58, 138, 0.4);
    color: #60a5fa;
}

.spcard-tag--dc,
.spcard .plan-dc-option {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid rgba(71, 85, 105, 0.5);
}

.spcard-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0 0 0.4rem 0;
}

.spcard-title-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .375rem;
    flex-wrap: wrap;
}

.spcard-spec-badge {
    background: linear-gradient(to right, #f1f5f9, #ffffff);
    border: 1px solid #fafafa;
    color: #334155;
    margin-top: -5px;
    padding: .25rem .625rem;
    border-radius: .375rem;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .025em;
    box-shadow: inset 0 2px 4px 0 rgba(51, 65, 85, 0.2);
}

.spcard-price-group {
    display: flex;
    align-items: baseline;
    gap: .25rem;
    margin-bottom: 1rem;
}

.spcard-price-group.hidden {
    display: none !important;
}

.spcard-price {
    font-size: 46px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    color: #fff;
}

.spcard-price-unit {
    color: #94a3b8;
    font-size: 17px;
    font-weight: 500;
    margin-left: 0.25rem;
}

.spcard-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    min-height: 32px;
    margin-bottom: 1rem;
}

.spcard .plan-wallet-tag {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    background-color: #151e2e;
    color: #eab308;
    border-left: 3px solid #eab308;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 0 10px;
    border-radius: 0.375rem;
    font-size: 10px;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: .025em;
}

.spcard-badge-daily {
    display: inline-flex;
    align-items: center;
    background-color: #102a36;
    color: #22d3ee;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 12px;
    font-weight: 500;
}

.spcard-pricing-list.spcard-best-list {
    background: #101929;
    border-radius: 12px 0;
    padding: 10px;
    margin: 0 -10px 10px -10px;
}

.spcard-pricing-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 10px;
}

.spcard-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.spcard-pricing-period {
    color: #94a3b8;
}

.spcard-pricing-discount {
    color: #34d399;
    font-weight: 500;
    margin-left: .25rem;
}

.spcard-pricing-cost {
    font-weight: 600;
    color: #334155;
    font-size: 13px;
}

.spcard-pricing-list--single {
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

.spcard-pricing-list--single .spcard-pricing-row {
    align-items: baseline;
    padding: 0.125rem 0;
}

.spcard-pricing-list--single .spcard-pricing-period {
    color: #475569;
    font-size: 15px;
    font-weight: 600;
}

.spcard-pricing-list--single .spcard-pricing-cost {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
}

/* Khung BEST — cùng kiểu dòng giá, không viền gradient */
.spcard-best-list {
    margin-bottom: 1.25rem;
}

.spcard-best-list .spcard-pricing-row {
    margin-bottom: 0.25rem;
}

.spcard-best-badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.35rem;
    color: #fff;
    padding: .125rem .4rem;
    border-radius: .25rem;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: linear-gradient(to right, #2563eb, #60a5fa);
}

.spcard-best-desc {
    font-size: 12px;
    font-weight: 500;
    color: #34d399;
    padding-left: 0;
}

.spcard-specs-container {
    background-color: #f1f5f9;
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: .75rem;
    padding: .875rem;
    margin-bottom: 1.25rem;
    margin-top: auto;
}

.spcard-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: .75rem;
    column-gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.spcard-spec-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 13px;
    color: #475569;
    min-width: 0;
}

.spcard-spec-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spcard-spec-icon.spcard--cyan {
    color: rgba(6, 182, 212, 0.7);
}

.spcard-spec-icon.spcard--purple {
    color: rgba(192, 132, 252, 0.8);
}

.spcard-spec-icon.spcard--blue {
    color: rgba(96, 165, 250, 0.8);
}

.plan-card.spcard .plan-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: .75rem;
    border-radius: .75rem;
    border: none;
    margin-top: auto;
}

.plan-card.spcard .plan-btn--vps,
.plan-card.spcard .plan-btn--email {
    background-color: #3b82f6;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.plan-card.spcard .plan-btn--hosting {
    background-color: #a855f7;
    box-shadow: 0 4px 14px 0 rgba(168, 85, 247, 0.39);
}

@media (max-width: 900px) {
    .spcard-specs-grid {
        grid-template-columns: 1fr;
    }
}

.payment-tx-card__amount {
.service-loading-wrap {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem;
}

.service-loading-wrap.is-visible {
    display: flex;
}

.service-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(34, 211, 238, 0.2);
    border-top-color: #22d3ee;
    border-radius: 50%;
    animation: vpsv2-catalog-spin 0.8s linear infinite;
    flex-shrink: 0;
}
