.zvip-wrap {
    --zvip-accent: var(--theme-color);
    --zvip-accent-soft: color-mix(in srgb, var(--zvip-accent) 12%, transparent);
    --zvip-warm: #ff6b2c;
    --zvip-warm-dark: #7a3a05;
    color: var(--main-color);
    border-radius: var(--main-radius);
    box-shadow: var(--main-shadow);
    overflow: hidden;
}

.zvip-wrap.zvip-no-shadow,
.zvip-wrap.zvip-no-shadow .zvip-plan-card,
.zvip-wrap.zvip-no-shadow .zvip-faq-item,
.zvip-wrap.zvip-no-shadow .zvip-hero-benefit-card,
.zvip-wrap.zvip-no-shadow .zvip-benefit-compare-table-wrap,
.zvip-wrap.zvip-no-shadow .zvip-user-card {
    box-shadow: none;
}

.zvip-wrap.zvip-no-radius,
.zvip-wrap.zvip-no-radius * {
    border-radius: 0 !important;
}

.zvip-content-layout {
    padding-bottom: 20px;
}

.zvip-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 316px);
    gap: 24px;
    align-items: stretch;
    padding: 30px;
    color: var(--zvip-warm-dark);
    background: linear-gradient(105deg, #ffe2a9 0%, #fff1ce 52%, #ffd08a 100%);
    border-bottom: 1px solid var(--main-border-color);
    overflow: hidden;
}

.zvip-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(118deg, transparent 0 47%, rgba(255, 255, 255, .38) 47% 56%, transparent 56% 100%),
        linear-gradient(155deg, transparent 0 72%, rgba(255, 255, 255, .28) 72% 82%, transparent 82% 100%);
    pointer-events: none;
}

.zvip-hero-main {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.zvip-hero-head {
    max-width: 620px;
}

.zvip-hero h1 {
    margin: 0;
    color: var(--zvip-warm-dark);
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: 0;
}

.zvip-hero p {
    max-width: 620px;
    margin: 12px 0 0;
    color: rgba(122, 58, 5, .76);
    font-size: 15px;
    line-height: 1.8;
}

.zvip-hero-benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.zvip-hero-benefit-card {
    min-width: 0;
    min-height: 178px;
    padding: 14px;
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: var(--main-radius);
    box-shadow: 0 14px 30px rgba(133, 80, 0, .12);
    backdrop-filter: blur(8px);
}

.zvip-hero-benefit-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #8a4100;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.zvip-hero-benefit-title strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zvip-hero-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: #a74806;
    background: rgba(255, 255, 255, .66);
    border-radius: 50%;
}

.zvip-hero-benefit-rows {
    margin-top: 14px;
    padding: 10px;
    background: rgba(255, 255, 255, .54);
    border-radius: 8px;
}

.zvip-hero-benefit-row {
    display: grid;
    grid-template-columns: minmax(68px, auto) 1fr;
    align-items: center;
    gap: 10px;
    min-height: 24px;
    color: rgba(122, 58, 5, .52);
    font-size: 12px;
    line-height: 1.35;
}

.zvip-hero-benefit-row + .zvip-hero-benefit-row {
    margin-top: 8px;
}

.zvip-hero-benefit-row strong {
    overflow: hidden;
    color: #8a4100;
    font-weight: 700;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zvip-hero-benefit-row.level-0 strong {
    color: rgba(122, 58, 5, .56);
}

.zvip-hero-benefit-row.level-2 strong {
    color: var(--zvip-warm);
}

.zvip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid var(--main-border-color);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.zvip-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.zvip-btn-primary {
    color: #fff;
    background: var(--zvip-accent);
    border-color: var(--zvip-accent);
}

.zvip-btn-primary:hover {
    color: #fff;
}

.zvip-btn-ghost {
    color: var(--main-color);
    background: var(--main-bg-color);
}

.zvip-btn-ghost:hover {
    color: var(--zvip-accent);
    border-color: var(--zvip-accent);
}

.zvip-user-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    min-height: 248px;
    padding: 28px 24px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: var(--main-radius);
    box-shadow: 0 18px 36px rgba(133, 80, 0, .14);
}

.zvip-user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    text-align: center;
}

.zvip-user-profile .zvip-user-avatar,
.zvip-user-profile .avatar {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 8px !important;
    object-fit: cover;
}

.zvip-user-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--zvip-accent);
    font-weight: 800;
}

.zvip-user-profile strong,
.zvip-user-profile span {
    display: block;
}

