:root{
  --bg:#18191a;
  --panel:#242526;
  --panel2:#2a2b2d;
  --line:#3a3b3c;
  --text:#e4e6eb;
  --muted:#b0b3b8;
  --brand:#1877f2;
  --good:#31a24c;
  --danger:#ff5c7a;
  --shadow:0 18px 50px rgba(0,0,0,.35);
  --r:14px;
  --blur:10px;
  --border:rgba(255,255,255,.08);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a{ color:inherit; }
.muted{ color:var(--muted); }
strong{ font-weight:800; }

.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--r);
  box-shadow:var(--shadow);
}

.btn{
  border:1px solid rgba(24,119,242,.35);
  background:linear-gradient(180deg, rgba(24,119,242,.22), rgba(24,119,242,.12));
  color:var(--text);
  font-weight:900;
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
}

.btn:hover{ filter:brightness(1.05); }

.btn.small{
  padding:8px 12px;
  border-radius:10px;
}

.iconbtn{
  border:1px solid transparent;
  background:rgba(255,255,255,.06);
  color:var(--text);
  border-radius:10px;
  padding:8px 10px;
  cursor:pointer;
}

.iconbtn:hover{ background:rgba(255,255,255,.10); }

.iconbtn.danger{ color:#ffd0d8; }

.iconbtn.danger:hover{
  background:rgba(255,92,122,.14);
  border-color:rgba(255,92,122,.22);
}

/* Conteneur recherche */
.top-left{
  display:flex;
  align-items:center;
  gap:12px;
}

/* Search */
.searchWrap{
  flex:1;
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:#3a3b3c;
  border:1px solid rgba(255,255,255,.08);
}

.searchWrap:focus-within{
  border-color:rgba(24,119,242,.45);
  box-shadow:0 0 0 4px rgba(24,119,242,.15);
}

.searchWrap .sico{ opacity:.9; }

.searchWrap input{
  border:0;
  outline:none;
  width:100%;
  background:transparent;
  color:var(--text);
  font-size:14px;
}

/* LAYOUT */
.layout{
  max-width:1400px;
  margin:16px auto 40px;
  padding:0 14px;
  display:grid;
  grid-template-columns:300px minmax(0,1fr) 320px;
  gap:16px;
  align-items:start;
}

/* LEFT / RIGHT sticky */
.left,
.right{
  position:sticky;
  top:72px;
  height:calc(100vh - 90px);
  overflow:auto;
  padding-right:4px;
}

.left::-webkit-scrollbar,
.right::-webkit-scrollbar{
  width:8px;
}

.left::-webkit-scrollbar-thumb,
.right::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.10);
  border-radius:999px;
}

.left{
  min-width:0;
}

.center{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:0;
  width:100%;
}

.right{
  min-width:0;
  width:320px;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.right .card{
  width:100%;
}

/* LEFT MENU */
.profile-card{
  display:flex;
  gap:12px;
  align-items:center;
  padding:12px;
  margin-bottom:12px;
}

.profile-card .col{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.profile-card:hover{
  background:rgba(255,255,255,.03);
}

.menu{
  padding:10px;
  margin-bottom:12px;
}

.menu-item{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  text-decoration:none;
  color:var(--text);
}

.menu-item:hover{
  background:rgba(255,255,255,.06);
}

.sep{
  height:1px;
  background:rgba(255,255,255,.08);
  margin:10px 8px;
  border-radius:999px;
}

.mini{
  padding:12px;
}

.mini-title{
  font-weight:900;
  margin-bottom:10px;
}

.mini-row{
  padding:8px 10px;
  border-radius:12px;
  color:var(--muted);
}

.mini-row:hover{
  background:rgba(255,255,255,.06);
  color:var(--text);
}

.shortcut{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  text-decoration:none;
  color:var(--text);
  font-weight:800;
  transition:.15s;
}

.shortcut:hover{
  background:rgba(24,119,242,.18);
  padding-left:16px;
  box-shadow:inset 3px 0 var(--brand);
}

/* STORIES */
.stories{
  display:flex;
  gap:10px;
  padding:12px;
  overflow:auto;
}

.stories::-webkit-scrollbar{
  height:8px;
}

.stories::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.10);
  border-radius:999px;
}

