*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green:#1B5E20; --green-l:#2E7D32; --leaf:#43A047; --gold:#D4AF37;
  --cream:#F1F8E9; --ink:#1c2b1e; --muted:#6b7d6e; --line:#e2ebe3; --bg:#f4f7f3;
}
body { font-family:'Inter',system-ui,-apple-system,"Segoe UI",sans-serif; background:var(--bg); color:var(--ink); min-height:100vh; display:flex; flex-direction:column; }
a { color:var(--green-l); text-decoration:none; }

/* Header */
.topbar { background:linear-gradient(120deg,#06280F,#1B5E20 60%,#2E7D32); color:var(--cream); padding:0 24px; height:64px; display:flex; align-items:center; justify-content:space-between; box-shadow:0 2px 12px rgba(0,0,0,.15); position:sticky; top:0; z-index:100; }
.topbar .brand { font-weight:700; font-size:17px; display:flex; align-items:center; gap:10px; font-family:'Poppins',sans-serif; }
.topbar .brand small { display:block; font-weight:400; font-size:11px; color:#A5D6A7; }
.topbar nav { display:flex; align-items:center; gap:16px; font-size:14px; }
.topbar nav b { color:#fff; }
.topbar nav a { color:var(--cream); border:1px solid rgba(255,255,255,.4); padding:6px 14px; border-radius:20px; font-size:13px; }
.topbar nav a:hover { background:rgba(255,255,255,.15); }

.container { flex:1; max-width:1100px; margin:0 auto; padding:24px; width:100%; }

/* Hero */
.hero { background:linear-gradient(120deg,#1B5E20,#43A047); color:var(--cream); border-radius:20px; padding:32px; margin-bottom:26px; box-shadow:0 6px 24px rgba(27,94,32,.2); }
.hero h1 { font-size:26px; font-family:'Poppins',sans-serif; margin-bottom:6px; }
.hero p { color:#d7edd8; font-size:14px; }
.hero .grp { display:inline-block; margin-top:12px; background:rgba(255,255,255,.18); padding:6px 16px; border-radius:20px; font-size:13px; font-weight:600; }

/* Section */
.sec-title { font-size:19px; font-weight:700; color:var(--green); margin:24px 0 14px; font-family:'Poppins',sans-serif; display:flex; align-items:center; gap:8px; }
.card { background:#fff; border-radius:16px; box-shadow:0 2px 10px rgba(20,50,25,.07); padding:22px; margin-bottom:22px; }

.kegiatan { margin-bottom:22px; }
.kegiatan h3 { font-size:15px; color:var(--green); margin-bottom:4px; }
.kegiatan .date { font-size:12px; color:var(--muted); margin-bottom:12px; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:14px; }
.grid .m { position:relative; border-radius:12px; overflow:hidden; cursor:pointer; height:130px; background:#e0e8e0; box-shadow:0 1px 4px rgba(0,0,0,.1); }
.grid .m img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .25s; }
.grid .m:hover img { transform:scale(1.06); }
.grid .m .play { position:absolute; inset:0; display:grid; place-items:center; font-size:38px; color:#fff; text-shadow:0 2px 8px rgba(0,0,0,.6); }
.empty { color:var(--muted); font-size:14px; padding:20px; text-align:center; }
.grid .m.sel { outline:3px solid var(--green); }
.grid .m .chk { position:absolute; top:8px; left:8px; width:20px; height:20px; z-index:3; cursor:pointer; accent-color:var(--green); }
.grid .m .dl { position:absolute; bottom:6px; right:6px; background:rgba(0,0,0,.55); color:#fff; border-radius:8px; padding:3px 7px; font-size:14px; z-index:3; cursor:pointer; }
.grid .m .dl:hover { background:var(--green); }

/* Toolbar download */
.dltoolbar { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-bottom:14px; }
.dltoolbar label { font-size:13px; display:flex; align-items:center; gap:6px; cursor:pointer; }
.dltoolbar label input { width:18px; height:18px; accent-color:var(--green); }
.dltoolbar .btn { padding:9px 16px; font-size:13px; }
.dlbar { display:none; align-items:center; gap:12px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px 16px; margin-bottom:16px; box-shadow:0 2px 8px rgba(20,50,25,.06); }
.dlbar.show { display:flex; }
.dlbar .spin { width:18px; height:18px; border:3px solid var(--line); border-top-color:var(--green); border-radius:50%; animation:spin .8s linear infinite; flex-shrink:0; }
.dlbar .track { flex:1; height:8px; background:#e2ebe3; border-radius:4px; overflow:hidden; }
.dlbar .fill { height:100%; width:0; background:linear-gradient(90deg,var(--leaf),var(--green)); transition:width .2s; }
.dlbar .txt { font-size:12px; color:var(--ink); white-space:nowrap; }
@keyframes spin { to { transform:rotate(360deg); } }

/* Rating stars */
.stars { display:inline-flex; flex-direction:row-reverse; gap:4px; }
.stars input { display:none; }
.stars label { font-size:34px; color:#ddd; cursor:pointer; transition:color .15s; }
.stars input:checked ~ label,
.stars label:hover, .stars label:hover ~ label { color:var(--gold); }
.field { margin-bottom:16px; }
.field label.lbl { display:block; font-size:13px; font-weight:600; color:var(--ink); margin-bottom:6px; }
.field input, .field select, .field textarea { width:100%; padding:11px 13px; border:1px solid var(--line); border-radius:10px; font-size:14px; font-family:inherit; }
.field input:focus, .field textarea:focus, .field select:focus { outline:none; border-color:var(--green-l); box-shadow:0 0 0 3px rgba(46,125,50,.15); }
.btn { display:inline-flex; align-items:center; gap:6px; padding:11px 22px; border-radius:12px; border:none; cursor:pointer; font-size:14px; font-weight:600; background:linear-gradient(135deg,var(--green-l),var(--green)); color:#fff; box-shadow:0 4px 12px rgba(27,94,32,.25); }
.btn:hover { filter:brightness(1.08); }
.alert { background:#e7f6ec; color:#1b7e3c; padding:12px 16px; border-radius:10px; font-size:14px; margin-bottom:16px; border:1px solid #b6e2c4; }
.guide-badge { display:flex; align-items:center; gap:12px; background:var(--cream); border-radius:12px; padding:12px 16px; margin-bottom:16px; }
.guide-badge .av { width:44px; height:44px; border-radius:50%; background:var(--green); color:#fff; display:grid; place-items:center; font-weight:700; font-size:18px; }

/* Footer */
.footer { background:#06280F; color:#A5D6A7; text-align:center; padding:20px; font-size:13px; margin-top:20px; }

/* Lightbox */
.lb { position:fixed; inset:0; background:rgba(0,0,10,.92); display:none; align-items:center; justify-content:center; z-index:3000; }
.lb.show { display:flex; }
.lb-content { max-width:92vw; max-height:88vh; }
.lb-content img, .lb-content video { max-width:92vw; max-height:88vh; border-radius:10px; display:block; }
.lb-close { position:absolute; top:16px; right:26px; font-size:42px; color:#fff; cursor:pointer; }

/* Login */
.login-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#06280F,#2E7D32 70%,#43A047); padding:20px; }
.login-box { background:#fff; padding:38px 34px; border-radius:20px; width:380px; box-shadow:0 20px 50px rgba(0,0,0,.3); }
.login-box .logo { width:60px; height:60px; border-radius:16px; display:grid; place-items:center; font-size:30px; background:linear-gradient(135deg,var(--leaf),var(--green)); margin-bottom:16px; box-shadow:0 8px 20px rgba(27,94,32,.35); }
.login-box h2 { color:var(--green); font-family:'Poppins',sans-serif; margin-bottom:4px; }
.login-box p { color:var(--muted); font-size:13px; margin-bottom:22px; }
.login-box .alert-err { background:#fdeaea; color:#a12626; border-color:#f5c2c2; }

@media (max-width:640px){ .topbar .brand small{display:none} .hero{padding:22px} }
