/* Pricing Matrix & Catalog Showcase — Cheap-Host */
:root {
    --pm-bg: rgba(13, 17, 34, 0.72);
    --pm-border: rgba(132, 145, 255, 0.18);
    --pm-border-hover: rgba(99, 102, 241, 0.45);
    --pm-text: #ffffff;
    --pm-muted: #94a3b8;
    --pm-dim: #64748b;
    --pm-accent: #6366f1;
    --pm-accent-grad: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    --pm-save: #34d399;
    --pm-save-bg: rgba(16, 185, 129, 0.15);
}

.pricing-catalog {
    margin: 48px auto 24px;
    max-width: 1140px;
    width: 100%;
}

.pricing-catalog__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.pricing-catalog__titles {
    text-align: left;
}

.pricing-catalog__title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pricing-catalog__count {
    font-size: 13px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.16);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
}

.pricing-catalog__subtitle {
    font-size: 14px;
    color: var(--pm-muted);
    margin: 0;
    max-width: 620px;
    line-height: 1.5;
}

/* Pricing Matrix Card Table */
.pricing-matrix {
    background: var(--pm-bg);
    border: 1px solid var(--pm-border);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.pricing-matrix__head {
    display: grid;
    grid-template-columns: 1.3fr 1.1fr 1fr 1fr 1.2fr 1.4fr 120px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid rgba(132, 145, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pm-muted);
}

.pm-col {
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: left;
}

.pm-col--price {
    justify-content: flex-start;
}

.pm-col--action {
    justify-content: flex-end;
}

.pricing-matrix__body {
    display: flex;
    flex-direction: column;
}

.pricing-matrix__row {
    display: grid;
    grid-template-columns: 1.3fr 1.1fr 1fr 1fr 1.2fr 1.4fr 120px;
    padding: 18px 24px;
    align-items: center;
    border-bottom: 1px solid rgba(132, 145, 255, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.pricing-matrix__row:last-child {
    border-bottom: none;
}

.pricing-matrix__row:hover {
    background: rgba(99, 102, 241, 0.07);
}

.pricing-matrix__row--featured {
    background: rgba(99, 102, 241, 0.04);
}

.pricing-matrix__row--featured::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--pm-accent-grad);
}

.pricing-matrix__row-header,
.pricing-matrix__row-specs,
.pricing-matrix__row-footer {
    display: contents;
}

/* Cell Contents */
.pm-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.pm-name__title {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pm-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.pm-badge--hot {
    background: rgba(244, 63, 94, 0.18);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fda4af;
}

.pm-badge--top {
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #d8b4fe;
}

.pm-name__sub {
    font-size: 12px;
    color: var(--pm-muted);
}

.pm-spec {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.pm-spec__val {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pm-spec__val svg {
    color: #818cf8;
    flex-shrink: 0;
}

.pm-spec__sub {
    font-size: 11px;
    color: var(--pm-dim);
}

.pm-net {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.pm-net__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: #a5b4fc;
}

.pm-net__sub {
    font-size: 11px;
    color: var(--pm-dim);
}

/* Pricing Column */
.pm-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.pm-price__main {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pm-price__val {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.pm-price__period {
    font-size: 12px;
    font-weight: 600;
    color: var(--pm-muted);
}

.pm-price__sub {
    font-size: 12px;
    color: var(--pm-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pm-save-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--pm-save-bg);
    color: var(--pm-save);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Action Button */
.btn-matrix-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(132, 145, 255, 0.28);
    color: #e0e7ff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: none;
    white-space: nowrap;
}

.btn-matrix-order:hover {
    background: rgba(99, 102, 241, 0.28);
    border-color: rgba(132, 145, 255, 0.55);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-matrix-order svg {
    transition: transform 0.2s ease;
}

.btn-matrix-order:hover svg {
    transform: translateX(3px);
}

/* Responsive View */
@media (max-width: 980px) {
    .pricing-matrix__head {
        grid-template-columns: 1.2fr 1fr 0.9fr 0.9fr 1fr 1.3fr 110px;
        padding: 12px 16px;
    }
    .pricing-matrix__row {
        grid-template-columns: 1.2fr 1fr 0.9fr 0.9fr 1fr 1.3fr 110px;
        padding: 16px 16px;
    }
    .pm-name__title { font-size: 15px; }
    .pm-spec__val { font-size: 14px; }
    .pm-price__val { font-size: 18px; }
    .btn-matrix-order { padding: 8px 14px; font-size: 12px; }
}

@media (max-width: 780px) {
    .pricing-catalog__top {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .pricing-matrix {
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .pricing-matrix__head {
        display: none;
    }
    .pricing-matrix__body {
        gap: 12px;
    }
    .pricing-matrix__row {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 18px 20px;
        background: rgba(16, 22, 42, 0.7);
        border: 1px solid var(--pm-border);
        border-radius: 18px;
        backdrop-filter: blur(14px);
    }
    .pricing-matrix__row--featured::before {
        display: none;
    }
    .pricing-matrix__row--featured {
        border-color: rgba(99, 102, 241, 0.4);
    }
    .pricing-matrix__row-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .pricing-matrix__row-specs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        padding: 12px;
        background: rgba(255, 255, 255, 0.025);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    .pricing-matrix__row-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 12px;
    }
    .pricing-matrix__row-footer .btn-matrix-order {
        flex: 1;
        padding: 11px 18px;
        font-size: 14px;
    }
}