.story{
  flex:0 0 auto;
  width:118px;
  height:190px;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:12px;
  font-weight:900;
  color:rgba(255,255,255,.86);
}

.story.add{
  background:linear-gradient(180deg, rgba(24,119,242,.20), rgba(255,255,255,.05));
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-direction:column;
}

.story.add .plus{
  width:44px;
  height:44px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.10);
  font-size:28px;
}

.story.add .lbl{
  font-size:12px;
  color:rgba(255,255,255,.88);
}

/* NEWS */
.news{
  padding:12px;
}

.news-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.news-title{
  font-weight:1000;
  letter-spacing:.2px;
}

.news-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* COMPOSER */
.composer{
  padding:12px;
}

.composer-top{
  display:flex;
  align-items:center;
  gap:12px;
}

.composer-top input{
  flex:1;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:#3a3b3c;
  color:var(--text);
  outline:none;
  font-size:14px;
}

.composer-top input:focus{
  border-color:rgba(24,119,242,.35);
  box-shadow:0 0 0 4px rgba(24,119,242,.10);
}

.composer-tools{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
  flex-wrap:wrap;
}

.tool{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-weight:800;
}

.tool:hover{
  background:rgba(255,255,255,.07);
}

.tool input{
  display:none;
}

.spacer{
  flex:1;
}

.composer-preview{
  margin-top:12px;
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  background:rgba(0,0,0,.18);
  border:1px dashed rgba(255,255,255,.14);
  border-radius:14px;
  padding:10px;
}

.composer-preview img{
  max-width:100%;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
}

.composer-preview .x{
  position:absolute;
  top:10px;
  right:10px;
  border:0;
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
  color:var(--text);
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.12);
}

.composer-preview .x:hover{
  background:rgba(255,92,122,.18);
  border-color:rgba(255,92,122,.25);
}

.hint{
  margin-top:10px;
}

/* FEED HEADER */
.feed-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 2px;
}

.feed-title{
  font-weight:1000;
  letter-spacing:.2px;
}

.feed-filters{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.chip{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:8px 10px;
  border-radius:999px;
  cursor:pointer;
  font-weight:800;
  font-size:13px;
}

.chip:hover{
  background:rgba(255,255,255,.07);
}

.chip.active{
  background:rgba(24,119,242,.18);
  border-color:rgba(24,119,242,.25);
  color:#b9dcff;
}

/* POSTS */
.feed{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.post{
  padding:12px;
}

.post-head{
  display:flex;
  align-items:center;
  gap:12px;
}

.ph-col{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.ph-actions{
  margin-left:auto;
  display:flex;
  gap:8px;
}

.post-body{
  margin-top:10px;
}

.post-text{
  line-height:1.5;
  font-size:15px;
  white-space:normal;
  word-break:break-word;
}

.post-text a{
  color:#8fc1ff;
  text-decoration:none;
}

.post-text a:hover{
  text-decoration:underline;
}

.post-media{
  margin-top:10px;
  display:flex;
  justify-content:center;
}

.post-media img{
  width:100%;
  max-height:520px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
}

.post-stats{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
  font-size:13px;
}

.post-actionsBar{
  margin-top:10px;
  display:flex;
  gap:10px;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:10px;
}

.act{
  flex:1;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:900;
}

.act:hover{
  background:rgba(255,255,255,.07);
}

.likeBtn.active{
  background:rgba(24,119,242,.18);
  border-color:rgba(24,119,242,.25);
  color:#b9dcff;
}

/* COMMENTS */
.comments{
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.08);
}

.comments-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:10px;
}

.c-row{
  display:flex;
  gap:10px;
}

.c-bubble{
  width:100%;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:10px;
}

.c-top{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:6px;
}

.c-top .muted{
  margin-left:auto;
}

.c-text{
  line-height:1.45;
  word-break:break-word;
}

.comment-add{
  display:flex;
  gap:10px;
  align-items:center;
}

.comment-add input{
  flex:1;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:#3a3b3c;
  color:var(--text);
  outline:none;
}

.comment-add input:focus{
  border-color:rgba(24,119,242,.35);
  box-shadow:0 0 0 4px rgba(24,119,242,.10);
}

/* EMPTY / FOOTER */
.empty{
  padding:14px;
}

.footer{
  text-align:center;
  padding:10px 0 0;
}

/* MODAL */
.modal{
  position:fixed;
  inset:0;
  z-index:999;
  display:none;
  align-items:center;
  justify-content:center;
}

.modal.open{
  display:flex;
}

.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(6px);
}

