/* Community content layer — memakai token, shell ponsel, dan komponen app asli. */
:root { --community-frame-w:390px; }

/* Root harus memiliki tinggi yang pasti. Tanpa ini, isi .screen memanjang di
   balik frame yang overflow-nya disembunyikan sehingga halaman terasa tidak
   dapat di-scroll. */
html, body { height:100%; }
#app-shell { min-height:100dvh; height:100dvh; }
#screen-container { width:min(100%, var(--community-frame-w)); max-width:var(--community-frame-w); }
#community-root { width:100%; height:100%; min-height:0; }
.community-screen {
  height:100%;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-y:contain;
  touch-action:pan-y;
  background:var(--gray-50);
}
.bottom-nav, .community-sticky-cta { max-width:var(--community-frame-w); }
/* Tombol buat sengaja keluar dari nav; jangan sampai dipotong oleh nav desktop. */
.bottom-nav { overflow:visible; }
.community-nav-create { margin-top:-1.6rem; gap:.18rem; justify-content:flex-start; padding-top:0; position:relative; z-index:2; }
.community-nav-create-icon { width:3.25rem; height:3.25rem; flex:none; border-radius:50%; background:var(--primary); color:var(--accent); border:4px solid var(--gray-50); display:grid; place-items:center; box-shadow:0 5px 14px rgba(30,45,47,.2); }
.community-nav-create.active .community-nav-create-icon { background:var(--accent-dark); color:#fff; }
.community-content { padding:1rem; padding-bottom:calc(var(--bottom-nav-h) + 1.25rem); }
.community-kicker { font-size:.72rem; font-weight:800; color:var(--accent-dark); letter-spacing:.05em; text-transform:uppercase; }
.community-title { font-size:1.5rem; font-weight:900; line-height:1.2; color:var(--gray-900); margin-top:.25rem; }
.community-sub { font-size:.82rem; line-height:1.55; color:var(--gray-500); margin-top:.35rem; }
.community-top-actions { display:flex; gap:.5rem; align-items:center; }

.community-filters { display:flex; gap:.5rem; overflow-x:auto; scrollbar-width:none; padding:.875rem 0 .5rem; }
.community-filters::-webkit-scrollbar { display:none; }
.community-filters .chip { white-space:nowrap; }
.community-hero-card { border-radius:var(--radius-2xl); overflow:hidden; min-height:27rem; background:linear-gradient(145deg,#394b4e,#172628); position:relative; box-shadow:var(--shadow-lg); color:#fff; }
.community-hero-card.has-poster { background:#1e2d2f; }
.community-hero-card.has-poster::before { content:''; position:absolute; inset:0; background:linear-gradient(to top,rgba(18,31,32,.97) 5%,rgba(18,31,32,.06) 68%); z-index:1; }
.community-hero-card img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.community-hero-card.no-poster::before { content:''; position:absolute; right:-.5rem; top:2rem; font-size:12rem; color:rgba(254,188,23,.25); transform:rotate(18deg); }
.community-card-head, .community-card-foot { position:absolute; left:1rem; right:1rem; z-index:2; }
.community-card-head { top:1rem; display:flex; justify-content:space-between; gap:.5rem; align-items:start; }
.community-card-foot { bottom:1rem; }
.community-live { display:inline-flex; align-items:center; gap:.35rem; background:rgba(255,255,255,.95); color:var(--primary); border-radius:999px; padding:.35rem .6rem; font-size:.68rem; font-weight:800; }
.community-live::before { content:''; width:.42rem; height:.42rem; border-radius:50%; background:var(--coral); }
.community-save { width:2.35rem; height:2.35rem; background:rgba(28,44,45,.58); border:1px solid rgba(255,255,255,.28); color:#fff; display:grid; place-items:center; border-radius:50%; }
.community-save.saved { background:var(--accent); color:var(--primary); border-color:var(--accent); }
.community-date { color:var(--accent); font-size:.76rem; font-weight:800; }
.community-card-title { font-size:1.75rem; line-height:1.05; font-weight:900; margin-top:.45rem; max-width:15rem; }
.community-card-meta { margin-top:.625rem; display:flex; flex-wrap:wrap; gap:.35rem .75rem; color:rgba(255,255,255,.82); font-size:.72rem; }
.community-card-meta span { display:flex; align-items:center; gap:.2rem; }
.community-card-meta .material-symbols-outlined { font-size:.95rem; }
.community-card-line { border-top:1px solid rgba(255,255,255,.2); margin:.85rem 0 .7rem; }
.community-host-line { display:flex; align-items:center; justify-content:space-between; gap:.75rem; }
.community-avatar { width:2rem; height:2rem; border-radius:.65rem; display:grid; place-items:center; background:var(--accent); color:var(--primary); font-size:.8rem; font-weight:900; flex:none; }
.community-avatar.coral { background:var(--danger-light); color:var(--danger-text); }
.community-host { display:flex; align-items:center; gap:.5rem; min-width:0; }
.community-host strong { display:block; font-size:.72rem; }
.community-host p { color:rgba(255,255,255,.7); font-size:.65rem; margin-top:.1rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:10rem; }
.community-price { text-align:right; flex:none; }
.community-price small { display:block; color:rgba(255,255,255,.62); font-size:.62rem; }
.community-price strong { color:var(--accent); font-size:1rem; }
.community-swipe-actions { display:flex; justify-content:center; align-items:center; gap:.75rem; padding:.875rem 0 .3rem; }
.community-round-action { width:2.9rem; height:2.9rem; border-radius:50%; display:grid; place-items:center; background:#fff; border:1px solid var(--gray-200); color:var(--primary); box-shadow:var(--shadow-sm); }
.community-round-action.primary { width:3.5rem; height:3.5rem; background:var(--accent); color:var(--primary); border-color:var(--accent); }
.community-round-action.skip { color:var(--danger-text); }
.community-swipe-hint { text-align:center; font-size:.68rem; color:var(--gray-500); }

.community-section { padding:1.25rem 1rem 0; }
.community-section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:.75rem; }
.community-section-title { font-size:1rem; font-weight:800; color:var(--gray-900); }
.community-section-link { color:var(--primary); font-size:.72rem; font-weight:800; }
.community-horizontal { display:flex; gap:.75rem; overflow-x:auto; margin-right:-1rem; padding-right:1rem; scrollbar-width:none; }
.community-horizontal::-webkit-scrollbar { display:none; }
.community-mini-card { width:10.5rem; flex:none; padding:.75rem; border-radius:var(--radius-xl); background:#fff; border:1px solid var(--gray-200); cursor:pointer; }
.community-mini-cover { height:5rem; border-radius:var(--radius-md); background:var(--primary-light); position:relative; overflow:hidden; display:flex; align-items:end; padding:.4rem; }
.community-mini-cover::after { content:''; position:absolute; right:-.1rem; top:.1rem; color:rgba(44,62,64,.3); font-size:4.5rem; transform:rotate(16deg); }
.community-mini-cover.coral { background:var(--danger-light); }
.community-mini-cover.green { background:var(--success-light); }
.community-mini-date { position:relative; z-index:1; background:#fff; border-radius:.35rem; padding:.2rem .35rem; font-size:.58rem; font-weight:800; color:var(--primary); }
.community-mini-card h3 { margin-top:.6rem; font-size:.78rem; line-height:1.25; color:var(--gray-900); }
.community-mini-card p { margin-top:.25rem; color:var(--gray-500); font-size:.64rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.community-mini-card strong { display:block; color:var(--accent-dark); font-size:.75rem; margin-top:.55rem; }

.community-event-row { display:grid; grid-template-columns:5.5rem minmax(0,1fr); gap:.75rem; background:#fff; border:1px solid var(--gray-200); border-radius:var(--radius-xl); padding:.75rem; cursor:pointer; }
.community-event-row + .community-event-row { margin-top:.625rem; }
.community-event-cover { min-height:0; aspect-ratio:1 / 1; border-radius:var(--radius-md); overflow:hidden; background:var(--primary-light); position:relative; display:flex; align-items:end; padding:.4rem; }
.community-event-cover::after { content:''; position:absolute; font-size:5.5rem; color:rgba(44,62,64,.26); right:-.45rem; top:.7rem; transform:rotate(17deg); }
.community-event-cover.coral { background:var(--danger-light); }
.community-event-cover.green { background:var(--success-light); }
.community-event-cover img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.community-event-cover span { position:relative; z-index:1; border-radius:.35rem; background:#fff; padding:.2rem .35rem; color:var(--primary); font-size:.58rem; font-weight:800; }
.community-event-body { min-width:0; display:flex; flex-direction:column; }
.community-event-type { color:var(--accent-dark); font-size:.61rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.community-event-body h2 { font-size:.9rem; line-height:1.16; color:var(--gray-900); margin-top:.18rem; }
.community-event-meta { display:flex; flex-wrap:wrap; gap:.25rem .55rem; margin-top:.45rem; color:var(--gray-500); font-size:.62rem; }
.community-event-meta span { display:flex; align-items:center; gap:.15rem; }
.community-event-meta .material-symbols-outlined { font-size:.82rem; }
.community-event-bottom { display:flex; justify-content:space-between; align-items:end; margin-top:auto; padding-top:.5rem; }
.community-event-bottom strong { color:var(--accent-dark); font-size:.78rem; }
.community-event-bottom small { color:var(--gray-500); font-size:.61rem; }

.community-detail-hero { position:relative; background:var(--gray-900); min-height:14rem; color:#fff; overflow:hidden; }
.community-detail-hero img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.community-detail-hero::after { content:''; position:absolute; inset:0; background:linear-gradient(to top,rgba(23,37,39,.96),rgba(23,37,39,.08)); }
.community-detail-hero.no-poster::before { content:''; position:absolute; right:.75rem; top:1rem; color:rgba(254,188,23,.3); font-size:10rem; transform:rotate(15deg); }
.community-detail-top, .community-detail-copy { position:absolute; left:1rem; right:1rem; z-index:2; }
.community-detail-top { top:1rem; display:flex; justify-content:space-between; }
.community-detail-copy { bottom:1rem; }
.community-detail-copy h1 { font-size:1.45rem; line-height:1.08; margin-top:.35rem; }
.community-detail-copy p { margin-top:.35rem; color:rgba(255,255,255,.75); font-size:.72rem; }
.community-detail-body { padding:1rem 1rem calc(var(--bottom-nav-h) + 5.6rem); }
.community-info-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:.3rem; border-bottom:1px solid var(--gray-200); padding-bottom:.875rem; }
.community-info { display:flex; gap:.3rem; align-items:start; color:var(--primary); }
.community-info .material-symbols-outlined { font-size:1rem; color:var(--accent-dark); }
.community-info small { display:block; color:var(--gray-500); font-size:.58rem; }
.community-info strong { display:block; margin-top:.1rem; color:var(--gray-800); font-size:.64rem; line-height:1.25; }
.community-detail-section { margin-top:1rem; }
.community-detail-section h2 { font-size:.95rem; color:var(--gray-900); margin-bottom:.5rem; }
.community-detail-section > p { color:var(--gray-600); font-size:.75rem; line-height:1.55; }
.community-host-card { display:flex; align-items:center; gap:.6rem; border:1px solid var(--gray-200); border-radius:var(--radius-lg); padding:.65rem; background:#fff; }
.community-host-card .community-avatar { width:2.5rem; height:2.5rem; }
.community-host-card strong { display:block; font-size:.74rem; color:var(--gray-800); }
.community-host-card p { margin-top:.15rem; font-size:.62rem; color:var(--gray-500); }
.community-game-chips { display:flex; flex-wrap:wrap; gap:.35rem; }
.community-game-chip { padding:.4rem .55rem; border-radius:var(--radius-full); background:var(--primary); color:#fff; font-size:.65rem; font-weight:700; }
.community-package { background:var(--primary); color:#fff; border-radius:var(--radius-xl); padding:.875rem; overflow:hidden; position:relative; }
.community-package::after { content:''; position:absolute; width:8rem; height:8rem; border-radius:50%; background:var(--accent); opacity:.12; right:-2.5rem; top:-3rem; }
.community-package-label { color:var(--accent); font-size:.62rem; text-transform:uppercase; letter-spacing:.06em; font-weight:800; }
.community-package-price { font-size:1.35rem; font-weight:900; margin:.3rem 0 .65rem; position:relative; z-index:1; }
.community-package-list { position:relative; z-index:1; display:grid; gap:.35rem; }
.community-package-list span { font-size:.68rem; color:rgba(255,255,255,.82); display:flex; align-items:center; gap:.25rem; }
.community-package-list .material-symbols-outlined { color:var(--accent); font-size:.9rem; }
.community-sticky-cta { position:fixed; bottom:var(--frame-bottom); left:50%; transform:translateX(-50%); width:100%; max-width:390px; padding:.75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background:rgba(250,249,245,.96); border-top:1px solid var(--gray-200); display:flex; gap:.75rem; align-items:center; z-index:101; }
.community-sticky-price { min-width:5.8rem; }
.community-sticky-price small { display:block; color:var(--gray-500); font-size:.6rem; }
.community-sticky-price strong { display:block; color:var(--accent-dark); font-size:.83rem; margin-top:.12rem; }
.community-sticky-cta .btn { flex:1; }

.community-order-card { background:#fff; border:1px solid var(--gray-200); border-radius:var(--radius-xl); overflow:hidden; }
.community-order-card + .community-order-card { margin-top:.75rem; }
.community-order-head { display:flex; justify-content:space-between; gap:.5rem; padding:.875rem; border-bottom:1px dashed var(--gray-200); }
.community-order-head h2 { font-size:.95rem; line-height:1.2; color:var(--gray-900); }
.community-order-head p { color:var(--gray-500); font-size:.64rem; margin-top:.2rem; }
.community-order-body { padding:.875rem; }
.community-order-grid { display:grid; grid-template-columns:1fr 1fr; gap:.65rem; }
.community-order-grid small { display:block; color:var(--gray-500); font-size:.6rem; }
.community-order-grid strong { display:block; color:var(--gray-800); font-size:.68rem; margin-top:.15rem; }
.community-pass-preview { margin-top:.75rem; background:var(--primary); border-radius:var(--radius-lg); padding:.7rem; display:flex; align-items:center; gap:.65rem; color:#fff; }
.community-qr { width:3.15rem; height:3.15rem; flex:none; border:3px solid #fff; border-radius:.3rem; background:repeating-linear-gradient(45deg,#fff 0 3px,var(--primary) 3px 6px,#fff 6px 8px); }
.community-pass-preview strong { display:block; color:var(--accent); font-family:monospace; letter-spacing:.08em; font-size:.95rem; }
.community-pass-preview span { display:block; color:rgba(255,255,255,.68); font-size:.61rem; margin-top:.15rem; }

.community-role-card { display:flex; gap:.7rem; align-items:center; padding:.75rem; border:1px solid var(--gray-200); border-radius:var(--radius-xl); background:#fff; text-align:left; width:100%; }
.community-role-card + .community-role-card { margin-top:.5rem; }
.community-role-card.active { border:2px solid var(--primary); background:var(--primary-light); }
.community-role-card .material-symbols-outlined { color:var(--accent-dark); font-size:1.3rem; }
.community-role-card strong { display:block; color:var(--gray-800); font-size:.76rem; }
.community-role-card p { color:var(--gray-500); font-size:.62rem; margin-top:.15rem; line-height:1.4; }
.community-role-card .material-symbols-outlined:last-child { margin-left:auto; color:var(--gray-500); font-size:1rem; }
.community-form-card { padding:.875rem; border:1px solid var(--gray-200); border-radius:var(--radius-xl); background:#fff; }
.community-form-card + .community-form-card { margin-top:.75rem; }
.community-form-card h2 { font-size:.95rem; margin-bottom:.75rem; color:var(--gray-900); }
.community-field { display:flex; flex-direction:column; gap:.28rem; margin-top:.65rem; }
.community-field label { color:var(--gray-600); font-size:.66rem; font-weight:700; }
.community-field input, .community-field select, .community-field textarea { width:100%; min-height:2.55rem; border:1px solid var(--gray-200); border-radius:var(--radius-md); background:#fff; padding:.6rem .7rem; color:var(--gray-800); font-size:.76rem; }
.community-field textarea { min-height:4.5rem; resize:vertical; }
.community-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:.6rem; }
.community-status { display:inline-flex; align-items:center; border-radius:var(--radius-full); padding:.28rem .5rem; font-size:.6rem; font-weight:800; white-space:nowrap; }
.community-status.pending { background:var(--warning-light); color:var(--accent-dark); }
.community-status.success { background:var(--success-light); color:#157f3c; }
.community-status.info { background:var(--info-bg); color:var(--info); }
.community-request { border:1px solid var(--gray-200); border-radius:var(--radius-xl); background:#fff; padding:.8rem; }
.community-request + .community-request { margin-top:.65rem; }
.community-request-head { display:flex; justify-content:space-between; gap:.5rem; }
.community-request h3 { font-size:.85rem; color:var(--gray-900); }
.community-request-meta { display:flex; flex-wrap:wrap; gap:.25rem .5rem; margin-top:.4rem; color:var(--gray-500); font-size:.61rem; }
.community-request-meta span { display:flex; align-items:center; gap:.15rem; }
.community-request-meta .material-symbols-outlined { font-size:.83rem; }
.community-note { margin-top:.6rem; padding:.55rem; border-radius:var(--radius-md); background:var(--gray-50); color:var(--gray-600); font-size:.65rem; line-height:1.45; }
.community-offer { margin-top:.6rem; padding:.6rem; border-radius:var(--radius-md); background:var(--primary-light); color:var(--gray-700); }
.community-offer strong { font-size:.68rem; }
.community-offer p { margin-top:.15rem; color:var(--gray-500); font-size:.61rem; }
.community-modal-backdrop { position:fixed; inset:0; z-index:200; background:rgba(30,45,47,.55); display:flex; align-items:end; justify-content:center; }
.community-modal { width:100%; max-width:390px; max-height:85dvh; overflow:auto; background:var(--gray-50); border-radius:var(--radius-2xl) var(--radius-2xl) 0 0; padding:1rem 1rem calc(1rem + env(safe-area-inset-bottom)); }
.community-modal-handle { width:2.5rem; height:.25rem; background:var(--gray-300); border-radius:99px; margin:0 auto 1rem; }
.community-poster-maker { margin-top:1rem; padding:.75rem; border:1px solid var(--gray-200); border-radius:var(--radius-xl); background:#fff; }
.community-poster-maker-head { display:flex; align-items:start; justify-content:space-between; gap:.5rem; margin-bottom:.65rem; }
.community-poster-maker h3 { font-size:.82rem; color:var(--gray-900); }
.community-poster-maker p { margin-top:.12rem; color:var(--gray-500); font-size:.62rem; line-height:1.4; }
.community-poster-download { flex:none; color:var(--accent-dark); font-size:.64rem; font-weight:800; white-space:nowrap; }
.community-poster-canvas { display:block; width:100%; aspect-ratio:1 / 1; height:auto; border-radius:var(--radius-lg); background:var(--primary); box-shadow:0 8px 16px rgba(30,45,47,.12); }
.community-request-with-poster { display:flex; gap:.65rem; align-items:flex-start; }
.community-request-poster { width:4rem; height:4rem; aspect-ratio:1 / 1; flex:none; border-radius:var(--radius-md); object-fit:cover; background:var(--primary); }

.community-empty { border:1px dashed var(--gray-300); background:#fff; border-radius:var(--radius-xl); padding:1.5rem 1rem; text-align:center; }
.community-empty .material-symbols-outlined { color:var(--accent-dark); font-size:2rem; }
.community-empty h2 { margin-top:.35rem; font-size:1rem; color:var(--gray-900); }
.community-empty p { font-size:.72rem; color:var(--gray-500); line-height:1.5; margin:.35rem auto .75rem; max-width:16rem; }
.community-splash-mark { position:absolute; inset:0; background:radial-gradient(circle at 74% 32%,rgba(255,255,255,.18) 0 2.5rem,transparent 2.6rem),radial-gradient(circle at 24% 62%,rgba(44,62,64,.12) 0 5rem,transparent 5.1rem); pointer-events:none; }
.community-splash-board { position:absolute; top:11rem; left:50%; transform:translateX(-50%) rotate(-8deg); width:13rem; height:8.5rem; border:4px solid rgba(44,62,64,.2); border-radius:1.5rem; background:linear-gradient(45deg,transparent 47%,rgba(44,62,64,.1) 48% 52%,transparent 53%),linear-gradient(-45deg,transparent 47%,rgba(44,62,64,.1) 48% 52%,transparent 53%); }
.community-splash-piece { position:absolute; top:12.2rem; left:50%; transform:translateX(-50%); font-size:6rem; color:var(--primary); opacity:.78; }
.splash-screen { width:100%; min-height:100dvh; display:flex; flex-direction:column; position:relative; overflow:hidden; }
.splash-screen .top-section { display:flex; flex-direction:column; align-items:center; padding:4.5rem 1.75rem 2rem; gap:1.25rem; position:relative; z-index:1; }
.splash-screen .logo-row { display:flex; align-items:center; gap:.75rem; }
.splash-screen .logo-compass { width:3.25rem; height:3.25rem; object-fit:contain; }
.splash-screen .logo-name { margin:0; font-size:2.25rem; font-weight:900; color:var(--primary); letter-spacing:2px; }
.splash-screen .tagline { font-size:1.05rem; font-weight:700; color:var(--primary); text-align:center; line-height:1.6; }
.splash-screen .bottom-section { position:absolute; bottom:0; left:0; right:0; display:flex; flex-direction:column; gap:1rem; padding:1.25rem 1.5rem 2rem; z-index:2; }
.splash-screen .stats-wrap { display:flex; flex-direction:column; gap:.5rem; }
.splash-screen .stats-note { display:flex; align-items:center; justify-content:center; gap:.375rem; font-size:.68rem; font-weight:700; color:var(--primary); }
.splash-screen .stats-note .badge { background:var(--primary); color:#fff; }
.splash-screen .stats-bar { display:flex; align-items:center; background:rgba(255,255,255,.92); border:1px solid rgba(44,62,64,.12); border-radius:1rem; padding:1rem .75rem; box-shadow:0 8px 32px rgba(44,62,64,.08); }
.splash-screen .stat { flex:1; display:flex; align-items:baseline; justify-content:center; gap:2px; }
.splash-screen .stat-val { font-size:1.15rem; font-weight:900; color:var(--primary); }
.splash-screen .stat-lbl { font-size:.68rem; font-weight:700; color:var(--gray-700); }
.splash-screen .stat-divider { width:1px; height:1.2rem; background:rgba(44,62,64,.12); flex:none; }
.splash-screen .btns { display:flex; flex-direction:column; gap:.7rem; }
.splash-screen .trust { display:flex; align-items:center; justify-content:center; gap:.5rem; font-size:.68rem; color:var(--primary); font-weight:700; }
.pass-card { background:var(--gray-900); color:#fff; border-radius:var(--radius-2xl); padding:1.125rem; position:relative; overflow:hidden; }
.pass-card::before { content:''; position:absolute; width:13rem; height:13rem; border-radius:50%; background:rgba(254,188,23,.16); top:-6rem; right:-4rem; }
.pass-card > * { position:relative; z-index:1; }
.pass-qr { width:10rem; height:10rem; margin:.875rem auto 0; background:#fff; border-radius:var(--radius-lg); display:flex; align-items:center; justify-content:center; padding:6px; }
.profile-card-dark { background:linear-gradient(135deg,var(--primary),var(--primary-dark)); border-radius:var(--radius-2xl); padding:1.25rem; box-shadow:0 10px 25px rgba(44,62,64,.15); }
.profile-stats-grid { display:grid; gap:4px; border-top:1px solid rgba(255,255,255,.1); padding-top:.875rem; }
.profile-stat-box { text-align:center; display:flex; flex-direction:column; gap:2px; }
.ps-val { font-size:.95rem; font-weight:800; color:#fff; }
.ps-lbl { font-size:.58rem; color:rgba(255,255,255,.6); text-transform:uppercase; letter-spacing:.02em; }
.menu-item { width:100%; display:flex; align-items:center; gap:.65rem; padding:.8rem; border-bottom:1px solid var(--gray-200); background:#fff; text-align:left; color:var(--gray-700); }
.menu-item:last-child { border-bottom:0; }
.menu-item .material-symbols-outlined:last-child { margin-left:auto; color:var(--gray-500); }
.search-bar { display:flex; align-items:center; gap:.5rem; background:#fff; border:1px solid var(--gray-200); border-radius:var(--radius-lg); padding:.65rem .75rem; }
.search-bar .material-symbols-outlined { color:var(--gray-500); font-size:1.15rem; }
.search-bar input { flex:1; min-width:0; border:0; outline:0; color:var(--gray-800); background:transparent; font-size:.78rem; }
@media (min-width:481px) {
  #screen-container { width:min(var(--community-frame-w), calc(100vw - 2rem)); }
  .bottom-nav, .community-sticky-cta { max-width:min(var(--community-frame-w), calc(100vw - 2rem)); }
  .community-sticky-cta { border-radius:0 0 26px 26px; }
}


/* Mobile polish: hierarchy, touch targets, and partner/payment trust surfaces. */
.community-quick-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; margin:1rem 0 .2rem; }
.community-quick-action { min-height:3.5rem; display:flex; align-items:center; gap:.55rem; width:100%; padding:.7rem; border:1px solid var(--gray-200); border-radius:var(--radius-lg); background:#fff; color:var(--gray-800); text-align:left; box-shadow:var(--shadow-sm); }
.community-quick-action:focus-visible, .community-event-row:focus-visible, .community-mini-card:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.community-quick-action > .material-symbols-outlined { color:var(--accent-dark); font-size:1.25rem; }
.community-quick-action strong, .community-quick-action small { display:block; }
.community-quick-action strong { font-size:.72rem; line-height:1.2; }
.community-quick-action small { margin-top:.18rem; color:var(--gray-500); font-size:.6rem; line-height:1.2; }

.community-attendance { display:flex; align-items:center; justify-content:space-between; gap:.7rem; margin-top:.85rem; padding:.75rem; border:1px solid var(--gray-200); border-radius:var(--radius-lg); background:#fff; }
.community-attendance strong, .community-attendance span { display:block; }
.community-attendance strong { color:var(--gray-800); font-size:.72rem; }
.community-attendance div > span { margin-top:.18rem; color:var(--gray-500); font-size:.62rem; }
.community-attendance > .material-symbols-outlined { flex:none; color:var(--accent-dark); font-size:1.25rem; }

.community-modal-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:.75rem; }
.community-modal-heading h2 { color:var(--gray-900); font-size:1.05rem; line-height:1.2; }
.community-modal-copy { margin-top:.7rem; color:var(--gray-600); font-size:.74rem; line-height:1.5; }
.community-filter-sheet { display:grid; gap:.5rem; margin-top:.8rem; }
.community-filter-option { display:flex; align-items:center; gap:.6rem; width:100%; padding:.75rem; border:1px solid var(--gray-200); border-radius:var(--radius-lg); background:#fff; color:var(--gray-800); text-align:left; }
.community-filter-option > span:first-child { display:grid; place-items:center; width:2rem; height:2rem; flex:none; border-radius:.6rem; background:var(--primary-light); color:var(--accent-dark); }
.community-filter-option > span:nth-child(2) { flex:1; }
.community-filter-option strong, .community-filter-option small { display:block; }
.community-filter-option strong { font-size:.72rem; }
.community-filter-option small { margin-top:.15rem; color:var(--gray-500); font-size:.61rem; }
.community-filter-option > .material-symbols-outlined:last-child { color:var(--gray-400); }
.community-notification-list { display:grid; gap:.55rem; margin-top:.8rem; }
.community-notification { display:flex; align-items:flex-start; gap:.6rem; padding:.7rem; border:1px solid var(--gray-200); border-radius:var(--radius-lg); background:#fff; }
.community-notification-icon { display:grid; place-items:center; width:2rem; height:2rem; flex:none; border-radius:.6rem; background:var(--primary-light); color:var(--accent-dark); }
.community-notification-icon.coral { background:var(--danger-light); color:var(--danger-text); }
.community-notification strong { display:block; color:var(--gray-800); font-size:.72rem; }
.community-notification p { margin-top:.18rem; color:var(--gray-600); font-size:.64rem; line-height:1.4; }
.community-notification small { display:block; margin-top:.25rem; color:var(--gray-500); font-size:.58rem; }
.community-community-hero { display:flex; align-items:center; gap:.65rem; margin-top:.8rem; padding:.75rem; border-radius:var(--radius-lg); background:var(--primary); color:#fff; }
.community-community-hero strong { display:block; font-size:.75rem; }
.community-community-hero p { margin-top:.15rem; color:rgba(255,255,255,.7); font-size:.62rem; }
.community-community-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:.4rem; margin-top:.7rem; }
.community-community-stats span { display:flex; flex-direction:column; gap:.15rem; padding:.6rem .4rem; border-radius:var(--radius-md); background:#fff; text-align:center; }
.community-community-stats strong { color:var(--accent-dark); font-size:.9rem; }
.community-community-stats small { color:var(--gray-500); font-size:.56rem; }

.community-payment-card { transition:border-color .18s ease, box-shadow .18s ease; }
.community-payment-card:focus-within { border-color:var(--primary); box-shadow:0 0 0 3px rgba(44,62,64,.1); }
.community-payment-card input, .community-payment-method input { accent-color:var(--primary); flex:none; }
.community-payment-card .payment-brand { width:2.15rem; height:2.15rem; border-radius:.6rem; background:var(--primary); color:var(--accent); font-size:.62rem; }
.community-payment-card .payment-brand.venue { font-size:.45rem; letter-spacing:.01em; }
.community-venue-payment-options { margin-top:.55rem; padding:.75rem; border:1px solid var(--gray-200); border-radius:var(--radius-lg); background:var(--gray-50); }
.community-payment-helper { color:var(--gray-600); font-size:.64rem; line-height:1.4; }
.community-payment-methods { display:grid; gap:.4rem; margin-top:.55rem; }
.community-payment-method { display:flex; align-items:center; gap:.5rem; padding:.55rem; border:1px solid var(--gray-200); border-radius:var(--radius-md); background:#fff; }
.community-payment-method.active { border-color:var(--accent-dark); background:var(--primary-light); }
.community-payment-method span { min-width:0; }
.community-payment-method strong, .community-payment-method small { display:block; }
.community-payment-method strong { color:var(--gray-800); font-size:.65rem; }
.community-payment-method small { margin-top:.1rem; color:var(--gray-500); font-size:.57rem; }
.community-bjb-card { display:flex; align-items:center; gap:.65rem; margin-top:.8rem; padding:.75rem; border-radius:var(--radius-lg); background:var(--primary); color:#fff; }
.community-bjb-card strong { display:block; font-size:.76rem; }
.community-bjb-card p { margin-top:.15rem; color:rgba(255,255,255,.7); font-size:.62rem; }
.community-va-box { display:grid; grid-template-columns:1fr auto; gap:.45rem .6rem; align-items:center; margin-top:.7rem; padding:.75rem; border:1px dashed var(--gray-300); border-radius:var(--radius-lg); background:#fff; }
.community-va-box small { grid-column:1 / -1; color:var(--gray-500); font-size:.6rem; }
.community-va-box strong { color:var(--gray-900); font-family:monospace; font-size:.84rem; letter-spacing:.04em; }
.community-va-box .btn { min-height:2.25rem; }
.community-payment-summary { display:flex; justify-content:space-between; gap:.5rem; margin-top:.7rem; padding:.65rem 0; border-top:1px solid var(--gray-200); border-bottom:1px solid var(--gray-200); color:var(--gray-700); font-size:.72rem; }
.community-payment-summary strong { color:var(--accent-dark); }
.community-payment-status-card { display:flex; align-items:center; gap:.6rem; margin-top:.75rem; padding:.7rem .75rem; border-radius:var(--radius-lg); background:var(--success-light); color:#157f3c; }
.community-payment-status-card.venue { background:var(--warning-light); color:var(--accent-dark); }
.community-payment-status-card > .material-symbols-outlined { font-size:1.15rem; }
.community-payment-status-card strong, .community-payment-status-card small { display:block; }
.community-payment-status-card strong { font-size:.7rem; }
.community-payment-status-card small { margin-top:.15rem; font-size:.6rem; opacity:.82; }

.community-ecosystem-kicker { color:var(--gray-500); font-size:.58rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.community-ecosystem-card { overflow:hidden; border:1px solid var(--gray-200); border-radius:var(--radius-xl); background:#fff; box-shadow:var(--shadow-sm); }
.community-ecosystem-row { display:flex; align-items:center; gap:.65rem; padding:.75rem; }
.community-ecosystem-row + .community-ecosystem-row { border-top:1px solid var(--gray-200); }
.community-ecosystem-row > span:nth-child(2) { flex:1; min-width:0; }
.community-ecosystem-row strong, .community-ecosystem-row small { display:block; }
.community-ecosystem-row strong { color:var(--gray-800); font-size:.7rem; line-height:1.3; }
.community-ecosystem-row small { margin-top:.18rem; color:var(--gray-500); font-size:.6rem; line-height:1.35; }
.community-ecosystem-row > .material-symbols-outlined:last-child { color:var(--gray-400); font-size:1.05rem; }
.community-partner-mark { display:grid; place-items:center; width:2.15rem; height:2.15rem; flex:none; border-radius:.65rem; font-size:.68rem; font-weight:900; }
.community-partner-mark.bjb { background:var(--primary); color:var(--accent); }
.community-partner-mark.injourney { background:var(--accent); color:var(--primary); }
.community-ecosystem-note { margin-top:.45rem; color:var(--gray-500); font-size:.59rem; line-height:1.4; }


/* Arulin mobile: text-first controls and restrained partner wordmarks. */
.community-screen .material-symbols-outlined { display:none !important; }
.community-nav-create-icon:empty { display:none; }
.community-text-action { min-height:2.25rem; padding:.45rem .65rem; border:1px solid var(--gray-200); border-radius:var(--radius-full); background:#fff; color:var(--primary); font-size:.64rem; font-weight:800; }
.community-text-action:focus-visible, .community-quick-action:focus-visible, .community-role-card:focus-visible, .community-request-actions button:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.community-role-code { display:grid; place-items:center; width:2rem; height:2rem; flex:none; border-radius:.6rem; background:var(--primary); color:var(--accent); font-size:.75rem; font-weight:900; }
.community-role-state { margin-left:auto; color:var(--gray-500); font-size:.6rem; font-weight:800; }
.community-request-actions { display:flex; align-items:center; gap:.5rem; margin-top:.65rem; }
.community-request-actions .btn { flex:1; min-height:2.5rem; }
.community-published-note { color:#157f3c; font-size:.65rem; font-weight:800; }
.community-request-published { border-color:#9bd7b0; }

.payment-brand { display:grid; place-items:center; width:2.25rem; height:2.25rem; flex:none; border-radius:.62rem; font-family:var(--font); font-size:.62rem; font-weight:900; letter-spacing:-.04em; }
.payment-brand-bjb { background:#0877b9; color:#ffd33d; text-transform:lowercase; }
.payment-brand-qris { background:linear-gradient(135deg,#e83362,#f58d42); color:#fff; font-size:.52rem; letter-spacing:.02em; }
.payment-brand-gopay { background:#111820; color:#fff; font-size:.53rem; letter-spacing:-.06em; }
.payment-brand-ovo { background:#4c2a82; color:#fff; font-size:.6rem; }
.payment-brand-cash { background:#e7f4e9; color:#19753e; font-size:.5rem; letter-spacing:.01em; }
.community-payment-method .payment-brand { width:2rem; height:2rem; border-radius:.52rem; }
.community-payment-card .payment-brand.venue { background:var(--gray-800); color:#fff; font-size:.9rem; }

.community-hero-card.no-poster::before, .community-detail-hero.no-poster::before { content:''; width:12rem; height:12rem; border-radius:50%; background:rgba(254,188,23,.16); }
.community-mini-cover::after, .community-event-cover::after { content:''; width:3.5rem; height:3.5rem; border-radius:50%; background:rgba(44,62,64,.16); right:.35rem; top:.6rem; }
.community-splash-piece { display:none; }
.community-poster-canvas { aspect-ratio:1 / 1; object-fit:contain; }

.community-payment-method .payment-brand + .payment-brand { margin-left:-.42rem; }

/* Final text-first mobile pass. */
.community-screen .back-btn { width:auto; min-height:2.25rem; padding:.45rem .65rem; border:1px solid var(--gray-200); border-radius:999px; background:#fff; color:var(--primary); font-size:.64rem; font-weight:800; white-space:nowrap; }
.community-modal .community-text-action { min-height:2.25rem; padding:.45rem .65rem; }
.community-round-action { width:auto; min-width:4.15rem; height:2.55rem; padding:0 .8rem; border-radius:999px; font-size:.62rem; font-weight:800; }
.community-round-action.primary { width:auto; min-width:5.15rem; height:2.85rem; }
.community-nav-create { margin-top:0; padding-top:.65rem; }
.community-filter-option > span:first-child:empty, .community-notification-icon:empty { display:none; }
.community-filter-letter { display:grid; place-items:center; width:2rem; height:2rem; flex:none; border-radius:.6rem; background:var(--primary-light); color:var(--accent-dark); font-size:.48rem; font-weight:900; letter-spacing:.02em; }
.community-screen .community-info > .material-symbols-outlined, .community-screen .community-package-list .material-symbols-outlined, .community-screen .community-payment-status-card > .material-symbols-outlined { display:none !important; }
.community-screen .community-quick-action > .material-symbols-outlined, .community-screen .community-attendance > .material-symbols-outlined { display:none !important; }
.community-screen .community-text-action:focus-visible, .community-screen .community-round-action:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }

/* Home deck icon controls. */
.community-swipe-actions { gap:.8rem; padding:1rem 0 .35rem; }
.community-round-action { width:2.9rem; min-width:2.9rem; height:2.9rem; padding:0; border-radius:50%; font-size:0; }
.community-round-action.primary { width:3.55rem; min-width:3.55rem; height:3.55rem; }
.community-deck-icon { width:1.15rem; height:1.15rem; display:block; }
.community-round-action.primary .community-deck-icon { width:1.35rem; height:1.35rem; }
.community-save .community-deck-icon { width:1.05rem; height:1.05rem; }

/* Bottom nav icon restoration. */
.community-nav-icon { width:1.3rem; height:1.3rem; display:block; fill:none; stroke:currentColor; }
.bottom-nav-item.active .community-nav-icon { stroke-width:1.9; }
.community-nav-create { margin-top:-1.6rem; gap:.18rem; padding-top:0; }
.community-nav-create-icon .community-nav-icon { width:1.35rem; height:1.35rem; }
.community-nav-create-icon { display:grid; place-items:center; }


/* Connected line icons. */
.community-icon { display:inline-block; flex:none; vertical-align:middle; }

/* Fix sibling bottom-nav scope. */
#community-root > .bottom-nav { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.22fr) minmax(0,.9fr) minmax(0,1fr) minmax(0,1fr); }
#community-root > .bottom-nav .bottom-nav-item { min-width:0; padding-left:0; padding-right:0; white-space:nowrap; font-size:.66rem; letter-spacing:-.015em; }
#community-root > .bottom-nav .bottom-nav-item > span:last-child { display:block; white-space:nowrap; }

/* Public agenda and local impact layer. */
.community-section-caption { margin-top:.18rem; color:var(--gray-500); font-size:.62rem; line-height:1.35; }
.community-public-calendar { display:grid; gap:.55rem; }
.community-public-event { width:100%; display:grid; grid-template-columns:3.7rem minmax(0,1fr) auto; gap:.65rem; align-items:center; padding:.7rem; border:1px solid var(--gray-200); border-radius:var(--radius-xl); background:#fff; color:var(--gray-900); text-align:left; box-shadow:var(--shadow-sm); }
.community-public-event:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.community-public-event-date { min-height:3.7rem; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:.12rem; border-radius:var(--radius-md); background:var(--primary-light); color:var(--primary); text-align:center; }
.community-public-event-date .community-icon { width:1rem; height:1rem; color:var(--accent-dark); }
.community-public-event-date strong { font-size:.68rem; line-height:1.05; }
.community-public-event-date small { max-width:3.2rem; overflow:hidden; color:var(--gray-500); font-size:.5rem; line-height:1.05; white-space:nowrap; text-overflow:ellipsis; }
.community-public-event-main { min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:.14rem; }
.community-public-badge { color:var(--accent-dark); font-size:.52rem; font-weight:900; letter-spacing:.045em; text-transform:uppercase; }
.community-public-event-main strong { max-width:100%; overflow:hidden; font-size:.78rem; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
.community-public-event-main small { display:flex; align-items:center; gap:.2rem; max-width:100%; overflow:hidden; color:var(--gray-500); font-size:.59rem; white-space:nowrap; text-overflow:ellipsis; }
.community-public-event-main small .community-icon { width:.76rem; height:.76rem; color:var(--gray-400); }
.community-public-event-main em { color:#157f3c; font-size:.61rem; font-style:normal; font-weight:800; }
.community-public-event > .community-icon { width:1rem; height:1rem; color:var(--gray-400); }
.community-public-calendar-link { display:inline-flex; align-items:center; gap:.25rem; margin-top:.6rem; }
.community-public-calendar-link .community-icon { width:.85rem; height:.85rem; }
.community-public-inline { flex-basis:100%; order:-1; color:#157f3c !important; font-size:.57rem !important; font-weight:800; }
.community-impact-card { padding:.9rem; border-radius:var(--radius-xl); background:linear-gradient(145deg,var(--primary) 0%,#203638 100%); color:#fff; box-shadow:var(--shadow-md); }
.community-impact-head { display:flex; align-items:center; gap:.65rem; }
.community-impact-head .community-partner-mark { background:var(--accent); color:var(--primary); }
.community-impact-head > span:last-child { min-width:0; }
.community-impact-kicker { display:block; color:rgba(255,255,255,.62); font-size:.54rem; font-weight:900; letter-spacing:.06em; }
.community-impact-card h2 { margin-top:.15rem; color:#fff; font-size:1.05rem; line-height:1.15; }
.community-impact-card > p { margin-top:.7rem; color:rgba(255,255,255,.78); font-size:.67rem; line-height:1.5; }
.community-impact-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:.35rem; margin-top:.8rem; }
.community-impact-metrics span { display:flex; flex-direction:column; gap:.15rem; padding:.5rem .35rem; border:1px solid rgba(255,255,255,.14); border-radius:var(--radius-md); background:rgba(255,255,255,.07); text-align:center; }
.community-impact-metrics strong { color:var(--accent); font-size:1rem; line-height:1; }
.community-impact-metrics small { color:rgba(255,255,255,.68); font-size:.52rem; line-height:1.15; }
.community-direct-flow { display:grid; grid-template-columns:1fr auto 1fr auto 1.35fr; align-items:center; gap:.25rem; margin-top:.75rem; padding:.5rem .55rem; border:1px solid rgba(255,255,255,.14); border-radius:var(--radius-md); background:rgba(255,255,255,.06); text-align:center; }
.community-direct-flow span { color:#fff; font-size:.58rem; font-weight:800; line-height:1.1; }
.community-direct-flow b { color:var(--accent); font-size:.75rem; }
.community-impact-note { color:rgba(255,255,255,.58) !important; font-size:.57rem !important; line-height:1.4 !important; }
@media (max-width:350px) { .community-public-event { grid-template-columns:3.3rem minmax(0,1fr) auto; gap:.45rem; padding:.6rem; } .community-direct-flow span { font-size:.52rem; } }
.community-partner-mark.pemda { background:var(--primary-light); color:var(--primary); font-size:.52rem; letter-spacing:.02em; }
.community-ecosystem-row > .community-icon:last-child { width:1rem; height:1rem; color:var(--gray-400); }
/* Create action: keep the hit area inside the fixed nav while lifting only the visual mark. */
.community-nav-create { margin-top:0; align-self:stretch; justify-content:center; padding:.3rem 0 0; position:relative; z-index:101; cursor:pointer; pointer-events:auto; }
.community-nav-create-icon { transform:translateY(-.55rem); pointer-events:none; }
.community-nav-create-icon * { pointer-events:none; }
.community-nav-create > span:last-child { transform:translateY(-.55rem); }
/* =========================================================
   Navy community refresh - one human-first visual language
   ========================================================= */
:root {
  --community-navy: #0B1F3A;
  --community-navy-2: #102E54;
  --community-blue: #2B66A2;
  --community-ink: #172A43;
}

/* Seluruh layar tetap dapat digulir sampai sesudah navigasi tetap. */
.community-screen {
  padding-bottom: calc(var(--bottom-nav-h) + 1.25rem);
  color: var(--gray-800);
  font-family: var(--font);
  font-size: var(--text-sm);
  line-height: 1.45;
  overflow-y: auto;
}
.community-screen > .community-section:last-child { padding-bottom: var(--space-4); }

/* Skala tipografi komunitas: label 12px, isi 14px, judul 16/24px. */
.community-kicker,
.community-event-type,
.community-public-badge,
.community-impact-kicker,
.community-ecosystem-kicker,
.community-section-caption,
.community-screen small,
.community-screen .community-event-meta,
.community-screen .community-request-meta,
.community-screen .community-info small,
.community-screen .community-mini-date,
.community-screen .community-public-inline,
.community-screen .community-impact-note {
  font-size: var(--text-xs) !important;
}
.community-sub,
.community-screen .community-event-body h2,
.community-screen .community-mini-card h3,
.community-screen .community-request h3,
.community-screen .community-role-card strong,
.community-screen .community-payment-method strong,
.community-screen .community-ecosystem-row strong,
.community-screen .community-notification strong,
.community-screen .community-host-card strong {
  font-size: var(--text-sm);
}
.community-title { font-size: var(--text-2xl); line-height: 1.16; letter-spacing: -.025em; }
.community-card-title { font-size: var(--text-2xl); line-height: 1.1; }
.community-section-title, .community-detail-section h2 { font-size: var(--text-base); }
.community-screen .community-note,
.community-screen .community-payment-helper,
.community-screen .community-detail-section > p,
.community-screen .community-modal-copy { font-size: var(--text-sm); }

/* Poster sesi tidak lagi dipotong. Informasi sesi berada di panel sendiri. */
.community-hero-card.has-poster {
  display: grid;
  grid-template-rows: minmax(15.5rem, 1fr) auto;
  min-height: 0;
  background: var(--primary-light);
}
.community-hero-card.has-poster::before { display: none; }
.community-hero-card.has-poster > img {
  position: relative;
  grid-row: 1;
  width: 100%;
  height: 100%;
  padding: var(--space-3);
  object-fit: contain;
  object-position: center;
  background: rgba(11,31,58,.10);
}
.community-hero-card.has-poster .community-card-head { top: 1rem; }
.community-hero-card.has-poster .community-card-head.is-poster { justify-content: flex-end; }
.community-hero-card.has-poster .community-card-foot {
  position: relative;
  grid-row: 2;
  right: auto;
  bottom: auto;
  left: auto;
  padding: .875rem 1rem 1rem;
  background: linear-gradient(135deg, rgba(11,31,58,.86), rgba(31,73,119,.72));
  border-top: 1px solid rgba(234,240,248,.28);
  backdrop-filter: blur(12px);
}
.community-detail-hero.has-poster { background: rgba(11,31,58,.10); }
.community-detail-hero.has-poster img {
  object-fit: contain;
  object-position: center;
  background: rgba(11,31,58,.10);
}
.community-detail-hero.has-poster::after {
  background: linear-gradient(to top, rgba(6,19,38,.82) 0%, rgba(11,31,58,.34) 34%, rgba(11,31,58,.04) 74%);
}
.community-mini-cover img,
.community-event-cover img,
.community-request-poster { object-fit: contain !important; background: var(--primary-light); }
.community-poster-canvas { background: rgba(11,31,58,.10); object-fit: contain; }

/* Avatar demo memakai alfabet dan empat shade palette Arulin. */
.community-avatar {
  border-radius: .72rem;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
}
.community-avatar.avatar-tone-ink { background: var(--community-navy); color: #fff; }
.community-avatar.avatar-tone-blue { background: var(--community-blue); color: #fff; }
.community-avatar.avatar-tone-gold { background: var(--accent); color: var(--community-navy); }
.community-avatar.avatar-tone-sky { background: #D9E8FA; color: var(--community-navy); }
.community-avatar--compact { width: 1.7rem; height: 1.7rem; font-size: var(--text-xs); }
.community-avatar--profile { width: 3.25rem; height: 3.25rem; border-radius: 1rem; font-size: var(--text-lg); }
.community-avatar--setup { width: 5rem; height: 5rem; border-radius: 50%; font-size: var(--text-2xl); }

/* Status baru tetap terbaca tanpa menembus batas kartu. */
.community-notification-icon.notification-new {
  width: auto;
  min-width: 2.65rem;
  padding: 0 .35rem;
  color: var(--accent-dark);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .04em;
}

/* Logo partner asli, dengan wadah netral dan rasio yang tidak terdistorsi. */
.community-partner-mark,
.payment-brand { overflow: hidden; font-family: var(--font); }
.community-partner-mark img,
.payment-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.community-partner-mark.bjb,
.payment-brand-bjb { background: #0877B9; padding: .3rem; }
.community-partner-mark.injourney { width: 4.15rem; background: #fff; padding: .35rem; }
.community-partner-mark.injourney img { object-position: center; }
.payment-brand-bjb { padding: .34rem; }
.payment-brand-bjb img { object-position: center; }

/* Kartu Pemda dibuat sebagai panel layanan publik yang tenang, bukan dekorasi generatif. */
.community-impact-card {
  background: var(--community-navy);
  border: 1px solid #294E7E;
  box-shadow: none;
}
.community-impact-head .community-partner-mark { background: #fff; color: var(--community-navy); }
.community-impact-head .community-partner-mark.pemda { font-size: .58rem; }
.community-impact-metrics span,
.community-direct-flow {
  background: #102E54;
  border-color: rgba(234,240,248,.24);
}
.community-impact-metrics strong,
.community-direct-flow b { color: var(--accent); }
.community-impact-card > p { color: rgba(255,255,255,.84); }
.community-impact-note { color: rgba(234,240,248,.72) !important; }

/* Hilangkan warna slate lama pada elemen komunitas yang masih memakai hard-code. */
.community-hero-card.no-poster,
.community-community-hero,
.community-package,
.profile-card-dark,
.community-bjb-card { background: var(--primary); }
.community-hero-card.no-poster::before,
.community-detail-hero.no-poster::before { background: rgba(246,196,69,.18); }
.community-live::before { background: var(--accent); }
/* Kalender agenda publik: bentuk binder yang ringkas dan tetap mudah dibaca. */
.community-calendar-card {
  position: relative;
  overflow: visible;
  padding: 1rem;
  background: var(--community-navy);
}
.community-calendar-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
}
.community-calendar-card-head h2 { margin-top: .12rem; color: #fff; font-size: var(--text-xl); line-height: 1.1; }
.community-calendar-card-head .community-partner-mark { width: 2.5rem; height: 2.5rem; border-radius: .75rem; }
.community-calendar-count { color: var(--accent); font-size: var(--text-xs); font-weight: 800; white-space: nowrap; }
.community-calendar-binding { display: flex; gap: 1.15rem; margin: .85rem 1rem -.38rem; position: relative; z-index: 2; }
.community-calendar-binding span { width: .72rem; height: .72rem; border: 2px solid var(--accent); border-radius: 50%; background: var(--community-navy); }
.community-calendar-sheet { padding: 1rem .7rem .65rem; border-radius: var(--radius-lg); background: #fff; color: var(--community-ink); box-shadow: 0 6px 0 rgba(6,19,38,.18); }
.community-calendar-month { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: 0 .18rem .65rem; border-bottom: 1px solid var(--gray-200); }
.community-calendar-month span { font-size: var(--text-sm); font-weight: 900; text-transform: capitalize; }
.community-calendar-month small { color: var(--gray-500); font-size: var(--text-xs); font-weight: 700; }
.community-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .28rem; margin-top: .55rem; }
.community-calendar-weekdays { margin-top: .7rem; }
.community-calendar-weekdays span { color: var(--gray-500); font-size: var(--text-xs); font-weight: 800; text-align: center; text-transform: uppercase; }
.community-calendar-day { position: relative; display: grid; place-items: center; min-height: 2rem; padding: 0; border: 0; border-radius: .55rem; background: transparent; color: var(--gray-700); font: 700 var(--text-xs)/1 var(--font); }
.community-calendar-day.is-empty { visibility: hidden; }
.community-calendar-day.is-event { color: var(--community-navy); background: var(--primary-light); cursor: pointer; outline: 1px solid var(--info-border); }
.community-calendar-day.is-event::after { content: ''; position: absolute; bottom: .22rem; width: .22rem; height: .22rem; border-radius: 50%; background: var(--accent); }
.community-calendar-day.is-featured { background: var(--accent); color: var(--community-navy); outline-color: var(--accent); }
.community-calendar-day.is-featured::after { background: var(--community-navy); }
.community-calendar-day.is-event:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.community-calendar-legend { display: flex; align-items: center; gap: .35rem; margin: .65rem .18rem 0; color: var(--gray-500); font-size: var(--text-xs); }
.community-calendar-legend span { width: .42rem; height: .42rem; border-radius: 50%; background: var(--accent); }
.community-calendar-agendas { display: grid; gap: .45rem; margin-top: 1rem; }
.community-calendar-agenda { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; align-items: center; gap: .55rem; width: 100%; padding: .5rem; border: 1px solid rgba(234,240,248,.2); border-radius: var(--radius-md); background: #102E54; color: #fff; text-align: left; }
.community-calendar-agenda:hover { background: #173F70; }
.community-calendar-agenda:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.community-calendar-agenda-date { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 2.4rem; border-radius: .5rem; background: #fff; color: var(--community-navy); }
.community-calendar-agenda-date strong { font-size: var(--text-sm); line-height: 1; }
.community-calendar-agenda-date small { margin-top: .12rem; color: var(--gray-600); font-size: var(--text-xs) !important; font-weight: 800; text-transform: uppercase; }
.community-calendar-agenda > span:nth-child(2) { min-width: 0; }
.community-calendar-agenda > span:nth-child(2) strong,
.community-calendar-agenda > span:nth-child(2) small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-calendar-agenda > span:nth-child(2) strong { color: #fff; font-size: var(--text-xs); }
.community-calendar-agenda > span:nth-child(2) small { margin-top: .12rem; color: rgba(234,240,248,.72); font-size: var(--text-xs) !important; }
.community-calendar-agenda > .community-icon { width: .9rem; height: .9rem; color: var(--accent); }
.community-calendar-note { margin-top: .8rem !important; color: rgba(234,240,248,.76) !important; font-size: var(--text-xs) !important; line-height: 1.4 !important; }
/* Poster detail: navigasi dan judul dipisah dari artwork agar tidak menutup teks poster. */
.community-detail-hero.has-poster {
  display: grid;
  grid-template-rows: auto auto auto;
  min-height: 0;
  flex: none;
  background: var(--primary-light);
}
.community-detail-hero.has-poster::after { display: none; }
.community-detail-hero.has-poster .community-detail-top {
  position: relative;
  grid-row: 1;
  inset: auto;
  padding: .55rem 1rem;
  background: var(--primary-light);
}
.community-detail-hero.has-poster img {
  position: relative;
  grid-row: 2;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: var(--space-3);
  object-fit: contain;
  background: rgba(11,31,58,.10);
}
.community-detail-hero.has-poster .community-detail-copy {
  position: relative;
  grid-row: 3;
  inset: auto;
  padding: .9rem 1rem 1rem;
  background: linear-gradient(135deg, rgba(11,31,58,.86), rgba(31,73,119,.72));
}