.membership-wrap {
    padding-bottom: 60px;
}

.membership-badge {
    display: inline-block;
    background: #1e3a5f;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    margin: 0 0 1.25rem;
}

.membership-table {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.membership-col {
    display: flex;
    flex-direction: column;
    padding: 1.35rem 1.1rem 1.4rem;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    min-height: 100%;
}

.membership-col:last-child {
    border-right: none;
}

.plan-head {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.plan-name {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.plan-tier {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-top: 0.35rem;
    opacity: 0.85;
}

.plan-price {
    margin-top: 0.85rem;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.15;
}

.plan-price span {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.8;
}

.plan-note {
    font-size: 0.78rem;
    margin-top: 0.2rem;
    opacity: 0.7;
}

.plan-features {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.88rem;
    line-height: 1.35;
    padding: 0.42rem 0;
    color: #334155;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.06);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features .ok {
    color: #16a34a;
    margin-top: 0.15rem;
}

.plan-features .no {
    color: #dc2626;
    margin-top: 0.15rem;
}

.plan-features .stars {
    color: #f59e0b;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.plan-features .muted {
    color: #64748b;
    font-size: 0.8rem;
}

.plan-cta {
    display: block;
    text-align: center;
    margin-top: 1.1rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.plan-cta:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: #fff;
}

.membership-col.platinum .plan-name,
.membership-col.platinum .plan-tier,
.membership-col.platinum .plan-price {
    color: #6d28d9;
}

.membership-col.platinum .plan-cta {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.membership-col.gold .plan-name,
.membership-col.gold .plan-tier,
.membership-col.gold .plan-price {
    color: #b45309;
}

.membership-col.gold .plan-cta {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.membership-col.silver .plan-name,
.membership-col.silver .plan-tier,
.membership-col.silver .plan-price {
    color: #475569;
}

.membership-col.silver .plan-cta {
    background: linear-gradient(135deg, #64748b, #475569);
}

.membership-col.bronze .plan-name,
.membership-col.bronze .plan-tier,
.membership-col.bronze .plan-price {
    color: #9a3412;
}

.membership-col.bronze .plan-cta {
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

.membership-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.membership-footer-actions .btn {
    display: inline-block;
    padding: 0.7rem 1.15rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.membership-footer-actions .btn.solid {
    background: #0d6efd;
    color: #fff;
}

.membership-footer-actions .btn.ghost {
    border: 1px solid #0d6efd;
    color: #0d6efd;
    background: transparent;
}

@media (max-width: 992px) {
    .membership-table {
        grid-template-columns: repeat(2, 1fr);
    }

    .membership-col:nth-child(2) {
        border-right: none;
    }

    .membership-col:nth-child(1),
    .membership-col:nth-child(2) {
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }
}

@media (max-width: 576px) {
    .membership-table {
        grid-template-columns: 1fr;
    }

    .membership-col {
        border-right: none;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .membership-col:last-child {
        border-bottom: none;
    }
}

.membership-matrix-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.membership-matrix {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.membership-matrix th,
.membership-matrix td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    text-align: center;
    vertical-align: middle;
}

.membership-matrix thead th {
    background: #f8fafc;
    font-size: 0.82rem;
}

.membership-matrix tbody th {
    text-align: left;
    font-weight: 600;
    color: #1e2a44;
    width: 34%;
}

.membership-matrix .matrix-plan {
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #1e3a5f;
}

.membership-matrix .matrix-price {
    margin-top: 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0a6b4a;
}

.membership-matrix .matrix-price span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
}

.membership-matrix .ok {
    color: #15803d;
    font-size: 1.05rem;
}

.membership-matrix .no {
    color: #cbd5e1;
    font-size: 1.05rem;
}

.membership-matrix tfoot td {
    border-bottom: 0;
    padding-top: 1rem;
    padding-bottom: 1.15rem;
}

.membership-matrix .plan-cta {
    display: inline-block;
    background: linear-gradient(135deg, #0a6b4a, #08553b);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
}

.membership-note {
    margin-top: 1.25rem;
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 920px;
}
