*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#05070A;
    color:#d9d9d9;
    font-family:'Share Tech Mono', monospace;
    overflow-x:hidden;
}

/* =====================================================
   CRT OVERLAY
===================================================== */

body::before{

    content:"";

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.02),
        rgba(255,255,255,0.02) 1px,
        transparent 1px,
        transparent 3px
    );

    pointer-events:none;

    z-index:999;

}

/* =====================================================
   TOPBAR
===================================================== */

.topbar{

    width:100%;

    padding:18px 40px;

    border-bottom:1px solid rgba(124,255,124,0.15);

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:#06090d;

}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-main {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 3px;
     color:#7CFF7C;

}

.logo-sub {
    font-size: .65rem;
    letter-spacing: 4px;
    opacity: .65;
    text-transform: uppercase;
     color:#7CFF7C;

}

.logo:hover{

    opacity:0.7;

}

.system{

    color:rgba(255,255,255,0.45);

    font-size:13px;

    letter-spacing:2px;

}

/* =====================================================
   BREADCRUMB
===================================================== */

.breadcrumb{

    display:flex;

    align-items:center;

    gap:10px;

    color:rgba(255,255,255,0.35);

    font-size:12px;

    letter-spacing:2px;

}

.breadcrumb a{

    color:rgba(255,255,255,0.45);

    text-decoration:none;

    transition:0.3s;

}

.breadcrumb a:hover{

    color:#7CFF7C;

}

.breadcrumb span{

    opacity:0.5;

}

.breadcrumb .active{

    color:#7CFF7C;

    opacity:1;

}

/* =====================================================
   LAYOUT
===================================================== */

.wrapper{

    display:flex;

    min-height:100vh;

}

/* =====================================================
   SIDEBAR
===================================================== */

.sidebar{

    width:280px;

    border-right:1px solid rgba(124,255,124,0.08);

    padding:40px 25px;

    background:#070b10;

}

.sidebar-title{

    color:#7CFF7C;

    font-size:15px;

    margin-bottom:25px;

    letter-spacing:3px;

}

.nav{

    display:flex;

    flex-direction:column;

    gap:16px;

}

.nav a{

    color:#cfcfcf;

    text-decoration:none;

    padding:12px 14px;

    border-left:2px solid transparent;

    transition:0.3s;

    letter-spacing:1px;

}

.nav a:hover{

    background:rgba(124,255,124,0.05);

    border-left:2px solid #7CFF7C;

    color:#7CFF7C;

}

/* =====================================================
   CONTENT
===================================================== */

.content{

    flex:1;

    padding:50px;

}

/* =====================================================
   PAGE HEADER
===================================================== */

.page-title{

    font-family:'Oswald', sans-serif;

    font-size:70px;

    letter-spacing:6px;

    margin-bottom:10px;

    text-transform:uppercase;

}

.page-sub{

    color:#7CFF7C;

    margin-bottom:50px;

    letter-spacing:3px;

}

/* =====================================================
   CASE GRID
===================================================== */

.case-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:30px;

}

/* =====================================================
   CASE CARD
===================================================== */

.case-card{

    background:#0c1117;

    border:1px solid rgba(255,255,255,0.06);

    padding:30px;

    position:relative;

    overflow:hidden;

    transition:0.3s;

}

.case-card:hover{

    transform:translateY(-5px);

    border-color:rgba(124,255,124,0.3);

    box-shadow:0 0 25px rgba(124,255,124,0.08);

}

.case-number{

    color:#7CFF7C;

    font-size:14px;

    letter-spacing:2px;

    margin-bottom:12px;

}

.case-title{

    font-family:'Oswald', sans-serif;

    font-size:38px;

    margin-bottom:20px;

    letter-spacing:2px;

}

.case-desc{

    color:#b5b5b5;

    line-height:1.8;

    margin-bottom:30px;

}

.case-status{

    display:inline-block;

    padding:8px 14px;

    border:1px solid rgba(176,58,46,0.6);

    color:#ff8d8d;

    margin-bottom:25px;

    font-size:13px;

    letter-spacing:2px;

}

/* CHAPTER */

.chapter{
    background:#0b1117;
    border:1px solid rgba(255,255,255,0.06);
    padding:35px;
    transition:0.3s;
}

