/* plan_gate.css — unified plan-gated UX */

.plan-locked {
    opacity: 0.45;
    cursor: not-allowed;
}

.plan-locked--link {
    position: relative;
}

.plan-locked--link::after {
    content: '';
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-left: 5px;
    vertical-align: -1px;
    background: currentColor;
    opacity: 0.7;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='3' y='7' width='10' height='7' rx='1'/%3E%3Cpath d='M5 7V5a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='3' y='7' width='10' height='7' rx='1'/%3E%3Cpath d='M5 7V5a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* plan_gate.css — unified plan-gated UX */

.plan-gate-notice,
.plan-gate-msg,
.rigour-locked-msg {
    font-family: var(--font-body, 'IBM Plex Sans', system-ui, sans-serif);
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-300, #6b6e7d);
    margin: 0;
    letter-spacing: 0.01em;
}

.plan-gate-notice--panel,
.plan-gate-panel[open] .plan-gate-notice {
    padding: 0 16px 14px;
}

.plan-gate-notice--compact,
.mr-ext-signal-body .plan-gate-notice {
    display: block;
    margin: 10px 0 4px;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: var(--radius-edge);
    border-left: 2px solid var(--accent, #cdab68);
    background: rgba(205, 171, 104, 0.06);
    line-height: 1.5;
}

.plan-gate-notice__text {
    color: inherit;
}

.plan-gate-notice__link,
.plan-gate-msg a,
.rigour-locked-msg a {
    color: var(--accent, #cdab68);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

.plan-gate-notice__link:hover,
.plan-gate-msg a:hover,
.rigour-locked-msg a:hover {
    text-decoration: underline;
    color: var(--accent-hover, #d9bc7a);
}

.plan-gate-panel {
    border: 1px solid var(--line, rgba(255, 255, 255, 0.055));
    border-radius: var(--radius-edge);
    background: var(--surface-card, #13131c);
}

.plan-gate-panel summary {
    color: var(--text-300, #6b6c78);
    cursor: default;
    list-style: none;
}

.plan-gate-panel[open] .plan-gate-notice,
.plan-gate-panel[open] .plan-gate-msg {
    padding: 0 16px 14px;
}

/* Legacy aliases */
.nav-link--locked,
.nav-tools a.nav-link--locked,
.num-item--locked,
.wl-watch-btn--locked,
.period-btn--locked,
.regime-filters--locked .regime-filters__toggle,
.rigour-panel--locked summary,
.nav-alerts-bell.plan-locked {
    opacity: 0.45;
    cursor: not-allowed;
}

.nav-link--locked:hover,
.nav-tools a.nav-link--locked:hover {
    background: transparent;
    color: var(--text-300, #6b6c78);
}

.period-btn--locked,
.period-btn[aria-disabled='true'] {
    pointer-events: auto;
}

.period-btn--locked:hover,
.period-btn[aria-disabled='true']:hover {
    background: transparent;
}

.regime-filters--locked .regime-filters__body {
    padding: 0 16px 14px;
}

/* Modal */
.plan-gate-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.plan-gate-modal[hidden] {
    display: none;
}

.plan-gate-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 8, 0.72);
    backdrop-filter: blur(4px);
}

.plan-gate-modal__card {
    position: relative;
    width: min(420px, 100%);
    padding: 24px 24px 20px;
    border-radius: var(--radius-edge);
    border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.10));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--surface-panel, #181822);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.plan-gate-modal__title {
    font-family: var(--font-display, var(--font-display), Georgia, serif);
    font-size: 19px;
    font-weight: 600;
    color: var(--text-100, #ecedf2);
    margin: 0 0 10px;
}

.plan-gate-modal__body {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-200, #a8a9b4);
    margin: 0 0 20px;
}

.plan-gate-modal__body--solo {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-100, #ecedf2);
    margin: 0 0 22px;
}

.plan-gate-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.plan-gate-modal__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: var(--radius-edge);
    border: none;
    background: var(--accent, #cdab68);
    color: #0b0b11;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.plan-gate-modal__cta:hover {
    filter: brightness(1.08);
}

.plan-gate-modal__dismiss {
    padding: 9px 14px;
    border-radius: var(--radius-edge);
    border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.10));
    background: transparent;
    color: var(--text-200, #a8a9b4);
    font-size: 14px;
    cursor: pointer;
}

.plan-gate-modal__dismiss:hover {
    color: var(--text-100, #ecedf2);
    border-color: var(--line-strong, rgba(255, 255, 255, 0.18));
}

/* Pricing page highlight */
.pricing-card--highlighted {
    outline: 2px solid var(--accent, #cdab68);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(126, 155, 217, 0.12);
}
