/* Medicare Advantage market map (pm- prefix) */
.pm-hero {
    padding: 150px 0 48px;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(93, 149, 216, .16) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 85% 30%, rgba(95, 211, 192, .08) 0%, transparent 70%),
        var(--bg-dark);
}
.pm-title { font-size: clamp(34px, 5vw, 58px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; max-width: 900px; margin: 0 auto 20px; }
.pm-lede { color: var(--text-secondary); font-size: 18px; line-height: 1.7; max-width: 640px; margin: 0 auto 40px; }
.pm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; max-width: 880px; margin: 0 auto; background: var(--border-color); border: 1px solid var(--border-color); border-radius: 18px; overflow: hidden; }
.pm-stat { background: rgba(17, 17, 17, .92); padding: 22px 16px; }
.pm-stat b { display: block; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pm-stat span { font-size: 13px; color: var(--text-muted); }

.pm-app { padding: 24px 0 72px; border-bottom: 1px solid var(--border-color); }
.pm-wrap { max-width: 1320px; }
.pm-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.pm-lenses { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: #111; border: 1px solid var(--border-color); border-radius: 999px; }
.pm-lenses button { background: none; border: 0; color: var(--text-secondary); font: 600 13px/1 Inter, sans-serif; padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.pm-lenses button:hover { color: var(--text-primary); }
.pm-lenses button[aria-selected="true"] { background: #fff; color: #000; }
.pm-controls { display: flex; flex-wrap: wrap; gap: 12px; }
.pm-field { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.pm-field select, .pm-field input { min-width: 220px; padding: 11px 14px; background: #111; border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-primary); font: 500 14px Inter, sans-serif; text-transform: none; letter-spacing: 0; }
.pm-field select:focus, .pm-field input:focus { outline: none; border-color: rgba(255, 255, 255, .4); }

.pm-stage { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; }
.pm-canvas { position: relative; background: radial-gradient(ellipse at 50% 40%, #121722 0%, #0b0b0b 75%); border: 1px solid var(--border-color); border-radius: 22px; overflow: hidden; min-height: 320px; }
.pm-crumbs { position: absolute; top: 14px; left: 16px; z-index: 2; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pm-crumbs button { background: rgba(255, 255, 255, .08); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: 999px; padding: 6px 12px; font: 600 12px Inter, sans-serif; cursor: pointer; }
#pm-svg { display: block; width: 100%; height: auto; }
#pm-counties path { stroke: #0b0b0b; stroke-width: .25; vector-effect: non-scaling-stroke; transition: fill .45s ease, opacity .3s ease; cursor: pointer; }
#pm-counties path:hover { stroke: #fff; stroke-width: 1.2; }
#pm-counties path.pm-dim { opacity: .18; }
#pm-states path { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: .7; vector-effect: non-scaling-stroke; pointer-events: none; }
#pm-hi { fill: none; stroke: #fff; stroke-width: 2.4; vector-effect: non-scaling-stroke; pointer-events: none; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .7)); }
.pm-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-muted); font-size: 14px; }
.pm-legend { position: absolute; left: 16px; bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; background: rgba(10, 10, 10, .78); backdrop-filter: blur(8px); border: 1px solid var(--border-color); border-radius: 12px; font-size: 12px; color: var(--text-secondary); max-width: calc(100% - 32px); }
.pm-legend-title { width: 100%; font-weight: 600; color: var(--text-primary); }
.pm-key { display: inline-flex; align-items: center; gap: 6px; }
.pm-key i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.pm-ramp { display: inline-flex; align-items: center; gap: 8px; }
.pm-ramp em { font-style: normal; font-variant-numeric: tabular-nums; }
.pm-ramp-bar { width: 160px; height: 8px; border-radius: 99px; display: inline-block; }
.pm-tip { position: absolute; top: 0; left: 0; z-index: 3; width: 220px; padding: 10px 12px; background: rgba(12, 12, 12, .94); border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; font-size: 12px; color: var(--text-secondary); pointer-events: none; display: flex; flex-direction: column; gap: 3px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.pm-tip[hidden] { display: none; }
.pm-tip strong { color: var(--text-primary); font-size: 13px; }
.pm-tip b { color: var(--text-primary); }

.pm-panel { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 22px; padding: 22px; max-height: 720px; overflow-y: auto; scrollbar-width: thin; }
.pm-panel h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.pm-panel h3 { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin: 22px 0 8px; }
.pm-panel h4 { font-size: 13px; font-weight: 600; margin: 16px 0 6px; color: var(--text-secondary); }
.pm-muted { color: var(--text-muted); font-size: 14px; }
.pm-rank { list-style: none; counter-reset: r; }
.pm-rank li { counter-increment: r; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.pm-rank li::before { content: counter(r); width: 22px; color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.pm-rank button { flex: 1; text-align: left; background: none; border: 0; color: var(--text-primary); font: 500 14px Inter, sans-serif; cursor: pointer; padding: 0; }
.pm-rank button:hover { text-decoration: underline; text-underline-offset: 3px; }
.pm-rank b { color: #ff8a75; font-variant-numeric: tabular-nums; }
.pm-ch { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pm-x { background: none; border: 1px solid var(--border-color); color: var(--text-secondary); width: 32px; height: 32px; border-radius: 8px; font-size: 18px; cursor: pointer; }
.pm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.pm-kpis div { background: #0d0d0d; border: 1px solid var(--border-color); border-radius: 12px; padding: 10px; }
.pm-kpis b { display: block; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pm-kpis span { font-size: 11px; color: var(--text-muted); }
.pm-kpis .neg b { color: #ff8a75; }
.pm-kpis .pos b { color: #5fd3c0; }
.pm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-color); margin-bottom: 10px; }
.pm-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--text-muted); font: 600 12px Inter, sans-serif; padding: 10px 8px; cursor: pointer; }
.pm-tabs button[aria-selected="true"] { color: var(--text-primary); border-bottom-color: #fff; }
.pm-orgs, .pm-leaving { list-style: none; }
.pm-orgs li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.pm-orgs li.pm-gone span { color: var(--text-muted); text-decoration: line-through; text-decoration-color: rgba(255, 138, 117, .6); }
.pm-tag { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; margin-left: 4px; text-decoration: none; display: inline-block; }
.pm-tag-new { background: rgba(95, 211, 192, .15); color: #5fd3c0; }
.pm-tag-out { background: rgba(255, 138, 117, .15); color: #ff8a75; }
.pm-leaving li { padding: 9px 0; border-bottom: 1px solid var(--border-color); }
.pm-plan { display: block; font-size: 13px; color: var(--text-primary); line-height: 1.35; }
.pm-sub { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.pm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pm-table th { text-align: left; font-size: 11px; font-weight: 600; color: var(--text-muted); padding: 6px 4px; border-bottom: 1px solid var(--border-color); }
.pm-table td { padding: 8px 4px; border-bottom: 1px solid var(--border-color); vertical-align: top; font-variant-numeric: tabular-nums; }
.pm-table td + td, .pm-table th + th { text-align: right; white-space: nowrap; }
.pm-fine { font-size: 11px; color: var(--text-muted); line-height: 1.5; margin-top: 12px; }
.pm-note { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-top: 14px; max-width: 980px; }

.pm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pm-step { padding: 28px 24px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; }
.pm-step span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #000; font-weight: 800; font-size: 14px; margin-bottom: 16px; }
.pm-step h3 { font-size: 18px; margin-bottom: 8px; }
.pm-step p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.pm-disclaimer { font-size: 12px; color: var(--text-muted); line-height: 1.6; padding: 32px 24px; }

@media (max-width: 1100px) {
    .pm-stage { grid-template-columns: 1fr; }
    .pm-panel { max-height: none; }
    .pm-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .pm-hero { padding: 110px 0 32px; }
    .pm-stats { grid-template-columns: repeat(2, 1fr); }
    .pm-lenses { border-radius: 14px; }
    .pm-lenses button { padding: 9px 11px; font-size: 12px; }
    .pm-controls, .pm-field { width: 100%; }
    .pm-field select, .pm-field input { min-width: 0; width: 100%; }
    .pm-canvas { border-radius: 16px; }
    .pm-legend { position: static; margin: 0 10px 10px; }
    .pm-ramp-bar { width: 110px; }
    .pm-steps { grid-template-columns: 1fr; }
    .pm-kpis { grid-template-columns: repeat(2, 1fr); }
}
.pm-loading[hidden] { display: none; }
.pm-canvas { align-self: start; }
.pm-crumbs strong { background: rgba(10, 10, 10, .72); backdrop-filter: blur(6px); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-color); font-size: 13px; }
.pm-legend { position: static; margin: 0 16px 16px; width: fit-content; }

/* Email gate */
.pm-lockzone { position: relative; }
.pm-lockzone.pm-locked .pm-locktarget { filter: blur(5px) saturate(.85); opacity: .5; pointer-events: none; user-select: none; }
.pm-gate { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-start; justify-content: center; padding: clamp(40px, 10vh, 110px) 16px 16px; }
.pm-gate[hidden] { display: none; }
.pm-gate-card { position: sticky; top: 110px; width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 12px; background: rgba(17, 17, 17, .95); border: 1px solid rgba(255, 255, 255, .16); border-radius: 22px; padding: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.pm-gate-card .section-badge { align-self: flex-start; margin: 0; }
.pm-gate-card h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.pm-gate-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
.pm-gate-card input { width: 100%; padding: 13px 14px; background: #0b0b0b; border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-primary); font: 500 15px Inter, sans-serif; }
.pm-gate-card input:focus { outline: none; border-color: rgba(255, 255, 255, .45); }
.pm-gate-submit { justify-content: center; width: 100%; }
.pm-gate-error { color: #ff8a8a !important; font-size: 14px !important; }
.pm-gate-error[hidden] { display: none; }
.pm-gate-fine { font-size: 12px !important; color: var(--text-muted) !important; }
@media (max-width: 768px) { .pm-gate { padding-top: 24px; } .pm-gate-card { padding: 22px; top: 90px; } }
