:root{
  --bg: #0b0f17;
  --bg2:#0a0d14;

  --text:#e9eefc;
  --muted:#9aa7c2;

  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.08);

  --border: rgba(255,255,255,0.10);
  --border2: rgba(255,255,255,0.16);

  --shadow: 0 10px 30px rgba(0,0,0,0.40);

  --blue:#2f7dff;
  --blue2:#5aa2ff;

  --glass: blur(14px);
  --radius: 18px;
  --radius2: 22px;

  --max: 1400px;
  --navH: 68px;

  --joinPanel: rgba(12,16,24,0.42);
  --joinPanelBorder: rgba(255,255,255,0.10);
  --joinCard: rgba(12,16,24,0.64);
  --joinField: rgba(10,14,22,0.58);
  --joinFieldBorder: rgba(255,255,255,0.10);
  --joinPlaceholder: rgba(255,255,255,0.40);
  --primaryHover: #2f679c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
a{ color:inherit; text-decoration:none; }

/* ✅ FIX: Prevents unresponsiveness/side-scrolling wobble on mobile */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

body{
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(47,125,255,0.18), transparent 60%),
    radial-gradient(900px 500px at 85% 0%, rgba(90,162,255,0.10), transparent 55%),
    radial-gradient(900px 700px at 50% 110%, rgba(47,125,255,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height:100vh;

  opacity: 0;
  transform: translateY(10px) scale(0.985);
  animation: pageLoad 0.55s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes pageLoad { to { opacity: 1; transform: translateY(0) scale(1); } }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.threads-panel .panel-body{ display:none; }
#trendingList, #liveFeedList{ display:none; }

body.threadsReady .threads-panel .panel-body,
body.showThreadsPlaceholders .threads-panel .panel-body{ display:block; }

body.sidebarReady #trendingList,
body.sidebarReady #liveFeedList,
body.showSidebarPlaceholders #trendingList,
body.showSidebarPlaceholders #liveFeedList{ display:block; }

/* NAVBAR */
.nav-holder{ height: var(--navH); }

.navbar{
  position: fixed;
  top:0; left:0; right:0;
  height: var(--navH);
  z-index: 9999;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: rgba(10,13,20,0.55);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}

.nav-content{
  height:100%;
  display:flex;
  align-items:center;
  gap: 14px;

  /* ✅ FIX: constrain navbar like categories.html (prevents far-left/far-right stretch) */
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.logo{
  display:flex;
  align-items:center;
  gap: 10px; 
  font-weight: 800;
  letter-spacing: 0.6px;
  white-space:nowrap;
  user-select:none;
  margin-right: auto;
  cursor:pointer;
}

.logo .brand{
  display:inline-flex;
  align-items:baseline;
  gap: 0;
  line-height: 1;
  letter-spacing: 0.6px;
}

.logo-badge{
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(47,125,255,0.9), rgba(90,162,255,0.65));
  box-shadow: 0 10px 22px rgba(47,125,255,0.18);
  display:grid;
  place-items:center;
  border: 1px solid rgba(255,255,255,0.15);
}
.logo-badge i{ font-size: 15px; color: #eaf2ff; }
.logo .accent{ color: var(--blue2); }

.nav-right{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
}

/* nav links */
nav{
  display:flex;
  align-items:center;
  gap:8px;
}
nav a{
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13.5px;
  transition: 160ms ease;
}
nav a:hover{
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

/* signed-out buttons (desktop only) */
.nav-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.btn-primary{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 10px 13px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 13px;
  cursor:pointer;
  transition: 160ms ease;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.btn-primary:hover{
  transform: translateY(-1px);
  border-color: rgba(47,125,255,0.35);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}
.btn-primary.primary{
  background: rgba(47,125,255,0.18);
  border-color: rgba(47,125,255,0.35);
}

/* hamburger */
.hamburger{
  display:none;
  width:42px;height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  transition:160ms ease;
  margin-left:auto;
}
.hamburger i{ font-size:16px; }
.hamburger:hover{
  border-color: rgba(47,125,255,0.35);
  box-shadow:0 10px 28px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}
.hamburger:focus-visible{
  outline: 3px solid rgba(47,125,255,0.35);
  outline-offset:2px;
}

/* ✅ Notifications bell */
.notifWrap{
  position: relative;
  display:none;
}
.notifBtn{
  width:42px;height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(233,238,252,0.95);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:160ms ease;
  position:relative;
}
.notifBtn i{ font-size:16px; }
.notifBtn:hover{
  border-color: rgba(47,125,255,0.35);
  box-shadow:0 10px 28px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}
.notifBtn:focus-visible{
  outline: 3px solid rgba(47,125,255,0.35);
  outline-offset:2px;
}
.notifBadge{
  position:absolute;
  top:-4px; right:-4px;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  display:none;
  align-items:center;
  justify-content:center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .2px;
  color: rgba(255,255,255,0.98);
  background: rgba(47,125,255,0.95);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 18px rgba(47,125,255,0.20);
}
.notifBadge.show{ display:inline-flex; }

/* ✅ Notifications modal (MATCH TERMS STYLE) */
.notifModal{
  position: fixed;
  inset: 0;
  z-index: 200;
  display:none;
  align-items:flex-start;
  justify-content:flex-start;
  padding: 0;
}
.notifModal.open{ display:flex; }
.notifBackdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@keyframes notifPop{
  0%{ opacity:0; transform: translateY(-6px) scale(0.985); }
  100%{ opacity:1; transform: translateY(0) scale(1); }
}
.notifPanel{
  position:absolute; /* positioned by JS */
  width: min(560px, calc(100% - 24px));
  max-height: min(74vh, 640px);
  background: rgba(10,13,20,0.92);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow:hidden;
  animation: notifPop 160ms ease forwards;
}
.notifHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.notifHeader .title{
  font-family:Poppins, sans-serif;
  font-weight: 900;
  letter-spacing:-.2px;
  display:flex;
  align-items:center;
  gap:10px;
}
.notifHeader .right{
  display:flex;
  align-items:center;
  gap:10px;
}
.notifHeader .muted{
  color: rgba(154,167,194,0.92);
  font-weight: 800;
  font-size: 12.5px;
}
.notifAction{
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(233,238,252,0.95);
  padding: 9px 10px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 900;
  font-size: 12.5px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:160ms ease;
}
.notifAction:hover{
  border-color: rgba(47,125,255,0.35);
  transform: translateY(-1px);
}
.notifAction[disabled]{
  opacity:.55;
  cursor:not-allowed;
  transform:none !important;
}
.notifClose{
  width:38px;height:38px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(233,238,252,0.95);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:160ms ease;
}
.notifClose:hover{
  border-color: rgba(47,125,255,0.35);
  transform: translateY(-1px);
}
.notifBody{
  padding: 10px 10px 12px;
  overflow:auto;
  overflow-y:auto;
  max-height: calc(min(74vh, 640px) - 56px);
  -webkit-overflow-scrolling: touch;
}
.notifList{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.notifItem{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 11px 11px;
  cursor:pointer;
  transition:160ms ease;
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.notifItem:hover{
  border-color: rgba(47,125,255,0.25);
  background: rgba(47,125,255,0.07);
}
.notifDot{
  width:10px;height:10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.20);
  margin-top: 5px;
  flex: 0 0 auto;
}
.notifItem.unread .notifDot{
  background: rgba(47,125,255,0.95);
  box-shadow: 0 0 0 3px rgba(47,125,255,0.10);
}
.notifMain{
  flex: 1 1 auto;
  min-width: 0;
}
.notifText{
  font-weight: 900;
  color: rgba(233,238,252,0.95);
  line-height: 1.35;
}
.notifMeta{
  margin-top: 4px;
  color: rgba(154,167,194,0.90);
  font-size: 12px;
  font-weight: 800;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.notifEmpty{
  padding: 18px 10px;
  color: rgba(154,167,194,0.92);
  font-weight: 800;
  text-align:center;
}

/* profile icon + dropdown */
.profile-wrap{
  position:relative;
  display:none;
}
.profile-btn{
  width:42px;height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.06);
  color:var(--text);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:160ms ease;
}
.profile-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(47,125,255,0.35);
  box-shadow:0 10px 28px rgba(0,0,0,.35);
}
.profile-menu{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  min-width:220px;
  background:rgba(10,13,20,0.92);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:16px;
  box-shadow:0 18px 55px rgba(0,0,0,0.45);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  padding:8px;
  display:none;
  z-index:60;
}
.profile-menu.open{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.profile-menu a, .profile-menu button{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  color:rgba(233,238,252,0.92);
  font-weight:800;
  font-size:13px;
  background:transparent;
  border:0;
  cursor:pointer;
  text-align:left;
  transition:160ms ease;
}
.profile-menu a:hover, .profile-menu button:hover{
  background:rgba(255,255,255,0.06);
  color:var(--text);
  border-color: rgba(47,125,255,0.28);
}

/* mobile panel */
.mobile-panel{
  position:fixed;
  top:var(--navH);
  left:0; right:0;
  background: rgba(10,13,20,0.82);
  border-bottom:1px solid rgba(255,255,255,0.10);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  z-index:55;
  display:none;
  padding: 12px 0 14px;
}
.mobile-inner{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:0 10px;
}

.mlink{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(74, 72, 72, 0.199);
  color:rgba(233,238,252,0.92);
  font-weight:900;
  font-size:13.5px;
  transition:160ms ease;
}
.mlink i{
  width:18px;
  text-align:center;
  flex:0 0 18px;
  margin-right:2px;
}
.mlink:hover{
  color: var(--text);
  border-color:rgba(47,125,255,0.28);
}
.mlink.small{
  opacity:0.92;
}
.mobile-auth{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:6px;
}
.mobile-auth a{ width:100%; }

.mobile-backdrop{
  position:fixed;
  inset:0;
  top:var(--navH);
  background:rgba(0,0,0,0.35);
  z-index:54;
  display:none;
}

/* HERO */
.hero{ padding: 70px 0 30px; text-align: left; }
.hero h1{
  font-size: 30px;
  letter-spacing: 0.2px;
  line-height: 1.15;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}
.hero p{
  color: var(--muted);
  max-width: 720px;
  line-height: 1.5;
  font-size: 14px;
}

/* SITE NEWS */
.site-news{
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 14px 16px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  transition: 160ms ease;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.site-news:hover{
  border-color: rgba(47,125,255,0.35);
  box-shadow: 0 16px 34px rgba(0,0,0,0.45);
  transform: translateY(-1px);
}
.site-news .left{
  display:flex;
  gap:12px;
  align-items:center;
  min-width: 0;
}
.site-news .badge{
  width:40px;
  height:40px;
  border-radius:14px;
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.10);
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(233,238,252,0.90);
  flex:0 0 auto;
  transition: 160ms ease;
}
.site-news:hover .badge{
  border-color: rgba(47,125,255,0.35);
  background: rgba(47,125,255,0.12);
  color: var(--blue2);
}
.site-news .text{ line-height:1.25; padding-top: 2px; min-width:0; }
.site-news .title{
  font-weight:800;
  font-size: 13.5px;
  letter-spacing: 0.2px;
  margin-bottom: 4px;
}
.site-news .meta{
  font-size:12.5px;
  color: rgba(154,167,194,0.90);
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-news .right{
  text-align:right;
  font-size:12.5px;
  color: rgba(154,167,194,0.90);
  line-height: 1.35;
  white-space: nowrap;
  flex: 0 0 auto;
}
.site-news .right strong{
  display:block;
  color: rgba(233,238,252,0.92);
  font-size:13px;
  margin-bottom:6px;
}

.posted-line{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 6px;
  width: 100%;
}
.posted-label{
  color: rgba(154,167,194,0.92);
  font-weight: 900;
  display:inline-block;
}
.posted-value{
  color: rgba(154,167,194,0.90);
  font-weight: 800;
  display:inline-block;
}

@media (max-width: 560px){
  .site-news .meta{
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100% !important;
  }
}

/* LAYOUT */
.layout{
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  gap: 22px;
  margin-top: 26px;
  align-items: start;
}

.panel{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel-head{
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}
.panel-head h3{
  margin:0;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.2px;
  font-weight: 800;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
}
.panel-body{ padding: 10px; }

/* LEFT: CATEGORIES */
.category-item{
  position: relative;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  margin: 8px 0;
  cursor:pointer;
  color: rgba(233,238,252,0.92);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: 160ms ease;
}
.category-item::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width: 0px;
  background: linear-gradient(180deg, rgba(47,125,255,0.95), rgba(90,162,255,0.65));
  transition: 160ms ease;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}
.category-item:hover{ background: rgba(255,255,255,0.05); border-color: rgba(47,125,255,0.30); }
.category-item:hover::before{ width: 4px; }
.category-item .cat-ico{
  width: 36px; height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  display:grid;
  place-items:center;
  color: rgba(233,238,252,0.90);
  transition: 160ms ease;
  flex: 0 0 auto;
}
.category-item:hover .cat-ico{
  color: var(--blue2);
  border-color: rgba(47,125,255,0.35);
  background: rgba(47,125,255,0.10);
}
.category-item .cat-text{ font-weight: 800; font-size: 13.5px; font-family:'Poppins',sans-serif; }

/* CENTER: THREADS */
.threads-panel .panel-body{ padding: 0; }
.thread{
  position: relative;
  padding: 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: 160ms ease;
}
.thread:last-child{ border-bottom: none; }
.thread::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width: 0px;
  background: linear-gradient(180deg, rgba(47,125,255,0.95), rgba(90,162,255,0.65));
  transition: 160ms ease;
}
.thread:hover{ background: rgba(255,255,255,0.05); }
.thread:hover::before{ width: 4px; }

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(47,125,255,0.45);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 800;
  margin-bottom: 10px;
  font-family:'Poppins',sans-serif;
  transition: 160ms ease;
}
.badge:hover{ border-color: rgba(47,125,255,0.55); background: rgba(47,125,255,0.12); color: var(--blue2); }
.thread:hover .badge{ border-color: rgba(47,125,255,0.55); background: rgba(47,125,255,0.12); color: var(--blue2); }

.thread-info h4{
  margin: 0 0 6px;
  font-weight: 900;
  font-size: 14.5px;
  color: rgba(233,238,252,0.92);
  font-family:'Poppins',sans-serif;
}
.thread-info span{ font-size: 12.6px; color: var(--muted); display:block; margin: 0 0 10px; }

.keypoints{ display:flex; flex-wrap:wrap; gap:8px 12px; margin-top: 10px; }
.keypoint{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color: rgba(154,167,194,0.92);
  transition: 160ms ease;
  font-weight: 800;
}
.keypoint .bullet{
  width:8px; height:8px; border-radius:50%;
  background: rgba(180,188,202,0.95);
  box-shadow: 0 0 0 4px rgba(180,188,202,0.18);
  transition: 160ms ease;
}
.keypoint:hover{ color: var(--blue2); }
.keypoint:hover .bullet{ background: var(--blue2); box-shadow: 0 0 0 4px rgba(90,162,255,0.18); }

.thread-stats{ display:flex; gap: 18px; margin-top: 12px; font-size: 12.5px; }
.stat{ display:flex; align-items:center; gap: 6px; color: var(--muted); font-weight: 800; }
.stat:hover{ color: var(--blue2); }
.stat svg{ width: 18px; height: 18px; stroke-width: 1.6; }

.author{
  position: absolute;
  right: 16px;
  top: 16px;
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 12px;
  color: rgba(154,167,194,0.92);
  font-weight: 900;
}
.status-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,.65);
}

/* RIGHT SIDEBAR */
.sidebar-box{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 14px 16px;
  margin: 10px 0;
  transition: 160ms ease;
  position: relative;
}
.sidebar-box::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width: 0px;
  background: linear-gradient(180deg, rgba(47,125,255,0.95), rgba(90,162,255,0.65));
  transition: 160ms ease;
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}
.sidebar-box:hover{ background: rgba(255,255,255,0.05); border-color: rgba(47,125,255,0.22); }
.sidebar-box:hover::before{ width: 4px; }
.sidebar-box h3{
  margin:0 0 10px;
  display:flex;
  align-items:center;
  gap: 8px;
  font-family:'Poppins',sans-serif;
  font-size: 14px;
  font-weight: 900;
}
.trend, .feed-item{
  display:flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12.8px;
  color: rgba(154,167,194,0.92);
  font-weight: 800;
}
.trend:hover, .feed-item:hover{ color: var(--blue2); }

/* ✅ Re-added live feed green dots */
.feed-item .dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,.65);
  flex: 0 0 auto;
  margin-top: 4px;
}

