.vapma-membership-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.vapma-membership-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.vapma-membership-column > .vapma-md-row {
    display: block;
    margin-bottom: 0;
}

.vapma-membership-status-shell {
    padding: 12px;
    border: 1px solid rgba(207,46,46,0.35);
    border-radius: 14px;
    background:
        radial-gradient(circle at top right, rgba(207,46,46,0.18), transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.52) 100%);
    box-shadow:
        0 12px 28px rgba(0,0,0,0.28),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.vapma-membership-status-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.vapma-membership-status-title {
    min-width: 0;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 700;
}

.vapma-membership-status-price {
    display: block;
    margin-top: 4px;
    color: #9a9a9a;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
}

.vapma-membership-status-badge {
    flex: 0 0 auto;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 999px;
    background:
        linear-gradient(
            180deg,
            #d6d6d6 0%,
            #b7b7b7 18%,
            #9d9d9d 48%,
            #8a8a8a 100%
        );
    color: #141414;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 0 rgba(255,255,255,0.12);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.14),
        0 2px 6px rgba(0,0,0,0.20);
}

.vapma-membership-chip-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.vapma-membership-chip {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    background: rgba(0,0,0,0.32);
}

.vapma-membership-chip-label {
    display: block;
    margin-bottom: 5px;
    color: #8f8f8f;
    font-size: 10px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.vapma-membership-chip-value {
    display: block;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;
}

.vapma-membership-action-row {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.vapma-membership-action-row .button {
    min-width: 180px;
    min-height: 38px;
    border-radius: 12px;
    border-color: rgba(207,46,46,0.24);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(0,0,0,0.42) 100%),
        #111111;
    box-shadow:
        0 10px 24px rgba(0,0,0,0.24),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.vapma-membership-action-row .button:hover {
    border-color: #cf2e2e;
    transform: translateY(-1px);
}

.vapma-membership-layout .vapma-md-box > h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vapma-membership-layout .vapma-md-box > h3::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(207,46,46,0.28);
    border-radius: 999px;
    background: rgba(207,46,46,0.10);
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
}

.vapma-membership-column:first-child .vapma-md-row:first-child .vapma-md-box > h3::before {
    content: '◆';
}

.vapma-membership-column:first-child .vapma-md-row:nth-child(2) .vapma-md-box > h3::before {
    content: '▦';
}

.vapma-membership-column:nth-child(2) .vapma-md-box > h3::before {
    content: '◉';
}

@media (max-width: 900px) {
    .vapma-membership-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    .vapma-creator-subscription-grid {
        grid-template-columns: 1fr;
    }

    .vapma-membership-layout {
        gap: 10px;
    }

    .vapma-membership-column {
        gap: 10px;
    }

    .vapma-membership-chip-row {
        grid-template-columns: 1fr;
    }

    .vapma-membership-status-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .vapma-membership-action-row .button {
        width: 100%;
        min-width: 0;
    }
}

.vapma-plan-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.vapma-plan-item {
    background: #111;
    border: 1px solid #242424;
    padding: 14px;
    border-radius: 10px;
}

.vapma-plan-item.active:not(.vapma-plan-item-creator-subscription) {
    border: 1px solid #cf2e2e;
    background: #111;
    box-shadow: none;
}

.vapma-plan-item.active:not(.vapma-plan-item-creator-subscription) .vapma-plan-action {
    display: none;
}

.vapma-plan-title {
    font-weight: 700;
    color: #fff;
    font-size: 14px;
}

.vapma-plan-price {
    color: #9f9f9f;
    font-size: 12px;
    margin-top: 2px;
}

.vapma-plan-action {
    margin-top: 8px;
    opacity: 0.95;
}

.vapma-plan-item-creator-subscription.active .vapma-plan-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.vapma-status-active {
    color: #cccccc;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.vapma-status-warning {
    color: #c9973d;
    font-size: 12px;
    font-weight: 600;
}

.vapma-creator-subscription-ending {
    margin-bottom: 10px;
    color: #c9973d;
    font-size: 12px;
    line-height: 1.4;
}

.vapma-creator-subscription-ending strong {
    color: #ffffff;
    font-weight: 700;
}

.vapma-status-danger {
    color: #cf2e2e;
}

.vapma-plan-item-creator-subscription {
    position: relative;
    display: grid;
    grid-template-columns: 78px 1fr;
    grid-template-areas:
        "avatar title"
        "avatar price"
        "avatar status";
    align-items: center;
    gap: 6px 14px;
    min-height: 132px;
    padding: 16px 16px 15px;
    background:
        radial-gradient(circle at top right, rgba(207, 46, 46, 0.18), transparent 32%),
        linear-gradient(180deg, #171717 0%, #101010 100%);
    border: 3px solid #3a3a3a;
    border-radius: 18px;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.vapma-plan-item-creator-subscription:hover {
    transform: translateY(-4px);
    border-color: #6a6a6a;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.vapma-plan-item-creator-subscription::before {
    content: "";
    position: absolute;
    inset: -120% auto -120% -40%;
    width: 55%;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.055) 45%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.055) 55%, transparent 100%);
    transform: translateX(-140%) rotate(12deg);
    pointer-events: none;
    opacity: 0;
}

