*{box-sizing:border-box}

:root{
    --bg:#07090d;
    --bg2:#0d1117;
    --card:var(--panel, #0f1520cc);
    --line:#263041;
    --text:#d4deee;
    --muted:#8491a7;
    --accent:#3de0b8;
    --accent2:#8c5bff;
    --badge:#ff5c5c;
    --shadow:0 20px 50px rgba(0,0,0,.45);
}

html,body{
    margin:0;
    padding:0;
    min-height:100%;
    background:
        radial-gradient(circle at top left, rgba(61,224,184,.10), transparent 30%),
        radial-gradient(circle at top right, rgba(140,91,255,.12), transparent 25%),
        linear-gradient(180deg, var(--bg), var(--bg2));
    color:var(--text);
    font-family:Inter, Arial, Helvetica, sans-serif;
}

body{
    position:relative;
    overflow-x:hidden;
}

.noise{
    position:fixed;
    inset:0;
    pointer-events:none;
    opacity:.05;
    background-image:
        linear-gradient(transparent 0%, rgba(255,255,255,.08) 50%, transparent 100%),
        radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size:100% 4px, 12px 12px;
    mix-blend-mode:screen;
}

a{
    color:var(--accent);
    text-decoration:none;
}

.topbar{
    position:sticky;
    top:0;
    z-index:60;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:18px 28px;
    border-bottom:1px solid rgba(255,255,255,.08);
    backdrop-filter:blur(10px);
    background:rgba(8,11,16,.78);
}

.brand{
    font-size:24px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.tagline{
    color:var(--muted);
    font-size:12px;
    letter-spacing:.18em;
    text-transform:uppercase;
    margin-top:4px;
}

.topbar-right{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.notice-pill,
.status-pill{
    display:inline-flex;
    align-items:center;
    padding:8px 12px;
    border-radius:999px;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.08em;
    border:1px solid rgba(255,255,255,.1);
}

.notice-pill{
    background:rgba(255,255,255,.04);
    color:var(--muted);
}

.status-pill{
    background:rgba(255,92,92,.12);
    color:#ffd2d2;
    border-color:rgba(255,92,92,.28);
}

.breaking-banner{
    display:grid;
    grid-template-columns:160px 1fr auto;
    gap:16px;
    align-items:center;
    padding:12px 24px;
    border-bottom:1px solid rgba(255,255,255,.08);
    background:
        linear-gradient(90deg, rgba(255,92,92,.18), rgba(255,92,92,.05)),
        rgba(18,8,8,.8);
}

.breaking-label{
    text-transform:uppercase;
    letter-spacing:.14em;
    font-size:12px;
    font-weight:700;
    color:#ffd2d2;
}

.breaking-content strong{
    display:block;
    margin-bottom:2px;
}

.breaking-content span{
    color:var(--muted);
    font-size:14px;
}

.ticker-wrap{
    overflow:hidden;
    border-bottom:1px solid rgba(255,255,255,.06);
    border-top:1px solid rgba(255,255,255,.04);
    background:rgba(255,255,255,.02);
}

.ticker-track{
    display:flex;
    width:max-content;
    animation:ticker-scroll 32s linear infinite;
    padding:10px 0;
}

.ticker-item{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:0 22px;
    color:#dfe7f5;
    white-space:nowrap;
    font-size:13px;
    letter-spacing:.06em;
    text-transform:uppercase;
}

.ticker-item::before{
    content:"◆";
    color:var(--accent);
    font-size:10px;
}

@keyframes ticker-scroll{
    from{transform:translateX(0)}
    to{transform:translateX(-50%)}
}

.layout{
    display:grid;
    grid-template-columns:320px 1fr 320px;
    gap:22px;
    padding:24px;
    max-width:1600px;
    margin:0 auto;
}

.detail-layout{
    display:grid;
    grid-template-columns:minmax(0, 1fr) 320px;
    gap:22px;
    padding:24px;
    max-width:1200px;
    margin:0 auto;
}

.victim-layout{
    display:grid;
    grid-template-columns:minmax(0, 1fr) 320px;
    gap:22px;
    padding:24px;
    max-width:1300px;
    margin:0 auto;
}

.victim-cases{
    grid-column:1 / -1;
    padding:22px;
}

.card{
    background:var(--card);
    border:1px solid rgba(255,255,255,.08);
    border-radius:20px;
    box-shadow:var(--shadow);
    backdrop-filter:blur(8px);
}

.left-panel,.side-card,.detail-side,.victim-side{
    padding:22px;
}

.center-panel{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.featured-case-card{
    padding:24px;
    border-color:rgba(61,224,184,.22);
    background:
        linear-gradient(135deg, rgba(61,224,184,.10), transparent 45%),
        linear-gradient(225deg, rgba(140,91,255,.10), transparent 40%),
        var(--card);
}

.featured-case-top{
    display:grid;
    grid-template-columns:minmax(0,1fr) 280px;
    gap:20px;
    align-items:start;
}

.featured-case-title{
    margin:0 0 10px 0;
    font-size:30px;
    line-height:1.1;
}

.featured-case-summary{
    color:var(--muted);
    line-height:1.7;
    margin:0;
}

.featured-case-side{
    display:grid;
    gap:10px;
}

.featured-kpi{
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.03);
    border-radius:14px;
    padding:12px 14px;
}

.featured-kpi span{
    display:block;
    color:var(--muted);
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.1em;
    margin-bottom:6px;
}

.featured-kpi strong{
    display:block;
    font-size:16px;
}

.panel-label{
    font-size:11px;
    color:var(--muted);
    letter-spacing:.22em;
    text-transform:uppercase;
    margin-bottom:10px;
}

.main-title{
    margin:0 0 10px 0;
    font-size:34px;
    line-height:1.1;
}

.lead,.small-note{
    color:var(--muted);
    line-height:1.6;
}

.metric-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-bottom:22px;
}

.metric-box{
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    padding:14px;
    background:rgba(255,255,255,.02);
}

.metric-label{
    font-size:11px;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:.15em;
    margin-bottom:8px;
}

.metric-value{
    font-size:24px;
    font-weight:700;
}

.severity-box{
    margin-bottom:20px;
}

.severity-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.severity-pill{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:10px 12px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.03);
}

.severity-pill span{
    color:#d8e2f0;
}

.severity-pill strong{
    text-transform:uppercase;
    font-size:12px;
    letter-spacing:.08em;
}

.severity-critical{ border-color:rgba(255,92,92,.28); }
.severity-high{ border-color:rgba(255,181,71,.28); }
.severity-medium{ border-color:rgba(61,224,184,.24); }

.filter-box{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.filter-box label{
    font-size:12px;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:.12em;
}

.filter-box input,
.filter-box select{
    width:100%;
    background:#081019;
    color:var(--text);
    border:1px solid var(--line);
    border-radius:12px;
    padding:12px 14px;
    outline:none;
}

.filter-box input:focus,
.filter-box select:focus{
    border-color:var(--accent);
    box-shadow:0 0 0 3px rgba(61,224,184,.12);
}

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:12px;
}

.section-head h2{
    margin:0;
}

.section-sub{
    color:var(--muted);
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.12em;
}

.updates-card,.latest-victims-card,.sample-wall-card{
    padding:20px;
}

.updates-list{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:16px;
}

.update-item{
    display:grid;
    grid-template-columns:72px 1fr;
    gap:12px;
    padding:12px 14px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.03);
}

