*{box-sizing:border-box}.community-page{padding-top:92px;background:#f5f9fb;min-height:100vh;color:#0b3155}.community-nav .nav-link{font-weight:400!important}.community-top{display:flex;align-items:flex-end;justify-content:space-between;padding-top:28px;padding-bottom:20px}.community-top h1{font-size:clamp(30px,3vw,46px);margin:4px 0}.community-top p{margin:0;color:#607b92}.eyebrow{font-size:12px;letter-spacing:.15em;font-weight:800;color:#0caf63}.auth-state{background:#fff;border:1px solid #dce8ed;border-radius:14px;padding:12px 16px}.auth-state a{color:#08a957;font-weight:700}.ci-workspace{display:grid;grid-template-columns:360px minmax(420px,1fr) 330px;height:calc(100vh - 205px);min-height:610px;padding-bottom:24px}.ci-groups,.ci-chat,.ci-info{background:#fff;border:1px solid #dfe9ed;min-width:0}.ci-groups{border-radius:20px 0 0 20px;overflow:hidden;display:flex;flex-direction:column}.ci-chat{display:flex;flex-direction:column;border-left:0;border-right:0}.ci-info{border-radius:0 20px 20px 0;overflow:auto}.group-search{margin:16px;display:flex;gap:8px;align-items:center;border:1px solid #dce6eb;border-radius:12px;padding:10px 12px}.group-search input{border:0;outline:0;width:100%;font:inherit}.tabs{display:flex;gap:7px;padding:0 16px 12px;overflow:auto}.tabs button{border:0;border-radius:10px;padding:9px 11px;white-space:nowrap;background:#edf4f7;color:#163d5d;font-weight:600}.tabs button.active{background:#0caf63;color:#fff}.filters{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 16px 14px}.filters select{min-width:0;border:1px solid #dce6eb;border-radius:10px;padding:10px;background:#fff;color:#183b58}.group-list{overflow:auto;border-top:1px solid #eef3f5}.group{width:100%;border:0;background:#fff;display:grid;grid-template-columns:54px 1fr auto;gap:11px;align-items:center;text-align:left;padding:13px 15px;border-bottom:1px solid #eef3f5;cursor:pointer;color:#123854}.group:hover,.group.active{background:#eafaf2}.group.active{box-shadow:inset 4px 0 #0caf63}.group img{width:54px;height:54px;border-radius:50%;object-fit:cover}.gcopy{min-width:0}.gcopy b,.gcopy small{display:block}.gcopy b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gcopy small{color:#6d8799;margin-top:3px;font-size:12px}.group em{font-style:normal;background:#0caf63;color:#fff;min-width:25px;height:25px;border-radius:20px;display:grid;place-items:center;font-size:12px}.chat-head{height:78px;flex:none;display:flex;align-items:center;gap:12px;padding:12px 18px;border-bottom:1px solid #e8eef1}.chat-head img{width:50px;height:50px;border-radius:50%;object-fit:cover}.chat-head h2{margin:0;font-size:20px}.chat-head p{margin:4px 0 0;color:#70889a;font-size:13px}.pin{margin:12px 16px 0;background:#e7fbf0;border-radius:12px;padding:11px 14px;color:#187247;display:flex;flex-direction:column;gap:3px;font-size:13px}.messages{flex:1;overflow:auto;padding:18px;background:linear-gradient(rgba(247,250,251,.92),rgba(247,250,251,.92)),radial-gradient(#dce8e3 1px,transparent 1px);background-size:auto,18px 18px}.msg{display:flex;margin:10px 0}.msg.me{justify-content:flex-end}.bubble{max-width:76%;background:#fff;border:1px solid #e0e9ed;border-radius:13px;padding:10px 12px;box-shadow:0 2px 6px #0b31550a}.msg.me .bubble{background:#dcf8e8}.bubble strong{display:block;color:#0875bd;font-size:12px;margin-bottom:4px}.bubble p{margin:0;white-space:pre-wrap;word-break:break-word}.bubble time{display:block;text-align:right;color:#7890a0;font-size:10px;margin-top:5px}.composer{height:66px;flex:none;padding:10px 14px;border-top:1px solid #e4ecef;display:flex;gap:9px;background:#fff}.composer input{flex:1;border:1px solid #dce6ea;border-radius:24px;padding:0 16px;font:inherit;outline:0}.composer .send{width:45px;border:0;border-radius:50%;background:#0caf63;color:#fff;font-size:18px}.composer button:disabled,.composer input:disabled{opacity:.55}.info-cover{height:120px;background:#e8f5f0}.info-cover img{width:100%;height:100%;object-fit:cover}.info-body{padding:18px}.info-body h2{margin:0 0 5px}.info-body>p{color:#607b92}.verified{display:inline-block;background:#0caf63;color:#fff;border-radius:20px;padding:5px 10px;font-size:12px;margin:8px 0}.stats{display:grid;grid-template-columns:1fr 1fr;border-block:1px solid #e8eef1;margin:16px 0}.stats div{text-align:center;padding:14px}.stats b,.stats small{display:block}.stats b{font-size:21px}.stats small{color:#7890a0}.invite{display:grid;grid-template-columns:1fr 1fr;gap:8px}.invite button{border:1px solid #dce6ea;background:#fff;border-radius:10px;padding:10px;font-weight:650;color:#123854}.qrbox{text-align:center;padding:14px}.qrbox img{width:180px;max-width:100%}.qrbox a{display:block;color:#0a9f59;font-weight:700}.detail-list{margin-top:16px}.detail-list div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid #edf2f4;font-size:13px}.detail-list span{color:#70889a}.empty-state,.empty-info,.loading,.error{padding:28px;color:#71899a;text-align:center}.error{color:#a33}.mobile-groups{display:none}.menu-btn svg{fill:none;stroke:currentColor;stroke-width:2}
@media(max-width:1180px){.ci-workspace{grid-template-columns:320px 1fr}.ci-info{display:none}.ci-chat{border-right:1px solid #dfe9ed;border-radius:0 20px 20px 0}}
@media(max-width:820px){.community-page{padding-top:76px}.community-top{padding-top:18px;align-items:flex-start;gap:10px}.community-top p{display:none}.auth-state{font-size:12px}.ci-workspace{display:block;height:calc(100vh - 165px);min-height:560px;padding:0 0 12px}.ci-chat{height:100%;border:1px solid #dfe9ed;border-radius:16px}.ci-groups{position:fixed;z-index:80;left:10px;right:10px;top:84px;bottom:12px;border-radius:16px;transform:translateX(-110%);transition:.25s;box-shadow:0 20px 60px #082d4f35}.ci-groups.open{transform:none}.mobile-groups{display:block;position:fixed;z-index:90;left:16px;bottom:16px;border:0;border-radius:24px;background:#0caf63;color:#fff;padding:12px 18px;font-weight:700;box-shadow:0 8px 25px #0caf6355}.chat-head{padding-left:14px}.bubble{max-width:88%}.community-nav .nav-links{display:none;position:absolute;top:70px;left:12px;right:12px;background:#fff;border:1px solid #dfe8ec;border-radius:14px;padding:10px;box-shadow:0 14px 35px #0b315525}.community-nav .nav-links.open{display:flex;flex-direction:column}.community-nav .nav-actions{display:none}}
@media(max-width:520px){.community-top{display:block}.auth-state{margin-top:10px;display:inline-block}.filters{grid-template-columns:1fr}.chat-head h2{font-size:16px}.chat-head p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}.messages{padding:12px}.composer{padding:9px}.community-top h1{font-size:28px}}

/* v2.1 — match the approved PayByDay home navigation + compact WhatsApp-style workspace */
.community-page{padding-top:0!important;background:#f3f7f8!important}
.community-nav .nav-inner{height:80px!important;gap:22px!important}
.community-nav .brand{min-width:188px!important}.community-nav .brand img{width:188px!important}
.community-nav .nav-links{gap:5px!important;font-size:12.5px!important;font-weight:400!important}
.community-nav .nav-link{font-weight:400!important;padding:10px 11px!important}
.community-nav .nav-actions .btn{height:44px!important;border-radius:13px!important;padding:0 14px!important;font-size:12.5px!important}
.community-top{padding-top:18px!important;padding-bottom:14px!important;align-items:center!important}
.community-top h1{font-size:34px!important;margin:3px 0!important}.community-top p{font-size:14px!important}.eyebrow{font-size:10px!important}
.ci-workspace{height:calc(100vh - 176px)!important;min-height:590px!important;grid-template-columns:330px minmax(430px,1fr) 315px!important;padding-bottom:16px!important;box-shadow:0 18px 45px rgba(11,49,85,.08)}
.ci-groups{border-radius:16px 0 0 16px!important}.ci-info{border-radius:0 16px 16px 0!important}
.group-search{margin:12px!important;padding:9px 11px!important}.tabs{padding:0 12px 10px!important}.filters{padding:0 12px 10px!important}.group{padding:10px 12px!important}.group img{width:48px!important;height:48px!important}.chat-head{height:68px!important}.info-cover{height:105px!important}.info-body{padding:15px!important}.messages{padding:14px!important}.composer{height:60px!important}
@media(max-width:1180px){.ci-workspace{grid-template-columns:310px 1fr!important}.community-nav .nav-link{padding:10px 8px!important}}
@media(max-width:1000px){.community-nav .nav-links,.community-nav .nav-actions{display:none!important}.community-nav .menu-btn{display:grid!important;margin-left:auto!important}.community-nav .nav-inner{height:76px!important}.community-nav .brand{min-width:0!important}.community-nav .brand img{width:180px!important}.community-top{padding-top:14px!important}.ci-workspace{height:calc(100vh - 160px)!important}}
@media(max-width:820px){.community-page{padding-top:0!important}.community-top{padding-top:12px!important}.ci-workspace{height:calc(100vh - 150px)!important}.ci-groups{top:82px!important}}
@media(max-width:520px){.community-nav .nav-inner{height:70px!important}.community-nav .brand img{width:164px!important}.community-top h1{font-size:26px!important}.community-top{padding-bottom:10px!important}.ci-workspace{height:calc(100vh - 137px)!important}}

/* v2.2 — approved WhatsApp-style professional community workspace */
.community-top{max-width:1540px!important}
.ci-workspace{max-width:1540px!important;border-radius:18px!important;overflow:hidden!important;background:#fff!important;border:1px solid #dce8e5!important;box-shadow:0 16px 44px rgba(8,48,70,.10)!important}
.ci-groups{background:#fff!important;border:0!important;border-right:1px solid #e2ebe8!important;border-radius:0!important}
.ci-chat{border:0!important;background:#f5faf8!important;position:relative!important}
.ci-info{border:0!important;border-left:1px solid #e2ebe8!important;border-radius:0!important;background:#fff!important}
.group-search{background:#f6f9fa!important;border-color:#e1e9e7!important;border-radius:14px!important}
.tabs{border-bottom:1px solid #edf2f0!important;padding-bottom:12px!important}.tabs button{border-radius:18px!important;font-weight:600!important}.tabs button.active{box-shadow:0 5px 12px rgba(12,175,99,.18)!important}
.filters{padding-top:12px!important}.filters select{background:#fff!important;border-color:#dfe9e6!important}
.group{min-height:76px!important;border-bottom:1px solid #edf2f0!important}.group:hover{background:#f4fbf7!important}.group.active{background:#e8f8f0!important;box-shadow:inset 4px 0 #0caf63!important}.group img{width:52px!important;height:52px!important;border:2px solid #fff!important;box-shadow:0 0 0 1px #dce9e4!important}
.chat-head{background:#fff!important;border-bottom:1px solid #e2ebe8!important;height:76px!important}.chat-head img{width:52px!important;height:52px!important;border:2px solid #fff!important;box-shadow:0 0 0 1px #d7e6e0!important}.chat-head h2{font-size:18px!important}.chat-head p{font-size:12px!important}
.messages{background-color:#f3f8f5!important;background-image:linear-gradient(rgba(243,248,245,.92),rgba(243,248,245,.92)),radial-gradient(circle at 1px 1px,#cfddd6 1px,transparent 1.1px)!important;background-size:auto,22px 22px!important;padding:22px!important}
.empty-state{margin:auto!important;color:#6f8780!important}.bubble{border-color:#dfe9e5!important;box-shadow:0 2px 7px rgba(10,55,45,.05)!important}.msg.me .bubble{background:#dff8e9!important;border-color:#caecd8!important}
.composer{background:#f7faf9!important;border-top:1px solid #e0e9e6!important;padding:10px 14px!important}.composer input{background:#fff!important;border-color:#dbe7e2!important}.composer .send{box-shadow:0 5px 14px rgba(12,175,99,.24)!important}
.profile-hero{height:178px;position:relative;display:flex;align-items:flex-end;justify-content:center;padding-bottom:0;background:linear-gradient(135deg,#e8f8f0,#eff8ff);overflow:hidden}.profile-hero-bg{position:absolute;inset:0;background:radial-gradient(circle at 20% 20%,rgba(12,175,99,.15),transparent 35%),radial-gradient(circle at 80% 15%,rgba(0,123,255,.10),transparent 32%)}.profile-avatar{position:relative;width:116px;height:116px;border-radius:50%;object-fit:cover;transform:translateY(22px);border:5px solid #fff;box-shadow:0 8px 26px rgba(8,50,65,.18)}
.info-body{padding:38px 18px 18px!important}.profile-title{text-align:center}.profile-title h2{font-size:21px!important;line-height:1.2;margin:0 0 9px!important}.profile-meta{text-align:center!important;margin:9px 0 4px!important;font-size:13px!important}.verified{margin:0!important;background:#e6f8ef!important;color:#087b48!important;font-weight:700!important;border:1px solid #c9edd9!important}.stats{border:1px solid #e6eeeb!important;border-radius:13px!important;margin:18px 0 12px!important;overflow:hidden}.stats div+div{border-left:1px solid #e6eeeb!important}.stats b{font-size:19px!important}.invite button{min-height:44px!important;border-radius:12px!important;background:#fff!important;cursor:pointer!important}.invite button:hover{border-color:#0caf63!important;color:#07874d!important}.qrbox{margin-top:10px;border:1px solid #e1ebe7;border-radius:14px;background:#f8fbfa}.qrbox img{width:158px!important;background:#fff;padding:8px;border-radius:10px}.qrbox b{display:block;margin:5px 0;color:#153d57;font-size:12px}.detail-list{margin-top:14px!important}.online-dot{color:#079854}.online-dot:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#0caf63;margin-right:6px}
@media(max-width:1180px){.ci-info{display:none!important}.ci-workspace{grid-template-columns:320px 1fr!important}}
@media(max-width:820px){.community-top{padding-left:16px!important;padding-right:16px!important}.ci-workspace{margin:0 10px!important;width:auto!important;border-radius:14px!important}.chat-head{height:68px!important}.messages{padding:14px!important}.group{min-height:70px!important}}
@media(max-width:520px){.community-top .eyebrow{display:none}.community-top h1{font-size:24px!important}.auth-state{font-size:11px!important;padding:8px 10px!important}.ci-workspace{height:calc(100vh - 124px)!important}.chat-head img{width:44px!important;height:44px!important}.chat-head{padding:9px 12px!important}.composer{height:58px!important}}

/* v4.0 State Community -> City Group hierarchy */
.state-community{border-bottom:1px solid #e7edf1;padding:8px 8px 10px}.state-community-head{display:grid;grid-template-columns:36px 1fr auto;gap:9px;align-items:center;padding:8px 6px;background:linear-gradient(135deg,#effaf4,#f8fcfa);border:1px solid #d8eee1;border-radius:12px;margin-bottom:6px}.state-community-head b{display:block;font-size:12px;color:#123a2a}.state-community-head small{display:block;font-size:9px;color:#688078;margin-top:2px}.state-community-mark{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#0b8f52;color:#fff;font-size:11px;font-weight:800}.state-community-open{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:#fff;color:#087847;text-decoration:none;border:1px solid #cfe8da}.state-child-groups{position:relative;padding-left:9px}.state-child-groups:before{content:"";position:absolute;left:14px;top:0;bottom:8px;border-left:1px dashed #bdd7c8}.state-child-groups .group{position:relative}.state-child-groups .branch{width:13px;flex:0 0 13px;color:#79a48b;font-size:12px}.hierarchy-card{margin:12px 0;padding:12px;border:1px solid #dcebe2;border-radius:12px;background:#f7fcf9;text-align:center}.hierarchy-card span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#779083}.hierarchy-card b,.hierarchy-card strong{display:block;font-size:12px;color:#16452f;margin-top:5px}.hierarchy-card i{display:block;color:#0a9b59;font-style:normal;line-height:15px}.hierarchy-card a{display:inline-block;margin-top:8px;font-size:10px;color:#087847;text-decoration:none;font-weight:600}@media(max-width:760px){.state-community{padding-left:4px;padding-right:4px}.state-community-head{grid-template-columns:32px 1fr auto}.state-community-mark{width:32px;height:32px}}


/* v4.1 Individual City Groups — groups may exist without a State Community */
.standalone-city-section{margin:14px 10px 18px;border:1px solid #dfe7e3;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 5px 18px rgba(21,48,39,.05)}
.standalone-title{display:flex;gap:10px;align-items:center;padding:12px 13px;background:linear-gradient(135deg,#f4fbf7,#fff8ed);border-bottom:1px solid #e5ece8}.standalone-title>span{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#0c7b52;color:#fff}.standalone-title div{display:flex;flex-direction:column;min-width:0}.standalone-title b{font-size:13px;color:#173d31}.standalone-title small{font-size:10px;color:#72827c;margin-top:2px}.standalone-state{padding:7px}.standalone-state+.standalone-state{border-top:1px dashed #e3e9e6}.standalone-state-name{padding:5px 8px 4px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#7b8a84}.standalone-city-section .group{border-radius:11px}.standalone-city-section .branch{color:#e17819}.standalone-card{background:linear-gradient(135deg,#fff8ee,#f7fbf9)!important;border-color:#f0d7b6!important}.standalone-card b{color:#c96810!important}.standalone-card small{display:block;margin-top:5px;color:#71817b;font-size:11px}

/* v4.2 independent trade groups */
.trade-group-section{border-top:1px solid #e5ece8}.trade-title{display:flex;gap:10px;align-items:center;padding:12px 13px;background:linear-gradient(135deg,#eef7ff,#f8f2ff);border-bottom:1px solid #dfe8f1}.trade-title>span{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#335ca8;color:#fff}.trade-title div{display:flex;flex-direction:column;min-width:0}.trade-title b{font-size:13px;color:#233a67}.trade-title small{font-size:10px;color:#728095;margin-top:2px}.trade-group-section .group{border-radius:11px}.trade-group-section .branch{color:#5c67c9}