.zvip-user-profile strong {
    color: var(--key-color);
    font-size: 16px;
}

.zvip-user-profile span {
    margin-top: 4px;
    color: var(--muted-color);
    font-size: 13px;
    line-height: 1.5;
}

.zvip-user-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    background: var(--muted-bg-color);
    border: 1px solid var(--main-border-color);
    border-radius: 8px;
}

.zvip-user-status span {
    color: var(--muted-color);
}

.zvip-user-status strong {
    color: var(--zvip-accent);
    text-align: right;
}

.zvip-user-card .zvip-btn {
    width: 100%;
}

.zvip-section {
    padding: 30px;
}

.zvip-section + .zvip-section {
    padding-top: 10px;

}

.zvip-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.zvip-section-head h2 {
    margin: 0;
    color: var(--key-color);
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: 0;
}

.zvip-section-head p {
    margin: 0;
    color: var(--muted-color);
    font-size: 14px;
}

.zvip-plan-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: -4px 0 18px;
}

.zvip-plan-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    color: var(--main-color);
    background: var(--muted-bg-color);
    border: 1px solid var(--main-border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.zvip-plan-tab:hover,
.zvip-plan-tab.is-active {
    color: #fff;
    background: var(--zvip-accent);
    border-color: var(--zvip-accent);
}

.zvip-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.zvip-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 260px;
    padding: 22px;
    background: var(--main-bg-color);
    border: 1px solid var(--main-border-color);
    border-radius: var(--main-radius);
    box-shadow: var(--main-shadow);
    transition: transform .2s ease, border-color .2s ease;
}

.zvip-product-plan {
    cursor: pointer;
}

.zvip-plan-card:hover,
.zvip-plan-card.is-selected {
    transform: translateY(-2px);
    border-color: var(--zvip-accent);
}

.zvip-plan-card.is-highlight {
    border-color: var(--zvip-accent);
    background:
        linear-gradient(180deg, var(--zvip-accent-soft), transparent 48%),
        var(--main-bg-color);
}

.zvip-plan-card.is-tab-hidden {
    display: none;
}

.zvip-plan-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 9px;
    color: #fff;
    background: var(--zvip-accent);
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
}

.zvip-plan-level {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: calc(100% - 74px);
    margin-bottom: 12px;
    color: var(--muted-color);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.zvip-plan-level img {
    width: 1.25em;
    height: 1.25em;
    object-fit: contain;
}

.zvip-plan-card h3 {
    margin: 0 0 18px;
    padding-right: 60px;
    color: var(--key-color);
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: 0;
}

.zvip-plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: var(--zvip-accent);
}

.zvip-currency {
    font-size: 18px;
    font-weight: 700;
}

.zvip-plan-price strong {
    font-size: 36px;
    line-height: 1;
    letter-spacing: 0;
}

.zvip-plan-price del {
    color: var(--muted-2-color);
    font-size: 13px;
}

.zvip-plan-period {
    margin-top: 8px;
    color: var(--muted-color);
    font-size: 13px;
}

.zvip-plan-card p {
    margin: 16px 0 22px;
    color: var(--muted-color);
    font-size: 14px;
    line-height: 1.7;
}

.zvip-plan-card .zvip-btn {
    margin-top: auto;
}

.zvip-product-pay-form {
    width: 100%;
    margin-top: auto;
}

.zvip-plan-card .zvip-product-pay {
    width: 100%;
}

.zvip-plan-empty {
    grid-column: 1 / -1;
    color: var(--muted-color);
    text-align: center;
}

.zvip-benefit-compare-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e9ebf1;
    border-radius: 14px;
}

.zvip-benefit-compare-table {
    width: 100%;
    min-width: 668px;
    color: #09173b;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.zvip-compare-feature-col {
    width: 30%;
}

.zvip-compare-plan-col {
    width: auto;
}

.zvip-benefit-compare-table th,
.zvip-benefit-compare-table td {
    height: 52px;
    padding: 8px 14px;
    border: 0;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
    vertical-align: middle;
}

.zvip-benefit-compare-table thead th {
    color: #111b43;
    background: #f7f8fb;
    font-weight: 700;
}

.zvip-benefit-compare-table thead th:first-child {
    border-top-left-radius: 14px;
}

.zvip-benefit-compare-table thead th:last-child {
    border-top-right-radius: 14px;
}

.zvip-benefit-compare-table tbody th {
    color: #111b43;
    background: #fff;
    font-weight: 700;
}

