:root {
  --bounty-accent: #779e18;
}
body.dark {
  --bounty-accent: #d4ff00;
}

main, .bounty-layout > *, .bounty-field, .bounty-panel { min-width: 0; }
[hidden] { display: none !important; }
button, input, select, summary { font: inherit; }
button, select, summary { cursor: pointer; }
a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--bounty-accent); outline-offset: 3px; }

.bounty-skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--lime);
  color: #111317;
  border-radius: var(--r-pill);
}
.bounty-skip:focus { top: 12px; }
.bounty-eyebrow {
  margin: 0 0 10px;
  color: var(--bounty-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.bounty-eyebrow > span, .bounty-live > span.bounty-dot, .bounty-live > span:first-child {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
}
.bounty-live {
  display: inline-flex;
  align-items: center;
  color: var(--gain);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}
.bounty-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Toolbar & Pilihan Bountiful */
.bounty-toolbar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 1fr);
  gap: clamp(16px, 1.5vw, 24px);
  align-items: start;
}
@media (max-width: 960px) {
  .bounty-toolbar-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.bounty-crop-selector-wrap,
.bounty-world-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.bounty-crop-selector-wrap label,
.bounty-world-slider-wrap label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--tx-2);
}
.bounty-crop-selector-wrap .hint,
.bounty-world-slider-wrap .hint {
  font-size: 11px;
  color: var(--mu);
  font-weight: 500;
}

/* Select Tanaman Rounded dengan Custom Arrow (seperti calc massing) */
.bounty-select-styled {
  width: 100%;
  height: 46px;
  border-radius: var(--r-inp); /* 14px rounded */
  border: 1px solid var(--bd);
  background: var(--inp);
  color: var(--tx);
  padding: 0 40px 0 16px;
  font-size: 13.5px;
  font-weight: 700;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.bounty-select-styled:hover {
  background-color: var(--inp-hv);
  border-color: var(--bd-strong, rgba(255, 255, 255, 0.22));
}
.bounty-select-styled:focus {
  outline: none;
  background-color: var(--card);
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(212, 255, 0, 0.22);
}

#bReset {
  height: 46px;
  border-radius: var(--r-pill);
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bounty-crop-summary-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 12px 16px;
  background: var(--card-soft);
  border: 1px solid var(--bd-soft);
  border-radius: 16px;
}
.bounty-mini-art {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 80%, rgba(212,255,0,0.22), transparent 72%);
  flex-shrink: 0;
}
.bounty-mini-art img {
  image-rendering: pixelated;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25));
}
.bounty-mini-meta {
  flex: 1;
  min-width: 0;
}
.bounty-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.bounty-meta-row strong {
  font-size: 14px;
  font-weight: 800;
}
.bounty-wiki-link {
  font-size: 11px;
  color: var(--mu);
  text-decoration: none;
  font-weight: 600;
}
.bounty-wiki-link:hover {
  color: var(--lime);
}
.bounty-mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--mu);
}
.bounty-mini-badges b {
  color: var(--tx);
}

.bounty-slider-box {
  background: var(--inp);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 12px 16px 10px;
}
.bounty-slider-box input[type="range"] {
  display: block;
  width: 100%;
  accent-color: var(--lime);
  cursor: pointer;
  margin: 6px 0 8px;
}
.bounty-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--mu);
  font-weight: 600;
}
.bounty-slot-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.bounty-preset-label {
  font-size: 11px;
  color: var(--mu);
  font-weight: 600;
}
.bounty-preset-slot {
  font-size: 11.5px !important;
  border-radius: var(--r-pill) !important;
  cursor: pointer;
  padding: 5px 12px;
  transition: all 0.15s ease;
}
.bounty-preset-slot:hover {
  background: var(--card-soft);
  border-color: var(--lime);
  color: var(--tx);
}

/* Formulir 2 Kolom Bento */
.bounty-form-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 24px;
}
@media (max-width: 960px) {
  .bounty-form-bento {
    grid-template-columns: minmax(0, 1fr);
  }
}
.card-head-bento {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.card-title-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.bounty-step {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--inp);
  color: var(--bounty-accent);
  font: 700 11px 'JetBrains Mono', monospace;
  margin-top: 2px;
}
.card-title-group h2 {
  margin: 0;
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.card-title-group .desc {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--mu);
  line-height: 1.5;
}

