/* AlgoPuzzle Pro dialogs - assets/pro/pro.js. Plain and quiet, like pricing.html. */
.apx-overlay { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.apx-dlg { position: relative; width: 100%; max-width: 440px; padding: 24px; border: 1px solid #2d3748; border-radius: 12px; background: #0b111d; color: #f3f4f6;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.apx-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; color: #9ca3af; font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 4px; }
.apx-x:hover { color: #f3f4f6; }
.apx-title { margin: 0 24px 0 0; font-size: 17px; font-weight: 600; }
.apx-price { margin: 12px 0 0; font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
.apx-price span { font-size: 13px; font-weight: 400; color: #9ca3af; }
.apx-text { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: #d1d5db; }
.apx-muted { color: #9ca3af; }
.apx-check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; margin-top: 16px; padding: 12px; border: 1px solid #1f2937; border-radius: 8px; font-size: 13px; line-height: 1.5; color: #d1d5db; cursor: pointer; }
.apx-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: #10b981; }
.apx-err { margin: 10px 0 0; font-size: 13px; color: #fca5a5; }
.apx-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.apx-btn { display: inline-block; border: 0; border-radius: 8px; padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.apx-primary { background: #10b981; color: #03140d; }
.apx-primary:hover { background: #34d399; }
.apx-primary:disabled { opacity: .5; cursor: not-allowed; }
.apx-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: #34d399; }
.apx-perks { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.apx-perks li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 14px; line-height: 1.45; color: #d1d5db; }
.apx-perks li b { font-weight: 500; }
.apx-perks li svg { width: 16px; height: 16px; margin-top: 2px; color: #10b981; }
.apx-perks li.is-hit { margin-bottom: 4px; padding: 10px 12px; grid-template-columns: 16px 1fr; border: 1px solid rgba(16,185,129,.4); border-radius: 8px; background: rgba(16,185,129,.06); }
.apx-perks li.is-hit b { font-weight: 600; color: #f3f4f6; }
.apx-perks li small { display: block; margin-top: 2px; font-size: 13px; color: #9ca3af; }
.apx-offer { margin-top: 18px; padding-top: 16px; border-top: 1px solid #1f2937; font-size: 14px; }
.apx-offer b { display: block; color: #f3f4f6; font-weight: 600; }
.apx-offer span { display: block; margin-top: 2px; font-size: 12.5px; color: #9ca3af; }
.apx-actions--stack { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 16px; }
.apx-actions--stack .apx-btn { text-align: center; padding: 11px 14px; }
.apx-link { background: none; color: #d1d5db; font-weight: 500; }
.apx-link:hover { color: #f3f4f6; text-decoration: underline; }
.apx-foot { margin: 10px 0 0; font-size: 12px; color: #6b7280; text-align: center; }
.apx-ghost { background: none; border: 1px solid #2d3748; color: #f3f4f6; }
.apx-ghost:hover { border-color: #9ca3af; }
.apx-btn:focus-visible, .apx-x:focus-visible, .apx-check input:focus-visible { outline: 2px solid #6ee7b7; outline-offset: 2px; }

.apx-small { font-size: 12.5px; }
.apx-plans { display: grid; gap: 8px; margin-top: 16px; }
.apx-plan { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #2d3748; border-radius: 8px; cursor: pointer; }
.apx-plan:hover { border-color: #4b5563; }
.apx-plan:has(input:checked) { border-color: #10b981; background: rgba(16,185,129,.06); }
.apx-plan input { width: 16px; height: 16px; margin: 0; accent-color: #10b981; }
.apx-plan-name { font-size: 14px; font-weight: 600; color: #f3f4f6; }
.apx-plan-name em { margin-left: 8px; font-style: normal; font-size: 11px; font-weight: 500; color: #34d399; }
.apx-plan-price { text-align: right; font-size: 15px; font-weight: 700; color: #f3f4f6; }
.apx-plan-price small { display: block; font-size: 11.5px; font-weight: 400; color: #9ca3af; }

/* Header button (builder): Go Pro / Pro · until <date> */
.apx-head { border: 1px solid rgba(52,211,153,.55); background: rgba(16,185,129,.1); color: #6ee7b7; font: inherit; font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.apx-head:hover { background: rgba(16,185,129,.2); color: #a7f3d0; }
.apx-head--pro { border-color: #374151; background: none; color: #d1d5db; font-weight: 500; }
.apx-head:focus-visible { outline: 2px solid #6ee7b7; outline-offset: 2px; }

/* Backtest periods only Pro can use (assets/backtest/ui/panel.js) */
.bt-seg--period button.is-pro-locked { color: #6b7280; }
.bt-seg--period button.is-pro-locked::after { content: "Pro"; margin-left: 4px; font-size: 10px; font-weight: 600; color: #34d399; }