.update-time{
    color:#ffd3d3;
    font-size:12px;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.update-title{
    font-weight:700;
    margin-bottom:4px;
}

.update-text{
    color:var(--muted);
    line-height:1.5;
    font-size:14px;
}

.victim-strip{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:16px;
}

.victim-pill{
    display:flex;
    flex-direction:column;
    gap:6px;
    min-width:220px;
    padding:14px 16px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.03);
    transition:transform .18s ease, border-color .18s ease;
}

.victim-pill:hover{
    transform:translateY(-2px);
    border-color:rgba(255,92,92,.35);
}

.victim-pill-top{
    display:flex;
    align-items:center;
    gap:10px;
}

.victim-mini-logo{
    width:32px;
    height:32px;
    border-radius:10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
    background:linear-gradient(135deg, var(--accent), var(--accent2));
    color:#061015;
    font-size:12px;
}

.victim-pill-name{
    font-weight:700;
    color:var(--text);
}

.victim-pill-meta{
    color:#ffd3d3;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.victim-pill-stage{
    color:var(--muted);
    font-size:12px;
}

.victim-logo-box{
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.03);
    border-radius:16px;
    padding:16px;
    text-align:center;
}

.victim-logo-box.small{
    margin-bottom:16px;
}

.victim-logo{
    width:72px;
    height:72px;
    border-radius:18px;
    margin:0 auto 10px auto;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
    font-size:24px;
    background:linear-gradient(135deg, var(--accent), var(--accent2));
    color:#061015;
}

