html,body{
  height:100%;
  margin:0;
  font-family:Arial,sans-serif
}

header{
  height:58px;
  background:#111;
  color:#fff;
  padding:0 16px;
  display:flex;
  align-items:center;
  gap:8px;
  box-sizing:border-box
}

#status{
  margin-left:auto;
  font-size:11px;
  color:#bbb
}

aside{
  position:absolute;
  z-index:1000;
  top:58px;
  left:0;
  width:285px;
  height:calc(100% - 58px);
  background:#fff;
  padding:14px;
  box-sizing:border-box;
  box-shadow:2px 0 8px #0002;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch
}

aside h3{
  font-size:11px;
  color:#59656e;
  margin:5px 0 10px
}

.section-title{
  font-size:10px;
  color:#777;
  font-weight:bold;
  margin:12px 0 6px
}

.category-buttons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px;
  margin-bottom:10px
}

.category-btn{
  margin:0;
  padding:7px 4px;
  font-size:11px;
  background:#eee;
  color:#333
}

.category-btn.active{
  background:#1769aa;
  color:#fff
}

.plain-label{
  display:block;
  font-size:14px;
  margin:7px 0
}

.featured{
  display:flex;
  flex-direction:column;
  gap:5px
}

.featured-item,
.commodity-item{
  padding:8px;
  border-radius:6px;
  background:#f5f5f5;
  align-items:center;
  gap:5px
}

.featured-item{
  display:flex
}

.featured-item > span:last-child{
  margin-left:auto;
  color:#777;
  font-size:12px
}

.dot{
  display:inline-block;
  width:16px;
  height:16px;
  border-radius:50%;
  vertical-align:middle;
  border:1px solid #333;
  box-sizing:border-box
}

