/* =========================
   WOORDS — Shared layout CSS
   Consistent header, rail, right panel and feed
   ========================= */

:root{
  --bg:#f3f3f4;
  --text:#0f0f10;
  --muted:#6f7278;
  --line:#e8e9ec;
  --card:#ffffff;
  --hover:#f5f6f7;
  --shadow:0 1px 0 rgba(0,0,0,.03);
  --radius:18px;
  --feed:640px;
  --side:340px;
  --rail:96px;
  --topbar-h:64px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
}

/* ===== Top header ===== */
.topbar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:120;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
  padding:0 16px;
}
.topbar-inner{
  width:100%;
  min-height:var(--topbar-h);
  margin:0;
  display:grid;
  grid-template-columns:minmax(180px,260px) 1fr minmax(180px,260px);
  align-items:center;
  gap:12px;
  position: relative;
}
.topbar-left{ display:flex; align-items:center; justify-content:flex-start; }
.topbar-centre{ display:flex; align-items:center; justify-content:center; min-width:0; }
.topbar-right{ min-width:0; }
.top-title{
  font-weight:600;
  letter-spacing:.2px;
  font-size:14px;
  color:#111;
  user-select:none;
  text-align:center;
}

/* ===== Team switcher ===== */
.team-switcher{ position:relative; display:flex; align-items:center; }
.team-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-width:72px;
  max-width:220px;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow);
  cursor:pointer;
  font-weight:600;
  font-size:13px;
  color:#111;
  user-select:none;
  transition:background .12s ease, transform .12s ease, border-color .12s ease;
}
.team-pill:hover{ background:var(--hover); }
.team-pill:active{ transform:scale(.99); }
.team-pill:focus{ outline:none; border-color:#d7d9de; }
.team-pill .chev{ font-size:12px; opacity:.8; }
#teamName{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#teamMenu,
.team-menu{
  position:absolute !important;
  top:calc(100% + 8px) !important;
  left:0 !important;
  z-index:130;
  min-width:280px;
  max-width:min(90vw,320px);
  border:1px solid var(--line);
  background:var(--card);
  border-radius:18px;
  box-shadow:0 18px 50px rgba(0,0,0,.10);
  padding:8px;
  display:none;
}
#teamMenu.open,
.team-menu.open{ display:block !important; }
.team-item{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px;
  border-radius:14px;
  cursor:pointer;
}
.team-item:hover{ background:var(--hover); }
.team-item-left{ min-width:0; display:flex; flex-direction:column; gap:2px; }
.team-item-name{
  font-weight:600;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.team-item-sub{ font-size:12px; color:var(--muted); }
.team-badge{
  font-size:11px;
  font-weight:700;
  border:1px solid var(--line);
  padding:4px 8px;
  border-radius:999px;
  color:#111;
  background:#fff;
}
.team-badge.active{
  background:#111;
  color:#fff;
  border-color:#111;
}
.team-divider{ height:1px; background:var(--line); margin:6px; }
.team-menu-note{ padding:8px 10px; font-size:12px; color:var(--muted); line-height:1.4; }

/* ===== App layout ===== */
.app{
  min-height:calc(100vh - var(--topbar-h));
  display:grid;
  grid-template-columns:var(--rail) minmax(0,1fr) var(--side);
  gap:0;
  padding-top:var(--topbar-h);
  align-items:start;
}

/* ===== Rail ===== */
.rail{
  position:sticky;
  top:var(--topbar-h);
  align-self:start;
  width:var(--rail);
  min-width:var(--rail);
  height:calc(100vh - var(--topbar-h));
  background:#fff;
  border-right:1px solid #f3f3f3;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:16px 10px;
  gap:10px;
  overflow:hidden;
}
.nav{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  margin-top:6px;
}
.nav-btn{
  width:52px;
  height:52px;
  border-radius:999px;
  border:none;
  background:transparent;
  color:#111;
  opacity:.75;
  display:grid;
  place-items:center;
  text-decoration:none;
  cursor:pointer;
  transition:all .15s ease;
}
.nav-btn:hover{
  background:#f5f5f5;
  opacity:1;
}
.nav-btn:active{ transform:scale(.98); }
.nav-btn.active{
  background:#111;
  color:#fff;
  opacity:1;
  transform:scale(1.05);
}
.nav-spacer{ flex:1; }
.avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  background:#111;
  color:#fff;
  display:grid;
  place-items:center;
  font-size:15px;
  font-weight:800;
  box-shadow:none;
}
.icon{ width:24px; height:24px; display:inline-block; }

/* ===== Centre column ===== */
.main{
  display:flex;
  justify-content:center;
  padding:18px 18px 28px;
  min-width:0;
}
.feed{
  width:min(var(--feed), 100%);
}

/* ===== Composer ===== */
.composer{
  margin-top:14px;
  margin-bottom:10px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--card);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.composer-inner{
  display:grid;
  grid-template-columns:44px 1fr;
  gap:12px;
  padding:14px;
}
.composer textarea{
  width:100%;
  border:none;
  outline:none;
  resize:none;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size:15px;
  line-height:1.5;
  padding:6px 0 0;
  min-height:52px;
  background:transparent;
  color:#111;
}
.composer-actions{
  border-top:1px solid var(--line);
  padding:10px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.hint{ font-size:12px; color:var(--muted); }
.cta{ display:flex; align-items:center; gap:10px; }
.count{
  font-size:12px;
  color:var(--muted);
  min-width:40px;
  text-align:right;
}
.btn{
  border:none;
  background:#111;
  color:#fff;
  border-radius:14px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:600;
  font-size:13px;
  transition:transform .12s ease, opacity .12s ease;
}
.btn:hover{ opacity:.92; }
.btn:active{ transform:scale(.99); }
.btn:disabled{ opacity:.4; cursor:not-allowed; transform:none; }

/* ===== Avatar helpers ===== */
.ava,
.reply-ava,
.composer-ava,
.post-ava{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  line-height:1;
  border-radius:50%;
}
.ava-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.ava-text{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  color:#fff;
  pointer-events:none;
  font-size:14px;
  letter-spacing:.5px;
  opacity:0;
}
.no-img .ava-img{ display:none; }
.no-img .ava-text{ opacity:1; }
.ava,
.composer-ava{
  width:44px;
  height:44px;
  border:1px solid var(--line);
  background:#111;
  color:#fff;
}

/* ===== Post cards ===== */
.post{
  margin-top:16px;
  border:1px solid #ededed;
  border-radius:22px;
  background:var(--card);
  box-shadow:0 1px 2px rgba(0,0,0,.03);
  overflow:hidden;
  transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  animation:fadeIn .25s ease;
}
.post:hover{
  border-color:#e4e4e4;
  box-shadow:0 4px 14px rgba(0,0,0,.04);
  transform:translateY(-1px);
}
.post + .post{ margin-top:14px; }
.post-inner,
.post-row{
  display:grid;
  grid-template-columns:44px 1fr;
  gap:14px;
  padding:16px;
  align-items:start;
}
.post-main{ min-width:0; }
.post-ava{
  width:44px;
  height:44px;
  border:1px solid var(--line);
  background:#111;
  color:#fff;
  font-weight:600;
  font-size:14px;
}
.post-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
.post-name,
.meta .name{ font-weight:600; font-size:13px; }
.post-meta,
.meta .time{
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
}
.meta{
  display:flex;
  align-items:baseline;
  gap:6px;
  flex-wrap:wrap;
}
.meta .dot{ color:var(--muted); }
.post-text{
  margin-top:8px;
  font-size:14px;
  line-height:1.6;
  color:#1a1b1e;
}
.post-media{ margin-top:10px; }
.post-media img{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  border-radius:18px;
}
.post-footer{
  padding:10px 16px 14px;
  border-top:1px solid #f3f3f3;
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:8px;
}
.icon-btn{
  border:none;
  background:transparent;
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
  color:#111;
  opacity:.75;
  transition:background .12s ease, transform .12s ease, opacity .12s ease;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
}
.icon-btn:hover{
  background:#f7f7f7;
  opacity:1;
}
.icon-btn:active{ transform:scale(.99); }
.action-count{
  font-size:12px;
  color:var(--muted);
}
.icon-btn.liked{ color:#111; opacity:1; }

.feed-loading,
.feed-end{
  text-align:center;
  font-size:12px;
  color:var(--muted);
  padding:14px 0 6px;
}
.feed-sentinel{ height:1px; }

/* ===== Right panel ===== */
.side{
  position:sticky;
  top:calc(var(--topbar-h) + 18px);
  height:calc(100vh - var(--topbar-h) - 18px);
  border-left:1px solid #f3f3f3;
  background:#fcfcfc;
  padding:18px 14px;
  overflow:auto;
}
.right-rail{
  display:flex;
  flex-direction:column;
  gap:20px;
  max-width:320px;
}
.right-card{
  background:transparent;
  border:none;
  box-shadow:none;
  border-radius:0;
}
.right-card::before{ display:none; content:none; }
.right-card-title{
  font-size:12px;
  font-weight:700;
  color:#8a8a8a;
  padding:8px 0;
  border:none;
  background:transparent;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.context-card{
  background:#fff;
  border:1px solid #ececec;
  border-radius:20px;
  padding-bottom:12px;
}
.context-body{ padding:0 14px 10px; }
.context-kicker{ font-size:12px; color:#8a8a8a; }
.context-main{ font-size:14px; font-weight:700; margin-top:4px; }
.context-sub{ font-size:12px; color:#6f7278; margin-top:4px; }
.context-chip{
  display:inline-block;
  background:#f4f4f4;
  padding:5px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:600;
  margin-right:6px;
}
.trend-list{ display:flex; flex-direction:column; }
.trend-item{
  display:flex;
  gap:10px;
  padding:8px 0;
  text-decoration:none;
  color:#111;
}
.trend-item:hover{ opacity:.7; }
.trend-rank{
  width:22px;
  height:22px;
  border-radius:50%;
  background:#f2f2f2;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:700;
}
.trend-name{ font-size:14px; font-weight:700; }
.trend-sub{ font-size:12px; color:#6f7278; }
.trend-empty{ padding:4px 0 0; font-size:12px; color:#6f7278; }
.status-card{ opacity:.7; font-size:12px; }
.secure-status-row{ display:flex; gap:8px; align-items:center; }
.secure-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#22c55e;
}
.secure-text strong{ font-weight:600; }

/* ===== Replies ===== */
.replies{
  border-top:1px solid #f3f3f3;
  padding:10px 16px 14px;
  max-height:0;
  overflow:hidden;
  opacity:0;
  transform:translateY(-4px);
  transition:max-height .38s cubic-bezier(.2,.8,.2,1), opacity .22s ease, transform .22s ease;
}
.post.show-replies .replies{
  opacity:1;
  transform:translateY(0);
}
.reply-item{
  display:grid;
  grid-template-columns:34px 1fr;
  gap:10px;
  padding:10px 0;
}
.reply-ava{
  width:34px;
  height:34px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:600;
  font-size:12px;
}
.reply-body{ min-width:0; }
.reply-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
.reply-name{ font-weight:600; font-size:12px; }
.reply-meta{
  font-size:11px;
  color:var(--muted);
  white-space:nowrap;
}
.reply-text{
  margin-top:4px;
  font-size:13px;
  line-height:1.5;
  color:#1a1b1e;
  word-wrap:break-word;
}
.reply-form{
  margin-top:10px;
  display:grid;
  grid-template-columns:34px 1fr auto;
  gap:10px;
  align-items:flex-start;
}
.reply-input{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size:13px;
  line-height:1.4;
  outline:none;
  background:#fff;
}
.reply-input:focus{ border-color:#d7d9de; }
.reply-send{
  border:none;
  background:#111;
  color:#fff;
  border-radius:14px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:600;
  font-size:12px;
}
.reply-send:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.reply-empty{ padding:10px 0 0; font-size:12px; color:var(--muted); }
.reply-label{ display:inline-block; transition:opacity .16s ease; }
.reply-label.fading{ opacity:0; }

/* ===== Modal ===== */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.28);
  display:none;
  z-index:10000;
  padding:20px;
}
.modal.open{
  display:flex;
  align-items:center;
  justify-content:center;
}
.modal-card{
  width:min(420px, 100%);
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.18);
  overflow:hidden;
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px;
  border-bottom:1px solid var(--line);
}
.modal-title{ font-weight:700; font-size:13px; }
.modal-x{
  border:none;
  background:transparent;
  cursor:pointer;
  font-size:20px;
  line-height:1;
  padding:6px 10px;
  border-radius:10px;
}
.modal-x:hover{ background:var(--hover); }
.modal-body{
  padding:14px;
  display:grid;
  gap:12px;
}
.field span{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:6px;
}
.field select,
.field input{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  font:inherit;
  outline:none;
  background:#fff;
}
.field select:focus,
.field input:focus{ border-color:#d7d9de; }
.modal-foot{
  padding:12px 14px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
.btn.ghost{
  background:#fff;
  color:#111;
  border:1px solid var(--line);
}

/* ===== Motion ===== */
@keyframes fadeIn{
  from{ opacity:0; transform:translateY(6px); }
  to{ opacity:1; transform:translateY(0); }
}

@media (prefers-reduced-motion: reduce){
  .post{ animation:none !important; }
}

/* ===== People page consistency ===== */
.people-shell{
  width:100%;
  max-width:var(--feed);
  margin:0 auto;
}
.people-searchbar{
  position:sticky;
  top:calc(var(--topbar-h) + 12px) !important;
}

/* ===== Responsive ===== */
@media (max-width: 1040px){
  .app{
    grid-template-columns:var(--rail) minmax(0,1fr);
  }
  .side{ display:none; }
}

@media (max-width: 900px){
  :root{
    --rail:82px;
  }
  .topbar-inner{
    grid-template-columns:minmax(140px,220px) 1fr minmax(80px,140px);
  }
  .rail{
    width:82px;
    min-width:82px;
    padding:14px 8px;
  }
  .nav-btn{
    width:50px;
    height:50px;
  }
  .team-pill{
    min-width:64px;
    font-size:12px;
    padding:8px 10px;
    max-width:180px;
  }
}

@media (max-width: 720px){
  :root{
    --rail:0px;
    --topbar-h:56px;
  }

  .topbar{ padding:0 12px; }
  .topbar-inner{
    min-height:var(--topbar-h);
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
  }
  .topbar-centre{ justify-content:flex-start; display:none; }
  .topbar-right{ display:none; }
  .team-pill{
    max-width:min(68vw,220px);
    padding:8px 11px;
    font-size:12px;
  }
  #teamMenu,
  .team-menu{
    left:0 !important;
    right:auto !important;
    width:min(88vw,320px);
    min-width:0;
  }

  .app{
    grid-template-columns:1fr;
    padding-top:var(--topbar-h);
  }

  .rail{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    top:auto;
    width:auto;
    min-width:0;
    height:72px;
    border-right:none;
    border-top:1px solid var(--line);
    flex-direction:row;
    justify-content:space-around;
    padding:10px 12px;
    z-index:110;
    background:var(--bg);
  }
  .nav{
    flex-direction:row;
    gap:8px;
    width:auto;
    margin:0;
  }
  .nav-spacer,
  .avatar{ display:none; }

  .main{ padding-bottom:92px; }
}
/* =========================
   WOORDS — Poll UI Polish
   Add to dashboard.css
   ========================= */

.poll{
  margin-top:12px;
  display:grid;
  gap:10px;
}

.poll-question{
  font-size:14px;
  font-weight:700;
  color:#111;
  line-height:1.4;
}

.poll-options{
  display:grid;
  gap:8px;
}

.poll-option{
  position:relative;
  overflow:hidden;
  width:100%;
  border:1px solid var(--line, #e8e9ec);
  background:#fff;
  border-radius:16px;
  padding:12px 14px;
  text-align:left;
  cursor:pointer;
  transition:
    border-color .18s ease,
    transform .14s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.poll-option:hover:not(:disabled){
  border-color:#d7d9de;
  box-shadow:0 4px 12px rgba(0,0,0,.04);
  transform:translateY(-1px);
  background:#fcfcfc;
}

.poll-option:active:not(:disabled){
  transform:translateY(0);
}

.poll-option:disabled{
  cursor:default;
}

.poll-option.voted{
  border-color:#111;
  background:#fafafa;
}

.poll-bar{
  position:absolute;
  inset:0 auto 0 0;
  width:0;
  background:rgba(17,17,17,.06);
  pointer-events:none;
  transition:width .45s cubic-bezier(.2,.8,.2,1);
}

.poll-option.voted .poll-bar{
  background:rgba(17,17,17,.10);
}

.poll-option-content{
  position:relative;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.poll-option-text{
  min-width:0;
  color:#111;
  font-size:13px;
  font-weight:600;
  line-height:1.35;
}

.poll-option-meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}

.poll-percent{
  color:#6f7278;
  font-size:12px;
  font-weight:700;
}

.poll-check{
  width:18px;
  height:18px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:11px;
  font-weight:800;
  background:#111;
  color:#fff;
  opacity:0;
  transform:scale(.82);
  transition:opacity .18s ease, transform .18s ease;
}

.poll-option.voted .poll-check{
  opacity:1;
  transform:scale(1);
}

.poll-total{
  font-size:12px;
  color:#6f7278;
}

.poll-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  width:max-content;
  padding:6px 10px;
  border-radius:999px;
  background:#f5f5f5;
  color:#111;
  font-size:11px;
  font-weight:700;
  letter-spacing:.02em;
}

.poll-status::before{
  content:'';
  width:6px;
  height:6px;
  border-radius:50%;
  background:#111;
  opacity:.65;
}

.poll-builder{
  border-top:1px solid var(--line, #e8e9ec);
  background:#fcfcfc;
}

.poll-builder-card{
  display:grid;
  gap:10px;
}

.poll-input,
.poll-option-input{
  width:100%;
  border:1px solid var(--line, #e8e9ec);
  border-radius:14px;
  padding:10px 12px;
  font:inherit;
  background:#fff;
  color:#111;
  transition:border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.poll-input:focus,
.poll-option-input:focus{
  outline:none;
  border-color:#d7d9de;
  box-shadow:0 0 0 3px rgba(17,17,17,.04);
}

.poll-builder-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
}

.poll-toggle-active{
  background:#111 !important;
  color:#fff !important;
  border-color:#111 !important;
}

.poll-option.bump{
  animation:pollBump .28s ease;
}

@keyframes pollBump{
  0%{ transform:scale(.985); }
  45%{ transform:scale(1.012); }
  100%{ transform:scale(1); }
}

/* === AVATAR SYSTEM === */

.ava,
.reply-ava,
.composer-ava {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  font-weight: 700;
  font-size: 14px;
  color: #374151;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Smaller for replies */
.reply-ava {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

/* Image inside avatar */
.ava img,
.reply-ava img,
.composer-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Subtle hover effect */
.ava:hover,
.reply-ava:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* Optional ring (very premium feel) */
.ava::after,
.reply-ava::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  pointer-events: none;
}

.ava.clickable {
  cursor: pointer;
}

.avatar-hover-card {
  position: fixed;
  background: white;
  color: #111;
  padding: 12px;
  border-radius: 14px;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  z-index: 9999;
  min-width: 180px;
}

.hover-card-inner {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hover-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
}

.hover-avatar img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.hover-name {
  font-weight: 700;
}

.hover-meta {
  font-size: 12px;
  color: #666;
}

.ava,
.reply-ava {
  transition: all 0.15s ease;
}

.ava:active {
  transform: scale(0.96);
}

.topbar-centre {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
}

/* =========================================================
   WOORDS — THREADS PIXEL-PARITY FINAL PASS
   ========================================================= */
:root{
  --bg:#f3f3f4;
  --surface:#fff;
  --text:#101010;
  --muted:#777;
  --line:rgba(0,0,0,.055);
  --line-soft:rgba(0,0,0,.045);
  --hover:rgba(0,0,0,.045);
  --radius:18px;
  --feed:640px;
  --shadow:none;
}

html,body{
  background:var(--bg)!important;
  color:var(--text)!important;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif!important;
  font-size:14px;
  line-height:1.35;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}

.app,.main,.feed,.side{background:var(--bg)!important;}

.topbar{
  background:rgba(255,255,255,.96)!important;
  border-bottom:1px solid var(--line)!important;
  box-shadow:none!important;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.top-title{
  font-size:14px!important;
  font-weight:650!important;
  letter-spacing:-.01em!important;
  color:#111!important;
}

.rail{
  background:#fff!important;
  border-right:1px solid var(--line)!important;
  padding:16px 10px!important;
}

.nav{gap:8px!important;}

.nav-btn{
  width:52px!important;
  height:52px!important;
  border-radius:999px!important;
  color:#1f1f1f!important;
  opacity:.78!important;
  transition:background .14s ease,opacity .14s ease,transform .12s ease!important;
}

.nav-btn:hover{background:var(--hover)!important;opacity:1!important;}

.nav-btn.active,
.nav-btn.is-active,
.nav-btn[aria-current="page"]{
  background:#111!important;
  color:#fff!important;
  opacity:1!important;
  transform:none!important;
}

.main{
  padding:18px 20px 32px!important;
  justify-content:center!important;
}

.feed{width:min(var(--feed),100%)!important;}

.composer,
.post,
.context-card,
.modal-card{
  background:var(--surface)!important;
  border:1px solid var(--line)!important;
  border-radius:18px!important;
  box-shadow:none!important;
}

.composer{
  margin-top:14px!important;
  margin-bottom:12px!important;
  overflow:hidden!important;
}

.composer-inner{
  grid-template-columns:44px 1fr!important;
  gap:12px!important;
  padding:16px!important;
}

.composer textarea{
  font-size:15px!important;
  line-height:1.45!important;
  min-height:54px!important;
  color:#111!important;
}

.composer textarea::placeholder,
.reply-input::placeholder{color:#8a8a8a;}

.composer-actions{
  border-top:1px solid var(--line-soft)!important;
  padding:10px 16px!important;
}

.post{
  margin-top:12px!important;
  overflow:hidden!important;
  animation:fadeIn .22s ease!important;
  transition:border-color .14s ease,background .14s ease!important;
}

.post:hover{
  border-color:rgba(0,0,0,.075)!important;
  background:#fff!important;
  box-shadow:none!important;
  transform:none!important;
}

.post+.post{margin-top:12px!important;}

.post-inner,
.post-row{
  grid-template-columns:44px 1fr!important;
  gap:12px!important;
  padding:16px!important;
}

.post-name,
.meta .name{
  font-size:14px!important;
  font-weight:650!important;
  letter-spacing:-.01em!important;
  color:#111!important;
}

.post-meta,
.meta .time,
.meta .dot{
  font-size:13px!important;
  color:var(--muted)!important;
}

.post-text{
  margin-top:6px!important;
  font-size:15px!important;
  line-height:1.45!important;
  color:#1d1d1f!important;
  letter-spacing:-.005em!important;
}

.post-media{margin-top:10px!important;}
.post-media img{border-radius:16px!important;}

.post-footer{
  padding:8px 14px 12px!important;
  border-top:1px solid var(--line-soft)!important;
  gap:6px!important;
  margin-top:6px!important;
}

.icon-btn{
  padding:8px 9px!important;
  border-radius:999px!important;
  color:#222!important;
  opacity:.72!important;
  font-size:13px!important;
}

.icon-btn:hover{
  background:var(--hover)!important;
  opacity:1!important;
}

.action-count{font-size:12px!important;color:var(--muted)!important;}

.ava,
.composer-ava,
.post-ava{
  width:44px!important;
  height:44px!important;
  border:1px solid var(--line)!important;
  background:#111!important;
}

.reply-ava{
  width:34px!important;
  height:34px!important;
  border:1px solid var(--line)!important;
}

.ava:hover,
.reply-ava:hover{
  transform:none!important;
  box-shadow:none!important;
}

.ava::after,
.reply-ava::after{
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.045)!important;
}

.replies{
  border-top:1px solid var(--line-soft)!important;
  padding:10px 16px 14px!important;
}

.reply-item{
  grid-template-columns:34px 1fr!important;
  gap:10px!important;
  padding:10px 0!important;
}

.reply-name{font-size:13px!important;font-weight:650!important;}
.reply-meta{font-size:12px!important;color:var(--muted)!important;}
.reply-text{font-size:14px!important;line-height:1.45!important;}

.reply-input,
.field select,
.field input,
.poll-input,
.poll-option-input{
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  box-shadow:none!important;
}

.reply-input:focus,
.field select:focus,
.field input:focus,
.poll-input:focus,
.poll-option-input:focus{
  border-color:rgba(0,0,0,.12)!important;
  box-shadow:0 0 0 3px rgba(0,0,0,.035)!important;
}

.side{
  background:var(--bg)!important;
  border-left:1px solid var(--line)!important;
  padding:18px 14px!important;
}

.right-rail{gap:20px!important;max-width:320px!important;}

.right-card{
  background:transparent!important;
  border:none!important;
  border-radius:0!important;
  box-shadow:none!important;
}

.right-card-title{
  background:transparent!important;
  border:none!important;
  padding:8px 0!important;
  font-size:12px!important;
  font-weight:700!important;
  letter-spacing:.035em!important;
  text-transform:uppercase!important;
  color:#8a8a8a!important;
}

.context-card{padding-bottom:12px!important;}
.context-body{padding:0 14px 10px!important;}
.trend-item{padding:8px 0!important;}
.trend-name{font-size:14px!important;font-weight:700!important;}
.trend-sub,.trend-empty,.context-sub,.context-kicker{color:var(--muted)!important;}

.team-pill{
  min-height:38px!important;
  padding:8px 12px!important;
  border:1px solid var(--line)!important;
  background:#fff!important;
  box-shadow:none!important;
  font-size:13px!important;
  font-weight:650!important;
}

.team-pill:hover,
.team-item:hover,
.modal-x:hover{background:var(--hover)!important;}

#teamMenu,
.team-menu{
  border:1px solid var(--line)!important;
  box-shadow:0 18px 50px rgba(0,0,0,.08)!important;
}

.poll-option{
  border:1px solid var(--line)!important;
  background:#fff!important;
  border-radius:14px!important;
  box-shadow:none!important;
}

.poll-option:hover:not(:disabled){
  border-color:rgba(0,0,0,.09)!important;
  background:#fff!important;
  box-shadow:none!important;
  transform:none!important;
}

.poll-builder{
  border-top:1px solid var(--line-soft)!important;
  background:#fafafa!important;
}

.poll-status{background:var(--hover)!important;}

.modal-card{box-shadow:0 18px 60px rgba(0,0,0,.14)!important;}
.modal-head,.modal-foot{border-color:var(--line-soft)!important;}

@media (max-width:900px){
  :root{--rail:82px;}
  .main{padding:16px 16px 28px!important;}
  .nav-btn{width:50px!important;height:50px!important;}
}

@media (max-width:720px){
  :root{--rail:0px;--topbar-h:56px;}
  .topbar{height:var(--topbar-h)!important;padding:0 12px!important;}
  .rail{
    height:72px!important;
    background:#fff!important;
    border-top:1px solid var(--line)!important;
  }
  .main{padding:12px 12px 92px!important;}
  .composer,.post,.context-card{border-radius:16px!important;}
  .post-inner,.post-row,.composer-inner{padding:14px!important;}
}

/* =========================================================
   WOORDS — THREADS RAIL + TOPBAR FINAL UPDATE
   White fixed surfaces, no blur, ultra-subtle dividers
   ========================================================= */
:root{
  --bg:#f3f3f4;
  --surface:#ffffff;
  --line:rgba(0,0,0,.055);
  --line-soft:rgba(0,0,0,.045);
}

html,
body,
.app,
.main,
.feed,
.side{
  background:var(--bg) !important;
}

.topbar{
  background:var(--surface) !important;
  border-bottom:1px solid rgba(0,0,0,.05) !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

.rail{
  background:var(--surface) !important;
  border-right:1px solid rgba(0,0,0,.045) !important;
  box-shadow:none !important;
}

.side{
  background:var(--bg) !important;
  border-left:1px solid rgba(0,0,0,.045) !important;
}

.composer,
.post,
.context-card,
.modal-card,
.poll-option,
.reply-input,
.field select,
.field input{
  border-color:rgba(0,0,0,.055) !important;
}

.post-footer,
.replies,
.composer-actions,
.modal-head,
.modal-foot{
  border-color:rgba(0,0,0,.045) !important;
}

.nav-btn:hover,
.icon-btn:hover,
.team-pill:hover,
.team-item:hover,
.modal-x:hover{
  background:rgba(0,0,0,.045) !important;
}

@media (max-width:720px){
  .rail{
    background:var(--surface) !important;
    border-top:1px solid rgba(0,0,0,.055) !important;
    border-right:none !important;
  }
}


/* Public / logged-out WOORDS preview */
.public-composer-note{
  margin:0 14px 14px;
  padding:12px 14px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  background:#fafafa;
  color:#6f7278;
  font-size:13px;
  cursor:pointer;
}
.auth-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(0,0,0,.28);
  backdrop-filter:blur(4px);
  z-index:99999;
}
.auth-modal.open{display:flex;}
.auth-modal-card{
  position:relative;
  width:min(390px,100%);
  background:#f7f7f7;
  border:1px solid rgba(0,0,0,.08);
  border-radius:30px;
  box-shadow:0 24px 70px rgba(0,0,0,.18);
  padding:34px 30px 30px;
  text-align:center;
}
.auth-modal-close{
  position:absolute;
  top:14px;
  right:16px;
  width:32px;
  height:32px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:#555;
  font-size:26px;
  line-height:30px;
  cursor:pointer;
}
.auth-modal-logo{
  width:160px;
  height:110px;
  margin:0 auto 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  overflow:visible;
}
.auth-modal-logo img{
  display:block;
  width:160px;
  height:160px;
  object-fit:contain;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  filter:none !important;
}
.auth-modal-card h2{margin:0 0 10px;font-size:22px;line-height:1.2;color:#111;}
.auth-modal-card p{margin:0 0 24px;color:#808085;font-size:15px;line-height:1.45;}
.auth-modal-primary,.auth-modal-secondary,.threads-login-btn,.threads-create-link{
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}
.auth-modal-primary{
  min-height:54px;
  border-radius:18px;
  background:#fff;
  color:#111;
  font-weight:800;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 8px 20px rgba(0,0,0,.04);
}
.auth-modal-secondary{margin-top:16px;color:#777;font-weight:700;}
.threads-public-rail{display:grid;gap:14px;}
.threads-public-card{
  background:#f7f7f7;
  border:1px solid rgba(0,0,0,.08);
  border-radius:30px;
  padding:30px 26px;
  text-align:center;
  box-shadow:0 12px 35px rgba(0,0,0,.05);
}
.threads-phone-dot{width:58px;height:58px;margin:0 auto 18px;display:flex;align-items:center;justify-content:center;}
.threads-phone-dot img{display:block;width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 3px 8px rgba(0,0,0,.14));}
.threads-public-card h2{font-size:22px;line-height:1.2;margin:0 0 10px;color:#111;}
.threads-public-card p{margin:0 0 22px;color:#8a8a8f;line-height:1.45;font-size:15px;}
.threads-login-btn{width:100%;min-height:54px;border:1px solid rgba(0,0,0,.08);border-radius:18px;background:#fff;color:#111;font-weight:800;cursor:pointer;font:inherit;}
.threads-create-link{margin-top:16px;color:#777;font-weight:700;}
.threads-public-mini{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:20px;padding:16px;display:grid;gap:4px;}
.threads-public-mini strong{font-size:14px;color:#111;}.threads-public-mini span{font-size:13px;color:#777;}
.requires-login{cursor:pointer;}


/* WOORDS PNG logo modal fallback classes */
.modal-logo{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:0 auto 18px auto;
  width:160px;
  height:110px;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  overflow:visible;
}
.modal-logo-img{
  width:160px;
  height:160px;
  object-fit:contain;
  display:block;
  background:transparent !important;
  filter:none !important;
}

/* =========================================================
   WOORDS — FINAL ALIGNMENT + RESPONSIVE POLISH PATCH
   Aligns top-left logo with rail, keeps modal logo intact,
   improves feed/right-panel spacing and mobile behaviour.
   ========================================================= */

/* Top-left logo: align structurally with the rail width */
.topbar-left{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  padding-left:0 !important;
  min-width:0 !important;
}

.topbar-logo-wrap{
  width:56px !important;
  min-width:56px !important;
  flex:0 0 56px !important;
  height:var(--topbar-h) !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  margin:0 !important;
  padding:0 !important;
}

.topbar-logo-img{
  width:52px !important;
  height:52px !important;
  object-fit:contain !important;
  display:block !important;

  transform:translateX(1px) !important;

  margin:0 !important;
  padding:0 !important;
}

/* Keep rail navigation icons visually centred with the top logo */
.rail{
  width:var(--rail) !important;
  min-width:var(--rail) !important;
}

.nav-btn{
  width:52px !important;
  height:52px !important;
}

.rail-nav-logo{
  width:42px !important;
  height:42px !important;
  object-fit:contain !important;
  display:block !important;
}

/* Modal logo: preserve the version that already looks correct */
.auth-modal-logo,
.modal-logo{
  width:160px !important;
  height:110px !important;
  margin:0 auto 18px auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  overflow:visible !important;
}

.auth-modal-logo img,
.modal-logo-img{
  width:160px !important;
  height:160px !important;
  object-fit:contain !important;
  display:block !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  filter:none !important;
}

/* Threads-style layout balance */
.main{
  padding-left:20px !important;
  padding-right:20px !important;
}

.feed,
.feed-column,
.main-column,
.content-area{
  width:min(var(--feed), 100%) !important;
  max-width:var(--feed) !important;
}

.side{
  padding-left:18px !important;
  padding-right:18px !important;
}

.right-rail{
  width:100% !important;
  max-width:320px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Public right panel: align with Threads-style card spacing */
.threads-public-rail{
  width:100% !important;
  max-width:320px !important;
  margin:0 auto !important;
}

.threads-public-card{
  border-radius:30px !important;
  padding:30px 26px !important;
}

.threads-phone-dot{
  width:72px !important;
  height:72px !important;
  margin:0 auto 18px !important;
}

.threads-phone-dot img{
  width:72px !important;
  height:72px !important;
  object-fit:contain !important;
  display:block !important;
  filter:none !important;
}

/* Desktop: keep app columns aligned to the same rail variable */
.app{
  grid-template-columns:var(--rail) minmax(0,1fr) var(--side) !important;
}

/* Tablet */
@media (max-width:1040px){
  .app{
    grid-template-columns:var(--rail) minmax(0,1fr) !important;
  }

  .side{
    display:none !important;
  }
}

@media (max-width:900px){
  :root{
    --rail:82px;
  }

  .topbar-logo-wrap{
    width:var(--rail) !important;
    min-width:var(--rail) !important;
    flex-basis:var(--rail) !important;
  }

  .topbar-logo-img{
    width:48px !important;
    height:48px !important;
  }

  .rail-nav-logo{
    width:38px !important;
    height:38px !important;
  }
}

/* Mobile: top logo should not reserve desktop rail space */
@media (max-width:720px){
  :root{
    --rail:0px;
    --topbar-h:56px;
  }

  .topbar-left{
    flex:1 1 auto !important;
  }

  .topbar-logo-wrap{
    width:56px !important;
    min-width:56px !important;
    flex:0 0 56px !important;
    height:var(--topbar-h) !important;
    justify-content:flex-start !important;
  }

  .topbar-logo-img{
    width:42px !important;
    height:42px !important;
  }

  .app{
    grid-template-columns:1fr !important;
  }

  .main{
    padding-left:12px !important;
    padding-right:12px !important;
    padding-bottom:92px !important;
  }

  .auth-modal{
    padding:18px !important;
  }

  .auth-modal-card{
    width:min(390px, 100%) !important;
    border-radius:28px !important;
    padding:30px 24px 26px !important;
  }

  .auth-modal-logo,
  .modal-logo{
    width:145px !important;
    height:100px !important;
  }

  .auth-modal-logo img,
  .modal-logo-img{
    width:145px !important;
    height:145px !important;
  }
}

/* =========================================================
   WORLD CUP LIVE CARD
   ========================================================= */

/* =========================================================
   WORLD CUP RIGHT PANEL CARD — CLEAN WOORDS STYLE
   ========================================================= */

.worldcup-card {
    width: 100%;
    margin: 0 0 16px 0;
    position: relative;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid rgba(226, 232, 240, 0.88) !important;
    border-radius: 22px !important;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.045),
        0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.worldcup-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.28) 50%,
        transparent 100%
    );

    transform: translateX(-120%);
    animation: wcShimmer 9s infinite;
}

@keyframes wcShimmer {
    0%, 85% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(120%);
    }
}

.worldcup-card-inner {
    position: relative;
    z-index: 1;
    padding: 16px;
}

.worldcup-topline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #111827;
}

.worldcup-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.12);
    animation: worldcupPulse 1.8s ease-in-out infinite;
}

@keyframes worldcupPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.22);
        opacity: 0.72;
    }
}

.worldcup-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4px 0 16px;
}

.worldcup-logo,
.worldcup-logo-large {
    width: 112px !important;
    max-width: 70%;
    height: auto;
    display: block;
    filter: drop-shadow(0 14px 24px rgba(15, 23, 42, 0.12));
}

.worldcup-copy {
    text-align: center;
}

.worldcup-copy h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #111827;
}

.worldcup-copy p {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.42;
    color: #6b7280;
}

.worldcup-mini-stats,
.worldcup-brand-row {
    display: none !important;
}

.worldcup-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    margin-top: 16px;
    border-radius: 14px;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: transform 0.16s ease, background 0.16s ease;
}

.worldcup-cta:hover {
    background: #1f2937;
    transform: translateY(-2px);
}


/* =========================================================
   WORLD CUP FEED EXPERIENCE
   Subtle styling only when viewing team_id=103.
   ========================================================= */

.worldcup-feed-active body,
body.worldcup-feed-active {
    background:
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.045), transparent 34%),
        radial-gradient(circle at top left, rgba(17, 24, 39, 0.035), transparent 28%),
        #f3f3f3 !important;
}

.worldcup-feed-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 16px;
    align-items: center;
    margin: 14px 0 12px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.045),
        0 1px 2px rgba(15, 23, 42, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.worldcup-feed-glow {
    position: absolute;
    inset: auto -90px -90px auto;
    width: 220px;
    height: 220px;
    pointer-events: none;
    background:
        radial-gradient(circle, rgba(239, 68, 68, 0.08), transparent 64%);
}

.worldcup-feed-logo-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
}

.worldcup-feed-logo {
    width: 78px;
    height: auto;
    display: block;
    filter:
        drop-shadow(0 14px 24px rgba(15, 23, 42, 0.12))
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.worldcup-feed-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.worldcup-feed-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.085em;
    color: #111827;
}

.worldcup-feed-hero h1 {
    margin: 0;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.03;
    letter-spacing: -0.055em;
    font-weight: 850;
    color: #111827;
}

.worldcup-feed-hero p {
    margin: 8px 0 0;
    max-width: 54ch;
    font-size: 13px;
    line-height: 1.45;
    color: #667085;
}

.worldcup-feed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.worldcup-feed-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.worldcup-feed-tags a:hover {
    background: #f9fafb;
    border-color: rgba(209, 213, 219, 0.95);
    transform: translateY(-1px);
}

.worldcup-feed-active .composer {
    border-color: rgba(17, 24, 39, 0.10) !important;
}

.worldcup-feed-active .team-pill {
    border-color: rgba(17, 24, 39, 0.16) !important;
}

@media (max-width: 640px) {
    .worldcup-feed-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 18px 16px;
    }

    .worldcup-feed-logo {
        width: 82px;
    }

    .worldcup-feed-kicker,
    .worldcup-feed-tags {
        justify-content: center;
    }

    .worldcup-feed-hero p {
        margin-left: auto;
        margin-right: auto;
    }
}


/* =========================================================
   RIGHT PANEL POLISH
   Cleaner context, trending and status cards
   ========================================================= */

.side {
    background: #f3f3f3 !important;
}

.right-rail {
    gap: 18px !important;
}

.right-card.context-card,
.right-card.discovery-card,
.right-card.status-card {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.94) !important;
    border: 1px solid rgba(226,232,240,0.9) !important;
    border-radius: 22px !important;
    box-shadow:
        0 10px 28px rgba(15,23,42,0.035),
        0 1px 2px rgba(15,23,42,0.025) !important;
}

.right-card-title {
    padding: 16px 16px 10px !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #8a94a6 !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    text-transform: uppercase !important;
}

.context-body {
    padding: 0 16px 16px !important;
}

.context-kicker {
    margin-bottom: 4px !important;
    color: #667085 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.context-main {
    margin-top: 0 !important;
    color: #111827 !important;
    font-size: 17px !important;
    font-weight: 850 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.15 !important;
}

.context-sub {
    margin-top: 6px !important;
    color: #667085 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

#contextChips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

.context-chip {
    display: inline-flex !important;
    align-items: center !important;
    height: 26px !important;
    padding: 0 10px !important;
    border: 1px solid rgba(226,232,240,0.95) !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    margin: 0 !important;
}

.discovery-card {
    padding-bottom: 8px !important;
}

.trend-list {
    display: grid !important;
    gap: 4px !important;
    padding: 0 10px 10px !important;
}

.trend-item {
    display: grid !important;
    grid-template-columns: 30px 1fr !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 8px !important;
    border: 0 !important;
    border-radius: 14px !important;
    color: #111827 !important;
    text-decoration: none !important;
    transition:
        background 0.16s ease,
        transform 0.16s ease !important;
}

.trend-item:hover {
    background: #f8fafc !important;
    opacity: 1 !important;
    transform: translateY(-1px) !important;
}

.trend-rank {
    width: 28px !important;
    height: 28px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    background: #f3f4f6 !important;
    color: #111827 !important;
    font-size: 11px !important;
    font-weight: 850 !important;
}

.trend-name {
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
}

.trend-sub {
    margin-top: 3px !important;
    color: #667085 !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
}

.trend-empty {
    margin: 0 16px 14px !important;
    padding: 14px !important;
    border: 1px dashed rgba(203,213,225,0.95) !important;
    border-radius: 16px !important;
    background: #f8fafc !important;
    color: #667085 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.status-card {
    padding: 0 !important;
}

.secure-status-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 16px !important;
}

.secure-dot {
    width: 9px !important;
    height: 9px !important;
    border-radius: 999px !important;
    background: #22c55e !important;
    box-shadow: 0 0 0 6px rgba(34,197,94,0.12) !important;
    flex: 0 0 auto !important;
}

.secure-text {
    color: #475467 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.secure-text strong,
.secure-status-row strong {
    color: #111827 !important;
    font-weight: 800 !important;
}

/* Make the World Cup promo card sit neatly with the cleaned right rail */
.worldcup-card {
    margin-bottom: 18px !important;
}

/* Mobile keeps right panel hidden as before */
@media (max-width: 1040px) {
    .side {
        display: none !important;
    }
}

/* =========================================================
   FEED USERNAME INLINE
   Shows @username neatly after display names in feed metadata.
   ========================================================= */

.username-inline {
    color: #667085 !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    letter-spacing: -0.01em !important;
}

.meta .username-inline {
    margin-left: 2px !important;
}

.post-head .meta {
    gap: 6px !important;
}

.username-inline::after{
    content: ".woords.social";
    opacity: .72;
    margin-left: 1px;
}

/* =========================================
   FULL WIDTH ADMIN LAYOUT
========================================= */

/* =========================================
   FORCE FULL WIDTH ADMIN
========================================= */

.admin-page,
.admin-page * {
    box-sizing: border-box;
}

/* Break out of Threads feed width */
.admin-page {
    width: calc(100vw - 240px) !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 24px 32px !important;
}

/* Target common layout wrappers */
.admin-page,
.admin-page .feed,
.admin-page .feed-shell,
.admin-page .feed-layout,
.admin-page .page-layout,
.admin-page .content-area,
.admin-page .main-content,
.admin-page .center-column,
.admin-page .timeline,
.admin-page .main {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Main admin container */
.admin-shell {
    width: 100% !important;
    max-width: none !important;
}

/* Dashboard rows */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    width: 100%;
}

.admin-main {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    width: 100%;
}

/* Stretch cards */
.admin-card,
.admin-panel,
.admin-section,
.admin-hero {
    width: 100%;
    max-width: none !important;
}

.onboarding-card{
  margin:16px 0;
  padding:16px 18px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  box-shadow:0 8px 22px rgba(15,23,42,.04);
  font-weight:600;
}

.onboarding-first-post p{
  margin:6px 0 14px;
  color:#64748b;
  font-weight:400;
}

.first-post-start{
  border:none;
  background:#000;
  color:#fff;
  border-radius:14px;
  padding:10px 14px;
  font-weight:700;
  cursor:pointer;
}

/* =========================================================
   WOORDS — PREMIUM SPONSORED POSTS
   ========================================================= */

.sponsored-post{
    position:relative;
    overflow:hidden;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.98) 0%,
            rgba(250,250,251,0.98) 100%
        ) !important;

    border:1px solid rgba(0,0,0,.06) !important;
    border-radius:26px !important;

    box-shadow:
        0 12px 34px rgba(15,23,42,.05),
        0 1px 2px rgba(15,23,42,.04) !important;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease !important;
}

.sponsored-post:hover{
    transform:translateY(-2px) !important;

    border-color:rgba(0,0,0,.08) !important;

    box-shadow:
        0 18px 44px rgba(15,23,42,.08),
        0 2px 4px rgba(15,23,42,.05) !important;
}

.sponsored-post::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;

    background:
        radial-gradient(
            circle at top right,
            rgba(59,130,246,.05),
            transparent 34%
        );
}