.chapter:hover{
    border-color:rgba(124,255,124,0.25);
    transform:translateY(-4px);
    box-shadow:0 0 25px rgba(124,255,124,0.08);
}

.chapter-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:15px;
    margin-bottom:20px;
}

.chapter-id{
    color:#7CFF7C;
    font-size:14px;
    letter-spacing:2px;
}

.chapter-date{
    color:#8f8f8f;
    font-size:13px;
}

.chapter-title{
    font-family:'Oswald', sans-serif;
    font-size:42px;
    margin-bottom:20px;
    letter-spacing:2px;
}

.chapter-desc{
    color:#c5c5c5;
    line-height:1.9;
    margin-bottom:30px;
}


/* =====================================================
   BUTTONS
===================================================== */

.case-button{

    display:inline-block;

    padding:14px 22px;

    border:1px solid #7CFF7C;

    color:#7CFF7C;

    text-decoration:none;

    transition:0.3s;

    letter-spacing:2px;

}

.case-button:hover{

    background:#7CFF7C;

    color:black;

}

/* =====================================================
   EVIDENCE
===================================================== */
.evidence{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:25px;
}

.tag{
    border:1px solid rgba(124,255,124,0.2);
    padding:8px 12px;
    color:#7CFF7C;
    font-size:12px;
    letter-spacing:2px;
}


/* =====================================================
   TERMINAL BUTTON
===================================================== */

.terminal-button{

    display:inline-flex;

    align-items:center;

    gap:10px;

    padding:18px 28px;

    background:black;

    border:1px solid rgba(124,255,124,0.35);

    color:#7CFF7C;

    text-decoration:none;

    letter-spacing:3px;

    font-family:'Share Tech Mono', monospace;

    transition:0.3s;

    box-shadow:
    0 0 18px rgba(124,255,124,0.08);

}

.terminal-button:hover{

    background:#071107;

    box-shadow:
    0 0 30px rgba(124,255,124,0.22);

}

.terminal-prompt{

    color:#7CFF7C;

}

.cursor{

    animation:blink 1s infinite;

}

@keyframes blink{

    0%{opacity:1;}
    50%{opacity:0;}
    100%{opacity:1;}

}

/* =====================================================
   DASHBOARD
===================================================== */

.description{

    max-width:900px;

    color:#cfcfcf;

    line-height:2;

    font-size:18px;

    margin-bottom:50px;

}

.status-panel{

    display:flex;

    flex-wrap:wrap;

    gap:20px;

    margin-bottom:50px;

}

.status-box{

    min-width:220px;

    background:#0c1117;

    border:1px solid rgba(124,255,124,0.12);

    padding:25px;

}

.status-label{

    color:#7CFF7C;

    letter-spacing:2px;

    margin-bottom:12px;

    font-size:13px;

}

.status-value{

    font-size:34px;

    font-family:'Oswald', sans-serif;

}

.alert{

    background:black;

    border:1px solid rgba(255,0,0,0.2);

    padding:30px;

    margin-bottom:50px;

    color:#7CFF7C;

    line-height:2;

}

.alert-title{

    color:#ff6b6b;

    margin-bottom:20px;

    letter-spacing:3px;

}

/* =====================================================
   MENU
===================================================== */

.menu{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:25px;

}

.menu-item{

    background:#0c1117;

    border:1px solid rgba(255,255,255,0.06);

    padding:30px;

    text-decoration:none;

    color:white;

    transition:0.3s;

}

.menu-item:hover{

    transform:translateY(-5px);

    border-color:rgba(124,255,124,0.25);

    box-shadow:0 0 25px rgba(124,255,124,0.08);

}

.menu-title{

    font-family:'Oswald', sans-serif;

    font-size:34px;

    margin-bottom:15px;

    letter-spacing:2px;

}

.menu-desc{

    color:#bcbcbc;

    line-height:1.8;

}

/* =====================================================
   AGENT DATABASE
===================================================== */

.agent-hero{
    padding:50px;
    margin-bottom:35px;
    background:
    linear-gradient(rgba(0,0,0,0.74), rgba(0,0,0,0.92)),
    url('https://images.unsplash.com/photo-1520034475321-cbe63696469a?q=80&w=1600&auto=format&fit=crop')
    center/cover no-repeat;
    border:1px solid rgba(124,255,124,0.12);
}

