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

body{
font-family:Inter, Arial, sans-serif;
background:#050505;
color:white;
overflow-x:hidden;
}

.detect-page{
min-height:100vh;
position:relative;
padding:30px 5% 50px;
overflow:hidden;
}

/* BACKGROUND */
.detect-grid{
position:absolute;
inset:0;
background-image:
linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
background-size:60px 60px;
opacity:.35;
z-index:0;
}

.detect-glow{
position:absolute;
width:520px;
height:520px;
right:-100px;
top:80px;
background:radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
filter:blur(60px);
z-index:0;
}

/* NAV */
.detect-nav{
position:relative;
z-index:2;
display:flex;
justify-content:space-between;
align-items:center;
padding:18px 26px;
border:1px solid rgba(255,255,255,.06);
border-radius:24px;
background:rgba(255,255,255,.02);
backdrop-filter:blur(10px);
margin-bottom:50px;
}

.detect-logo{
font-size:18px;
font-weight:700;
}

.detect-links{
display:flex;
gap:28px;
}

.detect-links a{
color:#d1d5db;
text-decoration:none;
font-size:15px;
transition:.25s ease;
}

.detect-links a:hover{
color:white;
}

/* HEADER */
.detect-head{
position:relative;
z-index:2;
text-align:center;
max-width:900px;
margin:0 auto 45px;
}

.detect-tag{
font-size:13px;
letter-spacing:4px;
color:#60a5fa;
margin-bottom:18px;
}

.detect-head h1{
font-size:68px;
line-height:1.05;
margin-bottom:18px;
font-weight:700;
}

.detect-sub{
font-size:20px;
line-height:1.7;
color:#9ca3af;
}

/* DASHBOARD */
.detect-shell{
position:relative;
z-index:2;
display:grid;
grid-template-columns:1.55fr .75fr;
gap:26px;
align-items:stretch;
}

/* CAMERA */
.camera-panel{
background:rgba(255,255,255,.02);
border:1px solid rgba(255,255,255,.06);
border-radius:28px;
padding:20px;
display:flex;
flex-direction:column;
}

.panel-top{
display:flex;
align-items:center;
gap:10px;
font-size:14px;
color:#d1d5db;
margin-bottom:16px;
}

.live-dot{
width:10px;
height:10px;
border-radius:50%;
background:#22c55e;
box-shadow:0 0 12px #22c55e;
animation:pulseDot 1.5s infinite;
}

#video,
#canvas{
width:100%;
height:480px;
object-fit:cover;
border-radius:20px;
background:#0b0b0b;
}

#canvas{
display:none;
}

.camera-status{
margin-top:14px;
font-size:15px;
color:#60a5fa;
font-weight:600;
}

/* RIGHT PANEL */
.status-panel{
display:grid;
grid-template-columns:1fr;
gap:16px;
}

.stat-card{
padding:22px;
border-radius:24px;
background:rgba(255,255,255,.02);
border:1px solid rgba(255,255,255,.06);
}

.stat-card p{
font-size:13px;
color:#9ca3af;
margin-bottom:10px;
letter-spacing:1px;
text-transform:uppercase;
}

.stat-card h3{
font-size:28px;
font-weight:700;
}

.detect-btn{
margin-top:10px;
padding:18px;
border:none;
border-radius:999px;
background:white;
color:black;
font-weight:700;
font-size:16px;
cursor:pointer;
transition:.25s ease;
}

.detect-btn:hover{
transform:translateY(-3px);
}

/* BOTTOM */
.bottom-strip{
position:relative;
z-index:2;
margin-top:28px;
display:flex;
justify-content:center;
gap:28px;
flex-wrap:wrap;
color:#d1d5db;
font-size:14px;
}

.bottom-strip span{
display:flex;
align-items:center;
gap:8px;
}

.bottom-strip i{
width:8px;
height:8px;
border-radius:50%;
background:#60a5fa;
box-shadow:0 0 10px #60a5fa;
}

/* ANIMATIONS */
@keyframes pulseDot{
0%,100%{opacity:1;}
50%{opacity:.35;}
}

