/* invest2.css — a modern "piece of art" overrides layer for the investigation
   pages (domain result + victim detail). Loaded AFTER invest.css so it wins.
   Everything is brand-tokened and works in light + dark. */

/* ---------- generic panels ---------- */
.section { background:var(--surface); border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow-sm); overflow:hidden; margin-bottom:16px; }
.section > .head { display:flex; align-items:center; gap:12px; padding:15px 18px; border-bottom:1px solid var(--border); background:linear-gradient(180deg,var(--surface),var(--surface-2)); }
.section > .head .ic { width:38px; height:38px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:18px; background:var(--brand-tint); border-radius:11px; }
.section > .head .t { font-family:var(--display); font-weight:700; font-size:15px; color:var(--text); }
.section > .head .st { font-size:12px; color:var(--text-faint); }
.section > .head .r { margin-left:auto; }
.section > .body { padding:16px 18px; }
.loaded-pill { background:var(--brand-tint); color:var(--brand-600); font-weight:700; font-size:11px; padding:5px 12px; border-radius:9999px; font-family:var(--mono); }

/* ---------- clean underline tabs ---------- */
.vtabs, .subtabs { display:flex; gap:3px; flex-wrap:wrap; border-bottom:1px solid var(--border); margin-bottom:14px; }
.vtabs a, .subtabs a { padding:9px 13px; font-size:13px; color:var(--text-dim); border-bottom:2px solid transparent; margin-bottom:-1px; font-weight:500; border-radius:8px 8px 0 0; }
.vtabs a:hover, .subtabs a:hover { color:var(--text); background:var(--surface-2); text-decoration:none; }
.vtabs a.on, .subtabs a.on { color:var(--brand-600); border-bottom-color:var(--brand); font-weight:700; }
.vtabs .b, .subtabs .b { display:inline-block; margin-left:5px; background:var(--surface-2); color:var(--text-dim); border-radius:9999px; padding:1px 7px; font-size:11px; }
.vtabs a.on .b, .subtabs a.on .b { background:var(--brand-tint); color:var(--brand-600); }

