@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* ---------- Tokens ---------- */
:root {
  --bg: #0d120f;
  --bg-soft: #141a16;
  --surface: #1a211c;
  --surface-hover: #202920;
  --surface-alt: #131812;

  --text: #f3f0e7;
  --text-muted: #9ca69c;
  --text-soft: #c3c9c1;
  --ink: #f3f0e7;
  --ink-soft: #c3c9c1;
  --muted: #9ca69c;

  --green: #4f9b70;
  --green-dark: #2c6448;
  --teal: #4f9b70;
  --gold: #d8a744;
  --gold-soft: #e8c875;
  --danger: #e07a68;
  --danger-soft: rgba(224, 122, 104, 0.12);

  --primary: #4f9b70;
  --primary-soft: #5ca77c;
  --on-primary: #ffffff;

  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --container: 1180px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}

p { margin: 0 0 1em; max-width: 62ch; color: var(--text-muted); }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.num { font-variant-numeric: tabular-nums; font-weight: 700; }

.muted { color: var(--text-muted); font-size: 0.85rem; }

.link-btn { background: none; border: none; padding: 0; color: var(--text-muted); font-weight: 600; cursor: pointer; }
.link-btn:hover { color: var(--text); }

/* ---------- Container ---------- */
.wrap {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

section { padding: 110px 0; }

/* ---------- Navbar ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 76px;
  background: rgba(13, 18, 15, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.wrap.nav-row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand .mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.brand .mark svg { width: 18px; height: 18px; stroke: #f3f0e7; }

nav.links {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav.links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}

nav.links a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-greeting {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}

.hamburger svg { width: 20px; height: 20px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 16px;
}

.mobile-menu.open {
  display: flex;
  padding-top: 14px;
}

.mobile-menu a,
.mobile-menu .link-btn {
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
  text-align: left;
}

.mobile-menu a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover { background: var(--primary-soft); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-light);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(224, 122, 104, 0.4);
}
.btn-danger:hover { background: var(--danger-soft); }

.btn-sm { min-height: 38px; padding: 0 14px; font-size: 11px; }

.btn-block { width: 100%; }

.icon-btn {
  width: 46px;
  height: 46px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover { color: var(--green); border-color: var(--green); }

.icon-btn svg { width: 18px; height: 18px; }

.icon-btn-solid {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-primary);
}
.icon-btn-solid:hover { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--on-primary); }

.btn-remove {
  width: 38px;
  height: 38px;
  flex: none;
  background: none;
  border: 1px solid rgba(224, 122, 104, 0.4);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.btn-remove:hover { background: var(--danger-soft); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }

label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}

input,
select,
textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: var(--text);
  background: #111611;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  outline: none;
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }

select option { background: #141a16; }

input:focus,
select:focus,
textarea:focus { border-color: var(--green); }

input[type="checkbox"] { width: auto; height: auto; }

input[type="file"] {
  width: auto;
  height: auto;
  padding: 0;
  background: none;
  border: 0;
  display: none;
}

.file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  padding: 10px 12px;
  background: #111611;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.file-upload:hover,
.file-upload.dragover { border-color: var(--green); }

.file-upload .file-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: rgba(79, 155, 112, 0.12);
  border-radius: var(--radius-sm);
  color: var(--green);
}

.file-upload .file-text { min-width: 0; }

.file-upload .file-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-upload .file-hint { font-size: 11px; color: var(--text-muted); }

.file-upload.has-file { border-style: solid; border-color: rgba(79, 155, 112, 0.45); }

.field-error {
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
}

.success-line {
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 10px 14px;
  border: 1px solid rgba(79, 155, 112, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(79, 155, 112, 0.1);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 640px) { .field-grid { grid-template-columns: 1fr; } }

.js-row {
  display: grid;
  grid-template-columns: 1fr 90px auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
@media (max-width: 420px) { .js-row { grid-template-columns: 1fr; align-items: stretch; } }

.divider { border-top: 1px solid var(--border); margin: 24px 0; }

/* ---------- Section heads ---------- */
.section-head { max-width: 64ch; margin-bottom: 44px; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 15px;
}

.section-tag::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--green);
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-bottom: 16px;
}

.section-head p {
  max-width: 580px;
  font-size: 15px;
  color: var(--text-muted);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 120px;
  background:
    radial-gradient(circle at 15% 20%, rgba(79, 155, 112, 0.13), transparent 35%),
    radial-gradient(circle at 85% 60%, rgba(216, 167, 68, 0.06), transparent 30%),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: start;
}

.hero-copy h1 {
  max-width: 650px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin-bottom: 28px;
}

.hero-copy p.lede {
  max-width: 570px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 34px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }

.trust-row { display: flex; gap: 28px; flex-wrap: wrap; align-items: baseline; }

.trust-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.trust-item .num {
  display: inline;
  color: var(--gold);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.trust-item span.label {
  display: inline;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Calculator ---------- */
.calc-card {
  position: relative;
  padding: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.04);
}

.calc-card h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 5px; }