/* ===== Sponsored label ===== */

.sponsored-label-row{
    padding:18px 22px 0 !important;
}

.sponsored-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;

    height:30px;
    padding:0 14px;

    border-radius:999px;

    background:#f3f4f6;
    border:1px solid rgba(0,0,0,.05);

    color:#111827;
    font-size:11px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.sponsored-badge::before{
    content:"";
    width:8px;
    height:8px;
    border-radius:999px;
    background:#111827;
    opacity:.72;
}

/* ===== Layout ===== */

.sponsored-post .post-row{
    padding-top:14px !important;
}

.sponsored-post .post-main{
    min-width:0;
}

/* ===== Header ===== */

.sponsored-post .meta .name{
    font-size:14px !important;
    font-weight:800 !important;
    letter-spacing:-0.02em !important;
}

.sponsored-post .meta .time{
    color:#667085 !important;
    font-size:13px !important;
}

/* ===== Title ===== */

.sponsored-title{
    margin-top:10px;

    font-size:32px;
    line-height:1.02;
    letter-spacing:-0.055em;

    font-weight:900;
    color:#111827;
}

/* ===== Body ===== */

.sponsored-post .post-text{
    margin-top:12px !important;

    font-size:15px !important;
    line-height:1.55 !important;

    color:#475467 !important;

    max-width:62ch;
}