.modal-panel{
  position:relative;
  width:min(760px, calc(100vw - 24px));
  background:var(--panel);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  box-shadow:0 26px 90px rgba(0,0,0,.55);
  overflow:hidden;
  margin:0;
}

.modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
}

.modal-title{
  font-weight:1000;
  letter-spacing:.2px;
  font-size:16px;
}

.modal-sub{
  margin-top:4px;
  font-size:12px;
}

.modal-body{
  padding:14px;
}

.modal-foot{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:12px 14px;
  border-top:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
}

.infoGrid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

.infoRow{
  display:grid;
  grid-template-columns:190px 1fr;
  gap:12px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}

.infoKey{
  color:rgba(255,255,255,.75);
  font-weight:900;
}

.infoVal{
  color:var(--text);
  word-break:break-word;
}

.code{
  display:inline-block;
  padding:6px 10px;
  border-radius:12px;
  background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.10);
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:12px;
}

.link{
  color:#8fc1ff;
  text-decoration:none;
  font-weight:900;
}

.link:hover{
  text-decoration:underline;
}

.dash{
  opacity:.7;
}

.subCard{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.08);
}

.subTitle{
  font-weight:1000;
  margin-bottom:6px;
}

.subText{
  line-height:1.45;
}

.errorBox{
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,92,122,.22);
  background:rgba(255,92,122,.10);
}

.loaderLine{
  height:8px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  overflow:hidden;
  margin-bottom:10px;
  position:relative;
}

.loaderLine::after{
  content:"";
  position:absolute;
  inset:0;
  transform:translateX(-70%);
  background:linear-gradient(90deg, transparent, rgba(24,119,242,.55), transparent);
  animation:loadMove 1.1s infinite;
}

@keyframes loadMove{
  0%{ transform:translateX(-70%); }
  100%{ transform:translateX(70%); }
}

/* STYLE BAR */
.styleBar{
  display:flex;
  align-items:center;
  gap:12px;
}

.styleSelect{
  background:#0e162c;
  border:1px solid #1f2f4f;
  color:#fff;
  padding:6px 12px;
  border-radius:999px;
  min-width:160px;
  cursor:pointer;
}

