/* dashboard-funnel.css */
/* ADMIN ONLY — the Funnel card (#funnelBlock, dashboard-funnel.js): six steps
   from sign-up to paying, each a bar as a share of sign-ups, with the loss at
   each step; an optional per-account table. Card surface #131926; the bar is
   the brand red; losses are the muted ink. */
#funnelBlock .fn-range { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
#funnelBlock .fn-range .btn.is-on { background: rgba(232, 67, 31, 0.12); border-color: rgba(232, 67, 31, 0.45); color: var(--ink, #F4F6FA); }

.fn-steps { display: grid; gap: 10px; margin: 14px 0 6px; }
.fn-step { display: grid; grid-template-columns: 130px 1fr 220px; gap: 12px; align-items: center; }
.fn-step-label { font-size: 13px; font-weight: 700; color: var(--ink, #F4F6FA); }
.fn-bar { height: 18px; background: var(--panel, #10151F); border: 1px solid var(--line, #1F2733); border-radius: 6px; overflow: hidden; }
.fn-fill { height: 100%; background: linear-gradient(90deg, #F4592E 0%, #DE3A18 100%); border-radius: 5px; transition: width 0.3s ease; min-width: 2px; }
.fn-step-paying .fn-fill { background: linear-gradient(90deg, #2FB672 0%, #17794A 100%); }
.fn-step-meta { display: flex; gap: 10px; align-items: baseline; font-size: 12px; color: var(--muted, #A7B0BE); font-variant-numeric: tabular-nums; }
.fn-step-n { font-size: 18px; font-weight: 800; color: var(--ink, #F4F6FA); min-width: 28px; }
.fn-step-drop { margin-left: auto; color: var(--faint, #909AAB); }
.fn-step-drop.is-loss { color: #FF8A6A; font-weight: 700; }

.fn-table { min-width: 780px; font-size: 12.5px; margin-top: 8px; }
.fn-table td { white-space: nowrap; vertical-align: top; }
.fn-table tr.fn-admin td { opacity: 0.6; }
.fn-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.fn-stage { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; border: 1px solid var(--line-2, #2B3543); color: var(--muted, #A7B0BE); background: var(--panel, #10151F); }
.fn-stage-1 { color: #FF8A6A; border-color: rgba(255, 138, 106, 0.4); }
.fn-stage-2 { color: #F2BB63; border-color: rgba(242, 187, 99, 0.4); }
.fn-stage-3, .fn-stage-4 { color: #7CC4F5; border-color: rgba(124, 196, 245, 0.4); }
.fn-stage-5 { color: #B7E4C7; border-color: rgba(183, 228, 199, 0.4); }
.fn-stage-6 { color: #2FB672; border-color: rgba(47, 182, 114, 0.5); background: rgba(47, 182, 114, 0.1); }

@media (max-width: 720px) {
  .fn-step { grid-template-columns: 1fr; gap: 4px; }
  .fn-step-drop { margin-left: 0; }
}