.gold{background:#ffd900}
.platinum{background:#eee}
.silver{background:#aaa}

.commodity-list{
  max-height:250px;
  overflow:auto;
  margin-bottom:8px;
  display:flex;
  flex-direction:column;
  gap:4px
}

.commodity-item{
  font-size:13px
}

.mini-dot{
  display:inline-block;
  width:12px;
  height:12px;
  border-radius:50%;
  border:1px solid #555;
  flex:0 0 auto
}

.commodity-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.commodity-count{
  margin-left:auto;
  color:#777;
  font-size:11px
}

.total-box{
  background:#eef5fb;
  border-left:4px solid #1769aa;
  border-radius:4px;
  padding:9px;
  margin-top:8px;
  font-size:12px;
  line-height:1.6
}

input:not([type=checkbox]),
select{
  width:100%;
  box-sizing:border-box;
  padding:8px;
  margin:3px 0;
  border:1px solid #ccc;
  border-radius:4px
}

button{
  width:100%;
  padding:9px;
  margin:4px 0;
  background:#1769aa;
  color:#fff;
  border:0;
  border-radius:5px;
  cursor:pointer
}

button:disabled{
  opacity:.6
}

.secondary{
  background:#666
}

.small-label{
  display:block;
  font-size:11px;
  color:#666;
  margin:5px 0 2px
}

.note{
  font-size:10px;
  color:#777;
  line-height:1.4
}

hr{
  border:0;
  border-top:1px solid #ddd;
  margin:14px 0
}

#map{
  position:absolute;
  left:285px;
  top:58px;
  right:0;
  bottom:0
}

.mineral-popup{
  min-width:220px;
  font-size:13px;
  line-height:1.4
}

.popup-title{
  font-size:14px;
  font-weight:bold
}

@media(max-width:700px){
  aside{width:235px}
  #map{left:235px}
}

.satellite-note{font-size:11px;line-height:1.4;color:#666;padding:6px 0;}

/* Struktur menu rapi: data survei dan citra satelit dipisahkan */
.menu-section{
  margin:0 0 10px;
  border:1px solid #e2e6ea;
  border-radius:7px;
  background:#fff;
  overflow:hidden;
}
.menu-section summary{
  list-style:none;
  cursor:pointer;
  padding:10px 11px;
  font-size:11px;
  font-weight:700;
  color:#59656e;
  background:#f7f8f9;
  user-select:none;
}
.menu-section summary::-webkit-details-marker{display:none}
.menu-section summary::after{
  content:"+";
  float:right;
  font-size:14px;
  color:#8a939b;
}
.menu-section[open] summary::after{content:"−"}
.section-body{padding:4px 10px 10px}
.section-caption{
  font-size:11px;
  line-height:1.45;
  color:#7a858d;
  margin:2px 0 9px;
}
.menu-section .section-title{margin-top:9px}
.menu-section .total-box{margin-bottom:2px}


/* Label wilayah saat mode citra satelit */
.admin-label{
  white-space:nowrap;
  pointer-events:none;
  text-align:center;
  transform:translate(-50%,-50%);
  text-shadow:
    0 1px 2px rgba(255,255,255,.95),
    0 -1px 2px rgba(255,255,255,.95),
    1px 0 2px rgba(255,255,255,.95),
    -1px 0 2px rgba(255,255,255,.95);
  font-weight:700;
}
.province-label{
  font-size:12px;
  color:#153c64;
}
.district-label{
  font-size:9px;
  color:#333;
  font-weight:600;
}

.terrain-modal{
  position:absolute;
  z-index:2000;
  top:0;
  left:285px;
  right:0;
  bottom:0;
  background:transparent;
  display:none;
  padding:0;
  box-sizing:border-box;
  pointer-events:none;
}
.terrain-modal.open{display:block;}
.terrain-panel{
  width:100%;
  height:100%;
  background:transparent;
  overflow:hidden;
  display:block;
  position:relative;
  box-shadow:none;
  pointer-events:none;
}
.terrain-toolbar{
  position:absolute;
  z-index:5;
  top:12px;
  left:12px;
  right:12px;
  min-height:42px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:7px 10px;
  background:rgba(17,17,17,.92);
  color:#fff;
  border-radius:10px;
  box-shadow:0 2px 10px rgba(0,0,0,.35);
  box-sizing:border-box;
  pointer-events:auto;
}
.terrain-toolbar .terrain-spacer{flex:1}
.terrain-toolbar select{
  width:auto;
  margin:0 4px;
  padding:5px 7px;
}
.terrain-toolbar button{
  width:auto;
  margin:0;
  padding:7px 12px;
  background:#555;
}
#terrain-map{
  position:absolute;
  inset:0;
  min-height:0;
  background:#17301b;
  pointer-events:auto;
}
#terrain-map .maplibregl-canvas-container{background:#17301b;}
#terrain-map .maplibregl-canvas{outline:none;}
.terrain-note{display:none;}
@media(max-width:700px){
  .terrain-modal{left:235px;}
  .terrain-toolbar{font-size:11px;}
  .terrain-toolbar label{font-size:10px;}
}

.layer-hint{font-size:10px;color:#7a8791;margin-left:3px;}

.s2-results{margin-top:8px;max-height:280px;overflow:auto}
.s2-card{border:1px solid #d7dce2;border-radius:8px;padding:8px;margin:6px 0;background:#fff}
.s2-card b{font-size:12px}
.s2-meta{font-size:11px;color:#555;line-height:1.45;margin-top:3px}
.s2-actions{display:flex;gap:5px;margin-top:6px}
.s2-actions button{font-size:11px;padding:5px 7px}
.s2-busy{opacity:.65}
.s2-scan-btn{background:#d99a00;color:#111;font-weight:700}
.s2-scan-btn:disabled{opacity:.6}
#s2-scan-status{margin-top:5px}
#s2-clear{font-size:11px}
.s2-link{display:inline-flex;align-items:center;padding:5px 7px;font-size:11px}


/* Mode interaktif Scan Citra Satelit */
#map.sentinel-scan-active,
#map.sentinel-scan-active .leaflet-grab,
#map.sentinel-scan-active .leaflet-grabbing{
  cursor:crosshair !important;
}
.s2-scan-active{
  background:#b87900 !important;
  color:#fff !important;
}
.s2-scan-btn{
  transition:background .15s ease, transform .05s ease;
}
.s2-scan-btn:active{transform:scale(.99);}


/* Sentinel-2 demo scan */
.scan-label{font-size:12px;font-weight:800;color:#fff;text-align:center;text-shadow:0 1px 2px #000;background:rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.8);border-radius:12px;padding:3px 7px;line-height:18px;box-sizing:border-box}
.scan-zone-high{background:#c0392b}.scan-zone-mid{background:#d68910}.scan-zone-low{background:#229954}
.scan-demo-badge{background:rgba(20,20,20,.88);color:#fff;border:1px solid #f1c40f;border-radius:8px;padding:5px 8px;font-size:10px;line-height:15px;box-sizing:border-box;white-space:nowrap;box-shadow:0 2px 7px rgba(0,0,0,.3)}
.scan-demo-badge span{font-weight:400;color:#ddd}


.screening-legend{background:rgba(22,22,22,.94);color:#fff;padding:9px 11px;border-radius:8px;box-shadow:0 2px 9px rgba(0,0,0,.3);font-size:10px;line-height:1.35;min-width:190px}
.screening-bar{height:8px;border-radius:5px;margin:5px 0 2px;background:linear-gradient(90deg,#35a7ff 0%,#42d17a 38%,#ffd43b 70%,#ff3b30 100%)}
.screening-labels{display:flex;justify-content:space-between;color:#ddd;font-size:9px}
.screening-key{display:flex;flex-direction:column;gap:2px;margin:6px 0;color:#eee}
.screening-key i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px}
.sk-red{background:#ff3b30}.sk-blue{background:#5fa8ff}.sk-yellow{background:#ffd43b}
.screening-legend small{display:block;color:#bbb;margin-top:5px;max-width:220px}

.s2-ranking{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.s2-rank-title{
  font-weight:700;
  font-size:12px;
  margin-bottom:2px;
}
.s2-rank-card{
  border:1px solid #ddd;
  border-radius:7px;
  padding:7px 8px;
  background:#fff;
  cursor:pointer;
}
.s2-rank-card:hover{
  background:#f4f7fb;
}
.s2-rank-head{
  display:flex;
  justify-content:space-between;
  gap:8px;
  font-weight:700;
}
.s2-rank-score{
  font-size:12px;
}
.s2-rank-meta{
  font-size:10px;
  color:#555;
  margin-top:3px;
  line-height:1.4;
}
.s2-rank-high{border-left:4px solid #e74c3c}
.s2-rank-medium{border-left:4px solid #f1c40f}
.s2-rank-low{border-left:4px solid #3498db}

/* ===== Screening ranking: always visible ===== */
.s2-ranking{
  display:flex !important;
  flex-direction:column;
  gap:6px;
  margin-top:10px;
  max-height:360px;
  overflow-y:auto;
  overflow-x:hidden;
  padding:4px 2px 6px;
  border-top:1px solid #dfe3e7;
}

.s2-ranking:empty{
  display:none !important;
}

.s2-rank-title{
  display:block;
  font-weight:700;
  font-size:12px;
  padding:4px 2px;
  color:#222;
}

.s2-rank-card{
  display:block !important;
  border:1px solid #d7dce2;
  border-left:4px solid #3498db;
  border-radius:7px;
  padding:8px;
  background:#fff;
  cursor:pointer;
  min-height:48px;
  box-sizing:border-box;
}

.s2-rank-card:hover{
  background:#f4f7fb;
}

.s2-rank-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  font-weight:700;
}

.s2-rank-score{
  font-size:12px;
  font-weight:800;
}

.s2-rank-meta{
  font-size:10px;
  color:#555;
  margin-top:3px;
  line-height:1.4;
}

.s2-rank-high{border-left-color:#e74c3c !important}
.s2-rank-medium{border-left-color:#f1c40f !important}
.s2-rank-low{border-left-color:#3498db !important}


/* ===== Compact hotspot ranking ===== */
.s2-ranking{
  max-height:320px;
  overflow-y:auto;
  overflow-x:hidden;
  padding:4px 3px 6px 2px;
}

.s2-rank-card{
  padding:6px 8px;
  min-height:0;
  line-height:1.25;
}

.s2-rank-head{
  font-size:12px;
  line-height:1.25;
}

.s2-rank-score{
  font-size:12px;
}

.s2-rank-meta{
  font-size:9.5px;
  line-height:1.3;
  margin-top:3px;
}

.s2-rank-title{
  font-size:12px;
  padding:3px 2px 5px;
}


/* ===== Final fix: hotspot ranking readable ===== */
.s2-ranking{
  max-height:340px !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding:4px 4px 8px 2px !important;
}

.s2-rank-card{
  height:auto !important;
  min-height:64px !important;
  max-height:none !important;
  padding:7px 8px !important;
  margin:0 !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}

.s2-rank-head{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:8px !important;
  min-height:16px !important;
}

.s2-rank-meta{
  display:block !important;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  white-space:normal !important;
  line-height:1.35 !important;
  margin-top:4px !important;
  font-size:9px !important;
}

.s2-rank-title{
  position:sticky;
  top:0;
  z-index:2;
  background:#fff;
  padding:4px 2px 6px !important;
}


/* Pencarian lokasi — fondasi navigasi, bukan sekadar pencarian deposit. */
.location-search{
  margin:0 0 10px;
  padding:10px;
  border:1px solid #e2e6ea;
  border-radius:7px;
  background:#fff;
}
.location-search label{
  display:block;
  font-size:10px;
  font-weight:700;
  color:#59656e;
  margin-bottom:6px;
}
.location-search-row{
  display:flex;
  gap:5px;
}
.location-search-row input{
  flex:1;
  min-width:0;
  margin:0;
}
.location-search-row button{
  width:62px;
  flex:0 0 62px;
  margin:0;
}
.location-search-results{
  margin-top:5px;
  max-height:260px;
  overflow:auto;
}
.location-search-result{
  display:block;
  width:100%;
  text-align:left;
  margin:3px 0;
  padding:7px 8px;
  background:#f5f7f9;
  color:#222;
  border:1px solid #e4e8ec;
  border-radius:5px;
}
.location-search-result:hover{
  background:#eaf2f8;
}
.location-search-result .result-name{
  display:block;
  font-size:12px;
  font-weight:700;
}
.location-search-result .result-subtitle{
  display:block;
  margin-top:2px;
  font-size:10px;
  color:#68747d;
  line-height:1.3;
}
.location-search-hint{
  margin-top:6px;
  font-size:10px;
  line-height:1.35;
  color:#89939a;
}
.location-search-empty{
  padding:7px 2px;
  font-size:10px;
  color:#777;
}


/* ===== Tampilan layer bergaya PETA EMAS ===== */
.menu-section{
  border-color:#d9dee3;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}
.menu-section summary{
  color:#39434b;
  letter-spacing:.15px;
}
.menu-section[open] summary{
  background:#f1f3f5;
}
.plain-label{
  padding:7px 8px;
  margin:2px 0;
  border-radius:5px;
  transition:background .12s ease;
}
.plain-label:hover{background:#f4f7f9;}
.plain-label input{
  accent-color:#1769aa;
}
.layer-hint{
  display:block;
  margin:2px 0 0 23px;
  color:#89939b;
  line-height:1.25;
}
.satellite-note{
  color:#68747d;
}
/* Konteks jalan/nama pada citra satelit dibuat halus agar citra tetap dominan. */
.leaflet-pane.satellite-transport-pane{
  mix-blend-mode:multiply;
}
.leaflet-pane.satellite-label-pane{
  pointer-events:none;
}
/* Label wilayah buatan aplikasi tetap terlihat, tetapi tidak mendominasi citra. */
.province-label{
  font-size:12px;
  letter-spacing:.15px;
  text-transform:uppercase;
}
.district-label{
  font-size:9px;
}

/* ===== PETA EMAS-style layer controls & map legend ===== */
.layer-row{display:flex;align-items:center;gap:7px;}
.layer-row input{margin:0 2px 0 0;}
.layer-row span:last-child{flex:1;}
.layer-row small{display:block;color:#8a949b;font-size:9px;margin-top:1px;}
.legend-line{display:inline-block;width:25px;height:0;border-top:2px solid currentColor;vertical-align:middle;}
.fault-line{color:#a43b3b;border-top-style:dashed;}
.province-line{color:#1769aa;}
.district-line{color:#69737b;border-top-width:1px;}
.layer-disclaimer{margin:8px 2px 0;padding:7px 8px;border-top:1px solid #edf0f2;color:#8a949b;font-size:9px;line-height:1.4;}.admin-tooltip{font-size:10px;font-weight:600;border:1px solid #d8dde1;box-shadow:0 1px 4px rgba(0,0,0,.08);}
@media (max-width:700px){.layer-row{padding:6px 5px;}}


/* H8 popup section */
.h8-popup-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
  font-size: 12px;
  line-height: 1.5;
}
.h8-popup-section .h8-loading {
  color: #999;
  font-style: italic;
}


/* ============================================
   TARGET ZONE LAYER v1 (P1/P2/P3)
   ============================================ */

.target-zone-marker {
  background: transparent;
}

.target-zone-summary {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 30, 0.92);
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: bold;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: none;
  pointer-events: none;
  letter-spacing: 0.3px;
}

.target-panel {
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  min-width: 260px;
  max-width: 320px;
}

.target-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
  margin-bottom: 10px;
}

.target-rank {
  background: #e74c3c;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.target-title {
  font-weight: bold;
  font-size: 13px;
  color: #333;
}

.target-panel-sub {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.target-section {
  padding: 8px 0;
  border-top: 1px solid #f0f0f0;
}

.target-section:first-of-type {
  border-top: none;
}

.target-section b {
  color: #333;
}

.target-section small {
  font-size: 11px;
}

.target-status {
  text-align: center;
  color: #888;
  font-style: italic;
  padding-top: 10px;
  border-top: 2px solid #eee;
  margin-top: 8px;
}

.h8-target-placeholder {
  color: #999;
  font-style: italic;
  font-size: 12px;
}


/* Water layer styling - boost water blue, suppress other colors */
.water-layer-overlay {
  mix-blend-mode: multiply;
  filter: hue-rotate(180deg) saturate(2) brightness(0.85) contrast(1.1);
}


/* Region info panel (click-to-query) */
.region-info-panel {
  position: absolute;
  top: 80px;
  right: 70px;
  z-index: 850;
  background: rgba(255,255,255,0.97);
  border-radius: 8px;
  padding: 8px 10px 8px 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  min-width: 200px;
  max-width: 240px;
  font-family: Arial, sans-serif;
  font-size: 11px;
  line-height: 1.35;
}
.region-info-title {
  font-size: 10px;
  font-weight: bold;
  color: #888;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.region-info-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
  padding: 0 6px;
  line-height: 1;
}
.region-info-close:hover {
  color: #333;
}
.region-info-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.region-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.region-label {
  color: #666;
  font-size: 12px;
  flex-shrink: 0;
}
.region-value {
  color: #1a3d6b;
  font-weight: bold;
  font-size: 13px;
  text-align: right;
}


/* === TASK 3: Floating Scan Area === */
.floating-scan-btn {
  position: fixed;
  top: 80px;
  left: 310px;
  transform: none;
  padding: 5px 12px !important;
  font-size: 11px !important;
  letter-spacing: 0.5px;
  border-radius: 6px !important;
  font-weight: 700;
  z-index: 800;
  width: auto;
  max-width: fit-content;
  display: inline-block;
  white-space: nowrap;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 30px;
  background: #d99a00;
  color: #111;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
  transition: transform .15s ease, box-shadow .15s ease;
  align-self: center;
}
.floating-scan-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.55);
}
.floating-scan-btn:active {
  transform: scale(0.98);
}


/* === TASK 4: Map Mode Switcher (kanan atas) === */
.map-mode-switcher {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 850;
  display: flex;
  gap: 4px;
  padding: 5px;
  background: rgba(20,20,20,0.85);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
}
.map-mode-btn {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #ddd;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.map-mode-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.map-mode-btn.active { background: #d99a00; color: #111; }

/* Panel wilayah geser ke bawah switcher */
.region-info-panel {
  top: 140px !important;
}


/* ===== TASK 6A: Saved Targets ===== */
.saved-targets-list { max-height: 320px; overflow-y: auto; }
.saved-targets-list .empty-targets {
  padding: 12px 8px; text-align: center; color: #888; font-size: 12px; font-style: italic;
}
.saved-target-item {
  padding: 10px; margin-bottom: 6px; background: #1a1f2e; border-radius: 6px;
  border-left: 3px solid #d99a00; font-size: 12px;
}
.saved-target-item .st-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;
}
.saved-target-item .st-rank {
  background: #d99a00; color: #111; padding: 2px 7px; border-radius: 4px;
  font-weight: 700; font-size: 11px;
}
.saved-target-item .st-title {
  font-weight: 600; color: #eee; font-size: 12px;
  flex: 1; margin-left: 6px;
}
.saved-target-item .st-meta {
  color: #999; font-size: 11px; margin-bottom: 4px;
}
.saved-target-item .st-notes {
  color: #ccc; font-size: 11px; font-style: italic; margin: 4px 0;
  padding: 4px 6px; background: rgba(0,0,0,0.2); border-radius: 4px;
}
.saved-target-item .st-actions {
  display: flex; gap: 4px; margin-top: 6px;
}
.saved-target-item .st-actions button {
  flex: 1; padding: 5px 8px; font-size: 11px; border-radius: 4px;
  border: none; cursor: pointer; background: #2c3a55; color: #ddd;
}
.saved-target-item .st-actions button:hover { background: #3a4a6b; color: #fff; }
.saved-target-item .st-actions .st-delete { background: #4a2020; color: #f99; }
.saved-target-item .st-actions .st-delete:hover { background: #6a3030; }

/* Tombol di popup */
.target-actions { margin-top: 10px; padding-top: 8px; border-top: 1px solid #eee; }
.btn-save-target {
  width: 100%; padding: 8px 12px; border-radius: 6px;
  background: #d99a00; color: #111; font-weight: 700; font-size: 12px;
  border: none; cursor: pointer;
}
.btn-save-target:hover { background: #e6a700; }

/* Modal */
.save-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.65); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.save-modal-content {
  background: #1a1f2e; color: #eee; border-radius: 10px;
  width: 90%; max-width: 420px; box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.save-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid #2a3040; font-size: 15px;
}
.save-modal-close {
  background: none; border: none; color: #999; font-size: 22px;
  cursor: pointer; line-height: 1; padding: 0 4px;
}
.save-modal-close:hover { color: #fff; }
.save-modal-body { padding: 14px 16px; }
.save-modal-info {
  padding: 8px 10px; background: rgba(217,154,0,0.15); border-radius: 6px;
  font-size: 12px; margin-bottom: 12px; color: #ffdd88;
}
.save-modal-label { display: block; font-size: 12px; color: #aaa; margin-bottom: 6px; }
.save-modal-body textarea {
  width: 100%; padding: 8px 10px; border-radius: 6px;
  background: #0f131e; color: #eee; border: 1px solid #2a3040;
  font-family: inherit; font-size: 12px; resize: vertical; box-sizing: border-box;
}
.save-modal-footer {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 12px 16px; border-top: 1px solid #2a3040;
}
.save-modal-footer button {
  padding: 8px 16px; border-radius: 6px; font-size: 12px;
  border: none; cursor: pointer; font-weight: 600;
}


/* Label T1/T2/T3 di dalam circleMarker (fix zoom bug) */
.target-zone-label {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  padding: 0 !important;
}
.target-zone-label::before {
  display: none !important;
}


/* Saved target pin dengan pulse animation */
.saved-target-pin {
  background: transparent;
  border: none;
}
.saved-target-pin-inner {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.saved-target-pin-pulse {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(217, 154, 0, 0.4);
  animation: stPulse 1.8s infinite;
}
@keyframes stPulse {
  0%   { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.0); opacity: 0; }
}
.saved-target-pin-dot {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d99a00;
  color: #111;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  z-index: 1;
}


/* Zoom control di kanan atas, di bawah switcher */
.leaflet-top.leaflet-right .leaflet-control-zoom {
  margin-top: 90px !important;
  margin-right: 20px !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.45) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}
.leaflet-top.leaflet-right .leaflet-control-zoom a {
  background: rgba(20,20,20,0.85) !important;
  color: #ddd !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  font-size: 18px !important;
  backdrop-filter: blur(4px);
}
.leaflet-top.leaflet-right .leaflet-control-zoom a:hover {
  background: rgba(217,154,0,0.85) !important;
  color: #111 !important;
}
.leaflet-top.leaflet-right .leaflet-control-zoom a:last-child {
  border-bottom: none !important;
}


/* Fix: tombol Simpan Target tidak ketutup toast */
.leaflet-popup-content {
  margin: 12px 14px 14px 14px !important;
}
.target-panel .target-actions {
  margin-top: 14px !important;
  margin-bottom: 6px !important;
  padding-top: 10px !important;
}
.btn-save-target {
  padding: 10px 12px !important;
  font-size: 13px !important;
}

/* Toast zona prioritas - posisi lebih tinggi supaya tidak tabrakan tombol */
.target-zone-summary {
  bottom: 20px !important;
}


/* COMPACT_REGION_V1 - panel wilayah rapat */
.region-info-panel .region-row {
  margin-bottom: 3px !important;
  display: flex !important;
  justify-content: space-between !important;
  gap: 6px;
}
.region-info-panel .region-label {
  font-size: 10px !important;
  color: #888 !important;
  white-space: nowrap;
}
.region-info-panel .region-value {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-align: right !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}
.region-info-panel .region-info-title {
  font-size: 10px !important;
  letter-spacing: 1px !important;
  color: #999 !important;
  margin-bottom: 6px !important;
}
.region-info-panel .region-info-close {
  position: absolute !important;
  top: 4px !important;
  right: 6px !important;
  width: 18px !important;
  height: 18px !important;
  font-size: 14px !important;
  line-height: 16px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  color: #888 !important;
}
.region-info-panel .region-info-close:hover {
  color: #333 !important;
}


/* FIX UX: Panel Konfirmasi Scan */
.scan-ready-panel {
  position: fixed;
  top: 80px;
  left: 300px;
  z-index: 900;
  background: rgba(20,20,20,0.95);
  color: #eee;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.6);
  min-width: 260px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
}
.scan-ready-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #d99a00;
  margin-bottom: 6px;
}
.scan-ready-info {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 12px;
  line-height: 1.4;
}
.scan-ready-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.scan-ready-actions button {
  flex: 1;
  min-width: 70px;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease;
}
.scan-ready-actions button:hover {
  transform: scale(1.03);
}
.scan-ready-actions .scan-confirm {
  background: #d99a00;
  color: #111;
  flex-basis: 100%;
  margin-bottom: 2px;
}
.scan-ready-actions .scan-secondary {
  background: #2c3a55;
  color: #ddd;
}
.scan-ready-actions .scan-secondary:hover {
  background: #3a4a6b;
}

/* FIX UX: Pulse Animation Rectangle */
.scan-rect-pulse {
  animation: rectPulse 1.6s ease-in-out infinite;
}
@keyframes rectPulse {
  0%, 100% { stroke-opacity: 0.6; }
  50%      { stroke-opacity: 1.0; }
}

/* FIX UX: Indikator Scanning */
.scan-progress-indicator {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 950;
  background: rgba(20,20,20,0.95);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
}
.scan-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a9eff;
  animation: progressDot 1.2s ease-in-out infinite;
}
@keyframes progressDot {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50%      { opacity: 1.0; transform: scale(1.2); }
}


/* T1/T2/T3 divIcon SVG - stabil, tanpa transition */
.t-zone-svg-icon {
  background: transparent;
  border: none;
  pointer-events: auto;
}
.t-zone-svg-icon svg {
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}


/* TASK 6C: Export PDF button */
#export-pdf-btn {
  background: #2d7ab8;
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.5px;
  transition: background .15s;
}
#export-pdf-btn:hover {
  background: #3f8fd0;
}

/* ===== TOAST MANUAL HIDE/SHOW v2 ===== */
.target-zone-summary {
  pointer-events: auto !important;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 20px !important;
}
.target-zone-summary .tzs-text { white-space: nowrap; }
.target-zone-summary .tzs-hide {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px; line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-left: 4px;
  transition: background 0.2s;
}
.target-zone-summary .tzs-hide:hover { background: rgba(255,255,255,0.25); }
.target-zone-show-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 30, 0.85);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 12px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: background 0.2s;
}
.target-zone-show-btn:hover { background: rgba(50, 50, 50, 0.95); }

/* ===== RIVER CONTROL FLOATING ===== */
.river-ctrl-wrap {
  position: absolute;
  top: 230px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.river-ctrl-btn {
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: background 0.15s;
}
.river-ctrl-btn:hover { background: #eef4fb; }
.river-ctrl-btn.active { background: #dbeafe; border-color: #3b82f6; }
.river-ctrl-panel {
  position: absolute;
  top: 0;
  right: 40px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  min-width: 200px;
  padding: 10px 12px;
  font-family: Arial, sans-serif;
}
.river-ctrl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: #333;
}
.river-ctrl-close {
  width: 18px; height: 18px;
  border: none;
  background: transparent;
  color: #888;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.river-ctrl-close:hover { background: #f0f0f0; color: #c00; }
.river-ctrl-body { font-size: 11px; color: #555; }
.river-ctrl-label { margin-bottom: 6px; }
.river-ctrl-label b { color: #3b82f6; }
#river-opacity-slider {
  width: 100%;
  cursor: pointer;
  accent-color: #3b82f6;
}
/* ===== HEADER PREMIUM DARK v1 ===== */
header {
  background: #0F171D !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  color: #F5F5F5 !important;
  padding: 10px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 64px !important;
  box-sizing: border-box !important;
}
header .brand { display: flex; align-items: center; gap: 12px; }
header .brand-logo { flex-shrink: 0; display: block; }
header .brand-text { display: flex; flex-direction: column; }
header .brand-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.1;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}
header .brand-white { color: #F5F5F5; }
header .brand-gold { color: #D6A21C; }
header .brand-sub {
  font-size: 10px;
  color: #AAB4BC;
  letter-spacing: 0.6px;
  margin-top: 3px;
  text-transform: uppercase;
  font-weight: 500;
}
header .header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #AAB4BC;
}
header .status-dot {
  width: 8px; height: 8px;
  background: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(46, 204, 113, 0.6);
  display: inline-block;
}
header #status {
  color: #AAB4BC !important;
  font-weight: 500;
  font-size: 11.5px !important;
}
/* ===== SIDEBAR DARK PREMIUM v1 ===== */
aside {
  background: #111A21 !important;
  border-right: 1px solid rgba(255,255,255,0.06) !important;
  color: #F5F5F5 !important;
  padding: 14px 12px !important;
  font-family: Inter, system-ui, -apple-system, sans-serif !important;
}
aside * { color: inherit; }

/* Search block */
aside .location-search {
  background: #17232C !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 10px !important;
  padding: 12px !important;
  margin-bottom: 12px !important;
}
aside .location-search label {
  color: #AAB4BC !important;
  font-size: 10.5px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
  display: block !important;
}
aside .location-search-row { display: flex; gap: 6px; }
aside #location-search-input {
  background: #0F171D !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #F5F5F5 !important;
  border-radius: 8px !important;
  padding: 9px 11px !important;
  font-size: 13px !important;
  flex: 1 !important;
  outline: none !important;
  transition: border-color 0.15s !important;
}
aside #location-search-input:focus {
  border-color: #D6A21C !important;
  box-shadow: 0 0 0 2px rgba(214,162,28,0.15) !important;
}
aside #location-search-input::placeholder { color: #6B7680 !important; }
aside #location-search-button {
  background: #D6A21C !important;
  color: #111111 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 9px 16px !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
}
aside #location-search-button:hover { background: #E7B83E !important; }
aside .location-search-hint {
  color: #6B7680 !important;
  font-size: 10.5px !important;
  margin-top: 8px !important;
  line-height: 1.4 !important;
}

/* Accordion (details.menu-section) */
aside details.menu-section {
  background: transparent !important;
  border: none !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  margin: 0 !important;
  padding: 0 !important;
}
aside details.menu-section summary {
  color: #F5F5F5 !important;
  font-size: 11px !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  padding: 14px 4px 14px 12px !important;
  cursor: pointer !important;
  list-style: none !important;
  position: relative !important;
  transition: color 0.15s !important;
}
aside details.menu-section summary::-webkit-details-marker { display: none !important; }
aside details.menu-section summary::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 0;
  background: #D6A21C;
  border-radius: 2px;
  transition: height 0.2s ease !important;
}
aside details.menu-section[open] summary::before { height: 60% !important; }
aside details.menu-section summary:hover { color: #D6A21C !important; }
aside details.menu-section[open] summary { color: #D6A21C !important; }

/* Section body */
aside .section-body {
  background: #0F171D !important;
  padding: 12px 10px !important;
  border-radius: 8px !important;
  margin-bottom: 8px !important;
}
aside .section-caption {
  color: #8A949B !important;
  font-size: 11px !important;
  margin-bottom: 10px !important;
  line-height: 1.4 !important;
}
aside .section-title {
  color: #AAB4BC !important;
  font-size: 10px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  margin: 10px 0 8px !important;
}

/* Target card */
aside .saved-targets-list { background: transparent !important; }
aside .saved-target-card,
aside .target-card {
  background: #17232C !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  color: #F5F5F5 !important;
  border-radius: 8px !important;
  padding: 10px !important;
}
aside .empty-targets,
aside .empty-history {
  color: #6B7680 !important;
  background: #17232C !important;
  border-radius: 8px !important;
  padding: 14px !important;
  font-size: 11.5px !important;
  text-align: center !important;
}

/* Buttons in sidebar */
aside button {
  font-family: inherit !important;
  font-size: 12px !important;
  border-radius: 7px !important;
  padding: 8px 12px !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}
aside button.primary,
aside button#export-pdf-btn {
  background: #D6A21C !important;
  color: #111111 !important;
  border-color: #D6A21C !important;
  font-weight: 600 !important;
}
aside button.primary:hover,
aside button#export-pdf-btn:hover {
  background: #E7B83E !important;
  border-color: #E7B83E !important;
}
aside button.secondary {
  background: #17232C !important;
  color: #AAB4BC !important;
  border-color: rgba(255,255,255,0.08) !important;
}
aside button.secondary:hover {
  background: #1E2B35 !important;
  color: #F5F5F5 !important;
}

/* Label & input generic in sidebar */
aside label {
  color: #AAB4BC !important;
  font-size: 12px !important;
}
aside .plain-label,
aside .featured-item {
  padding: 6px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
aside input[type="checkbox"] { accent-color: #D6A21C !important; }
aside input[type="text"],
aside input[type="search"],
aside input[type="number"],
aside textarea,
aside select {
  background: #0F171D !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #F5F5F5 !important;
  border-radius: 7px !important;
  padding: 7px 10px !important;
  font-family: inherit !important;
  outline: none !important;
  transition: border-color 0.15s !important;
}
aside input[type="text"]:focus,
aside input[type="search"]:focus,
aside textarea:focus,
aside select:focus {
  border-color: #D6A21C !important;
  box-shadow: 0 0 0 2px rgba(214,162,28,0.12) !important;
}

/* Category buttons (komoditas) */
aside .category-btn {
  background: #17232C !important;
  color: #AAB4BC !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  font-size: 11px !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
}
aside .category-btn.active,
aside .category-btn:hover {
  background: rgba(214,162,28,0.15) !important;
  color: #D6A21C !important;
  border-color: #D6A21C !important;
}

/* Legend line samples */
aside .legend-line { opacity: 0.9 !important; }

/* Total box */
aside .total-box {
  background: #0F171D !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  color: #AAB4BC !important;
  border-radius: 7px !important;
  padding: 10px !important;
  font-size: 11.5px !important;
  margin-top: 10px !important;
}
aside .total-box b { color: #D6A21C !important; }

/* Featured item (Emas/Platina/Perak) */
aside .featured { gap: 6px !important; }
aside .featured-item b { color: #F5F5F5 !important; }
aside .featured-item span[id^="count-"] { color: #8A949B !important; font-size: 11px !important; }

/* Commodity list items */
aside .commodity-list { background: transparent !important; }
aside .commodity-list label { color: #AAB4BC !important; font-size: 12px !important; }

/* Scrollbar dark */
aside::-webkit-scrollbar { width: 8px; }
aside::-webkit-scrollbar-track { background: #0F171D; }
aside::-webkit-scrollbar-thumb { background: #2A3540; border-radius: 4px; }
aside::-webkit-scrollbar-thumb:hover { background: #3A4550; }
/* ===== SIDEBAR DARK FIX v2 - Paksa override ===== */
aside, aside * {
  color: #F5F5F5 !important;
}
aside {
  background: #111A21 !important;
}
aside details.menu-section,
aside details {
  background: #111A21 !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  color: #F5F5F5 !important;
}
aside details summary,
aside details > summary {
  background: #111A21 !important;
  color: #F5F5F5 !important;
  padding: 14px 10px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 46px !important;
  box-sizing: border-box !important;
  position: relative !important;
}
aside details summary:hover,
aside details > summary:hover {
  color: #D6A21C !important;
}
aside details[open] summary,
aside details[open] > summary {
  color: #D6A21C !important;
}
aside details[open] summary::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 3px !important;
  height: 55% !important;
  background: #D6A21C !important;
  border-radius: 2px !important;
}
aside details .section-body,
aside details > div {
  background: #0F171D !important;
  color: #F5F5F5 !important;
  padding: 12px 12px 14px !important;
  border-radius: 0 0 8px 8px !important;
}
aside details .section-caption,
aside details .section-title,
aside details .section-body p,
aside details .section-body div {
  color: #AAB4BC !important;
}
aside details .section-title {
  color: #8A949B !important;
  font-size: 10px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}
aside details label,
aside details .plain-label,
aside details .featured-item {
  color: #D1D8DD !important;
  background: transparent !important;
}
aside details label b,
aside details .featured-item b {
  color: #F5F5F5 !important;
}
aside details .featured-item span[id^="count-"],
aside details small {
  color: #8A949B !important;
}
aside details input[type="checkbox"] {
  accent-color: #D6A21C !important;
  background: #0F171D !important;
}
aside details .total-box {
  background: #0F171D !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #AAB4BC !important;
}
aside details .total-box b {
  color: #D6A21C !important;
}
aside details button,
aside details button.secondary {
  background: #17232C !important;
  color: #F5F5F5 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}
aside details button:hover {
  background: #1E2B35 !important;
  color: #D6A21C !important;
}
aside details .empty-targets,
aside details .empty-history {
  background: #17232C !important;
  color: #8A949B !important;
}
/* ===== HISTORY CARD GOLD v1 ===== */
aside .scan-history-item,
.scan-history-item {
  background: #17232C !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-left: 3px solid #D6A21C !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  margin-bottom: 8px !important;
  color: #F5F5F5 !important;
}
.scan-history-item .history-time {
  color: #D6A21C !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.3px !important;
  margin-bottom: 5px !important;
  text-transform: none !important;
}
.scan-history-item .history-time b,
.scan-history-item .history-time span {
  color: #D6A21C !important;
}
.scan-history-item .history-area {
  color: #AAB4BC !important;
  font-size: 11px !important;
  margin-bottom: 4px !important;
  font-weight: 500 !important;
}
.scan-history-item .history-stats {
  color: #E7B83E !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
  letter-spacing: 0.2px !important;
}
.scan-history-item .history-stats b {
  color: #E7B83E !important;
  font-weight: 700 !important;
}
.scan-history-item .history-actions {
  display: flex !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}
.scan-history-item .history-actions button,
.scan-history-item button {
  background: #0F171D !important;
  color: #F5F5F5 !important;
  border: 1px solid rgba(214,162,28,0.4) !important;
  padding: 7px 14px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  flex: 1 !important;
  min-width: 80px !important;
  transition: all 0.15s !important;
  letter-spacing: 0.3px !important;
}
.scan-history-item .history-actions button:hover {
  background: rgba(214,162,28,0.15) !important;
  color: #E7B83E !important;
  border-color: #D6A21C !important;
}
.scan-history-item .history-actions button.danger,
.scan-history-item .history-actions button[data-h-del],
.scan-history-item button.danger {
  background: #2a1616 !important;
  color: #ff8888 !important;
  border-color: rgba(229,57,53,0.5) !important;
}
.scan-history-item .history-actions button.danger:hover,
.scan-history-item .history-actions button[data-h-del]:hover {
  background: #3a1a1a !important;
  color: #ff5555 !important;
  border-color: #E53935 !important;
}

/* Empty history text */
.scan-history-list .empty-history {
  background: #17232C !important;
  color: #8A949B !important;
  border-radius: 8px !important;
  padding: 16px 12px !important;
  font-size: 11.5px !important;
  text-align: center !important;
  border: 1px dashed rgba(255,255,255,0.08) !important;
}

/* Hapus Semua Histori button */
aside #clear-all-history,
#clear-all-history {
  background: #17232C !important;
  color: #AAB4BC !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 7px !important;
  padding: 10px 14px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  width: 100% !important;
  cursor: pointer !important;
  margin-top: 8px !important;
  letter-spacing: 0.3px !important;
  transition: all 0.15s !important;
}
aside #clear-all-history:hover,
#clear-all-history:hover {
  background: #1E2B35 !important;
  color: #F5F5F5 !important;
  border-color: rgba(229,57,53,0.4) !important;
}
/* ===== SIDEBAR DARK FIX v3 - Kategori/Checkbox/Popup ===== */

/* 1. Tombol kategori (Semua, Logam mulia, dll) - non-active */
aside .category-btn {
  background: #17232C !important;
  color: #AAB4BC !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}
aside .category-btn:hover {
  background: rgba(214,162,28,0.12) !important;
  color: #D6A21C !important;
  border-color: rgba(214,162,28,0.5) !important;
}
aside .category-btn.active {
  background: rgba(214,162,28,0.20) !important;
  color: #D6A21C !important;
  border-color: #D6A21C !important;
  font-weight: 700 !important;
}

/* 2. Featured item (Emas/Platina/Perak) - wrapper checkbox */
aside .featured-item {
  background: #17232C !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 7px !important;
  padding: 8px 10px !important;
  color: #F5F5F5 !important;
  margin-bottom: 4px !important;
}
aside .featured-item b {
  color: #F5F5F5 !important;
}
aside .featured-item span[id^="count-"] {
  color: #8A949B !important;
  font-size: 11px !important;
  margin-left: auto !important;
}
aside .featured-item:hover {
  background: #1E2B35 !important;
  border-color: rgba(214,162,28,0.3) !important;
}
aside .featured-item input[type="checkbox"] {
  accent-color: #D6A21C !important;
}

/* 3. Commodity list items (Air Raksa, Antimon, dll) */
aside .commodity-list {
  background: transparent !important;
}
aside .commodity-list label,
aside #commodity-list label {
  background: #17232C !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 6px !important;
  padding: 6px 10px !important;
  color: #D1D8DD !important;
  margin-bottom: 3px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12px !important;
}
aside .commodity-list label:hover {
  background: #1E2B35 !important;
  border-color: rgba(214,162,28,0.3) !important;
}
aside .commodity-list label b {
  color: #F5F5F5 !important;
}
aside .commodity-list input[type="checkbox"] {
  accent-color: #D6A21C !important;
}

/* 4. Tombol Aktifkan/Matikan semua mineral */
aside #all-minerals,
aside #clear-minerals {
  background: #17232C !important;
  color: #F5F5F5 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 7px !important;
  padding: 9px 12px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  width: 100% !important;
  margin-bottom: 5px !important;
  cursor: pointer !important;
  letter-spacing: 0.3px !important;
  transition: all 0.15s !important;
}
aside #all-minerals:hover {
  background: rgba(214,162,28,0.15) !important;
  color: #D6A21C !important;
  border-color: rgba(214,162,28,0.5) !important;
}
aside #clear-minerals:hover {
  background: rgba(229,57,53,0.12) !important;
  color: #ff8888 !important;
  border-color: rgba(229,57,53,0.4) !important;
}

/* 5. Checkbox layer PETA & WILAYAH */
aside .plain-label.layer-row,
aside .plain-label {
  background: transparent !important;
  color: #D1D8DD !important;
  padding: 8px 4px !important;
  border-radius: 6px !important;
  transition: background 0.15s !important;
}
aside .plain-label.layer-row:hover,
aside .plain-label:hover {
  background: #17232C !important;
}
aside .plain-label b {
  color: #F5F5F5 !important;
}
aside .plain-label small {
  color: #8A949B !important;
  font-size: 10.5px !important;
  display: block !important;
  margin-top: 2px !important;
}
aside .plain-label input[type="checkbox"] {
  accent-color: #D6A21C !important;
}

/* 6. POPUP LEAFLET (Histori Scan, T1/T2/T3) */
.leaflet-popup-content-wrapper {
  background: #17232C !important;
  color: #F5F5F5 !important;
  border: 1px solid rgba(214,162,28,0.3) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
}
.leaflet-popup-content {
  color: #F5F5F5 !important;
  margin: 12px 14px !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
}
.leaflet-popup-content b,
.leaflet-popup-content strong {
  color: #D6A21C !important;
}
.leaflet-popup-content small {
  color: #AAB4BC !important;
}
.leaflet-popup-tip {
  background: #17232C !important;
  border: 1px solid rgba(214,162,28,0.3) !important;
}
.leaflet-popup-close-button {
  color: #AAB4BC !important;
  font-size: 20px !important;
  padding: 4px 8px !important;
}
.leaflet-popup-close-button:hover {
  color: #D6A21C !important;
}

/* 7. Popup target panel (T1/T2/T3) - elemen dalam */
.leaflet-popup-content .target-panel {
  color: #F5F5F5 !important;
}
.leaflet-popup-content .target-panel-header {
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  padding-bottom: 8px !important;
  margin-bottom: 10px !important;
}
.leaflet-popup-content .target-rank {
  background: #D6A21C !important;
  color: #111111 !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
  border-radius: 5px !important;
  font-size: 11px !important;
}
.leaflet-popup-content .target-title {
  color: #F5F5F5 !important;
  font-weight: 600 !important;
}
.leaflet-popup-content .target-section {
  color: #AAB4BC !important;
  padding: 8px 0 !important;
  border-top: 1px solid rgba(255,255,255,0.04) !important;
  font-size: 12px !important;
}
.leaflet-popup-content .target-section b {
  color: #D6A21C !important;
}
.leaflet-popup-content .target-section span[style*="color:#444"],
.leaflet-popup-content .target-section span[style*="color: #444"] {
  color: #AAB4BC !important;
}
.leaflet-popup-content .target-section small {
  color: #8A949B !important;
}

/* 8. Tombol dalam popup - Simpan Target + Lihat Lokasi */
.leaflet-popup-content .btn-view-location {
  background: #17232C !important;
  color: #D6A21C !important;
  border: 1px solid rgba(214,162,28,0.5) !important;
  border-radius: 7px !important;
  padding: 8px 12px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  width: 100% !important;
  margin-bottom: 6px !important;
  transition: all 0.15s !important;
}
.leaflet-popup-content .btn-view-location:hover {
  background: rgba(214,162,28,0.15) !important;
  color: #E7B83E !important;
}
.leaflet-popup-content .btn-save-target {
  background: #D6A21C !important;
  color: #111111 !important;
  border: none !important;
  border-radius: 7px !important;
  padding: 8px 12px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: all 0.15s !important;
}
.leaflet-popup-content .btn-save-target:hover {
  background: #E7B83E !important;
}

/* 9. Panel Info Wilayah (kanan atas) */
.region-info-panel {
  background: #17232C !important;
  color: #F5F5F5 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 10px !important;
}
.region-info-panel .region-info-title {
  color: #D6A21C !important;
}
.region-info-panel .region-label {
  color: #8A949B !important;
}
.region-info-panel .region-value {
  color: #F5F5F5 !important;
}

/* 10. Scan Area Ready Panel (konfirmasi scan) */
#scan-ready-panel {
  background: #17232C !important;
  color: #F5F5F5 !important;
  border: 1px solid rgba(214,162,28,0.3) !important;
}
#scan-ready-panel .scan-ready-title {
  color: #D6A21C !important;
}
#scan-ready-panel .scan-ready-info {
  color: #AAB4BC !important;
}
#scan-ready-panel .scan-confirm {
  background: #D6A21C !important;
  color: #111111 !important;
  font-weight: 700 !important;
}
#scan-ready-panel .scan-confirm:hover {
  background: #E7B83E !important;
}
#scan-ready-panel .scan-secondary {
  background: #0F171D !important;
  color: #AAB4BC !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}
#scan-ready-panel .scan-secondary:hover {
  color: #F5F5F5 !important;
  border-color: rgba(255,255,255,0.2) !important;
}

/* 11. Toast summary (Info Zona) */
.target-zone-summary,
.target-zone-show-btn {
  background: #17232C !important;
  color: #F5F5F5 !important;
  border: 1px solid rgba(214,162,28,0.3) !important;
}
.target-zone-summary .tzs-hide:hover {
  background: rgba(214,162,28,0.2) !important;
  color: #D6A21C !important;
}
/* ===== POPUP TARGET WIDTH FIX ===== */
/* Perlebar popup target biar tombol tidak kepotong */
.leaflet-popup-content-wrapper:has(.target-panel) {
  min-width: 340px !important;
  max-width: 380px !important;
}
.leaflet-popup-content:has(.target-panel) {
  width: 340px !important;
  min-width: 340px !important;
  margin: 14px 16px !important;
  box-sizing: border-box !important;
}
.leaflet-popup-content .target-panel {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.leaflet-popup-content .target-panel .btn-save-target,
.leaflet-popup-content .target-panel .btn-view-location {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  padding: 9px 12px !important;
  font-size: 12px !important;
}
.leaflet-popup-content .target-panel .target-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-top: 10px !important;
  padding: 0 !important;
}

/* Fallback - kalau :has() tidak support, target semua popup dengan class target-panel */
.leaflet-popup-content .target-panel {
  min-width: 320px !important;
}

/* Perbaiki tombol di popup kecil (non-target) */
.leaflet-popup-content button {
  max-width: 100% !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
/* ===== POPUP TARGET COMPACT v2 ===== */
/* 1. Popup wrapper: batasi tinggi + rapi */
.leaflet-popup-content-wrapper:has(.target-panel) {
  min-width: 320px !important;
  max-width: 360px !important;
  border-radius: 12px !important;
}
.leaflet-popup-content:has(.target-panel) {
  width: 320px !important;
  min-width: 320px !important;
  max-height: 60vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  margin: 10px 12px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  scrollbar-width: thin !important;
  scrollbar-color: #2A3540 #0F171D !important;
}
.leaflet-popup-content:has(.target-panel)::-webkit-scrollbar {
  width: 6px;
}
.leaflet-popup-content:has(.target-panel)::-webkit-scrollbar-track {
  background: transparent;
}
.leaflet-popup-content:has(.target-panel)::-webkit-scrollbar-thumb {
  background: #2A3540;
  border-radius: 3px;
}
.leaflet-popup-content:has(.target-panel)::-webkit-scrollbar-thumb:hover {
  background: #3A4550;
}

/* 2. Compact panel */
.leaflet-popup-content .target-panel {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
.leaflet-popup-content .target-panel-header {
  padding: 0 0 8px 0 !important;
  margin-bottom: 8px !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.leaflet-popup-content .target-rank {
  background: #D6A21C !important;
  color: #111111 !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  flex-shrink: 0 !important;
}
.leaflet-popup-content .target-title {
  color: #F5F5F5 !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
}
.leaflet-popup-content .target-panel-sub {
  color: #AAB4BC !important;
  font-size: 11.5px !important;
  margin-bottom: 8px !important;
  padding: 0 !important;
}
.leaflet-popup-content .target-section {
  padding: 7px 0 !important;
  border-top: 1px solid rgba(255,255,255,0.05) !important;
  font-size: 11.5px !important;
  line-height: 1.45 !important;
  color: #AAB4BC !important;
}
.leaflet-popup-content .target-section:first-of-type {
  border-top: none !important;
}
.leaflet-popup-content .target-section b {
  color: #D6A21C !important;
  font-size: 11.5px !important;
}
.leaflet-popup-content .target-section span[style*="color:#444"],
.leaflet-popup-content .target-section span[style*="color: #444"] {
  color: #AAB4BC !important;
}
.leaflet-popup-content .target-section small {
  color: #8A949B !important;
  font-size: 10.5px !important;
}
.leaflet-popup-content .target-section br {
  line-height: 1.5 !important;
}

/* 3. Tombol actions: STICKY di bawah - selalu kelihatan */
.leaflet-popup-content .target-actions {
  position: sticky !important;
  bottom: 0 !important;
  background: #17232C !important;
  padding: 10px 0 4px 0 !important;
  margin-top: 10px !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  z-index: 10 !important;
}
.leaflet-popup-content .target-actions .btn-save-target,
.leaflet-popup-content .target-actions .btn-view-location {
  width: 100% !important;
  padding: 8px 12px !important;
  font-size: 11.5px !important;
  border-radius: 7px !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  text-align: center !important;
}
.leaflet-popup-content .target-actions .btn-view-location {
  background: #17232C !important;
  color: #D6A21C !important;
  border: 1px solid rgba(214,162,28,0.5) !important;
  order: 1 !important;
}
.leaflet-popup-content .target-actions .btn-view-location:hover {
  background: rgba(214,162,28,0.15) !important;
  color: #E7B83E !important;
}
.leaflet-popup-content .target-actions .btn-save-target {
  background: #D6A21C !important;
  color: #111111 !important;
  border: none !important;
  order: 2 !important;
}
.leaflet-popup-content .target-actions .btn-save-target:hover {
  background: #E7B83E !important;
}

/* 4. Status evidence only - kecilkan */
.leaflet-popup-content .target-status {
  font-size: 10.5px !important;
  color: #8A949B !important;
  padding: 6px 0 0 0 !important;
  border-top: 1px solid rgba(255,255,255,0.04) !important;
  margin-top: 4px !important;
}
.leaflet-popup-content .target-status small {
  color: #8A949B !important;
  font-style: italic !important;
}

/* 5. Responsive - di layar kecil, panel jadi bottom sheet */
@media (max-height: 700px) {
  .leaflet-popup-content:has(.target-panel) {
    max-height: 70vh !important;
  }
}
@media (max-height: 500px) {
  .leaflet-popup-content:has(.target-panel) {
    max-height: 78vh !important;
  }
}
/* ===== POLISH FINAL v2 ===== */

/* 1. ZOOM +/- : DARK normal, hover sedikit terang (BUKAN gold) */
.leaflet-control-zoom a,
.leaflet-bar a {
  background: #17232C !important;
  color: #F5F5F5 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  font-weight: 700 !important;
  transition: background 0.15s !important;
}
.leaflet-control-zoom a:hover,
.leaflet-bar a:hover {
  background: #1E2B35 !important;
  color: #F5F5F5 !important;
}
.leaflet-control-zoom a:active,
.leaflet-bar a:active {
  background: #0F171D !important;
}
.leaflet-control-zoom a.leaflet-disabled,
.leaflet-bar a.leaflet-disabled {
  background: #0F171D !important;
  color: #4A5560 !important;
  cursor: not-allowed !important;
}

/* 2. TOMBOL AIR : background GOLD, icon BIRU tetap */
.river-ctrl-btn {
  background: #D6A21C !important;
  border: 1px solid #D6A21C !important;
}
.river-ctrl-btn:hover {
  background: #E7B83E !important;
  border-color: #E7B83E !important;
}
.river-ctrl-btn.active {
  background: #E7B83E !important;
  border-color: #E7B83E !important;
}
/* Icon air: tetap biru */
.river-ctrl-btn svg path {
  fill: #3B82F6 !important;
  stroke: #1E40AF !important;
}
.river-ctrl-btn:hover svg path,
.river-ctrl-btn.active svg path {
  fill: #2563EB !important;
  stroke: #1E3A8A !important;
}

/* 3. HEADER STATUS : sembunyikan text panjang, tampilkan "API OK" saja */
header .header-status #status {
  font-size: 0 !important;
  line-height: 0 !important;
  position: relative !important;
}
header .header-status #status::before {
  content: 'API OK';
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #2ecc71 !important;
  letter-spacing: 0.3px !important;
  line-height: 1.2 !important;
}
header .header-status {
  gap: 7px !important;
}
/* ===== RIVER BTN BLACK FIX ===== */
/* Tombol air: background hitam seperti zoom, icon biru tetap */
.river-ctrl-btn {
  background: #17232C !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
}
.river-ctrl-btn:hover {
  background: #1E2B35 !important;
  border-color: rgba(255,255,255,0.15) !important;
}
.river-ctrl-btn.active {
  background: #1E2B35 !important;
  border-color: rgba(255,255,255,0.2) !important;
}
/* Icon air tetap BIRU */
.river-ctrl-btn svg path {
  fill: #3B82F6 !important;
  stroke: #1E40AF !important;
}
.river-ctrl-btn:hover svg path,
.river-ctrl-btn.active svg path {
  fill: #60A5FA !important;
  stroke: #2563EB !important;
}
/* ===== RIVER BTN MATCH ZOOM v2 ===== */
/* Samakan persis dengan zoom button (rgba + blur) */
.river-ctrl-btn {
  background: rgba(20,20,20,0.85) !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.45) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
}
.river-ctrl-btn:hover {
  background: rgba(217,154,0,0.85) !important;
}
.river-ctrl-btn.active {
  background: rgba(217,154,0,0.85) !important;
}
/* Icon air tetap BIRU */
.river-ctrl-btn svg path {
  fill: #3B82F6 !important;
  stroke: #1E40AF !important;
}
.river-ctrl-btn:hover svg path,
.river-ctrl-btn.active svg path {
  fill: #2563EB !important;
  stroke: #1E3A8A !important;
}
/* ===== HIDE TOPO LAYER ===== */
/* Sembunyikan checkbox Peta Topo + Sungai dari sidebar */
label.plain-label.layer-row:has(#toggle-opentopo),
label.plain-label:has(#toggle-opentopo) {
  display: none !important;
}
/* Fallback - kalau :has() tidak support, pakai sibling selector */
#toggle-opentopo {
  display: none !important;
}
#toggle-opentopo ~ span {
  display: none !important;
}
/* ===== CONTRAST FIX v1 - Search & Sidebar Readability ===== */

/* 1. Sidebar background */
aside {
  background: #101820 !important;
}

/* 2. Search card - lebih terang dari sidebar, ada border jelas */
aside .location-search {
  background: #18242D !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  margin-bottom: 14px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
}

/* 3. Judul "CARI LOKASI" - lebih terang */
aside .location-search label {
  color: #E8EDF0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin-bottom: 10px !important;
  display: block !important;
}

/* 4. Input - background gelap, border jelas, teks terang */
aside #location-search-input {
  background: #0F171D !important;
  color: #F3F5F6 !important;
  border: 1px solid rgba(255,255,255,0.20) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
  outline: none !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}
aside #location-search-input:focus {
  border-color: #D6A21C !important;
  box-shadow: 0 0 0 2px rgba(214,162,28,0.12) !important;
}
aside #location-search-input::placeholder {
  color: #AAB4BC !important;
  opacity: 1 !important;
}

/* 5. Tombol Cari - gold dengan shadow ringan */
aside #location-search-button {
  background: #D6A21C !important;
  color: #111111 !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 18px !important;
  font-size: 13px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(214,162,28,0.18) !important;
  transition: background 0.15s !important;
}
aside #location-search-button:hover {
  background: #E7B83E !important;
}

/* 6. Helper text - lebih terang */
aside .location-search-hint {
  color: #AEB8BF !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
  margin-top: 10px !important;
}

/* 7. Menu accordion - teks lebih terang */
aside details.menu-section summary,
aside details > summary {
  color: #E4E8EA !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
}

/* 8. Header subtitle - lebih terang */
header .brand-sub {
  color: #9FAAB2 !important;
}


/* 2026-09-19: Panel region — scroll + wrap nama panjang */
.region-info-panel {
  max-height: 220px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.region-info-panel .region-value {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  text-overflow: clip !important;
  max-width: 100% !important;
}

/* === H8 MARKER LABEL — FIX VISIBILITY === */
.h8-marker-label {
    background: rgba(15, 23, 29, 0.92) !important;
    color: #ffffff !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    border: 2px solid #d6a21c !important;
    font-weight: bold !important;
    font-size: 13px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
    white-space: nowrap !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8) !important;
}

/* ==== Sampling markers S1/S2/S3 ==== */
.sampling-marker { background: transparent; border: none; }
.sampling-pin {
  width: 26px; height: 26px;
  background: #8e44ad;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; font-family: Arial, sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.sampling-popup { min-width: 220px; font-size: 12px; }
.sampling-popup .meta { color: #666; margin: 2px 0 6px; }
.sampling-popup .reasons { margin: 6px 0; padding-left: 18px; }
.sampling-popup .reasons li { line-height: 1.5; }


/* === Companion Panel (polished) === */
.companion-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 340px;
  max-height: 78vh;
  background: #14171c;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  z-index: 9999;
  font-family: -apple-system, 'Segoe UI', Arial, sans-serif;
  color: #e5e7eb;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.companion-panel .cm-header {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.companion-panel .cm-header-left {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex: 1;
}
.companion-panel .cm-header-icon {
  font-size: 22px;
  line-height: 1;
  margin-top: 2px;
}
.companion-panel .cm-header-title {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  line-height: 1.2;
}
.companion-panel .cm-header-desc {
  font-size: 11.5px;
  color: rgba(255,255,255,0.88);
  margin-top: 4px;
  line-height: 1.4;
}
.companion-panel .cm-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.85;
  font-family: inherit;
}
.companion-panel .cm-close:hover { opacity: 1; }
.companion-panel .cm-body {
  padding: 10px 12px;
  overflow-y: auto;
  max-height: 56vh;
  flex: 1;
}
.companion-panel .cm-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.companion-panel .cm-card:last-child { margin-bottom: 0; }
.companion-panel .cm-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.companion-panel .cm-card-name {
  font-weight: 600;
  font-size: 13.5px;
  color: #f5f5f5;
}
.companion-panel .cm-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.companion-panel .cm-card-meta {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 4px;
}
.companion-panel .cm-card-desc {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.5;
}
.companion-panel .cm-footer {
  padding: 9px 14px;
  font-size: 10.5px;
  color: #9ca3af;
  background: rgba(0,0,0,0.35);
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  line-height: 1.4;
}

/* FIX: location search result text color */
.location-search-result {
  color: #111 !important;
  background: #f5f5f5 !important;
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
}
.location-search-result:hover {
  background: #e8e8e8 !important;
}
.location-search-result .result-name {
  color: #111 !important;
  font-weight: 600;
}
.location-search-result .result-subtitle {
  color: #666 !important;
  font-size: 11px;
}
.location-search-empty {
  color: #111 !important;
  padding: 8px;
  background: #f5f5f5;
}

/* FIX: location search result � gold accent */
.location-search-result {
  color: #f5f5f5 !important;
  background: #1a1d23 !important;
  padding: 8px 10px;
  border-bottom: 1px solid #2a2e35;
  border-left: 3px solid #d6a21c;
  transition: background 0.15s;
}
.location-search-result:hover {
  background: #23272e !important;
  border-left-color: #f0c419;
}
.location-search-result .result-name {
  color: #f0c419 !important;
  font-weight: 600;
  font-size: 13px;
}
.location-search-result .result-subtitle {
  color: #aaa !important;
  font-size: 11px;
}
.location-search-empty {
  color: #f0c419 !important;
  padding: 8px;
  background: #1a1d23;
  border-left: 3px solid #d6a21c;
}


/* === PALEODRAINAGE LAYER (EXPERIMENTAL) === */
.paleo-popup .leaflet-popup-content-wrapper {
  background: #17232C;
  color: #F5F5F5;
  border: 1px solid rgba(214, 162, 28, 0.4);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.paleo-popup .leaflet-popup-content {
  margin: 10px 12px;
  font-size: 12px;
  line-height: 1.4;
}
.paleo-popup .leaflet-popup-tip {
  background: #17232C;
  border: 1px solid rgba(214, 162, 28, 0.4);
}


/* === PALEODRAINAGE LABEL L1/L2/L3 === */
.paleo-label-icon {
  background: transparent !important;
  border: none !important;
}
.paleo-label-icon svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}


/* === PALEO EVIDENCE ROW — FORCE LIGHT COLOR === */
.paleo-evidence-row,
.paleo-evidence-row * {
  color: #F5F5F5 !important;
  background: transparent !important;
}

.paleo-evidence-row > div > div:first-child {
  color: #F5F5F5 !important;
  font-weight: 700 !important;
}

.paleo-evidence-row > div > div:nth-child(2) {
  color: #DDDDDD !important;
}

.paleo-evidence-row > div > div:nth-child(3) {
  color: #888888 !important;
  font-style: italic !important;
}

.paleo-evidence-row span {
  color: #D6A21C !important;
}


/* ============================================================
   LICENSE MODAL V2
   ============================================================ */
#license-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.license-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.license-panel {
  position: relative;
  background: #0F171D;
  border: 1px solid rgba(214, 162, 28, 0.3);
  border-radius: 14px;
  width: calc(100vw - 32px);
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  color: #F5F5F5;
}

.license-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(214, 162, 28, 0.15);
}

.license-title {
  font-size: 15px;
  font-weight: 700;
  color: #D6A21C;
}

.license-close {
  background: transparent;
  border: none;
  color: #888;
  font-size: 22px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.license-close:hover { background: rgba(255,255,255,0.08); color: #fff; }

.license-body { padding: 16px 18px 20px; }

.license-device-id {
  background: rgba(214, 162, 28, 0.08);
  border: 1px solid rgba(214, 162, 28, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 11px;
}

.license-device-id label {
  display: block;
  color: #888;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.license-uuid {
  color: #D6A21C;
  font-family: monospace;
  font-size: 11px;
  word-break: break-all;
  margin-bottom: 4px;
}

.license-device-type { color: #aaa; font-size: 10px; }
.license-device-type b { color: #F5F5F5; }

.license-input-group { margin-bottom: 12px; }

#license-code-input {
  width: 100%;
  padding: 12px 14px;
  background: #17232C;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #F5F5F5;
  font-family: monospace;
  font-size: 16px;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 8px;
  box-sizing: border-box;
}
#license-code-input:focus {
  outline: none;
  border-color: #D6A21C;
  box-shadow: 0 0 0 3px rgba(214, 162, 28, 0.15);
}

#license-activate-btn {
  width: 100%;
  padding: 12px 16px;
  background: #D6A21C;
  color: #111;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
#license-activate-btn:hover { background: #E6B22C; }
#license-activate-btn:disabled { opacity: 0.6; cursor: wait; }

.license-error {
  display: none;
  padding: 8px 12px;
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.4);
  border-radius: 6px;
  color: #e74c3c;
  font-size: 11px;
  margin-bottom: 12px;
}

.license-info {
  text-align: center;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 16px;
}
.license-info p { margin: 0; color: #888; font-size: 10.5px; }

.license-buy-box {
  text-align: center;
  padding: 14px;
  background: linear-gradient(135deg, rgba(214, 162, 28, 0.08) 0%, rgba(214, 162, 28, 0.15) 100%);
  border: 1px solid rgba(214, 162, 28, 0.3);
  border-radius: 10px;
}

.license-price-old {
  text-decoration: line-through;
  color: #888;
  font-size: 12px;
  display: none;
}

.license-price-badge {
  display: none;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
}

.license-price {
  font-size: 26px;
  font-weight: 800;
  color: #D6A21C;
  margin: 4px 0;
}

.license-price-note {
  color: #aaa;
  font-size: 11px;
  margin-bottom: 12px;
}

.license-buy-btn {
  display: block;
  padding: 12px 16px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}
.license-buy-btn:hover { background: #1eab52; }

.license-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #16a085;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  z-index: 999999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
  max-width: calc(100vw - 40px);
}
.license-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Hide ESDM + Paleo untuk user biasa */
body[data-admin="0"] #menu-esdm,
body[data-admin="0"] #paleo-toggle-wrap,
body:not([data-admin="1"]) #menu-esdm,
body:not([data-admin="1"]) #paleo-toggle-wrap {
  display: none !important;
}

/* Scan button: tetap clickable, JANGAN kabur */



/* ============================================================
   SCAN AREA — FORCE TERANG & JELAS
   ============================================================ */
#scan-area-floating,
#scan-area-btn,
.floating-scan-btn {
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal !important;
  cursor: pointer !important;
}

/* Override apapun yang bikin kabur */
body #scan-area-floating,
body #scan-area-btn,
body[data-license] #scan-area-floating,
body[data-license] #scan-area-btn,
body[data-license="inactive"] #scan-area-floating,
body[data-license="inactive"] #scan-area-btn {
  opacity: 1 !important;
  filter: none !important;
  visibility: visible !important;
}


/* ============================================================
   QUOTA HEADER BADGE (dekat API OK)
   ============================================================ */
.quota-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s;
  user-select: none;
}

.quota-header-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.quota-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.quota-text {
  line-height: 1;
  white-space: nowrap;
}

/* Mobile compact */
@media (max-width: 767px) {
  .quota-header-badge {
    padding: 3px 8px;
    font-size: 10px;
    gap: 4px;
  }
  .quota-header-badge .quota-dot {
    width: 5px;
    height: 5px;
  }
}


/* ============================================================
   DESKTOP ZOOM 3D FIX — turunkan panel +/−
   ============================================================ */
#terrain-modal .maplibregl-ctrl-top-right {
  top: 90px !important;
  right: 12px !important;
}

#terrain-modal .maplibregl-ctrl-top-right .maplibregl-ctrl-group {
  margin: 0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5) !important;
}

#terrain-modal .maplibregl-ctrl-group button {
  width: 32px !important;
  height: 32px !important;
  background: #111A21 !important;
  color: #D6A21C !important;
  border: none !important;
}

#terrain-modal .maplibregl-ctrl-group button + button {
  border-top: 1px solid rgba(214,162,28,0.2) !important;
}

/* ============================================================
   COMPASS MOBILE FIX — tampilkan kompas di HP
   ============================================================ */
@media (max-width: 767px) {
  /* Kompas: TAMPILKAN di mobile */
  #terrain-modal .maplibregl-ctrl-compass {
    display: flex !important;
    visibility: visible !important;
  }
  
  /* Panel kontrol: posisi biar kompas tidak numpuk toolbar */
  #terrain-modal .maplibregl-ctrl-top-right {
    top: 100px !important;
    right: 8px !important;
  }
  
  /* Ukuran kompas */
  #terrain-modal .maplibregl-ctrl-compass {
    width: 32px !important;
    height: 32px !important;
  }
  
  /* Tombol kompas */
  #terrain-modal .maplibregl-ctrl-compass button {
    background: #111A21 !important;
    color: #D6A21C !important;
    border: 1px solid rgba(214,162,28,0.3) !important;
    border-radius: 10px !important;
    width: 32px !important;
    height: 32px !important;
  }
}

/* Desktop: tampilkan kompas juga (biar bisa reset utara) */
#terrain-modal .maplibregl-ctrl-compass {
  display: flex !important;
}

/* ==== KILL OLD PROGRESS INDICATOR (2026-09-25) ==== */
#scan-progress-indicator,
#scan-ready-panel {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ==== WAIT_ANIMATION (2026-09-25) ==== */
@keyframes fsp-wait-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .35; transform: scale(1.4); }
}
.step5-p-dot.step5-p-waiting {
  animation: fsp-wait-pulse 1s ease-in-out infinite;
  background: #f59e0b !important;
  box-shadow: 0 0 12px rgba(245,158,11,.85) !important;
}
.step5-p-label.step5-p-waiting-text {
  color: #f59e0b !important;
  font-weight: 600 !important;
}

