.pjs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.pjs-card {
    position: relative;
    min-width: 0;
    min-height: 390px;
    padding: 30px;
    border-radius: 24px;
    overflow: hidden;
    color: #fff;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 20px 50px rgba(0,0,0,.20);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.pjs-card:hover {
    transform: translateY(-4px);
    border-color: rgba(80,140,255,.35);
    box-shadow: 0 24px 55px rgba(0,0,0,.28);
}

.pjs-view {
    min-height: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pjs-front {
    display: flex;
}

.pjs-selection {
    display: none;
}

.pjs-card.is-open .pjs-front {
    display: none;
}

.pjs-card.is-open .pjs-selection {
    display: flex;
}

.pjs-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg,#1677ff,#7047ff);
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(40,100,255,.25);
}

.pjs-icon i,
.pjs-icon svg {
    width: 24px;
    height: 24px;
    font-size: 24px;
    fill: currentColor;
}

.pjs-title {
    margin: 0 0 9px;
    color: #fff;
    font-size: 23px;
    line-height: 1.2;
    font-weight: 700;
}

.pjs-description {
    margin: 0;
    color: #929db2;
    font-size: 14px;
    line-height: 1.6;
}

.pjs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}

.pjs-tag {
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(255,255,255,.055);
    color: #b9c4d7;
    font-size: 12px;
    line-height: 1.2;
}

.pjs-button {
    width: 100%;
    min-height: 52px;
    margin-top: auto;
    padding: 13px 18px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(90deg,#1677ff,#7047ff);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.pjs-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(40,100,255,.25);
}

.pjs-back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    margin: 0 0 25px;
    border: 0;
    background: transparent;
    color: #aeb9cc;
    font-size: 13px;
    cursor: pointer;
}

.pjs-back:hover {
    color: #fff;
}

.pjs-back-arrow {
    color: #fff;
    font-size: 20px;
    line-height: 1;
}

.pjs-select {
    width: 100%;
    height: 54px;
    margin-top: 22px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 13px;
    outline: none;
    background: #111a30;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.pjs-select:focus {
    border-color: #287cff;
    box-shadow: 0 0 0 3px rgba(40,124,255,.12);
}

.pjs-select option {
    background: #111a30;
    color: #fff;
}

.pjs-info-row {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
    margin-top: 18px;
    margin-bottom: 16px;
}

.pjs-info {
    padding: 12px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    background: rgba(255,255,255,.045);
}

.pjs-info strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 13px;
}

.pjs-info span {
    color: #8490a5;
    font-size: 11px;
}

.pjs-error {
    display: none;
    margin: 0 0 12px;
    color: #ff6b6b;
    font-size: 12px;
}

.pjs-error.is-visible {
    display: block;
}

@media (max-width: 900px) {
    .pjs-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 600px) {
    .pjs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pjs-card {
        min-height: 350px;
        padding: 24px;
        border-radius: 20px;
    }

    .pjs-title {
        font-size: 21px;
    }
}