/* JOIN SECTION */
.cta{
  font-family:'Poppins',sans-serif;
  background: var(--joinPanel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #fff;
  padding: 84px 20px;
  text-align:center;
  border-top: 1px solid var(--joinPanelBorder);
  margin-top: 60px;
}
.cta h2{ font-size: 32px; letter-spacing: -.4px; margin-bottom: 10px; }
.cta p{ color: rgba(255,255,255,0.70); max-width:820px; margin:0 auto; line-height:1.7; }

.badge-row{ display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:22px; }
.badge-chip{
  border:1px solid rgba(255,255,255,0.10);
  padding:10px 16px;
  border-radius:999px;
  font-size:13px;
  background: rgba(12,16,24,0.62);
  color: rgba(255,255,255,0.85);
}

.form-wrap{
  max-width:980px;
  margin:26px auto 0;
  text-align:left;
  background: var(--joinCard);
  border:1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding:26px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.form-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.form-grid input,.form-grid select,.form-grid textarea{
  width:100%;
  padding:14px 14px;
  border-radius:12px;
  outline:none;
  font-family:'Poppins',sans-serif;
  background: var(--joinField);
  border:1px solid var(--joinFieldBorder);
  color:#fff;
}
.form-grid select{ color: rgba(255,255,255,0.92); font-weight:600; }
.form-grid input::placeholder, .form-grid textarea::placeholder{ color: var(--joinPlaceholder); }
.form-grid textarea{ grid-column:1/-1; min-height:140px; resize:vertical; }

.cta .btn{
  padding:14px 26px;
  background: rgba(47,125,255,0.18);
  border: 1px solid rgba(47,125,255,0.35);
  color:#fff;
  border-radius: 14px;
  font-weight: 900;
  text-decoration:none;
  transition: 160ms ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  min-width:210px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.30);
}
.cta .btn:hover{
  transform: translateY(-2px);
  border-color: rgba(47,125,255,0.45);
  box-shadow: 0 18px 55px rgba(0,0,0,0.45);
}
.cta .btn.secondary{
  background: rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.18);
  box-shadow:none;
}
.cta .btn.secondary:hover{ background: rgba(255,255,255,0.16); transform: translateY(-1px); }