/* ==== SCAN BOX UX IMPROVE v1 (2026-09-25) ==== */
/* Kotak scan: tebal, terang, jelas bisa di-drag */

path.scan-rect-pulse,
.leaflet-interactive.scan-rect-pulse {
  stroke: #ff9500 !important;
  stroke-width: 3.5 !important;
  stroke-dasharray: 10 6 !important;
  stroke-opacity: 1 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  fill: #ff9500 !important;
  fill-opacity: 0.18 !important;
  filter: drop-shadow(0 0 8px rgba(255,149,0,0.75)) !important;
  cursor: grab !important;
  transition: stroke-width 0.15s ease, fill-opacity 0.15s ease !important;
}

path.scan-rect-pulse:hover,
.leaflet-interactive.scan-rect-pulse:hover {
  stroke-width: 4.5 !important;
  fill-opacity: 0.25 !important;
  filter: drop-shadow(0 0 12px rgba(255,149,0,0.95)) !important;
}

path.scan-rect-pulse:active {
  cursor: grabbing !important;
  stroke-width: 5 !important;
  fill-opacity: 0.3 !important;
}

/* Label ukuran di tengah kotak */
.fsp-size-label {
  background: rgba(255,149,0,0.95) !important;
  color: #111 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 5px 12px !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5) !important;
  white-space: nowrap !important;
  border: 2px solid rgba(255,255,255,0.4) !important;
}