/* ===== Media ===== */

.sponsored-media{
    position:relative;
    overflow:hidden;

    margin-top:18px;

    border-radius:22px;

    border:1px solid rgba(0,0,0,.06);

    background:#f3f4f6;
}

.sponsored-media img{
    display:block;

    width:100%;
    max-height:520px;

    object-fit:cover;

    transition:transform .4s ease;
}

.sponsored-post:hover .sponsored-media img{
    transform:scale(1.015);
}

/* ===== CTA ===== */

.sponsored-footer{
    display:flex;
    justify-content:flex-end;
    align-items:center;

    margin-top:18px;
}

.sponsored-cta{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-width:140px;
    height:48px;

    padding:0 22px;

    border-radius:16px;

    background:#111827;
    color:#fff !important;

    text-decoration:none;

    font-size:14px;
    font-weight:800;
    letter-spacing:-0.01em;

    transition:
        transform .16s ease,
        opacity .16s ease,
        background .16s ease !important;
}

.sponsored-cta:hover{
    background:#1f2937 !important;
    transform:translateY(-1px);
    opacity:1 !important;
}

/* ===== Sponsor avatar ===== */

.sponsored-post .ava{
    width:48px !important;
    height:48px !important;

    border:1px solid rgba(0,0,0,.06) !important;

    box-shadow:
        0 4px 14px rgba(0,0,0,.06);
}

