/* PluginsBuy Manager — Public Plugin Page */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --brand:       #244b8e;
    --brand-dark:  #1a3a6e;
    --brand-light: #e8f0fb;
    --brand-mid:   #9cb3df;
    --accent:      #f59e0b;
    --success:     #10b981;
    --text:        #0f172a;
    --text-muted:  #64748b;
    --border:      #e2e8f0;
    --bg:          #f8fafc;
    --white:       #ffffff;
    --radius:      12px;
    --shadow-sm:   0 1px 3px rgba(36,75,142,.08);
    --shadow-md:   0 4px 16px rgba(36,75,142,.12);
    --shadow-lg:   0 12px 48px rgba(36,75,142,.18);
}

html { font-size: 16px; }

body.pbm-body {
    background: var(--bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

/* ── Container ───────────────────────────────────────────────────────────────── */
.pbm-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ──────────────────────────────────────────────────────────────────── */
.pbm-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.pbm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.pbm-logo {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand);
    text-decoration: none;
    letter-spacing: -.02em;
}
.pbm-logo:hover { color: var(--brand-dark); }
.pbm-nav { display: flex; align-items: center; gap: 24px; }
.pbm-nav a {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s;
}
.pbm-nav a:hover { color: var(--brand); }
.pbm-nav-cta {
    background: var(--brand) !important;
    color: var(--white) !important;
    padding: 7px 18px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: opacity .15s !important;
}
.pbm-nav-cta:hover { opacity: .88; }

/* ── Banner ──────────────────────────────────────────────────────────────────── */
.pbm-banner {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.pbm-banner-default {
    background: linear-gradient(135deg, #0f1f3d 0%, var(--brand) 55%, #3a6bba 100%);
}
.pbm-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.2) 0%, rgba(0,0,0,.5) 100%);
}

/* ── Masthead ─────────────────────────────────────────────────────────────────── */
.pbm-masthead-wrap {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.pbm-masthead {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 24px;
    flex-wrap: wrap;
}
.pbm-masthead-icon {
    flex-shrink: 0;
}
.pbm-masthead-icon img {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    border: 2px solid var(--border);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}
.pbm-icon-fallback {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    border: 2px solid var(--border);
}
.pbm-masthead-info { flex: 1; min-width: 200px; }
.pbm-plugin-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 6px;
    letter-spacing: -.03em;
}
.pbm-plugin-tagline {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    line-height: 1.5;
}
.pbm-plugin-author {
    font-size: .875rem;
    color: var(--text-muted);
}
.pbm-plugin-author strong { color: var(--brand); }

.pbm-masthead-cta {
    text-align: center;
    flex-shrink: 0;
}
.pbm-cta-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    justify-content: center;
    margin-bottom: 12px;
}
.pbm-cta-from { font-size: .8rem; color: var(--text-muted); }
.pbm-cta-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -.04em;
}
.pbm-cta-per { font-size: .85rem; color: var(--text-muted); }
.pbm-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand), #3a6bba);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .01em;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(36,75,142,.35);
    border: none;
    cursor: pointer;
}
.pbm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(36,75,142,.45);
    color: var(--white);
}
.pbm-btn--hero {
    padding: 13px 32px;
    font-size: 1rem;
}
.pbm-cta-version {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* ── Trust bar ────────────────────────────────────────────────────────────────── */
.pbm-trust-bar {
    background: var(--brand-light);
    border-bottom: 1px solid #c3d5ef;
    padding: 12px 0;
}
.pbm-trust-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}
.pbm-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    color: var(--brand-dark);
    font-weight: 500;
}
.pbm-trust-item svg {
    width: 14px;
    height: 14px;
    color: var(--brand);
    flex-shrink: 0;
}

/* ── Tabs ─────────────────────────────────────────────────────────────────────── */
.pbm-tabs-wrap {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 60px;
    z-index: 90;
}
.pbm-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.pbm-tabs::-webkit-scrollbar { display: none; }
.pbm-tab {
    display: inline-block;
    padding: 14px 18px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}
.pbm-tab:hover { color: var(--brand); }
.pbm-tab.is-active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* ── Main layout ─────────────────────────────────────────────────────────────── */
.pbm-main { padding: 36px 0 60px; }
.pbm-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