.fsp-size-label::before {
  content: '\2194 ';  /* panah kiri-kanan */
  font-size: 15px;
  font-weight: 900;
}

/* Hint di bawah label ukuran */
.fsp-size-label-wrap::after {
  content: 'GESER UNTUK PINDAH LOKASI';
  display: block;
  text-align: center;
  margin-top: 5px;
  font-size: 10.5px;
  color: #ff9500;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 0 8px rgba(255,149,0,0.5);
  letter-spacing: 0.6px;
  animation: hintPulse 1.6s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.75; }
  50%      { opacity: 1; }
}

/* ==== MINE 2 COLORS (2026-09-27) ==== */
.mp-badge-gold {
  background: rgba(251,191,36,0.25) !important;
  color: #fbbf24 !important;
}
.mp-badge-black {
  background: rgba(30,30,30,0.9) !important;
  color: #999 !important;
}
.mine-dot-gold,
.mine-dot-grasberg,
[class*="mine-dot"][class*="gold"],
[class*="mine-dot"][class*="green"],
[class*="mine-dot"][class*="blue"],
[class*="mine-dot"][class*="orange"] {
  background: radial-gradient(circle at 35% 35%, #fbbf24, #d97706) !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 8px rgba(251,191,36,0.6) !important;
}
.mine-dot-black,
[class*="mine-dot"][class*="black"],
[class*="mine-dot"][class*="red"] {
  background: radial-gradient(circle at 35% 35%, #4a4a4a, #111) !important;
  border-color: #444 !important;
  box-shadow: 0 0 6px rgba(0,0,0,0.7) !important;
}

/* Legend dots override */
.ml-dot-gold {
  background: radial-gradient(circle at 35% 35%, #fbbf24, #d97706) !important;
}
.ml-dot-black {
  background: radial-gradient(circle at 35% 35%, #4a4a4a, #111) !important;
}

/* ==== MINE 2 COLORS FINAL (2026-09-27) ==== */
/* Default: semua marker tambang = KUNING (aktif) */
[class*="mine-dot-"] {
  background: radial-gradient(circle at 35% 35%, #fbbf24, #d97706) !important;
  border: 2px solid #fbbf24 !important;
  box-shadow: 0 0 8px rgba(251,191,36,0.75) !important;
}
[class*="mine-full-"] {
  color: #fbbf24 !important;
  text-shadow: 0 0 6px rgba(251,191,36,0.9) !important;
}

/* Override: tambang yang TUTUP = HITAM */
[class*="mine-dot-cikotok"],
[class*="mine-dot-kelian"],
[class*="mine-dot-waylinggo"] {
  background: radial-gradient(circle at 35% 35%, #4a4a4a, #111) !important;
  border: 2px solid #666 !important;
  box-shadow: 0 0 6px rgba(0,0,0,0.85) !important;
}
[class*="mine-full-cikotok"],
[class*="mine-full-kelian"],
[class*="mine-full-waylinggo"] {
  color: #666 !important;
  text-shadow: 0 0 4px rgba(0,0,0,0.9) !important;
}

/* ==== MINE COLORS FINAL v3 (2026-09-27) ==== */
/* Semua marker tambang = KUNING, override inline style juga */
[class*="mine-dot-"] {
  background: radial-gradient(circle at 35% 35%, #fbbf24, #d97706) !important;
  border: 2px solid #fbbf24 !important;
  box-shadow: 0 0 8px rgba(251,191,36,0.85) !important;
}
[class*="mine-dot-"] > div {
  background: transparent !important;
  border: 2px solid #fbbf24 !important;
  box-shadow: 0 0 6px rgba(251,191,36,0.9) !important;
}

/* Tutup = HITAM (override kuning di atas) */
[class*="mine-dot-cikotok"],
[class*="mine-dot-kelian"],
[class*="mine-dot-waylinggo"] {
  background: radial-gradient(circle at 35% 35%, #555, #111) !important;
  border: 2px solid #444 !important;
  box-shadow: 0 0 6px rgba(0,0,0,0.9) !important;
}
[class*="mine-dot-cikotok"] > div,
[class*="mine-dot-kelian"] > div,
[class*="mine-dot-waylinggo"] > div {
  border: 2px solid #444 !important;
  box-shadow: 0 0 6px rgba(0,0,0,0.9) !important;
}

/* Label teks nama tambang */
[class*="mine-full-"] {
  color: #fbbf24 !important;
  text-shadow: 0 0 6px rgba(251,191,36,0.9) !important;
}
[class*="mine-full-cikotok"],
[class*="mine-full-kelian"],
[class*="mine-full-waylinggo"] {
  color: #888 !important;
  text-shadow: 0 0 4px rgba(0,0,0,0.9) !important;
}

/* ==== FIX: hilangkan kotak dalam marker (2026-09-27) ==== */
[class*="mine-dot-"] > div {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