/* ===== Mobile ===== */

@media (max-width:720px){

    .sponsored-post{
        border-radius:22px !important;
    }

    .sponsored-title{
        font-size:24px;
        line-height:1.06;
    }

    .sponsored-post .post-text{
        font-size:14px !important;
    }

    .sponsored-footer{
        justify-content:stretch;
    }

    .sponsored-cta{
        width:100%;
    }
}

/* TEMP FIX - Teams cards visible */
.teams-page * {
  opacity: 1 !important;
  visibility: visible !important;
}

.woords-team-card,
.woords-team-card *,
.team-card,
.team-card * {
  color: #111 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.team-title,
.team-name,
.woords-team-title {
  display: block !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #111 !important;
}

.team-desc,
.team-meta,
.woords-team-meta {
  display: block !important;
  color: #64748b !important;
}


/* FIX teams page hidden card text */
.team-card-main {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.team-copy {
  display: block !important;
  flex: 1 !important;
  min-width: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.team-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.team-title {
  display: inline-block !important;
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.team-meta {
  display: block !important;
  margin-top: 4px !important;
  color: #64748b !important;
  font-size: 13px !important;
}

.team-actions {
  display: flex !important;
}

/* QUICK TEAMS POLISH */

.team-row{
  padding:12px 16px !important;
  min-height:auto !important;
  transition:all .16s ease;
}

.team-row:hover{
  background:#fafafa;
}

.team-avatar{
  width:40px !important;
  height:40px !important;
  border-radius:12px !important;
  font-size:14px !important;
  background:linear-gradient(135deg,#0f172a,#334155) !important;
  box-shadow:0 2px 8px rgba(15,23,42,.15);
}

.team-name{
  font-size:15px !important;
  font-weight:700 !important;
  color:#0f172a !important;
}

.team-description{
  font-size:13px !important;
  color:#64748b !important;
  margin-top:2px !important;
}

.team-actions{
  gap:8px !important;
}

.team-actions a,
.team-actions button{
  height:34px !important;
  padding:0 14px !important;
  border-radius:999px !important;
  font-size:13px !important;
  font-weight:600 !important;
  transition:all .16s ease;
}

.team-actions a{
  background:#fff !important;
  border:1px solid #e5e7eb !important;
  color:#111827 !important;
}

.team-actions button{
  background:#0f172a !important;
  color:#fff !important;
  border:none !important;
}

.team-actions button:hover{
  transform:translateY(-1px);
}

.teams-card{
  border-radius:24px !important;
  overflow:hidden;
}

/* WOORDS Teams refinements */

.teams-card{
  transition:all .18s ease;
}

.team-row{
  position:relative;
}

.team-row:hover{
  transform:translateY(-1px);
  box-shadow:0 2px 10px rgba(15,23,42,.04);
  z-index:2;
}

.team-description{
  display:flex;
  align-items:center;
  gap:8px;
}

.team-description::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:#22c55e;
  flex-shrink:0;
}

.team-actions .joined,
.team-actions button.joined{
  background:#eef2f7 !important;
  color:#0f172a !important;
}

.team-actions .joined:hover{
  background:#e2e8f0 !important;
}

.team-chip{
  display:inline-flex;
  align-items:center;
  height:22px;
  padding:0 9px;
  border-radius:999px;
  background:#fff1f2;
  color:#e11d48;
  font-size:11px;
  font-weight:700;
  margin-left:8px;
}

.teams-search{
  max-width:520px;
}

.page-shell{
  gap:34px !important;
}

/* Hide Open unless team is joined */
.team-row .team-open-btn,
.team-card .team-open-btn {
  display: none !important;
}

.team-row:has(.team-join-btn.joined) .team-open-btn,
.team-row:has(.team-join-btn.added) .team-open-btn,
.team-card:has(.team-join-btn.joined) .team-open-btn,
.team-card:has(.team-join-btn.added) .team-open-btn {
  display: inline-flex !important;
}

