/* ============================================================
   ECOPOINT - gaya bersama (halaman depan, masuk, pengguna, admin)
   Warna mengikuti presentasi: hijau gelap + aksen hijau muda
   ============================================================ */
:root {
  --malam: #07170e;
  --hutan: #0b2416;
  --hutan-2: #10321f;
  --hutan-3: #174429;
  --lime: #7cb342;
  --lime-2: #9ccc65;
  --lime-pudar: rgba(124, 179, 66, .14);
  --organik: #43a047;
  --anorganik: #f2b705;
  --b3: #e04b3a;
  --biru: #2f8fd8;
  --teks: #13241a;
  --teks-2: #4f6157;
  --redup: #7d8c83;
  --garis: #e2e9e4;
  --latar: #f3f6f2;
  --kartu: #ffffff;
  --bahaya: #d64535;
  --radius: 14px;
  --bayangan: 0 1px 2px rgba(16, 40, 25, .06), 0 6px 20px rgba(16, 40, 25, .06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--teks);
  background: var(--latar);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--hutan-3); }
img, svg { display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; }
.sembunyi { display: none !important; }
.redup { color: var(--redup); font-size: .9rem; }
.kode { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; }
.angka { font-variant-numeric: tabular-nums; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .04em; text-decoration: none; color: inherit; }
.logo .daun { width: 34px; height: 34px; border-radius: 10px; background: var(--lime); display: grid; place-items: center; }
.logo .daun svg { width: 20px; height: 20px; color: var(--hutan); }
.logo b { color: var(--lime); }