/* Seluruh Input & Select Rounded (Sesuai Gaya Calc Massing) */
.bounty-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  min-width: 0;
}
.bounty-field:last-child {
  margin-bottom: 0;
}
.bounty-field label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  color: var(--tx-2);
  font-size: 11.5px;
  font-weight: 700;
}
.bounty-field input,
.bounty-field select {
  width: 100%;
  min-width: 0;
  height: 46px;
  border-radius: var(--r-inp); /* 14px rounded persis calc.html */
  border: 1px solid var(--bd);
  background: var(--inp);
  color: var(--tx);
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: none;
  transition: all 0.15s ease;
}
.bounty-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  cursor: pointer;
}
.bounty-field input:hover,
.bounty-field select:hover {
  background-color: var(--inp-hv);
  border-color: var(--bd-strong, rgba(255, 255, 255, 0.22));
}
.bounty-field input:focus,
.bounty-field select:focus {
  outline: none;
  background-color: var(--card);
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(212, 255, 0, 0.22);
}
.bounty-field input::placeholder {
  color: var(--mu);
  font-size: 12px;
  opacity: 1;
}
.bounty-field input[aria-invalid="true"],
.bounty-field select[aria-invalid="true"] {
  border-color: var(--loss);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}
.bounty-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bounty-field-grid > .bounty-field {
  margin-bottom: 16px;
}
.bounty-help {
  font-size: 11px;
  color: var(--mu);
  line-height: 1.7;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
.bounty-field .bounty-help {
  margin: 0;
  font-weight: 400;
}
.bounty-required, .bounty-optional, .bounty-assumption {
  font-size: 9px;
  font-weight: 600;
}
.bounty-required, .bounty-optional {
  color: var(--mu);
}
.bounty-assumption {
  color: var(--bounty-accent);
  background: var(--inp);
  padding: 3px 7px;
  border-radius: 6px;
  white-space: normal;
}
.bounty-price-hint {
  color: var(--mu);
  font: 10.5px 'JetBrains Mono', monospace;
  min-height: 0;
  overflow-wrap: anywhere;
}
.bounty-price-hint:empty {
  display: none;
}

.bounty-toggle {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  padding: 14px 16px;
  background: var(--card-soft);
  border: 1px solid var(--bd-soft);
  border-radius: 16px;
  transition: all 0.15s ease;
}
.bounty-toggle:hover {
  background: var(--inp);
  border-color: var(--bd);
}
.bounty-toggle input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--lime);
}
.bounty-toggle strong {
  display: block;
  font-size: 12px;
  color: var(--tx);
}
.bounty-toggle small {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  color: var(--mu);
  margin-top: 4px;
}

.bounty-mode-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--bg);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--bd);
  margin-top: 6px;
}
.bounty-mode-btn {
  flex: 1 1 120px;
  background: transparent;
  color: var(--mu);
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  line-height: 1.35;
}
.bounty-mode-btn:hover {
  color: var(--tx);
  background: rgba(255, 255, 255, 0.04);
}
.bounty-mode-btn.is-active {
  background: var(--card);
  color: var(--tx);
  border-color: rgba(142, 237, 24, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(142, 237, 24, 0.2);
}
@media (max-width: 600px) {
  .bounty-mode-toggle {
    flex-direction: column;
    gap: 4px;
  }
  .bounty-mode-btn {
    padding: 7px 8px;
    font-size: 11px;
  }
}

.bounty-root-track {
  display: flex;
  gap: 6px;
  margin: 10px 0;
}
.bounty-root-track > span {
  flex: 1;
  text-align: center;
  border-radius: 10px;
  padding: 8px 4px;
  background: var(--inp);
  color: var(--mu);
  font-size: 11px;
  font-weight: 700;
  transition: all 0.15s ease;
}
.bounty-root-track > .planned {
  color: var(--bounty-accent);
  border-bottom: 2px solid var(--bounty-accent);
}
.bounty-root-track > .done {
  background: var(--lime);
  color: #111317;
}

.bounty-settings summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 36px;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.bounty-settings summary > span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bounty-settings summary::after {
  content: '+';
  color: var(--mu);
  font-size: 20px;
}
.bounty-settings[open] summary::after {
  content: '−';
}
.bounty-settings[open] summary {
  margin-bottom: 20px;
}
.bounty-settings summary::-webkit-details-marker {
  display: none;
}

.bounty-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  border: 0;
  min-height: 48px;
  padding: 12px 22px;
  background: var(--lime);
  color: #111317;
  border-radius: var(--r-pill); /* pill rounded */
  font-weight: 800 !important;
  font-size: 13.5px !important;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(212, 255, 0, 0.2);
}
.bounty-primary:hover {
  background: var(--lime-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 255, 0, 0.28);
}
.bounty-secondary {
  min-height: 44px;
  padding: 10px 20px;
  color: var(--tx);
  background: var(--inp);
  border: 1px solid var(--bd);
  border-radius: var(--r-pill);
  font-weight: 700 !important;
  font-size: 12.5px !important;
  cursor: pointer;
  transition: all 0.15s ease;
}
.bounty-secondary:hover {
  background: var(--card-soft);
  border-color: var(--bd-strong, rgba(255, 255, 255, 0.25));
}