/* ── Content area ────────────────────────────────────────────────────────────── */
.pbm-prose {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    line-height: 1.8;
    font-size: .95rem;
    color: #374151;
}
.pbm-prose h2 { font-size: 1.25rem; font-weight: 700; color: var(--text); margin: 24px 0 12px; }
.pbm-prose h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 20px 0 10px; }
.pbm-prose p  { margin-bottom: 14px; }
.pbm-prose ul, .pbm-prose ol { margin: 12px 0 12px 24px; }
.pbm-prose li { margin-bottom: 6px; }
.pbm-prose code { background: #f1f5f9; border-radius: 4px; padding: 2px 6px; font-size: .85em; font-family: 'SFMono-Regular', Consolas, monospace; }
.pbm-prose pre { background: #1e293b; color: #e2e8f0; border-radius: 8px; padding: 16px; overflow-x: auto; margin: 16px 0; }
.pbm-prose pre code { background: none; padding: 0; color: inherit; }

/* ── Latest tag ──────────────────────────────────────────────────────────────── */
.pbm-latest-tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: #dcfce7;
    color: #15803d;
    border-radius: 20px;
    padding: 2px 8px;
    margin-left: 8px;
    vertical-align: middle;
}
.pbm-ver-date { font-size: .8rem; color: var(--text-muted); margin-bottom: 10px; }

/* ══════════════════════════════════════════════════════
   PRICING SECTION — high-conversion design
   ══════════════════════════════════════════════════════ */
.pbm-pricing-section {
    margin-top: 48px;
    scroll-margin-top: 120px;
    background: linear-gradient(180deg, #f7f9fc 0%, var(--white) 100%);
    border-radius: 20px;
    padding: 40px 32px;
    border: 1px solid var(--border);
}
.pbm-pricing-header {
    text-align: center;
    margin-bottom: 32px;
}
.pbm-pricing-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -.03em;
}
.pbm-pricing-header p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.pbm-pricing-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--success);
}
.pbm-pricing-badges span { display: flex; align-items: center; gap: 4px; }

/* Plan grid */
.pbm-plans { display: grid; gap: 20px; }
.pbm-plans--single { grid-template-columns: minmax(0, 480px); justify-content: center; }
.pbm-plans--two    { grid-template-columns: repeat(2, 1fr); }
.pbm-plans--three  { grid-template-columns: repeat(3, 1fr); }

/* Individual plan card */
.pbm-plan {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    transition: transform .2s, box-shadow .2s;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(36,75,142,.10);
}
.pbm-plan:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(36,75,142,.18);
}
/* Coloured header band on single/featured plans */
.pbm-plan__header {
    background: linear-gradient(135deg, var(--brand) 0%, #3a6bba 100%);
    padding: 24px 28px 20px;
    text-align: center;
}
.pbm-plan__name {
    font-size: .8rem;
    font-weight: 700;
    color: rgba(255,255,255,.75);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 10px;
}
.pbm-plan__price-wrap { display: flex; align-items: flex-start; justify-content: center; gap: 2px; margin-bottom: 6px; }
.pbm-plan__currency { font-size: 1.4rem; font-weight: 700; color: rgba(255,255,255,.85); padding-top: 6px; }
.pbm-plan__amount { font-size: 3.4rem; font-weight: 900; color: #fff; letter-spacing: -.06em; line-height: 1; }
.pbm-plan__period { font-size: .82rem; color: rgba(255,255,255,.65); font-weight: 500; margin-top: auto; }
.pbm-plan--featured .pbm-plan__amount { color: #fff; }

.pbm-plan__sites {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255,255,255,.8);
    background: rgba(255,255,255,.15);
    border-radius: 20px;
    padding: 4px 12px;
    margin-top: 6px;
}
.pbm-plan__sites svg { width: 13px; height: 13px; }

/* Body of card (below header band) */
.pbm-plan__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    padding: 24px 28px 20px;
}
.pbm-plan__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: var(--text);
    font-weight: 500;
}
.pbm-plan__features li svg {
    width: 16px;
    height: 16px;
    color: var(--success);
    flex-shrink: 0;
}
.pbm-plan__feat--sites { font-weight: 700; color: var(--text); }

/* CTA button wrapper */
.pbm-plan__cta-wrap {
    padding: 0 28px 28px;
}

/* CTA button */
.pbm-plan__btn {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all .2s;
    letter-spacing: .01em;
    background: linear-gradient(135deg, var(--brand) 0%, #3a6bba 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(36,75,142,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.pbm-plan__btn:hover {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(36,75,142,.45);
}
.pbm-plan__btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.pbm-plan--featured {
    border-color: var(--brand);
    box-shadow: 0 8px 32px rgba(36,75,142,.20);
    transform: translateY(-4px);
}
.pbm-plan--featured:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 48px rgba(36,75,142,.28);
}
.pbm-plan--featured .pbm-plan__btn {
    font-size: 1.05rem;
    padding: 16px;
}
.pbm-plan__btn--disabled {
    background: var(--border) !important;
    color: var(--text-muted) !important;
    box-shadow: none !important;
}