/* VOCAL WIDGET */
.vocalWidget{
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.vocalHead{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.vocalStatus{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
}

.dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#555;
}

.dot.ok{
  background:var(--good);
  box-shadow:0 0 6px rgba(49,162,76,.6);
}

.dot.bad{
  background:var(--danger);
  box-shadow:0 0 6px rgba(255,92,122,.6);
}

.vocalRooms{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.room{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:8px 12px;
  border-radius:10px;
  cursor:pointer;
  font-weight:800;
}

.room:hover{
  background:rgba(255,255,255,.08);
}

.room.active{
  background:rgba(24,119,242,.18);
  border-color:rgba(24,119,242,.25);
}

.vocalUsers{
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:10px;
}

.vocalUsersHead{
  font-size:13px;
  font-weight:900;
  margin-bottom:8px;
}

.user{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.06);
  margin-bottom:6px;
}

.userLeft{
  display:flex;
  align-items:center;
  gap:8px;
}

.userRight{
  display:flex;
  align-items:center;
}

.volWrap{
  display:flex;
  align-items:center;
  gap:6px;
}

.volRange{
  width:80px;
}

.volLbl{
  font-size:11px;
  color:var(--muted);
}

.volVal{
  font-size:11px;
  width:34px;
  text-align:right;
}

.user.speaking{
  background:rgba(49,162,76,.18);
  border-color:rgba(49,162,76,.35);
}

/* HEADER PROFILE */
.headerProfile{
  display:flex;
  align-items:center;
  margin-right:15px;
  padding:6px 10px;
}

.headerProfile .avatar.big{
  width:40px;
  height:40px;
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  width:100%;
  padding:12px 20px;
  background:rgba(10,15,26,.8);
  backdrop-filter:blur(var(--blur));
  border-bottom:1px solid var(--border);
  display:flex;
  justify-content:center;
}

.profileHeaderFull{
  width:100%;
  max-width:1400px;
  margin:0 auto;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-height:130px;
  padding:10px 14px;
  border-radius:16px;
  box-sizing:border-box;
}

.profileHeaderMain{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-align:center;
  white-space:nowrap;
}

.top-left.styleBar{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-left:auto;
}

.profileHeaderMain .col{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  min-width:0;
}

.profileHeaderMain .col strong{
  font-size:22px;
  line-height:1.2;
}

.profileHeaderMain .col .muted{
  font-size:14px;
  line-height:1.2;
}

.profileHeaderFull #profileAvatar.avatar.big{
  width:110px;
  height:110px;
  min-width:110px;
  min-height:110px;
  background-size:cover;
  background-position:center;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.15);
  box-shadow:0 6px 18px rgba(0,0,0,.35);
}

/* AVATARS */
.avatar{
  width:42px;
  height:42px;
  min-width:42px;
  border-radius:50%;
  background:linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.10);
  background-size:cover;
  background-position:center;
}

.avatar.big{
  width:72px;
  height:72px;
  min-width:72px;
}

/* RIGHT WIDGETS */
.widget-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  font-weight:900;
}

.widget-live,
.widget-vocal{
  overflow:hidden;
}

.widget-live iframe,
.widget-vocal iframe{
  display:block;
  width:100%;
  border:0;
}

.widget-vocal{
  min-height:420px;
}

/* YOUTUBE VIDEO EMBED */
.post-video{
  margin-top:10px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
}

.post-video iframe{
  width:100%;
  height:360px;
  border:0;
}

/* RESPONSIVE */
@media (max-width:1200px){
  .layout{
    grid-template-columns:280px minmax(0,1fr);
  }

  .right{
    display:none;
  }
}

@media (max-width:1050px){
  .layout{
    grid-template-columns:1fr;
  }

  .left,
  .right{
    display:none;
  }

  .top-left{
    min-width:auto;
  }

  .top-right{
    min-width:auto;
  }

  .nav-btn{
    padding:10px 12px;
  }
}

@media (max-width:900px){
  .profileHeaderFull{
    min-height:auto;
    padding:12px 14px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
  }

  .profileHeaderMain{
    position:static;
    left:auto;
    top:auto;
    transform:none;
    white-space:normal;
  }

  .top-left.styleBar{
    position:static;
    margin-left:0;
    justify-content:center;
  }

  .infoRow{
    grid-template-columns:1fr;
  }

  .post-video iframe{
    height:240px;
  }
}

/* ANIMATION */
.post-new{
  animation:postSlide .35s ease;
}

@keyframes postSlide{
  from{
    transform:translateY(-20px);
    opacity:0;
  }
  to{
    transform:translateY(0);
    opacity:1;
  }
}

.widget iframe{
  width:100%;
  height:350px;
  border:none;
  border-radius:10px;
}