.vapma-plan-item-creator-subscription:hover::before {
    opacity: 1;
    transform: translateX(300%) rotate(12deg);
    transition: transform 0.8s ease, opacity 0.2s ease;
}

.vapma-plan-item-creator-subscription .vapma-creator-cover {
    display: none;
}

.vapma-plan-item-creator-subscription .vapma-creator-avatar {
    grid-area: avatar;
    width: 68px;
    height: 68px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(207, 46, 46, 0.38);
    background: #111;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    align-self: center;
}

.vapma-plan-item-creator-subscription .vapma-creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vapma-plan-item-creator-subscription .vapma-plan-title {
    grid-area: title;
    margin: 0;
    padding: 0;
    font-size: 20px;
    line-height: 1.05;
    font-weight: 700;
}

.vapma-plan-item-creator-subscription .vapma-plan-price {
    grid-area: price;
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: #f5f5f5;
}

.vapma-plan-item-creator-subscription .vapma-tier-badge {
    display: inline-block;
    margin: 0 0 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(207, 46, 46, 0.45);
    background: rgba(207, 46, 46, 0.12);
    color: #ffb3b3;
}

.vapma-plan-item-creator-subscription .vapma-tier-price {
    margin-top: 3px;
    font-size: 17px;
    line-height: 1.05;
    font-weight: 700;
    color: #f3f3f3;
}

.vapma-plan-item-creator-subscription .vapma-plan-action {
    grid-area: status;
    margin-top: 4px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.2;
}

.vapma-plan-item-creator-subscription .vapma-status-warning {
    display: inline-block;
    margin-top: 2px;
}

.vapma-plan-item-creator-subscription .vapma-creator-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 7px 12px;
    min-height: 32px;
    border: 1px solid #343434;
    border-radius: 9px;
    background: #1b1b1b;
    color: #f1f1f1;
    font-size: 12px;
    line-height: 1.1;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.vapma-plan-item-creator-subscription .vapma-creator-card-button:hover {
    background: #262626;
    border-color: #cf2e2e;
    color: #ffffff;
}

.vapma-plan-item-creator-subscription .vapma-creator-card-form {
    margin: 0;
}

.vapma-creator-subscription-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.vapma-creator-subscription-grid .vapma-plan-item-creator-subscription {
    min-height: 0;
    border-color: rgba(207,46,46,0.30);
}

.vapma-creator-subscription-grid .vapma-plan-item-creator-subscription.active {
    box-shadow:
        0 14px 34px rgba(0,0,0,0.42),
        0 0 24px rgba(207,46,46,0.08),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.vapma-creator-subscription-grid .vapma-plan-item-creator-subscription.active::after {
    content: 'Current';
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border: 1px solid rgba(184,199,214,0.22);
    border-radius: 999px;
    background:
        linear-gradient(
            180deg,
            #d2d2d2 0%,
            #b4b4b4 45%,
            #8d8d8d 100%
        );
    color: #111111;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(255,255,255,0.12);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 2px 6px rgba(0,0,0,0.20);
}

@media (max-width: 980px) {
    .vapma-creator-subscription-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    .vapma-creator-subscription-grid {
        grid-template-columns: 1fr;
    }
}