/* ---------- Tombol ---------- */
.tombol {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 700; font-size: .95rem;
  background: var(--lime); color: var(--hutan); cursor: pointer; text-decoration: none;
  transition: transform .12s, background .15s, box-shadow .15s;
}
.tombol:hover { background: var(--lime-2); }
.tombol:active { transform: translateY(1px); }
.tombol:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.tombol.gelap { background: var(--hutan-3); color: #fff; }
.tombol.gelap:hover { background: var(--hutan-2); }
.tombol.garis { background: transparent; color: var(--hutan-3); box-shadow: inset 0 0 0 1.5px var(--garis); }
.tombol.garis:hover { box-shadow: inset 0 0 0 1.5px var(--lime); }
.tombol.bahaya { background: #fbe9e7; color: var(--bahaya); }
.tombol.kecil { padding: 7px 12px; font-size: .84rem; border-radius: 8px; }
.tombol.penuh { width: 100%; }
.tombol svg { width: 18px; height: 18px; }

/* ---------- Form ---------- */
label { display: block; font-size: .86rem; font-weight: 600; margin: 14px 0 6px; color: var(--teks-2); }
input, select, textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--garis); border-radius: 10px;
  font: inherit; font-size: .95rem; background: #fff; color: var(--teks);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-pudar); }
.input-mata { position: relative; }
.input-mata button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--redup); cursor: pointer; padding: 6px; }
.input-mata button svg { width: 18px; height: 18px; }
.pesan { margin-top: 10px; font-size: .9rem; min-height: 1px; }
.pesan.error { color: var(--bahaya); }
.pesan.ok { color: var(--hutan-3); }
.saklar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--garis); cursor: pointer; margin: 0; color: var(--teks); font-weight: 600; }
.saklar:last-child { border-bottom: 0; }
.saklar small { display: block; color: var(--redup); font-weight: 400; }
.saklar input { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: #cfd8d2; position: relative; cursor: pointer; flex: none; padding: 0; border: 0; transition: background .2s; }
.saklar input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.saklar input:checked { background: var(--lime); }
.saklar input:checked::after { left: 21px; }
.saklar input:focus { box-shadow: 0 0 0 4px var(--lime-pudar); }

/* ---------- Kotak kode 6 digit ---------- */
.kotak-kode { display: flex; gap: 8px; justify-content: space-between; }
.kotak-kode input {
  width: 100%; max-width: 56px; aspect-ratio: 1 / 1.15; text-align: center; font-size: 1.6rem; font-weight: 800;
  padding: 0; border-radius: 12px; font-family: ui-monospace, Consolas, monospace;
}

/* ---------- Kartu ---------- */
.kartu { background: var(--kartu); border: 1px solid var(--garis); border-radius: var(--radius); padding: 20px; box-shadow: var(--bayangan); }
.kartu > h2, .kartu > .judul-kartu { font-size: 1rem; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grid { display: grid; gap: 16px; }
.grid.dua { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.tiga { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.empat { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat .label { color: var(--redup); font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat .label svg { width: 18px; height: 18px; color: var(--lime); }
.stat .nilai { font-size: 2rem; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.stat .ket { color: var(--redup); font-size: .85rem; }

/* ---------- Badge ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--lime-pudar); color: var(--hutan-3); white-space: nowrap; }
.badge.merah { background: #fde8e5; color: var(--bahaya); }
.badge.kuning { background: #fff4d1; color: #8a6400; }
.badge.abu { background: #edf1ee; color: var(--redup); }
.badge.biru { background: #e3f0fb; color: #1d6aa5; }
.badge .titik { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Tabel ---------- */
.tabel-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--garis); vertical-align: middle; }
th { color: var(--redup); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
tbody tr:hover { background: #f8faf7; }
td.kanan, th.kanan { text-align: right; }
.plus { color: #2e7d32; font-weight: 800; }
.minus { color: var(--bahaya); font-weight: 800; }
.kosong { text-align: center; color: var(--redup); padding: 28px 10px; }

/* ---------- Ikon tong dengan level isi ---------- */
.tong-level { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.tong-level svg { width: 74px; height: 92px; }
.tong-level .nama { font-weight: 800; font-size: .92rem; }
.tong-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }

/* ---------- Grafik ---------- */
.grafik svg { width: 100%; height: auto; }
.legenda { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--teks-2); margin-top: 8px; }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 12px; height: 4px; border-radius: 2px; display: inline-block; }
.batang-jenis { display: grid; gap: 10px; }
.batang-jenis .baris { display: grid; grid-template-columns: 92px 1fr 42px; gap: 10px; align-items: center; font-size: .86rem; }
.batang-jenis .rel { height: 10px; background: #edf2ee; border-radius: 6px; overflow: hidden; }
.batang-jenis .isi { height: 100%; border-radius: 6px; }

/* ---------- Modal & toast ---------- */
.modal-latar { position: fixed; inset: 0; background: rgba(7, 23, 14, .55); display: grid; place-items: center; padding: 16px; z-index: 50; animation: muncul .15s ease; }
.modal { background: #fff; border-radius: 18px; width: min(440px, 100%); padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal h3 { font-size: 1.15rem; margin-bottom: 6px; }
.modal .aksi { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); background: var(--hutan); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .9rem; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: muncul .2s ease; max-width: calc(100% - 32px); }
.toast.error { background: var(--bahaya); }
@keyframes muncul { from { opacity: 0; transform: translateY(6px); } }
.toast { animation-name: muncul-toast; }
@keyframes muncul-toast { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ============================================================
   Tata letak aplikasi (pengguna & admin): menu samping + isi
   ============================================================ */
.aplikasi { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.menu-samping { background: var(--hutan); color: #dfe9e2; padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; }
.menu-samping .logo { color: #fff; margin: 0 8px 22px; }
.menu-samping a, .menu-samping button.item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #c5d6cb;
  text-decoration: none; font-weight: 600; font-size: .93rem; border: 0; background: none; font-family: inherit; cursor: pointer; width: 100%; text-align: left;
}
.menu-samping a svg, .menu-samping button.item svg { width: 20px; height: 20px; flex: none; }
.menu-samping a:hover, .menu-samping button.item:hover { background: var(--hutan-2); color: #fff; }
.menu-samping a.aktif { background: var(--lime); color: var(--hutan); }
.menu-samping .bawah { margin-top: auto; }
.menu-samping .jumlah { margin-left: auto; background: var(--b3); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 8px; font-weight: 800; }
.isi-utama { min-width: 0; }
.bilah-atas { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px; background: rgba(243, 246, 242, .9); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--garis); }
.bilah-atas h1 { font-size: 1.3rem; font-weight: 800; }
.bilah-atas .kanan { display: flex; align-items: center; gap: 10px; }
.konten { padding: 24px 28px 40px; display: grid; gap: 18px; max-width: 1240px; }
.logo-hp { display: none; }
.tombol-ikon { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--garis); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--teks); }
.tombol-ikon svg { width: 20px; height: 20px; }
.tombol-ikon .titik-notif { position: absolute; top: 7px; right: 8px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--b3); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.panel-notif { position: absolute; right: 0; top: 50px; width: min(360px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--garis); border-radius: 16px; box-shadow: 0 18px 50px rgba(16, 40, 25, .18); overflow: hidden; z-index: 30; }
.panel-notif .kepala { padding: 14px 16px; font-weight: 800; border-bottom: 1px solid var(--garis); }
.panel-notif .daftar { max-height: 380px; overflow-y: auto; }
.notif { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--garis); font-size: .88rem; }
.notif:last-child { border-bottom: 0; }
.notif.baru { background: #f6fbf1; }
.notif .ikon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--lime-pudar); color: var(--hutan-3); }
.notif .ikon svg { width: 18px; height: 18px; }
.notif b { display: block; }
.notif .waktu { color: var(--redup); font-size: .78rem; }
.menu-bawah { display: none; }

@media (max-width: 900px) {
  .aplikasi { grid-template-columns: 1fr; }
  .menu-samping { display: none; }
  .bilah-atas { padding: 12px 16px; background: var(--hutan); color: #fff; border: 0; }
  .bilah-atas h1 { display: none; }
  .logo-hp { display: inline-flex; color: #fff; }
  .bilah-atas .tombol-ikon { background: var(--hutan-2); border-color: var(--hutan-3); color: #fff; }
  .bilah-atas .tombol-ikon .titik-notif { border-color: var(--hutan); }
  .konten { padding: 16px 16px 96px; }
  .judul-hp { display: block !important; font-size: 1.25rem; font-weight: 800; }
  .menu-bawah {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: #fff; border-top: 1px solid var(--garis); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .menu-bawah a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; font-weight: 700; color: var(--redup); text-decoration: none; padding: 6px 0; }
  .menu-bawah a svg { width: 22px; height: 22px; }
  .menu-bawah a.aktif { color: var(--hutan-3); }
  .menu-bawah a.aktif svg { color: var(--lime); }
  .stat .nilai { font-size: 1.7rem; }
}
.judul-hp { display: none; }

/* ============================================================
   Halaman publik (depan, masuk)
   ============================================================ */
.publik { background: var(--malam); color: #e3ece6; }
.publik .wadah { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.nav-publik { position: sticky; top: 0; z-index: 30; background: rgba(7, 23, 14, .82); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(124, 179, 66, .12); }
.nav-publik .wadah { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav-publik .logo { color: #fff; }
.nav-publik nav { display: flex; align-items: center; gap: 26px; }
.nav-publik nav a { color: #b9c9bf; text-decoration: none; font-weight: 600; font-size: .92rem; }
.nav-publik nav a:hover { color: #fff; }
@media (max-width: 860px) { .nav-publik nav a:not(.tombol) { display: none; } }

.hero { position: relative; overflow: hidden; padding: 72px 0 90px; background:
  radial-gradient(1000px 500px at 85% 10%, rgba(124, 179, 66, .18), transparent 60%),
  radial-gradient(700px 400px at 0% 100%, rgba(47, 143, 216, .10), transparent 60%),
  linear-gradient(180deg, #0a2214, var(--malam)); }
.hero .wadah { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .label-atas { display: inline-flex; align-items: center; gap: 8px; color: var(--lime-2); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; color: #fff; letter-spacing: -.03em; margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p.lead { font-size: 1.12rem; color: #b9c9bf; max-width: 560px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .tombol.garis { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); }
.hero .tombol.garis:hover { box-shadow: inset 0 0 0 1.5px var(--lime); }
.angka-hero { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.angka-hero div b { display: block; font-size: 1.8rem; color: #fff; font-weight: 800; }
.angka-hero div span { color: #8fa597; font-size: .85rem; }
.ilustrasi-hero { position: relative; }
.ilustrasi-hero svg { width: 100%; max-width: 460px; margin: 0 auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); }
@media (max-width: 900px) {
  .hero { padding: 44px 0 60px; }
  .hero .wadah { grid-template-columns: 1fr; }
  .ilustrasi-hero { order: -1; }
  .ilustrasi-hero svg { max-width: 300px; }
}

.bagian { padding: 84px 0; }
.bagian.terang { background: var(--latar); color: var(--teks); }
.bagian.gelap2 { background: var(--hutan); }
.judul-bagian { max-width: 720px; margin-bottom: 40px; }
.judul-bagian .label-atas { color: var(--lime); font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.judul-bagian h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin: 10px 0 12px; color: #fff; }
.bagian.terang .judul-bagian h2 { color: var(--teks); }
.judul-bagian h2 em { font-style: normal; color: var(--lime); }
.judul-bagian p { color: #a9bbb0; font-size: 1.05rem; margin: 0; }
.bagian.terang .judul-bagian p { color: var(--teks-2); }

.masalah { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.masalah .besar { font-size: clamp(5rem, 12vw, 9rem); font-weight: 800; color: var(--lime); line-height: 1; letter-spacing: -.04em; }
.masalah .besar + p { font-weight: 800; color: #fff; letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }
.daftar-poin { display: grid; gap: 18px; }
.daftar-poin > div { padding: 20px; border-radius: var(--radius); background: rgba(255,255,255,.03); border: 1px solid rgba(124,179,66,.15); }
.daftar-poin h3 { color: var(--lime-2); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.daftar-poin p { margin: 0; color: #c9d7ce; }
@media (max-width: 800px) { .masalah { grid-template-columns: 1fr; } }

.kartu-fitur { padding: 24px; border-radius: 18px; background: linear-gradient(180deg, rgba(124,179,66,.08), rgba(124,179,66,.02)); border: 1px solid rgba(124,179,66,.18); }
.kartu-fitur .ikon { width: 48px; height: 48px; border-radius: 14px; background: var(--lime); display: grid; place-items: center; color: var(--hutan); margin-bottom: 16px; }
.kartu-fitur .ikon svg { width: 24px; height: 24px; }
.kartu-fitur h3 { color: #fff; font-size: 1.08rem; margin-bottom: 6px; }
.kartu-fitur p { color: #a9bbb0; margin: 0; font-size: .95rem; }

.langkah { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: langkah; }
.langkah > div { position: relative; padding: 22px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--garis); box-shadow: var(--bayangan); }
.langkah .no { font-size: 2.2rem; font-weight: 800; color: var(--lime); line-height: 1; }
.langkah h3 { font-size: 1rem; margin: 10px 0 6px; }
.langkah p { margin: 0; color: var(--teks-2); font-size: .9rem; }
@media (max-width: 1000px) { .langkah { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .langkah { grid-template-columns: 1fr; } }

.poin-besar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.poin-besar > div { padding: 24px; border-radius: 18px; background: var(--hutan-2); border: 1px solid rgba(124,179,66,.2); }
.poin-besar b { display: block; font-size: 2.8rem; font-weight: 800; color: var(--lime); line-height: 1.05; }
.poin-besar span { color: #c9d7ce; }
@media (max-width: 900px) { .poin-besar { grid-template-columns: repeat(2, 1fr); } }

.kaki { background: #04100a; color: #8fa597; padding: 40px 0; font-size: .9rem; }
.kaki .wadah { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.kaki .logo { color: #fff; }

/* Halaman masuk */
.halaman-masuk { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.halaman-masuk .sisi-kiri { background:
  radial-gradient(600px 400px at 100% 0%, rgba(124,179,66,.22), transparent 60%), var(--hutan);
  color: #e3ece6; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; }
.halaman-masuk .sisi-kiri h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: #fff; font-weight: 800; letter-spacing: -.02em; margin: 40px 0 14px; }
.halaman-masuk .sisi-kiri h1 em { color: var(--lime); font-style: normal; }
.halaman-masuk .langkah-kecil { display: grid; gap: 14px; margin-top: 26px; }
.halaman-masuk .langkah-kecil div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; color: #c9d7ce; }
.halaman-masuk .langkah-kecil span { width: 34px; height: 34px; border-radius: 10px; background: var(--lime); color: var(--hutan); display: grid; place-items: center; font-weight: 800; }
.halaman-masuk .sisi-kanan { display: grid; place-items: center; padding: 32px 20px; background: var(--latar); color: var(--teks); }
.kotak-masuk { width: min(440px, 100%); }
.tab-masuk { display: grid; grid-template-columns: 1fr 1fr; background: #e6ece7; border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.tab-masuk button { border: 0; background: none; padding: 10px; border-radius: 9px; font: inherit; font-weight: 700; color: var(--teks-2); cursor: pointer; }
.tab-masuk button.aktif { background: #fff; color: var(--teks); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
@media (max-width: 860px) {
  .halaman-masuk { grid-template-columns: 1fr; }
  .halaman-masuk .sisi-kiri { padding: 22px 20px 26px; }
  .halaman-masuk .sisi-kiri h1 { margin: 18px 0 6px; font-size: 1.6rem; }
  .halaman-masuk .sisi-kiri .langkah-kecil, .halaman-masuk .sisi-kiri .kaki-kiri { display: none; }
}

/* ---------- Kartu reward ---------- */
.reward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.kartu-reward { background: #fff; border: 1px solid var(--garis); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--bayangan); }
.kartu-reward .gambar { height: 120px; display: grid; place-items: center; background: linear-gradient(135deg, #e8f3dc, #f6faf1); color: var(--hutan-3); position: relative; }
.kartu-reward .gambar svg { width: 54px; height: 54px; }
.kartu-reward .gambar .badge { position: absolute; top: 10px; right: 10px; }
.kartu-reward .isi { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.kartu-reward h3 { font-size: 1rem; }
.kartu-reward .harga { font-weight: 800; color: var(--hutan-3); font-size: 1.15rem; }
.kartu-reward .tombol { margin-top: auto; }
.kartu-reward .alasan { font-size: .8rem; color: var(--redup); text-align: center; }

/* ---------- Kartu poin utama (pengguna) ---------- */
.kartu-poin { background: radial-gradient(500px 240px at 100% 0%, rgba(124,179,66,.35), transparent 60%), var(--hutan); color: #e3ece6; border: 0; }
.kartu-poin .nilai { font-size: 3rem; font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; margin: 8px 0; }
.kartu-poin .label { color: #a9bbb0; font-weight: 600; font-size: .9rem; }
.kartu-poin .baris-info { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 16px; font-size: .9rem; }
.kartu-poin .baris-info b { color: #fff; font-size: 1.1rem; }
.progres { height: 8px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 8px; }
.progres > div { height: 100%; background: var(--lime); border-radius: 6px; }

/* ---------- Peringkat ---------- */
.peringkat-baris { display: grid; grid-template-columns: 40px 38px 1fr auto; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--garis); }
.peringkat-baris:last-child { border-bottom: 0; }
.peringkat-baris .no { font-weight: 800; text-align: center; color: var(--redup); }
.peringkat-baris .avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--lime-pudar); color: var(--hutan-3); font-size: .85rem; }
.peringkat-baris .poin { font-weight: 800; }
.peringkat-baris.saya { background: #f3f9ec; border-radius: 10px; }
.medali { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; margin: 0 auto; color: #fff; }
.medali.emas { background: linear-gradient(135deg, #f5c542, #d79b0b); }
.medali.perak { background: linear-gradient(135deg, #cfd6dc, #9aa5ae); }
.medali.perunggu { background: linear-gradient(135deg, #e0a06a, #b26a33); }

/* ---------- Penukaran ---------- */
.kartu-klaim { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 14px 0; border-bottom: 1px solid var(--garis); align-items: center; }
.kartu-klaim:last-child { border-bottom: 0; }
.kode-salin { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--hutan-3); font-size: 1.05rem; background: #f3f9ec; padding: 6px 10px; border-radius: 8px; border: 1px dashed var(--lime); cursor: pointer; font-family: ui-monospace, Consolas, monospace; }
.kode-salin svg { width: 16px; height: 16px; }
.tab-kecil { display: inline-flex; background: #e6ece7; border-radius: 10px; padding: 3px; }
.tab-kecil button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font: inherit; font-weight: 700; font-size: .86rem; color: var(--teks-2); cursor: pointer; }
.tab-kecil button.aktif { background: #fff; color: var(--teks); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---------- Filter (admin) ---------- */
.filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.filter label { margin-top: 0; }
.aksi-baris { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Perbaikan tata letak ---------- */
.pesan:empty { display: none; }
@media (min-width: 901px) {
  /* latar menu samping tetap penuh walau halaman panjang */
  .aplikasi { background: linear-gradient(90deg, var(--hutan) 250px, var(--latar) 250px); }
}
@media (max-width: 860px) {
  .halaman-masuk { grid-template-rows: auto 1fr; min-height: 100vh; }
  .halaman-masuk .sisi-kiri { justify-content: flex-start; }
  .halaman-masuk .sisi-kanan { align-items: start; padding-top: 24px; }
}
td .aksi-baris { flex-wrap: nowrap; }