/* Badge */
.pbm-plan__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand), #3a6bba);
    color: var(--white);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(36,75,142,.4);
}

/* Plan header */
.pbm-plan__header { text-align: center; }
.pbm-plan__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 14px;
}
.pbm-plan__price-wrap { display: flex; align-items: flex-start; justify-content: center; gap: 2px; margin-bottom: 10px; }
.pbm-plan__currency { font-size: 1.4rem; font-weight: 700; color: var(--text); padding-top: 6px; }
.pbm-plan__amount { font-size: 3rem; font-weight: 800; color: var(--text); letter-spacing: -.06em; line-height: 1; }
.pbm-plan__period { font-size: .8rem; color: var(--text-muted); font-weight: 500; margin-top: auto; }
.pbm-plan--featured .pbm-plan__amount { color: var(--brand); }

.pbm-plan__sites {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg);
    border-radius: 20px;
    padding: 4px 12px;
    margin-top: 4px;
}
.pbm-plan__sites svg { width: 14px; height: 14px; }

/* Features */
.pbm-plan__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.pbm-plan__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .875rem;
    color: var(--text);
    font-weight: 500;
}
.pbm-plan__features li svg {
    width: 16px;
    height: 16px;
    color: var(--success);
    flex-shrink: 0;
}
.pbm-plan__feat--sites { font-weight: 700; color: var(--text); }

/* CTA button */
.pbm-plan__btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all .2s;
    letter-spacing: .01em;
    background: var(--brand);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(36,75,142,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.pbm-plan__btn:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(36,75,142,.4);
}
.pbm-plan__btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.pbm-plan--featured .pbm-plan__btn {
    background: linear-gradient(135deg, var(--brand), #3a6bba);
    box-shadow: 0 4px 16px rgba(36,75,142,.45);
    font-size: 1rem;
    padding: 15px;
}
.pbm-plan__btn--disabled {
    background: var(--border) !important;
    color: var(--text-muted) !important;
    box-shadow: none !important;
}
.pbm-plan__btn--loading {
    pointer-events: none;
    opacity: .85;
}
.pbm-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pbm-spin .7s linear infinite;
}
@keyframes pbm-spin { to { transform: rotate(360deg); } }

/* Secure badge under button */
.pbm-plan__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: -8px;
}
.pbm-plan__secure svg { width: 12px; height: 12px; }

/* Guarantee grid footer */
.pbm-pricing-footer {
    margin-top: 28px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}
.pbm-pricing-guarantees {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 680px) {
    .pbm-pricing-guarantees { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
    .pbm-pricing-guarantees { grid-template-columns: 1fr; }
}
.pbm-pricing-guarantee {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
    padding: 16px 12px;
    background: #f7f9fc;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.pbm-pricing-guarantee svg {
    color: var(--brand);
    margin-bottom: 2px;
}
.pbm-pricing-guarantee strong {
    font-size: .82rem;
    font-weight: 700;
    color: var(--text);
}
.pbm-pricing-guarantee span,
.pbm-pricing-guarantee a {
    font-size: .76rem;
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.4;
}
.pbm-pricing-guarantee a { color: var(--brand); font-weight: 600; }
.pbm-pricing-guarantee a:hover { text-decoration: underline; }

/* ── Screenshots ─────────────────────────────────────────────────────────────── */
.pbm-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.pbm-screenshot figure { margin: 0; }
.pbm-screenshot img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: transform .2s;
    cursor: zoom-in;
}
.pbm-screenshot img:hover { transform: scale(1.02); }
.pbm-screenshot figcaption {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────────── */
.pbm-sidebar { display: flex; flex-direction: column; gap: 16px; }

.pbm-widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.pbm-widget h3 {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* Sidebar CTA widget */
.pbm-widget--cta {
    border-color: var(--brand);
    background: linear-gradient(160deg, var(--brand-light), var(--white));
    box-shadow: 0 0 0 1px rgba(36,75,142,.15), var(--shadow-sm);
}
.pbm-sidebar-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 14px;
}
.pbm-sidebar-from { font-size: .75rem; color: var(--text-muted); }
.pbm-sidebar-amount { font-size: 1.75rem; font-weight: 800; color: var(--brand); }
.pbm-sidebar-period { font-size: .8rem; color: var(--text-muted); }
.pbm-sidebar-buy-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, var(--brand), #3a6bba);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 700;
    font-size: .9rem;
    transition: opacity .15s, transform .15s;
    box-shadow: 0 4px 12px rgba(36,75,142,.3);
    margin-bottom: 14px;
}
.pbm-sidebar-buy-btn:hover { opacity: .9; transform: translateY(-1px); color: var(--white); }
.pbm-sidebar-perks {
    list-style: none;
    font-size: .8rem;
    color: #374151;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.pbm-sidebar-perks li { font-weight: 500; }

/* Plugin meta */
.pbm-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .82rem; }
.pbm-meta dt { color: var(--text-muted); font-weight: 500; }
.pbm-meta dd { color: var(--text); font-weight: 600; }

