/* Admin Versão 2.0 (Métricas e Usuários / IPs): mesmo visual do painel do usuário. Tudo dentro de .v2, não afeta a Versão 1.0. */
.v2 {
    --v2-bg-card: #221f1f; --v2-bg-soft: #211f1f; --v2-bg-deep: #141212; --v2-border: #2d2a2a; --v2-border-strong: #3d3939;
    --v2-text: #fff; --v2-body: #b0abab; --v2-muted: #7a7575;
    --v2-orange: #f05409; --v2-orange-light: #ff8c42; --v2-ok: #34d399; --v2-cyan: #22d3ee; --v2-purple: #a78bfa; --v2-warn: #facc15; --v2-danger: #ef4444;
    --v2-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 14.5px; line-height: 1.6; color: var(--v2-text);
}
.v2 *, .v2 *::before, .v2 *::after { box-sizing: border-box; }
.v2 button, .v2 input { font: inherit; color: inherit; }
.v2 [hidden] { display: none !important; }

/* Cabeçalho da aba */
.v2-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.v2-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.v2-sub { margin-top: 4px; font-size: 13px; color: var(--v2-muted); }
.v2-sub b { color: var(--v2-body); font-weight: 600; }

/* Segmentado (período, Facebook/TikTok) */
.v2-seg { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 2px; border-radius: 10px; background: var(--v2-bg-deep); border: 1px solid var(--v2-border); }
.v2-seg button { min-height: 32px; padding: 0 13px; border: 0; border-radius: 7px; background: none; font-size: 12.5px; font-weight: 700; color: var(--v2-muted); white-space: nowrap; cursor: pointer; transition: color 150ms ease, background 150ms ease; }
.v2-seg button:hover { color: var(--v2-text); }
.v2-seg button[aria-pressed="true"] { color: var(--v2-orange-light); background: rgba(240, 84, 9, 0.12); box-shadow: 0 0 0 1px rgba(240, 84, 9, 0.4); }

/* KPIs */
.v2-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .v2-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1700px) { .v2-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.v2-kpi { --c: var(--v2-orange); position: relative; padding: 16px; border-radius: 16px; background: linear-gradient(180deg, var(--v2-bg-card) 0%, #1d1b1b 100%); border: 1px solid var(--v2-border); overflow: hidden; transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.v2-kpi::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--c), transparent 70%); opacity: .7; }
.v2-kpi::after { content: ''; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 16%, transparent), transparent); pointer-events: none; opacity: .7; }
.v2-kpi:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 38%, var(--v2-border)); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); }
.v2-kpi > * { position: relative; z-index: 1; }
.v2-kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.v2-lbl { font-family: var(--v2-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--v2-body); line-height: 1.45; }
.v2-ic { flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.v2-ic svg { width: 15px; height: 15px; }
.v2-val { margin-top: 10px; font-family: var(--v2-mono); font-size: clamp(21px, 1.7vw, 28px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--c); text-shadow: 0 0 22px color-mix(in srgb, var(--c) 35%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-kpi-sub { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--v2-muted); }

/* Cards */
.v2-grid { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 1000px) { .v2-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.v2-card { position: relative; border-radius: 18px; background: linear-gradient(180deg, var(--v2-bg-card) 0%, #1d1b1b 100%); border: 1px solid var(--v2-border); overflow: hidden; transition: border-color 200ms ease; }
.v2-card:hover { border-color: var(--v2-border-strong); }
.v2-card::before { content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent); }
.v2-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--v2-border); }
.v2-card-head h3 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.v2-card-head h3 > svg { width: 34px; height: 34px; padding: 8px; flex-shrink: 0; border-radius: 10px; color: var(--v2-orange); background: rgba(240, 84, 9, 0.12); border: 1px solid rgba(240, 84, 9, 0.25); }
.v2-card-head h3 small { display: block; margin-top: 1px; font-size: 12.5px; font-weight: 500; color: var(--v2-muted); }
.v2-card-body { padding: 20px; }
.v2-note { font-size: 12.5px; color: var(--v2-muted); line-height: 1.65; }

/* Pagamentos (PIX / Cartão) */
.v2-pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .v2-pay { grid-template-columns: 1fr; } }
.v2-pay-box { --c: var(--v2-ok); padding: 16px; border-radius: 14px; background: var(--v2-bg-deep); border: 1px solid var(--v2-border); }
.v2-pay-name { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }
.v2-pay-name i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.v2-pay-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 12px; }
.v2-pay-row span { font-size: 12.5px; color: var(--v2-muted); }
.v2-pay-row b { font-family: var(--v2-mono); font-size: 22px; color: var(--c); }
.v2-pay-row.pending b { font-size: 17px; color: var(--v2-warn); }
.v2-pay-row.money b { font-size: 15px; color: var(--v2-body); }

