/* Locked options: greyed out and clickable (the click opens the plans window, see scripts/plan-lock.js). */
[data-plan-lock]:not(option) { opacity: .4; filter: grayscale(.9); cursor: pointer; }
/* colour palettes keep their colours */
.pf-nogrey[data-plan-lock], .pf-swatch-custom[data-plan-lock] { opacity: 1; filter: none; }
[data-plan-lock]:not(option) > * { pointer-events: none; }
[data-plan-lock]:not(option) input, [data-plan-lock]:not(option) select, [data-plan-lock]:not(option) button { pointer-events: none; }
option[data-plan-lock] { color: #7b8699; }

.plm-backdrop { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(3, 6, 12, .66); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s ease; }
.plm-backdrop[hidden] { display: none; }
.plm-backdrop.is-open { opacity: 1; }
.plm-dialog { position: relative; width: min(760px, 100%); max-height: calc(100vh - 36px); overflow: auto; padding: 28px 26px 22px; border-radius: 24px; background: linear-gradient(180deg, #121a2b, #0b101b); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .8); color: #e8eefb; transform: translateY(10px) scale(.98); transition: transform .25s cubic-bezier(.2, .9, .3, 1); }
.plm-backdrop.is-open .plm-dialog { transform: none; }
.plm-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .07); color: #9aa8bf; cursor: pointer; }
.plm-x:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.plm-x svg { width: 16px; height: 16px; }
.plm-eyebrow { margin: 0 0 6px; color: #c9a6ff; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.plm-dialog h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.01em; }
.plm-text { margin: 0 0 20px; color: #9aa8bf; font-size: 14.5px; line-height: 1.55; }
.plm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plm-card { position: relative; padding: 16px 16px 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.plm-card.is-current { border-color: color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 8%, transparent); }
.plm-card h3 { margin: 0; color: var(--c); font-size: 17px; }
.plm-your { position: absolute; top: 12px; right: 12px; padding: 2px 8px; border-radius: 999px; background: var(--c); color: #07101d; font-size: 10.5px; font-weight: 800; }
.plm-price { display: flex; align-items: baseline; gap: 5px; margin: 6px 0 10px; }
.plm-price strong { color: var(--c); font-size: 22px; font-weight: 800; }
.plm-price span { color: #7f8ca3; font-size: 12px; }
.plm-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: #b7c2d6; font-size: 12.5px; line-height: 1.4; }
.plm-card li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--c); }
.plm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.plm-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #e8eefb; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s ease, transform .15s ease; }
.plm-btn:hover { background: rgba(255, 255, 255, .12); }
.plm-btn:active { transform: scale(.97); }
.plm-btn-main { border-color: transparent; background: linear-gradient(135deg, #8f6bff, #4aa8ff); color: #fff; }
.plm-btn-main:hover { background: linear-gradient(135deg, #a07fff, #62b6ff); }
@media (max-width: 640px) {
    .plm-dialog { padding: 24px 16px 16px; }
    .plm-cards { grid-template-columns: 1fr; }
    .plm-actions { flex-direction: column-reverse; }
}
@media (prefers-reduced-motion: reduce) { .plm-backdrop, .plm-dialog { transition: none; } }