/* RESPONSIVE */
@media(max-width:1100px){

.detect-head h1{
font-size:54px;
}

.detect-shell{
grid-template-columns:1fr;
}

#video,
#canvas{
height:420px;
}
}

@media(max-width:768px){

.detect-page{
padding:18px 4% 40px;
}

.detect-nav{
flex-direction:column;
gap:14px;
}

.detect-links{
gap:18px;
flex-wrap:wrap;
justify-content:center;
}

.detect-head h1{
font-size:38px;
}

.detect-sub{
font-size:17px;
}

#video,
#canvas{
height:300px;
}

.stat-card h3{
font-size:22px;
}
}


/* ===== NAVBAR ===== */

.detect-nav{
width:92%;
max-width:1400px;

margin:28px auto 42px;
padding:16px 24px;

display:flex;
justify-content:space-between;
align-items:center;

background:rgba(255,255,255,0.03);
border:1px solid rgba(255,255,255,0.06);
border-radius:22px;

backdrop-filter:blur(14px);
-webkit-backdrop-filter:blur(14px);

box-shadow:
0 10px 30px rgba(0,0,0,0.35),
inset 0 1px 0 rgba(255,255,255,0.03);

position:relative;
z-index:10;
}

/* LOGO */
.detect-logo{
display:flex;
align-items:center;
gap:12px;

text-decoration:none;
color:#fff;

font-size:28px;
font-weight:800;
letter-spacing:-0.5px;

transition:0.3s ease;
}

.detect-logo:hover{
opacity:.9;
transform:translateY(-1px);
}

/* BLUE LIVE DOT */
.logo-dot{
width:10px;
height:10px;
border-radius:50%;

background:#3b82f6;

box-shadow:
0 0 10px #3b82f6,
0 0 22px rgba(59,130,246,.6);

animation:pulseDot 1.8s infinite;
}

@keyframes pulseDot{
0%,100%{
transform:scale(1);
opacity:1;
}
50%{
transform:scale(1.45);
opacity:.7;
}
}

/* HOME BUTTON */
.nav-home-btn{
text-decoration:none;
color:#fff;

font-size:15px;
font-weight:600;

padding:12px 22px;
border-radius:999px;

background:rgba(255,255,255,0.04);
border:1px solid rgba(255,255,255,0.08);

transition:all .3s ease;
}

.nav-home-btn:hover{
background:#fff;
color:#000;

transform:translateY(-2px);

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

/* MOBILE */
@media(max-width:768px){

.detect-nav{
width:94%;
margin:18px auto 28px;
padding:14px 18px;
border-radius:18px;
}

.detect-logo{
font-size:22px;
gap:10px;
}

.logo-dot{
width:8px;
height:8px;
}

.nav-home-btn{
padding:10px 16px;
font-size:14px;
}

}

/* ===== MINIMAL PREMIUM NAVBAR ===== */

.detect-nav{
width:92%;
max-width:1400px;

margin:28px auto 42px;
padding:18px 28px;

display:flex;
justify-content:flex-start;
align-items:center;

background:rgba(255,255,255,0.03);
border:1px solid rgba(255,255,255,0.06);
border-radius:22px;

backdrop-filter:blur(14px);
-webkit-backdrop-filter:blur(14px);

box-shadow:
0 10px 30px rgba(0,0,0,0.35),
inset 0 1px 0 rgba(255,255,255,0.03);

position:relative;
z-index:10;
}

/* LOGO ONLY */
.detect-logo{
text-decoration:none;
color:#fff;

font-size:28px;
font-weight:800;
letter-spacing:-0.5px;

display:flex;
align-items:center;

transition:all .3s ease;
}

.detect-logo:hover{
opacity:.9;
transform:translateY(-1px) scale(1.01);
}

/* REMOVE UNUSED ELEMENTS */
.logo-dot,
.nav-home-btn{
display:none;
}

/* MOBILE */
@media(max-width:768px){

.detect-nav{
width:94%;
margin:18px auto 28px;
padding:14px 18px;
border-radius:18px;
}

.detect-logo{
font-size:22px;
}

}