.zvip-benefit-compare-table tbody td {
    color: #0b1740;
    background: #fff;
    font-weight: 400;
}

.zvip-benefit-compare-table tbody tr:nth-child(even) th,
.zvip-benefit-compare-table tbody tr:nth-child(even) td {
    background: #f6f7fa;
}

.zvip-benefit-compare-table tbody tr:last-child th:first-child {
    border-bottom-left-radius: 14px;
}

.zvip-benefit-compare-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 14px;
}

.zvip-compare-row-label,
.zvip-compare-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.zvip-compare-row-label {
    gap: 1px;
}

.zvip-compare-lines {
    gap: 2px;
}

.zvip-compare-lines span + span {
    font-size: 13px;
}

.zvip-compare-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: #fff;
    border-radius: 50%;
    font-size: 9px;
    line-height: 1;
}

.zvip-compare-mark.is-check {
    background: #ff6426;
}

.zvip-compare-mark.is-cross {
    background: #d1d3d8;
}

.zvip-compare-speed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.zvip-compare-speed-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 16px;
    color: #9b4b00;
    background: linear-gradient(135deg, #fff3bd 0%, #ffc341 100%);
    border-radius: 4px;
    font-size: 10px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.zvip-faq-list {
    display: grid;
    gap: 10px;
}

.zvip-faq-item {
    background: var(--main-bg-color);
    border: 1px solid var(--main-border-color);
    border-radius: var(--main-radius);
    box-shadow: var(--main-shadow);
    overflow: hidden;
}

.zvip-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 18px;
    color: var(--key-color);
    background: transparent;
    border: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
}

.zvip-faq-question i {
    color: var(--muted-color);
    transition: transform .2s ease;
}

.zvip-faq-item.is-open .zvip-faq-question i {
    transform: rotate(180deg);
}

.zvip-faq-answer {
    display: none;
    padding: 0 18px 18px;
    color: var(--muted-color);
    font-size: 14px;
    line-height: 1.8;
}

.zvip-faq-item.is-open .zvip-faq-answer {
    display: block;
}

.zvip-faq-answer p {
    margin: 0;
}

.zvip-faq-answer p + p {
    margin-top: 8px;
}

@media (max-width: 992px) {
    .zvip-hero {
        grid-template-columns: 1fr;
    }

    .zvip-hero-main {
        display: contents;
    }

    .zvip-hero-head,
    .zvip-hero-benefit-grid,
    .zvip-user-card {
        position: relative;
        z-index: 1;
    }

    .zvip-hero-head {
        order: 1;
    }

    .zvip-user-card {
        order: 2;
    }

    .zvip-hero-benefit-grid {
        order: 3;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 0;
    }

    .zvip-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zvip-benefit-compare-table {
        min-width: 668px;
    }
}

@media (max-width: 640px) {
    .zvip-hero,
    .zvip-section {
        padding: 20px;
    }

    .zvip-hero h1 {
        font-size: 28px;
    }

    .zvip-hero-head {
        display: block;
    }

    .zvip-section-head {
        display: block;
    }

    .zvip-section-head p {
        margin-top: 6px;
    }

    .zvip-plan-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 14px;
    }

    .zvip-plan-tab {
        min-width: 0;
        min-height: 34px;
        padding: 0 10px;
        font-size: 13px;
    }

    .zvip-hero-benefit-grid {
        gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zvip-plan-grid {
        gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zvip-hero-benefit-card,
    .zvip-user-card {
        min-height: 0;
    }

    .zvip-hero-benefit-card {
        padding: 12px;
    }

    .zvip-plan-card {
        min-height: 220px;
        padding: 14px;
    }

    .zvip-plan-badge {
        position: static;
        align-self: flex-start;
        max-width: 100%;
        margin-bottom: 8px;
        padding: 3px 7px;
        font-size: 11px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .zvip-plan-level {
        max-width: 100%;
        margin-bottom: 8px;
        font-size: 12px;
        line-height: 1.25;
    }

    .zvip-plan-level img {
        width: 1.12em;
        height: 1.12em;
    }

    .zvip-plan-level span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .zvip-plan-card h3 {
        padding-right: 0;
        font-size: 16px;
    }

    .zvip-plan-price strong {
        font-size: 28px;
    }

    .zvip-benefit-compare-table th,
    .zvip-benefit-compare-table td {
        height: 48px;
        padding: 7px 10px;
        font-size: 13px;
    }

    .zvip-compare-lines span + span {
        font-size: 12px;
    }

}