/* Mais vendidos */
.v2-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.v2-top li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; }
.v2-top .rk { grid-row: span 2; width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--v2-mono); font-size: 12px; font-weight: 700; color: var(--v2-muted); background: var(--v2-bg-deep); border: 1px solid var(--v2-border); }
.v2-top li:first-child .rk { color: var(--v2-orange-light); border-color: rgba(240, 84, 9, 0.4); background: rgba(240, 84, 9, 0.1); }
.v2-top .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-top .ct { font-family: var(--v2-mono); font-weight: 700; color: var(--v2-text); text-align: right; white-space: nowrap; }
.v2-top .ct small { color: var(--v2-muted); font-weight: 500; margin-left: 6px; }
.v2-top .bar { grid-column: 2 / 4; height: 6px; border-radius: 99px; background: var(--v2-bg-deep); overflow: hidden; }
.v2-top .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--v2-orange), var(--v2-orange-light)); }

/* Calendário (período personalizado) */
.v2-period { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.v2-cal { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; width: 300px; max-width: calc(100vw - 32px); padding: 14px; border-radius: 16px; background: #1b1919; border: 1px solid var(--v2-border-strong); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55); }
.v2-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.v2-cal-head b { font-size: 14px; text-transform: capitalize; }
.v2-cal-nav { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--v2-border); background: var(--v2-bg-deep); cursor: pointer; color: var(--v2-body); }
.v2-cal-nav:hover { color: var(--v2-text); border-color: var(--v2-border-strong); }
.v2-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.v2-cal-grid .wd { font-family: var(--v2-mono); font-size: 10px; font-weight: 700; color: var(--v2-muted); padding: 4px 0; }
.v2-cal-grid button { height: 34px; border: 0; border-radius: 8px; background: none; font-size: 13px; cursor: pointer; color: var(--v2-body); }
.v2-cal-grid button:hover:not(:disabled) { background: var(--v2-bg-soft); color: var(--v2-text); }
.v2-cal-grid button:disabled { opacity: .25; cursor: default; }
.v2-cal-grid button.today { box-shadow: inset 0 0 0 1px var(--v2-border-strong); }
.v2-cal-grid button.in { background: rgba(240, 84, 9, 0.12); color: var(--v2-text); border-radius: 0; }
.v2-cal-grid button.edge { background: var(--v2-orange); color: #fff; font-weight: 700; border-radius: 8px; }
.v2-cal-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--v2-border); }
.v2-cal-foot span { font-size: 12px; color: var(--v2-muted); }
.v2-btn { min-height: 34px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--v2-orange); background: var(--v2-orange); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.v2-btn:disabled { opacity: .4; cursor: default; }
.v2-btn.ghost { background: var(--v2-bg-deep); border-color: var(--v2-border); color: var(--v2-body); }

