.ptest-box { max-width: 860px; margin: 28px 0 0; padding: 32px 36px; border-radius: 32px; background: var(--lp-card); border: 1px solid var(--lp-accent-b); box-shadow: 0 0 60px rgba(168,85,247,.16); }
.ptest-link { display: inline-block; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--lp-accent2); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ptest-link:hover { color: #fff; }

.ptest-pros { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--lp-border); }
.ptest-pros-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ptest-pros-label { color: var(--lp-muted2); font-size: 14px; }
.ptest-filter { width: 180px; height: 36px; padding: 0 14px; border-radius: 36px; border: 1px solid var(--lp-border); background: var(--lp-bg2); color: #fff; font-size: 14px; }
.ptest-filter:focus { outline: none; border-color: var(--lp-accent); }
.ptest-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ptest-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 40px; border: 1px solid var(--lp-border); background: var(--lp-bg2); color: var(--lp-text); font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.ptest-chip img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.ptest-chip:hover { border-color: var(--lp-accent-b); }
.ptest-chip.is-on { border-color: var(--lp-accent); background: var(--lp-accent-d); color: #fff; }
.ptest-chip[hidden] { display: none; }
.ptest-credit { min-height: 16px; margin: 8px 0 0; color: var(--lp-muted); font-size: 11px; }
.ptest-empty { margin: 0; color: var(--lp-muted2); }

.ptest-result, .ptest-nofaceit { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--lp-border); }
.ptest-res-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ptest-res-nick { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.ptest-res-step { margin-top: 4px; color: var(--lp-muted2); font-size: 14px; }
.ptest-res-step strong { color: var(--lp-accent2); }
.ptest-res-close { text-align: right; flex-shrink: 0; }
.ptest-res-close[hidden] { display: none; }
.ptest-res-close-num { font-family: 'Dela Gothic One', sans-serif; font-size: 44px; line-height: 1; color: var(--lp-green-text); }
.ptest-res-close-label { margin-top: 6px; color: var(--lp-muted2); font-size: 13px; }
.ptest-res-strong { margin: 14px 0 0; color: var(--lp-text); font-size: 15px; }

.ptest-bars { display: grid; gap: 12px; margin-top: 18px; }
.ptest-bar-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 14px; color: var(--lp-muted2); }
.ptest-bar-vals { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptest-bar-track { height: 10px; border-radius: 10px; background: rgba(255,255,255,.08); overflow: hidden; }
.ptest-bar-fill { height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--lp-btn-bg), var(--lp-accent)); }
.ptest-bar.is-best .ptest-bar-fill { background: linear-gradient(90deg, #15803d, var(--lp-green)); }
.ptest-res-few { margin: 12px 0 0; color: var(--lp-muted2); font-size: 14px; }
.ptest-res-rank { margin-top: 14px; color: var(--lp-muted2); font-size: 15px; }
.ptest-res-rank strong { color: #fff; }
.ptest-notes { margin: 12px 0 0; color: var(--lp-muted); font-size: 12px; }

.ptest-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.ptest-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.ptest-lead { margin-top: 22px; padding: 22px; border-radius: 22px; background: var(--lp-bg2); border: 1px solid var(--lp-border); }
.ptest-lead-title { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 700; color: #fff; }
.ptest-lead-desc { margin: 6px 0 14px; color: var(--lp-muted2); font-size: 15px; }
.ptest-lead-btns { display: flex; flex-wrap: wrap; gap: 10px; }

.ptest-copied { min-height: 18px; margin: 8px 0 0; color: var(--lp-green-text); font-size: 13px; }
.ptest-share-img { display: block; height: min(58vh, 560px); width: auto; max-width: 100%; aspect-ratio: 1080 / 1920; margin: 0 auto; border-radius: 16px; background: var(--lp-bg2); object-fit: contain; }
.ptest-share-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ptest-share-btns .btn { gap: 8px; min-height: 48px; }
#ptShareModal .modal-dialog,
#prCardModal .modal-dialog { max-width: 420px; }
.ptest-modal-lead { margin: 14px 0 0; color: var(--lp-muted2); font-size: 15px; text-align: center; }
#ptShareModal .ptest-copied { margin-bottom: 0; text-align: center; }

.ptest-pair { display: grid; grid-template-columns: minmax(0, 320px); gap: 16px; margin-top: 22px; }
.ptest-pair.is-two { grid-template-columns: repeat(2, minmax(0, 280px)); }
.ptest-card { margin: 0; }
.ptest-card[hidden] { display: none; }
.ptest-card figcaption { margin-bottom: 8px; color: var(--lp-muted2); font-size: 14px; font-weight: 600; }
.ptest-card img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--lp-border); background: var(--lp-bg2); }

.ptest-premier { margin-top: 20px; }
.ptest-premier-label { display: block; margin-bottom: 8px; color: var(--lp-muted2); font-size: 14px; }
.ptest-premier-res { margin: 12px 0 0; font-size: 18px; font-weight: 700; color: var(--lp-green-text); }
.ptest-disclaimer { margin: 22px 0 0; color: var(--lp-muted); font-size: 12px; }

.ptest-entries { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ptest-par-mode { margin: 12px 0 4px; color: var(--lp-text); font-size: 15px; }
.ptest-par-mode[hidden] { display: none; }
.ptest-par-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0; }
.ptest-par-stats > div { padding: 14px 16px; border-radius: 18px; background: var(--lp-bg2); border: 1px solid var(--lp-border); }
.ptest-par-stats dt { color: var(--lp-muted2); font-size: 13px; font-weight: 500; }
.ptest-par-stats dd { margin: 4px 0 0; font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.ptest-par-stats .ptest-par-nick { overflow-wrap: anywhere; }
.ptest-par-pro { margin: 6px 0 0; color: var(--lp-muted2); font-size: 13px; }
.ptest-par-step { margin-top: 18px; }
.ptest-par-step-name { font-size: 17px; color: var(--lp-muted2); }
.ptest-par-step-name strong { color: var(--lp-accent2); }
.ptest-par-step p { margin: 8px 0 0; color: var(--lp-text); font-size: 15px; }
.ptest-par-step .ptest-par-next { color: #fff; font-weight: 600; }
.ptest-par-money { display: grid; gap: 12px; max-width: 860px; margin: 22px 0 0; padding: 0; list-style: none; }
.ptest-par-money li { padding: 18px 22px; border-radius: 22px; background: var(--lp-card); border: 1px solid var(--lp-border); color: var(--lp-text); font-size: 16px; }
.ptest-par-final { margin-top: 26px; }

@media (max-width: 767.98px) {
    .ptest-box { padding: 22px 18px; border-radius: 24px; }
    .ptest-pros-head { flex-direction: column; align-items: stretch; }
    .ptest-filter { width: 100%; }
    .ptest-res-head { flex-direction: column; }
    .ptest-res-close { text-align: left; }
    .ptest-actions .btn, .ptest-lead-btns .btn { flex: 1 1 100%; justify-content: center; }
    .ptest-pair { justify-content: center; }
    .ptest-pair.is-two { grid-template-columns: 1fr 1fr; gap: 10px; }
}
.ptest-more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