/* Hasil Komparasi Bento */
.bounty-results {
  scroll-margin-top: 20px;
}
.bounty-model-note {
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--card-soft);
  border: 1px solid var(--bd-soft);
  color: var(--mu);
  line-height: 1.7;
  font-size: 11.5px;
  margin: 14px 0 20px;
  overflow-wrap: anywhere;
}
.bounty-empty {
  display: flex;
  min-height: 320px;
  padding: 32px;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  background: var(--card-soft);
  border: 1px dashed var(--bd);
  border-radius: var(--r-card);
}
.bounty-empty-icon {
  display: grid;
  place-items: center;
  background: var(--inp);
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: var(--bounty-accent);
  font-size: 25px;
}
.bounty-empty h3 {
  font-size: 21px;
  letter-spacing: -.02em;
  line-height: 1.4;
  margin: 18px 0 10px;
}
.bounty-empty p {
  max-width: 360px;
  font-size: 12px;
  color: var(--mu);
  line-height: 1.8;
  margin: 0 0 20px;
}

.bounty-comparison {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bounty-quick-card {
  background: linear-gradient(135deg, rgba(142, 237, 24, 0.08) 0%, rgba(17, 19, 23, 0.6) 100%);
  border: 1px solid rgba(142, 237, 24, 0.25);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.bounty-quick-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 14px;
}
.bounty-quick-title .badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  background: rgba(142, 237, 24, 0.15);
  color: var(--lime);
  border-radius: 999px;
  border: 1px solid rgba(142, 237, 24, 0.3);
}
.bounty-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.bounty-quick-item {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bounty-quick-item span {
  font-size: 11px;
  color: var(--mu);
  line-height: 1.3;
}
.bounty-quick-item strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--tx);
  font-family: 'JetBrains Mono', monospace;
}
.bounty-quick-item strong.highlight {
  color: var(--lime);
}
.bounty-quick-foot {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--mu);
  border-top: 1px dashed var(--bd);
  padding-top: 10px;
  margin-top: 4px;
}
.bounty-quick-foot strong {
  color: var(--tx);
}
@media (max-width: 768px) {
  .bounty-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}
.bounty-strategy {
  min-width: 0;
  padding: 22px 20px 18px;
  background: var(--card-soft);
  border: 1px solid var(--bd-soft);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bounty-strategy.is-best {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime), 0 8px 24px rgba(212, 255, 0, 0.08);
}
.bounty-strategy-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 29px;
  margin-bottom: 12px;
}
.bounty-strategy-number {
  color: var(--mu);
  font: 700 12px 'JetBrains Mono', monospace;
}
.bounty-best-tag {
  padding: 4px 8px;
  background: var(--lime);
  color: #111317;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 800;
}
.bounty-strategy-mode {
  color: var(--mu);
  font-size: 10px;
  padding: 4px 0;
}
.bounty-strategy h3 {
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 6px;
  letter-spacing: -.02em;
  font-weight: 800;
}
.bounty-strategy-desc {
  min-height: 36px;
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
  color: var(--mu);
}
.bounty-profit {
  padding: 16px 0;
  border-bottom: 1px solid var(--bd);
}
.bounty-profit > span {
  display: block;
  color: var(--mu);
  font-size: 10px;
}
.bounty-profit > strong {
  display: block;
  font: 700 clamp(18px, 1.7vw, 26px)/1.4 'JetBrains Mono', monospace;
  letter-spacing: -.04em;
  margin: 6px 0 2px;
  overflow-wrap: anywhere;
}
.bounty-profit > small {
  display: block;
  color: var(--mu);
  font-size: 10px;
}
.bounty-gain { color: var(--gain); }
.bounty-loss { color: var(--loss); }