/* Tabela de usuários */
.v2-search { width: 100%; max-width: 320px; min-height: 38px; padding: 0 14px; border-radius: 10px; background: var(--v2-bg-deep); border: 1px solid var(--v2-border); color: var(--v2-text); font-size: 13.5px; }
.v2-search:focus { outline: none; border-color: rgba(240, 84, 9, 0.5); }
.v2-table-wrap { overflow-x: auto; }
.v2-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.v2-table th { padding: 12px 16px; text-align: left; font-family: var(--v2-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--v2-muted); border-bottom: 1px solid var(--v2-border); white-space: nowrap; }
.v2-table td { padding: 13px 16px; border-bottom: 1px solid rgba(45, 42, 42, 0.6); font-size: 13.5px; color: var(--v2-body); vertical-align: middle; }
.v2-table tbody tr { cursor: pointer; transition: background 150ms ease; }
.v2-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.v2-table tbody tr.open { background: rgba(240, 84, 9, 0.06); }
.v2-table .who b { display: block; color: var(--v2-text); font-weight: 700; }
.v2-table .who small, .v2-table .dt small { display: block; font-size: 12px; color: var(--v2-muted); }
.v2-table .dt { font-family: var(--v2-mono); font-size: 12.5px; white-space: nowrap; }
.v2-pill { --c: var(--v2-ok); display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); white-space: nowrap; }
.v2-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.v2-days { font-family: var(--v2-mono); font-weight: 700; white-space: nowrap; }
.v2-eye { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--v2-border); background: var(--v2-bg-deep); color: var(--v2-body); cursor: pointer; transition: color 150ms ease, border-color 150ms ease; }
.v2-eye:hover, tr.open .v2-eye { color: var(--v2-orange-light); border-color: rgba(240, 84, 9, 0.45); }
.v2-eye svg { width: 16px; height: 16px; }
.v2-detail td { padding: 0 16px 16px; cursor: default; background: rgba(240, 84, 9, 0.06); }
.v2-detail:hover { background: none !important; }
.v2-utm { padding: 16px; border-radius: 14px; background: var(--v2-bg-deep); border: 1px solid var(--v2-border); }
.v2-utm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.v2-utm dl { display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); gap: 6px 18px; margin: 0; }
.v2-utm dt { font-family: var(--v2-mono); font-size: 11.5px; color: var(--v2-muted); }
.v2-utm dd { margin: 0; font-family: var(--v2-mono); font-size: 12.5px; color: var(--v2-text); word-break: break-all; }
.v2-more { display: flex; justify-content: center; padding: 16px; }
.v2-empty { padding: 28px 16px; text-align: center; color: var(--v2-muted); font-size: 13.5px; }
.v2-loading { opacity: .55; transition: opacity 200ms ease; }
.v2-paid { font-family: var(--v2-mono); font-weight: 700; color: var(--v2-ok); white-space: nowrap; }

/* Planos V2 */
.v2-section + .v2-section { margin-top: 26px; }
.v2-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.v2-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; align-items: start; }
.v2-plan { padding: 18px; }
.v2-plan .v2-kpi-top { align-items: center; }
.v2-plan-name { font-size: 15.5px; font-weight: 800; line-height: 1.35; color: var(--v2-text); min-width: 0; overflow-wrap: anywhere; }
.v2-plan-act { display: flex; gap: 6px; flex-shrink: 0; }
.v2-plan-act .v2-eye { width: 32px; height: 32px; }
.v2-plan.open .v2-plan-act [data-pv] { color: var(--v2-orange-light); border-color: rgba(240, 84, 9, 0.45); }
.v2-plan-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.v2-plan-detail { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--v2-border); }
.v2-plan-detail dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0 0 10px; }
.v2-plan-detail dt { font-family: var(--v2-mono); font-size: 11px; color: var(--v2-muted); }
.v2-plan-detail dd { margin: 0; font-size: 12.5px; color: var(--v2-body); overflow-wrap: anywhere; }
.v2-plan-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--v2-body); }
.v2-plan-feats li::before { content: '✓'; color: var(--v2-ok); font-weight: 700; margin-right: 8px; }

/* Editar plano (modal) */
.v2-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(3px); }
.v2-modal-box { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 18px; background: linear-gradient(180deg, var(--v2-bg-card) 0%, #1d1b1b 100%); border: 1px solid var(--v2-border-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.v2-form { display: flex; flex-direction: column; gap: 14px; }
.v2-form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--v2-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--v2-muted); }
.v2-form input, .v2-form select, .v2-form textarea { min-height: 40px; padding: 9px 12px; border-radius: 10px; background: var(--v2-bg-deep); border: 1px solid var(--v2-border); color: var(--v2-text); font-family: 'Inter', sans-serif; font-size: 14px; letter-spacing: 0; text-transform: none; resize: vertical; }
.v2-form input:focus, .v2-form select:focus, .v2-form textarea:focus { outline: none; border-color: rgba(240, 84, 9, 0.55); }
.v2-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v2-form-foot { display: flex; justify-content: flex-end; gap: 8px; }

