:root{--primary:#4f46e5;--secondary:#7c3aed;--app-bg:#f4f6fb;--surface:#fff;--text:#172033;--muted:#6b7280;--line:#e7eaf0}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;padding-top:72px;background:var(--app-bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif}.topbar{position:fixed;inset:0 0 auto;z-index:1050;min-height:72px;background:linear-gradient(135deg,var(--primary),var(--secondary));box-shadow:0 8px 28px rgba(30,20,80,.18)}.brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:900;font-size:1.35rem}.brand-logo{width:40px;height:40px;object-fit:contain;border-radius:10px;background:#fff;padding:3px}.desktop-nav a{color:rgba(255,255,255,.92);text-decoration:none;font-weight:650}.desktop-nav a:hover{color:#fff}.profile-mini{display:flex;align-items:center;gap:7px}.profile-mini img{width:34px;height:34px;border-radius:50%;object-fit:cover}.notif-link{position:relative}.badge-notif{position:absolute;top:-9px;right:-12px;background:#ef4444;color:#fff;border-radius:999px;font-size:.65rem;padding:2px 6px}.hero{background:linear-gradient(135deg,var(--primary),var(--secondary));color:#fff;padding:42px 0 78px}.hero h1{font-size:clamp(2rem,5vw,3.5rem);font-weight:900}.hero p{font-size:1.08rem;opacity:.92;max-width:760px}.main-lift{margin-top:-42px;padding-bottom:80px}.panel{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 12px 35px rgba(17,24,39,.06)}.panel-head{padding:18px 20px;border-bottom:1px solid var(--line);font-weight:850}.category-row{display:grid;grid-template-columns:58px 1fr auto;gap:14px;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--text);transition:.2s}.category-row:last-child{border-bottom:0}.category-row:hover{background:#f8fafc}.cat-icon{width:50px;height:50px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#eef2ff;color:var(--primary);font-size:1.2rem}.cat-name{font-weight:850}.cat-desc,.meta{font-size:.82rem;color:var(--muted)}.cat-stats{text-align:right;font-size:.78rem;color:var(--muted)}.topic-row{display:grid;grid-template-columns:52px 1fr auto;gap:13px;align-items:center;padding:16px 20px;border-bottom:1px solid var(--line)}.topic-row:last-child{border-bottom:0}.avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;background:#eef2ff}.topic-title{font-weight:820;color:var(--text);text-decoration:none}.topic-title:hover{color:var(--primary)}.topic-stats{display:flex;gap:18px;text-align:center}.topic-stats strong{display:block}.topic-stats span{font-size:.72rem;color:var(--muted)}.sidebar-card{padding:18px}.tag-pill{display:inline-block;padding:6px 10px;border-radius:999px;background:#eef2ff;color:#4338ca;text-decoration:none;font-size:.8rem;margin:3px}.form-control,.form-select{border-radius:12px;min-height:46px;border-color:#dfe3eb}.btn{border-radius:11px}.btn-primary{background:linear-gradient(135deg,var(--primary),var(--secondary));border:0}.topic-card{padding:22px}.topic-content{white-space:pre-wrap;line-height:1.75}.reply{padding:18px;border-top:1px solid var(--line)}.reply:first-child{border-top:0}.reply-body{white-space:pre-wrap;line-height:1.65}.action{border:0;background:transparent;color:var(--muted);font-weight:650;padding:6px 9px;border-radius:9px}.action:hover{background:#f1f5f9;color:var(--primary)}.profile-cover{height:160px;border-radius:18px 18px 0 0;background:linear-gradient(135deg,var(--primary),var(--secondary))}.profile-box{padding:0 22px 22px}.profile-avatar{width:112px;height:112px;border-radius:50%;object-fit:cover;border:5px solid #fff;margin-top:-56px;background:#fff}.role-badge{font-size:.72rem;border-radius:999px;padding:4px 8px;background:#eef2ff;color:#4338ca}.empty{padding:35px;text-align:center;color:var(--muted)}.mobile-nav{display:none}.site-footer{background:#101827;color:#9ca3af;padding:28px 0;margin-top:20px;font-size:.85rem}.admin-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.stat-card{padding:20px}.stat-card strong{font-size:1.6rem}.stat-card span{display:block;color:var(--muted);font-size:.8rem}.sticky-side{position:sticky;top:92px}@media(max-width:991.98px){body{padding-top:64px;padding-bottom:72px}.topbar{min-height:64px}.desktop-nav{display:none!important}.hero{padding:30px 0 58px}.main-lift{margin-top:-30px}.category-row{grid-template-columns:50px 1fr}.cat-stats,.topic-stats{display:none}.topic-row{grid-template-columns:48px 1fr}.mobile-nav{position:fixed;display:flex;left:0;right:0;bottom:0;z-index:1060;background:#fff;border-top:1px solid var(--line);justify-content:space-around;padding:7px 4px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -5px 18px rgba(0,0,0,.06)}.mobile-nav a{position:relative;color:#667085;text-decoration:none;text-align:center;font-size:.7rem;min-width:58px}.mobile-nav i{display:block;font-size:1.12rem;margin-bottom:3px}.mobile-nav b{position:absolute;top:-2px;right:8px;background:#ef4444;color:#fff;border-radius:999px;font-size:.62rem;padding:1px 5px}.new-mobile i{width:34px;height:34px;line-height:34px;margin:-18px auto 3px;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--secondary));color:#fff;box-shadow:0 5px 15px rgba(79,70,229,.35)}.admin-grid{grid-template-columns:1fr 1fr}.sticky-side{position:static}.site-footer{display:none}}@media(max-width:575.98px){.panel{border-radius:14px}.topic-card{padding:16px}.category-row,.topic-row{padding:14px}.admin-grid{grid-template-columns:1fr}.profile-cover{height:120px}}


/* ===== Forum7 v8: visual 3D, cards e mobile ===== */
:root{
  --surface:#ffffff;
  --surface-soft:#f8fafc;
  --text:#172033;
  --muted:#64748b;
  --border:#e5e7eb;
  --shadow-sm:0 8px 24px rgba(15,23,42,.08);
  --shadow-md:0 16px 42px rgba(15,23,42,.13);
  --shadow-3d:0 12px 0 rgba(49,46,129,.20),0 20px 40px rgba(15,23,42,.18);
}
body{
  background:
    radial-gradient(circle at 15% 0%, rgba(124,58,237,.08), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(79,70,229,.09), transparent 30%),
    var(--bg);
}
.topbar{
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  border-bottom:1px solid rgba(255,255,255,.15);
  box-shadow:0 10px 0 rgba(49,46,129,.12),0 18px 36px rgba(30,41,59,.24);
  transform:translateZ(0);
}
.topbar .brand{
  text-shadow:0 2px 0 rgba(0,0,0,.15),0 5px 12px rgba(0,0,0,.18);
  transition:transform .2s ease,filter .2s ease;
}
.topbar .brand:hover{transform:translateY(-2px) scale(1.02);filter:brightness(1.04)}
.topbar .nav-link,.topbar .top-link,.topbar .btn{
  transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease;
}
.topbar .nav-link:hover,.topbar .top-link:hover,.topbar .btn:hover{
  transform:translateY(-2px);
}
.panel,.card-soft,.topic-card,.category-card,.forum-card{
  border:1px solid rgba(148,163,184,.22)!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#fff,rgba(255,255,255,.97));
  box-shadow:var(--shadow-sm);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
  transform:translateZ(0);
}
.panel:hover,.card-soft:hover,.topic-card:hover,.category-card:hover,.forum-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-md);
  border-color:rgba(99,102,241,.28)!important;
}
.category-chip,.action,.action-btn,.btn{
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.category-chip:hover,.action:hover,.action-btn:hover,.btn:hover{
  transform:translateY(-2px);
}
.btn-primary{
  border:0;
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  box-shadow:0 6px 0 rgba(49,46,129,.18),0 12px 24px rgba(79,70,229,.22);
}
.btn-primary:active{
  transform:translateY(2px);
  box-shadow:0 2px 0 rgba(49,46,129,.18),0 6px 12px rgba(79,70,229,.18);
}
.avatar{
  box-shadow:0 5px 16px rgba(15,23,42,.14);
  border:2px solid rgba(255,255,255,.9);
}
.reply{
  border-bottom:1px solid var(--border);
  padding:22px;
  background:linear-gradient(180deg,#fff,#fbfdff);
}
.reply:last-child{border-bottom:0}
.topic-content,.reply-body{line-height:1.7}
.ratio iframe{
  border:0;
  border-radius:16px;
  box-shadow:var(--shadow-sm);
}
.mobile-bottom-nav{
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  background:rgba(255,255,255,.92);
  border-top:1px solid rgba(148,163,184,.25);
  box-shadow:0 -10px 30px rgba(15,23,42,.12);
}
.mobile-bottom-nav a{
  border-radius:14px;
  padding:7px 8px;
  transition:transform .18s ease,background .18s ease,color .18s ease;
}
.mobile-bottom-nav a:hover,.mobile-bottom-nav a:focus{
  transform:translateY(-3px);
  background:linear-gradient(135deg,rgba(79,70,229,.09),rgba(124,58,237,.10));
  color:var(--primary);
}
@media (max-width:991.98px){
  .topbar{box-shadow:0 7px 0 rgba(49,46,129,.10),0 12px 26px rgba(30,41,59,.20)}
  .panel,.card-soft,.topic-card,.category-card,.forum-card{border-radius:16px!important}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

/* ===== Forum7 Community Layout - inspirado no dashboard de referência ===== */
:root{
  --topbar-h:78px;
  --side-w:88px;
  --dashboard-bg:#f7f8fb;
  --dash-text:#111827;
  --dash-muted:#7b8497;
  --dash-line:#e7e9ef;
  --dash-card:#ffffff;
  --dash-accent:#ff4f2d;
}
html,body{min-height:100%}
body{padding-top:var(--topbar-h);background:var(--dashboard-bg);color:var(--dash-text);overflow-x:hidden}
.community-topbar{position:fixed;z-index:1100;top:0;left:0;right:0;height:var(--topbar-h);background:rgba(255,255,255,.97);border-bottom:1px solid var(--dash-line);box-shadow:0 4px 22px rgba(31,41,55,.04);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.topbar-inner{height:100%;display:grid;grid-template-columns:44px 260px minmax(390px,1fr) minmax(180px,250px) auto;gap:18px;align-items:center;padding:0 24px}
.icon-button{width:42px;height:42px;border:0;background:transparent;border-radius:12px;color:#1f2937;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-size:1.12rem}.icon-button:hover{background:#f3f4f6;color:var(--primary)}
.community-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--dash-text);min-width:0}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,var(--primary),var(--secondary));box-shadow:0 8px 18px color-mix(in srgb,var(--primary) 20%,transparent)}.brand-mark img{width:100%;height:100%;object-fit:cover}.brand-copy{display:flex;flex-direction:column;min-width:0}.brand-copy strong{font-size:1.35rem;line-height:1.1;color:var(--primary);font-weight:900}.brand-copy small{font-size:.72rem;color:#626b7c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:205px}
.top-main-nav{height:100%;display:flex;align-items:stretch;justify-content:center;gap:8px}.top-main-nav a{position:relative;min-width:82px;padding:0 12px;display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;color:#263044;font-size:.82rem;border-bottom:3px solid transparent}.top-main-nav a i{font-size:1rem}.top-main-nav a:hover,.top-main-nav a.active{color:var(--primary);background:linear-gradient(180deg,transparent,rgba(255,79,45,.045));border-bottom-color:var(--primary)}.top-badge,.floating-badge{background:var(--primary);color:#fff;border-radius:999px;font-weight:800;font-size:.62rem;padding:2px 6px}.top-badge{position:absolute;top:15px;right:6px}.floating-badge{position:absolute;top:2px;right:1px}
.top-search{height:42px;border:1px solid var(--dash-line);background:#fafbfc;border-radius:999px;display:flex;align-items:center;gap:10px;padding:0 16px}.top-search i{color:#788196}.top-search input{border:0;outline:0;background:transparent;width:100%;font-size:.83rem;color:#334155}.top-actions{display:flex;align-items:center;gap:9px;justify-content:flex-end}.user-menu{display:flex;align-items:center;gap:8px;color:#1f2937;text-decoration:none;font-size:.83rem;font-weight:700}.user-menu img{width:38px;height:38px;border-radius:50%;object-fit:cover}.user-menu i{font-size:.7rem}
.community-sidebar{position:fixed;z-index:1080;top:var(--topbar-h);bottom:0;left:0;width:var(--side-w);background:#fff;border-right:1px solid var(--dash-line);display:flex;flex-direction:column;justify-content:space-between;padding:18px 10px 22px}.side-nav{display:flex;flex-direction:column;gap:8px}.side-nav a{position:relative;min-height:62px;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-decoration:none;color:#627087;font-size:.65rem}.side-nav a i{font-size:1.14rem}.side-nav a:hover,.side-nav a.active{background:#fff3ef;color:var(--primary)}.side-nav a b{position:absolute;top:7px;right:12px;background:var(--primary);color:#fff;border-radius:99px;padding:1px 5px;font-size:.58rem}.sidebar-bottom{display:flex;flex-direction:column;align-items:center;gap:5px;color:#657186;font-size:.62rem}.sidebar-bottom i{font-size:1.25rem}.sidebar-backdrop{display:none}
body>main.container,body>main.container-fluid,.community-page{margin-left:var(--side-w)}
body>main.container{width:calc(100% - var(--side-w));max-width:1320px;padding-left:30px;padding-right:30px}
.community-page{min-height:calc(100vh - var(--topbar-h));padding:24px 28px 40px}.home-dashboard{max-width:1540px;margin-right:auto}
.dashboard-grid{display:grid;grid-template-columns:280px minmax(520px,1fr) 300px;gap:28px;align-items:start}.feed-left-column,.feed-right-column{display:flex;flex-direction:column;gap:18px}.feed-left-column,.feed-right-column{position:sticky;top:calc(var(--topbar-h) + 24px)}
.dashboard-card{background:var(--dash-card);border:1px solid var(--dash-line);border-radius:10px;box-shadow:0 7px 20px rgba(31,41,55,.035);overflow:hidden}.dash-card-title{font-size:1rem;font-weight:850;padding:18px 18px 14px;color:#111827}
.mini-topic-list{padding:0 14px 8px}.mini-topic{display:grid;grid-template-columns:62px 1fr;gap:11px;align-items:center;padding:9px 0;text-decoration:none;color:var(--dash-text)}.mini-thumb{width:62px;height:62px;border-radius:6px;overflow:hidden;background:#eef1f5}.mini-thumb img{width:100%;height:100%;object-fit:cover}.mini-thumb span{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#f4f6fb,#e9edf4);color:var(--primary);font-size:1.2rem}.mini-topic-copy{min-width:0}.mini-topic-copy strong{display:block;font-size:.78rem;line-height:1.35;margin-bottom:5px}.mini-topic-copy small{display:block;font-size:.66rem;color:#778195}.mini-topic-copy em{color:var(--primary);font-style:normal}.card-link-button{display:block;margin:10px 14px 14px;padding:9px;text-align:center;border:1px solid var(--dash-line);border-radius:6px;text-decoration:none;color:#4b5563;font-weight:750;font-size:.7rem}.card-link-button:hover{border-color:var(--primary);color:var(--primary);background:#fff7f5}
.soft-count{padding:4px 8px;border-radius:999px;background:#eafaf1;color:#15a865;font-size:.7rem}.avatar-cloud{display:flex;flex-wrap:wrap;gap:10px;padding:4px 18px 18px}.avatar-cloud a,.active-row a{display:block}.avatar-cloud img{width:43px;height:43px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 3px 9px rgba(31,41,55,.12)}.community-totals{border-top:1px solid var(--dash-line);padding:12px 18px;display:flex;justify-content:space-between;font-size:.68rem;color:#7a8395}.community-totals strong{color:#111827}.category-quick{padding-bottom:10px}.category-quick>a{display:grid;grid-template-columns:24px 1fr auto;gap:9px;align-items:center;text-decoration:none;color:#4b5563;padding:9px 18px;font-size:.75rem}.category-quick>a:hover{color:var(--primary);background:#fff8f6}.category-quick>a i{color:var(--primary)}.category-quick>a b{font-size:.67rem;background:#f3f4f6;border-radius:99px;padding:2px 7px}
.feed-heading{height:40px;display:flex;align-items:center;margin-bottom:12px}.feed-heading h1{font-size:1.28rem;font-weight:850;margin:0}.composer-card{margin-bottom:20px}.composer-top{display:flex;align-items:center;gap:14px;padding:18px}.composer-top img{width:42px;height:42px;border-radius:50%;object-fit:cover}.composer-top a{flex:1;text-decoration:none;color:#969eae;font-size:.82rem}.composer-actions{border-top:1px solid var(--dash-line);padding:10px 16px;display:flex;align-items:center;justify-content:space-between}.composer-actions>div{display:flex;gap:5px}.composer-actions>div a{width:34px;height:34px;display:grid;place-items:center;color:#667085;border-radius:8px;text-decoration:none}.composer-actions>div a:hover{background:#f3f4f6;color:var(--primary)}.guest-composer{padding:18px;display:flex;justify-content:space-between;gap:16px;align-items:center}.guest-composer p{margin:4px 0 0;color:#778195;font-size:.78rem}.feed-toolbar{height:54px;display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:8px;border-bottom:1px solid var(--dash-line)}.feed-tabs{height:100%;display:flex;align-items:stretch;gap:22px}.feed-tabs a{display:flex;align-items:center;text-decoration:none;color:#556074;font-size:.72rem;border-bottom:2px solid transparent}.feed-tabs a.active{color:var(--primary);font-weight:800;border-bottom-color:var(--primary)}.feed-toolbar form{width:210px;height:36px;border:1px solid var(--dash-line);border-radius:6px;display:flex;align-items:center;gap:8px;padding:0 10px;background:#fff}.feed-toolbar form i{font-size:.75rem;color:#8a93a4}.feed-toolbar form input{min-width:0;width:100%;border:0;outline:0;font-size:.7rem}.activity-feed{display:flex;flex-direction:column;gap:18px}.activity-card{overflow:hidden}.activity-author{padding:16px 18px 8px;display:flex;align-items:center;gap:10px}.activity-author>a:first-child img{width:42px;height:42px;border-radius:50%;object-fit:cover}.activity-author>div{display:flex;flex-direction:column}.activity-author>div strong{font-size:.8rem}.activity-author>div small{color:#7c8596;font-size:.66rem}.role-pill{font-size:.61rem;color:#6847d8;background:#f0ebff;padding:3px 7px;border-radius:999px}.activity-more{margin-left:auto;color:#667085}.activity-copy{padding:4px 18px 10px}.activity-title{display:block;text-decoration:none;color:#111827;font-size:.95rem;font-weight:850;margin-bottom:5px}.activity-copy p{margin:0;color:#3f4a5d;font-size:.78rem;line-height:1.6}.feed-media{display:block;margin:0 18px 10px;border-radius:7px;overflow:hidden;max-height:480px}.feed-media img{width:100%;max-height:480px;display:block;object-fit:cover}.feed-video{margin:0 18px 10px;width:auto}.feed-video iframe{border:0}.activity-metrics{min-height:40px;border-bottom:1px solid var(--dash-line);display:flex;align-items:center;gap:18px;padding:0 18px;color:#7c8596;font-size:.67rem}.activity-metrics .fa-heart{color:var(--primary)}.activity-actions{height:48px;display:grid;grid-template-columns:repeat(3,1fr);align-items:center}.activity-actions a,.activity-actions button{height:100%;border:0;background:transparent;text-decoration:none;color:#5d687a;display:flex;align-items:center;justify-content:center;gap:7px;font-size:.7rem}.activity-actions a:hover,.activity-actions button:hover{background:#f8fafc;color:var(--primary)}
.profile-progress-card{padding-bottom:15px}.progress-ring{--value:73;width:170px;height:100px;margin:2px auto 10px;position:relative;overflow:hidden}.progress-ring:before,.progress-ring:after{content:"";position:absolute;width:150px;height:150px;border-radius:50%;left:10px;top:10px}.progress-ring:before{border:8px solid #edf0f3}.progress-ring:after{border:8px solid transparent;border-top-color:#1fb96d;border-right-color:#1fb96d;transform:rotate(calc(-135deg + (var(--value) * 1.8deg)));transition:.3s}.progress-ring>div{position:absolute;z-index:2;left:0;right:0;bottom:0;text-align:center;background:#fff}.progress-ring strong{display:block;font-size:1.45rem}.progress-ring span{display:block;color:#8a93a4;font-size:.68rem}.profile-checks{padding:0 18px;display:flex;flex-direction:column;gap:11px}.profile-checks a{display:flex;align-items:center;gap:8px;text-decoration:none;color:#525e70;font-size:.7rem}.profile-checks i{color:#cbd1d9}.profile-checks a.done i{color:#1fb96d}.updates-list{padding:0 18px 14px}.updates-list>a{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:start;text-decoration:none;color:#394457;padding:8px 0}.updates-list img{width:34px;height:34px;border-radius:50%;object-fit:cover}.updates-list span,.updates-list b,.updates-list small{display:block}.updates-list span{font-size:.67rem}.updates-list b{font-size:.71rem;color:#111827}.updates-list small{font-size:.62rem;color:#8a93a4;margin-top:2px}.active-row{display:flex;gap:10px;padding:6px 18px 12px}.active-row img{width:42px;height:42px;border-radius:50%;object-fit:cover}.mini-footer{font-size:.62rem;color:#80899a;padding:0 3px}
.site-footer{margin-left:var(--side-w);background:transparent;color:#8a93a4;padding:16px 28px 28px;font-size:.72rem}.mobile-nav{display:none}

/* páginas internas usando a mesma linguagem visual */
.panel{border:1px solid var(--dash-line)!important;border-radius:10px!important;box-shadow:0 7px 20px rgba(31,41,55,.035)!important;background:#fff!important}.panel:hover{transform:none!important;box-shadow:0 10px 28px rgba(31,41,55,.06)!important}.panel-head{border-bottom:1px solid var(--dash-line);font-size:.92rem}.btn{border-radius:7px}.btn-primary{background:linear-gradient(135deg,var(--primary),var(--secondary));box-shadow:none}.form-control,.form-select{border-radius:7px;border-color:#dde1e8}.topic-card,.reply{background:#fff!important}.profile-cover{border-radius:10px 10px 0 0}.hero{display:none}.main-lift{margin-top:0;padding-top:26px}.sticky-side{top:calc(var(--topbar-h) + 22px)}

@media(max-width:1280px){.topbar-inner{grid-template-columns:44px 230px 1fr 190px auto;gap:10px;padding:0 14px}.top-main-nav a{min-width:64px;padding:0 7px}.top-main-nav a span{display:none}.dashboard-grid{grid-template-columns:245px minmax(500px,1fr) 270px;gap:18px}.community-page{padding-left:20px;padding-right:20px}}
@media(max-width:1080px){.top-search{display:none}.topbar-inner{grid-template-columns:44px 230px 1fr auto}.dashboard-grid{grid-template-columns:240px minmax(0,1fr)}.feed-right-column{display:none}}
@media(max-width:991.98px){:root{--topbar-h:64px}.community-topbar{height:var(--topbar-h)}.topbar-inner{grid-template-columns:42px 1fr auto;padding:0 12px}.community-brand{justify-self:start}.brand-mark{width:38px;height:38px}.brand-copy strong{font-size:1.1rem}.brand-copy small{display:none}.top-main-nav{display:none}.top-actions .user-menu span,.top-actions .user-menu>i{display:none}.top-actions .user-menu img{width:34px;height:34px}.community-sidebar{transform:translateX(-105%);width:230px;transition:transform .22s ease;padding:14px}.community-sidebar.open{transform:translateX(0)}.side-nav a{min-height:46px;flex-direction:row;justify-content:flex-start;padding:0 14px;gap:12px;font-size:.78rem}.side-nav a b{right:14px;top:13px}.sidebar-bottom{flex-direction:row;padding:10px 14px}.sidebar-backdrop{position:fixed;z-index:1070;inset:var(--topbar-h) 0 0;background:rgba(15,23,42,.35)}.sidebar-backdrop.show{display:block}.community-page,body>main.container,body>main.container-fluid{margin-left:0}.community-page{padding:18px 14px 88px}.dashboard-grid{grid-template-columns:minmax(0,1fr)}.feed-left-column{display:none}.feed-center-column{min-width:0}.feed-right-column{display:none}.feed-heading{height:auto}.feed-heading h1{font-size:1.1rem}.composer-card{border-radius:10px}.feed-toolbar{overflow-x:auto}.feed-tabs{min-width:max-content}.feed-toolbar form{display:none}.activity-card{border-radius:10px}.feed-media{margin-left:12px;margin-right:12px}.activity-copy,.activity-author{padding-left:14px;padding-right:14px}.activity-actions a,.activity-actions button{font-size:.65rem}.mobile-nav{position:fixed;z-index:1120;display:flex;left:0;right:0;bottom:0;height:68px;background:rgba(255,255,255,.96);border-top:1px solid var(--dash-line);justify-content:space-around;align-items:center;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -8px 24px rgba(31,41,55,.08);backdrop-filter:blur(14px)}.mobile-nav a{position:relative;color:#6c7688;text-decoration:none;text-align:center;font-size:.61rem;min-width:54px}.mobile-nav i{display:block;font-size:1rem;margin-bottom:4px}.mobile-nav b{position:absolute;top:-6px;right:5px;background:var(--primary);color:#fff;border-radius:99px;font-size:.56rem;padding:1px 5px}.new-mobile i{width:38px;height:38px;line-height:38px;margin:-22px auto 4px;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--secondary));color:#fff;box-shadow:0 6px 16px rgba(255,79,45,.24)}.site-footer{display:none}body>main.container{width:100%;padding:18px 14px 88px;max-width:none}}
@media(max-width:575.98px){.top-actions>a.icon-button{display:none}.topbar-inner{grid-template-columns:42px 1fr auto}.community-brand{gap:7px}.brand-copy strong{font-size:1rem}.composer-top{padding:14px}.composer-actions{padding:9px 12px}.activity-metrics{padding:0 12px}.activity-copy p{font-size:.75rem}.guest-composer{align-items:flex-start;flex-direction:column}}




/* Forum7 v11 - Dark refinado baseado no layout aprovado */
:root{
  --dark-bg:#0f141c;
  --dark-panel:#151b24;
  --dark-panel-2:#1b222d;
  --dark-border:#293241;
  --dark-text:#eef2f7;
  --dark-muted:#98a4b3;
  --dark-accent:#8b5cf6;
  --dark-accent-2:#a855f7;
}

.community-topbar{
  min-height:70px;
}
.topbar-inner{
  display:flex;
  align-items:center;
  gap:24px;
  min-height:70px;
}
.community-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:255px;
  margin:0;
  text-decoration:none;
}
.brand-mark{
  width:44px;
  height:44px;
  min-width:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:50%;
}
.brand-mark img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.brand-copy{
  display:flex;
  flex-direction:column;
  line-height:1.1;
  min-width:0;
}
.brand-copy strong{
  font-size:1.25rem;
  white-space:nowrap;
}
.brand-copy small{
  margin-top:3px;
  white-space:nowrap;
}
.top-main-nav{
  display:flex;
  align-items:center;
  gap:6px;
  flex:1;
  min-width:0;
}
.top-main-nav a{
  min-height:70px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 15px;
  position:relative;
}
.top-search{
  min-width:260px;
  max-width:330px;
}
.top-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}
.user-menu{
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}
.user-menu img{
  width:38px;
  height:38px;
  border-radius:50%;
  object-fit:cover;
}

html[data-theme="dark"],
body[data-theme="dark"]{
  color-scheme:dark;
}
html[data-theme="dark"] body,
body[data-theme="dark"]{
  --surface:var(--dark-panel);
  --surface-soft:var(--dark-panel-2);
  --text:var(--dark-text);
  --muted:var(--dark-muted);
  --border:var(--dark-border);
  --app-bg:var(--dark-bg);
  background:var(--dark-bg)!important;
  color:var(--dark-text)!important;
}

html[data-theme="dark"] .community-topbar,
body[data-theme="dark"] .community-topbar{
  background:#101720!important;
  border-bottom:1px solid var(--dark-border)!important;
  box-shadow:0 6px 24px rgba(0,0,0,.28)!important;
}

html[data-theme="dark"] .topbar-inner,
body[data-theme="dark"] .topbar-inner{
  background:transparent!important;
}

html[data-theme="dark"] .community-sidebar,
body[data-theme="dark"] .community-sidebar{
  background:#111821!important;
  border-right:1px solid var(--dark-border)!important;
  box-shadow:none!important;
}

html[data-theme="dark"] .panel,
html[data-theme="dark"] .card-soft,
html[data-theme="dark"] .feed-card,
html[data-theme="dark"] .widget-card,
html[data-theme="dark"] .topic-card,
html[data-theme="dark"] .category-chip,
body[data-theme="dark"] .panel,
body[data-theme="dark"] .card-soft,
body[data-theme="dark"] .feed-card,
body[data-theme="dark"] .widget-card,
body[data-theme="dark"] .topic-card,
body[data-theme="dark"] .category-chip{
  background:linear-gradient(180deg,#171e28,#141a23)!important;
  color:var(--dark-text)!important;
  border:1px solid var(--dark-border)!important;
  box-shadow:0 8px 22px rgba(0,0,0,.20)!important;
}

html[data-theme="dark"] .panel:hover,
html[data-theme="dark"] .feed-card:hover,
html[data-theme="dark"] .widget-card:hover,
body[data-theme="dark"] .panel:hover,
body[data-theme="dark"] .feed-card:hover,
body[data-theme="dark"] .widget-card:hover{
  border-color:#3d485a!important;
  box-shadow:0 12px 28px rgba(0,0,0,.28)!important;
}

html[data-theme="dark"] .reply,
body[data-theme="dark"] .reply{
  background:#151b24!important;
  border-color:var(--dark-border)!important;
}

html[data-theme="dark"] .top-main-nav a,
html[data-theme="dark"] .side-nav a,
html[data-theme="dark"] .community-brand strong,
html[data-theme="dark"] .community-brand small,
html[data-theme="dark"] .user-menu,
html[data-theme="dark"] .site-footer,
body[data-theme="dark"] .top-main-nav a,
body[data-theme="dark"] .side-nav a,
body[data-theme="dark"] .community-brand strong,
body[data-theme="dark"] .community-brand small,
body[data-theme="dark"] .user-menu,
body[data-theme="dark"] .site-footer{
  color:#dce3ec!important;
}

html[data-theme="dark"] .top-main-nav a.active,
html[data-theme="dark"] .top-main-nav a:hover,
body[data-theme="dark"] .top-main-nav a.active,
body[data-theme="dark"] .top-main-nav a:hover{
  color:#b99cff!important;
  background:rgba(139,92,246,.08)!important;
}

html[data-theme="dark"] .top-main-nav a.active::after,
body[data-theme="dark"] .top-main-nav a.active::after{
  background:linear-gradient(90deg,#8b5cf6,#c084fc)!important;
}

html[data-theme="dark"] .side-nav a.active,
html[data-theme="dark"] .side-nav a:hover,
body[data-theme="dark"] .side-nav a.active,
body[data-theme="dark"] .side-nav a:hover{
  background:rgba(139,92,246,.11)!important;
  color:#c4b5fd!important;
}

html[data-theme="dark"] .text-secondary,
html[data-theme="dark"] .meta,
html[data-theme="dark"] .form-text,
html[data-theme="dark"] small,
body[data-theme="dark"] .text-secondary,
body[data-theme="dark"] .meta,
body[data-theme="dark"] .form-text,
body[data-theme="dark"] small{
  color:var(--dark-muted)!important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] h4,
body[data-theme="dark"] h5,
body[data-theme="dark"] h6{
  color:#f6f8fb!important;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .top-search,
html[data-theme="dark"] .top-search input,
body[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-select,
body[data-theme="dark"] .top-search,
body[data-theme="dark"] .top-search input{
  background:#111821!important;
  color:#eef2f7!important;
  border-color:#334052!important;
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus,
html[data-theme="dark"] .top-search:focus-within,
body[data-theme="dark"] .form-control:focus,
body[data-theme="dark"] .form-select:focus,
body[data-theme="dark"] .top-search:focus-within{
  border-color:var(--dark-accent)!important;
  box-shadow:0 0 0 .2rem rgba(139,92,246,.13)!important;
}

html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] .top-search input::placeholder,
body[data-theme="dark"] .form-control::placeholder,
body[data-theme="dark"] .top-search input::placeholder{
  color:#718096!important;
}

html[data-theme="dark"] .btn-primary,
body[data-theme="dark"] .btn-primary{
  background:linear-gradient(135deg,var(--dark-accent),var(--dark-accent-2))!important;
  border-color:transparent!important;
  color:white!important;
  box-shadow:0 7px 18px rgba(139,92,246,.22)!important;
}

html[data-theme="dark"] .btn-outline-primary,
body[data-theme="dark"] .btn-outline-primary{
  color:#bba8ff!important;
  border-color:#6f55c7!important;
}
html[data-theme="dark"] .btn-outline-primary:hover,
body[data-theme="dark"] .btn-outline-primary:hover{
  background:#6f55c7!important;
  color:#fff!important;
}

html[data-theme="dark"] .action,
html[data-theme="dark"] .action-btn,
body[data-theme="dark"] .action,
body[data-theme="dark"] .action-btn{
  color:#aeb8c7!important;
}
html[data-theme="dark"] .action:hover,
html[data-theme="dark"] .action-btn:hover,
body[data-theme="dark"] .action:hover,
body[data-theme="dark"] .action-btn:hover{
  color:#c4b5fd!important;
  background:rgba(139,92,246,.08)!important;
}

html[data-theme="dark"] a,
body[data-theme="dark"] a{
  color:#bca8ff;
}
html[data-theme="dark"] a:hover,
body[data-theme="dark"] a:hover{
  color:#d4c6ff;
}

html[data-theme="dark"] .role-badge,
body[data-theme="dark"] .role-badge{
  background:rgba(139,92,246,.16)!important;
  color:#c4b5fd!important;
  border:1px solid rgba(139,92,246,.28)!important;
}

html[data-theme="dark"] .mobile-nav,
body[data-theme="dark"] .mobile-nav{
  background:rgba(16,23,32,.96)!important;
  border-top:1px solid var(--dark-border)!important;
  backdrop-filter:blur(16px);
}
html[data-theme="dark"] .mobile-nav a,
body[data-theme="dark"] .mobile-nav a{
  color:#aeb8c7!important;
}
html[data-theme="dark"] .mobile-nav a:hover,
body[data-theme="dark"] .mobile-nav a:hover{
  color:#c4b5fd!important;
}

html[data-theme="dark"] .site-footer,
body[data-theme="dark"] .site-footer{
  background:#0f141c!important;
  border-color:var(--dark-border)!important;
}

@media(max-width:1199.98px){
  .community-brand{min-width:210px}
  .top-main-nav a{padding:0 10px}
  .top-search{min-width:200px}
}
@media(max-width:991.98px){
  .community-brand{min-width:0}
  .brand-copy small{display:none}
  .top-main-nav{display:none}
  .top-search{display:none}
}
@media(max-width:575.98px){
  .brand-mark{width:38px;height:38px;min-width:38px}
  .brand-copy strong{font-size:1.05rem}
  .user-menu span,.user-menu .fa-angle-down{display:none}
}


/* Forum7 v12 - correção total de cards no modo dark */
html[data-theme="dark"] .left-card,
html[data-theme="dark"] .right-card,
html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .members-card,
html[data-theme="dark"] .categories-card,
html[data-theme="dark"] .topics-card,
html[data-theme="dark"] .recent-card,
html[data-theme="dark"] .activity-card,
html[data-theme="dark"] .composer-card,
html[data-theme="dark"] .feed-shell,
html[data-theme="dark"] .feed-toolbar,
html[data-theme="dark"] .feed-tabs,
html[data-theme="dark"] .feed-item,
html[data-theme="dark"] .topic-list-item,
html[data-theme="dark"] .member-box,
html[data-theme="dark"] .category-box,
html[data-theme="dark"] .profile-progress,
html[data-theme="dark"] .recent-update,
html[data-theme="dark"] .latest-topics,
html[data-theme="dark"] .online-members,
html[data-theme="dark"] .forum-widget,
html[data-theme="dark"] .community-widget,
html[data-theme="dark"] .widget-body,
html[data-theme="dark"] .widget-header,
body[data-theme="dark"] .left-card,
body[data-theme="dark"] .right-card,
body[data-theme="dark"] .profile-card,
body[data-theme="dark"] .members-card,
body[data-theme="dark"] .categories-card,
body[data-theme="dark"] .topics-card,
body[data-theme="dark"] .recent-card,
body[data-theme="dark"] .activity-card,
body[data-theme="dark"] .composer-card,
body[data-theme="dark"] .feed-shell,
body[data-theme="dark"] .feed-toolbar,
body[data-theme="dark"] .feed-tabs,
body[data-theme="dark"] .feed-item,
body[data-theme="dark"] .topic-list-item,
body[data-theme="dark"] .member-box,
body[data-theme="dark"] .category-box,
body[data-theme="dark"] .profile-progress,
body[data-theme="dark"] .recent-update,
body[data-theme="dark"] .latest-topics,
body[data-theme="dark"] .online-members,
body[data-theme="dark"] .forum-widget,
body[data-theme="dark"] .community-widget,
body[data-theme="dark"] .widget-body,
body[data-theme="dark"] .widget-header{
  background:#151b24!important;
  color:#eef2f7!important;
  border-color:#293241!important;
}

html[data-theme="dark"] .bg-white,
body[data-theme="dark"] .bg-white{
  background:#151b24!important;
  color:#eef2f7!important;
}

html[data-theme="dark"] .bg-light,
body[data-theme="dark"] .bg-light{
  background:#1b222d!important;
  color:#eef2f7!important;
}

html[data-theme="dark"] .card,
body[data-theme="dark"] .card{
  background:#151b24!important;
  color:#eef2f7!important;
  border-color:#293241!important;
}

html[data-theme="dark"] .list-group-item,
body[data-theme="dark"] .list-group-item{
  background:#151b24!important;
  color:#eef2f7!important;
  border-color:#293241!important;
}

html[data-theme="dark"] .table,
body[data-theme="dark"] .table{
  --bs-table-bg:#151b24;
  --bs-table-color:#eef2f7;
  --bs-table-border-color:#293241;
  --bs-table-striped-bg:#1b222d;
  --bs-table-striped-color:#eef2f7;
  --bs-table-hover-bg:#202938;
  --bs-table-hover-color:#ffffff;
}

html[data-theme="dark"] .feed-composer,
html[data-theme="dark"] .feed-composer-top,
html[data-theme="dark"] .feed-composer-actions,
html[data-theme="dark"] .feed-filter,
html[data-theme="dark"] .feed-search,
html[data-theme="dark"] .feed-post,
html[data-theme="dark"] .feed-post-body,
html[data-theme="dark"] .feed-post-footer,
html[data-theme="dark"] .feed-post-actions,
body[data-theme="dark"] .feed-composer,
body[data-theme="dark"] .feed-composer-top,
body[data-theme="dark"] .feed-composer-actions,
body[data-theme="dark"] .feed-filter,
body[data-theme="dark"] .feed-search,
body[data-theme="dark"] .feed-post,
body[data-theme="dark"] .feed-post-body,
body[data-theme="dark"] .feed-post-footer,
body[data-theme="dark"] .feed-post-actions{
  background:#151b24!important;
  color:#eef2f7!important;
  border-color:#293241!important;
}

html[data-theme="dark"] .topic-mini,
html[data-theme="dark"] .member-mini,
html[data-theme="dark"] .update-mini,
html[data-theme="dark"] .category-mini,
body[data-theme="dark"] .topic-mini,
body[data-theme="dark"] .member-mini,
body[data-theme="dark"] .update-mini,
body[data-theme="dark"] .category-mini{
  background:transparent!important;
  color:#eef2f7!important;
}

html[data-theme="dark"] hr,
body[data-theme="dark"] hr{
  border-color:#293241!important;
  opacity:1;
}


/* Forum7 v13 - correção definitiva das variáveis do dashboard no dark */
html[data-theme="dark"],
body[data-theme="dark"]{
  --dashboard-bg:#0f141c !important;
  --dash-card:#151b24 !important;
  --dash-text:#eef2f7 !important;
  --dash-muted:#98a4b3 !important;
  --dash-line:#293241 !important;
  --surface:#151b24 !important;
  --surface-soft:#1b222d !important;
  --text:#eef2f7 !important;
  --muted:#98a4b3 !important;
  --line:#293241 !important;
  --app-bg:#0f141c !important;
}

html[data-theme="dark"] body,
body[data-theme="dark"]{
  background:var(--dashboard-bg) !important;
  color:var(--dash-text) !important;
}

html[data-theme="dark"] .dashboard-card,
body[data-theme="dark"] .dashboard-card{
  background:var(--dash-card) !important;
  color:var(--dash-text) !important;
  border-color:var(--dash-line) !important;
}

html[data-theme="dark"] .dash-card-title,
body[data-theme="dark"] .dash-card-title{
  color:var(--dash-text) !important;
}

html[data-theme="dark"] .mini-topic,
html[data-theme="dark"] .mini-topic-copy strong,
html[data-theme="dark"] .category-quick > a,
html[data-theme="dark"] .community-totals,
html[data-theme="dark"] .community-totals strong,
html[data-theme="dark"] .updates-list > a,
html[data-theme="dark"] .updates-list b,
html[data-theme="dark"] .profile-checks a,
body[data-theme="dark"] .mini-topic,
body[data-theme="dark"] .mini-topic-copy strong,
body[data-theme="dark"] .category-quick > a,
body[data-theme="dark"] .community-totals,
body[data-theme="dark"] .community-totals strong,
body[data-theme="dark"] .updates-list > a,
body[data-theme="dark"] .updates-list b,
body[data-theme="dark"] .profile-checks a{
  color:var(--dash-text) !important;
}

html[data-theme="dark"] .mini-topic-copy small,
html[data-theme="dark"] .updates-list small,
html[data-theme="dark"] .activity-author > div small,
html[data-theme="dark"] .activity-copy p,
body[data-theme="dark"] .mini-topic-copy small,
body[data-theme="dark"] .updates-list small,
body[data-theme="dark"] .activity-author > div small,
body[data-theme="dark"] .activity-copy p{
  color:var(--dash-muted) !important;
}

html[data-theme="dark"] .composer-actions,
html[data-theme="dark"] .activity-metrics,
html[data-theme="dark"] .community-totals,
html[data-theme="dark"] .feed-toolbar,
body[data-theme="dark"] .composer-actions,
body[data-theme="dark"] .activity-metrics,
body[data-theme="dark"] .community-totals,
body[data-theme="dark"] .feed-toolbar{
  border-color:var(--dash-line) !important;
}

html[data-theme="dark"] .feed-toolbar form,
html[data-theme="dark"] .progress-ring > div,
body[data-theme="dark"] .feed-toolbar form,
body[data-theme="dark"] .progress-ring > div{
  background:var(--dash-card) !important;
  color:var(--dash-text) !important;
}

html[data-theme="dark"] .progress-ring:before,
body[data-theme="dark"] .progress-ring:before{
  border-color:#2c3544 !important;
}

html[data-theme="dark"] .card-link-button,
body[data-theme="dark"] .card-link-button{
  background:#151b24 !important;
  color:#bca8ff !important;
  border-color:#364154 !important;
}

html[data-theme="dark"] .card-link-button:hover,
body[data-theme="dark"] .card-link-button:hover{
  background:#1b2230 !important;
  border-color:#8b5cf6 !important;
  color:#d4c6ff !important;
}

html[data-theme="dark"] .category-quick > a:hover,
html[data-theme="dark"] .activity-actions a:hover,
html[data-theme="dark"] .activity-actions button:hover,
body[data-theme="dark"] .category-quick > a:hover,
body[data-theme="dark"] .activity-actions a:hover,
body[data-theme="dark"] .activity-actions button:hover{
  background:#1b2230 !important;
  color:#c4b5fd !important;
}

html[data-theme="dark"] .category-quick > a b,
body[data-theme="dark"] .category-quick > a b{
  background:#202938 !important;
  color:#cbd5e1 !important;
}

html[data-theme="dark"] .mini-thumb,
html[data-theme="dark"] .mini-thumb span,
body[data-theme="dark"] .mini-thumb,
body[data-theme="dark"] .mini-thumb span{
  background:#202938 !important;
  color:#c4b5fd !important;
}


/* Forum7 v14 - override final dashboard dark + cache fix */
html[data-theme="dark"] body,
body[data-theme="dark"]{
  --dashboard-bg:#0f141c !important;
  --dash-card:#151b24 !important;
  --dash-text:#eef2f7 !important;
  --dash-muted:#98a4b3 !important;
  --dash-line:#293241 !important;
}

html[data-theme="dark"] .dashboard-card,
body[data-theme="dark"] .dashboard-card,
html[data-theme="dark"] section.dashboard-card,
body[data-theme="dark"] section.dashboard-card,
html[data-theme="dark"] article.dashboard-card,
body[data-theme="dark"] article.dashboard-card{
  background:#151b24 !important;
  background-color:#151b24 !important;
  color:#eef2f7 !important;
  border-color:#293241 !important;
}

html[data-theme="dark"] .dashboard-card .dash-card-title,
body[data-theme="dark"] .dashboard-card .dash-card-title{
  background:transparent !important;
  color:#eef2f7 !important;
}

html[data-theme="dark"] .profile-progress-card .progress-ring > div,
body[data-theme="dark"] .profile-progress-card .progress-ring > div{
  background:#151b24 !important;
  color:#eef2f7 !important;
}

html[data-theme="dark"] .feed-toolbar form,
body[data-theme="dark"] .feed-toolbar form{
  background:#151b24 !important;
  border-color:#293241 !important;
}

html[data-theme="dark"] .feed-toolbar form input,
body[data-theme="dark"] .feed-toolbar form input{
  background:transparent !important;
  color:#eef2f7 !important;
}

html[data-theme="dark"] .latest-topics-card,
html[data-theme="dark"] .members-card,
html[data-theme="dark"] .category-quick,
html[data-theme="dark"] .composer-card,
html[data-theme="dark"] .activity-card,
html[data-theme="dark"] .profile-progress-card,
html[data-theme="dark"] .updates-card,
html[data-theme="dark"] .active-members-card,
body[data-theme="dark"] .latest-topics-card,
body[data-theme="dark"] .members-card,
body[data-theme="dark"] .category-quick,
body[data-theme="dark"] .composer-card,
body[data-theme="dark"] .activity-card,
body[data-theme="dark"] .profile-progress-card,
body[data-theme="dark"] .updates-card,
body[data-theme="dark"] .active-members-card{
  background:#151b24 !important;
  color:#eef2f7 !important;
}


/* Forum7 v15 - Chat, cookies e controles sociais */
.chat-fab{
  position:fixed;right:22px;bottom:24px;z-index:1180;
  border:0;border-radius:999px;padding:12px 18px;
  display:flex;align-items:center;gap:8px;
  color:#fff;background:linear-gradient(135deg,var(--primary),var(--secondary));
  box-shadow:0 12px 30px rgba(79,70,229,.30);font-weight:800
}
.chat-float-panel{
  position:fixed;right:22px;bottom:82px;z-index:1175;
  width:min(340px,calc(100vw - 28px));max-height:480px;
  display:none;background:var(--dash-card,#fff);
  border:1px solid var(--dash-line,#e7e9ef);border-radius:14px;
  box-shadow:0 22px 60px rgba(0,0,0,.20);overflow:hidden
}
.chat-float-panel.show{display:block}
.chat-float-head{padding:14px 16px;border-bottom:1px solid var(--dash-line,#e7e9ef);display:flex;justify-content:space-between}
.chat-float-users{max-height:330px;overflow:auto}
.chat-float-user{padding:10px 14px;display:flex;align-items:center;gap:10px;text-decoration:none;border-bottom:1px solid var(--dash-line,#e7e9ef);color:var(--dash-text,#111827)}
.chat-float-user:hover{background:rgba(127,127,127,.06)}
.chat-float-user img{width:38px;height:38px;border-radius:50%;object-fit:cover}
.chat-float-user strong,.chat-float-user small{display:block}
.chat-float-user small{font-size:.7rem;color:var(--dash-muted,#7b8497)}
.chat-float-all{display:block;padding:12px 14px;text-align:center;text-decoration:none;font-weight:800}
.chat-messages{background:rgba(127,127,127,.035)}
.chat-message{display:flex;margin-bottom:10px}
.chat-message.mine{justify-content:flex-end}
.chat-bubble{max-width:75%;padding:10px 12px;border-radius:14px;background:#eef2ff;color:#172033}
.chat-message.mine .chat-bubble{background:linear-gradient(135deg,var(--primary),var(--secondary));color:#fff}
.chat-bubble small{display:block;margin-top:4px;font-size:.62rem;opacity:.7}
.cookie-banner{
  position:fixed;left:20px;right:20px;bottom:20px;z-index:1300;
  display:none;align-items:center;justify-content:space-between;gap:18px;
  max-width:980px;margin:auto;padding:16px 18px;border-radius:14px;
  background:#fff;color:#172033;border:1px solid #e5e7eb;box-shadow:0 18px 50px rgba(0,0,0,.20)
}
.cookie-banner.show{display:flex}
.cookie-banner p{margin:3px 0 0;font-size:.78rem;color:#64748b}

html[data-theme="dark"] .chat-float-panel,
body[data-theme="dark"] .chat-float-panel,
html[data-theme="dark"] .cookie-banner,
body[data-theme="dark"] .cookie-banner{
  background:#151b24!important;color:#eef2f7!important;border-color:#293241!important
}
html[data-theme="dark"] .chat-float-user,
body[data-theme="dark"] .chat-float-user{color:#eef2f7!important;border-color:#293241!important}
html[data-theme="dark"] .chat-bubble,
body[data-theme="dark"] .chat-bubble{background:#202938;color:#eef2f7}
html[data-theme="dark"] .cookie-banner p,
body[data-theme="dark"] .cookie-banner p{color:#98a4b3!important}

@media(max-width:991.98px){
  .chat-fab{bottom:82px;right:14px;padding:12px;width:48px;height:48px;justify-content:center}
  .chat-fab span{display:none}
  .chat-float-panel{bottom:138px;right:14px}
  .cookie-banner{bottom:82px;left:10px;right:10px;flex-direction:column;align-items:flex-start}
}


/* Icoaraci Comunidade - Feeds e galeria */
.feed-type-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;background:color-mix(in srgb,var(--primary) 10%,transparent);color:var(--primary);font-size:.68rem;font-weight:800}
.feed-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:720px;overflow:hidden}.feed-gallery a{display:block;min-height:180px;border-radius:10px;overflow:hidden;background:#e5e7eb}.feed-gallery img{width:100%;height:100%;min-height:180px;max-height:355px;object-fit:cover;display:block}.feed-gallery-count-1{grid-template-columns:1fr}.feed-gallery-count-1 a{max-height:620px}.feed-gallery-count-1 img{max-height:620px}.feed-gallery-count-3 a:first-child,.feed-gallery-count-5 a:first-child,.feed-gallery-count-7 a:first-child{grid-row:span 2}.gallery-count-badge{position:absolute;right:12px;bottom:12px;background:rgba(15,20,28,.82);color:#fff;border-radius:999px;padding:6px 10px;font-size:.72rem;font-weight:800}.feed-gallery-preview,.feed-gallery-edit{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.feed-gallery-preview img,.gallery-edit-item img{width:100%;height:110px;object-fit:cover;border-radius:9px;border:1px solid var(--dash-line,#e5e7eb)}.gallery-edit-item{display:flex;flex-direction:column;gap:5px;font-size:.72rem}.gallery-edit-item span{display:flex;align-items:center;gap:5px}
html[data-theme="dark"] .feed-type-badge,body[data-theme="dark"] .feed-type-badge{background:rgba(139,92,246,.14);color:#c4b5fd}
@media(max-width:575.98px){.feed-gallery{grid-template-columns:1fr 1fr}.feed-gallery a,.feed-gallery img{min-height:130px}.feed-gallery-preview,.feed-gallery-edit{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* IC v2 - campos especiais */
.special-feed-box{padding:16px;border:1px solid var(--dash-line,#e5e7eb);border-radius:14px;background:rgba(127,127,127,.045)}.feed-special-info{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 16px}.feed-special-info span{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid var(--dash-line,#e5e7eb);border-radius:10px;background:rgba(127,127,127,.055);font-size:.9rem;font-weight:700}.feed-special-info .classified-price{font-size:1.05rem;color:var(--primary)}html[data-theme="dark"] .special-feed-box,body[data-theme="dark"] .special-feed-box{background:#111720;border-color:#293241}


/* IC v2.1 - destaque dos campos condicionais */
#eventFields:not(.d-none),
#classifiedFields:not(.d-none){
    animation:icSpecialOpen .18s ease-out;
}
@keyframes icSpecialOpen{
    from{opacity:0;transform:translateY(-5px)}
    to{opacity:1;transform:translateY(0)}
}


/* IC v2.4 - galeria compacta e lightbox */
.feed-gallery-compact{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
  max-width:720px;
}
.feed-gallery-compact.feed-gallery-single{
  grid-template-columns:minmax(0,240px);
}
.gallery-thumb{
  position:relative;
  border:0;
  padding:0;
  background:#e5e7eb;
  border-radius:9px;
  overflow:hidden;
  aspect-ratio:4/3;
  cursor:pointer;
  min-width:0;
}
.gallery-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .18s ease,filter .18s ease;
}
.gallery-thumb:hover img{
  transform:scale(1.035);
  filter:brightness(.92);
}
.ic-gallery-lightbox{
  position:fixed;
  inset:0;
  z-index:2000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.ic-gallery-lightbox.show{display:flex}
.ic-gallery-backdrop{
  position:absolute;
  inset:0;
  background:rgba(4,8,14,.92);
  backdrop-filter:blur(5px);
}
.ic-gallery-dialog{
  position:relative;
  z-index:1;
  width:min(1100px,96vw);
  height:min(760px,90vh);
  display:flex;
  align-items:center;
  justify-content:center;
}
.ic-gallery-stage{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.ic-gallery-stage img{
  display:block;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  border-radius:10px;
  box-shadow:0 18px 60px rgba(0,0,0,.45);
}
.ic-gallery-counter{
  position:absolute;
  left:50%;
  bottom:12px;
  transform:translateX(-50%);
  padding:6px 11px;
  border-radius:999px;
  color:#fff;
  background:rgba(0,0,0,.62);
  font-size:.78rem;
  font-weight:800;
}
.ic-gallery-close,
.ic-gallery-nav{
  position:absolute;
  z-index:3;
  border:0;
  color:#fff;
  background:rgba(12,18,28,.72);
  display:grid;
  place-items:center;
  box-shadow:0 6px 20px rgba(0,0,0,.25);
}
.ic-gallery-close{
  top:4px;
  right:4px;
  width:42px;
  height:42px;
  border-radius:50%;
  font-size:1.15rem;
}
.ic-gallery-nav{
  top:50%;
  transform:translateY(-50%);
  width:48px;
  height:58px;
  border-radius:12px;
  font-size:1.25rem;
}
.ic-gallery-prev{left:4px}
.ic-gallery-next{right:4px}
.ic-gallery-close:hover,.ic-gallery-nav:hover{background:rgba(124,58,237,.92)}
body.gallery-open{overflow:hidden}

html[data-theme="dark"] .gallery-thumb,
body[data-theme="dark"] .gallery-thumb{background:#202938}

@media(max-width:767.98px){
  .feed-gallery-compact{
    grid-template-columns:repeat(3,minmax(0,1fr));
    max-width:none;
    gap:5px;
  }
  .gallery-thumb{border-radius:7px}
  .ic-gallery-dialog{width:100%;height:84vh}
  .ic-gallery-nav{width:42px;height:52px}
}
@media(max-width:420px){
  .feed-gallery-compact{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Comunidade local: bairros, pessoas e feed personalizado */
.neighborhood-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;background:#ecfdf5;color:#047857;text-decoration:none;font-size:.76rem;font-weight:800}.feed-tabs{display:flex;gap:6px;flex-wrap:wrap}.feed-tabs a{white-space:nowrap}.people-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.person-card{padding:18px;min-width:0}.person-card-top{display:flex;align-items:center;gap:12px}.person-card-top img{width:58px;height:58px;border-radius:50%;object-fit:cover}.person-name{display:block;color:var(--text);font-weight:850;text-decoration:none}.person-bio{color:var(--muted);font-size:.9rem;min-height:48px;margin:14px 0}.person-stats{display:flex;gap:18px;color:var(--muted);font-size:.78rem}.person-stats strong{color:var(--text)}.neighborhood-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px;border-radius:22px;color:#fff;background:linear-gradient(135deg,var(--primary),var(--secondary));box-shadow:0 18px 40px rgba(49,46,129,.18)}.neighborhood-hero h1{font-weight:900;margin:.2rem 0 .35rem}.neighborhood-hero p{opacity:.9}.eyebrow{text-transform:uppercase;font-size:.72rem;font-weight:900;letter-spacing:.12em;opacity:.82}.neighborhood-list{display:grid;gap:6px}.neighborhood-list a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:11px;text-decoration:none;color:var(--text);font-weight:700}.neighborhood-list a:hover,.neighborhood-list a.active{background:#eef2ff;color:var(--primary)}.neighborhood-people{display:grid;gap:10px}.neighborhood-people a{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text)}.neighborhood-people img{width:40px;height:40px;border-radius:50%;object-fit:cover}.neighborhood-people span{display:grid}.neighborhood-people small{color:var(--muted);font-size:.74rem}.neighborhood-empty-icon{width:72px;height:72px;border-radius:20px;margin:0 auto 16px;display:grid;place-items:center;background:#eef2ff;color:var(--primary);font-size:1.8rem}
@media(max-width:991px){.people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.neighborhood-hero{align-items:flex-start;flex-direction:column}}
@media(max-width:640px){.people-grid{grid-template-columns:1fr}.neighborhood-hero{padding:22px;border-radius:18px}.feed-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}}


/* IC v3.1 - descoberta social */
.people-tabs{display:flex;gap:8px;flex-wrap:wrap}.people-tabs a{display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border-radius:999px;border:1px solid var(--dash-line,#e5e7eb);background:var(--panel,#fff);color:var(--text);text-decoration:none;font-weight:800;font-size:.84rem}.people-tabs a:hover,.people-tabs a.active{background:var(--primary);border-color:var(--primary);color:#fff}.people-tabs b,.request-count-pill{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:#ef4444;color:#fff;font-size:.68rem;text-decoration:none}.person-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px}.person-actions form{margin:0}.friend-ok{display:inline-flex;align-items:center;gap:6px;color:#059669;font-size:.78rem;font-weight:850}.mutual-stat{color:var(--primary)}.people-suggestion-list{display:grid;gap:2px}.people-suggestion-item{display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--dash-line,#e5e7eb)}.people-suggestion-item:last-child{border-bottom:0}.people-suggestion-item img{width:42px;height:42px;border-radius:50%;object-fit:cover}.people-suggestion-copy{min-width:0;display:grid}.people-suggestion-copy a{color:var(--text);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.people-suggestion-copy small,.people-suggestion-copy span{color:var(--muted);font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.people-suggestion-copy span{margin-top:2px}.suggest-add{width:34px;height:34px;border:0;border-radius:10px;background:#eef2ff;color:var(--primary);display:grid;place-items:center}.suggest-add:hover{background:var(--primary);color:#fff}.request-count-pill{height:24px;background:#fee2e2;color:#b91c1c;font-weight:850;padding:0 9px}.people-suggestions-card .card-link-button{margin-top:8px}
html[data-theme="dark"] .suggest-add,body[data-theme="dark"] .suggest-add{background:#202938;color:#c4b5fd}html[data-theme="dark"] .request-count-pill,body[data-theme="dark"] .request-count-pill{background:#3f1d24;color:#fecaca}
@media(max-width:640px){.people-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.people-tabs a{white-space:nowrap}.person-actions{align-items:stretch}.person-actions form{flex:1}.person-actions form .btn{width:100%}}

/* IC v4 - Grupos da Comunidade */
.groups-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:26px;background:linear-gradient(135deg,rgba(79,70,229,.11),rgba(124,58,237,.08))}.groups-hero h1{font-weight:900;margin:.2rem 0}.groups-hero p{margin:0;color:var(--muted)}.group-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.group-card{overflow:hidden}.group-cover{display:block;height:150px;background:linear-gradient(135deg,var(--primary),var(--secondary));overflow:hidden}.group-cover img{width:100%;height:100%;object-fit:cover}.group-cover span{height:100%;display:grid;place-items:center;color:#fff;font-size:2.2rem}.group-card-body{padding:16px}.group-title{font-weight:900;font-size:1.05rem;color:var(--text);text-decoration:none}.group-location,.group-meta{color:var(--muted);font-size:.76rem;margin-top:4px}.group-card-body p{color:var(--muted);font-size:.86rem;min-height:44px;margin:12px 0}.group-stats{display:flex;gap:18px;color:var(--muted);font-size:.76rem}.group-stats strong{color:var(--text)}.group-privacy{color:var(--muted)}.narrow-shell{max-width:820px;margin:0 auto}.group-profile{overflow:hidden}.group-profile-cover{height:280px;background:linear-gradient(135deg,var(--primary),var(--secondary))}.group-profile-cover img{width:100%;height:100%;object-fit:cover}.group-cover-placeholder{height:100%;display:grid;place-items:center;color:#fff;font-size:4rem}.group-profile-body{padding:22px}.group-profile-body h1{font-weight:950;margin:.3rem 0}.group-meta{display:flex;gap:14px;flex-wrap:wrap}.group-description{margin:18px 0 12px;color:var(--text)}.group-post-file{max-width:360px}.group-post{padding:18px}.group-post-head{display:flex;align-items:center;gap:10px}.group-post-head img{width:44px;height:44px;border-radius:50%;object-fit:cover}.group-post-head>div{display:grid}.group-post-head a{color:var(--text);text-decoration:none}.group-post-head small{color:var(--muted);font-size:.72rem}.group-post-body{margin:16px 0;white-space:normal}.group-post-image{width:100%;max-height:620px;object-fit:cover;border-radius:14px}.group-members{display:grid;gap:10px}.group-members a{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none}.group-members img,.group-request img{width:42px;height:42px;border-radius:50%;object-fit:cover}.group-members span{display:grid}.group-members small,.group-request small{color:var(--muted);font-size:.72rem}.group-request{display:flex;gap:10px;padding:11px 0;border-bottom:1px solid var(--dash-line,#e5e7eb)}.group-request:last-child{border-bottom:0}.group-request>div{min-width:0;display:grid}.card-title-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.card-title-row h3{font-size:1rem;font-weight:900;margin:0}.card-title-row span{font-size:.72rem;color:var(--muted);font-weight:800}
@media(max-width:991px){.group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.group-profile-cover{height:220px}.groups-hero{align-items:flex-start;flex-direction:column}}
@media(max-width:640px){.group-grid{grid-template-columns:1fr}.group-profile-cover{height:180px}.group-profile-body{padding:18px}.groups-hero{padding:20px}.group-post-file{max-width:100%;width:100%}}

/* IC v5 - correção de layout + moderação */
.community-main{margin-left:var(--side-w);min-height:calc(100vh - var(--topbar-h));padding:24px 28px 40px}
.content-shell{width:100%;max-width:1480px;margin:0 auto}
.report-link,.report-icon{color:#dc3545;text-decoration:none;font-size:.78rem}.report-link:hover,.report-icon:hover{color:#b02a37}.report-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:8px}.report-icon:hover{background:#fff1f2}
.moderation-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px;background:linear-gradient(135deg,rgba(220,53,69,.09),rgba(79,70,229,.07))}.moderation-hero h1{font-weight:900;margin:.2rem 0}.moderation-hero p{margin:0;color:var(--muted)}.moderation-count{min-width:105px;text-align:center;padding:14px 18px;border-radius:14px;background:#fff;border:1px solid var(--dash-line)}.moderation-count strong{display:block;font-size:1.8rem;color:#dc3545}.moderation-count span{font-size:.72rem;color:var(--muted)}
.report-row{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:18px;padding:18px;border-bottom:1px solid var(--dash-line)}.report-row:last-child{border-bottom:0}.report-main h3{font-size:1rem;margin:9px 0 5px}.report-main p{font-size:.84rem;color:var(--muted);margin:0 0 8px}.report-main small{color:var(--muted)}.report-actions{display:grid;gap:7px;align-content:start}.report-status{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:.65rem;font-weight:850;text-transform:uppercase}.status-pending{background:#fff3cd;color:#8a6700}.status-reviewing{background:#cff4fc;color:#087990}.status-resolved{background:#d1e7dd;color:#0f5132}.status-dismissed{background:#e2e3e5;color:#41464b}.mod-history{padding:4px 16px 14px}.mod-history>div{display:grid;grid-template-columns:28px 1fr;gap:9px;padding:12px 0;border-bottom:1px solid var(--dash-line)}.mod-history>div:last-child{border-bottom:0}.mod-history i{color:var(--primary);margin-top:3px}.mod-history span{font-size:.78rem}.mod-history small{display:block;color:var(--muted);margin-top:3px}
@media(max-width:991.98px){.community-main,.community-page{margin-left:0!important;padding:18px 14px 82px!important}.report-row{grid-template-columns:1fr}.moderation-hero{align-items:flex-start;flex-direction:column}.content-shell{max-width:100%}}

/* IC v6 - social discovery */
.mention-link,.hashtag-link{font-weight:700;text-decoration:none;color:var(--primary)}
.mention-link:hover,.hashtag-link:hover{text-decoration:underline}
.trending-tags{display:grid;gap:8px}.trending-tags a{display:flex;align-items:center;justify-content:space-between;padding:9px 11px;border-radius:12px;text-decoration:none;background:rgba(127,127,127,.07);color:inherit}.trending-tags a:hover{background:rgba(127,127,127,.12)}.trending-tags span{font-weight:700;color:var(--primary)}.trending-tags b{font-size:.78rem;opacity:.65}
.activity-actions form{display:contents}.activity-actions form button{background:none;border:0;color:inherit}

/* IC v7 - comentários e reações */
.ic-reaction-picker,.ic-topic-reactions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ic-react-btn{border:1px solid var(--bs-border-color,#dee2e6);background:var(--bs-body-bg,#fff);border-radius:999px;min-width:36px;height:34px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;gap:4px;transition:.15s ease}.ic-react-btn:hover{transform:translateY(-1px);background:rgba(13,110,253,.08)}.ic-react-btn.active{border-color:var(--primary,#0d6efd);box-shadow:0 0 0 2px rgba(13,110,253,.12);background:rgba(13,110,253,.1)}.ic-reaction-total{font-weight:700;font-size:.9rem}.ic-comment-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ic-thread-reply{margin-left:calc(min(var(--thread-depth),4) * 22px);border-left:2px solid rgba(127,127,127,.16);padding-left:12px}.ic-thread-reply .ic-thread-reply{margin-top:12px}.ic-inline-reply{padding:10px;border-radius:12px;background:rgba(127,127,127,.06)}.min-w-0{min-width:0}.ic-feed-actions{align-items:center;flex-wrap:wrap}.ic-feed-actions .ic-reaction-picker{margin-right:auto}@media(max-width:576px){.ic-thread-reply{margin-left:calc(min(var(--thread-depth),4) * 10px);padding-left:8px}.ic-react-btn{min-width:32px;padding:0 6px}.ic-inline-reply .d-flex{flex-direction:column;align-items:stretch!important}}


/* IC v8 - correcoes de galeria/sidebar + agenda */
.community-sidebar{overflow-y:auto;overflow-x:hidden;justify-content:flex-start;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}
.community-sidebar::-webkit-scrollbar{width:5px}.community-sidebar::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:99px}
.side-nav{flex:0 0 auto}
@media (max-height:850px) and (min-width:992px){.community-sidebar{padding-top:10px;padding-bottom:10px}.side-nav{gap:3px}.side-nav a{min-height:46px;font-size:.59rem}.side-nav a i{font-size:1rem}.side-nav a b{top:4px;right:9px}}
@media (max-height:690px) and (min-width:992px){.side-nav a{min-height:39px;flex-direction:row;justify-content:flex-start;padding:0 10px;gap:8px}.side-nav a span{font-size:.59rem}}

.feed-gallery-grid{display:grid;gap:3px;margin:0 18px 10px;border-radius:9px;overflow:hidden;height:min(470px,58vw);max-height:470px;background:#eef2f7}
.feed-gallery-grid.count-1{grid-template-columns:1fr}.feed-gallery-grid.count-2{grid-template-columns:repeat(2,1fr)}.feed-gallery-grid.count-3{grid-template-columns:2fr 1fr;grid-template-rows:repeat(2,1fr)}.feed-gallery-grid.count-3 .feed-gallery-thumb:first-child{grid-row:1/3}.feed-gallery-grid.count-4{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}
.feed-gallery-thumb{position:relative;border:0;padding:0;margin:0;background:#eef2f7;overflow:hidden;min-width:0;min-height:0;cursor:pointer}.feed-gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease}.feed-gallery-thumb:hover img{transform:scale(1.025)}.feed-gallery-more{position:absolute;inset:0;display:grid;place-items:center;background:rgba(15,23,42,.56);color:#fff;font-size:1.7rem;font-weight:900}
.ic-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;overflow:hidden;border-radius:10px}.ic-gallery-grid .ic-gallery-item{min-height:170px}
@media(max-width:991.98px){.feed-gallery-grid{margin-left:12px;margin-right:12px;height:min(430px,72vw)}.community-sidebar{overflow-y:auto}.ic-gallery-grid .ic-gallery-item{min-height:130px}}
@media(max-width:575.98px){.feed-gallery-grid{height:min(360px,92vw)}.ic-gallery-grid{gap:3px}.ic-gallery-grid .ic-gallery-item{min-height:105px}}

event{} /* marcador de versao */
.events-shell{max-width:1180px;margin-right:auto}.events-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.events-hero h1{font-weight:900;margin:0}.events-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.events-toolbar a{padding:8px 13px;border:1px solid var(--dash-line);border-radius:999px;text-decoration:none;color:#5f6b7d;background:#fff;font-size:.78rem}.events-toolbar a.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.event-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.event-card{padding:18px;display:flex;flex-direction:column;gap:13px}.event-card-top{display:flex;gap:13px;align-items:flex-start}.event-date-tile{width:62px;min-width:62px;height:68px;border-radius:12px;background:#fff3ef;color:var(--primary);display:flex;flex-direction:column;align-items:center;justify-content:center}.event-date-tile strong{font-size:1.45rem;line-height:1}.event-date-tile span{font-size:.62rem;font-weight:900;margin-top:4px}.event-card h2{font-size:1rem;margin:0 0 5px}.event-meta{display:flex;flex-direction:column;gap:4px;color:#718096;font-size:.72rem}.event-counts{display:flex;gap:15px;color:#657186;font-size:.72rem}.event-counts b{color:#1f2937}.event-rsvp-actions{display:flex;gap:7px;flex-wrap:wrap}
.event-detail-card{padding:15px;border:1px solid var(--dash-line);border-radius:12px;background:#fafbfc}.event-detail-main{display:flex;gap:12px;align-items:center}.event-detail-main>div:last-child{display:flex;flex-direction:column;gap:4px}.event-detail-main span{color:#6b7280;font-size:.76rem}.event-rsvp-summary{display:flex;gap:16px;margin:12px 0;color:#6b7280;font-size:.75rem}.event-rsvp-summary b{color:#111827}.event-participants{border-top:1px solid var(--dash-line);margin-top:13px;padding-top:12px}.event-participants>strong{display:block;font-size:.75rem;margin-bottom:8px}.event-participants>div{display:flex;flex-wrap:wrap}.event-participants img{width:32px;height:32px;border-radius:50%;object-fit:cover;border:2px solid #fff;margin-right:-6px}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.calendar-head{font-size:.68rem;font-weight:800;color:#788196;text-align:center;padding:7px}.calendar-day{min-height:100px;border:1px solid var(--dash-line);border-radius:8px;background:#fff;padding:7px;font-size:.7rem}.calendar-day.muted{opacity:.38}.calendar-day .day-number{font-weight:900}.calendar-event{display:block;margin-top:5px;padding:4px 5px;border-radius:5px;background:#fff3ef;color:var(--primary);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.62rem}
@media(max-width:767.98px){.event-list{grid-template-columns:1fr}.events-hero{align-items:flex-start;flex-direction:column}.calendar-grid{gap:2px}.calendar-day{min-height:72px;padding:4px}.calendar-event{font-size:0;width:8px;height:8px;border-radius:50%;padding:0;margin:5px auto 0}.calendar-head{font-size:.56rem;padding:4px}}

/* v8.1 - Galeria compacta estilo rede social */
.feed-gallery-grid{
  gap:2px;
  margin:0 18px 10px;
  height:auto;
  max-height:none;
  aspect-ratio:16 / 9;
  border-radius:8px;
  background:#eef2f7;
}
.feed-gallery-grid.count-1{aspect-ratio:16 / 9;grid-template-columns:1fr}
.feed-gallery-grid.count-2{aspect-ratio:16 / 9;grid-template-columns:repeat(2,1fr)}
.feed-gallery-grid.count-3{aspect-ratio:16 / 9;grid-template-columns:2fr 1fr;grid-template-rows:repeat(2,1fr)}
.feed-gallery-grid.count-4{aspect-ratio:16 / 9;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}
.feed-gallery-thumb img{object-fit:cover}
.feed-gallery-more{font-size:1.45rem}

@media(max-width:991.98px){
  .feed-gallery-grid{margin-left:12px;margin-right:12px;aspect-ratio:4 / 3}
  .feed-gallery-grid.count-1,.feed-gallery-grid.count-2,.feed-gallery-grid.count-3,.feed-gallery-grid.count-4{aspect-ratio:4 / 3}
}
@media(max-width:575.98px){
  .feed-gallery-grid{margin-left:0;margin-right:0;border-radius:0;aspect-ratio:1.35 / 1}
  .feed-gallery-grid.count-1,.feed-gallery-grid.count-2,.feed-gallery-grid.count-3,.feed-gallery-grid.count-4{aspect-ratio:1.35 / 1}
  .feed-gallery-more{font-size:1.25rem}
}

/* IC v8.2 - feedback visual de comentário inserido por AJAX */
.ic-reply-just-added {
  animation: icReplyHighlight 1.8s ease;
}
@keyframes icReplyHighlight {
  0% { box-shadow: 0 0 0 3px rgba(13,110,253,.18); background: rgba(13,110,253,.06); }
  100% { box-shadow: none; background: transparent; }
}

/* IC v8.3 - links auxiliares + mobile full width */
.site-footer a,
.mini-footer a{
  display:inline-flex;
  align-items:center;
  color:var(--primary);
  text-decoration:none;
  font-weight:750;
  padding:3px 7px;
  border-radius:999px;
  transition:background .16s ease,color .16s ease,transform .16s ease;
}
.site-footer a:hover,
.mini-footer a:hover{
  color:var(--secondary);
  background:rgba(124,58,237,.08);
  transform:translateY(-1px);
}

/* Breadcrumbs de paginas como Início / Eventos */
.meta:has(> a){
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:.72rem;
}
.meta:has(> a) a{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 9px;
  border:1px solid var(--dash-line,#e5e7eb);
  border-radius:999px;
  background:var(--surface,#fff);
  color:var(--text,#374151);
  text-decoration:none;
  font-weight:750;
  transition:.16s ease;
}
.meta:has(> a) a:hover{
  border-color:var(--primary);
  color:var(--primary);
  background:rgba(124,58,237,.06);
}
html[data-theme="dark"] .site-footer a,
body[data-theme="dark"] .site-footer a,
html[data-theme="dark"] .mini-footer a,
body[data-theme="dark"] .mini-footer a{color:#c4b5fd}

@media(max-width:575.98px){
  /* Tela realmente cheia no celular: remove apenas margens externas. */
  .community-page,
  body>main.container,
  body>main.container-fluid{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  .community-page>.container,
  .community-page>.container-fluid,
  body>main.container>.container,
  body>main.container>.container-fluid{
    width:100%!important;
    max-width:none!important;
    padding-left:0!important;
    padding-right:0!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  .dashboard-grid{
    width:100%;
    gap:10px;
  }
  .feed-center-column,
  .content-shell,
  .events-shell{
    width:100%!important;
    max-width:none!important;
  }
  /* Cards do feed encostam nas laterais como apps sociais. */
  .activity-card,
  .composer-card,
  .dashboard-card,
  .panel{
    border-left:0!important;
    border-right:0!important;
    border-radius:0!important;
  }
  .feed-gallery-grid,
  .feed-media,
  .feed-video{
    margin-left:0!important;
    margin-right:0!important;
    border-radius:0!important;
  }
  /* Cabecalhos/paginas internas continuam respirando por dentro. */
  .events-hero,
  .events-toolbar,
  .people-tabs,
  .neighborhood-hero,
  .moderation-hero{
    margin-left:12px;
    margin-right:12px;
  }
}

.feed-infinite-sentinel{display:flex;align-items:center;justify-content:center;gap:.55rem;padding:1rem;color:var(--bs-secondary-color,#6c757d);font-size:.9rem}

/* v9.1 - ações do proprietário do Feed */
.topic-owner-actions{margin-left:auto;display:flex;align-items:center;gap:6px;flex-shrink:0}.topic-owner-action{width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:var(--bs-secondary-color,#6c757d);background:rgba(127,127,127,.08);transition:.18s ease}.topic-owner-action:hover{background:rgba(127,127,127,.16);transform:translateY(-1px)}@media(max-width:575.98px){.topic-owner-action{width:32px;height:32px}.topic-owner-actions{gap:3px}}

/* v9.2 - compartilhamento direto Facebook/WhatsApp */
.ic-share-icons{display:inline-flex;align-items:center;gap:7px}.activity-actions .ic-share-icon{width:34px;height:34px;min-width:34px;padding:0;border:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-size:1.05rem;transition:transform .15s ease,background .15s ease}.activity-actions .ic-share-icon:hover{transform:translateY(-1px)}.activity-actions .ic-share-facebook{color:#1877f2;background:rgba(24,119,242,.10)}.activity-actions .ic-share-facebook:hover{background:rgba(24,119,242,.18)}.activity-actions .ic-share-whatsapp{color:#25d366;background:rgba(37,211,102,.11)}.activity-actions .ic-share-whatsapp:hover{background:rgba(37,211,102,.20)}

/* v9.3 - compartilhamento social sempre em linha */
.activity-actions .ic-share-icons,
.ic-feed-actions .ic-share-icons{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px;
  min-width:78px;
  white-space:nowrap;
}
.activity-actions .ic-share-icons .ic-share-icon,
.ic-feed-actions .ic-share-icons .ic-share-icon{
  flex:0 0 34px !important;
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  min-height:34px !important;
  padding:0 !important;
  margin:0 !important;
  border-radius:50% !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:1 !important;
  border:1px solid rgba(127,127,127,.12) !important;
  box-shadow:0 2px 7px rgba(15,23,42,.06);
}
.activity-actions .ic-share-facebook{color:#1877f2;background:rgba(24,119,242,.10)}
.activity-actions .ic-share-whatsapp{color:#25d366;background:rgba(37,211,102,.10)}
@media(max-width:575.98px){
  .activity-actions .ic-share-icons,.ic-feed-actions .ic-share-icons{gap:5px;min-width:70px}
  .activity-actions .ic-share-icons .ic-share-icon,.ic-feed-actions .ic-share-icons .ic-share-icon{flex-basis:31px !important;width:31px !important;height:31px !important;min-width:31px !important;min-height:31px !important;font-size:.95rem}
}
