/* plugin.css — каталог плагинов и страница плагина */
.pl, .pg { max-width: 1180px; margin: 0 auto; padding: 28px 24px 90px; }

/* ---------- каталог ---------- */
.pl-head { margin-bottom: 22px; }
.pl-kicker { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em; padding: 6px 12px;
  border-radius: 999px; color: #c7d2fe; background: rgba(124, 92, 255, .14); border: 1px solid rgba(124, 92, 255, .26); }
.pl-head h1 { margin: 14px 0 10px; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.8px; }
.pl-head h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pl-head p { color: var(--muted); max-width: 620px; font-size: 14px; line-height: 1.6; }
.pl-counts { display: flex; gap: 10px; margin-top: 14px; }
.pl-counts span { font-size: 12px; color: var(--muted); padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }

.pl-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px;
  padding: 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.pl-search { position: relative; flex: 1 1 280px; }
.pl-search input { width: 100%; padding: 10px 36px 10px 14px; border-radius: 12px; font-size: 13.5px; color: var(--text);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); }
.pl-search span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); opacity: .5; font-size: 13px; }
.pl-cats { display: flex; flex-wrap: wrap; gap: 7px; }
.pl-cat { padding: 8px 13px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #93a4bd;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); cursor: pointer; }
.pl-cat:hover { color: #e2e8f0; }
.pl-cat.on { color: #fff; background: rgba(99, 102, 241, .22); border-color: rgba(99, 102, 241, .5); }
.pl-sel select { padding: 10px 14px; border-radius: 12px; font-size: 13px; color: var(--text);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); cursor: pointer; }

.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 16px; align-items: start; }
.pl-card { position: relative; display: block; padding: 22px; border-radius: 18px; background: var(--panel-2);
  border: 1px solid var(--line); transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease; }
.pl-card:hover { transform: translateY(-3px); border-color: rgba(99, 102, 241, .6); box-shadow: 0 18px 40px -22px rgba(99, 102, 241, .6); }
.pl-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 18px;
  background: rgba(99, 102, 241, .16); margin-bottom: 14px; }
.pl-card b { display: block; margin-bottom: 7px; font-size: 15px; }
.pl-card p { color: var(--muted); font-size: 13px; line-height: 1.5; min-height: 58px; }
.pl-tier { position: absolute; top: 20px; right: 18px; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px; border: 1px solid; }
.t-legendary { color: #c4b5fd; background: rgba(139, 92, 246, .14); border-color: rgba(139, 92, 246, .4); }
.t-ultimate { color: #fcd34d; background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .36); }
.t-advanced { color: #7dd3fc; background: rgba(56, 189, 248, .12); border-color: rgba(56, 189, 248, .34); }
.t-базовый { color: #86efac; background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .32); }
.pl-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .06); }
.pl-state { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pl-state.ready { color: #86efac; background: rgba(34, 197, 94, .12); }
.pl-state.soon { color: #cbd5e1; background: rgba(148, 163, 184, .14); }
.pl-price, .pl-plan { font-size: 12.5px; color: var(--muted); }
.pl-empty { margin-top: 30px; text-align: center; color: var(--muted); }

/* карточка каталога + кнопка покупки под ней */
.pl-item { display: grid; gap: 10px; align-content: start; }
.pl-buy { width: 100%; text-align: center; }

/* сообщение о покупке */
.buy-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 60; max-width: 520px;
  padding: 13px 20px; border-radius: 13px; font-size: 13.5px; line-height: 1.5; color: #e8eaf2;
  background: rgba(16, 18, 24, .97); border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9); }
.buy-toast.ok { border-color: rgba(34, 197, 94, .5); }
.buy-toast.warn { border-color: rgba(245, 158, 11, .5); }
.buy-toast a { color: #93c5fd; }

/* ---------- страница плагина ---------- */
.pg-back { display: inline-block; margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.pg-back:hover { color: var(--text); }
.pg-top { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between;
  padding: 28px; border-radius: 22px; background: linear-gradient(135deg, rgba(124, 92, 255, .1), transparent 60%), var(--panel);
  border: 1px solid var(--line); }
.pg-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pg-tags .pl-tier { position: static; }
.pg-tag { font-size: 11px; font-weight: 700; color: #cbd5e1; padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.pg-top h1 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.6px; margin-bottom: 10px; }
.pg-short { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 640px; }
.pg-uid { margin-top: 14px; font-size: 12px; color: #64748b; }
.pg-uid code { padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .05); }
.pg-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; font-size: 28px; flex: none;
  background: linear-gradient(135deg, var(--indigo), var(--sky)); }

.pg-note { margin-top: 26px; }
.pg-note h2, .pg-sec h2, .pg-more h2 { font-size: 18px; margin-bottom: 14px; }
.pg-note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pg-note-grid article { padding: 18px 20px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); }
.pg-note-grid b { display: block; margin-bottom: 7px; font-size: 14px; }
.pg-note-grid p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.pg-note-grid code { padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .06); font-size: .92em; }

.pg-sec { margin-top: 34px; }
.pg-about { color: var(--muted); font-size: 14.5px; line-height: 1.7; max-width: 820px; }
.pg-feats { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.pg-feats li { position: relative; padding: 13px 16px 13px 38px; border-radius: 13px; font-size: 13.5px; line-height: 1.5;
  color: #dbe2f0; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07); }
.pg-feats li::before { content: "✓"; position: absolute; left: 15px; color: #34d399; font-weight: 800; }
.pg-how { list-style: none; counter-reset: s; display: grid; gap: 10px; max-width: 820px; }
.pg-how li { position: relative; padding: 14px 16px 14px 46px; border-radius: 13px; font-size: 13.5px; line-height: 1.5;
  color: #dbe2f0; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07); counter-increment: s; }
.pg-how li::before { content: counter(s); position: absolute; left: 15px; top: 14px; width: 20px; height: 20px;
  border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #0b1020;
  background: linear-gradient(135deg, #60a5fa, #22d3ee); }
.pg-table { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); max-width: 820px; }
.pg-row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 13px 18px; font-size: 13.5px;
  background: var(--panel-2); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.pg-row:last-child { border-bottom: 0; }
.pg-row span { color: var(--muted); }
.pg-faq { display: grid; gap: 9px; max-width: 820px; }
.pg-faq details { padding: 14px 18px; border-radius: 13px; background: var(--panel-2); border: 1px solid var(--line); }
.pg-faq summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.pg-faq p { margin-top: 9px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.pg-cta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  margin-top: 36px; padding: 26px 28px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(124, 92, 255, .12), transparent 60%), var(--panel); border: 1px solid var(--line); }
.pg-cta b { font-size: 20px; }
.pg-cta p { color: var(--muted); font-size: 13px; margin-top: 6px; max-width: 520px; }
.pg-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pg-cta .btn.is-off { opacity: .55; cursor: not-allowed; }
.pg-more { margin-top: 44px; }

@media (max-width: 760px) {
  .pg-top { flex-direction: column-reverse; align-items: flex-start; }
  .pg-row { grid-template-columns: 1fr; gap: 4px; }
}
