:root{
--bg:#050816;
--panel:rgba(17,25,40,0.75);
--line:#00e5ff;
--live:#ff0055;
--text:#ecf3ff;
--border:rgba(0,229,255,0.25);
}

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Segoe UI,sans-serif;
}

body{
background:linear-gradient(135deg,#04070f,#081322,#02040a);
color:var(--text);
overflow:hidden;
height:100vh;
}

.background-grid{
position:fixed;
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:40px 40px;
pointer-events:none;
}

.topbar{
height:90px;
display:flex;
justify-content:space-between;
align-items:center;
padding:0 30px;
border-bottom:1px solid var(--border);
backdrop-filter:blur(20px);
}

.logo-zone{
display:flex;
gap:18px;
align-items:center;
}

.logo-circle{
width:55px;
height:55px;
border-radius:50%;
background:radial-gradient(circle,var(--line),transparent);
box-shadow:0 0 30px var(--line);
}

.logo-zone h1 span{
color:var(--line);
}

.server-status{
display:flex;
gap:15px;
}

.status-card{
padding:10px 15px;
border-radius:12px;
background:rgba(255,255,255,0.05);
border:1px solid rgba(255,255,255,0.08);
}

.dot{
width:10px;
height:10px;
display:inline-block;
border-radius:50%;
margin-right:10px;
}

.online{
background:#00ff88;
box-shadow:0 0 15px #00ff88;
}

.banking{
background:#ffd000;
box-shadow:0 0 15px #ffd000;
}

.layout{
display:grid;
grid-template-columns:300px 1fr 350px;
gap:20px;
padding:20px;
height:calc(100vh - 90px);
}

.glass{
background:var(--panel);
border:1px solid var(--border);
border-radius:20px;
backdrop-filter:blur(18px);
}

.left-panel,
.right-panel{
padding:20px;
display:flex;
flex-direction:column;
gap:20px;
}

.source-card{
padding:18px;
border-radius:14px;
background:rgba(255,255,255,0.04);
border:1px solid rgba(255,255,255,0.06);
cursor:pointer;
transition:0.3s;
}

.source-card:hover,
.source-card.active{
transform:translateX(5px);
border-color:var(--line);
box-shadow:0 0 25px rgba(0,229,255,0.15);
}

.analytics{
margin-top:auto;
display:flex;
flex-direction:column;
gap:15px;
}

.metric{
padding:15px;
background:rgba(255,255,255,0.04);
border-radius:14px;
display:flex;
justify-content:space-between;
}

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

.monitor-row{
display:grid;
grid-template-columns:1fr 1fr;
gap:20px;
height:70%;
}

.monitor{
padding:15px;
display:flex;
flex-direction:column;
}

.monitor-header{
margin-bottom:15px;
font-weight:bold;
color:var(--line);
}

.live-header{
color:var(--live);
}

.screen{
flex:1;
border-radius:20px;
position:relative;
overflow:hidden;
background:#000;
display:flex;
align-items:center;
justify-content:center;
border:1px solid rgba(255,255,255,0.08);
}

.live-screen{
border:1px solid rgba(255,0,85,0.5);
box-shadow:0 0 30px rgba(255,0,85,0.15);
}

.screen-overlay{
position:absolute;
inset:0;
background:linear-gradient(transparent,rgba(0,229,255,0.1));
}

.screen-text{
z-index:2;
font-size:22px;
letter-spacing:1px;
}

.pulse{
position:absolute;
width:300px;
height:300px;
border-radius:50%;
background:rgba(255,0,85,0.25);
filter:blur(50px);
animation:pulse 3s infinite;
}

@keyframes pulse{
0%{transform:scale(0.7);opacity:0.3;}
50%{transform:scale(1);opacity:1;}
100%{transform:scale(0.7);opacity:0.3;}
}

.timeline{
padding:20px;
height:30%;
}

.timeline-top{
display:flex;
justify-content:space-between;
margin-bottom:20px;
}

.timeline-track{
display:flex;
height:80px;
overflow:hidden;
border-radius:15px;
}

.block{
display:flex;
align-items:center;
justify-content:center;
font-weight:bold;
}

.intro{width:15%;background:#2d4bff;}
.live-block{width:50%;background:#00b3ff;}
.ads{width:20%;background:#ff0066;}
.outro{width:15%;background:#7f5cff;}

.chat-feed{
flex:1;
overflow:auto;
display:flex;
flex-direction:column;
gap:10px;
padding-right:5px;
}

.message{
padding:12px;
border-radius:12px;
background:rgba(255,255,255,0.05);
}

.chat-input-zone{
display:flex;
gap:10px;
}

.chat-input-zone input,
select{
flex:1;
background:rgba(0,0,0,0.35);
border:1px solid var(--border);
padding:14px;
border-radius:12px;
color:white;
}

.chat-input-zone button,
.primary-btn,
.secondary-btn{
border:none;
cursor:pointer;
}

.primary-btn{
padding:14px 20px;
border-radius:14px;
background:linear-gradient(135deg,var(--line),#0099ff);
font-weight:bold;
}

.secondary-btn{
padding:14px 20px;
border-radius:14px;
background:rgba(255,255,255,0.08);
color:white;
}

.small{
padding:10px 16px;
}

.full{
width:100%;
margin-top:15px;
}

.finance-box{
display:flex;
flex-direction:column;
gap:15px;
}


/* =====================================================
   PHASE 6 — TV MODALS / AJOUTS CHIRURGICAUX
   Emplacements: header Studio, Sources Temps Réel, Monétisation.
===================================================== */
.tv-phase6-modal{position:fixed;inset:0;z-index:90;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.72);backdrop-filter:blur(18px);padding:20px}
.tv-phase6-modal.active{display:flex}
.tv-phase6-modal-panel{width:min(980px,94vw);max-height:88vh;overflow:auto;border-radius:24px;padding:24px;position:relative;color:white}
.tv-phase6-close{position:absolute;right:18px;top:14px;border:0;border-radius:12px;background:rgba(255,255,255,.12);color:white;width:40px;height:40px;cursor:pointer;font-size:22px}
.tv-phase6-muted{opacity:.76;line-height:1.6;margin:8px 0 18px}
.tv-phase6-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.tv-phase6-grid label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:rgba(255,255,255,.78)}
.tv-phase6-grid input,.tv-phase6-grid select{background:rgba(0,0,0,.35);border:1px solid var(--border);border-radius:14px;color:white;padding:12px;outline:none}
.tv-phase6-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.tv-phase6-pre{white-space:pre-wrap;background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:14px;margin-top:16px;max-height:260px;overflow:auto;color:#d8faff}
.tv-phase6-pre.compact{max-height:110px;font-size:12px}
.source-card{position:relative}