.victim-logo-name{
    font-weight:700;
    margin-bottom:4px;
}

.victim-logo-stage{
    color:var(--muted);
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.victim-hero{
    display:grid;
    grid-template-columns:220px 1fr;
    gap:20px;
    align-items:start;
}

.victim-hero-body h1{
    margin-top:0;
}

.sample-wall-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:14px;
    margin-top:16px;
}

.sample-wall-item{
    padding:14px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(0,0,0,.20);
    color:#ced9ea;
    font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size:13px;
    line-height:1.6;
}

.listing-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
    gap:18px;
}

.listing-card{
    padding:18px;
    transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.listing-card:hover{
    transform:translateY(-3px);
    border-color:rgba(61,224,184,.22);
    box-shadow:0 24px 48px rgba(0,0,0,.5);
}

.countdown-card{
    border-color:rgba(255,92,92,.14);
    background:
        linear-gradient(180deg, rgba(255,92,92,.04), transparent 35%),
        var(--card);
}

.listing-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-bottom:12px;
}

.listing-status,
.listing-price{
    display:inline-flex;
    align-items:center;
    padding:6px 10px;
    border-radius:999px;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.listing-status{
    background:rgba(140,91,255,.18);
    color:#e4d7ff;
}

.listing-price{
    background:rgba(61,224,184,.14);
    color:#c9fff2;
}

.countdown-badge{
    background:rgba(255,92,92,.14);
    color:#ffd6d6;
    border:1px solid rgba(255,92,92,.2);
}

.listing-category{
    font-size:12px;
    color:var(--accent);
    letter-spacing:.15em;
    text-transform:uppercase;
    margin-bottom:8px;
}

.listing-card h3{
    margin:0 0 10px 0;
    font-size:20px;
    line-height:1.2;
}

.listing-card p,.detail-summary,.detail-body{
    color:var(--muted);
    line-height:1.7;
}

.listing-meta{
    display:flex;
    justify-content:space-between;
    gap:10px;
    margin-top:12px;
    font-size:12px;
    color:#a9b6ca;
    flex-wrap:wrap;
}

.phase-track{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:8px;
    margin-top:16px;
}

.phase-step{
    display:flex;
    flex-direction:column;
    gap:6px;
    align-items:flex-start;
    opacity:.45;
}

.phase-step.active{
    opacity:1;
}

.phase-dot{
    width:12px;
    height:12px;
    border-radius:999px;
    background:rgba(255,255,255,.14);
    border:1px solid rgba(255,255,255,.16);
}

.phase-step.active .phase-dot{
    background:var(--accent);
    box-shadow:0 0 16px rgba(61,224,184,.4);
}

.phase-text{
    font-size:11px;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:.06em;
    line-height:1.4;
}

.sample-box{
    margin-top:14px;
    padding:12px 14px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(0,0,0,.18);
}

.detail-sample-box{
    margin-top:18px;
}

.sample-head{
    display:flex;
    justify-content:space-between;
    gap:10px;
    margin-bottom:8px;
}

.sample-label{
    font-size:11px;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:.1em;
}

.sample-state{
    font-size:11px;
    color:#ffd6d6;
    text-transform:uppercase;
    letter-spacing:.1em;
}

.sample-preview{
    font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color:#ced9ea;
    font-size:13px;
    line-height:1.6;
    white-space:pre-wrap;
}

.samples-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:14px;
    margin-top:16px;
}

.sample-item{
    padding:14px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.03);
    cursor:pointer;
}

.sample-item:hover{
    border-color:rgba(61,224,184,.24);
}

.sample-file{
    font-weight:700;
    margin-bottom:6px;
}

.sample-desc{
    font-size:13px;
    color:var(--muted);
}

.tag-row,.victim-tags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:16px;
}

.tag-chip{
    border:1px solid rgba(255,255,255,.09);
    background:rgba(255,255,255,.03);
    color:#b9c5d9;
    font-size:11px;
    border-radius:999px;
    padding:7px 10px;
}