.calc-card .sub {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 26px;
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr 90px auto;
  gap: 8px;
  margin-bottom: 24px;
}
@media (max-width: 420px) { .calc-row { grid-template-columns: 1fr; } }

.calc-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }

.calc-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  color: var(--text-soft);
}

.calc-item-row .rm {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--danger);
  font-size: 1.1rem;
  line-height: 1;
  padding: 2px 6px;
}

.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.calc-total .amount { color: var(--gold); font-size: 27px; }

.empty-note {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 18px;
}

.calc-card .btn-block { margin-top: 20px; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 55px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.step {
  min-height: 250px;
  padding: 30px;
  border-right: 1px solid var(--border);
  transition: background 0.25s ease;
}

.step:last-child { border-right: none; }
.step:hover { background: rgba(255, 255, 255, 0.025); }

.step-no {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 35px;
  border-radius: var(--radius-sm);
  background: rgba(79, 155, 112, 0.14);
  color: var(--green);
  font-weight: 800;
  font-size: 17px;
}

.step h4 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 13px; line-height: 1.7; }

/* ---------- Plastic types ---------- */
.waste-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 55px;
}

.waste-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 240px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.waste-card:hover {
  transform: translateY(-6px);
  background: var(--surface-hover);
  border-color: rgba(79, 155, 112, 0.35);
}

.waste-card .ic {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  border-radius: 10px;
  background: rgba(79, 155, 112, 0.12);
}

.waste-card .ic svg { width: 22px; height: 22px; stroke: var(--green); }

.waste-card h4 { font-size: 16px; margin-bottom: 7px; }

.waste-card p {
  min-height: 45px;
  font-size: 12px;
  color: var(--text-muted);
}

.waste-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 21px;
  font-weight: 800;
  color: var(--gold);
}

.waste-price span {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-disclaimer {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 26px;
}

/* ---------- CTA ---------- */
#jual {
  padding: 130px 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 155, 112, 0.14), transparent 55%),
    var(--bg);
}

#jual .form-card {
  position: relative;
  overflow: hidden;
  padding: 80px 40px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

#jual .form-card::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  opacity: 0.08;
  filter: blur(70px);
  border-radius: 50%;
}

#jual .form-card > * { position: relative; }

#jual .section-head { margin: 0 auto 30px; }

#jual h2 {
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.045em;
  margin-bottom: 14px;
}

#jual p {
  max-width: 580px;
  margin: 0 auto;
}

.hero-cta.justify-c { justify-content: center; }

/* ---------- Inner pages ---------- */
.page { padding: 56px 0 96px; }

.page-head { margin-bottom: 36px; }

.page-head h1 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.page-head p { font-size: 15px; color: var(--text-muted); }

.two-col {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.action-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Cards & data ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.panel-sm { padding: 18px 20px; }
.panel h2 { font-size: 15px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
}

.stat-card {
  display: block;
  background: none;
  border: 0;
  padding: 20px;
  transition: background 0.2s ease;
}
.stat-card + .stat-card { border-left: 1px solid var(--border); }
.stat-card:hover { background: rgba(255, 255, 255, 0.03); }

.stat-card .label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.stat-card .value { font-size: 25px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.stat-card .value.gold { color: var(--gold); }

.saldo-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 30px;
  background: rgba(79, 155, 112, 0.08);
  border: 1px solid rgba(79, 155, 112, 0.3);
  border-radius: var(--radius-lg);
}

.saldo-card .label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.saldo-card .amount { font-size: clamp(28px, 4vw, 38px); font-weight: 800; color: var(--gold); letter-spacing: -0.03em; }

.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-list > a { text-decoration: none; }

.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color 0.2s ease;
}

.order-card:hover { border-color: rgba(79, 155, 112, 0.35); }

.order-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.order-id { font-size: 14px; font-weight: 700; color: var(--text); }
.order-date {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
}

.order-amount { margin-top: 10px; font-size: 18px; font-weight: 800; color: var(--gold); }
.order-amount .muted { font-weight: 600; font-size: 12px; }

.order-items { margin-top: 8px; font-size: 12px; color: var(--text-muted); }

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

.empty-state a { color: var(--green); font-weight: 700; }

/* ---------- Withdraw ---------- */
.withdraw-box {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.rekening-details { margin-top: 14px; }

.rekening-details summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.rekening-details summary:hover { border-color: var(--green); color: var(--text); }

.rekening-details summary::marker { content: none; }

.rekening-details summary::-webkit-details-marker { display: none; }

.rekening-details summary::after {
  content: '+';
  font-size: 15px;
  line-height: 1;
  color: var(--text-muted);
}

.rekening-details[open] summary::after { content: '-'; }

.bukti-details summary {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  cursor: pointer;
  white-space: nowrap;
}

.bukti-details summary::-webkit-details-marker { display: none; }

.bukti-details img {
  display: block;
  max-width: 220px;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.withdraw-box form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.withdraw-box .field { flex: 1; min-width: 220px; }

/* ---------- Summary & calc form ---------- */
.form-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.form-summary .amount { font-size: 22px; font-weight: 800; color: var(--gold); }
.form-summary .amount + .amount { margin-left: 18px; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

table.records {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
}

table.records th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

table.records td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-soft);
}

table.records tr:last-child td { border-bottom: none; }
table.records tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }

/* ---------- Alur & detail ---------- */
.segments { display: flex; gap: 8px; margin: 18px 0; flex-wrap: wrap; }

.segments .seg {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}

.segments .seg.done {
  background: var(--green);
  border-color: var(--green);
  color: #0d120f;
}

.seg-label { font-size: 12px; color: var(--text-muted); }
.seg-label.done { color: var(--text); font-weight: 700; }

/* ---------- Status & filter ---------- */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-soft);
  white-space: nowrap;
}

.badge-menunggu_konfirmasi,
.badge-diajukan { color: var(--gold); border-color: rgba(216, 167, 68, 0.4); }

.badge-dijadwalkan,
.badge-disetujui { color: var(--green); border-color: rgba(79, 155, 112, 0.4); }

.badge-dijemput { color: var(--text); border-color: var(--border-light); }
.badge-selesai { color: var(--green); border-color: var(--green); }
.badge-dibatalkan,
.badge-ditolak { color: var(--danger); border-color: rgba(224, 122, 104, 0.4); }

.chip {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  margin-right: 6px;
  margin-bottom: 6px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.chip:hover { background: var(--surface); color: var(--text); }

.chip.active {
  background: var(--green);
  border-color: var(--green);
  color: #0d120f;
}

/* ---------- Alerts ---------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 20px;
}

.alert.success {
  background: rgba(79, 155, 112, 0.12);
  border: 1px solid rgba(79, 155, 112, 0.35);
  color: var(--green);
}

.alert.error {
  background: var(--danger-soft);
  border: 1px solid rgba(224, 122, 104, 0.35);
  color: var(--danger);
}

/* ---------- Pager ---------- */
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pager a { text-decoration: none; }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 48px 0 88px; }

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}

.auth-card h1 { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-muted); font-size: 14px; margin-bottom: 26px; }
.auth-card .auth-alt { margin-top: 18px; font-size: 13px; color: var(--text-muted); text-align: center; }
.auth-card .auth-alt a { color: var(--green); font-weight: 700; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  gap: 10px;
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-light);
}
.btn-google:hover { background: var(--surface-hover); border-color: rgba(255, 255, 255, 0.2); }
.btn-google svg { width: 18px; height: 18px; flex: none; }

/* ---------- Footer ---------- */
footer {
  padding: 65px 0 35px;
  background: #0a0f0c;
  border-top: 1px solid var(--border);
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-bottom: 40px;
}

.footer-row > div:first-child .brand { margin-bottom: 10px; }

.footer-row .brand .mark { background: rgba(255, 255, 255, 0.06); }

footer p {
  max-width: 320px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-row > div:last-child p { max-width: none; }

/* ---------- Reveal motion ---------- */
.js-rv .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-rv .reveal.is-visible { opacity: 1; transform: none; }

.js-rv .calc-card.d2 { transition-delay: 0.1s; }

.js-rv .steps .step:nth-child(2),
.js-rv .waste-grid .waste-card:nth-child(2) { transition-delay: 0.06s; }
.js-rv .steps .step:nth-child(3),
.js-rv .waste-grid .waste-card:nth-child(3) { transition-delay: 0.12s; }
.js-rv .steps .step:nth-child(4),
.js-rv .waste-grid .waste-card:nth-child(4) { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  .js-rv .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  nav.links { display: none; }
  .hamburger { display: inline-flex; }
  .nav-greeting { display: none; }

  .hero-grid { grid-template-columns: 1fr; gap: 56px; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .step:nth-child(2n) { border-right: none; }

  .waste-grid { grid-template-columns: repeat(2, 1fr); }

  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .wrap { width: min(100% - 32px, var(--container)); }

  section { padding: 75px 0; }

  .hero { padding: 75px 0; }
  .hero-copy h1 { font-size: 42px; }
  .hero-cta { flex-direction: column; margin-bottom: 40px; }
  .hero-cta .btn { width: 100%; }
  .trust-row { gap: 20px 25px; flex-wrap: wrap; }

  .calc-card { padding: 22px; }
  .calc-row { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--border); }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: none; }

  .waste-grid { grid-template-columns: 1fr; }
  .waste-card { min-height: 0; }

  #jual { padding: 90px 0; }
  #jual .form-card { padding: 55px 25px; }
  #jual .hero-cta { flex-direction: column; }
  #jual .hero-cta .btn { width: 100%; }

  .footer-row { grid-template-columns: 1fr; gap: 40px; }

  .page { padding: 40px 0 72px; }
}