/* Tags */
.pbm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pbm-tag {
    background: var(--brand-light);
    color: var(--brand);
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 10px;
}

/* Links widget */
.pbm-widget--links { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.pbm-link-btn {
    display: block;
    text-align: center;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all .15s;
}
.pbm-link-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.pbm-footer {
    background: #0f1f3d;
    color: rgba(255,255,255,.6);
    padding: 28px 0;
    font-size: .85rem;
}
.pbm-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.pbm-footer-nav { display: flex; gap: 20px; }
.pbm-footer-nav a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .15s; }
.pbm-footer-nav a:hover { color: var(--white); }

/* ── Plugin listing [pbm_plugin_listing] ────────────────────────────────────── */
.pbm-listing-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 0 48px; }
.pbm-listing-search { margin-bottom: 28px; }
.pbm-listing-searchbar {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1.5px solid #e5e7eb; border-radius: 10px;
    padding: 10px 16px; margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.pbm-listing-searchbar svg { color: #9ca3af; flex-shrink: 0; }
.pbm-listing-searchbar input {
    flex: 1; border: none; outline: none; font-size: .95rem;
    background: transparent; color: #1a1a1a;
}
.pbm-listing-searchbar button {
    background: var(--brand); color: #fff; border: none; cursor: pointer;
    padding: 7px 18px; border-radius: 7px; font-size: .88rem; font-weight: 600;
}
.pbm-listing-clear { font-size: .85rem; color: #6b7280; text-decoration: none; white-space: nowrap; }
.pbm-listing-clear:hover { color: #374151; }
.pbm-listing-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pbm-tag-filter {
    padding: 4px 14px; border-radius: 20px; font-size: .8rem; font-weight: 500;
    border: 1.5px solid #e5e7eb; color: #374151; text-decoration: none;
    transition: all .15s;
}
.pbm-tag-filter:hover, .pbm-tag-filter.is-active {
    background: var(--brand); border-color: var(--brand); color: #fff;
}
.pbm-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.pbm-listing-card {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    background: #fff; border: 1.5px solid #e5e7eb; border-radius: 12px;
    overflow: hidden; transition: box-shadow .2s, border-color .2s;
}
.pbm-listing-card:hover { box-shadow: 0 6px 24px rgba(36,75,142,.14); border-color: var(--brand); }
.pbm-listing-card__icon {
    width: 100%; height: 80px; background: #f8f9fc;
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.pbm-listing-card__icon img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; }
.pbm-listing-card__icon-fallback { font-size: 2.2rem; }
.pbm-listing-card__body { padding: 16px 18px; flex: 1; }
.pbm-listing-card__name { font-size: 1rem; font-weight: 700; margin: 0 0 6px; color: #1a1a1a; }
.pbm-listing-card__desc { font-size: .84rem; color: #6b7280; margin: 0 0 10px; line-height: 1.5; }
.pbm-listing-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pbm-listing-card__footer {
    padding: 12px 18px; border-top: 1px solid #f3f4f6;
    display: flex; justify-content: space-between; align-items: center;
}
.pbm-listing-card__price { font-size: .9rem; font-weight: 700; color: #1a1a1a; }
.pbm-listing-card__price--free { color: #16a34a; }
.pbm-listing-card__cta { font-size: .82rem; font-weight: 600; color: #2563eb; }
.pbm-listing-count { text-align: center; color: #9ca3af; font-size: .82rem; margin-top: 24px; }
.pbm-listing-empty { text-align: center; padding: 48px 0; color: #9ca3af; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .pbm-layout { grid-template-columns: 1fr; }
    .pbm-sidebar { order: -1; }
    .pbm-widget--cta { display: none; }
    .pbm-plans--three { grid-template-columns: 1fr; }
    .pbm-plans--two   { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .pbm-masthead { flex-direction: column; text-align: center; }
    .pbm-plugin-name { font-size: 1.35rem; }
    .pbm-plans--two, .pbm-plans--three { grid-template-columns: 1fr; }
    .pbm-pricing-header h2 { font-size: 1.4rem; }
    .pbm-container { padding: 0 16px; }
    .pbm-trust-inner { gap: 16px; }
    .pbm-footer-inner { flex-direction: column; text-align: center; }
}