.bounty-strategy-money {
  margin: 14px 0;
  display: grid;
  gap: 8px;
}
.bounty-strategy-money > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.bounty-strategy-money dt {
  color: var(--mu);
  font-size: 10.5px;
}
.bounty-strategy-money dd {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.bounty-strategy-yields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
  background: var(--card);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--bd-soft);
}
.bounty-strategy-yields > div:last-child {
  grid-column: 1 / -1;
}
.bounty-strategy-yields span {
  display: block;
  color: var(--mu);
  font-size: 10px;
}
.bounty-strategy-yields strong {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.bounty-strategy-yields small {
  display: block;
  font-size: 10px;
  line-height: 1.4;
  color: var(--gain);
  font-weight: 700;
  margin-top: 2px;
}
.bounty-strategy-yields small:empty { display: none; }
.bounty-shortfall, .bounty-strategy-foot {
  font-size: 10px;
  line-height: 1.7;
  margin: 10px 0 0;
  color: var(--mu);
}
.bounty-shortfall {
  color: var(--warn-tx);
}
.bounty-value-note {
  font-size: 11px;
  line-height: 1.8;
  color: var(--mu);
  margin: 16px 2px 22px;
}
.bounty-notice {
  padding: 12px 16px;
  border: 1px solid var(--warn-bd);
  color: var(--warn-tx);
  background: var(--warn-bg);
  border-radius: 14px;
  font-size: 11.5px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.bounty-detail-panel {
  margin-top: 24px;
}
.bounty-detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}
.bounty-detail-heading h3 {
  font-size: 16px;
  letter-spacing: -.02em;
  margin: 0;
  font-weight: 800;
}

#bDetailStrategy {
  height: 42px;
  border-radius: var(--r-inp); /* 14px rounded */
  border: 1px solid var(--bd);
  background: var(--inp);
  color: var(--tx);
  padding: 0 38px 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}
#bDetailStrategy:hover {
  background-color: var(--inp-hv);
}
#bDetailStrategy:focus {
  outline: none;
  background-color: var(--card);
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(212, 255, 0, 0.22);
}

.bounty-table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin-bottom: 20px;
  scrollbar-width: thin;
}
.bounty-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 550px;
  font-size: 12px;
}
.bounty-table th, .bounty-table td {
  padding: 12px 10px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--bd-soft);
}
.bounty-table thead th {
  font-size: 11px;
  color: var(--mu);
  font-weight: 600;
  background: var(--card-soft);
}
.bounty-table th:first-child {
  text-align: left;
  border-radius: 8px 0 0 8px;
}
.bounty-table thead th:last-child {
  border-radius: 0 8px 8px 0;
}
.bounty-table td {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.bounty-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.bounty-ledger dl {
  margin: 0;
  min-width: 0;
}
.bounty-ledger dl:last-child {
  grid-column: 1 / -1;
  background: var(--card-soft);
  border-radius: 16px;
  padding: 16px 18px;
}
.bounty-ledger dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 6px 0;
  font-size: 11px;
}
.bounty-ledger dt { color: var(--mu); }
.bounty-ledger dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.bounty-ledger-total {
  border-top: 1px solid var(--bd);
  margin-top: 5px;
  padding-top: 10px !important;
}
.bounty-ledger-total dt { color: var(--tx); font-weight: 800; }

.bounty-sources { margin-top: 22px; }
.bounty-sources summary { padding: 4px 0; min-height: 36px; font-size: 13px; font-weight: 700; cursor: pointer; }
.bounty-sources p { font-size: 11.5px; color: var(--mu); line-height: 1.8; }
.bounty-source-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.bounty-source-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--tx-2); font-size: 11.5px; text-underline-offset: 4px; }
.bounty-source-links a:hover { color: var(--lime); }
.bounty-errors {
  border: 1px solid var(--loss);
  padding: 16px;
  border-radius: 16px;
  color: var(--loss);
  font-size: 11.5px;
}
.bounty-errors ul { padding-left: 18px; margin-bottom: 0; }
.bounty-errors li + li { margin-top: 6px; }
.bounty-errors a { color: inherit; }
.bounty-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--mu);
  font-size: 11px;
}