.form-actions{ display:flex; gap:14px; margin-top:18px; flex-wrap:wrap; justify-content:center; }
.form-note{ margin-top:14px; color: rgba(255,255,255,0.60); font-size:13px; line-height:1.7; text-align:center; }
.form-notice{
  margin-top:14px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(47,125,255,0.22);
  background: rgba(47,125,255,0.08);
  color: rgba(229,231,235,0.92);
  font-size:13px;
  line-height:1.6;
  display:none;
}
.form-notice.show{ display:block; }
.form-notice.error{ border-color: rgba(248,113,113,0.32); background: rgba(248,113,113,0.10); }

/* FOOTER */
.footer{
  margin-top: 28px;
  padding: 20px 0 20px;
  font-size: 12.5px;
  border-top: 1px solid rgba(255,255,255,0.10);
  position: relative;
}
.footer::before{ display:none; }
.footer-content{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 12px;
  color: rgba(154,167,194,0.85);
}
.footer-content a{
  color: rgba(154,167,194,0.85);
  margin-left: 12px;
  text-decoration:none;
  font-weight: 800;
}
.footer-content a:hover{ color: var(--text); }

/* RESPONSIVE */
@media (max-width: 1100px){
  .layout{ grid-template-columns: 1fr; }
  .author{ position: static; margin-top: 12px; }
}
@media (max-width: 860px){
  nav{ display:none; }
  .nav-actions{ display:none !important; }
  /* Hamburger -> Bell -> Profile */
  .hamburger{ display:inline-flex; margin-left:0; order:1; align-items:center; justify-content:center; }
  .notifWrap { order: 2; }
  .profile-wrap { order: 3; }
  .markAllText { display: none; }
}
@media (max-width: 768px){
  .hero{ padding-top: 58px; }
  .hero h1{ font-size: 24px; }
  .form-grid{ grid-template-columns:1fr; }
  .cta h2{ font-size:28px; }
  .site-news{ flex-direction:column; gap:10px; align-items:flex-start; }
  .site-news .right{ text-align:left; }
  .posted-line{ justify-content:flex-start; }
}

@media(max-width:680px){
  .notifPanel{
    position: fixed !important;
    top: calc(var(--navH) + 12px) !important;
    left: 12px !important;
    right: 12px !important;
    width: calc(100% - 24px) !important;
    max-width: none !important;
    max-height: calc(100vh - var(--navH) - 24px) !important;
  }
}