/* Janela do usuário (Usuários / IPs > olho) */
body.v2-noscroll { overflow: hidden; }
.v2-umodal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8, 7, 7, 0.72); backdrop-filter: blur(6px); }
.v2-umodal[hidden], .v2-modal[hidden] { display: none !important; }
.v2-umodal-box { width: 100%; max-width: 1080px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; border-radius: 22px; background: linear-gradient(180deg, #1f1c1c 0%, #191717 100%); border: 1px solid var(--v2-border-strong); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65); overflow: hidden; }
.v2-umodal-box > div { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.v2-uhead { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px 64px 18px 24px; background: radial-gradient(500px 160px at 0% 0%, rgba(240, 84, 9, 0.16), transparent 70%); }
.v2-avatar { flex-shrink: 0; width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; color: #fff; background: linear-gradient(135deg, var(--v2-orange), var(--v2-orange-light)); box-shadow: 0 10px 26px rgba(240, 84, 9, 0.35); }
.v2-uhead-main { min-width: 0; flex: 1; }
.v2-uhead h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-uhead-mail { font-size: 13px; color: var(--v2-body); overflow: hidden; text-overflow: ellipsis; }
.v2-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.v2-uclose { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--v2-border); background: var(--v2-bg-deep); color: var(--v2-body); cursor: pointer; }
.v2-uclose:hover { color: var(--v2-text); border-color: var(--v2-border-strong); }
.v2-uclose svg { width: 16px; height: 16px; }
.v2-ustats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--v2-border); border-bottom: 1px solid var(--v2-border); }
.v2-ustats > div { padding: 12px 20px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v2-ustats > div + div { border-left: 1px solid var(--v2-border); }
.v2-ustats b { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-ustats small { font-size: 12px; color: var(--v2-muted); }
.v2-ubody { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 24px 24px; }
.v2-ucols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.v2-ucol { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.v2-us { padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--v2-border); }
.v2-us-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.v2-us-head h4 { margin: 0; font-size: 14.5px; font-weight: 800; }
.v2-us-head small { display: block; font-size: 12px; color: var(--v2-muted); line-height: 1.4; }
.v2-us-ic { flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--v2-orange-light); background: rgba(240, 84, 9, 0.12); border: 1px solid rgba(240, 84, 9, 0.25); }
.v2-us-ic svg { width: 15px; height: 15px; }
.v2-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v2-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.v2-f.wide { grid-column: 1 / -1; }
.v2-f > span { font-family: var(--v2-mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--v2-muted); }
.v2-f input, .v2-f select, .v2-f textarea, .v2-addip input, .v2-addip select, .v2-linkout input { width: 100%; min-height: 40px; padding: 9px 12px; border-radius: 10px; background: var(--v2-bg-deep); border: 1px solid var(--v2-border); color: var(--v2-text); font-family: 'Inter', sans-serif; font-size: 13.5px; resize: vertical; }
.v2-f input:focus, .v2-f select:focus, .v2-f textarea:focus, .v2-addip input:focus, .v2-addip select:focus { outline: none; border-color: rgba(240, 84, 9, 0.55); box-shadow: 0 0 0 3px rgba(240, 84, 9, 0.12); }
.v2-f input[type="datetime-local"] { color-scheme: dark; }
.v2-ro { min-height: 40px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.025); border: 1px dashed var(--v2-border); font-size: 13.5px; color: var(--v2-text); overflow-wrap: anywhere; }
.v2-ro em { color: var(--v2-muted); font-style: normal; }
.v2 .mono { font-family: var(--v2-mono); }
.v2-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 13.5px; color: var(--v2-text); }
.v2-switch input { position: absolute; opacity: 0; pointer-events: none; }
.v2-switch i { flex-shrink: 0; position: relative; width: 42px; height: 24px; border-radius: 99px; background: var(--v2-bg-deep); border: 1px solid var(--v2-border-strong); transition: background 150ms ease; }
.v2-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--v2-muted); transition: transform 150ms ease, background 150ms ease; }
.v2-switch input:checked + i { background: rgba(240, 84, 9, 0.25); border-color: rgba(240, 84, 9, 0.6); }
.v2-switch input:checked + i::after { transform: translateX(18px); background: var(--v2-orange-light); }
.v2-switch input:disabled + i { opacity: .4; }
.v2-switch input:focus-visible + i { outline: 2px solid var(--v2-orange); outline-offset: 2px; }
.v2-ff { display: flex; flex-direction: column; gap: 14px; }
.v2-ff-pay { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.v2-ff-pay .v2-f { flex: 1; min-width: 140px; }
.v2-money { position: relative; }
.v2-money em { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13px; color: var(--v2-muted); }
.v2-money input { padding-left: 36px; font-family: var(--v2-mono); font-weight: 700; color: var(--v2-ok); }
.v2-ff-hist { display: flex; flex-direction: column; gap: 8px; }
.v2-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.v2-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--v2-bg-deep); border: 1px solid var(--v2-border); font-size: 13px; color: var(--v2-body); }
.v2-dev { display: flex; align-items: center; gap: 10px; min-width: 0; }
.v2-dev svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--v2-orange-light); }
.v2-dev b { display: block; font-size: 12.5px; color: var(--v2-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.v2-dev small { font-size: 11.5px; color: var(--v2-muted); }
.v2-access { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v2-tile { padding: 14px; border-radius: 12px; background: var(--v2-bg-deep); border: 1px solid var(--v2-border); display: flex; flex-direction: column; gap: 10px; }
.v2-tile small { font-size: 11.5px; color: var(--v2-muted); }
.v2-tile-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v2-step { display: inline-flex; align-items: center; border-radius: 10px; border: 1px solid var(--v2-border-strong); overflow: hidden; }
.v2-step button { width: 32px; height: 34px; border: 0; background: rgba(255, 255, 255, 0.03); color: var(--v2-body); font-size: 16px; cursor: pointer; }
.v2-step button:hover { color: var(--v2-text); background: rgba(255, 255, 255, 0.07); }
.v2-step input { width: 40px; height: 34px; border: 0; background: none; text-align: center; font-family: var(--v2-mono); font-weight: 700; font-size: 15px; color: var(--v2-orange-light); }
.v2-step input:focus { outline: none; }
.v2-linkbox { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--v2-border-strong); }
.v2-linkbox b { display: block; font-size: 13px; }
.v2-linkbox small { display: block; font-size: 11.5px; color: var(--v2-muted); }
.v2-linkout { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.v2-linkout small { grid-column: 1 / -1; font-size: 11.5px; color: var(--v2-muted); }
.v2-btn { white-space: nowrap; }
.v2-btn svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.v2-btn.danger { background: var(--v2-danger); border-color: var(--v2-danger); }
.v2-btn.ghost.danger { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
.v2-btn.ghost.warn { background: rgba(250, 204, 21, 0.08); border-color: rgba(250, 204, 21, 0.35); color: #fde68a; }
.v2-btn.ghost:hover { border-color: var(--v2-border-strong); color: var(--v2-text); }
.v2-keycard { padding: 12px; border-radius: 12px; background: var(--v2-bg-deep); border: 1px solid var(--v2-border); }
.v2-keycard + .v2-keycard { margin-top: 8px; }
.v2-keycard-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.v2-keycard-head span { font-size: 11.5px; color: var(--v2-muted); }
.v2-iprow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px 7px 12px; border-radius: 9px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--v2-border); }
.v2-iprow + .v2-iprow { margin-top: 6px; }
.v2-iprow > span:first-child { font-size: 13.5px; color: var(--v2-cyan); }
.v2-iprow-act { display: flex; gap: 4px; }
.v2-icon-btn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--v2-border); background: transparent; color: var(--v2-body); cursor: pointer; }
.v2-icon-btn svg { width: 14px; height: 14px; }
.v2-icon-btn:hover { color: var(--v2-text); border-color: var(--v2-border-strong); }
.v2-icon-btn.warn:hover { color: var(--v2-warn); border-color: rgba(250, 204, 21, 0.45); }
.v2-icon-btn.danger:hover { color: var(--v2-danger); border-color: rgba(239, 68, 68, 0.45); }
.v2-addip { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; }
.v2-lockrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.v2-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; max-height: 260px; overflow-y: auto; }
.v2-timeline li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(45, 42, 42, 0.6); font-size: 13px; color: var(--v2-body); }
.v2-timeline li:last-child { border-bottom: 0; }
.v2-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--v2-orange-light); box-shadow: 0 0 0 3px rgba(240, 84, 9, 0.15); }
.v2-timeline b { color: var(--v2-cyan); }
.v2-timeline small { display: block; font-size: 11.5px; color: var(--v2-muted); }
.v2-timeline time { font-family: var(--v2-mono); font-size: 11px; color: var(--v2-muted); white-space: nowrap; }
.v2-folds { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.v2-fold { border-radius: 14px; border: 1px solid var(--v2-border); background: rgba(255, 255, 255, 0.015); }
.v2-fold summary { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; list-style: none; }
.v2-fold summary::-webkit-details-marker { display: none; }
.v2-fold summary > span:nth-child(2) { flex: 1; min-width: 0; }
.v2-fold summary b { display: block; font-size: 14px; }
.v2-fold summary small { display: block; font-size: 12px; color: var(--v2-muted); }
.v2-chev { width: 9px; height: 9px; border-right: 2px solid var(--v2-muted); border-bottom: 2px solid var(--v2-muted); transform: rotate(45deg); transition: transform 150ms ease; margin-right: 4px; }
.v2-fold[open] .v2-chev { transform: rotate(225deg); }
.v2-fold-body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.v2-fold-body > .v2-seg { align-self: flex-start; }
.v2-fold[data-fold="danger"] summary b { color: #fca5a5; }
.v2-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; }
.v2-kv dt { font-family: var(--v2-mono); font-size: 11.5px; color: var(--v2-muted); }
.v2-kv dd { margin: 0; font-family: var(--v2-mono); font-size: 12.5px; color: var(--v2-text); word-break: break-all; }
.v2-danger-confirm { padding: 14px; border-radius: 12px; border: 1px solid rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.06); }
.v2-danger-confirm p { margin: 4px 0 0; }
.v2-ufoot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--v2-border); background: rgba(0, 0, 0, 0.2); }
.v2-ufoot .v2-btn { min-height: 40px; padding: 0 20px; }
.v2-toast { margin-right: auto; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.v2-toast.ok { color: var(--v2-ok); background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); }
.v2-toast.bad { color: #fca5a5; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.35); }
@media (max-width: 900px) {
    .v2-ucols { grid-template-columns: 1fr; }
    .v2-ustats { grid-template-columns: 1fr 1fr; }
    .v2-ustats > div:nth-child(3) { border-left: 0; }
    .v2-ustats > div:nth-child(n+3) { border-top: 1px solid var(--v2-border); }
}
@media (max-width: 560px) {
    .v2-umodal { padding: 0; }
    .v2-umodal-box { max-height: 100vh; height: 100%; border-radius: 0; }
    .v2-fgrid, .v2-access { grid-template-columns: 1fr; }
    .v2-addip { grid-template-columns: 1fr; }
    .v2-ubody { padding: 16px; }
    .v2-uhead { padding: 18px 60px 14px 16px; }
    .v2-ufoot { padding: 12px 16px; }
}

/* "i" dos pendentes do cartão (Métricas) */
.v2-pay-row span .v2-info { margin-left: 6px; }
.v2-info { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--v2-border-strong); font-family: Georgia, serif; font-style: italic; font-size: 11px; font-weight: 700; color: var(--v2-body); cursor: help; vertical-align: 1px; }
.v2-info:hover, .v2-info:focus { color: var(--v2-text); border-color: var(--v2-orange-light); outline: none; }
.v2-tip { position: absolute; bottom: calc(100% + 8px); left: -10px; z-index: 20; width: 260px; padding: 12px 14px; border-radius: 12px; background: #1b1919; border: 1px solid var(--v2-border-strong); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); font-family: 'Inter', sans-serif; font-style: normal; font-weight: 400; text-align: left; opacity: 0; visibility: hidden; transition: opacity 120ms ease; pointer-events: none; }
.v2-info:hover .v2-tip, .v2-info:focus .v2-tip { opacity: 1; visibility: visible; }
.v2-tip b { display: block; margin-bottom: 8px; font-size: 12.5px; color: var(--v2-text); }
.v2-tip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.v2-tip li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--v2-body); }
.v2-tip li b { display: inline; margin: 0; font-family: var(--v2-mono); color: var(--v2-warn); }