.listing-actions{
    margin-top:18px;
}

.dual-links{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.btn-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border-radius:12px;
    padding:10px 14px;
    font-weight:600;
    border:1px solid rgba(255,255,255,.1);
}

.vendor-list,.mail-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.vendor-card{
    display:flex;
    gap:12px;
    align-items:flex-start;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.03);
    border-radius:16px;
    padding:14px;
}

.vendor-avatar{
    width:42px;
    height:42px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
    background:linear-gradient(135deg, var(--accent), var(--accent2));
    color:#071015;
    flex:0 0 auto;
}

.vendor-card-body{
    flex:1 1 auto;
    min-width:0;
}

.vendor-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-bottom:8px;
}

.vendor-status{
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#c9fff2;
    background:rgba(61,224,184,.12);
    border:1px solid rgba(61,224,184,.18);
    border-radius:999px;
    padding:5px 8px;
}

.vendor-meta{
    display:flex;
    justify-content:space-between;
    gap:10px;
    color:var(--muted);
    font-size:12px;
    margin-bottom:6px;
}

.vendor-specialty{
    color:#d7e0ee;
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.mail-card{
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.03);
    border-radius:16px;
    padding:14px;
}

.mail-subject{
    font-weight:700;
    margin-bottom:4px;
}

.mail-meta{
    font-size:12px;
    color:var(--muted);
    margin-bottom:8px;
}

.mail-snippet{
    font-size:13px;
    color:#d6dfef;
    line-height:1.5;
}

.timeline{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.timeline-item{
    padding-left:14px;
    border-left:2px solid rgba(61,224,184,.35);
}

.timeline-time{
    font-size:12px;
    color:var(--accent);
    margin-bottom:5px;
    font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.timeline-text{
    color:#d7e0ee;
    line-height:1.5;
}

.detail-main,.victim-main{
    padding:24px;
}

.detail-main h1,.victim-main h1{
    margin:0 0 12px 0;
    font-size:34px;
}

.detail-body{
    margin-top:22px;
    font-size:15px;
}

.meta-row{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:10px 0;
    border-bottom:1px solid rgba(255,255,255,.06);
    color:var(--muted);
}

.meta-row strong{
    color:var(--text);
}

.chat-thread{
    display:flex;
    flex-direction:column;
    gap:14px;
    margin-top:18px;
}

.chat-msg{
    max-width:80%;
    padding:14px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.03);
}

.chat-msg.right{
    align-self:flex-end;
    background:rgba(61,224,184,.08);
}

.chat-meta{
    display:flex;
    justify-content:space-between;
    gap:10px;
    font-size:12px;
    margin-bottom:8px;
    color:var(--muted);
}

.chat-body{
    line-height:1.6;
    color:#dce5f4;
}

.viewer{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.72);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:100;
}

.viewer-content{
    width:min(900px, 92vw);
    max-height:82vh;
    overflow:auto;
    background:#0a1118;
    border:1px solid rgba(255,255,255,.12);
    border-radius:18px;
    padding:18px;
    box-shadow:0 20px 60px rgba(0,0,0,.6);
}

.viewer-close{
    margin-bottom:14px;
    background:rgba(255,255,255,.08);
    color:#fff;
    border:1px solid rgba(255,255,255,.12);
    border-radius:10px;
    padding:8px 12px;
    cursor:pointer;
}

.viewer-body{
    white-space:pre-wrap;
    color:#dce5f4;
    font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    line-height:1.6;
    margin:0;
}

@media (max-width:1180px){
    .layout{grid-template-columns:1fr}
    .detail-layout{grid-template-columns:1fr}
    .victim-layout{grid-template-columns:1fr}
    .featured-case-top{grid-template-columns:1fr}
    .victim-hero{grid-template-columns:1fr}
}

@media (max-width:700px){
    .breaking-banner{grid-template-columns:1fr}
    .phase-track{grid-template-columns:1fr 1fr}
}

@media (max-width:640px){
    .topbar{padding:16px}
    .layout,.detail-layout,.victim-layout{padding:16px}
    .main-title,.detail-main h1,.victim-main h1,.featured-case-title{font-size:28px}
    .metric-grid{grid-template-columns:1fr}
    .update-item{grid-template-columns:1fr}
}