/* Wrapper */
.pbms-wrapper {
    max-width: 980px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Title */
.pbms-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #6b63ff;
    letter-spacing: -0.5px;
}

/* Subtitle */
.pbms-subtitle {
    text-align: center;
    color: #777;
    margin: 6px 0 22px;
    font-size: 15px;
}

/* Search Box */
.pbms-search {
    width: 100%;
    padding: 14px 20px;
    border-radius: 40px;
    border: 1px solid #e2e2e2;
    font-size: 15px;
    margin-bottom: 24px;
    outline: none;
    transition: all .2s ease;
}

.pbms-search:focus {
    border-color: #6b63ff;
    box-shadow: 0 0 0 4px rgba(107,99,255,0.12);
}

/* Series Card */
.pbms-series {
    background: #ffffff;
    border-radius: 18px;
    margin-bottom: 16px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow .3s ease;
}

.pbms-series:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.09);
}

/* Series Header */
.pbms-series-header {
    padding: 20px 22px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

/* Arrow */
.pbms-arrow {
    font-size: 14px;
    transition: transform .3s ease;
}

.pbms-series.open .pbms-arrow {
    transform: rotate(180deg);
}

/* Models Container */
.pbms-models {
    display: none;
    padding: 10px 20px 22px;
}

/* Model Buttons */
.pbms-model-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    margin: 8px 8px 0 0;
    border-radius: 999px;
    background: #f4f4ff;
    border: 1px solid #d8d5ff;
    color: #5a52ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all .25s ease;
}

/* Hover */
.pbms-model-btn:hover {
    background: #5a52ff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(90,82,255,0.3);
}

/* Active Model */
.pbms-model-btn.active {
    background: linear-gradient(135deg,#5a52ff,#7b74ff);
    color: #fff;
    border: none;
    box-shadow: 0 8px 20px rgba(90,82,255,0.35);
}

/* Mobile Optimization */
@media (max-width: 600px) {
    .pbms-title {
        font-size: 28px;
    }

    .pbms-model-btn {
        width: 100%;
        margin-right: 0;
        justify-content: center;
    }
}