.agent-node{
    color:#7CFF7C;
    letter-spacing:3px;
    margin-bottom:18px;
    font-size:14px;
}

.agent-hero h1{
    font-family:'Oswald', sans-serif;
    font-size:64px;
    line-height:1;
    letter-spacing:6px;
    margin-bottom:22px;
}

.agent-hero p{
    max-width:820px;
    color:#d0d0d0;
    font-size:18px;
    line-height:2;
}

.personnel-category {
    margin: 50px 0 25px;
    padding-bottom: 10px;

    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;

    color: var(--green);

    border-bottom: 1px solid rgba(0,255,120,.25);

    text-shadow: 0 0 6px rgba(0,255,120,.25);
}

.personnel-category::before {
    content: ">> ";
    color: var(--green-bright);
    opacity: .8;
}

.personnel-category::after {
    content: " ◼";
    color: var(--green-bright);
    font-size: .8em;
    opacity: .5;
}

.agent-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:28px;
}

.agent-card{
    position:relative;
    background:#0c1117;
    border:1px solid rgba(255,255,255,0.06);
    overflow:hidden;
    transition:0.3s;
}

.agent-card:hover{
    transform:translateY(-4px);
    border-color:rgba(124,255,124,0.25);
    box-shadow:0 0 25px rgba(124,255,124,0.08);
}

.agent-top{
    padding:30px;
    border-bottom:1px solid rgba(255,255,255,0.05);
}

.agent-id{
    color:#7CFF7C;
    font-size:13px;
    letter-spacing:3px;
    margin-bottom:18px;
}

.agent-name{
    font-family:'Oswald', sans-serif;
    font-size:38px;
    letter-spacing:2px;
    margin-bottom:14px;
}

.agent-status{
    display:inline-block;
    padding:8px 14px;
    border:1px solid rgba(124,255,124,0.25);
    color:#7CFF7C;
    font-size:12px;
    letter-spacing:2px;
    margin-bottom:16px;
}

.agent-status-alert{
    border-color:rgba(255,112,112,0.35);
    color:#ff7070;
}

.agent-role{
    color:#ff8d8d;
    letter-spacing:2px;
    line-height:1.6;
}

.agent-body{
    padding:30px;
}

.agent-data,
.agent-info{
    color:#c8c8c8;
    line-height:2.1;
    margin-bottom:28px;
}

.agent-desc{
    color:#bcbcbc;
    line-height:1.8;
    margin-bottom:28px;
}

.agent-info{
    border-top:1px solid rgba(255,255,255,0.08);
    padding-top:20px;
    color:#8f8f8f;
    font-size:14px;
}

.redacted{
    background:black;
    color:#ff7070;
    padding:3px 8px;
    letter-spacing:2px;
}

.agent-notes{
    margin-top:28px;
    border-top:1px solid rgba(255,255,255,0.05);
    padding-top:24px;
    color:#9d9d9d;
    line-height:1.9;
}

.agent-quote{
    margin-top:25px;
    padding-left:18px;
    border-left:2px solid #7CFF7C;
    color:#d5d5d5;
    font-style:italic;
    line-height:1.8;
}

.agent-warning{
    margin-top:40px;
    border:1px solid rgba(176,58,46,0.5);
    background:rgba(176,58,46,0.08);
    padding:25px;
    color:#ff8d8d;
}

.agent-warning h2{
    font-family:'Oswald', sans-serif;
    color:#ff5e5e;
    font-size:28px;
    letter-spacing:3px;
    margin-bottom:15px;
}

.agent-warning p{
    line-height:1.8;
}

.locked{
    position:relative;
    filter:blur(1.4px);
}

.locked::after{
    content:"ACCESS DENIED";
    position:absolute;
    inset:0;
    display:flex;
    justify-content:center;
    align-items:center;
    background:rgba(0,0,0,0.72);
    color:#ff7070;
    font-family:'Oswald', sans-serif;
    font-size:26px;
    letter-spacing:5px;
    text-align:center;
}

.agent-terminal{
    margin-top:40px;
    background:black;
    border:1px solid rgba(124,255,124,0.18);
    color:#7CFF7C;
    padding:30px;
    line-height:2;
    letter-spacing:1px;
}

/* =====================================================
   FOOTER
===================================================== */