/* ---------- victim: header ---------- */
.vhead { display:flex; align-items:center; gap:16px; flex-wrap:wrap; background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:18px 20px; margin-bottom:16px; box-shadow:var(--shadow-sm); position:relative; overflow:hidden; }
.vhead:before { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background:linear-gradient(#A3238E,#EC008C); }
.vhead .ic { width:54px; height:54px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:26px; background:var(--brand-tint); border-radius:14px; }
.vhead h1 { margin:0; font-family:var(--display); font-size:20px; word-break:break-all; line-height:1.15; }

/* ---------- victim: signal KPI tiles ---------- */
.signals { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:12px; margin-bottom:18px; }
.signal { position:relative; background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:14px 16px; overflow:hidden; box-shadow:var(--shadow-sm); }
.signal:before { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--border-strong); }
.signal.hot:before { background:linear-gradient(#A3238E,#EC008C); }
.signal .l { font-size:11px; color:var(--text-faint); text-transform:uppercase; letter-spacing:.03em; }
.signal .n { font-family:var(--display); font-size:24px; font-weight:700; letter-spacing:-.02em; color:var(--text); margin-top:3px; }
.signal.hot .n { color:var(--brand-600); }

/* ---------- victim: key-value box ---------- */
.kvbox { display:grid; grid-template-columns:auto 1fr; gap:0 16px; background:var(--surface-2); border:1px solid var(--border); border-radius:12px; padding:6px 16px; }
.kvbox .k { color:var(--text-faint); font-size:12.5px; padding:9px 0; border-bottom:1px solid var(--border); }
.kvbox .v { color:var(--text); font-size:12.5px; padding:9px 0; border-bottom:1px solid var(--border); text-align:right; }
.kvbox .k:last-of-type, .kvbox .v:last-of-type { border-bottom:none; }
.artifact { display:inline-block; margin:0 8px 8px 0; padding:6px 12px; border-radius:9999px; font-size:12px; background:var(--surface-2); border:1px solid var(--border); color:var(--text-faint); }
.artifact.on { background:var(--brand-tint); border-color:transparent; color:var(--brand-600); font-weight:600; }

/* ---------- domain result: layout + IP sidebar ---------- */
.invest { display:grid; grid-template-columns:290px 1fr; gap:16px; align-items:start; }
@media(max-width:900px){ .invest { grid-template-columns:1fr; } }
.ipside { position:sticky; top:16px; background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:14px; box-shadow:var(--shadow-sm); max-height:calc(100vh - 40px); overflow:auto; }
.ipside h3 { font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--text-faint); margin:2px 2px 10px; }
.ipcard { display:block; background:var(--surface-2); border:1px solid var(--border); border-radius:12px; padding:11px 13px; margin-bottom:9px; transition:border-color .12s, transform .1s, box-shadow .12s; }
a.ipcard:hover { border-color:var(--brand); box-shadow:0 4px 14px var(--brand-tint); transform:translateY(-1px); text-decoration:none; }
.ipcard .ip { display:flex; align-items:center; gap:7px; font-family:var(--mono); font-size:13px; color:var(--text); font-weight:600; }
.ipcard .ip .dot { width:8px; height:8px; border-radius:50%; background:var(--brand); box-shadow:0 0 0 3px var(--brand-tint); flex-shrink:0; }
.ipcard .ip .count { margin-left:auto; color:var(--text-faint); font-size:11px; font-weight:400; }
.ipcard .kv { display:grid; grid-template-columns:auto 1fr; gap:2px 10px; margin-top:8px; font-size:11.5px; }
.ipcard .kv .k { color:var(--text-faint); } .ipcard .kv .v { color:var(--text-dim); text-align:right; }
.ipcard .pivot-cta { margin-top:9px; font-size:11px; color:var(--brand-600); font-weight:700; opacity:0; transition:opacity .12s; }
a.ipcard:hover .pivot-cta { opacity:1; }

/* ---------- domain result: premium summary cards ---------- */
.sumrow { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:16px; }
@media(max-width:640px){ .sumrow { grid-template-columns:1fr; } }
.sumcard { position:relative; background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:18px 20px; overflow:hidden; box-shadow:var(--shadow-sm); }
.sumcard:after { content:''; position:absolute; right:-40px; top:-40px; width:130px; height:130px; border-radius:50%; background:var(--brand-tint); opacity:.5; }
.sumcard .ic { width:44px; height:44px; display:flex; align-items:center; justify-content:center; font-size:22px; background:var(--brand-tint); border-radius:12px; position:relative; z-index:1; }
.sumcard .ic.warn { background:color-mix(in srgb, #f59e0b 18%, transparent); }
.sumcard h2 { font-family:var(--display); font-size:16px; margin:12px 0 1px; position:relative; z-index:1; }
.sumcard .sub { color:var(--text-faint); font-size:12px; position:relative; z-index:1; }
.sumcard .big { font-family:var(--display); font-size:34px; font-weight:700; letter-spacing:-.03em; color:var(--text); margin:10px 0 2px; position:relative; z-index:1; }
.sumcard .big small { font-size:12px; font-weight:500; color:var(--text-faint); margin-left:7px; letter-spacing:0; }
.sumcard .mini { display:flex; gap:16px; flex-wrap:wrap; margin-top:8px; position:relative; z-index:1; }
.sumcard .mini div { font-size:12px; color:var(--text-dim); }
.sumcard .mini b { color:var(--text); font-family:var(--display); }

/* ---------- result cards (credential / victim) ---------- */
.cred { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:14px 16px; margin-bottom:12px; box-shadow:var(--shadow-sm); transition:border-color .12s, box-shadow .12s, transform .1s; }
.cred:hover { border-color:var(--border-strong); box-shadow:var(--shadow); transform:translateY(-1px); }
.cred .top { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.cred .tag { font-size:10.5px; font-weight:700; padding:3px 9px; border-radius:9999px; text-transform:uppercase; letter-spacing:.03em; border:1px solid transparent; }
.cred .tag.stealer { background:color-mix(in srgb,#f59e0b 16%,transparent); color:#b45309; }
.cred .tag.infected { background:color-mix(in srgb,#ef4444 15%,transparent); color:#dc2626; }
.cred .tag.matched { background:var(--surface-2); color:var(--text-dim); border-color:var(--border); }
.cred .creds-badge { background:var(--brand-tint); color:var(--brand-600); font-size:11px; font-weight:700; padding:3px 10px; border-radius:9999px; }
.cred .loc { font-size:12px; color:var(--text-dim); }
.cred .when { margin-left:auto; font-size:10.5px; color:var(--text-faint); text-align:right; font-family:var(--mono); line-height:1.4; }
.cred .name { font-family:var(--display); font-weight:700; font-size:15px; margin-bottom:10px; word-break:break-all; }
.cred .url { font-family:var(--mono); font-size:12px; color:var(--brand-700); background:var(--brand-tint); border-radius:8px; padding:8px 11px; margin-bottom:12px; word-break:break-all; }
.cred .fields, .cred .grid2 { display:grid; grid-template-columns:1fr 1fr; gap:10px 16px; }
@media(max-width:560px){ .cred .fields, .cred .grid2 { grid-template-columns:1fr; } }
.cred .fld .lbl { font-size:11px; color:var(--text-faint); margin-bottom:3px; }
.cred .fld .val { font-size:13px; color:var(--text); word-break:break-all; }
.cred .fld .val.pw, .cred .val.pw { font-family:var(--mono); color:var(--brand-700); }
.cred .foot { display:flex; gap:8px; flex-wrap:wrap; margin-top:13px; padding-top:12px; border-top:1px solid var(--border); }
.chipset { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.chipset .c { display:inline-block; background:var(--surface-2); border:1px solid var(--border); border-radius:8px; padding:3px 9px; font-size:11.5px; font-family:var(--mono); color:var(--text-dim); }