/* ========================================================
   MODAL PANDUAN LENGKAP BOUNTIFUL FARM (SPACIOUS & MODERN)
   ======================================================== */
.guide-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadeIn 0.16s ease;
}
.guide-modal-backdrop[hidden] {
  display: none !important;
}
.guide-modal {
  width: 100%;
  max-width: 860px;
  max-height: min(90vh, 840px);
  background: var(--card);
  color: var(--tx);
  border-radius: 28px;
  border: 1px solid var(--bd-soft);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.guide-head {
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--bd);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.guide-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.guide-close {
  flex-shrink: 0;
}

/* Tab Bar Luas & Lega dengan Jarak Bersih Antar Baris/Kolom */
.guide-tabs-bar {
  padding: 16px 28px 14px;
  border-bottom: 1px solid var(--bd-soft);
  background: var(--card-soft);
}
.guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px; /* Jarak vertikal 10px & horizontal 12px - tidak akan berhimpitan */
  align-items: center;
}
.guide-tab {
  padding: 8px 18px;
  border-radius: var(--r-pill); /* Pill rounded */
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mu);
  background: var(--card);
  border: 1px solid var(--bd);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1.4;
  outline: none;
}
.guide-tab:hover {
  color: var(--tx);
  background: var(--inp-hv);
  border-color: var(--bd-strong, rgba(255, 255, 255, 0.25));
  transform: translateY(-1px);
}
.guide-tab.active {
  color: #111317;
  background: var(--lime);
  border-color: var(--lime-2);
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(212, 255, 0, 0.28);
  transform: none;
}

/* Konten Panduan Lega */
.guide-body {
  padding: 26px 28px 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.guide-body .gtab-pane {
  display: none;
}
.guide-body .gtab-pane.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.guide-body .g-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.guide-body .g-card {
  background: var(--card-soft);
  border: 1px solid var(--bd);
  border-radius: 18px;
  padding: 18px 20px;
}
.guide-body .g-card.highlight {
  background: var(--lime-soft);
  color: #111317;
  border-color: #d9f94a;
}
.guide-body .g-card.highlight p,
.guide-body .g-card.highlight li {
  color: #262b16;
}

.guide-modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--bd);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--card);
}

@media (max-width: 1280px) {
  .bounty-comparison { grid-template-columns: 1fr; }
  .bounty-strategy { display: grid; grid-template-columns: 1fr 1.15fr; column-gap: 22px; padding: 20px; }
  .bounty-strategy-top, .bounty-strategy h3, .bounty-strategy-desc, .bounty-profit { grid-column: 1; }
  .bounty-strategy-top { margin-bottom: 8px; }
  .bounty-strategy-money { grid-column: 2; grid-row: 1 / 5; align-self: center; margin: 0; }
  .bounty-profit { border-bottom: 0; padding: 13px 0 0; }
  .bounty-profit > strong { font-size: 24px; }
  .bounty-strategy-yields { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
  .bounty-strategy-yields > div:last-child { grid-column: auto; }
  .bounty-shortfall, .bounty-strategy-foot { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .bounty-toolbar-grid { grid-template-columns: minmax(0, 1fr); }
  .bounty-form-bento { grid-template-columns: minmax(0, 1fr); }
  .bounty-field input, .bounty-field select { font-size: 16px; }
}

@media (max-width: 640px) {
  .bounty-ledger { grid-template-columns: 1fr; }
  .bounty-strategy { display: flex; flex-direction: column; }
  .bounty-strategy-money { margin: 14px 0; }
  .bounty-strategy-yields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-modal {
    max-height: 92vh;
    border-radius: 22px;
  }
  .guide-head {
    padding: 16px 18px 14px;
  }
  .guide-tabs-bar {
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .guide-tabs-bar::-webkit-scrollbar {
    display: none;
  }
  .guide-tabs {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .guide-tab {
    flex-shrink: 0;
    font-size: 11.5px;
    padding: 7px 14px;
  }
  .guide-body {
    padding: 18px 18px 20px;
    gap: 14px;
  }
  .guide-body .g-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .guide-modal-footer {
    padding: 14px 18px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .bounty-field-grid { grid-template-columns: 1fr; gap: 0; }
  .bounty-strategy-yields { grid-template-columns: 1fr; }
  .bounty-crop-summary-bar { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