.footer{

    margin-top:70px;

    color:rgba(255,255,255,0.2);

    letter-spacing:3px;

    font-size:12px;

}

/* =====================================================
   GLITCH
===================================================== */

.glitch{

    position:relative;

    animation:flicker 5s infinite;

}


@keyframes flicker{

    0%{opacity:1;}
    2%{opacity:0.9;}
    4%{opacity:1;}
    70%{opacity:1;}
    72%{opacity:0.85;}
    100%{opacity:1;}

}



/* =====================================================
   CASE FILES
===================================================== */


.case-main{
    display:grid;
    grid-template-columns:320px 1fr;
    gap:50px;
    padding:60px;
}

/* SIDEBAR */

.case-sidebar{
    display:flex;
    flex-direction:column;
    gap:30px;
}

/* CONTENT */

.case-content{
    display:flex;
    flex-direction:column;
    gap:35px;
}


/* HERO */

.hero{
    min-height:65vh;
    position:relative;
    display:flex;
    align-items:flex-end;
    padding:80px;
    background:
    linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.92)),
    url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?q=80&w=1600&auto=format&fit=crop')
    center/cover no-repeat;
    border-bottom:1px solid rgba(124,255,124,0.12);
}

.hero-content{
    max-width:850px;
}

.case-id{
    color:#7CFF7C;
    letter-spacing:3px;
    margin-bottom:20px;
    font-size:14px;
}

.hero h1{
    font-family:'Oswald', sans-serif;
    font-size:110px;
    line-height:1;
    letter-spacing:8px;
    margin-bottom:25px;
}

.hero-subtitle{
    color:#7CFF7C;
    font-size:20px;
    letter-spacing:3px;
    margin-bottom:35px;
}

.hero-description{
    font-size:20px;
    line-height:1.8;
    color:#d0d0d0;
    max-width:700px;
}

/* INFO BOX */

.box{
    background:#0b1117;
    border:1px solid rgba(255,255,255,0.06);
    padding:30px;
}

.box-title{
    color:#7CFF7C;
    margin-bottom:25px;
    letter-spacing:3px;
    font-size:15px;
}

.box p{
    line-height:2;
    color:#bcbcbc;
}

.box-status{
    display:inline-block;
    padding:10px 16px;
    border:1px solid rgba(176,58,46,0.5);
    color:#ff8d8d;
    margin-top:15px;
    letter-spacing:2px;
    font-size:13px;
}


/* CHARACTER LIST */

.character{
    margin-bottom:25px;
}

.character-name{
    color:white;
    margin-bottom:8px;
    font-size:18px;
}

.character-desc{
    color:#9f9f9f;
    line-height:1.7;
    font-size:14px;
}

/* =====================================================
   MOBILE
===================================================== */

@media(max-width:900px){

.wrapper{

    flex-direction:column;

}

.sidebar{

    width:100%;

    border-right:none;

    border-bottom:1px solid rgba(124,255,124,0.08);

}

.content{

    padding:30px;

}

.page-title{

    font-size:48px;

}

.agent-hero{

    padding:35px 28px;

}

.agent-hero h1{

    font-size:42px;

}

.agent-grid{

    grid-template-columns:1fr;

}


}

.entry-date{

    margin-top:15px;

    font-family:'Share Tech Mono', monospace;

    font-size:12px;

    letter-spacing:3px;

    color:#7CFF7C;

    opacity:.8;

}
.entry-meta{

    margin-top:20px;

    display:flex;

    gap:20px;

    justify-content:left;

    font-family:'Share Tech Mono', monospace;

    color:#7CFF7C;

    letter-spacing:2px;

    opacity:.8;

}




/* =====================================================
   AUDIO CONTROL
===================================================== */

.audio-control{
    position:fixed;

    bottom:25px;
    right:25px;

    display:flex;
    align-items:center;
    gap:12px;

    background:#05070A;

    border:1px solid rgba(124,255,124,0.15);

    padding:12px 16px;

    cursor:pointer;

    z-index:1000;

    transition:0.3s;
}

.audio-control:hover{
    border-color:#7CFF7C;

    box-shadow:
    0 0 20px rgba(124,255,124,0.12);
}

.audio-icon{
    color:#7CFF7C;

    font-size:18px;
}

.audio-text{
    font-size:12px;

    letter-spacing:2px;

    color:#9fcf9f;
}